/* ==========================================================================
   RESET, VARIABLES & STRUCTURE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --c-navy: #0B1D3A;       
    --c-gold: #C5A059;       
    --c-cream: #FDFBF7;      
    --c-white: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shape-arch: 200px 200px 10px 10px;
}

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

html { scroll-behavior: smooth; }

/* VERROUILLAGE DES DÉBORDEMENTS (Fix Bug Texte Coupé) */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: var(--font-sans); 
    background-color: var(--c-white); 
    color: var(--c-navy); 
    line-height: 1.6;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section-padded { padding: 120px 0; }
.bg-cream { background-color: var(--c-cream); }
.bg-navy { background-color: var(--c-navy); }

/* Utilitaires Typographiques */
.font-serif { font-family: var(--font-serif); }
.title-navy { font-family: var(--font-serif); color: var(--c-navy); font-weight: 600; line-height: 1.1; }
.desc-navy { color: var(--c-navy); font-weight: 400; }
.text-gold { color: var(--c-gold); }
.text-white { color: var(--c-white); }
.opacity-80 { opacity: 0.8; }
.opacity-60 { opacity: 0.6; }
.text-center { text-align: center; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-15 { margin-top: 15px; }
.block { display: block; }
.inline-block { display: inline-block; }
.italic { font-style: italic; }

/* ==========================================================================
   PRELOADER (Écran de chargement Luxe)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--c-cream);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    animation: pulseLuxe 2s infinite ease-in-out;
}

@keyframes pulseLuxe {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.6; }
}

/* ==========================================================================
   ANIMATIONS CSS (Scroll Reveal)
   ========================================================================== */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } 
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; } 
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   MENU BURGER & NAVBAR
   ========================================================================== */
.navbar { background-color: var(--c-white); border-bottom: 1px solid rgba(11, 29, 58, 0.1); position: sticky; top: 0; z-index: 100; padding: 15px 0; }
.navbar-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 75px; display: block; }

.navbar-links { display: flex; gap: 35px; list-style: none; align-items: center; }
.navbar-links a { font-family: var(--font-sans); font-size: 0.85rem; color: var(--c-navy); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; text-decoration: none; transition: var(--transition); }
.navbar-links a:hover:not(.btn-nav-gold) { color: var(--c-gold); }

.btn-nav-gold { background-color: var(--c-gold); color: var(--c-white) !important; padding: 12px 24px; border-radius: 4px; transition: var(--transition); }
.btn-nav-gold:hover { background-color: var(--c-navy); transform: translateY(-2px); }

.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}
.menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--c-navy); transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn-navy {
    display: inline-block; background-color: var(--c-navy); color: var(--c-white); padding: 16px 36px;
    text-decoration: none; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px;
    font-weight: 600; transition: var(--transition); border-radius: 4px;
}
.btn-navy:hover { background-color: var(--c-gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2); }

.link-gold-underline {
    color: var(--c-gold); text-decoration: none; text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 2px; font-weight: 600; border-bottom: 1px solid var(--c-gold);
    padding-bottom: 5px; transition: var(--transition);
}
.link-gold-underline:hover { color: var(--c-navy); border-color: var(--c-navy); }
.link-gold-underline.small { font-size: 0.75rem; }

/* ==========================================================================
   CADRES EN ARCHE & HOVER ZOOM
   ========================================================================== */
.arch-frame { overflow: hidden; border-radius: var(--shape-arch); box-shadow: 0 20px 40px rgba(11, 29, 58, 0.08); position: relative; }
.arch-frame.large { width: 85%; height: 600px; }
.arch-frame.medium { width: 100%; height: 700px; }
.portfolio-arch { width: 100%; height: 450px; border-radius: 150px 150px 10px 10px; }

.bg-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hover-zoom:hover .bg-img { transform: scale(1.08); }

/* ==========================================================================
   HÉRO
   ========================================================================== */
.hero-signature { padding: 80px 0 100px 0; background-color: var(--c-cream); overflow: hidden;}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.subtitle-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.line-gold { width: 50px; height: 2px; background-color: var(--c-gold); }
.subtitle-gold { color: var(--c-gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; font-weight: 600; }
.hero-signature h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 25px; }
.hero-signature .desc-navy { font-size: 1.15rem; max-width: 500px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid rgba(197, 160, 89, 0.3); padding-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-serif); font-size: 2rem; color: var(--c-navy); line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--c-gold); letter-spacing: 1px; font-weight: 600;}
.hero-visual-block { position: relative; height: 600px; display: flex; justify-content: flex-end; }
.floating-card { position: absolute; bottom: 40px; left: -20px; background: var(--c-white); padding: 30px; border-radius: 12px; width: 300px; box-shadow: 0 15px 35px rgba(11, 29, 58, 0.08); border-left: 4px solid var(--c-gold); }
.stars { color: var(--c-gold); letter-spacing: 2px; margin-bottom: 10px; display: block; }
.floating-card p { font-style: italic; font-size: 0.95rem; color: var(--c-navy); }

/* ==========================================================================
   PHILOSOPHIE
   ========================================================================== */
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.phil-content h2 { font-size: 3rem; }

