:root {
    --beige: #F9F7F2;
    --navy: #0F172A;
    --gold: #C5A059;
    --gold-light: #D4AF37;
    --text: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--beige); color: var(--text); scroll-behavior: smooth; }

.container { max-width: 1200px; margin: auto; padding: 0 30px; }

/* ===========================
   HEADER & NAV
   =========================== */
header {
    height: 70px;
    background: var(--beige);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: static; /* Supprime le décalage mobile */
    top: auto;
}

.main-logo {
    height: 50px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.1));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
}

/* NAV LINKS — desktop */
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.9rem; }

/* Burger button — masqué sur desktop */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}
.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animation burger → croix */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   BOUTONS
   =========================== */
.btn-nav, .btn-gold, .btn-gold-full {
    background: var(--gold);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: inline-block;
}
.btn-nav:hover, .btn-gold:hover, .btn-gold-full:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
}

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 40px;
    max-width: 100%;
}

.hero-text {
    padding-right: 20px;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--navy);
    margin: 20px 0;
}
.hero-text h1 span { color: var(--gold); }
.tagline { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }

.hero-cta { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.btn-gold { background: var(--gold); box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3); color: white; padding: 15px 30px; text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4); }
.btn-dark { background: var(--navy); color: white; padding: 15px 30px; text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; }
.btn-dark:hover { background: #1a2a3a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4); }

/* IMAGE HERO */
.hero-image {
    position: relative;
    height: 100%;
    margin-right: -30px;
}
.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}
.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--beige) 0%, transparent 40%);
    border-radius: 20px 0 0 20px;
}

/* ===========================
   SERVICES
   =========================== */
.services { padding: 40px 0; }
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--navy);
}
.section-title span { color: var(--gold); }

.services-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-item {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.4) 30%,
        transparent 70%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}
