﻿/*HEADER*/
.header {
    font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    position: relative;
    color: white;
    z-index: 1;
    overflow: hidden;
    background: #000;
    /* Responsive: on garde un header qui “respire” sur mobile */
    height: auto; /* au lieu de height: clamp(...) */
    min-height: clamp(320px, 35vw, 600px);
}

    /* Vidéos en plein conteneur */
    .header .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    /* Fond flouté qui remplit tout (pas de barres noires) */
    .header .hero-video--bg {
        object-fit: cover;
        object-position: center;
        filter: blur(18px) brightness(0.70);
        transform: scale(1.10);
        z-index: 0;
    }

    /* Avant-plan net, photo complète */
    .header .hero-video--fg {
        object-fit: contain;
        object-position: center;
        z-index: 1;
    }

    /* Overlay pour la lisibilité du texte */
    .header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 2;
    }

    /* Contenu au-dessus */
    .header > * {
        position: relative;
        z-index: 3;
    }

/* Ajustements mobile: un peu plus sombre pour le texte + blur moins fort */
@media (max-width: 768px) {
    .header {
        height: clamp(280px, 55vw, 480px);
        min-height: 280px;
    }

        .header .hero-video--bg {
            filter: blur(14px) brightness(0.65);
            transform: scale(1.12);
        }

        .header .hero-video--fg {
            object-fit: cover;
            object-position: center;
        }

        .header::before {
            background: rgba(0, 0, 0, 0.45);
        }
}

/* Très petits écrans: on optimise la lisibilité */
@media (max-width: 420px) {
    .header {
        height: auto;
        min-height: 320px; /* ajuste à 340px si tu veux plus d’air */
    }

        .header::before {
            background: rgba(0, 0, 0, 0.50);
        }
}

.header__nav-toggle[type="checkbox"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

    /* Focus visible sur le bouton burger (label juste après le checkbox) */
    .header__nav-toggle[type="checkbox"]:focus-visible + label.header__nav-toggle {
        outline: 2px solid rgba(255,255,255,0.9);
        outline-offset: 4px;
        border-radius: 8px;
    }

@media (hover: none), (pointer: coarse) {
    /*.header__container {
        background-color: rgba(0,0,0,0.35);
        backdrop-filter: blur(8px);
    }*/

    /* On force l’état "white icons" sur tactile */
    .button__black {
        opacity: 0;
        pointer-events: none;
    }

    .button__white {
        opacity: 1;
        pointer-events: auto;
    }

    .header__container:hover {
        background-color: transparent;
    }

        .header__container:hover .button__white {
            opacity: 1;
            pointer-events: auto;
        }

        .header__container:hover .button__black {
            opacity: 0;
            pointer-events: none;
        }

        .header__container:hover .header__shopping-link,
        .header__container:hover .cart__badge {
            color: var(--logoWhite);
        }
}

/*TOGGLE START*/
.header__nav-toggle {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    caret-color: transparent;
    z-index: 1002;
}


.header__container {
    position: relative;
    margin: auto;
    padding-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    transition: 0.3s ease;
}

.header__shopping {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-top: 0.75rem;
    z-index: 1000;
}

.header__shopping-link {
    text-decoration: none;
    padding: clamp(.35rem, 2vw, 1rem) 0;
    font-weight: 300;
    font-size: clamp(1.2rem, 3.4vw, 2.25rem);
    line-height: 1.05;
    color: #ffffff;
}

.button__language, .button__search, .button__mail, .button__cart {
    position: absolute;
    height: 2.2rem;
    top: 1.5rem;
    z-index: 1002;
}

.button__pc {
    display: none;
}

.button__language {
    left: 5rem;
}

.button__search {
    right: 7rem;
}

.button__mail {
    right: 4rem;
}

.button__cart {
    right: 1rem;
}

.cart__badge {
    position: absolute;
    display: block;
    width: 3.2rem;
    text-align: center;
    margin: auto;
    right: 0.50rem;
    top: 2.4rem;
    font-size: 0.9rem;
    color: #ffffff;
    z-index: 1001;
}

.button__black {
    opacity: 0;
    pointer-events: none;
}

.button__white {
    opacity: 1;
    pointer-events: auto;
}

.header__container:hover {
    background-color: #FFFFFFB3;
}

    .header__container:hover .button__white {
        opacity: 0;
        pointer-events: none;
    }

    .header__container:hover .button__black {
        opacity: 1;
        pointer-events: auto;
    }

    .header__container:hover .header__shopping-link {
        color: var(--logoBlack);
    }

    .header__container:hover .cart__badge {
        color: var(--logoBlack);
    }

.header__company {
    margin-top: 1rem;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 1rem; /* un peu d’air sur mobile */
}

.header__company-name {
    display: inline-block;
    white-space: nowrap;
    max-width: min(92vw, 1200px);
    text-overflow: ellipsis;
    text-decoration: none;
    text-shadow: 0 3px 18px rgba(0,0,0,.55);
    font-weight: 300;
    max-width: 22ch; /* force une césure “propre” quand c’est trop long */
    margin: auto auto;
    line-height: 1.12;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    padding: clamp(0.5rem, 2vw, 2rem);
    text-wrap: balance;
    color: #ffffff;
    z-index: 1000;
}

.header__nav {
    position: absolute;
    top: 0;
    left: 0;
}

.header__nav-logoItem {
    list-style-type: none;
}

.header__nav-logo {
    display: block;
    padding-bottom: 2rem;
    width: 75%;
    max-width: 25rem;
    margin: 12px auto 18px auto; /* top / left-right / bottom */
    height: auto;
}

.header__nav-list {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    caret-color: transparent;
    top: 0;
    height: 100%;
    width: 100vw;
    background-color: rgba(217, 55, 49, 0.8);
    margin: 0;
    padding: 0;
    transition: all 500ms ease-in-out;
    transform: translateX(-100%);
    z-index: 998;
}

.header__nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--logoWhite);
    font-size: 1.5rem;
    font-weight: 900;
}

