/* ==========================================================
   Composants réutilisables
   ========================================================== */

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--night);
  color: var(--on-dark);
  pointer-events: none;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 2; }
.loader__logo { width: 140px; height: auto; }
.loader__count {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: .8rem; letter-spacing: .2em; color: var(--hivis);
  font-variant-numeric: tabular-nums;
}
.loader__panel { position: absolute; inset: 0; background: var(--rust); transform: scaleY(0); transform-origin: bottom; z-index: 1; }
.no-js .loader, .reduced .loader { display: none; }
.intro-vue .loader { display: none; } /* intro déjà vue dans ce navigateur (intro-gate.js) */

/* ---------- Curseur ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--hivis);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s;
  mix-blend-mode: normal;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label {
  font-family: var(--f-display); font-stretch: 112%;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .2s;
  white-space: nowrap;
}
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(255,122,53,.25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: transform .6s var(--ease-out), color .4s, background-color .4s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(250,248,244,.85), rgba(250,248,244,0));
  backdrop-filter: blur(0px);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-dark { color: var(--on-dark); }
.header.is-dark::before { background: linear-gradient(to bottom, rgba(23,17,15,.8), rgba(23,17,15,0)); }
.header.is-hidden { transform: translateY(-110%); }

.header__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; padding-block: 8px; }
.header__logo { height: 22px; width: auto; transition: filter .4s; }
.header.is-dark .header__logo { filter: invert(1); }
.header__x { opacity: .5; }
/* Logo GO FIFO (blanc d'origine) : passé en noir sur fond clair */
.header__gofifo { height: 28px; width: auto; filter: invert(1); transition: filter .4s; }
.header.is-dark .header__gofifo { filter: none; }
/* téléphone : seulement « SND » en haut à gauche (« × GO FIFO » retiré pour aérer l'en-tête) */
@media (max-width: 767px) { .header__x, .header__gofifo { display: none; } }

/* Sélecteur de langue, en haut à droite, avec drapeaux */
.header__start { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.lang {
  display: flex; flex: none; gap: 2px; padding: 4px; border-radius: var(--r-pill);
  background: rgba(28,25,23,.05); backdrop-filter: blur(10px);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; line-height: 1;
}
.header.is-dark .lang { background: rgba(246,238,232,.08); }
.lang__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 30px; padding: 0 10px 0 7px;
  border-radius: var(--r-pill); transition: background .3s, color .3s, opacity .3s;
}
.lang__opt.is-current { background: var(--ink); color: var(--cream); }
.header.is-dark .lang__opt.is-current { background: var(--on-dark); color: var(--night); }
a.lang__opt { opacity: .66; }
a.lang__opt:hover, a.lang__opt:focus-visible { opacity: 1; background: rgba(28,25,23,.08); }
.header.is-dark a.lang__opt:hover, .header.is-dark a.lang__opt:focus-visible { background: rgba(246,238,232,.14); }
.lang__flag { flex: none; width: 18px; height: 12px; border-radius: 2px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(28,25,23,.14); }
.lang__flag--fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23002395' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ED2939' d='M2 0h1v2H2z'/%3E%3C/svg%3E"); }
.lang__flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }

.header__nav { display: flex; gap: 6px; padding: 5px; border-radius: var(--r-pill); background: rgba(28,25,23,.05); backdrop-filter: blur(10px); }
.header.is-dark .header__nav { background: rgba(246,238,232,.08); }
.header__nav a {
  padding: 8px 16px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 500;
  transition: background .3s, color .3s;
}
.header__nav a:hover, .header__nav a.is-active { background: var(--ink); color: var(--cream); }
.header.is-dark .header__nav a:hover, .header.is-dark .header__nav a.is-active { background: var(--on-dark); color: var(--night); }

