.fm-footer{
    --fm-pink:#d62587;
    --fm-pink-dark:#b81e72;
    --fm-dark:#17191f;
    --fm-dark-2:#101217;
    --fm-line:rgba(255,255,255,.11);
    --fm-muted:#9da4b1;
    --fm-white:#fff;
    width:100%;
    color:#fff;
    background:var(--fm-dark);
    overflow:hidden;
    font-size:15px;
}

.fm-footer-wrap{
    width:min(1320px,calc(100% - 64px));
    margin:auto;
}


/* NEWSLETTER */

.fm-footer-newsletter{
    background:#202329;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.fm-newsletter-inner{
    min-height:145px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}

.fm-newsletter-copy{
    flex:1;
}

.fm-eyebrow{
    display:block;
    color:var(--fm-pink);
    font-size:11px;
    font-weight:800;
    letter-spacing:2px;
    margin-bottom:8px;
}

.fm-newsletter-copy h2{
    margin:0;
    color:#fff;
    font-size:27px;
    line-height:1.2;
    font-weight:500;
}

.fm-newsletter-copy h2 b{
    color:var(--fm-pink);
}

.fm-newsletter-copy p{
    margin:8px 0 0;
    color:#aeb4bf;
    font-size:14px;
}

.fm-newsletter-form{
    width:min(500px,45%);
    height:50px;
    display:flex;
    background:#fff;
}

.fm-newsletter-form input{
    flex:1;
    min-width:0;
    border:0!important;
    outline:0!important;
    padding:0 18px;
    background:#fff!important;
    color:#222!important;
    font-size:14px;
    box-shadow:none!important;
}

.fm-newsletter-form button{
    width:145px;
    border:0;
    background:var(--fm-pink);
    color:#fff;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}

.fm-newsletter-form button:hover{
    background:var(--fm-pink-dark);
}


/* BENEFITS */

.fm-footer-benefits{
    background:#fff;
    color:#222;
}

.fm-benefits-grid{
    min-height:118px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.fm-benefit{
    display:flex;
    align-items:center;
    gap:18px;
    padding:20px 28px;
    border-right:1px solid #e5e5e5;
}

.fm-benefit:first-child{
    padding-left:0;
}

.fm-benefit:last-child{
    border-right:0;
}

.fm-benefit-symbol{
    width:45px;
    height:45px;
    flex:0 0 45px;
    display:grid;
    place-items:center;
    border:1px solid #ddd;
    border-radius:50%;
    color:var(--fm-pink);
    font-size:11px;
    font-weight:800;
}

.fm-benefit strong{
    display:block;
    font-size:15px;
    margin-bottom:5px;
}

.fm-benefit p{
    margin:0;
    color:#7d838c;
    font-size:12px;
    line-height:1.45;
}


/* MAIN FOOTER */

.fm-footer-main{
    background:
        radial-gradient(circle at 15% 40%,rgba(214,37,135,.07),transparent 25%),
        var(--fm-dark);
}

.fm-main-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1.2fr 1.25fr;
    gap:70px;
    padding:52px 0 44px;
}

.fm-footer-logo{
    display:inline-block;
    background:#fff;
    padding:10px 18px;
    border-radius:5px;
    line-height:0;
}

.fm-logo-white img{
    display:block;
    width:auto;
    height:auto;
    max-width:210px;
    max-height:75px;
    object-fit:contain;
}

.fm-footer-text-logo{
    color:#fff;
    font-size:29px;
    font-weight:900;
}

.fm-footer-brand>p{
    max-width:360px;
    margin:20px 0 23px;
    color:#9ea5b2;
    font-size:13px;
    line-height:1.7;
}

.fm-footer-socials{
    display:flex;
    gap:9px;
}

.fm-footer-socials a{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.17);
    color:#fff;
    border-radius:50%;
    font-size:13px;
    font-weight:700;
    transition:.2s ease;
}

.fm-footer-socials a:hover{
    background:var(--fm-pink);
    border-color:var(--fm-pink);
    transform:translateY(-2px);
}

.fm-footer-column h3{
    position:relative;
    margin:3px 0 24px;
    padding-bottom:12px;
    color:#fff;
    font-size:15px;
    font-weight:800;
    letter-spacing:.4px;
}

.fm-footer-column h3:after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:34px;
    height:2px;
    background:var(--fm-pink);
}