.header__nav-item {
    list-style-type: none;
    border-top: 1px solid var(--logoWhite);
    width: 100%;
}

    .header__nav-item:last-child {
        border-bottom: 1px solid var(--logoWhite);
    }

.header__nav-link:hover {
    color: var(--logoRed);
    background-color: var(--logoWhite);
}

/*FOOTER*/
.footer {
    font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    background-color: var(--logoBlack);
}

.footer__map {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
}

    .footer__map iframe {
        width: 100%;
        height: clamp(240px, 22vw, 360px);
    }

@media (max-width:768px) {
    .footer__map iframe {
        height: 240px;
    }
}

.footer__container {
    position: relative;
    margin: auto;
    max-width: 1200px;
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-template-columns: auto;
    border-bottom: 1px solid var(--logoRed);
}

.footer__title {
    display: block;
    text-align: center;
    text-transform: uppercase;
    padding: 1rem;
    color: var(--logoWhite);
    font-size: 1.5rem;
}

.footer__company-text, .footer__company-link, .footer__nav-link, .footer__subscribe-text, .footer__bottom-text, .footer__bottom-link {
    color: var(--logoWhite);
}

.footer__company, .footer__nav, .footer__subscribe, .footer__social {
    padding: 2rem;
}

.footer__company {
    text-align: center;
}

.footer__company-text {
    display: block;
    color: var(--logoWhite);
    font-size: 0.9rem;
}

.footer__company-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__company-link {
    padding-left: 0.2rem;
}

.footer__company-link, .footer__nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

    .footer__company-link:hover {
        color: var(--logoRed);
    }

.footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
}

.footer a:focus-visible {
    outline: 2px solid var(--logoRed);
    outline-offset: 3px;
    border-radius: 6px;
}

.footer__nav-link:hover {
    color: var(--logoRed);
}

.footer__subscribe-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    justify-items: center;
    gap: 0.5rem;
}

    .footer__subscribe-container .textbox__subscribe {
        width: 100%;
        min-height: 44px;
        border-radius: 10px;
    }

    .footer__subscribe-container .button {
        min-height: 44px;
        border-radius: 10px;
    }

.footer__subscribe-text {
    padding: 0.5rem;
    display: block;
    text-align: center;
    line-height: 1.5;
}

.fab {
    color: var(--logoWhite);
    font-size: 2rem;
    transition: 0.3s ease;
    padding: 2rem;
}

    .fab:hover {
        color: var(--logoRed);
    }

.footer__social-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .footer__social-container a {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.22);
        text-decoration: none;
        transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

        .footer__social-container a:hover {
            border-color: var(--logoRed);
            background-color: rgba(255,255,255,0.06);
            transform: translateY(-1px);
        }

        .footer__social-container a:focus-visible {
            outline: 2px solid var(--logoRed);
            outline-offset: 3px;
        }

.fab {
    padding: 0;
    font-size: 1.35rem;
}