/* ==========================================================================
   PROCESSUS (Avec nouvelle ligne dorée animée sur PC)
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.process-step { 
    border-top: 1px solid rgba(11,29,58,0.1); 
    padding-top: 30px; 
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* Ligne dorée qui se dessine au survol */
.process-step::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-gold);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-num { 
    font-size: 2.2rem; 
    display: inline-block; 
    margin-bottom: 15px; 
    transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.process-step h4 { font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; opacity: 0.8; }

/* Animation au survol sur ordinateur */
.process-step:hover { transform: translateY(-8px); }
.process-step:hover::after { width: 100%; }
.process-step:hover .process-num { 
    transform: scale(1.1) translateY(-5px); 
    color: var(--c-navy); 
    text-shadow: 0 10px 20px rgba(197,160,89,0.4);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.section-header-split { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; padding-bottom: 30px; border-bottom: 1px solid rgba(197, 160, 89, 0.3); }
.section-header-split h2 { font-size: 3.5rem; }
.header-desc { max-width: 400px; font-size: 1.1rem; line-height: 1.6; }
.signature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sig-card { padding: 50px 40px; border-radius: 8px; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease; }
.border-gold { border: 1px solid rgba(197, 160, 89, 0.4); background-color: var(--c-white); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.sig-number { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; }
.sig-card h3 { font-size: 1.6rem; margin-bottom: 15px; }
.sig-card p { font-size: 0.95rem; line-height: 1.7; }

/* ==========================================================================
   PORTFOLIO (Slider Horizontal avec barre de scroll élégante sur PC)
   ========================================================================== */
.portfolio-grid { 
    display: flex; 
    overflow-x: auto; 
    gap: 30px; 
    padding-bottom: 40px; 
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--c-gold) rgba(11,29,58,0.05);
}
.portfolio-grid::-webkit-scrollbar { height: 8px; }
.portfolio-grid::-webkit-scrollbar-track { background: rgba(11,29,58,0.05); border-radius: 10px; }
.portfolio-grid::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 10px; }

.portfolio-item { 
    min-width: calc(33.333% - 20px); 
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: var(--transition); 
}
.port-meta { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;}
.portfolio-item h4 { font-size: 1.8rem; }


/* ==========================================================================
   TÉMOIGNAGES (Livre d'Or - Grille Classique sans Swipe)
   ========================================================================== */
.testimonial-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}
.testi-card { 
    background: var(--c-white); 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(11,29,58,0.04);
    position: relative;
    border-top: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testi-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(197,160,89,0.15); border-top-color: var(--c-gold); }
.testi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--c-navy); color: var(--c-gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.5rem; }
.testi-rating { color: var(--c-gold); font-size: 0.85rem; letter-spacing: 2px; }
.quote-icon { font-size: 2.5rem; color: rgba(197,160,89,0.15); margin-bottom: 15px; display: block; }
.testi-card p { font-size: 1.05rem; line-height: 1.7; position: relative; z-index: 2;}
.testi-author { border-top: 1px solid rgba(11, 29, 58, 0.05); padding-top: 20px; display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 1.1rem; }
.author-loc { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(11,29,58,0.1); margin-bottom: 10px; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 25px 0; font-size: 1.3rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--c-gold); }
.faq-icon { font-family: var(--font-sans); font-size: 1.5rem; color: var(--c-gold); font-weight: 300; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 25px; }

/* ==========================================================================
   CARROUSEL INFINI
   ========================================================================== */
