/* ==========================================================================
   1. CHARTE GRAPHIQUE & RÉINITIALISATION GLOBALE
   ========================================================================== */
:root {
    --primary: #0c2340;        /* Bleu Corporate Institutionnel */
    --accent: #d4af37;         /* Doré / Or d'excellence */
    --text: #334155;           /* Gris ardoise lisible */
    --bg-light: #f8fafc;       /* Fond clair moderne */
    --white: #ffffff;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    padding-top: 120px; /* Équilibre le bandeau flash + la navbar */
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* ==========================================================================
   2. BANDEAU DE DÉFILEMENT FLASH & NAVBAR FIXE
   ========================================================================== */
.bandeau-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #ef4444;
    color: var(--white);
    overflow: hidden;
    z-index: 5000;
    display: flex;
    align-items: center;
}

.contenu-defilant {
    display: flex;
    white-space: nowrap;
    animation: defilementInfini 25s linear infinite;
}

.contenu-defilant span {
    font-size: 0.95rem;
    font-weight: bold;
    padding-right: 2rem;
}

@keyframes defilementInfini {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 4000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { cursor: pointer; }
.nav-logo img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. BANNIÈRE HERO & DIAPORAMA INTÉGRÉ
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    padding: 8rem 1.5rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.85) 0%, rgba(17, 24, 39, 0.88) 100%);
    z-index: 2;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: fadeSlideshow 15s linear infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlideshow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.04); }
    100% { opacity: 0; }
}

.hero-content { position: relative; z-index: 3; }

.btn-main, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-main { background-color: var(--accent); color: var(--primary); }
.btn-main:hover { background-color: var(--white); transform: translateY(-2px); }
.btn-secondary { border: 2px solid var(--white); color: var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary); transform: translateY(-2px); }

/* ==========================================================================
   4. CONTENU DE PRÉSENTATION & MOT DU DIRECTEUR GÉNÉRAL (CEO)
   ========================================================================== */
.intro-section { padding: 5rem 1.5rem 2rem 1.5rem; }
.intro-box { background: var(--white); padding: 3rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); border-top: 4px solid var(--primary); }
.intro-box h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1.5rem; }

