:root {
    --mim-dark: #0f172a;
    --swift-blue: #0b2240;
    --mim-accent: #ef9d22;
    --promo-red: #e11d48;
    --success-green: #10b981;
    --whatsapp-green: #25d366;
    /* Transitions ciblées GPU */
    --transition-smooth: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    border: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 120px;
    overflow-y: scroll;
}

body {
    color: var(--mim-dark);
    background: linear-gradient(to bottom,
        #ffffff 0%,
        #ffffff 5%,
        #cbd5e1 15%,
        #475569 35%,
        var(--swift-blue) 65%,
        var(--swift-blue) 100%
    );
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.fade-in {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    /* Évite le scintillement sur certains GPU lors de l'animation */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    /* will-change libéré après l'animation pour économiser la mémoire GPU */
    will-change: auto;
}

/* --- ACCESSIBILITÉ : texte visible uniquement par les lecteurs d'écran --- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- ACCESSIBILITÉ : lien d'évitement --- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    background: var(--swift-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 3000;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

/* --- ACCESSIBILITÉ : focus clavier visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.dot:focus-visible,
.category-card:focus-visible {
    outline: 3px solid var(--mim-accent);
    outline-offset: 2px;
}

/* --- ICÔNES SVG (remplacent Font Awesome) --- */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.icon-lg { width: 1.3em; height: 1.3em; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0; z-index: 1000;
    padding: 20px 0 15px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled { padding: 15px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.nav-wrapper {
    position: relative; display: flex; flex-direction: column;
    align-items: center; gap: 20px; width: 100%; transition: gap 0.3s ease;
}
header.scrolled .nav-wrapper { flex-direction: row; justify-content: space-between; align-items: center; height: 48px; gap: 0; }

.nav-logo-container { z-index: 10; }

.brand-logo { height: 75px; width: auto; object-fit: contain; transition: height 0.3s ease; display: block; }
header.scrolled .brand-logo { height: 48px; }

.logo-fallback { font-size: 1.8rem; font-weight: 900; color: var(--swift-blue); display: none; letter-spacing: 2px; transition: font-size 0.3s ease; }
header.scrolled .logo-fallback { font-size: 1.3rem; }

.nav-links-container { display: flex; list-style: none; align-items: center; justify-content: center; gap: 30px; transition: gap 0.3s ease; }
header.scrolled .nav-links-container { gap: 25px; }

.nav-links-container a { color: #334155; font-weight: 600; font-size: 0.85rem; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; padding-bottom: 4px; position: relative; transition: color 0.2s ease; white-space: nowrap; }
.nav-links-container a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1.5px; background-color: var(--mim-accent); transition: width 0.3s ease, transform 0.3s ease; transform: translateX(-50%); }
.nav-links-container a:hover { color: var(--mim-accent); }
.nav-links-container a:hover::after { width: 100%; }

.burger-menu { display: none !important; cursor: pointer; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; z-index: 1100; background: none; }
.burger-menu span { display: block; height: 2px; width: 100%; background-color: var(--swift-blue); transition: transform 0.3s ease; }
.mobile-nav-links { display: none; }

/* --- HERO SLIDER --- */
.hero-slider-section { position: relative; height: 75vh; min-height: 500px; width: 100%; overflow: hidden; background-color: #000; margin-top: 165px; border-radius: 4px; }
.slider-container { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    /* Transition uniquement sur les propriétés composites (opacity) →
       zéro layout, zéro paint, uniquement une opération GPU */
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    display: flex; align-items: center;
    /* Chaque slide sur sa propre couche GPU pour éviter les repaints croisés */
    will-change: opacity;
    transform: translate3d(0, 0, 0);
}
.slide.active {
    opacity: 1; visibility: visible;
    /* visibility revient instantanément à l'affichage (délai 0 sur le slide entrant) */
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s;
}
.slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; filter: brightness(0.45); z-index: 1;
    /* Couche GPU dédiée : évite les repaints lors du crossfade entre slides */
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    /* Qualité de redimensionnement haute résolution */
    image-rendering: -webkit-optimize-contrast;
}
.slide-content { position: relative; z-index: 2; color: #ffffff; width: 100%; max-width: 850px; margin: 0 auto; text-align: center; padding: 0 20px; }

.badge-new { background: var(--mim-accent); color: #000; padding: 5px 15px; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; border-radius: 2px; margin-bottom: 15px; display: inline-block; }
.badge-recrutement { background: var(--success-green); color: #fff; padding: 5px 15px; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; border-radius: 2px; margin-bottom: 15px; display: inline-block; }

/* h1 ET h2 partagent le même style : un seul <h1> par page (SEO), les autres slides utilisent h2 */
.slide-content h1, .slide-content h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.slide-content p { color: #f1f5f9; font-size: clamp(1rem, 1.8vw, 1.15rem); margin-bottom: 30px; font-weight: 300; }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255, 255, 255, 0.15); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; appearance: none; -webkit-appearance: none; font: inherit; }
.slider-arrow:hover { background: rgba(255, 255, 255, 0.35); color: var(--mim-accent); }
.arrow-prev { left: 20px; } .arrow-next { right: 20px; }

.slider-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: background-color 0.3s ease, width 0.3s ease; padding: 0; }
.dot.active { background: #fff; width: 22px; border-radius: 10px; }

.btn { display: inline-block; padding: 13px 40px; font-weight: 700; transition: background-color 0.2s ease, color 0.2s ease; cursor: pointer; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; text-decoration: none; border-radius: 4px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background-color: var(--mim-accent); color: white; }
.btn-primary:hover { background-color: white; color: var(--swift-blue); }
.btn-secondary { background-color: #cbd5e1; color: var(--swift-blue); }
.btn-secondary:hover { background-color: #94a3b8; }
.btn-success { background-color: var(--success-green); color: white; }
.btn-success:hover { background-color: #059669; color: white; }

.section-header { text-align: center; margin-bottom: 35px; }
.section-title { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
.produits .section-title { color: var(--swift-blue); }
.apropos .section-title, .recrutement-section .section-title, .contact .section-title { color: #ffffff; }
.section-subtitle { font-size: 0.85rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.produits .section-subtitle { color: #475569; }
.apropos .section-subtitle, .recrutement-section .section-subtitle, .contact .section-subtitle { color: var(--mim-accent); }

/* --- PRODUITS (Catalogue GPU Optimisé) --- */
.produits { padding: 50px 0; background-color: transparent; }
/* content-visibility appliqué à la grille entière (pas aux cartes individuelles)
   pour éviter le bug de largeur 1px sur les images en position:absolute */
.produits .categories-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}
.mim-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
    background: #ffffff; overflow: hidden; border-radius: 6px;
    display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    will-change: transform; isolation: isolate;
    transition: var(--transition-smooth);
    /* content-visibility: auto retiré → incompatible avec les enfants en position:absolute
       (contain-intrinsic-size:1px forçait une largeur de 1px sur les images internes).
       On applique content-visibility au niveau de la section entière, pas des cartes. */
}
.category-card:hover { transform: translate3d(0, -5px, 0); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }

.category-slider-box {
    position: relative; height: 380px; overflow: hidden; background: #ffffff;
    padding: 0; display: flex; align-items: center; justify-content: center;
    transform: translate3d(0, 0, 0);
}

.category-slider-wrapper { position: relative; width: 100%; height: 100%; }

.category-slide-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: #f1f5f9;
    will-change: opacity, transform;
    transform: scale(1) translate3d(0,0,0);
    /* Sécurité : empêche toute valeur calculée de tomber à 0 ou 1px
       en cas de containment mal résolu sur un navigateur ancien */
    min-width: 1px; min-height: 1px;
    /* Force la couche GPU propre pour éviter le scintillement au fade */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.category-slide-img.active { opacity: 1; }

/* Zoom fluide sans saccades */
.category-card:hover .category-slide-img.active {
    transform: scale(1.05) translate3d(0,0,0);
}

.category-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 34, 64, 0.45); display: flex; align-items: center;
    justify-content: center; opacity: 0; transition: opacity 0.3s ease;
    z-index: 5;
}
.category-card:hover .category-overlay, .category-card:focus-within .category-overlay { opacity: 1; }

.btn-discover { background: white; color: var(--swift-blue); padding: 12px 28px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; border: none; cursor: pointer; border-radius: 2px; transition: background-color 0.2s ease, color 0.2s ease; }
.btn-discover:hover { background: var(--mim-accent); color: white; }

.category-info { padding: 20px 15px; text-align: center; background: #ffffff; border-top: 1px solid #f1f5f9; position: relative; z-index: 2; }
.category-brand-tag { font-size: 0.75rem; color: var(--mim-accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; display: block; }
.category-info h3 { font-size: 1.2rem; color: var(--swift-blue); margin-bottom: 8px; font-weight: 700; }
.category-info p { color: #64748b; font-size: 0.85rem; line-height: 1.5; }

/* --- FENÊTRE MODALE PRODUITS (Zéro Lag - Optimisée GPU) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.92);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    /* visibility avec délai côté sortie (attend la fin du fondu) */
    transition: opacity 0.25s ease-out, visibility 0s linear 0.25s;
    will-change: opacity;
    transform: translate3d(0, 0, 0);
}
.modal-overlay.active {
    opacity: 1; visibility: visible;
    /* visibility immédiate à l'ouverture */
    transition: opacity 0.25s ease-out, visibility 0s linear 0s;
}

.modal-content {
    background: #f8fafc; width: 90%; max-width: 1100px; max-height: 85vh;
    border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translate3d(0, 15px, 0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.modal-overlay.active .modal-content { transform: translate3d(0, 0, 0); }

.modal-header {
    padding: 20px 30px; background: white; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 1.5rem; color: var(--swift-blue); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.btn-close { background: none; border: none; font-size: 1.5rem; color: #64748b; cursor: pointer; transition: color 0.2s; line-height: 1; }
.btn-close:hover { color: var(--promo-red); }

.modal-body { padding: 30px; overflow-y: auto; flex-grow: 1; -webkit-overflow-scrolling: touch; }
.sub-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }

.sub-product-card {
    background: white; border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
    display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.sub-product-card:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 8px 25px rgba(0,0,0,0.1); will-change: transform; }

.sub-product-img {
    height: 260px; width: 100%; object-fit: cover;
    padding: 0; border-bottom: 1px solid #f1f5f9; background: #fff;
}

.sub-product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.sub-product-title { font-size: 1.05rem; color: var(--swift-blue); font-weight: 700; margin-bottom: 15px; line-height: 1.4; min-height: 44px; }

.volumes-title { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.volumes-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.volume-badge {
    background: #f1f5f9; color: #334155; font-size: 0.75rem; font-weight: 700;
    padding: 5px 12px; border-radius: 4px; border: 1px solid #e2e8f0;
}

.modal-footer { padding: 15px 30px; background: white; border-top: 1px solid #e2e8f0; text-align: right; }

/* --- À PROPOS --- */
.apropos {
    padding: 50px 0; background-color: transparent;
    /* Diffère le rendu jusqu'à l'approche du viewport → gain LCP mesurable */
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}
.about-card-frame { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 50px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text-side p { color: #334155; font-size: 1rem; margin-bottom: 20px; font-weight: 400; line-height: 1.7; }
.about-video-side { position: relative; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); background: #000; }
/* ── Video wrapper — YouTube embed ── */
.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.yt-frame {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
/* Poster cliquable affiché avant le clic */
.video-poster-overlay {
    position: absolute; inset: 0; z-index: 2;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.video-poster-overlay img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* Assombrit légèrement pour faire ressortir le bouton play */
    filter: brightness(.75);
}
.video-play-btn {
    position: relative; z-index: 3;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--mim-accent, #ef9d22);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(239,157,34,.55);
    transition: transform .25s ease, box-shadow .25s ease, background .2s;
}
.video-play-btn:hover {
    transform: scale(1.1);
    background: #f7b84a;
    box-shadow: 0 14px 44px rgba(239,157,34,.65);
}
.video-play-btn svg { margin-left: 4px; } /* compense optiquement le triangle */

/* --- RECRUTEMENT / CARRIÈRES --- */
.recrutement-section {
    padding: 50px 0; background-color: transparent;
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}
.recrutement-card-frame { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 50px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

.candidature-box { background: #f8fafc; border-radius: 8px; padding: 35px; border: 1px solid #e2e8f0; }
.candidature-box h3 { font-size: 1.5rem; color: var(--swift-blue); margin-bottom: 12px; font-weight: 800; }
.candidature-box p { color: #475569; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.file-input-wrapper { margin-bottom: 25px; }
.file-input-wrapper label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 8px; }
.file-input-wrapper input[type="file"] { background: white; padding: 10px; border-radius: 4px; border: 1px solid #cbd5e1; width: 100%; cursor: pointer; }

/* --- MESSAGES DE STATUT FORMULAIRE --- */
.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.form-message.visible { display: flex; }
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

/* --- CONTACT --- */
.contact {
    padding: 50px 0; background-color: transparent;
    content-visibility: auto;
    contain-intrinsic-size: auto 750px;
}
.contact-card-frame { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 50px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form-side h3, .contact-info-side h3 { font-size: 1.5rem; margin-bottom: 25px; font-weight: 700; color: var(--swift-blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 0; background: transparent; border-bottom: 1px solid #cbd5e1; color: var(--mim-dark); margin-bottom: 25px; outline: none; font-size: 0.95rem; transition: border-color 0.2s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-bottom-color: var(--swift-blue); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
.contact-details { list-style: none; margin-bottom: 25px; }
.contact-details li { font-size: 0.95rem; color: #475569; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.contact-details .icon { color: var(--mim-accent); width: 15px; height: 15px; font-size: 1.1rem; }
.map-wrapper {
    width: 100%; height: 450px; border-radius: 6px;
    overflow: hidden; border: 1px solid #e2e8f0;
    /* Réserve l'espace avant le chargement de l'iframe → évite un CLS (Cumulative Layout Shift) */
    background: #f1f5f9;
    /* Placeholder visuel pendant le chargement Maps */
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(203,213,225,0.4) 8px,
        rgba(203,213,225,0.4) 9px
    );
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- FOOTER --- */
footer {
    background-color: var(--swift-blue); color: rgba(255, 255, 255, 0.5);
    padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; gap: 20px; }
.footer-flex strong { color: #ffffff; }

.agency-highlight-container { display: flex; align-items: center; gap: 12px; text-decoration: none; color: rgba(255, 255, 255, 0.5); transition: color 0.2s; }
.agency-highlight-container:hover { color: #ffffff; }

.agency-logo-pod {
    background-color: #ffffff; padding: 8px 25px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease; min-width: 160px;
}
.agency-highlight-container:hover .agency-logo-pod { transform: scale(1.03); }
.agency-logo { height: 22px; width: auto; display: block; }
.agency-text-fallback { font-weight: 700; color: var(--swift-blue); display: none; }

/* --- BOUTON FLOTTANT WHATSAPP --- */
.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
.whatsapp-fab .icon { width: 30px; height: 30px; stroke: none; fill: currentColor; }

/* --- RESPECT DES PRÉFÉRENCES DE MOUVEMENT RÉDUIT --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    html { scroll-padding-top: 85px; }
    .container { padding: 0 25px; }
    header { padding: 15px 0; }
    .nav-wrapper, header.scrolled .nav-wrapper { flex-direction: row !important; justify-content: space-between !important; gap: 0 !important; height: auto; }
    .nav-links-container { display: none !important; }
    .burger-menu { display: flex !important; }
    .brand-logo { height: 48px !important; }
    .mobile-nav-links { display: none; position: fixed; top: 78px; right: -100%; width: 100%; height: calc(100vh - 78px); background-color: #ffffff; flex-direction: column; align-items: center; padding-top: 50px; gap: 25px; list-style: none; transition: right 0.3s ease; z-index: 1050; }
    .mobile-nav-links.active { right: 0; }
    .mobile-nav-links a { font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--swift-blue); text-transform: uppercase;}
    .hero-slider-section { margin-top: 78px; height: 60vh; }
    .category-slider-box { height: 300px; }
    .about-wrapper, .contact-grid, .form-row { grid-template-columns: 1fr; gap: 20px; }
    .footer-flex { flex-direction: column; gap: 15px; text-align: center; }
    .mim-products-grid { grid-template-columns: repeat(2, 1fr); }
    .sub-products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .sub-product-img { height: 220px; }
    .modal-content { width: 95%; max-height: 90vh; }
    .map-wrapper { height: 300px; }
    .whatsapp-fab { bottom: 15px; right: 15px; width: 52px; height: 52px; }
}
@media (max-width: 640px) {
    .mim-products-grid { grid-template-columns: 1fr; }
}
