/* Bance Archives · fond noir uni, titres en capitales très grasses, vêtements détourés qui flottent sur le noir */

:root {
  --fond: #000000;
  --fond-accueil: #18181b;   /* couleur unie de l'accueil : changer cette seule valeur */
  --surface: #121214;
  --surface-2: #1c1c1f;
  --encre: #ffffff;
  --encre-douce: #9b9ba1;
  --encre-faible: #5e5e64;
  --filet: #2a2a2e;
  --alerte: #ff8a75;
  --gouttiere: clamp(16px, 3vw, 40px);
  --haut: 72px;              /* hauteur de l'en-tête */
  --menu-largeur: 300px;     /* place réservée au menu fixe sur grand écran */
  /* Police système la plus grasse de chaque appareil : SF Pro (Apple), Segoe UI (Windows), Roboto (Android) */
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fond); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--fond); color: var(--encre);
  font: 500 15px/1.55 var(--police);
  -webkit-font-smoothing: antialiased;
}
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--encre); color: var(--fond); }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.lien-evitement { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--encre); color: var(--fond); padding: 10px 14px; font-weight: 800; }
.lien-evitement:focus { top: 10px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typo : titres très gras en capitales, libellés en capitales sobres */
.titre-geant, .appel, .menu a, .sac-texte, .prix-gras, .fiche h1, .btn, .onglets button, .tiroir-entete h2, .guide-carte h2 {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
}
.caps, .carte h2, legend, .plus summary, .recap h2 {
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.titre-geant { font-size: clamp(40px, 7vw, 88px); margin: 0 0 20px; }
.chapo { color: var(--encre-douce); max-width: 56ch; margin: 0 0 40px; }
h1, h2, h3 { margin: 0; }

/* En-tête : logo à gauche, panier à droite ; sur mobile, burger · logo centré · sac */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--haut);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gouttiere);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.entete > * { pointer-events: auto; }
.marque img { width: 132px; }
.burger { display: none; }
.sac { position: relative; display: inline-flex; align-items: center; text-decoration: none; padding: 8px 14px 8px 0; }
.sac-texte { font-size: 26px; }
.sac-icone { display: none; width: 26px; height: 26px; }
.bulle {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #4a4a50; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.sac.secousse .bulle { animation: secousse 0.5s ease; }
@keyframes secousse { 30% { transform: scale(1.35); } 60% { transform: scale(0.9); } }

/* Menu : empilé en bas à gauche sur grand écran */
.menu { position: fixed; z-index: 25; left: var(--gouttiere); bottom: 32px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: inline-block; font-size: 25px; text-decoration: none; padding: 2px 0; transition: color 0.15s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--encre-faible); }
.menu-pied { display: none; }

/* Zone de contenu : sous l'en-tête, à droite du menu sur grand écran */
.zone { padding: calc(var(--haut) + 32px) var(--gouttiere) 120px; }
@media (min-width: 1100px) {
  .zone { padding-left: calc(var(--menu-largeur) + var(--gouttiere)); }
}

/* Accueil : couleur unie plein écran, logo et appel au centre */
.page-accueil { background: var(--fond-accueil); }
.page-accueil .entete { background: none; }
.accueil { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 36px; padding: var(--haut) var(--gouttiere); text-align: center; }
.accueil h1 img { width: min(560px, 78vw); }
.appel { font-size: clamp(34px, 6vw, 64px); text-decoration: none; transition: opacity 0.2s; }
.appel:hover { opacity: 0.65; }

