/* ==========================================================================
   RESPONSIVE.CSS : TABLETTE & MOBILE (FINAL FIX)
   ========================================================================== */

/* === LAPTOP / PETITS ECRANS (1200px) === */
@media (max-width: 1200px) { 
    .triptych-width-limiter { width: 85%; } 
}

/* === TABLETTE / PETIT LAPTOP (992px - 1350px) === */
@media (min-width: 992px) and (max-width: 1350px) {
    .sticky-left-container { left: 15px; }
    .sticky-right-container { right: 15px; gap: 15px; }
    .nav-item { margin: 0 10px; }
    .nav-link { font-size: 0.9rem; letter-spacing: 0.5px; }
    .sticky-home-logo { height: 30px; }
}

/* === TABLETTE & MOBILE (Max 991px) === */
@media (max-width: 991px) {

    /* --- 1. TYPOGRAPHIE MOBILE GENERALE --- */
    
    /* Textes courants unifiés (Paragraphes, listes, intros) */
    p, 
    .manifesto-text p, 
    .intro-text, 
    .pillar-li,       
    .sf-list li,
    .identity-intro,    /* AJOUTÉ : Pour uniformiser l'intro Maison */
    .identity-list li,  /* AJOUTÉ : Pour uniformiser la liste Maison */
    .detail-text, 
    .final-body p, 
    .value-details, 
    .value-statement {
        font-family: var(--font-avenir) !important; /* Force la police Avenir */
        font-size: 1rem !important; 
        line-height: 1.6 !important;
        font-weight: 300 !important;
        letter-spacing: 0 !important;
    }

    /* Listes : alignement propre */
    .pillar-li, .sf-list li, .identity-list li {
        margin-bottom: 20px !important;
        padding-left: 25px !important;
    }
    .pillar-li::before, .sf-list li::before, .identity-list li::before {
        font-size: 1.2rem !important;
        top: 2px !important;
    }

    /* Highlights (Gras Italique) unifiés */
    .text-highlight, 
    .vision-highlight, 
    .laeti-highlight {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        font-style: italic !important;
        display: inline !important;
        white-space: normal !important;
    }

    /* --- 2. TITRES ET SOUS-TITRES --- */
    
    /* Gros Titres (Hero) */
    .hero-title, 
    .engagements-title, 
    .raison-title, 
    .laeti-title { 
        font-size: 2.2rem !important;
        letter-spacing: 2px !important;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
    }

    /* Sous-titres Hero */
    .hero-subtitle, 
    .engagements-subtitle,
    .laeti-subtitle {
        font-size: 1.1rem !important; 
        letter-spacing: 2px !important;
        line-height: 1.4 !important;
        white-space: normal !important; 
    }

    /* Titres de section (H3) */
    .manifesto-title,
    .pillars-main-title,
    .examples-title-didot,
    .final-title,
    .value-name,
    .detail-title {
        font-size: 1.6rem !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
        margin-bottom: 30px !important;
    }

    /* --- 3. HARMONISATION PHOTOS ENGAGEMENTS --- */
    .photo-caption {
        font-family: var(--font-serif) !important;
        font-size: 1.3rem !important;
        text-transform: none !important;
        letter-spacing: 1px !important;             
        font-weight: 400 !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
        width: 80% !important;
        margin: 0 auto !important;
    }

    /* --- 4. SECURITÉ VISUELLE --- */
    .text-nowrap {
        white-space: normal !important; 
    }

    /* --- 5. MENU MOBILE --- */
    .mobile-nav-link { 
        font-size: 1.5rem !important;
        margin: 8px 0 !important;
        letter-spacing: 1px !important;
    }
    .mobile-sub-link {
        font-size: 0.9rem !important;
    }

    /* --- 6. LAYOUT & PADDING --- */
    .manifesto-section,
    .triptych-section,
    .editorial-section,
    .vision-interlude,
    .values-section-luxe,
    .raison-text-section,
    .laeti-details-section,
    .pillars-section,
    .examples-section,
    .final-text-section {
        padding: 50px 0;
    }

    .nav-bar-custom { display: none !important; }
    .triptych-width-limiter { width: 92%; }
    
    /* HEADER INITIAL MOBILE */
    .top-bar { 
        height: 100px; 
        padding: 0; justify-content: flex-start; overflow: visible !important; z-index: 2000; 
    }
    .brand-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; margin: 0; z-index: 0; }
    .brand-logo { max-height: 55px; transition: max-height 0.4s ease; }
    
    .mobile-header-bottom {
        position: absolute; bottom: 10px; left: 0; width: 100%; padding: 0 10px;
        display: flex; justify-content: space-between; align-items: center; overflow: visible !important; z-index: 2001;
    }
    .lang-dropdown-menu { z-index: 10000 !important; }
    
    .top-actions { position: relative; right: auto; top: auto; transform: none; display: flex; gap: 5px; margin: 0; }
    .top-icon { height: 18px; }
    .lang-toggle { font-size: 0.9rem; }
    
    .burger-icon { display: block; }
    .video-wrapper { margin-top: 100px; height: auto; aspect-ratio: 16/9; min-height: auto; z-index: 1; }
    
    .video-container { height: 100%; top: 0; }
    .manifesto-section .container { padding-left: 0; padding-right: 0; width: 100%; max-width: 100%; }
    .manifesto-title { margin-bottom: 30px; padding: 0 15px; }
    .manifesto-text { padding: 0 15px; }
    .manifesto-text p { margin-bottom: 30px; }
    .maisons-board { width: 100%; max-width: 100%; padding: 0; margin: 20px 0 0 0; display: block; }
    .triptych-section { background-image: none !important; padding: 0; }
    .triptych-section .container-fluid { padding: 0; }
    .triptych-width-limiter { width: 100% !important; margin: 0 auto; }
    .triptych-row { margin: 0; display: flex; flex-direction: column; gap: 0; }
    .triptych-col { padding: 0 !important; margin: 0 !important; }
    .triptych-link { padding-bottom: 0; display: block; margin: 0; line-height: 0; }
    .triptych-img-wrapper { height: 420px; width: 100%; box-shadow: none; margin: 0; }
    .triptych-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none !important; }
    .triptych-link:hover .triptych-img { transform: none !important; }

    /* --- ETAT SCROLLÉ (LOGO & BARRE REDUITS) --- */
    body.scrolled .top-bar { 
        height: 60px !important; 
        opacity: 1 !important; 
        pointer-events: auto !important; 
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    }
    body.scrolled .brand-container { 
        top: 50%; transform: translate(-50%, -50%); 
    }
    body.scrolled .brand-logo { max-height: 35px !important; } 
    
    body.scrolled .sticky-left-container,
    body.scrolled .sticky-right-container {
        display: none !important;
    }
}