/* Burger + menu plein écran (mobile / tablette) */
.header__burger { display: none; position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(28,25,23,.06); color: inherit; transition: background .3s; }
.header.is-dark .header__burger { background: rgba(246,238,232,.1); }
.header__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.header__burger span:nth-child(1) { top: 17px; }
.header__burger span:nth-child(2) { top: 25px; }
.is-menu-open .header__burger span { top: 21px; }
.is-menu-open .header__burger span:nth-child(1) { transform: rotate(45deg); }
.is-menu-open .header__burger span:nth-child(2) { transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(28px, 6vh, 48px);
  background: var(--night); color: var(--on-dark);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.is-menu-open .mnav { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.mnav__label { color: var(--hivis-soft); }
.mnav__links { margin-top: 16px; display: grid; border-top: 1px solid var(--line-dark); }
.mnav__links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 650; letter-spacing: -.04em; line-height: 1;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.mnav__links a em { font-style: normal; font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--hivis); }
.mnav__links a:hover { color: var(--hivis-soft); }
.is-menu-open .mnav__links a { opacity: 1; transform: none; }
.is-menu-open .mnav__links a:nth-child(1) { transition-delay: .12s; }
.is-menu-open .mnav__links a:nth-child(2) { transition-delay: .17s; }
.is-menu-open .mnav__links a:nth-child(3) { transition-delay: .22s; }
.is-menu-open .mnav__links a:nth-child(4) { transition-delay: .27s; }
.is-menu-open .mnav__links a:nth-child(5) { transition-delay: .32s; }
.mnav__cta { margin-top: 28px; align-self: flex-start; }

/* petits ordinateurs / tablettes à l'horizontale : le menu reste sur une ligne à côté du sélecteur de langue */
.header__nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .header { gap: 16px; }
  .header__nav a { padding: 8px 12px; }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .header { gap: 12px; }
  .header > .lang { margin-left: auto; }
}
@media (max-width: 480px) {
  .header__brand { gap: 7px; }
}
/* petits téléphones : seulement les drapeaux (le code FR/EN reste lu par les lecteurs d'écran) */
@media (max-width: 400px) {
  .lang__code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang__opt { min-width: 34px; padding: 0 8px; }
}
@media (max-width: 359px) {
  .header__start { gap: 8px; }
  .header__brand { gap: 5px; }
  .lang__opt { min-width: 30px; padding: 0 6px; }
}
/* le logo ne se tasse jamais (pas d'image déformée) */
.header__brand, .header__brand img { flex: none; }
@media (min-width: 901px) { .mnav { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body); font-weight: 500; font-size: .95rem; line-height: 1;
  border-radius: var(--r-sm);
  transition: background .3s, color .3s, transform .3s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--rust));
  transform: translateY(101%); transition: transform .5s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::after { transform: translateY(0); }
.btn--pill { border-radius: var(--r-pill); padding: 8px 8px 8px 24px; }
.btn--dark  { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-hover: var(--rust); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-hover: var(--blush); }
.btn--rust  { --btn-bg: var(--rust); --btn-fg: #fff; --btn-hover: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); border: 1px solid var(--line); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-dark); border: 1px solid var(--on-dark-3); padding: 18px 26px; --btn-hover: rgba(246,238,232,.1); }
.btn--block { width: 100%; padding: 16px; }
.btn.is-disabled { pointer-events: none; opacity: .7; }
.btn.is-disabled::after { display: none; }

.btn__icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  transition: transform .5s var(--ease-out);
}
.btn--light .btn__icon, .btn--ghost .btn__icon { background: rgba(28,25,23,.08); }
.btn__icon--accent { background: var(--hivis) !important; color: var(--ink); }
.btn__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon { transform: rotate(45deg); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--rust); color: #fff;
  font-family: var(--f-body); font-style: normal;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.badge--soon { background: var(--blush); color: var(--rust-deep); }
.badge--light { background: #fff; color: var(--rust); }

/* ---------- Listes ---------- */
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checks--sm { font-size: .9rem; gap: 8px; }

/* ---------- Coins (viseur) ---------- */
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--hivis); border-style: solid; border-width: 0; pointer-events: none; }
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Highlight (pastille animée) ---------- */
.hl {
  --hl: 0;
  background-image: linear-gradient(var(--hl-bg, var(--hivis)), var(--hl-bg, var(--hivis)));
  background-repeat: no-repeat;
  background-size: calc(var(--hl) * 100%) 100%;
  background-position: left center;
  border-radius: .25em;
  padding: 0 .18em;
  margin: 0 -.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color .3s;
}

/* ---------- Bannière cookies ---------- */
/* Fenêtre de bienvenue : un ticket de réduction -10 % contre l'inscription (affichée une seule fois, voir newsletter.js).
   Talon orange à gauche, découpe (pointillés + 2 encoches) au milieu, inscription à droite.
   Sur téléphone : talon en haut, découpe horizontale. La fenêtre elle-même est transparente :
   l'ombre suit la forme découpée, et le ruban « Attends avant de fermer » déborde du ticket. */
.welcome {
  width: min(880px, calc(100vw - 48px)); max-width: none; max-height: none; overflow: visible;
  margin: auto; padding: 0; border: 0; background: none; color: var(--on-dark);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55));
  opacity: 0; transform: translateY(22px) scale(.98);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.welcome.is-open { opacity: 1; transform: none; }