.ceo-section { padding: 2rem 1.5rem 5rem 1.5rem; }
.ceo-box { background: var(--white); padding: 3.5rem; border-radius: 12px; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03); display: flex; align-items: flex-start; gap: 4rem; }
.ceo-photo-container { flex-shrink: 0; }
.ceo-portrait { width: 280px; height: 340px; object-fit: cover; border-radius: 8px; border: 3px solid var(--primary); box-shadow: 0 10px 30px rgba(12, 35, 64, 0.15); transition: transform 0.3s ease; }
.ceo-portrait:hover { transform: scale(1.02); }
.ceo-text-container { flex: 1; }
.ceo-text-container h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 0.5rem; }
.ceo-text-container h3 { color: #475569; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; }
.ceo-welcome { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.ceo-quote { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 1.5rem 0; border-left: 4px solid var(--primary); padding-left: 15px; font-style: italic; }
.ceo-text-container p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; text-align: justify; }
.ceo-pillars { list-style: square; padding-left: 20px; margin-bottom: 1.5rem; }
.ceo-pillars li { font-size: 1rem; margin-bottom: 0.75rem; line-height: 1.6; }
.ceo-signature { display: block; margin-top: 2.5rem; font-size: 1.1rem; color: var(--primary); font-weight: bold; }
/* ==========================================================================
   5. GRILLE DES ENGAGEMENTS ET CARROUSEL DES PARTENAIRES
   ========================================================================== */
.engagements-section {
    padding-bottom: 5rem;
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.engagement-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: center;
    border-bottom: 3px solid #cbd5e1;
    transition: border-color 0.3s ease;
}

.engagement-card:hover {
    border-color: var(--accent);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.engagement-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.sponsors-section {
    padding: 3rem 1.5rem 5rem 1.5rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.partners-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.partners-carousel::-webkit-scrollbar { display: none; }

.partners-track {
    display: flex;
    align-items: center;
    gap: 50px; 
    width: max-content;
}

.partner-logo {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain; 
}

.partner-logo:hover {
    transform: scale(1.06);
    border-color: var(--accent);
}

.carousel-btn {
    background: rgba(12, 35, 64, 0.8);
    color: var(--white);
    border: none;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* ==========================================================================
   6. FOIRE AUX QUESTIONS (FAQ) & PÔLES D'EXPERTISE
   ========================================================================== */
.faq-section {
    padding: 3rem 1.5rem 5rem 1.5rem;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--accent); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 35, 64, 0.05);
}

.faq-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h4 i { color: var(--accent); }
.faq-item p { color: var(--text); font-size: 1rem; line-height: 1.7; text-align: justify; padding-left: 1.85rem; }

.services-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pole-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border-left: 6px solid var(--primary);
}

.pole-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.pole-header i { font-size: 2rem; color: var(--accent); }
.pole-header h3 { font-size: 1.5rem; color: var(--primary); }
.pole-card h4 { font-size: 1.2rem; color: #475569; margin-bottom: 1.5rem; font-weight: 600; }
.pole-desc { font-size: 1.05rem; margin-bottom: 2rem; }
.services-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.services-list li {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.services-list li:hover {
    background-color: var(--white);
    border-color: var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
}

.services-list li i { color: var(--accent); margin-top: 5px; font-size: 0.9rem; }

/* ==========================================================================
   7. PROJETS, FILTRES, BADGES & TÉLÉCHARGEMENTS IMMOBILIERS
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

.filter-group select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--bg-light);
    cursor: pointer;
}

.download-brochure-box {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.download-text h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.download-text h3 i { color: #ef4444; }
.download-text p { font-size: 0.95rem; color: #64748b; }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-download:hover { background-color: var(--accent); color: var(--primary); transform: translateY(-2px); }

.properties-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.property-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.property-img-container { position: relative; height: 220px; background-color: #e2e8f0; }
.property-img-container img { width: 100%; height: 100%; object-fit: cover; }

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
}
.badge.sale { background-color: #ef4444; }
.badge.rent { background-color: #319795; }

.property-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.property-info h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.5rem; }
.property-info .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin: 0.5rem 0 1rem 0; }
.property-info .location { color: #64748b; font-size: 0.95rem; margin-bottom: 0.5rem; }

/* Styles spécifiques pour les boutons internes du catalogue */
.btn-submit {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-submit:hover {
    background-color: var(--accent);
    color: var(--primary);
}
/* ==========================================================================
   8. CORPORATE, FORMULAIRES DE COTATION & FOOTER INSTITUTIONNEL
   ========================================================================== */
.corporate-box { 
    padding: 5rem 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 2.5rem; 
}

.corporate-card { 
    background: var(--white); 
    padding: 2.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); 
}

.corporate-card h3 { 
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-bottom: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.corporate-card h3 i { 
    color: var(--accent); 
}

.corporate-card p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
}

.statut-card { 
    border-top: 4px solid var(--accent); 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 3rem; 
    align-items: start; 
}

.contact-form { 
    background: var(--white); 
    padding: 3rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04); 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    font-size: 0.95rem; 
    color: var(--primary); 
}

.form-group label .optional { 
    color: #94a3b8; 
    font-weight: 400; 
    font-style: italic; 
    font-size: 0.85rem; 
}

/* Éléments de saisie de formulaires globaux de la charte */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text);
    background-color: var(--bg-light);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

.contact-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}

.info-widget { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); 
    border-left: 4px solid var(--accent); 
}

.info-widget h4 { 
    color: var(--primary); 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.info-widget h4 i { 
    color: var(--accent); 
}

/* ==========================================================================
   8. CORPORATE, FORMULAIRES DE COTATION & FOOTER INSTITUTIONNEL
   ========================================================================== */
.corporate-box { 
    padding: 5rem 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 2.5rem; 
}

.corporate-card { 
    background: var(--white); 
    padding: 2.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); 
}

.corporate-card h3 { 
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-bottom: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.corporate-card h3 i { 
    color: var(--accent); 
}

.corporate-card p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
}

.statut-card { 
    border-top: 4px solid var(--accent); 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 3rem; 
    align-items: start; 
}

.contact-form { 
    background: var(--white); 
    padding: 3rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04); 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    font-size: 0.95rem; 
    color: var(--primary); 
}

.form-group label .optional { 
    color: #94a3b8; 
    font-weight: 400; 
    font-style: italic; 
    font-size: 0.85rem; 
}

/* Éléments de saisie de formulaires globaux de la charte */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text);
    background-color: var(--bg-light);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

.contact-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}

.info-widget { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); 
    border-left: 4px solid var(--accent); 
}