/* === MOBILE SMALL (Max 767px) === */
@media (max-width: 767px) {
    .triptych-width-limiter { width: 100%; }
    .main-footer { padding: 60px 20px 40px; }
    .footer-logo-container { margin-bottom: 40px; }
    .footer-logo { width: 60px; opacity: 0.9; }
    .footer-nav {
        flex-direction: column; gap: 25px; align-items: center; border-bottom: none; padding-bottom: 20px; margin-bottom: 30px; width: 100%;
    }
    .footer-link {
        font-size: 0.8rem; font-family: var(--font-serif); letter-spacing: 3px; text-transform: uppercase; width: auto; display: block; font-weight: 300;
    }
    .footer-legal { flex-direction: column; gap: 25px; text-align: center; border-top: none; padding-top: 0; }
    .footer-legal span { order: 2; font-size: 0.65rem; opacity: 0.4; margin-top: 10px; letter-spacing: 1px; }
    .footer-socials { order: 1; }
    .footer-social-link { margin: 0; }
    .footer-social-icon-img { width: 30px; opacity: 0.8; }
    .progress-scroll-container { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .premium-btn { padding: 18px 40px; font-size: 0.95rem; border-width: 1.5px; }
    .triptych-col { padding: 0 !important; margin: 0 !important; }
    .triptych-link { margin: 0 !important; display: block; padding-bottom: 0 !important; }
    .triptych-img-wrapper { height: 420px; width: 100%; box-shadow: none; margin: 0; }
    .triptych-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none !important; }
    .triptych-link:hover .triptych-img { transform: none !important; }
}