@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@300;400;500&display=swap');

:root {
    --or: #c9a96e;
    --noir: #1a1a1a;
    --blanc: #fafaf8;
    --gris: #f2f0eb;
    --gris-texte: #666;
    --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--blanc);
    color: var(--noir);
    font-weight: 300;
}

/* ======= HEADER ======= */
header {
    background: var(--noir);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    color: var(--or);
    font-size: 1.6rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.05em;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 2rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--or); }

/* ======= HERO ======= */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: #222;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.70;
}

.hero-content {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 2rem;
}

.btn-or {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--or);
    color: var(--or);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-or:hover {
    background: var(--or);
    color: var(--noir);
}

/* ======= CONTAINER ======= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======= SECTION ======= */
.section {
    padding: 5rem 0;
}

.section-titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--noir);
    margin-bottom: 0.5rem;
}

.section-sous-titre {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 3rem;
}

/* ======= CARACTERISTIQUES ======= */
.carac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.carac-item {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid #e8e4dc;
    background: var(--gris);
}

.carac-valeur {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--noir);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.carac-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gris-texte);
}

.prix-bandeau {
    background: var(--noir);
    color: var(--or);
    text-align: center;
    padding: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.description {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
    max-width: 750px;
    margin-bottom: 2rem;
}

.points-forts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.point-fort {
    background: var(--gris);
    border-left: 3px solid var(--or);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #444;
}

/* ======= GALERIE ======= */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.galerie-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
    cursor: pointer;
}

.galerie-grid img:hover { opacity: 0.85; }

.galerie-cats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.galerie-cat-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ccc;
    background: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.galerie-cat-btn.actif,
.galerie-cat-btn:hover {
    background: var(--noir);
    color: white;
    border-color: var(--noir);
}

/* ======= FORMULAIRE ======= */
.form-container {
    max-width: 750px;
    margin: 0 auto;
}

.form-intro {
    background: var(--gris);
    border-left: 4px solid var(--or);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
}

.form-etape {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e8e4dc;
}

.form-etape-titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--noir);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--or);
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-champ {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-champ.full { grid-column: 1 / -1; }

.form-champ label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    font-weight: 500;
}

.form-champ input,
.form-champ select,
.form-champ textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    background: white;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.2s;
    outline: none;
}

.form-champ input:focus,
.form-champ select:focus,
.form-champ textarea:focus {
    border-color: var(--or);
}

.form-radio-groupe {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-radio-groupe label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    font-weight: 300;
    color: #444;
}

.form-radio-groupe input[type="radio"],
.form-radio-groupe input[type="checkbox"] {
    width: auto;
    padding: 0;
    accent-color: var(--or);
}

.form-creneaux {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-creneaux label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    font-weight: 300;
    color: #444;
}

.rgpd-bloc {
    background: #f9f7f3;
    border: 1px solid #e8e4dc;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.rgpd-bloc label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: #444;
    font-weight: 400;
    margin-top: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--noir);
    color: var(--or);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover { background: #333; }

/* ======= MESSAGES ======= */
.msg-succes {
    background: #f0fdf4;
    border-left: 4px solid #4a7c59;
    padding: 1.5rem;
    color: #2d6a4f;
    margin-bottom: 2rem;
}

.msg-erreur {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    color: #991b1b;
    margin-bottom: 2rem;
}

/* ======= ADMIN ======= */
.admin-header {
    background: var(--noir);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: var(--or);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.admin-nav {
    background: #2a2a2a;
    padding: 0.8rem 2rem;
    display: flex;
    gap: 2rem;
}

.admin-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.admin-nav a:hover,
.admin-nav a.actif {
    color: var(--or);
    border-bottom: 2px solid var(--or);
    padding-bottom: 0.2rem;
}

.admin-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e4dc;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--noir);
    color: var(--or);
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e8e4dc;
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--gris); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-nouveau { background: #dbeafe; color: #1d4ed8; }
.badge-contacte { background: #fef9c3; color: #854d0e; }
.badge-visite { background: #dcfce7; color: #15803d; }
.badge-refuse { background: #fee2e2; color: #991b1b; }

.admin-form-section {
    background: white;
    border: 1px solid #e8e4dc;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--noir);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.admin-champ {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-champ.full { grid-column: 1 / -1; }

.admin-champ label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.admin-champ input,
.admin-champ select,
.admin-champ textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.admin-champ input:focus,
.admin-champ select:focus,
.admin-champ textarea:focus {
    border-color: var(--or);
}

.btn-admin {
    padding: 0.7rem 1.5rem;
    background: var(--noir);
    color: var(--or);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-admin:hover { background: #333; }

.btn-danger {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover { background: #b91c1c; }

/* ======= FOOTER ======= */
footer {
    background: var(--noir);
    color: #666;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-top: 4rem;
}

footer a { color: #888; text-decoration: none; }

/* ======= LIGHTBOX ======= */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-fermer {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.galerie-grid img,
.hero img,
.lightbox img {
    image-rendering: auto;
    color-profile: sRGB;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .carac-grid { grid-template-columns: repeat(2, 1fr); }
    .galerie-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr; }
    nav { display: none; }
}