.info-widget h4 { 
    color: var(--primary); 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.info-widget h4 i { 
    color: var(--accent); 
}

.main-footer { 
    background-color: #111827; 
    color: #9ca3af; 
    padding: 4rem 0 1.5rem 0; 
    margin-top: 6rem; 
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 3rem; 
}

.footer-col { 
    flex: 1; 
    min-width: 280px; 
}

.footer-col h4 { 
    color: var(--white); 
    font-size: 1.2rem; 
    margin-bottom: 1.5rem; 
    position: relative; 
    padding-bottom: 0.5rem; 
}

.footer-col h4::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 40px; 
    height: 2px; 
    background-color: var(--accent); 
}

.footer-text { 
    font-size: 0.95rem; 
    margin-bottom: 0.75rem; 
}

.footer-ref { 
    font-size: 0.85rem; 
    color: #6b7280; 
    margin-top: 0.5rem; 
}

.footer-bottom { 
    text-align: center; 
    margin-top: 4rem; 
    padding-top: 1.5rem; 
    border-top: 1px solid #1f2937; 
    font-size: 0.85rem; 
}

.footer-bottom a { 
    color: var(--accent); 
    text-decoration: none; 
}

/* ==========================================================================
   9. CORRECTION INTERACTION ET FILTRES D'ANIMATIONS SPA (MOTEUR DE ROUTAGE)
   ========================================================================== */
.page-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.page-section.active-page {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================================================
   10. VARIATIONS RESPONSIVES ET ADAPTATIONS SMARTPHONES
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid, .ceo-box { 
        grid-template-columns: 1fr; 
        flex-direction: column; 
        align-items: center; 
        gap: 2.5rem; 
    }
    .ceo-text-container p { 
        text-align: left; 
    }
    .ceo-portrait { 
        width: 240px; 
        height: 290px; 
    }
}

@media (max-width: 768px) {
    body { 
        padding-top: 110px; 
    }
    
    .menu-toggle { 
        display: flex; 
    }

    .nav-links {
        position: fixed;
        top: 110px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 110px);
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        transition: right 0.4s ease;
    }

    .nav-links.active { 
        right: 0; 
    }
    
    .nav-links li { 
        width: 100%; 
        text-align: center; 
    }
    
    .nav-links a { 
        display: block; 
        padding: 1.5rem 0; 
        border-bottom: 1px solid var(--border); 
    }

    .hero h1 { 
        font-size: 1.9rem; 
    }
    
    .hero p { 
        font-size: 1.05rem; 
    }
    
    .intro-box, .pole-card, .contact-form, .download-brochure-box { 
        padding: 2rem 1.5rem; 
        flex-direction: column; 
        text-align: center; 
        gap: 1.25rem; 
    }
    
    .download-text h3, .faq-item h4 { 
        justify-content: center; 
    }
    
    .btn-download, .faq-item p { 
        justify-content: center; 
        text-align: left; 
        padding-left: 0; 
    }
    
    .carousel-wrapper { 
        padding: 0; 
    }
    
    .partners-track { 
        gap: 30px; 
    }
    
    .partner-logo { 
        width: 120px; 
        height: 70px; 
    }
    
    .carousel-btn { 
        display: none !important; 
    }
}

@media (min-width: 1400px) {
    .container { 
        max-width: 1320px; 
    }
    
    .hero h1 { 
        font-size: 3.4rem; 
    }
    
    body { 
        font-size: 1.1rem; 
    }
}
/* ==========================================================================
   CONFORMITÉ DU RENDU RESPONSIVE RESPONSIVE UNIVERSEL (IPHONE & ANDROID)
   ========================================================================== */

/* Élimination des débordements horizontaux et ajustement du texte sur iOS */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Grilles auto-adaptatives pour écrans tactiles */
.properties-grid-layout, .services-grid, .projects-grid, .shop-grid, .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Fluidité pour les modales en affichage vertical mobile */
#details-modal, #shop-modal {
    position: fixed !important;
    z-index: 999999 !important; /* Force le passage au premier plan devant le header */
    padding: 10px !important;
    box-sizing: border-box;
}

#details-modal > div, #shop-modal > div {
    max-height: 92vh !important;
    overflow-y: auto !important; /* Défilement interne si l'écran est petit */
    width: 100% !important;
    max-width: 480px !important;
}

/* Zone de comparaison défilable horizontalement au doigt sur mobile */
.table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; /* Défilement fluide à inertie sur iPhone */
}

.comparison-table {
    min-width: 720px !important; /* Garde le côte à côte horizontal forcé */
    width: 100% !important;
}

/* Taille de clic minimale réglementaire Apple / Google pour les pouces */
#modal-whatsapp-btn, .btn-submit, .btn-buy, .btn-compare-add {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