.fm-footer-column>a{
    display:block;
    padding:5px 0;
    color:#aeb5c0;
    font-size:13px;
    transition:.2s ease;
}

.fm-footer-column>a:hover{
    color:#fff;
    transform:translateX(3px);
}

.fm-footer-contact{
    margin-top:21px;
    padding-top:17px;
    border-top:1px solid var(--fm-line);
}

.fm-footer-contact strong{
    display:block;
    color:#fff;
    font-size:13px;
    margin-bottom:8px;
}

.fm-footer-contact a{
    display:block;
    margin:4px 0;
    color:#aeb5c0;
    font-size:13px;
}


/* PAYMENT */

.fm-footer-payment{
    background:var(--fm-dark-2);
    border-top:1px solid var(--fm-line);
    border-bottom:1px solid var(--fm-line);
}

.fm-payment-inner{
    min-height:100px;
    display:flex;
    align-items:center;
    gap:45px;
}

.fm-payment-copy{
    min-width:270px;
}

.fm-payment-copy strong{
    display:block;
    font-size:14px;
}

.fm-payment-copy span{
    display:block;
    margin-top:5px;
    color:#858c99;
    font-size:11px;
}

.fm-payment-methods{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.fm-payment-logo{
    height:45px;
    min-width:76px;
    padding:6px 13px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:5px;
}

.fm-payment-logo img{
    display:block;
    width:auto;
    height:29px;
    max-width:100px;
    object-fit:contain;
}

.fm-payment-logo.fm-feexpay{
    min-width:115px;
}

.fm-payment-text{
    height:45px;
    min-width:78px;
    padding:5px 13px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:5px;
    color:#fff;
    line-height:1;
}

.fm-payment-text b{
    font-size:13px;
}

.fm-payment-text small{
    margin-top:4px;
    font-size:9px;
}

.fm-mtn{
    background:#ffc400;
    color:#111;
}

.fm-moov{
    background:#f47b20;
}

.fm-celtis{
    background:#37a94c;
}


/* BOTTOM */

.fm-footer-bottom{
    background:#0b0d11;
}

.fm-bottom-inner{
    min-height:67px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.fm-bottom-inner p{
    margin:0;
    color:#7f8793;
    font-size:12px;
}

.fm-bottom-inner p strong{
    color:#fff;
}

.fm-bottom-links{
    display:flex;
    align-items:center;
    gap:20px;
}

.fm-bottom-links a{
    color:#858c98;
    font-size:12px;
}

.fm-bottom-links a:hover{
    color:#fff;
}

.fm-top-button{
    width:37px;
    height:37px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:50%;
    background:#191c23;
    color:#fff;
    cursor:pointer;
    font-size:19px;
    transition:.2s ease;
}

.fm-top-button:hover{
    background:var(--fm-pink);
    border-color:var(--fm-pink);
}


/* RESPONSIVE */

@media(max-width:1050px){

    .fm-main-grid{
        grid-template-columns:1.4fr 1fr 1fr;
        gap:40px;
    }

    .fm-footer-brand{
        grid-column:span 3;
    }

    .fm-benefit{
        padding:18px 15px;
    }

    .fm-benefit p{
        display:none;
    }

    .fm-payment-inner{
        flex-wrap:wrap;
        padding:20px 0;
    }
}

@media(max-width:760px){

    .fm-footer-wrap{
        width:calc(100% - 32px);
    }

    .fm-newsletter-inner{
        padding:30px 0;
        flex-direction:column;
        align-items:flex-start;
        gap:22px;
    }

    .fm-newsletter-form{
        width:100%;
    }

    .fm-benefits-grid{
        grid-template-columns:1fr 1fr;
    }

    .fm-benefit{
        border-bottom:1px solid #e5e5e5;
    }

    .fm-main-grid{
        grid-template-columns:1fr 1fr;
        gap:35px;
        padding:40px 0;
    }

    .fm-footer-brand{
        grid-column:span 2;
    }

    .fm-payment-copy{
        min-width:100%;
    }

    .fm-bottom-inner{
        padding:18px 0;
        flex-wrap:wrap;
    }
}

@media(max-width:500px){

    .fm-benefits-grid{
        grid-template-columns:1fr;
    }

    .fm-benefit,
    .fm-benefit:first-child{
        padding:17px 0;
        border-right:0;
    }

    .fm-main-grid{
        grid-template-columns:1fr;
    }

    .fm-footer-brand{
        grid-column:auto;
    }

    .fm-bottom-links{
        flex-wrap:wrap;
        gap:12px;
    }

    .fm-payment-methods{
        gap:7px;
    }

    .fm-payment-logo,
    .fm-payment-text{
        min-width:68px;
    }
}

/* ============================================================
   CORRECTIONS FINES — DÉBORDEMENTS UNIQUEMENT
   Ne modifie pas la maquette
   ============================================================ */

.fm-footer,
.fm-footer *,
.fm-footer *::before,
.fm-footer *::after{
    box-sizing:border-box;
}

/* Empêche les colonnes de forcer la largeur du footer */
.fm-footer-wrap,
.fm-newsletter-inner,
.fm-main-grid,
.fm-payment-inner,
.fm-footer-brand,
.fm-footer-column,
.fm-payment-copy,
.fm-payment-methods{
    min-width:0;
}

/* Newsletter : aucun élément ne doit sortir de son conteneur */
.fm-newsletter-copy{
    min-width:0;
}

.fm-newsletter-copy h2,
.fm-newsletter-copy p{
    max-width:100%;
    overflow-wrap:break-word;
}

.fm-newsletter-form{
    min-width:0;
    max-width:100%;
}

.fm-newsletter-form input{
    min-width:0;
    width:100%;
    max-width:100%;
}

.fm-newsletter-form button{
    flex:0 0 145px;
}

/* Logo : reste toujours contenu dans sa colonne */
.fm-footer-logo{
    max-width:100%;
}

.fm-logo-white{
    display:block;
    max-width:100%;
}

.fm-logo-white img{
    max-width:100%;
}

/* Texte de présentation */
.fm-footer-brand>p{
    overflow-wrap:break-word;
    word-break:normal;
}

/* Liens longs : notamment "Conditions générales de vente" */
.fm-footer-column>a,
.fm-footer-contact a{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
}

/* Empêche les colonnes de pousser la grille */
.fm-footer-column{
    min-width:0;
    overflow:hidden;
}

/* Moyens de paiement */
.fm-payment-methods{
    min-width:0;
    max-width:100%;
}

.fm-payment-logo,
.fm-payment-text{
    flex:0 1 auto;
    max-width:100%;
}

.fm-payment-logo img{
    max-width:100%;
    height:auto;
}

/* Copyright et liens du bas */
.fm-bottom-inner,
.fm-bottom-inner p,
.fm-bottom-links{
    min-width:0;
    max-width:100%;
}

.fm-bottom-inner p{
    overflow-wrap:anywhere;
}

.fm-bottom-links a{
    max-width:100%;
    overflow-wrap:anywhere;
}

/* ============================================================
   PETITE CORRECTION MOBILE DU FORMULAIRE
   ============================================================ */

@media(max-width:760px){

    .fm-newsletter-form{
        width:100%;
        max-width:100%;
    }

    .fm-newsletter-form input{
        min-width:0;
    }

    .fm-newsletter-form button{
        flex:0 0 145px;
    }

    .fm-footer-column,
    .fm-footer-brand,
    .fm-payment-copy{
        width:100%;
        max-width:100%;
    }

    .fm-payment-methods{
        width:100%;
    }

}

@media(max-width:500px){

    .fm-newsletter-form{
        width:100%;
        max-width:100%;
    }

    .fm-newsletter-form button{
        width:145px;
        flex-basis:145px;
    }

    .fm-payment-logo,
    .fm-payment-text{
        max-width:calc(50% - 4px);
    }

    .fm-bottom-links{
        max-width:100%;
    }

}


/* CORRECTIONS FINES — 3 POINTS UNIQUEMENT */
.fm-footer *,.fm-footer *::before,.fm-footer *::after{box-sizing:border-box;}
.fm-newsletter-inner,.fm-newsletter-copy,.fm-newsletter-form,.fm-footer-brand,.fm-footer-column,.fm-payment-inner,.fm-payment-copy,.fm-payment-methods{min-width:0;}
.fm-newsletter-copy h2,.fm-newsletter-copy p,.fm-footer-brand>p,.fm-footer-column>a,.fm-footer-contact a{max-width:100%;overflow-wrap:anywhere;}
.fm-newsletter-form{max-width:100%;}
.fm-newsletter-form input{min-width:0;width:100%;max-width:100%;}
.fm-newsletter-form button{flex:0 0 145px;}
.fm-benefit>div:last-child{min-width:0;max-width:100%;}
.fm-benefit strong,.fm-benefit p{max-width:100%;overflow-wrap:anywhere;}
.fm-payment-methods{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%;}
.fm-payment-logo{flex:0 1 auto;max-width:100%;}
.fm-payment-logo img{max-width:100%;height:auto;object-fit:contain;}
.fm-payment-text{display:none!important;}
@media(max-width:760px){.fm-newsletter-form{width:100%;max-width:100%;}.fm-newsletter-form input{min-width:0;}.fm-payment-inner{width:100%;}.fm-payment-methods{width:100%;}.fm-payment-logo{max-width:calc(50% - 6px);}}
@media(max-width:500px){.fm-newsletter-form button{flex:0 0 145px;width:145px;}.fm-payment-methods{gap:7px;}.fm-payment-logo{min-width:68px;max-width:calc(50% - 4px);}}

/* ============================================================
   CORRECTION PRÉCISE — FORMULAIRE « JE M'ABONNE »
   ============================================================ */

.fm-footer .fm-newsletter-form{
    width:min(500px,45%) !important;
    max-width:500px !important;
    min-width:0 !important;
    height:50px !important;
    min-height:50px !important;
    max-height:50px !important;
    margin:0 !important;
    padding:0 !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:stretch !important;

    gap:0 !important;

    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;

    overflow:hidden !important;
    box-shadow:none !important;
}

.fm-footer .fm-newsletter-form input[type="email"]{
    display:block !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    flex:1 1 auto !important;

    height:50px !important;
    min-height:50px !important;
    max-height:50px !important;

    margin:0 !important;
    padding:0 18px !important;

    border:0 !important;
    border-radius:0 !important;
    outline:none !important;

    background:#fff !important;
    color:#222 !important;

    font-family:inherit !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:50px !important;

    box-shadow:none !important;
    appearance:none !important;
    -webkit-appearance:none !important;
}

.fm-footer .fm-newsletter-form input[type="email"]::placeholder{
    color:#858b94 !important;
    opacity:1 !important;
}

.fm-footer .fm-newsletter-form button[type="submit"]{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    flex:0 0 145px !important;

    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;

    height:50px !important;
    min-height:50px !important;
    max-height:50px !important;

    margin:0 !important;
    padding:0 12px !important;

    border:0 !important;
    border-radius:0 !important;

    background:#d62587 !important;
    color:#fff !important;

    font-family:inherit !important;
    font-size:12px !important;
    font-weight:800 !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;

    box-shadow:none !important;
    outline:none !important;
    appearance:none !important;
    -webkit-appearance:none !important;

    cursor:pointer !important;
}

.fm-footer .fm-newsletter-form button[type="submit"]:hover{
    background:#b81e72 !important;
}

.fm-footer .fm-newsletter-form button[type="submit"]:focus{
    outline:none !important;
    box-shadow:none !important;
}

/* Le formulaire ne doit jamais dépasser son bloc parent */
.fm-footer .fm-newsletter-copy,
.fm-footer .fm-newsletter-inner{
    min-width:0 !important;
}

@media(max-width:760px){

    .fm-footer .fm-newsletter-form{
        width:100% !important;
        max-width:100% !important;
        height:50px !important;
    }

}

@media(max-width:500px){

    .fm-footer .fm-newsletter-form{
        width:100% !important;
        max-width:100% !important;
    }

    .fm-footer .fm-newsletter-form input[type="email"]{
        padding-left:14px !important;
        padding-right:10px !important;
        font-size:13px !important;
    }

    .fm-footer .fm-newsletter-form button[type="submit"]{
        flex:0 0 130px !important;
        width:130px !important;
        min-width:130px !important;
        max-width:130px !important;
        padding:0 8px !important;
        font-size:11px !important;
    }

}


/* AGRANDISSEMENT DES LOGOS DE PAIEMENT */
.fm-footer .fm-payment-logo{
    min-width:110px !important;
    height:58px !important;
    padding:7px 16px !important;
}

.fm-footer .fm-payment-logo.fm-feexpay{
    min-width:155px !important;
}

.fm-footer .fm-payment-logo img{
    width:auto !important;
    height:42px !important;
    max-width:150px !important;
    max-height:42px !important;
    object-fit:contain !important;
}

@media(max-width:500px){
    .fm-footer .fm-payment-logo{
        min-width:95px !important;
        height:54px !important;
        padding:6px 12px !important;
    }

    .fm-footer .fm-payment-logo.fm-feexpay{
        min-width:125px !important;
    }

    .fm-footer .fm-payment-logo img{
        height:38px !important;
        max-width:130px !important;
        max-height:38px !important;
    }
}


/* ============================================================
   CORRECTION — LISIBILITÉ DES RÉSEAUX SOCIAUX
   ============================================================ */

.fm-footer .fm-footer-socials{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
}

.fm-footer .fm-footer-socials a{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:#252932 !important;
    border:1px solid rgba(255,255,255,.32) !important;
    border-radius:50% !important;

    color:#fff !important;
    opacity:1 !important;

    font-size:15px !important;
    font-weight:800 !important;
    line-height:1 !important;

    text-align:center !important;
    text-decoration:none !important;

    text-shadow:0 1px 2px rgba(0,0,0,.7) !important;

    box-shadow:0 1px 4px rgba(0,0,0,.25) !important;
}

.fm-footer .fm-footer-socials a:hover{
    background:#d62587 !important;
    border-color:#d62587 !important;
    color:#fff !important;
    transform:translateY(-2px) !important;
}

/* LinkedIn possède deux caractères : on lui donne un peu plus d'espace */
.fm-footer .fm-footer-socials a[aria-label="LinkedIn"]{
    font-size:12px !important;
    letter-spacing:-.3px !important;
}

@media(max-width:500px){

    .fm-footer .fm-footer-socials{
        gap:8px !important;
    }

    .fm-footer .fm-footer-socials a{
        width:36px !important;
        height:36px !important;
        min-width:36px !important;
        min-height:36px !important;
        font-size:14px !important;
    }

}


/* ============================================================
   RÉSEAUX SOCIAUX — COULEURS ORIGINALES, SANS CERCLE
   ============================================================ */

.fm-footer .fm-footer-socials{
    display:flex !important;
    align-items:center !important;
    gap:18px !important;
}

.fm-footer .fm-footer-socials a{
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    min-height:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;

    box-shadow:none !important;
    text-shadow:none !important;

    font-size:0 !important;
    line-height:1 !important;

    transform:none !important;
}

.fm-footer .fm-footer-socials a:hover{
    background:transparent !important;
    border:0 !important;
    transform:translateY(-2px) !important;
}

/* Taille commune des icônes */
.fm-footer .fm-footer-socials a svg{
    width:21px !important;
    height:21px !important;

    display:block !important;

    stroke:none !important;
}

/* Facebook — bleu */
.fm-footer .fm-footer-socials a[aria-label="Facebook"] svg{
    color:#1877F2 !important;
    fill:#1877F2 !important;
}

/* TikTok — rendu multicolore */
.fm-footer .fm-footer-socials a[aria-label="TikTok"] svg{
    color:#fff !important;
    fill:#fff !important;
    filter:
        drop-shadow(-1px 0 #25F4EE)
        drop-shadow(1px 0 #FE2C55) !important;
}

/* Instagram — dégradé */
.fm-footer .fm-footer-socials a[aria-label="Instagram"] svg{
    color:#E4405F !important;
    fill:none !important;
    stroke:#E4405F !important;
}

/* YouTube — rouge */
.fm-footer .fm-footer-socials a[aria-label="YouTube"] svg{
    color:#FF0000 !important;
    fill:#FF0000 !important;
}

/* WhatsApp — vert */
.fm-footer .fm-footer-socials a[aria-label="WhatsApp"] svg{
    color:#25D366 !important;
    fill:#25D366 !important;
}

/* Instagram : contour + point visibles */
.fm-footer .fm-footer-socials a[aria-label="Instagram"] svg rect,
.fm-footer .fm-footer-socials a[aria-label="Instagram"] svg circle{
    stroke:#E4405F !important;
}

.fm-footer .fm-footer-socials a[aria-label="Instagram"] svg circle:last-child{
    fill:#E4405F !important;
    stroke:none !important;
}

@media(max-width:500px){

    .fm-footer .fm-footer-socials{
        gap:15px !important;
    }

    .fm-footer .fm-footer-socials a svg{
        width:20px !important;
        height:20px !important;
    }

}

/* ===== FIX DÉBORDEMENT MOBILE ===== */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        position: relative;
    }
    .fm-topbar,
    .fm-topbar-item,
    .fm-header,
    .fm-primary-menu {
        overflow: hidden !important;
        max-width: 100vw !important;
        position: relative !important;
    }
    .fm-topbar-item::after {
        max-width: 100% !important;
        right: 0 !important;
    }
}

/* ============================================ */
/* FIX MOBILE : débordement horizontal du topbar */
/* ============================================ */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        position: relative;
    }
    .fm-topbar,
    .fm-topbar-inner,
    .fm-topbar-track,
    .fm-topbar-item {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .fm-topbar * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* ============================================ */
/* FIX BANDEAU ROSÉ SPÉCIFIQUE SAFARI iOS       */
/* (n'affecte ni Android ni PC)                 */
/* ============================================ */

@supports (-webkit-touch-callout: none) {

    /* 1. Bloque tout scroll horizontal sur iOS */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    /* 2. Force le conteneur du bandeau à rester dans l'écran */
    .fm-topbar {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* 3. La piste qui défile : on la limite et on cache le trop-plein */
    .fm-topbar-track {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 4. Le contenu : on l'empêche de pousser la page vers la droite */
    .fm-topbar-set {
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    /* 5. Neutralise l'effet de décalage qui peut créer un vide à droite */
    .fm-topbar-item:last-child {
        padding-right: 15px !important;
    }
}

/* ============================================================ */
/* HEADER MOBILE RECONSTRUIT — iOS SAFE                          */
/* Actif uniquement sur écrans < 768px                           */
/* ============================================================ */

@media screen and (max-width: 767px) {

    /* ---------- RESET GLOBAL iOS ---------- */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    /* ---------- 1. TOPBAR MOBILE (bandeau rose) ---------- */
    .fm-topbar {
        width: 100% !important;
        max-width: 100vw !important;
        height: 32px !important;
        overflow: hidden !important;
        background: #D62587 !important;
    }

    .fm-topbar-track {
        width: 100% !important;
        height: 32px !important;
        overflow: hidden !important;
        animation-duration: 35s !important;
    }

    .fm-topbar-set {
        display: flex !important;
        height: 32px !important;
        white-space: nowrap !important;
    }

    .fm-topbar-item {
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 10.5px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    .fm-topbar-icon {
        width: 13px !important;
        height: 13px !important;
    }

    .fm-topbar-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .fm-topbar-socials {
        display: none !important;
    }

    /* ---------- 2. HEADER PRINCIPAL MOBILE ---------- */
    .fm-main-header {
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        overflow: hidden !important;
    }

    .fm-main-header-inner {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "brand actions"
            "search search" !important;
        gap: 10px 8px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* --- 2a. LOGO --- */
    .fm-brand {
        grid-area: brand !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
    }

    .fm-brand a {
        display: flex !important;
        align-items: center !important;
        max-width: 100% !important;
    }

    .fm-brand img {
        max-height: 34px !important;
        width: auto !important;
        max-width: 160px !important;
        object-fit: contain !important;
    }

    /* --- 2b. ACTIONS (Compte / Favoris / Panier) --- */
    .fm-header-actions {
        grid-area: actions !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
    }

    .fm-header-action {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        text-decoration: none !important;
        color: #222 !important;
        min-width: 34px !important;
    }

    .fm-action-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .fm-action-content {
        display: none !important;
    }

    /* --- 2c. RECHERCHE --- */
    .fm-search-area {
        grid-area: search !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .fm-search-form {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 38px !important;
        background: #f5f5f5 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 20px !important;
        padding: 0 4px 0 12px !important;
        overflow: hidden !important;
    }

    .fm-search-icon svg {
        width: 16px !important;
        height: 16px !important;
        stroke: #888 !important;
    }

    .fm-search-input {
        flex: 1 !important;
        min-width: 0 !important;
        border: none !important;
        background: transparent !important;
        font-size: 13px !important;
        padding: 0 8px !important;
        height: 100% !important;
        outline: none !important;
    }

    .fm-search-button {
        background: #D62587 !important;
        color: #fff !important;
        border: none !important;
        height: 30px !important;
        padding: 0 14px !important;
        border-radius: 16px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .fm-search-hint {
        display: none !important;
    }
}
