/* ==================================================================
   Boutique IMMUN
   Les couleurs, les polices et les formes sont celles du site de
   l'association (src/styles/tokens.css) : bleu marine, bleu onusien,
   ivoire et sable ; Newsreader pour les titres, Inter pour le texte.
   Mise en page : une scène 3D fixe derrière la page ; les sections
   pleines glissent dessus comme des rideaux.
   ================================================================== */
@font-face { font-family: "Newsreader"; font-weight: 300 600; font-display: swap; src: url(../fonts/newsreader-300-600-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-weight: 300 600; font-display: swap; src: url(../fonts/newsreader-300-600-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/newsreader-300-500-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/newsreader-300-500-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 300 600; font-display: swap; src: url(../fonts/inter-300-600-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 300 600; font-display: swap; src: url(../fonts/inter-300-600-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-400-normal-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-600-normal-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; }

@property --iris { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --nuit-990: #04141f;
  --nuit-950: #061a2e;
  --nuit: #0b2a4a;
  --nuit-800: #123a61;
  --bleu: #1b4f82;
  --onu: #4fa8d0;
  --onu-300: #7fc3e0;
  --onu-100: #dcefF8;
  --ivoire: #fdfaf4;
  --ivoire-100: #f8f1e3;
  --ivoire-200: #f0e6d2;
  --sable: #c9ae83;
  --sable-fonce: #7a5f34;
  --encre: #0f1b28;
  --encre-700: #2c3c4d;
  --encre-500: #4c5f73;
  --alerte: #a8322b;
  --titre: "Newsreader", "Plex Arabic", Georgia, "Times New Roman", serif;
  --texte: "Inter", "Plex Arabic", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gouttiere: clamp(18px, 4vw, 56px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html:has(.est-ouverte) { scroll-behavior: smooth; }
/* le panier est ouvert : la page ne défile pas derrière */
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
body { margin: 0; background: var(--nuit-950); color: var(--encre); font: 400 1rem/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.en-ouverture { overflow: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 400; line-height: 1.02; letter-spacing: -0.018em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3), :lang(ar) .fiche__geste { letter-spacing: 0; line-height: 1.25; font-style: normal; }
p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--onu); outline-offset: 3px; }
[hidden] { display: none !important; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gouttiere { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: max(var(--gouttiere), env(safe-area-inset-left, 0px)) max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
.petit { font-size: 0.86rem; color: var(--encre-500); }
.saut { position: fixed; z-index: 40; top: 10px; inset-inline-start: 10px; padding: 10px 18px; background: var(--ivoire); border-radius: 999px; transform: translateY(-200%); }
.saut:focus { transform: none; }
.sans-script { position: relative; z-index: 60; padding: 40px 20px; background: var(--ivoire); text-align: center; }

/* --- Les boutons -------------------------------------------------- */
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--bouton, var(--nuit)); color: var(--bouton-texte, var(--ivoire)); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; transition: transform 0.35s var(--sortie), background-color 0.3s, color 0.3s; }
.pilule:hover:not(:disabled) { transform: translateY(-2px); }
.pilule:active:not(:disabled) { transform: translateY(0); }
.pilule--claire { background: var(--ivoire); color: var(--nuit); }
.pilule--nuit { background: var(--nuit); color: var(--ivoire); }
.pilule--large { width: 100%; }
.rond { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 0.3s; }
.rond:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

/* ------------------------------------------------------------------
   L'ouverture : la soie, le médaillon, le compteur ; puis un iris
   ------------------------------------------------------------------ */
.ouverture { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--nuit-950); color: var(--ivoire); mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 0.4%)); transition: --iris 1.35s cubic-bezier(0.7, 0, 0.2, 1); }
.est-ouverte .ouverture { --iris: 120%; pointer-events: none; }
.soie { position: absolute; inset: 0; width: 100%; height: 100%; }
.ouverture__centre { position: relative; display: grid; justify-items: center; gap: 22px; padding-inline: 24px; text-align: center; transition: transform 0.8s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.45s; }
.ouverture__centre img { width: clamp(120px, 15vw, 176px); border-radius: 50%; box-shadow: 0 0 0 1px rgb(253 250 244 / 0.5), 0 24px 70px rgb(2 11 19 / 0.6); animation: respire 3.4s ease-in-out infinite; }
.ouverture__centre p { font: italic 400 clamp(1.05rem, 1.7vw, 1.4rem)/1.35 var(--titre); max-width: 22em; }
.est-ouverte .ouverture__centre { transform: scale(1.25); opacity: 0; }
.ouverture__bas, .ouverture__compteur { position: absolute; bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.ouverture__bas { inset-inline-start: var(--gouttiere); font-size: 0.95rem; }
.ouverture__compteur { inset-inline-end: var(--gouttiere); font: 400 clamp(3.6rem, 9vw, 7.4rem)/0.8 var(--titre); font-variant-numeric: tabular-nums lining-nums; }
@keyframes respire { 50% { transform: scale(1.035); } }

/* ------------------------------------------------------------------
   Le décor fixe
   ------------------------------------------------------------------ */
.fond { position: fixed; inset: 0; z-index: 0; background-color: var(--nuit-950); overflow: hidden; }
.fond::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 68% 48%, rgb(46 124 184 / 0.5), transparent 72%); transition: opacity 0.6s; }
.fond.est-vitrine::after { opacity: 0; }
.filigrane { position: absolute; inset-block-start: 50%; inset-inline-end: 1vw; margin: 0; translate: 0 -54%; font: 600 clamp(10rem, 33vw, 36rem)/1.2 "Plex Arabic", var(--titre); white-space: nowrap; color: var(--filigrane, #0b2a4a); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.filigrane:lang(en) { font: 400 clamp(6rem, 19vw, 22rem)/1.1 var(--titre); }
.fond.est-vitrine .filigrane { opacity: var(--force, 0.075); visibility: visible; animation: filigrane 1.1s var(--sortie); }
@keyframes filigrane { from { opacity: 0; transform: translateX(4vw); } }
.toile { position: fixed; inset: 0; z-index: 1; pointer-events: none; height: 100lvh; contain: strict; }
.toile canvas { display: block; width: 100%; height: 100%; }
main, .pied { position: relative; z-index: 2; }

/* --- L'en-tête, et sa barre d'infos --------------------------------- */
.tete { position: fixed; z-index: 10; inset: 0 0 auto; color: var(--nuit); transition: color 0.45s, transform 0.5s var(--sortie); }
.tete[data-surface="sombre"] { color: var(--ivoire); }
.tete.est-descendu { transform: translate3d(0, calc(-1 * var(--infos, 32px)), 0); }
.infos { display: flex; justify-content: center; gap: clamp(14px, 3.4vw, 52px); padding: 6px 12px; background: var(--onu-300); color: var(--nuit-950); font-size: 0.82rem; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.tete__rang { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(var(--gouttiere), env(safe-area-inset-right, 0px)) 10px max(var(--gouttiere), env(safe-area-inset-left, 0px)); transition: background-color 0.45s; }
.tete.est-pose .tete__rang { background: var(--ivoire-100); }
.tete.est-pose[data-surface="sombre"] .tete__rang { background: var(--nuit-950); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 46px; height: 46px; border-radius: 50%; }
.marque span { display: grid; line-height: 1.15; }
.marque b { font: 500 1.22rem/1.1 var(--titre); }
.marque i { font-style: normal; font-size: 0.8rem; opacity: 0.85; }
.menu { display: none; gap: clamp(16px, 2.4vw, 38px); font-size: 0.95rem; font-weight: 600; }
.menu a { text-decoration: none; padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 5px) / 0 1.5px no-repeat; transition: background-size 0.4s var(--sortie); }
.menu a:hover { background-size: 100% 1.5px; }
.tete__actions { display: flex; align-items: center; gap: 10px; }
.langue select { appearance: none; min-height: 44px; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.langue option { color: var(--encre); background: #fff; }
.panier-bouton { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; }
.panier-bouton b { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 21px; padding: 0 5px; border-radius: 999px; background: var(--onu-300); color: var(--nuit-950); font-size: 0.78rem; line-height: 21px; text-align: center; font-variant-numeric: tabular-nums; }
.panier-bouton.est-saut { animation: saut 0.6s var(--sortie); }
@keyframes saut { 30% { transform: translateY(-9px) rotate(-7deg); } 60% { transform: translateY(2px); } }

/* ------------------------------------------------------------------
   La première page : l'article du moment, son prix, et le rayon
   ------------------------------------------------------------------ */
.accueil { height: 270svh; color: var(--ivoire); --bouton: var(--ivoire); --bouton-texte: var(--nuit); }
.accueil__scene { position: sticky; top: 0; height: 100svh; overflow: hidden; touch-action: pan-y; cursor: grab; }
.accueil__photo, .accueil__image { display: none; }
.accueil__texte { position: absolute; inset-inline: var(--gouttiere); bottom: calc(var(--rayon, 100px) + 14px); cursor: auto; will-change: transform, opacity; }
.accueil h1 { font-size: clamp(2.5rem, 11.4vw, 4rem); line-height: 0.98; }
.accueil__intro { margin-top: 8px; max-width: 33rem; font-size: clamp(0.95rem, 1.2vw, 1.12rem); line-height: 1.5; color: #e3ecf5; }
.achat { display: grid; gap: 12px; max-width: 38rem; margin-top: 14px; }
.achat__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.achat h2 { font-size: clamp(1.4rem, 2.1vw, 2.1rem); line-height: 1.15; }
.achat .prix b { font-size: 1.3rem; }
.achat .badge { align-self: center; padding-block: 3px; }
.achat .options { margin-top: 0; gap: 10px 30px; }
.achat .choix legend { margin-bottom: 5px; }
.achat__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.lien { padding-block: 10px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lien:hover { text-decoration-thickness: 2px; }
.rayon { position: absolute; inset: auto 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); cursor: auto; will-change: transform, opacity; }
.rayon ul { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gouttiere); padding: 4px var(--gouttiere); touch-action: pan-x pan-y; }
.rayon li { flex: 1 0 172px; min-width: 0; }
.produit { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 7px 12px 7px 7px; border-radius: 18px; background: var(--nuit-800); color: var(--ivoire); text-align: start; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--sortie); }
[dir="rtl"] .produit { padding: 7px 7px 7px 12px; }
.produit:hover { transform: translateY(-3px); }
.produit[aria-pressed="true"] { background: var(--ivoire); color: var(--nuit); }
.produit__image { flex: none; width: 54px; height: 66px; border-radius: 12px; background: var(--f); overflow: hidden; }
.produit__image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); }
.produit__texte { display: grid; gap: 1px; min-width: 0; font-size: 0.9rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.produit b { font-weight: 600; overflow-wrap: anywhere; }
.produit small { font-size: 0.72rem; font-weight: 600; color: var(--onu-300); }
.produit i { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--onu-300); margin-inline-start: 4px; }
.produit[aria-pressed="true"] :is(small, i) { color: var(--bleu); }
.accueil__passage { position: absolute; inset: auto var(--gouttiere) 13svh; text-align: center; font: 400 clamp(1.7rem, 4vw, 3.7rem)/1.12 var(--titre); letter-spacing: -0.015em; opacity: 0; text-wrap: balance; pointer-events: none; will-change: opacity; }
@keyframes tourner { to { transform: rotate(360deg); } }
:lang(ar) :is(.accueil h1, .fiche h2) { line-height: 1.22; }
.sans-3d .accueil { height: 100svh; }
.sans-3d .accueil__passage, .sans-3d .toile { display: none; }
.sans-3d .accueil__photo { display: block; position: absolute; inset: 0; opacity: 0.35; }
.sans-3d .accueil__photo img { width: 100%; height: 100%; object-fit: cover; }
.sans-3d .accueil__image { display: block; position: absolute; top: 96px; inset-inline-end: 0; width: 100%; height: 38svh; object-fit: contain; }

/* --- Le bandeau, dans les quatre langues --------------------------- */
.bandeau { background: var(--ivoire); color: var(--nuit); padding-block: clamp(16px, 2.2vw, 28px); overflow: hidden; }
.bandeau__file { display: flex; width: max-content; animation: file 46s linear infinite; }
.bandeau__file > span { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); padding-right: clamp(20px, 2.6vw, 42px); }
.bandeau b { font: 400 clamp(1.7rem, 3.6vw, 3.3rem)/1.2 var(--titre); white-space: nowrap; }
.bandeau b.est-penche { font-style: italic; color: var(--bleu); }
.bandeau i { font-style: normal; color: var(--sable); font-size: 1.2rem; }
@keyframes file { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
   La vitrine
   ------------------------------------------------------------------ */
.vitrine { height: calc(var(--n, 5) * 115svh); --fg: var(--nuit-950); --bouton: var(--nuit); --bouton-texte: var(--ivoire); color: var(--fg); }
.vitrine[data-teinte="sombre"] { --fg: var(--ivoire); --bouton: var(--ivoire); --bouton-texte: var(--nuit); }
.vitrine__scene { position: sticky; top: 0; height: 100svh; overflow: hidden; touch-action: pan-y; cursor: grab; transition: color 0.6s; user-select: none; -webkit-user-select: none; }
.est-tenu, .est-tenu * { cursor: grabbing !important; }
.fiche { position: absolute; inset: auto var(--gouttiere) 92px; opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity 0.35s, transform 0.35s, visibility 0s 0.35s; cursor: auto; }
.fiche.est-la { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s 0.12s, transform 0.8s 0.12s var(--sortie), visibility 0s; }
.fiche h2 { font-size: clamp(2.5rem, 6.9vw, 7rem); line-height: 0.95; }
.fiche__geste { margin-top: 10px; max-width: 24em; font: italic 400 clamp(1.1rem, 1.75vw, 1.65rem)/1.25 var(--titre); text-wrap: balance; }
.badge { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--nuit); color: var(--ivoire); font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.badge--neuf { background: var(--ivoire); color: var(--nuit); }
.fiche .badge { margin-bottom: 12px; }
.options { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 18px; }
.choix legend { padding: 0; margin-bottom: 8px; font-size: 0.86rem; opacity: 0.88; }
.choix output { font-weight: 600; }
.choix__rang { display: flex; flex-wrap: wrap; gap: 9px; }
.pastille, .taille { position: relative; display: inline-grid; cursor: pointer; }
.pastille input, .taille input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pastille { width: 38px; height: 38px; border-radius: 50%; background: var(--t); background-clip: content-box; padding: 4px; border: 2px solid transparent; box-shadow: inset 0 0 0 5px transparent; }
.pastille::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); pointer-events: none; }
.pastille:has(:checked) { border-color: currentColor; }
.taille span { min-width: 46px; padding: 8px 11px; border: 1.5px solid color-mix(in srgb, currentColor 50%, transparent); border-radius: 999px; text-align: center; font-size: 0.9rem; font-weight: 600; line-height: 1.3; transition: background-color 0.25s, color 0.25s; }
.taille:hover span { border-color: currentColor; }
.taille :checked + span { background: var(--bouton, var(--nuit)); color: var(--bouton-texte, var(--ivoire)); border-color: transparent; }
:is(.pastille, .taille):has(:focus-visible) { outline: 3px solid var(--onu); outline-offset: 3px; border-radius: 999px; }
.est-oubli { animation: oubli 0.5s; }
@keyframes oubli { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.prix b { font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.prix s { opacity: 0.8; }
.prix__remise { padding: 1px 9px; border-radius: 999px; background: var(--bouton, var(--nuit)); color: var(--bouton-texte, var(--ivoire)); font-size: 0.82rem; font-weight: 600; }
.fiche__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.vitrine__geste { display: none; }
.fil { position: absolute; inset: auto var(--gouttiere) max(20px, env(safe-area-inset-bottom, 0px)); cursor: auto; }
.fil ol { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.fil button { min-height: 36px; white-space: nowrap; font-size: 0.88rem; opacity: 0.72; transition: opacity 0.3s; }
.fil button:hover { opacity: 1; }
.fil [aria-current] { opacity: 1; font-weight: 600; }
.fil__trait { display: block; height: 2px; margin-top: 4px; background: color-mix(in srgb, currentColor 25%, transparent); }
.fil__trait i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .fil__trait i { transform-origin: right; }

/* ------------------------------------------------------------------
   Le carrousel courbé, sur la soie
   ------------------------------------------------------------------ */
.carrousel { position: relative; overflow: hidden; padding-block: clamp(84px, 11vw, 150px) clamp(70px, 8vw, 120px); background: var(--nuit-950); color: var(--ivoire); }
.carrousel__tete { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carrousel h2, .galerie h2, .mur h2, .collection h2, .livraison h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.carrousel__tete p { margin-top: 12px; max-width: 32em; color: #d6e3ef; }
.carrousel__fleches { display: flex; gap: 10px; }
.anneau { position: relative; margin-top: clamp(34px, 5vw, 66px); perspective: 1500px; perspective-origin: 50% 46%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.anneau ul { position: relative; height: calc(clamp(220px, 23vw, 350px) * 1.25 + 78px); transform-style: preserve-3d; }
.volet { position: absolute; left: 50%; top: 0; width: clamp(220px, 23vw, 350px); transform: translate(-50%, 0); backface-visibility: hidden; }
.volet button { display: block; width: 100%; padding: 8px; border-radius: 1.5rem; background: var(--ivoire); color: var(--nuit); text-align: start; cursor: inherit; }
.volet__image { position: relative; display: block; border-radius: 1.1rem; background: var(--f); overflow: hidden; }
.volet__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform 0.7s var(--sortie); }
.volet button:hover img { transform: scale(1.05); }
:is(.volet__image, .carte__image) .badge { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; }
.volet__texte { display: flex; justify-content: space-between; gap: 12px; padding: 13px 10px 8px; font-size: 0.94rem; }
.volet__texte b { font-weight: 600; min-width: 0; }
.volet__texte i { font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------
   Les dos : une galerie qui avance sur le côté
   ------------------------------------------------------------------ */
.galerie { background: var(--ivoire); color: var(--nuit); }
.galerie__scene { padding-block: 84px; overflow: hidden; }
.galerie__piste { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); width: max-content; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; padding-inline: var(--gouttiere); scrollbar-width: thin; scrollbar-color: var(--sable) transparent; padding-bottom: 14px; }
.galerie__titre { flex: none; width: min(78vw, 30rem); }
.galerie__titre p { margin-top: 16px; max-width: 26em; color: var(--encre-700); }
.galerie__cartes { display: flex; align-items: center; gap: inherit; }
.toile-carte { flex: none; width: min(70vw, 340px); scroll-snap-align: center; }
.toile-carte div { border-radius: 1.4rem; background: var(--f); overflow: hidden; }
.toile-carte img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.toile-carte figcaption { margin-top: 12px; max-width: 22em; font-size: 0.94rem; color: var(--encre-700); }
.toile-carte b { color: var(--nuit); font-weight: 600; margin-inline-end: 4px; }
.galerie__fin { flex: none; display: flex; align-items: center; gap: 18px; padding-inline: clamp(10px, 4vw, 70px); font: italic 400 clamp(1.8rem, 3.6vw, 3.4rem)/1.1 var(--titre); text-decoration: none; }
.galerie__fin svg { width: 1.5em; height: 1.5em; padding: 0.3em; border-radius: 50%; background: var(--nuit); color: var(--ivoire); transition: transform 0.4s var(--sortie); }
.galerie__fin:hover svg { transform: translateX(8px); }
[dir="rtl"] .galerie__fin svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------
   Le mur
   ------------------------------------------------------------------ */
.mur { position: relative; background: var(--ivoire-200) radial-gradient(circle, rgb(11 42 74 / 0.13) 1.4px, transparent 1.6px) 0 0 / 30px 30px; color: var(--nuit); overflow: hidden; padding-top: clamp(80px, 9vw, 130px); }
.mur__texte p { margin-block: 16px 24px; max-width: 27em; color: var(--encre-700); }
.mur__texte > * { position: relative; }
.mur__zone { position: relative; height: 78svh; min-height: 460px; user-select: none; -webkit-user-select: none; }
.sticker { position: absolute; left: 0; top: 0; touch-action: none; cursor: grab; will-change: transform; box-shadow: 0 5px 12px rgb(6 26 46 / 0.24); transition: box-shadow 0.25s; }
.sticker.est-tenu { cursor: grabbing; box-shadow: 0 22px 34px rgb(6 26 46 / 0.34); }
.sticker img { pointer-events: none; border-radius: 50%; width: 100%; }
.sticker--logo { width: clamp(124px, 13vw, 190px); padding: 8px; border-radius: 50%; background: #fff; }
.sticker--petit { width: clamp(86px, 8vw, 116px); padding: 5px; }
.sticker--nom { display: flex; align-items: baseline; gap: 8px; padding: 13px 24px; border: 6px solid #fff; border-radius: 22px; background: var(--nuit); color: var(--ivoire); font: 500 clamp(1.5rem, 2.4vw, 2.3rem)/1.05 var(--titre); white-space: nowrap; }
.sticker--nom b { font-weight: 500; }
.sticker--nom i { color: var(--sable); font-weight: 400; font-size: 0.82em; }
.sticker--rabat { display: grid; place-content: center; text-align: center; width: clamp(104px, 10vw, 146px); aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle, var(--sable) 60%, var(--nuit) 60.5% 62%, var(--sable) 62.5%); color: var(--nuit); }
.sticker--rabat small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; }
.sticker--rabat b { font: 500 clamp(1.8rem, 2.8vw, 2.5rem)/1 var(--titre); }
.sticker--pin { width: clamp(88px, 8.6vw, 122px); padding: 7px; border-radius: 50%; background: conic-gradient(from 20deg, #f5dd9a, #a77a28, #f7e4ac, #8f661d, #eacb7d, #b58a36, #f5dd9a); }
.sticker--pancarte { padding: 15px 26px 19px; background: linear-gradient(#fff 0 calc(100% - 9px), var(--bleu) 0); border-radius: 5px; color: var(--nuit); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.35rem); letter-spacing: 0.05em; white-space: nowrap; }
.sticker--arabe { font-family: "Plex Arabic", var(--texte); letter-spacing: 0; }
.mur__geste { position: absolute; bottom: 24px; right: var(--gouttiere); font-size: 0.92rem; color: var(--encre-700); }

/* ------------------------------------------------------------------
   La boutique
   ------------------------------------------------------------------ */
.collection { background: var(--ivoire); color: var(--nuit); padding-block: clamp(80px, 9vw, 140px); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(34px, 4vw, 60px) clamp(18px, 2.4vw, 36px); margin-block: clamp(34px, 4vw, 60px) 40px; }
.carte { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 100px; }
.carte__image { position: relative; border-radius: 1.4rem; background: var(--f); overflow: hidden; }
.carte__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform 0.9s var(--sortie); }
.carte:hover .carte__image img { transform: scale(1.04); }
.carte__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 18px; }
.carte h3 { font-size: 1.7rem; }
.carte .prix b { font-size: 1.15rem; }
.carte__desc { margin-top: 8px; color: var(--encre-700); font-size: 0.97rem; }
.carte__pied { margin-top: auto; padding-top: 20px; }

/* --- La livraison et la suite -------------------------------------- */
.livraison { background: var(--nuit); color: var(--ivoire); padding-block: clamp(80px, 9vw, 140px) clamp(60px, 7vw, 100px); }
.livraison__rang { display: grid; gap: 40px; align-items: center; }
.livraison__rang > * { min-width: 0; }
.livraison__rang img { width: 100%; max-width: 720px; margin-inline: auto; }
.etapes { counter-reset: e; display: grid; gap: 14px; margin-block: 28px; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-items: baseline; font-size: 1.08rem; }
.etapes li::before { content: counter(e); font: 400 1.7rem/1 var(--titre); color: var(--onu-300); }
.livraison__ville { max-width: 25rem; }
.rang { display: grid; gap: 6px; margin-bottom: 14px; }
.rang label { font-size: 0.92rem; font-weight: 600; }
.rang small { font-weight: 400; }
.champ { width: 100%; min-height: 48px; padding: 11px 15px; border: 1.5px solid #8698aa; border-radius: 12px; background: #fff; color: var(--encre); font-size: 1rem; }
.champ::placeholder { color: #5c6f82; }
.est-verifie .champ:invalid { border-color: var(--alerte); }
.tarif { min-height: 1.6em; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.histoire { margin-top: clamp(50px, 7vw, 100px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.histoire > div { flex: 1 1 340px; min-width: 0; }
.histoire h3 { font-size: clamp(1.8rem, 3vw, 2.9rem); }
.histoire p { margin-top: 10px; max-width: 38em; color: #d6e3ef; }

/* --- Le pied de page : celui du site de l'association --------------- */
.pied { isolation: isolate; overflow: hidden; background: var(--nuit-990); color: rgb(253 250 244 / 0.8); padding-block: clamp(3rem, 7vw, 5rem) max(2rem, env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; }
.pied__contenu { position: relative; z-index: 1; }
.pied__grille { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.pied__grille > div { min-width: 0; }
.pied__marque { display: grid; align-content: start; justify-items: start; gap: 0.8rem; max-width: 22rem; }
.pied__marque img { border-radius: 50%; }
.pied__marque b { font: 400 1.5rem/1.2 var(--titre); color: var(--ivoire); }
.pied__ne { opacity: 0.85; }
.pied h2 { margin-bottom: 0.9rem; font: 500 0.74rem/1.5 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; color: var(--onu-300); }
.pied ul { display: grid; gap: 0.5rem; }
.pied a { text-decoration: none; overflow-wrap: anywhere; }
.pied a:hover { color: var(--ivoire); text-decoration: underline; text-underline-offset: 0.2em; }
.pied__mail { display: grid; justify-items: start; gap: 0.05rem; }
.pied__mail span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
:lang(ar) :is(.pied h2, .pied__mail span) { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.6rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid rgb(253 250 244 / 0.2); }
.pied__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.pied__legal a { text-decoration: underline; text-underline-offset: 0.2em; }
.pied__3d { flex-basis: 100%; font-size: 0.8rem; }

/* ------------------------------------------------------------------
   Le panier
   ------------------------------------------------------------------ */
.panier { width: min(480px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0; margin-inline-start: auto; padding: 0; border: 0; background: var(--ivoire); color: var(--encre); overflow: hidden; }
.panier[open] { display: flex; flex-direction: column; animation: entrer 0.55s var(--sortie); }
.panier::backdrop { background: rgb(4 20 31 / 0.62); }
@keyframes entrer { from { transform: translateX(var(--sens, 60px)); opacity: 0; } }
[dir="rtl"] .panier { --sens: -60px; }
.panier__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 16px; border-bottom: 1px solid #dfd4bd; color: var(--nuit); }
.panier__tete h2 { font-size: 2.1rem; }
.panier__corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.lignes li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid #dfd4bd; }
.lignes img { width: 72px; height: 90px; object-fit: contain; border-radius: 12px; background: var(--ivoire-200); }
.lignes b { display: block; font-weight: 600; }
.lignes small { display: block; color: var(--encre-500); font-size: 0.88rem; }
.lignes__prix { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pas { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1.5px solid #8698aa; border-radius: 999px; }
.pas button { width: 38px; height: 36px; font-size: 1.2rem; line-height: 1; border-radius: 999px; }
.pas output { min-width: 1.4em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
#commande { margin-top: 20px; }
#commande h3 { font-size: 1.5rem; margin-block: 26px 14px; color: var(--nuit); }
.totaux { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--ivoire-200); font-variant-numeric: tabular-nums; }
.totaux div { display: flex; justify-content: space-between; gap: 16px; }
.totaux__fin { margin-top: 6px; padding-top: 10px; border-top: 1px solid #cdbf9f; font-size: 1.25rem; font-weight: 600; color: var(--nuit); }
.info { margin-block: 14px; font-size: 0.92rem; color: var(--encre-700); }
.accord { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; cursor: pointer; }
.accord input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--nuit); }
.est-verifie .accord input:invalid { outline: 2px solid var(--alerte); outline-offset: 2px; }
.accord a { display: block; width: fit-content; margin-top: 4px; color: var(--bleu); text-underline-offset: 3px; }
.erreur { color: var(--alerte); font-weight: 600; }
.erreur:not(:empty) { margin-bottom: 12px; }
.panier__fin { display: grid; justify-items: start; gap: 16px; padding-block: 34px; }
.panier__fin h3 { font-size: 1.8rem; color: var(--nuit); line-height: 1.15; }

.annonce { position: fixed; z-index: 30; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; max-width: calc(100vw - 36px); padding: 12px 22px; border-radius: 999px; background: var(--ivoire); color: var(--nuit); font-weight: 600; text-align: center; box-shadow: 0 14px 40px rgb(4 20 31 / 0.34); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 0.3s, transform 0.45s var(--sortie); }
.annonce.est-la { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   Grand écran
   ------------------------------------------------------------------ */
@media (min-width: 900px) {
  .menu { display: flex; }
  .accueil__texte { top: 100px; bottom: 112px; inset-inline-end: auto; width: 46vw; display: flex; flex-direction: column; justify-content: center; }
  .accueil h1 { font-size: clamp(2.8rem, min(6vw, 12.4svh), 7.4rem); }
  .accueil__intro { margin-top: clamp(8px, 2svh, 20px); }
  .achat { gap: clamp(9px, 1.8svh, 18px); margin-top: clamp(12px, 3svh, 34px); padding-top: clamp(12px, 2.6svh, 28px); border-top: 1px solid rgb(253 250 244 / 0.28); }
  .achat { min-height: 11.8rem; align-content: start; }
  .achat__choisir { display: none; }
  .rayon ul { gap: 12px; }
  .sans-3d .accueil__image { width: 48vw; height: auto; top: 90px; bottom: 120px; max-height: calc(100svh - 220px); }
  .fiche { top: 50%; bottom: auto; inset-inline-end: auto; width: 46vw; translate: 0 -50%; }
  .vitrine__geste { display: block; position: absolute; top: 100px; inset-inline-end: var(--gouttiere); font-size: 0.92rem; opacity: 0.85; pointer-events: none; }
  .galerie__scene { position: sticky; top: 0; height: 100svh; padding-block: 84px 40px; display: flex; align-items: center; }
  .galerie__piste { max-width: none; overflow: visible; padding-bottom: 0; will-change: transform; }
  .toile-carte { width: min(27vw, 56svh); }
  .toile-carte:nth-child(even) { margin-top: 7svh; }
  .toile-carte:nth-child(odd) { margin-bottom: 5svh; }
  .mur { min-height: 100svh; }
  .mur__texte { pointer-events: none; }
  .mur__texte > * { max-width: 36rem; }
  .mur__texte :is(button, a) { pointer-events: auto; }
  .mur__zone { position: absolute; inset: 0; height: auto; min-height: 0; pointer-events: none; }
  .sticker { pointer-events: auto; }
  .mur { padding-bottom: 46svh; }
  .livraison__rang { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; }
  .pied__grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(20.5rem, 1.3fr); gap: 2rem; }
  /* trois par rangée ; s'il en reste deux, ce sont les premiers, plus larges */
  .grille { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .carte { grid-column: span 2; }
  .carte:first-child:nth-last-child(3n + 2), .carte:first-child:nth-last-child(3n + 2) + .carte { grid-column: span 3; }
  .carte:first-child:nth-last-child(3n + 2) img, .carte:first-child:nth-last-child(3n + 2) + .carte img { aspect-ratio: 6 / 5; }
}
@media (max-width: 899px) {
  .fiche h2 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .fiche .options { margin-top: 12px; gap: 10px 22px; }
  .fiche .choix legend { margin-bottom: 4px; }
  .fiche .taille span { min-width: 42px; padding: 7px 9px; }
  .fiche__pied { margin-top: 14px; gap: 10px 14px; }
  .fiche__pied .prix { flex: 1 1 100%; }
  .fiche__pied .pilule { flex: 1 1 170px; padding-inline: 14px; }
  .volet__texte { display: block; }
  .volet__texte b { display: block; min-height: 3.2em; }
  .filigrane { inset-block-start: 27%; font-size: 56vw; }
  .filigrane:lang(en) { font-size: 27vw; }
  .fond::after { background: radial-gradient(90% 46% at 50% 32%, rgb(46 124 184 / 0.5), transparent 74%); }
  .infos { font-size: 0.75rem; }
  .rayon li { flex: 0 0 196px; }
  .infos span:nth-child(3) { display: none; }
  .accueil__intro { display: none; }
  .achat { gap: 10px; margin-top: 10px; }
  .achat .choix legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .achat .choix--tailles, .achat:has(.achat__choisir) [data-ajouter], .achat .lien { display: none; }
  .achat__pied .pilule { width: 100%; }
  .marque i { display: none; }
}
@media (min-width: 900px) and (max-height: 560px) {
  .accueil__intro { display: none; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .achat .options { display: none; }
  .fiche__geste { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.est-ouverte) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bandeau__file { animation: none; }
}