.footer__bottom {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.footer__bottom-text,
.footer__bottom-link {
    display: inline;
    margin: 0;
    text-decoration: none;
    transition: 0.3s ease;
}

    .footer__bottom-link:hover {
        color: var(--logoRed);
    }

/*Écran TABLET*/
@media (min-width: 769px) and (max-width: 1199px) {
    .header {
        height: auto;
        min-height: clamp(280px, 55vw, 480px);
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .header .hero-video--fg {
        object-fit: cover;
        object-position: center;
    }

    /* Option recommandé : le bg flouté devient redondant quand le fg est en cover */
    .header .hero-video--bg {
        display: none;
    }

    .footer__subscribe-container {
        grid-template-columns: 1fr auto;
        grid-template-rows: none;
        align-items: center;
    }
}

/*Écran PC*/
@media (min-width: 1200px) {
    .header__nav-toggle {
        display: none;
    }

    .header__nav-logo {
        display: none;
    }

    .button__mob {
        display: none;
    }

    .button__pc {
        display: block;
    }

    .button__language {
        left: 1rem;
    }

    .header__nav {
        position: relative;
    }

    .header__nav-item {
        border-top: none;
        width: auto;
    }

        .header__nav-item:last-child {
            border-bottom: none;
        }

    .header__nav-list {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        transform: translateX(0);
        background-color: transparent;
        z-index: 998;
    }

    .header__nav-link {
        position: relative;
        padding: 2rem;
        font-weight: 300;
        font-size: 1.5rem;
        width: auto;
    }

        .header__nav-link:hover {
            color: var(--logoWhite);
            background-color: transparent;
        }

        .header__nav-link:before {
            content: '';
            height: 3px;
            background: var(--logoWhite);
            position: absolute;
            top: 1.5rem;
            left: 1rem;
            right: 1rem;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform ease-in-out 300ms;
        }

    .header__nav .header__nav-link:hover:before {
        transform: scaleX(1);
        transform-origin: left;
    }

    .footer__container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }

    .footer__title,
    .footer__nav-list,
    .footer__company {
        text-align: left;
    }

    .footer__company-container {
        justify-content: flex-start;
    }

    .footer__social-container {
        justify-content: flex-start;
    }
}

/* =========================
   Toast "ajout au panier"
   ========================= */
.cart-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    max-width: 360px;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #d41f26, #a80e12); /* comme les boutons */
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.cart-toast--show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#cart-toast-text {
    display: inline-block;
}

/* =========================
   Arrow back to top
   ========================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #d41f26, #a80e12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    /* 👉 CACHÉ PAR DÉFAUT */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.back-to-top__icon {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 👉 ÉTAT VISIBLE (ajouté par le JS) */
.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hover */
.back-to-top:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.30);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1f1f1f;
    color: #fff;
    padding: 14px 18px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.25);
}

/* Cookie consent – toast moderne (server-side via Panel visible/false) */
.cookie-banner {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 760px;
    padding: .95rem 1rem;
    border-radius: 14px;
    background: rgba(18,18,18,.86);
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
}

.cookie-banner__text {
    font-size: .95rem;
    line-height: 1.35;
    opacity: .95;
}

.cookie-banner__link {
    color: rgba(255,255,255,.92);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: .25rem;
}

.cookie-banner__btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: .7rem 1rem;
    font-weight: 700;
    cursor: pointer;
    background: #d41f26; /* rouge BDF */
    color: #fff;
    box-shadow: 0 10px 24px rgba(212,31,38,.25);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

@media (hover:hover) {
    .cookie-banner__btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.02);
        box-shadow: 0 14px 30px rgba(212,31,38,.32);
    }
}

.cookie-banner__btn:active {
    transform: translateY(0);
}

/* Responsive: plein largeur en bas sur mobile */
@media (max-width: 768px) {
    .cookie-banner {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
    }

    .cookie-banner__content {
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

.cookie-banner {
    animation: cookieToastIn 500ms ease both;
}

@keyframes cookieToastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   HAMBURGER – Polish (CSS-only override)
   À coller à la fin de site.css
========================================= */

/* 1) Bouton burger: taille fixe + fond subtil (meilleure “hit area”) */
label.header__nav-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover:hover) {
    label.header__nav-toggle:hover {
        background: rgba(0,0,0,0.26);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }
}

label.header__nav-toggle:active {
    transform: scale(0.98);
}

/* 2) Burger lines: mêmes longueurs + transitions (au lieu des keyframes) */
.header__nav-icon,
.header__nav-icon::before,
.header__nav-icon::after {
    height: 2px;
    border-radius: 2px;
}

.header__nav-icon {
    width: 24px;
    background-color: var(--logoWhite);
    position: relative;
}

    .header__nav-icon::before,
    .header__nav-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 24px; /* mêmes dimensions = rotation “centrée” */
        background-color: var(--logoWhite);
        transition: transform 240ms ease, top 240ms ease, bottom 240ms ease, opacity 200ms ease;
        transform-origin: 50% 50%;
    }

    /* Position des barres */
    .header__nav-icon::before {
        top: -8px;
    }

    .header__nav-icon::after {
        bottom: -8px;
    }