/* Onglets de catégories : ligne qui défile horizontalement */
.onglets {
  list-style: none; margin: 0 calc(var(--gouttiere) * -1) 40px; padding: 0 var(--gouttiere);
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--filet);
}
.onglets::-webkit-scrollbar { display: none; }
.onglets button {
  background: none; border: 0; color: var(--encre-faible); font-size: 17px; padding: 12px 0 14px; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.onglets button:hover { color: var(--encre-douce); }
.onglets button[aria-pressed="true"] { color: var(--encre); border-bottom-color: var(--encre); }

/* Grille : vêtements détourés sur un halo discret, nom et prix centrés */
.grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.carte { position: relative; text-align: center; }
.visuel {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: radial-gradient(ellipse 60% 50% at 50% 52%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.visuel img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carte:hover .visuel img { transform: scale(1.05) translateY(-4px); }
.carte h2 { font-size: 13px; line-height: 1.35; margin: 14px 0 6px; }
.carte a { text-decoration: none; }
.carte a::after { content: ""; position: absolute; inset: 0; }
.carte:has(a:focus-visible) { outline: 2px solid var(--encre); outline-offset: 6px; }
.carte a:focus-visible { outline: none; }
.prix-gras { font-size: 16px; letter-spacing: 0; }
.badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--encre); color: var(--fond); padding: 4px 10px; font-size: 11px; }
.carte.epuise .visuel img { opacity: 0.4; }

/* Fiche produit */
.fiche { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.colonne-galerie { position: relative; min-width: 0; }
.galerie { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.galerie::-webkit-scrollbar { display: none; }
.fiche-visuel { scroll-snap-align: start; aspect-ratio: 4 / 5; display: grid; place-items: center; background: radial-gradient(ellipse 60% 50% at 50% 52%, rgba(255, 255, 255, 0.08), transparent 70%); }
.fiche-visuel img { width: 100%; height: 100%; object-fit: contain; }
.fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px;
  background: none; border: 0; color: var(--encre); font-size: 28px; cursor: pointer;
}
.fleche:disabled { opacity: 0.2; cursor: default; }
.fleche-g { left: 0; }
.fleche-d { right: 0; }
.points { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.points span { width: 6px; height: 6px; border-radius: 50%; background: var(--encre-faible); transition: background 0.2s; }
.points span.actif { background: var(--encre); }

.fiche-infos { position: sticky; top: calc(var(--haut) + 24px); max-width: 480px; }
.fil { color: var(--encre-faible); font-size: 12px; margin-bottom: 18px; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--encre); }
.fiche h1 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
.fiche .prix-gras { font-size: 24px; margin: 0 0 24px; }
.fiche-description { color: var(--encre-douce); margin: 0 0 28px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 12px; font-size: 12px; }
.choix-taille { margin-bottom: 8px; }
.tailles { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.taille { position: relative; }
.taille input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.taille span {
  display: grid; place-items: center; height: 50px; cursor: pointer; border-radius: 6px;
  background: var(--surface-2); font-weight: 800; font-size: 14px; transition: background 0.15s, color 0.15s;
}
.taille span:hover { background: #2a2a2f; }
.taille input:checked + span { background: var(--encre); color: var(--fond); }
.taille input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 3px; }
.taille input:disabled + span { color: #4b4b50; background: var(--surface); cursor: not-allowed; text-decoration: line-through; }
.choix-taille.invalide .taille span { box-shadow: inset 0 0 0 1.5px var(--alerte); }
.erreur-taille { color: var(--alerte); font-size: 13px; margin: 10px 0 0; }
.erreur-taille:empty { display: none; }
.lien-guide { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mannequin { color: var(--encre-douce); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; margin: 14px 0 0; }
.btn-ajouter { margin-top: 20px; }
.atouts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--encre); }
.reassurance { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: var(--encre-douce); }
.reassurance li::before { content: "— "; color: var(--encre-faible); }
.reassurance li:empty { display: none; }
.suggestions { padding: 0 var(--gouttiere) 120px; }
@media (min-width: 1100px) { .suggestions { padding-left: calc(var(--menu-largeur) + var(--gouttiere)); } }
.suggestions h2 { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 28px; }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 32px; border-radius: 6px; border: 2px solid var(--encre);
  background: var(--encre); color: var(--fond); font-size: 16px; letter-spacing: 0; cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--encre); }
.btn-contour { background: transparent; color: var(--encre); }
.btn-contour:hover { background: var(--encre); color: var(--fond); }
.btn-plein { width: 100%; }
.btn-lien { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--encre-douce); }
.btn-lien:hover { color: var(--encre); }
.statut { min-height: 24px; font-size: 13px; color: var(--encre-douce); margin: 10px 0 0; }
.statut a { color: var(--encre); }
.statut.erreur { color: var(--alerte); }