.overflow-hidden { overflow: hidden; }
.carousel-container { position: relative; width: 100vw; max-width: 100%; height: 450px; -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.carousel-track { display: flex; gap: 30px; width: max-content; animation: scrollCarousel 40s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-slide { width: 320px; height: 450px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(11, 29, 58, 0.08); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease; }
.carousel-slide:hover img { transform: scale(1.05); }
@keyframes scrollCarousel { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }

/* ==========================================================================
   PAGE DE CONTACT - LUXE
   ========================================================================== */
.contact-grid-premium { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mt-40 { margin-top: 40px; }
.form-card-luxe { background: var(--c-white); padding: 50px; border-radius: 12px; box-shadow: 0 20px 50px rgba(11, 29, 58, 0.05); border-top: 4px solid var(--c-gold); transition: var(--transition); }
.form-card-luxe:hover { box-shadow: 0 25px 60px rgba(11, 29, 58, 0.08); }
.form-label { display: block; font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--c-navy); margin-bottom: 10px; font-weight: 600; }
.form-input { width: 100%; padding: 16px 20px; border: 1px solid rgba(11, 29, 58, 0.1); border-radius: 4px; font-family: var(--font-sans); font-size: 1rem; color: var(--c-navy); background: var(--c-cream); transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--c-gold); background: var(--c-white); box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); }
.alert-success { background-color: rgba(91, 107, 77, 0.1); color: #5B6B4D; padding: 15px; border-radius: 4px; margin-bottom: 25px; text-align: center; font-weight: 600; border: 1px solid rgba(91, 107, 77, 0.3); }
.alert-error { background-color: rgba(180, 50, 50, 0.05); color: #B43232; padding: 15px; border-radius: 4px; margin-bottom: 25px; text-align: center; font-weight: 600; border: 1px solid rgba(180, 50, 50, 0.2); }

/* ==========================================================================
   PETITS EFFETS PREMIUM (Micro-interactions)
   ========================================================================== */
.line-gold { width: 0; height: 2px; background-color: var(--c-gold); transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.line-gold.is-visible { width: 50px; }
.bg-img.parallax-bg { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; transition: filter 0.5s ease; }
.sig-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15); border-color: rgba(197, 160, 89, 0.6); }
.hover-zoom:hover .parallax-bg { filter: brightness(1.1); }

/* Indicateur de Swipe */
.swipe-hint { display: none; font-size: 0.75rem; color: var(--c-gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 15px; text-align: right; }
.swipe-arrow { display: inline-block; animation: swipeAnim 1.5s infinite; }
@keyframes swipeAnim { 0% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(5px); opacity: 1; } 100% { transform: translateX(0); opacity: 0.5; } }

/* ==========================================================================
   CTA BANNER & FOOTER (Minimaliste)
   ========================================================================== */
.cta-banner { padding: 100px 0; border-top: 1px solid rgba(11,29,58,0.1); }
.footer { background-color: var(--c-navy); color: var(--c-cream); padding: 35px 0; border-top: 1px solid rgba(197, 160, 89, 0.3); }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { opacity: 0.5; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; }
.footer-admin-link { color: var(--c-cream); opacity: 0.2; font-size: 0.9rem; transition: var(--transition); }
.footer-admin-link:hover { opacity: 1; color: var(--c-gold); }

/* ==========================================================================
   RESPONSIVE PREMIUM
   ========================================================================== */

/* Animation du battement de coeur (Mobile Processus) */
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--c-white); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.4s ease; z-index: 999; }
    .main-nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .navbar-links { flex-direction: column; gap: 30px; text-align: center; }
    .navbar-links a { font-size: 1.2rem; }
    
    .container { padding: 0 20px; }
    .section-padded { padding: 70px 0; }
    .hero-signature { padding: 30px 0 60px 0; }
    .hero-grid, .phil-grid, .map-grid, .signature-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-header-split { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 40px; }
    .hero-signature h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .section-header-split h2, .phil-content h2 { font-size: 2rem; }
    .hero-signature .desc-navy { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 15px; text-align: center; align-items: center; }
    .hero-actions { flex-direction: column; width: 100%; gap: 15px;}
    .btn-navy { width: 100%; text-align: center; }
    .hero-visual-block { height: 400px; justify-content: center; margin-top: 10px; width: 100%;}
    .arch-frame.large { width: 100%; border-radius: 120px 120px 10px 10px; height: 100%; }
    .floating-card { left: 50%; transform: translateX(-50%); bottom: -20px; width: 90%; text-align: center; padding: 20px;}
    .phil-grid .arch-frame { order: 2; border-radius: 120px 120px 10px 10px; height: 400px;}
    .phil-content { order: 1; }
    
    .contact-grid-premium { grid-template-columns: 1fr; gap: 50px; }
    .form-card-luxe { padding: 30px; }
    
    /* PROCESSUS TIMELINE MOBILE AVEC BATTEMENT */
    .process-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
    .process-step { border-top: none; border-left: 2px solid rgba(197, 160, 89, 0.3); padding-left: 30px; padding-top: 0; padding-bottom: 40px; position: relative; }
    .process-step:last-child { padding-bottom: 0; }
    .process-step::after { display: none; } /* Enleve la barre or de survol */
    
    .process-step::before { 
        content: ''; 
        position: absolute; 
        left: -6px; 
        top: 5px; 
        width: 10px; 
        height: 10px; 
        background-color: var(--c-gold); 
        border-radius: 50%; 
        animation: pulseDot 2s infinite; 
    }
    .process-step:nth-child(2)::before { animation-delay: 0.5s; }
    .process-step:nth-child(3)::before { animation-delay: 1.0s; }
    .process-step:nth-child(4)::before { animation-delay: 1.5s; }
    
    .process-num { font-size: 1.5rem; margin-bottom: 5px; line-height: 1; transform: none !important; text-shadow: none !important; }

    .swipe-hint { display: block; }

    /* Portfolio : Swipe horizontal sur mobile */
    .portfolio-grid { 
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory;
        margin: 0 -20px; 
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none; 
    }
    .portfolio-grid::-webkit-scrollbar { display: none; }
    .portfolio-item { min-width: 90%; scroll-snap-align: center; flex-shrink: 0; }

    /* Avis : Pile verticale classique sur mobile */
    .testimonial-grid { 
        display: grid; 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .testi-card { min-width: 100%; }
    
    .faq-question { font-size: 1.1rem; padding: 20px 0; }
}

@media (max-width: 768px) {
    .carousel-container { height: 350px; }
    .carousel-slide { width: 250px; height: 350px; }
    .portfolio-arch { height: 450px; }
    .footer-container { flex-direction: column; gap: 15px; text-align: center; }
}