.service-content { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.service-content h3 { font-size: 1.5rem; margin: 10px 0; color: var(--gold); font-weight: 800; }
.service-content p { font-size: 0.95rem; opacity: 0.9; }



/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials { padding: 80px 0; background: white; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.t-card {
    background: var(--beige);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.t-card:hover { transform: scale(1.02); }
.stars { color: var(--gold); font-size: 1.5rem; margin-bottom: 20px; }
.t-card p { font-style: italic; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
.client-name { display: block; font-weight: 800; color: var(--navy); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* ===========================
   CONTACT REFINED
   =========================== */
.contact-refined { padding: 100px 0; background-color: var(--beige); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08);
}

.contact-info-panel {
    background: var(--navy);
    color: white;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-info-panel .subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 15px;
    display: block;
}
.contact-info-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}
.contact-info-panel h2 span { color: var(--gold); }
.contact-info-panel p { color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 40px; }

.detail-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.detail-item .icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.detail-text small { display: block; color: var(--gold); font-size: 0.7rem; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.detail-text a { color: white; text-decoration: none; font-size: 1.1rem; font-weight: 600; transition: opacity 0.3s; }
.detail-text a:hover { opacity: 0.7; }

.contact-form-panel { padding: 80px; background: white; }

.input-group { position: relative; margin-bottom: 35px; }
.input-group input,
.input-group textarea {
    width: 100%; padding: 10px 0; font-size: 1rem; color: var(--navy);
    border: none; border-bottom: 1px solid #e2e8f0; outline: none;
    background: transparent; transition: border-color 0.3s;
    font-family: inherit;
}
.input-group label {
    position: absolute; top: 10px; left: 0; color: #94a3b8;
    pointer-events: none; transition: all 0.3s ease;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -15px; font-size: 0.75rem; color: var(--gold); font-weight: 700;
}
.input-group input:focus,
.input-group textarea:focus { border-bottom: 2px solid var(--gold); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--navy);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    justify-content: center;
}
.btn-premium:hover { background: var(--gold); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3); }
.btn-premium svg { transition: transform 0.3s ease; }
.btn-premium:hover svg { transform: translateX(8px); }

/* ===========================
   FOOTER
   =========================== */
footer { padding: 35px 0; border-top: 1px solid #eee; background: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: #888; font-size: 0.9rem; flex-wrap: wrap; gap: 15px; }
.legal a { margin-left: 20px; color: #888; text-decoration: none; }

/* Style pour la page Mentions Légales */
.legal-page {
    padding: 120px 30px 80px; /* Espace pour le header fixe */
    max-width: 900px !important;
}

.legal-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--navy);
}

.legal-page h1 span { color: var(--gold); }

.legal-page h2 {
    color: var(--navy);
    margin: 40px 0 20px;
    font-size: 1.4rem;
}

.legal-page p, .legal-page li {
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

/* ===========================
   RESPONSIVE — TABLETTE (768px)
   =========================== */
@media (max-width: 900px) {

    /* Header */
    header { height: 65px; }

    /* Burger visible */
    .burger { display: flex; }

    /* Menu mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: 75vw;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        padding: 100px 40px 60px;
        gap: 30px;
        z-index: 150;
        transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    .nav-links.open { right: 0; }
    .nav-links li { list-style: none; }
    .nav-links a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.1rem;
        display: block;
    }
    .nav-links a:hover { color: var(--gold) !important; }
    .btn-nav {
        background: var(--gold) !important;
        color: white !important;
        padding: 14px 24px;
        border-radius: 8px;
        display: inline-block;
        text-align: center;
        width: 100%;
    }

    /* Overlay menu */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 140;
        backdrop-filter: blur(2px);
    }
    .menu-overlay.open { display: block; }

    /* Hero tablette */
    .hero { padding: 60px 20px; min-height: auto; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-text { padding-right: 0; text-align: center; }
    .hero-text h1 { font-size: 2.6rem; }
    .hero-cta { justify-content: center; }

    .hero-image { margin-right: -20px; margin-left: -20px; }
    .hero-image img {
        height: 350px;
        border-radius: 16px;
    }
    .image-overlay {
        background: none;
        border-radius: 16px;
    }

    /* Services */
    .services { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .services-visual-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .service-item { height: 250px; }

    /* Testimonials */
    .testimonials { padding: 60px 0; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Contact */
    .contact-refined { padding: 70px 0; }
    .contact-wrapper { grid-template-columns: 1fr; border-radius: 16px; }
    .contact-info-panel { padding: 50px 35px; }
    .contact-info-panel h2 { font-size: 2rem; }
    .contact-form-panel { padding: 50px 35px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer */
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal { margin-top: 5px; }
    .legal a { margin: 0 10px; }
}

/* ===========================
   RESPONSIVE — MOBILE (480px)
   =========================== */
@media (max-width: 480px) {

    .container { padding: 0 18px; }

    /* Logo */
    .logo-text { font-size: 1.1rem; }
    .main-logo { height: 40px; }

    /* Hero */
    .hero { padding: 40px 18px 50px; }
    .hero-text h1 { font-size: 2rem; line-height: 1.15; }
    .tagline { font-size: 0.75rem; letter-spacing: 1.5px; }
    .hero-text p { font-size: 0.92rem; }
    .btn-gold, .btn-dark { padding: 13px 22px; font-size: 0.9rem; }
    .hero-image { margin-right: -18px; margin-left: -18px; }
    .hero-image img { height: 260px; }
    .image-overlay { background: none; border-radius: 16px; }

    /* Services */
    .services { padding: 50px 0; }
    .section-title { font-size: 1.7rem; }
    .services-visual-grid { grid-template-columns: 1fr; }
    .service-item { height: 280px; }

    /* Contact */
    .contact-info-panel { padding: 40px 22px; }
    .contact-info-panel h2 { font-size: 1.7rem; }
    .contact-form-panel { padding: 40px 22px; }
    .btn-premium { padding: 16px 24px; font-size: 0.95rem; }
    .detail-text a { font-size: 1rem; }

    /* Footer */
    footer { padding: 28px 0; }
    .footer-bottom { font-size: 0.82rem; }
}

.section-intro {
    max-width: 850px;
    margin: 0 auto 50px auto;
    text-align: center;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text);
    padding: 0 10px;
}

/* Ajustement pour mobile */
@media (max-width: 480px) {
    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

/* --- Bloc Services Optinisé --- */
.service-item {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* Supprime le carré gris au clic sur mobile */
    -webkit-tap-highlight-color: transparent; 
}

.service-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

/* L'image AVANT est cachée par défaut */
.img-before {
    opacity: 0;
    z-index: 2; /* Passe devant l'image APRES */
}

.img-after {
    opacity: 1;
    z-index: 1;
}

/* Effet au survol (Desktop) ET au toucher (Mobile via JS) */
.service-item:hover .img-before,
.service-item.touched .img-before {
    opacity: 1;
}

/* On s'assure que le texte reste toujours au-dessus de tout */
.service-overlay {
    z-index: 10;
    pointer-events: none; /* Permet au clic de traverser le texte vers le conteneur */
}