/* Volets d'informations */
.plus { border-top: 1px solid var(--filet); margin-top: 32px; }
.plus details { border-bottom: 1px solid var(--filet); }
.plus summary { cursor: pointer; padding: 16px 0; min-height: 48px; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.plus summary::-webkit-details-marker { display: none; }
.plus summary::after { content: "+"; font-size: 18px; }
.plus details[open] summary::after { content: "−"; }
.plus ul, .plus p { color: var(--encre-douce); margin: 0 0 18px; padding-left: 18px; }
.plus p { padding: 0; }

/* Guide des tailles : schéma + légende + tableau par type de vêtement */
.guide-cartes { display: grid; gap: 24px; }
.guide-carte { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 24px 40px; align-items: center; background: var(--surface); border-radius: 14px; padding: clamp(20px, 3vw, 36px); }
.guide-carte h2 { font-size: 26px; grid-column: 1 / -1; }
.guide-schema { margin: 0; }
.guide-schema img { width: 100%; }
.legende { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-douce); }
.lettre { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--encre); color: var(--fond); font-size: 11px; font-weight: 900; margin-right: 10px; vertical-align: middle; }
.tableau { overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th, .tableau td { padding: 13px 8px; text-align: center; border-bottom: 1px solid var(--filet); }
.tableau thead th { font-weight: 900; font-size: 15px; border-bottom: 2px solid var(--encre); }
.tableau tbody th { font-weight: 900; text-align: left; }
.tableau thead th:first-child { text-align: left; }

/* Fenêtre du guide sur la fiche produit */
.modale { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--encre); overflow: auto; }
.modale[open] { animation: fondu 0.25s ease-out; }
.modale::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.modale .guide-carte { background: none; border-radius: 0; }
.modale-entete { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; }

/* Panier latéral */
.sans-defilement { overflow: hidden; }
.tiroir {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(440px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--surface); color: var(--encre); display: none; flex-direction: column;
}
.tiroir[open] { display: flex; animation: entree-tiroir 0.38s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tiroir.sortie { animation: sortie-tiroir 0.26s ease-in forwards; }
.tiroir::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); animation: fondu 0.38s ease-out; }
@keyframes entree-tiroir { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sortie-tiroir { to { transform: translateX(100%); } }
@keyframes fondu { from { opacity: 0; } }
.tiroir-entete { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--filet); }
.tiroir-entete h2 { font-size: 28px; }
.fermer { background: none; border: 0; color: var(--encre); font-size: 30px; line-height: 1; width: 44px; height: 44px; margin-right: -12px; cursor: pointer; }
.ajout-confirme { margin: 0; padding: 12px 24px; font-size: 13px; background: var(--surface-2); }
.tiroir .barre-port { padding: 18px 24px 0; margin: 0; }
.lignes.tiroir-lignes { flex: 1; overflow-y: auto; padding: 0 24px; margin-top: 12px; border-top: 0; overscroll-behavior: contain; }
.tiroir-lignes .ligne:last-child { border-bottom: 0; }
.tiroir-pied { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--filet); }
.tiroir-pied .totaux { margin-bottom: 16px; }
.tiroir-liens { display: flex; justify-content: space-between; margin-top: 14px; }
.tiroir-vide { padding: 40px 24px; display: grid; gap: 20px; justify-items: start; }