/* Etat “open”: transform en X (rotation sur place) */
.header__nav-toggle:checked ~ .header__nav-toggle .header__nav-icon {
    background-color: transparent;
}

    .header__nav-toggle:checked ~ .header__nav-toggle .header__nav-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header__nav-toggle:checked ~ .header__nav-toggle .header__nav-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

/* 3) Panneau menu: transition ciblée + pas de clics fantômes */
.header__nav-list {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, visibility 0s linear 340ms;
    background: rgba(217, 55, 49, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.header__nav-toggle:checked ~ .header__nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, visibility 0s linear 0s;
}

/* Liens: micro-interactions plus clean (sans tout “inverser” brutalement) */
.header__nav-link {
    transition: background-color 160ms ease, color 160ms ease;
}

@media (hover:hover) {
    .header__nav-link:hover {
        background-color: rgba(255,255,255,0.14);
        color: var(--logoWhite);
    }
}

/* Accessibilité clavier */
.header__nav-link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.85);
    outline-offset: 4px;
    border-radius: 10px;
}

/* Réduction animation si demandé par l’OS */
@media (prefers-reduced-motion: reduce) {
    .header__nav-list,
    .header__nav-icon::before,
    .header__nav-icon::after,
    label.header__nav-toggle {
        transition: none !important;
    }
}

/* FIX: hamburger – forcer l'affichage des 3 lignes (override des anciens transforms) */
.header__nav-icon {
    position: relative !important;
}

    .header__nav-icon::before,
    .header__nav-icon::after {
        content: "" !important;
        opacity: 1 !important;
        display: block !important;
    }

    /* Etat fermé: barres haut/bas bien séparées */
    .header__nav-icon::before {
        top: -8px !important;
        bottom: auto !important;
        transform: none !important;
    }

    .header__nav-icon::after {
        bottom: -8px !important;
        top: auto !important;
        transform: none !important;
    }

/* Etat ouvert: X centré */
.header__nav-toggle:checked ~ .header__nav-toggle .header__nav-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
}

.header__nav-toggle:checked ~ .header__nav-toggle .header__nav-icon::after {
    bottom: 0 !important;
    transform: rotate(-45deg) !important;
}