.welcome::backdrop { background: rgba(23, 17, 15, 0); backdrop-filter: blur(0); transition: background .5s, backdrop-filter .5s; }
.welcome.is-open::backdrop { background: rgba(23, 17, 15, .6); backdrop-filter: blur(6px); }

.welcome__card {
  --cut: 38%;      /* position de la découpe */
  --notch: 18px;   /* rayon des encoches */
  position: relative; display: grid; grid-template-columns: var(--cut) 1fr; min-height: 440px;
  max-height: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain;
  border-radius: 30px; background: var(--night);
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--cut) 0, #0000 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--cut) 0, #0000 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}

/* Talon : orange vif sur une photo de chantier, gros -10 % */
.welcome__stub {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 64px clamp(24px, 3.4vw, 40px) 40px; color: var(--ink);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(255, 217, 184, .55), rgba(255, 217, 184, 0) 60%),
    linear-gradient(160deg, rgba(255, 122, 53, .93) 0%, rgba(240, 104, 44, .9) 50%, rgba(174, 85, 59, .94) 100%),
    url(/assets/img/worker-scaffold.jpg) center / cover;
}
.welcome__stub::after { /* pointillés de la découpe */
  content: ""; position: absolute; top: calc(var(--notch) + 12px); bottom: calc(var(--notch) + 12px); right: -1px;
  border-right: 2px dashed rgba(246, 238, 232, .45);
}
.welcome__big { font-family: var(--f-display); font-size: clamp(3.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.055em; line-height: .9; white-space: nowrap; }
.welcome__sub { font-family: var(--f-display); font-size: clamp(1.1rem, 1.9vw, 1.35rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; max-width: 12ch; }

/* Partie inscription */
.welcome__main {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(52px, 6vw, 64px) clamp(28px, 4.4vw, 56px) clamp(32px, 4vw, 44px);
  background: radial-gradient(100% 80% at 100% 0%, rgba(255, 122, 53, .26), rgba(255, 122, 53, 0) 60%), var(--night);
}
.welcome__step { display: grid; gap: 22px; }
.welcome__step[hidden] { display: none; }
.welcome__title { font-family: var(--f-display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; max-width: 20ch; }

/* Ruban « Attends avant de fermer » : ruban adhésif crème, penché, à cheval sur le coin du ticket */
.welcome__patch {
  position: absolute; z-index: 2; top: -18px; left: -20px; transform: rotate(-4deg);
  padding: 12px 24px 11px; background: #F4ECE2; color: var(--ink);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55);
  clip-path: polygon(0 6%, 3% 0, 6% 7%, 9% 1%, 12% 6%, 100% 0, 98% 30%, 100% 55%, 98% 78%, 100% 100%, 0 100%, 2% 72%, 0 48%, 2% 24%);
  animation: welcomePatch .9s .35s var(--ease-out) both;
}
.welcome__patch b { font-family: var(--f-display); font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
@keyframes welcomePatch {
  from { opacity: 0; transform: rotate(-12deg) scale(1.25); }
  60% { opacity: 1; transform: rotate(-2deg) scale(.97); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

.welcome__close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-dark-2); transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.welcome__close:hover { background: rgba(246, 238, 232, .1); color: var(--on-dark); transform: rotate(90deg); }
.welcome__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.welcome .footer__news { width: 100%; gap: 0; }
.welcome .footer__news-row { flex-direction: column; gap: 12px; }
.welcome .footer__news input[type="email"] { flex: none; height: 54px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 122, 53, .3); }
.welcome .footer__news input[type="email"]:focus { border-color: var(--hivis); box-shadow: 0 0 0 4px rgba(255, 122, 53, .18); }
/* Bouton orange vif (au survol, le remplissage passe au crème) */
.welcome__btn { --btn-bg: var(--hivis); --btn-fg: var(--ink); --btn-hover: #FFE2CC; height: 54px; font-weight: 600; box-shadow: 0 14px 32px -12px rgba(255, 122, 53, .75); }
.welcome__btn .btn__icon { background: rgba(28, 25, 23, .14); }
.welcome .news-btn { width: 100%; justify-content: space-between; }
.welcome .footer__news[data-state="done"] .news-btn__icon { background: var(--ink); color: var(--hivis); }
.welcome__msg { min-height: 0; margin-top: 10px; }
.welcome__msg:empty { display: none; }
.welcome__once { margin-top: -8px; color: var(--hivis-soft); font-size: .86rem; font-weight: 500; text-align: center; }
.welcome__links { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: .82rem; color: var(--on-dark-3); }
.welcome__links a, .welcome__skip { color: var(--on-dark-3); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.welcome__skip { padding: 6px 2px; font-size: .85rem; }
.welcome__links a:hover, .welcome__skip:hover { color: var(--on-dark); }

.welcome__warn {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 122, 53, .14); color: var(--hivis-soft); font-size: .86rem; font-weight: 500; line-height: 1.45;
}
.welcome__warn span {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hivis); color: var(--ink); font-size: .75rem; font-weight: 700;
}
.welcome__code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 22px; border: 1.5px dashed var(--hivis); border-radius: var(--r-md);
  background: rgba(255, 122, 53, .08);
}
.welcome__code span { font-family: var(--f-display); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: .06em; color: var(--hivis); user-select: all; }
.welcome__copy {
  flex-shrink: 0; height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: .9rem; transition: background .3s;
}
.welcome__copy:hover { background: var(--hivis-soft); }
.welcome__copy[data-state="ok"] { background: var(--hivis); }
.welcome__cta { justify-self: start; }

/* Téléphone : ticket vertical, talon en haut, découpe horizontale */
@media (max-width: 720px) {
  .welcome { width: min(440px, calc(100vw - 32px)); }
  .welcome__card {
    --cut-y: 168px; grid-template-columns: 1fr; min-height: 0;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 var(--cut-y), #0000 96%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--cut-y), #0000 96%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 var(--cut-y), #0000 96%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--cut-y), #0000 96%, #000) right / 51% 100% no-repeat;
  }
  .welcome__stub { height: var(--cut-y); padding: 44px 28px 22px; justify-content: flex-end; gap: 6px; }
  .welcome__stub::after { top: auto; bottom: -1px; left: calc(var(--notch) + 12px); right: calc(var(--notch) + 12px); border-right: 0; border-bottom: 2px dashed rgba(246, 238, 232, .45); }
  .welcome__big { font-size: 4rem; }
  .welcome__sub { max-width: none; font-size: 1.1rem; }
  .welcome__main { padding: 30px 26px 26px; }
  .welcome__step { gap: 18px; }
  .welcome__title { font-size: 1.35rem; }
  .welcome__close { top: calc(-1 * var(--cut-y) + 10px); right: 10px; color: var(--ink); }
  .welcome__close:hover { background: rgba(28, 25, 23, .1); color: var(--ink); }
  .welcome__patch { left: -6px; top: -20px; }
}
@media (prefers-reduced-motion: reduce) { .welcome, .welcome::backdrop { transition: none; } .welcome__patch { animation: none; } }

.consent {
  position: fixed; z-index: 140;
  left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100svh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--r-md); border: 1px solid var(--line-dark);
  background: var(--night); color: var(--on-dark);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .7s var(--ease-out);
}
.consent.is-open { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__label { color: var(--hivis-soft); }
.consent__title { margin-top: 10px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.consent__text { margin-top: 8px; font-size: .88rem; line-height: 1.55; color: var(--on-dark-2); }
.consent__text a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent__text a:hover { color: var(--hivis-soft); }
.consent__prefs { margin-top: 16px; border-top: 1px solid var(--line-dark); }
.consent__prefs[hidden] { display: none; }
.consent__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.consent__row b { font-size: .9rem; font-weight: 600; }
.consent__row small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.45; color: var(--on-dark-2); }
.consent__actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__actions .btn { padding: 14px 12px; font-size: .9rem; }
.consent__actions .btn[hidden] { display: none; }
.consent__save { grid-column: 1 / -1; }
.consent__more { margin-top: 12px; padding: 4px 0; font-size: .82rem; color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.consent__more:hover { color: var(--on-dark); }
.consent__more[hidden] { display: none; }

.switch {
  appearance: none; -webkit-appearance: none; flex: none;
  position: relative; width: 44px; height: 26px; border-radius: var(--r-pill);
  background: rgba(246,238,232,.2); cursor: pointer; transition: background .3s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--on-dark); transition: transform .35s var(--ease-out), background .3s;
}
.switch:checked { background: var(--hivis); }
.switch:checked::after { transform: translateX(18px); background: var(--ink); }
.switch:disabled { opacity: .55; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--hivis-soft); outline-offset: 3px; }

/* Lien "Gérer les cookies" du pied de page */
.footer__cookies { color: inherit; font: inherit; padding-block: 10px; margin-block: -10px; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.footer__cookies:hover { color: var(--hivis); }