/* Lignes d'articles, quantités, jauge */
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.ligne { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet); align-items: start; }
.ligne img { width: 84px; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.ligne h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.ligne h3 a { text-decoration: none; }
.ligne-prix { font-weight: 900; white-space: nowrap; }
.ligne.nouvelle { animation: surligner 1.6s ease-out; }
@keyframes surligner { from { background: rgba(255, 255, 255, 0.07); } to { background: transparent; } }
.meta { display: block; color: var(--encre-douce); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.ligne-actions { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.quantite { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 6px; height: 40px; }
.quantite button { width: 40px; height: 100%; background: none; border: 0; color: var(--encre); font-size: 18px; cursor: pointer; }
.quantite button:disabled { color: #4b4b50; cursor: not-allowed; }
.quantite output { min-width: 26px; text-align: center; font-weight: 800; }
.barre-port { margin-bottom: 20px; }
.barre-port p { margin: 0 0 10px; font-size: 13px; }
.jauge { height: 3px; background: var(--filet); border-radius: 2px; overflow: hidden; }
.jauge-remplie { display: block; height: 100%; width: 0; background: var(--encre); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Récapitulatifs */
.panier { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.recap { background: var(--surface); border-radius: 14px; padding: 28px; position: sticky; top: calc(var(--haut) + 24px); }
.recap h2 { margin-bottom: 20px; font-size: 13px; }
.totaux { margin: 0 0 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; }
.totaux dt { color: var(--encre-douce); }
.totaux dd { margin: 0; text-align: right; }
.totaux .total { color: var(--encre); border-top: 1px solid var(--filet); padding-top: 14px; margin-top: 4px; font-size: 15px; font-weight: 900; }
.vide { padding: 8px 0 120px; display: grid; gap: 24px; justify-items: start; }

/* Paiement */
.paiement { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.paiement-formulaire { background: var(--surface); border-radius: 14px; padding: clamp(20px, 3vw, 36px); max-width: 660px; }
.cadenas { color: var(--encre-douce); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cadenas::before {
  content: ""; width: 12px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M2 6V4a4 4 0 0 1 8 0v2h1v8H1V6h1zm1.5 0h5V4a2.5 2.5 0 0 0-5 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M2 6V4a4 4 0 0 1 8 0v2h1v8H1V6h1zm1.5 0h5V4a2.5 2.5 0 0 0-5 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#checkout-form.chargement { min-height: 420px; }
#checkout-form:not(.chargement) .squelette { display: none; }
.squelette { display: grid; gap: 14px; }
.squelette span { height: 48px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), #26262a, var(--surface-2)) 0 0 / 200% 100%; animation: reflet 1.4s infinite; }
.squelette .court { height: 56px; margin-top: 12px; }
.paiement-formulaire .statut:empty { display: none; }
.recap-paiement { padding: 0; }
.recap-repli summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; }
.recap-repli summary::-webkit-details-marker { display: none; }
.recap-repli summary strong { font-weight: 900; }
.recap-repli[open] summary { border-bottom: 1px solid var(--filet); margin-bottom: 20px; }
.recap-repli > :not(summary) { margin-left: 24px; margin-right: 24px; }
.recap-repli > :last-child { margin-bottom: 24px; display: inline-block; }
.mini-lignes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.mini-ligne { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: 13px; }
.mini-ligne strong { font-weight: 700; display: block; text-transform: uppercase; letter-spacing: 0.03em; }
.mini-visuel { position: relative; }
.mini-visuel img { width: 56px; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.pastille { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--encre); color: var(--fond); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* Pages de texte */
.texte h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; margin: 36px 0 10px; }
.texte p { color: #c9c9ce; max-width: 68ch; }
.texte .a-completer { background: #3a2418; color: #ffc9b3; padding: 0 4px; }

/* Barre d'achat fixe (mobile) */
.barre-achat { display: none; }

/* Chargement */
#grille:empty { min-height: 60vh; }
#fiche:empty { min-height: 80vh; }
@keyframes reflet { to { background-position: -200% 0; } }

/* Transitions entre pages */
@view-transition { navigation: auto; }

/* Mobile et tablette : burger, logo centré, menu plein écran */
@media (max-width: 1099px) {
  .burger {
    display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; margin-left: -10px;
    background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .burger span[aria-hidden] { display: block; height: 2px; background: var(--encre); transition: transform 0.25s; }
  .menu-ouvert .burger span[aria-hidden]:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-ouvert .burger span[aria-hidden]:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .marque { position: absolute; left: 50%; transform: translateX(-50%); }
  .marque img { width: 108px; }
  .sac-texte { display: none; }
  .sac-icone { display: block; }
  .sac { padding: 8px; margin-right: -8px; }
  .bulle { top: 0; right: -2px; min-width: 18px; height: 18px; font-size: 10px; }
  .menu {
    inset: 0; height: 100dvh; padding: calc(var(--haut) + 24px) var(--gouttiere) calc(32px + env(safe-area-inset-bottom));
    background: var(--fond); display: none; flex-direction: column; justify-content: flex-end;
  }
  .menu-ouvert .menu { display: flex; animation: fondu 0.2s ease-out; }
  .menu-ouvert { overflow: hidden; }
  .menu a { font-size: clamp(30px, 9vw, 44px); }
  .menu-pied { display: block; color: var(--encre-faible); font-size: 12px; margin: 28px 0 0; }
}

@media (max-width: 1000px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .fiche, .panier, .paiement { grid-template-columns: 1fr; }
  .fiche-infos, .recap { position: static; max-width: none; }
  .colonne-galerie { margin: 0 calc(var(--gouttiere) * -1); }
  .fleche { display: none; }
  .guide-carte { grid-template-columns: 1fr; }
  .guide-schema img { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 700px) {
  :root { --haut: 60px; }
  .grille { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
  .carte h2 { font-size: 11px; }
  .prix-gras { font-size: 14px; }
  .onglets { gap: 20px; margin-bottom: 24px; }
  .onglets button { font-size: 15px; }
  .zone { padding-top: calc(var(--haut) + 12px); }
  .barre-achat {
    display: flex; position: fixed; z-index: 15; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 10px;
    background: rgba(28, 28, 31, 0.94); backdrop-filter: blur(10px);
    transform: translateY(calc(100% + 24px)); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .barre-achat.visible { transform: none; }
  .barre-achat strong { display: block; font-size: 12px; text-transform: uppercase; }
  .barre-achat .btn { height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