/* Hamburger: enlever le fond/blur derrière l’icône */
label.header__nav-toggle {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (hover:hover) {
    label.header__nav-toggle:hover {
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* =========================================
   HAMBURGER / DRAWER – scoped (FIX PC menu)
   À coller à la fin de site.css
   Drawer: <=1199px | Desktop: >=1200px
========================================= */

/* ===== 1) Drawer/Hamburger uniquement sur mobile + tablette ===== */
@media (max-width: 1199px) {

    /* Bouton burger (label) – hit area sans blur */
    label.header__nav-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        /* Tu voulais enlever le blur/fond */
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: transform 160ms ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

        label.header__nav-toggle:active {
            transform: scale(0.98);
        }

    /* Lignes du burger */
    .header__nav-icon,
    .header__nav-icon::before,
    .header__nav-icon::after {
        height: 2px;
        border-radius: 2px;
    }

    .header__nav-icon {
        width: 24px;
        background-color: var(--logoWhite);
        position: relative !important;
    }

        .header__nav-icon::before,
        .header__nav-icon::after {
            content: "" !important;
            position: absolute;
            left: 0;
            width: 24px;
            background-color: var(--logoWhite);
            opacity: 1 !important;
            display: block !important;
            transition: transform 240ms ease, top 240ms ease, bottom 240ms ease, opacity 200ms ease;
            transform-origin: 50% 50%;
            animation: none !important; /* neutralise les anciens keyframes */
        }

        /* État fermé */
        .header__nav-icon::before {
            top: -8px !important;
            bottom: auto !important;
            transform: none !important;
        }

        .header__nav-icon::after {
            bottom: -8px !important;
            top: auto !important;
            transform: none !important;
        }

    /* État ouvert: X */
    input.header__nav-toggle:checked ~ label.header__nav-toggle .header__nav-icon {
        background-color: transparent;
    }

        input.header__nav-toggle:checked ~ label.header__nav-toggle .header__nav-icon::before {
            top: 0 !important;
            transform: rotate(45deg) !important;
        }

        input.header__nav-toggle:checked ~ label.header__nav-toggle .header__nav-icon::after {
            bottom: 0 !important;
            transform: rotate(-45deg) !important;
        }

    /* Panneau menu: transitions + pas de clic fantôme */
    .header__nav-list {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, visibility 0s linear 340ms;
        background: rgba(217, 55, 49, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    input.header__nav-toggle:checked ~ .header__nav-list {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, visibility 0s linear 0s;
    }

    /* Accessibilité */
    .header__nav-link:focus-visible {
        outline: 2px solid rgba(255,255,255,0.85);
        outline-offset: 4px;
        border-radius: 10px;
    }

    @media (prefers-reduced-motion: reduce) {
        .header__nav-list,
        .header__nav-icon::before,
        .header__nav-icon::after,
        label.header__nav-toggle {
            transition: none !important;
        }
    }
}

/* ===== 2) Desktop >=1200px : FORCER le menu visible (récupère le menu PC) ===== */
@media (min-width: 1200px) {

    /* Le burger ne sert plus */
    input.header__nav-toggle,
    label.header__nav-toggle {
        display: none !important;
    }

    /* Important: annule tout ce qui “cache” la liste */
    .header__nav-list {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* Selon ton CSS de base, tu peux déjà avoir display:flex.
       Je le force au besoin pour éviter un menu “en colonne” */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        overflow: visible !important;
        height: auto !important;
    }
}

/* =========================================
   HAMBURGER – Fix iPad + ne pas casser le menu PC
   À coller à la fin de site.css
========================================= */

/* 1) DESKTOP : on annule toute tentative de "panneau" sur le menu PC */
@media (min-width: 1200px) {
    .header__nav-list {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        z-index: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* 2) TABLET/MOBILE : menu = panneau plein viewport + scroll iOS */
@media (max-width: 1024px) {

    /* Le bouton burger doit rester au-dessus du panneau (sinon il "disparaît") */
    label.header__nav-toggle {
        position: relative !important;
        z-index: 10001 !important;
    }

    /* Quand c’est ouvert, on fige le bouton en haut à gauche pour pouvoir fermer */
    input.header__nav-toggle:checked + label.header__nav-toggle {
        position: fixed !important;
        top: calc(12px + env(safe-area-inset-top)) !important;
        left: 12px !important;
        z-index: 10001 !important;
    }

    /* Panneau */
    .header__nav-list {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: min(360px, 86vw) !important;
        /* hauteur viewport (iOS) */
        height: 100vh !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: calc(20px + env(safe-area-inset-top)) !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
        z-index: 10000 !important;
    }
}

/* =========================================================
   FIX iPad / Touch: le menu mobile doit sortir du header
   (force le drawer mobile sur appareils tactiles, même en
   mode "desktop site")
========================================================= */

@media (hover: none), (pointer: coarse) {

    /* Empêche certains "clippings" iOS quand le header a overflow/stacking context */
    .header {
        overflow: visible !important;
    }

    /* Drawer: plein viewport (pas "dans le header") */
    .header__nav-list {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        /* Hauteur viewport fiable iOS */
        height: 100vh !important;
        height: 100dvh !important;
        /* Largeur drawer (ajuste si tu veux plein écran) */
        width: min(360px, 86vw) !important;
        /* Important: permet de scroller si le menu est plus grand que l’écran */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Au lieu de centrer (qui peut “couper” en haut/bas), on aligne en haut */
        justify-content: flex-start !important;
        align-items: stretch !important;
        /* Espace pour le logo / X en haut */
        padding: 92px 0 24px !important;
        z-index: 9999 !important;
    }

    /* Liens sur toute la largeur */
    .header__nav-link {
        display: block;
        width: 100%;
    }

    /* États ouvert/fermé (on cible explicitement le checkbox) */
    input#header__nav-toggle:checked ~ .header__nav-list {
        transform: translateX(0) !important;
    }

    input#header__nav-toggle:not(:checked) ~ .header__nav-list {
        transform: translateX(-105%) !important;
    }
}