/* =========================================================
   EVERY1.ATE — STYLE
   Desktop = référence (> 480px)
   Mobile  = composition dédiée (<= 480px)
   ---------------------------------------------------------
   0. Base
   1. Hero
   2. Notre approche
   3. Transition EVERY1.ATE
   4. Footer + Marquee
   5. Formulaire
   6. Tablette (481px – 900px)
   7. Mobile (<= 480px)
   ========================================================= */


/* =========================================================
   0. BASE
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --cream: #f2f0ea;

  --font-title: "Arimo", Arial, Helvetica, sans-serif;
  --font-text: "Courier Prime", "Courier New", Courier, monospace;

  --gutter: clamp(20px, 3.5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Durées d'animation : courtes, pour guider sans ralentir */
  --t-fast: 200ms;
  --t-base: 300ms;

  /* Accents : fluo = action / attention · rouge = stylo */
  --fluo: #fff234;

  /* Texture papier (grain + légèrement froissé), générée en SVG : aucun fichier image */
  --paper: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'700'%20height%3D'700'%3E%3Cfilter%20id%3D'c'%20x%3D'0'%20y%3D'0'%20width%3D'100%25'%20height%3D'100%25'%20color-interpolation-filters%3D'sRGB'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.006'%20numOctaves%3D'5'%20seed%3D'11'%20stitchTiles%3D'stitch'%20result%3D't'%2F%3E%3CfeDiffuseLighting%20in%3D't'%20lighting-color%3D'%23fff'%20surfaceScale%3D'60'%3E%3CfeDistantLight%20azimuth%3D'225'%20elevation%3D'55'%2F%3E%3C%2FfeDiffuseLighting%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D'linear'%20slope%3D'0.1'%20intercept%3D'0.89'%2F%3E%3CfeFuncG%20type%3D'linear'%20slope%3D'0.1'%20intercept%3D'0.89'%2F%3E%3CfeFuncB%20type%3D'linear'%20slope%3D'0.1'%20intercept%3D'0.878'%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Cfilter%20id%3D'g'%20x%3D'0'%20y%3D'0'%20width%3D'100%25'%20height%3D'100%25'%20color-interpolation-filters%3D'sRGB'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.8'%20numOctaves%3D'2'%20seed%3D'3'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%20-1%200%200%200%20.6'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'700'%20height%3D'700'%20filter%3D'url(%23c)'%2F%3E%3Crect%20width%3D'700'%20height%3D'700'%20filter%3D'url(%23g)'%20opacity%3D'0.14'%2F%3E%3C%2Fsvg%3E") 0 0 / 700px 700px;
  --paper-color: #f4f3ef;
  --pen: #e1261c;
  --mark: var(--fluo);
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  /* "clip" coupe le débordement horizontal SANS casser position: sticky */
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* Texte lu par Google et les lecteurs d'écran, invisible à l'œil */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.e1-form-open {
  overflow: hidden;
}

/* Flèche vectorielle (remplace le caractère ↗, affiché en emoji sur iPhone) */
.i-arrow {
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-left: .28em;
  vertical-align: .02em;
  transition: transform var(--t-fast) var(--ease);
}

/* --- Indicateur de défilement --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  height: 3px;
  background: #fff234;
  mix-blend-mode: normal;
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* --- Apparition au scroll (une seule fois, discrète) --- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   1. HERO
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--black);
  color: var(--white);
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* --- Effet négatif ---
   Logos, textes et CTA s'inversent selon la vidéo derrière eux.
   Appliqué aux CONTENEURS : un enfant d'un bloc avec z-index
   serait isolé de la vidéo et l'effet ne fonctionnerait pas. */

.hero-top,
.hero-logo,
.hero-say,
.m-icon,
.m-typo {
  mix-blend-mode: difference;
}

/* --- Top bar --- */

.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(18px, 2.2vw, 36px) var(--gutter) 0;
  font-family: var(--font-text);
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-open {
  font-weight: 700;
  white-space: nowrap;
}

.hero-clock {
  padding-top: .7em;
  letter-spacing: .04em;
  white-space: pre;
}

/* --- Logo desktop --- */

.hero-logo {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(150px, 12vw, 230px);
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-tagline {
  margin-top: .8em;
  font-family: var(--font-text);
  font-size: clamp(8px, .62vw, 11px);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* --- Éléments mobiles : cachés sur desktop --- */

.m-icon,
.m-typo,
.m-bar {
  display: none;
}

/* --- Bas du hero --- */

/* Texte (en négatif sur la vidéo) et CTA : deux blocs indépendants,
   sans conteneur commun, pour que l'effet négatif marche partout */
.hero-say {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(50px, 4vw, 70px);
  max-width: 56vw;
}

.hero-kicker {
  margin-bottom: 14px;
  font-family: var(--font-text);
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-statement {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.05vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* CTA principal : bouton blanc, texte noir gras, aucun arrondi.
   Survol : il passe en négatif (fond transparent, contour et texte blancs).
   Au scroll, il se détache et devient le CTA flottant (voir JS). */
.hero-cta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(50px, 4vw, 70px);
  display: inline-flex;
  align-items: center;
  padding: .55em .8em .5em;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-size: clamp(17px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-cta:hover {
  background: transparent;
  color: var(--white);
}

/* Le bouton du hero s'efface quand sa version flottante prend le relais */
.hero-cta.is-detached {
  visibility: hidden;
}

.hero-cta:hover .i-arrow,
#e1-submit:hover .i-arrow {
  transform: translate(2px, -2px);
}

/* Retour visuel à l'appui (mobile compris) */
.hero-cta:active,
#e1-submit:active,
.e1-service:active span {
  transform: scale(.97);
}

.hero-cta,
#e1-submit {
  transition: background var(--t-fast) ease, color var(--t-fast) ease,
              transform 120ms ease, opacity var(--t-fast) ease;
}


/* =========================================================
   2. NOTRE APPROCHE
   ========================================================= */

.details {
  display: grid;
  grid-template-columns: minmax(0, 27fr) minmax(0, 21fr) minmax(0, 53fr);
  column-gap: clamp(40px, 6.3vw, 110px);
  padding: clamp(50px, 3.6vw, 64px) var(--gutter) clamp(70px, 6vw, 110px);
}

.col-title {
  margin-bottom: 1.1em;
  font-family: var(--font-title);
  font-size: clamp(19px, 1.65vw, 28px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.approche-text {
  font-size: clamp(13px, 1.02vw, 17px);
  line-height: 1.28;
}

.approche-text + .approche-text,
.note + .approche-text {
  margin-top: 1.28em;
}

/* --- Stylo rouge : entourer / souligner (tracé qui se dessine) --- */
.pen {
  position: relative;
  white-space: nowrap;
}

.pen-svg {
  position: absolute;
  left: -.35em;
  right: -.35em;
  top: -.32em;
  bottom: -.3em;
  width: calc(100% + .7em);
  height: calc(100% + .62em);
  overflow: visible;
  pointer-events: none;
}

.pen-svg-under {
  top: auto;
  bottom: -.38em;
  left: -.1em;
  width: calc(100% + .2em);
  height: .5em;
}

.pen-svg path,
.note-arrow path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* --- Annotations manuscrites --- */
.note {
  margin-top: .35em;
  padding-right: 4%;
  text-align: right;
  font-family: var(--font-hand);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1;
  color: var(--pen);
  transform: rotate(-3deg);
  transform-origin: 100% 50%;
}

.note-method {
  margin-top: 1.6em;
  line-height: 1.05;
}

.note-left {
  padding: 0 0 0 8%;
  text-align: left;
  transform: rotate(2deg);
  transform-origin: 0 50%;
}

.note-arrow {
  display: inline-block;
  width: 1.5em;
  height: 1.1em;
  margin-right: .2em;
  vertical-align: .05em;
  overflow: visible;
}

.note-inline {
  display: inline-block;
  margin-left: .5em;
  font-family: var(--font-hand);
  font-size: .9em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pen);
  transform: rotate(-4deg) translateY(-.1em);
}

@media (prefers-reduced-motion: no-preference) {
  .js .pen-svg path,
  .js [data-mark] .note-arrow path,
  .js .note .note-arrow path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 650ms var(--ease) 700ms;
  }
  .js .is-in .pen-svg path,
  .js .note.is-in .note-arrow path {
    stroke-dashoffset: 0;
  }
  .js .note[data-mark] {
    opacity: 0;
    transition: opacity var(--t-base) ease 450ms;
  }
  .js .note[data-mark].is-in {
    opacity: 1;
  }
}

.approche-text b {
  font-weight: 700;
}

/* --- Surlignage : un "feutre" passe sur les mots clés ---
   Un fond de couleur dont la largeur passe de 0 % à 100 %.
   Sur plusieurs lignes, le trait avance ligne après ligne. */
.approche-text b {
  padding: 0 .12em;
  margin: 0 -.12em;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .js .approche-text b {
    background-size: 0% 100%;
    transition: background-size 550ms var(--ease);
  }
  .js .approche-text.is-in b {
    background-size: 100% 100%;
  }
  .js .approche-text.is-in b:nth-of-type(2) {
    transition-delay: 350ms;
  }
}

.expertises {
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.3;
  text-transform: uppercase;
}

.expertises li + li {
  margin-top: .55em;
}

/* --- Expertises : survol (desktop) ou toucher (mobile) = détail + exemple --- */
.xp-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: .4em 0;
  text-align: left;
  font: inherit;
  line-height: 1.3;
  text-transform: uppercase;
}

.xp-title {
  transition: transform var(--t-fast) var(--ease);
}

/* "+" qui devient "×" */
.xp-plus {
  position: relative;
  flex-shrink: 0;
  width: .7em;
  height: .7em;
  margin-top: .3em;
  transition: transform var(--t-base) var(--ease);
}

.xp-plus::before,
.xp-plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
}

.xp-plus::after {
  transform: rotate(90deg);
}

.xp.is-open .xp-plus {
  transform: rotate(45deg);
}

.xp.is-open .xp-title,
.xp-toggle:hover .xp-title {
  transform: translateX(6px);
}

/* Ouverture fluide : la ligne de grille passe de 0 à sa hauteur */
.xp-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}

.xp.is-open .xp-panel {
  grid-template-rows: 1fr;
}

.xp-inner {
  min-height: 0;
  overflow: hidden;
  font-size: .78em;
  line-height: 1.4;
  text-transform: none;
}

.xp-desc {
  padding-top: .3em;
}

.xp-example {
  margin-top: .8em;
  padding-left: .9em;
  border-left: 2px solid var(--pen);
}

.xp-label {
  font-family: var(--font-hand);
  font-size: 1.35em;
  font-weight: 700;
  color: var(--pen);
}

.xp-cta {
  display: inline-flex;
  align-items: center;
  margin: .9em 0 .8em;
  padding: .45em .7em .4em;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
  font-size: .95em;
  font-weight: 700;
  text-transform: uppercase;
  transition: background var(--t-fast) ease, transform 120ms ease;
}

.xp-cta:hover .i-arrow {
  transform: translate(2px, -2px);
}

.xp-cta:active {
  transform: scale(.97);
}

/* --- Logos : un peu de vie au survol --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo:hover img {
    animation: e1-wobble 600ms ease-in-out;
  }

  .m-icon.is-tossed {
    animation: e1-toss 700ms var(--ease);
  }
}

/* la pile d'assiettes vacille */
@keyframes e1-wobble {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(-4deg); }
  45%      { transform: rotate(3deg); }
  70%      { transform: rotate(-1.5deg); }
}

/* le logo s'écrase et rebondit, posé sur le noir */
@keyframes e1-jelly {
  0%, 100% { transform: scale(1, 1); }
  25%      { transform: scale(1.02, .86); }
  50%      { transform: scale(.99, 1.06); }
  75%      { transform: scale(1.005, .98); }
}

/* coup de poêle : l'icône saute et fait un tour */
@keyframes e1-toss {
  0%   { rotate: 0deg;   translate: 0 0; }
  45%  { rotate: 200deg; translate: 0 -40px; }
  100% { rotate: 360deg; translate: 0 0; }
}

/* --- Brigade --- */

.col-brigade .col-title {
  /* aligne visuellement le titre avec les portraits */
  margin-bottom: .55em;
}

.brigade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 4px;
  margin-left: -10px;
}

.member-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 225 / 295;
  background: var(--white);
}

/* --- Visage : calque aux proportions exactes du portrait,
   centré et rogné comme un "object-fit: cover" → les yeux et la
   bouche restent alignés à toutes les tailles d'écran. --- */
.face {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: var(--ar);
  transform: translateX(-50%);
  transition: transform var(--t-base) var(--ease);
}

.face img {
  width: 100%;
  height: 100%;
}

.member-photo {
  position: relative;
}

.member-photo {
  background: transparent;
}

.face {
  mix-blend-mode: multiply;
}

.member-photo:hover .face {
  transform: translateX(-50%) scale(1.035);
}

/* Fenêtre ovale à bords doux posée sur l'œil / la bouche.
   --x --y : centre (en % du portrait) · --w --h : taille (en %) */
.eye,
.mouth {
  position: absolute;
  left: calc((var(--x) - var(--w) / 2) * 1%);
  top: calc((var(--y) - var(--h) / 2) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent);
  mask-image: radial-gradient(closest-side, #000 68%, transparent);
}

/* Copie du portrait, alignée pile sous la fenêtre */
.eye > span,
.mouth > span {
  position: absolute;
  left: calc((var(--w) / 2 - var(--x)) * 100% / var(--w));
  top: calc((var(--h) / 2 - var(--y)) * 100% / var(--h));
  width: calc(10000% / var(--w));
  height: calc(10000% / var(--h));
  background: var(--src) 0 0 / 100% 100% no-repeat;
}

/* Pupilles : la copie glisse de quelques pixels (--px, --py) */
.eye > span {
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 140ms ease-out;
}

/* Paupière : descend puis remonte */
.eye::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  /* peau blanche + trait de cils noir, au milieu de l'œil une fois fermé */
  background: linear-gradient(var(--white) 0 76%, var(--black) 76% 100%);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.face.is-blinking .eye::after {
  animation: e1-blink 240ms ease-in-out;
}

@keyframes e1-blink {
  0%, 100% { transform: scaleY(0); }
  40%, 60% { transform: scaleY(1); }
}

/* Bouche : s'étire et se referme, comme une phrase */
.mouth > span {
  transform-origin: calc(var(--x) * 1%) calc(var(--y) * 1%);
}

.face.is-talking .mouth > span {
  animation: e1-talk 560ms ease-in-out;
}

@keyframes e1-talk {
  0%, 100% { transform: scaleY(1); }
  20%      { transform: scaleY(1.38); }
  40%      { transform: scaleY(.9); }
  62%      { transform: scaleY(1.26); }
  82%      { transform: scaleY(.97); }
}

@media (prefers-reduced-motion: reduce) {
  .eye,
  .mouth {
    display: none;
  }
}

.member-name,
.member-aka,
.member-role {
  padding-left: 10px;
  text-transform: uppercase;
}

.member-name {
  margin-top: .7em;
  font-size: clamp(14px, 1.15vw, 19px);
  font-weight: 700;
}

.member-aka {
  margin-top: 1.4em;
  font-size: clamp(11px, .88vw, 14px);
}

.member-role {
  margin-top: 1.2em;
  font-size: clamp(13px, 1.15vw, 19px);
  line-height: 1.3;
}


/* =========================================================
   3. FOOTER — carte finale : logo · CTA · infos · marquee
   ========================================================= */

.footer {
  background: var(--black);
  color: var(--white);
}

/* --- Logo typographique, affiché tel quel (entier, sur papier) --- */
.logo-transition {
  padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(20px, 2.6vw, 44px);
  background: var(--white);
  line-height: 0;
}

.logo-transition img {
  width: 100%;
  height: auto;
}

/* --- Bloc CTA --- */
.footer-cta {
  padding: clamp(48px, 6vw, 110px) var(--gutter) clamp(40px, 5vw, 80px);
}


.footer-title {
  display: block;
  text-align: left;
  font-family: var(--font-title);
  font-size: clamp(44px, 7.4vw, 132px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  transition: color var(--t-fast) ease;
}

.footer-title .i-arrow {
  width: .62em;
  height: .62em;
  margin-left: .12em;
  vertical-align: .04em;
}

.footer-title:hover {
  color: var(--fluo);
}

.footer-title:hover .i-arrow {
  transform: translate(6px, -6px);
}

.footer-mail {
  margin-top: clamp(26px, 2.8vw, 44px);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-text);
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 700;
}

.footer-mail a {
  transition: color var(--t-fast) ease;
}

.footer-mail a:hover {
  color: var(--fluo);
}

.copy-mail {
  padding: 3px 7px 2px;
  border: 1px solid rgba(255, 255, 255, .45);
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.copy-mail:hover,
.copy-mail.is-done {
  background: var(--fluo);
  border-color: var(--fluo);
  color: var(--black);
}


/* --- Infos --- */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-text);
  font-size: clamp(12px, .95vw, 15px);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-links a {
  transition: color var(--t-fast) ease;
}

.footer-links a:hover {
  color: var(--fluo);
}

.footer-meta {
  display: flex;
  gap: 28px;
  font-family: var(--font-text);
  font-size: .9em;
}

#footer-paris-clock {
  white-space: pre;
}

/* --- Marquee --- */

.e1-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--black);
  padding: 14px 0 24px;
}

.e1-marquee-track {
  display: flex;
  width: max-content;
  animation: e1-scroll 75s linear infinite;
  will-change: transform;
}

.e1-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.e1-marquee-text {
  display: block;
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 40px);
  font-weight: 700;
  line-height: .95;
  color: var(--cream);
  white-space: nowrap;
  padding-right: 18vw;
}

@keyframes e1-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   5. FORMULAIRE
   ========================================================= */

#e1-project-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

#e1-project-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.e1-project-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
}

.e1-project-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, clamp(580px, 40vw, 760px));
  height: 100vh;
  height: 100dvh;
  padding: 22px 34px;
  background: var(--paper-color) var(--paper);
  color: var(--black);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 380ms var(--ease);
  box-shadow: -15px 0 40px rgba(0, 0, 0, .10);
}

#e1-project-overlay.is-open .e1-project-panel {
  transform: translateX(0);
}

.e1-form-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.e1-form-kicker {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.e1-form-close {
  font-family: var(--font-title);
  font-size: 14px;
  transition: opacity 180ms ease;
}

.e1-form-close:hover {
  opacity: .6;
}

.e1-form-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(46px, 3.8vw, 68px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.e1-form-intro {
  max-width: 500px;
  margin: 0 0 22px;
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1.3;
}

.e1-form-alt {
  margin: -12px 0 22px;
  font-family: var(--font-text);
  font-size: 12px;
}

.e1-form-alt a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e1-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 14px;
}

.e1-field {
  min-width: 0;
}

.e1-full {
  grid-column: 1 / -1;
}

.e1-field label,
.e1-services-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-title);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.e1-field input,
.e1-field textarea,
.e1-field select {
  display: block;
  width: 100%;
  padding: 4px 0 7px;
  border: 0;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font-family: var(--font-text);
  font-size: 16px; /* 16px évite le zoom auto sur iPhone */
  appearance: none;
  -webkit-appearance: none;
}

.e1-field input:focus,
.e1-field textarea:focus,
.e1-field select:focus {
  border-bottom-width: 2px;
}

.e1-field textarea {
  height: 64px;
  resize: none;
}

.e1-select {
  position: relative;
}

.e1-select::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 14px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

/* --- Validation instantanée --- */
.e1-field input,
.e1-field textarea,
.e1-field select {
  transition: border-color var(--t-fast) ease;
}

.e1-field label {
  position: relative;
}

/* Coche dessinée en CSS (pas d'emoji) */
.e1-field.is-valid label::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 8px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  animation: e1-check var(--t-fast) var(--ease) both;
}

@keyframes e1-check {
  from { opacity: 0; transform: rotate(45deg) translateY(-2px) scale(.4); }
  to   { opacity: 1; transform: rotate(45deg) translateY(-2px) scale(1); }
}

.e1-field.is-invalid input,
.e1-field.is-invalid textarea,
.e1-field.is-invalid select {
  border-bottom-style: dashed;
}

.e1-field-error {
  display: block;
  margin-top: 5px;
  font-family: var(--font-text);
  font-size: 10px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
}

.e1-field.is-invalid .e1-field-error {
  opacity: 1;
  transform: none;
}

.e1-services-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.e1-services-label {
  margin-bottom: 0;
}

.e1-services-help {
  font-family: var(--font-text);
  font-size: 9px;
  opacity: .5;
}

.e1-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.e1-service {
  position: relative;
  cursor: pointer;
}

.e1-service input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.e1-service span {
  display: inline-block;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, transform 120ms ease;
  padding: 6px 9px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.e1-service input:checked + span {
  background: var(--black);
  color: var(--white);
}

.e1-service input:focus-visible + span {
  outline: 1px solid var(--black);
  outline-offset: 2px;
}

#e1-services-error,
#e1-form-error {
  display: none;
  margin-top: 7px;
  font-family: var(--font-text);
  font-size: 10px;
}

#e1-services-error.is-visible,
#e1-form-error.is-visible {
  display: block;
}

#e1-submit {
  display: inline-flex;
  align-items: baseline;
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: clamp(27px, 2.2vw, 38px);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

#e1-submit:hover {
  opacity: .75;
}

/* Chargement : points animés, sans emoji */
#e1-submit.is-loading .i-arrow {
  display: none;
}

#e1-submit.is-loading .e1-submit-label::after {
  content: "...";
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: e1-dots 900ms steps(4) infinite;
}

@keyframes e1-dots {
  to { width: 1.1em; }
}

#e1-submit:disabled {
  opacity: .4;
}

.e1-form-privacy {
  max-width: 430px;
  margin-top: 10px;
  font-family: var(--font-text);
  font-size: 9px;
  line-height: 1.25;
  opacity: .5;
}

.e1-success {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 22px 34px 32px;
  background: var(--black);
  color: var(--white);
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 400ms var(--ease);
}

.e1-project-panel.is-success {
  overflow: hidden;
}

.e1-project-panel.is-success .e1-success {
  transform: translateX(0);
  pointer-events: auto;
}

.e1-success-top {
  display: flex;
  justify-content: flex-end;
}

.e1-success-content {
  max-width: 580px;
  margin: auto 0;
}

.e1-success-thanks {
  margin: 0 0 42px;
  font-family: var(--font-title);
  font-size: clamp(72px, 7vw, 120px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.055em;
}

.e1-success-title {
  margin-bottom: 28px;
  font-family: var(--font-title);
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: .95;
  letter-spacing: -.035em;
}

.e1-success-copy {
  max-width: 510px;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.35;
}

.e1-success-delay {
  margin-top: 22px;
  font-family: var(--font-text);
  font-size: 12px;
  opacity: .6;
}


/* =========================================================
   6. TABLETTE (481px – 900px)
   Les 3 colonnes deviennent 2 + la brigade en pleine largeur.
   ========================================================= */

@media (min-width: 481px) and (max-width: 900px) {

  .details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 64px;
  }

  .col-brigade {
    grid-column: 1 / -1;
  }

  .approche-text { font-size: 14px; }
  .expertises    { font-size: 15px; }
  .member-name,
  .member-role   { font-size: 15px; }
  .member-aka    { font-size: 12px; }

  .hero-say { max-width: 60vw; }

}

/* =========================================================
   BRIGADE EN LIGNES (≤ 900px)
   1 profil = 1 ligne : portrait à gauche, texte à droite.
   ========================================================= */

@media (max-width: 900px) {

  .brigade {
    display: block;
    margin-left: 0;
  }

  .member {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(16px, 4vw, 32px);
    align-items: start;
    padding: 14px 0;
  }

  .member-photo {
    grid-row: 1 / -1;
    width: 100%;
  }

  .member-name,
  .member-aka,
  .member-role {
    grid-column: 2;
    padding-left: 0;
  }

  .member-name { margin-top: 0; }
}


/* =========================================================
   7. MOBILE (<= 480px)
   ========================================================= */

@media (max-width: 480px) {

  :root {
    --gutter: 20px;
    --bar-h: 56px;
  }

  /* ---------- HERO ---------- */

  /* La section est plus haute que l'écran : la scène reste
     "collée" en haut le temps de l'animation, puis repart
     naturellement avec le scroll. Aucun blocage. */
  .hero {
    height: 175vh;
    height: 175svh;
  }

  .hero-logo {
    display: none;
  }

  .hero-top {
    padding-top: 18px;
    font-size: 11px;
  }

  .hero-clock {
    padding-top: 0;
  }

  /* Icône : position de départ (au-dessus de la typo) */
  .m-icon {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    width: 40vw;
    max-width: 190px;
    height: auto;
    transform-origin: 50% 0;
    transform: translate(-50%, calc(50svh - 100% - 24px));
    will-change: transform;
  }

  /* Logo typographique + tagline */
  .m-typo {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 74vw;
    max-width: 340px;
    transform: translateX(-50%);
    text-align: center;
  }

  .m-typo img {
    width: 100%;
    height: auto;
  }

  .m-typo .hero-tagline {
    font-size: 10px;
  }

  /* Mini-barre noire de transition */
  .m-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: var(--bar-h);
    padding: 0 var(--gutter);
    background: var(--black);
    transform: translateY(-100%);
    will-change: transform;
  }

  .m-bar-open {
    font-family: var(--font-text);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .m-bar-clock {
    font-family: var(--font-text);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: pre;
  }

  /* Bas du hero : le texte au-dessus du CTA */
  .hero-say {
    right: var(--gutter);
    bottom: calc(max(34px, env(safe-area-inset-bottom)) + 78px);
    max-width: none;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero-statement {
    font-size: clamp(22px, 6.4vw, 28px);
    line-height: 1.08;
  }

  /* CTA visible dès l'arrivée, pleine largeur : facile à toucher */
  .hero-cta {
    left: var(--gutter);
    right: var(--gutter);
    bottom: max(34px, env(safe-area-inset-bottom));
    justify-content: space-between;
    font-size: 17px;
    padding: .85em 1em .8em;
  }

  /* État de départ de l'animation (texte seulement) */
  @media (prefers-reduced-motion: no-preference) {
    .js .hero-say {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  /* Sans animation : hero sur un seul écran, tout visible */
  @media (prefers-reduced-motion: reduce) {
    .hero {
      height: 100svh;
    }
    .m-typo {
      top: 44%;
    }
    .m-icon {
      transform: translate(-50%, calc(44svh - 100% - 24px));
    }
  }

  /* ---------- NOTRE APPROCHE ---------- */

  .details {
    display: block;
    padding: 56px var(--gutter) 72px;
  }

  .col + .col {
    margin-top: 64px;
  }

  .col-title {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .col-brigade .col-title {
    margin-bottom: 24px;
  }

  .approche-text {
    font-size: 15px;
    line-height: 1.38;
  }

  .expertises {
    font-size: 16px;
  }

  .expertises li + li {
    margin-top: .3em;
  }

  /* Brigade : lignes (voir bloc ≤ 900px), tailles mobiles */
  .member-name {
    font-size: 17px;
  }

  .member-aka {
    margin-top: 6px;
    font-size: 12px;
  }

  .member-role {
    margin-top: 14px;
    font-size: 14px;
  }

  /* ---------- FOOTER ---------- */

  .logo-transition {
    padding: 32px var(--gutter) 22px;
  }

  .footer-cta {
    padding: 44px var(--gutter) 36px;
  }

  .footer-title {
    font-size: clamp(40px, 12.5vw, 54px);
  }

  .footer-mail {
    justify-content: space-between;
    font-size: 17px;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px var(--gutter);
  }

  .footer-links {
    gap: 10px 22px;
    font-size: 13px;
  }

  .footer-meta {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }

  .e1-marquee {
    padding: 12px 0 max(22px, env(safe-area-inset-bottom));
  }

  .e1-marquee-text {
    font-size: 26px;
    padding-right: 22vw;
  }

  .float-cta {
    font-size: 13px;
    padding: 12px 14px 11px;
  }

  .note {
    font-size: 21px;
  }

  /* ---------- FORMULAIRE ---------- */

  .e1-project-panel {
    width: 100%;
    padding: 18px var(--gutter) 32px;
    box-shadow: none;
  }

  .e1-form-title {
    font-size: 48px;
  }

  .e1-form-intro {
    font-size: 13px;
  }

  .e1-form-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .e1-field label,
  .e1-services-label {
    font-size: 11px;
  }

  .e1-service span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .e1-success {
    padding: 18px var(--gutter) 32px;
  }
}


/* =========================================================
   EMPILEMENT — chaque grande partie glisse sur la précédente
   Une carte reste "collée" quand son BAS atteint le bas de
   l'écran (top calculé en JS : --stick), la suivante passe
   par-dessus. Aucun blocage du scroll.
   ========================================================= */

.js .stack-card {
  position: sticky;
  top: var(--stick, 0px);
}

.hero.stack-card   { z-index: 1; }
main.stack-card    { z-index: 2; background: var(--white); }
.footer.stack-card { z-index: 3; }

main.stack-card,
.footer.stack-card {
  box-shadow: 0 -18px 40px -14px rgba(0, 0, 0, .45);
}


/* =========================================================
   CTA FLOTTANT — visible entre le hero et le footer
   ========================================================= */

.float-cta {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 800;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px 11px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  /* négatif : noir sur les fonds clairs, blanc sur les fonds sombres */
  mix-blend-mode: difference;
  transform-origin: 0 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

.float-cta.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-fast) ease;
}

.float-cta:hover .i-arrow {
  transform: translate(2px, -2px);
}


/* =========================================================
   NOTIFICATION (copie email, easter eggs)
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1100;
  max-width: calc(100% - 40px);
  padding: 11px 16px 10px;
  background: var(--black);
  color: var(--fluo);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =========================================================
   EASTER EGGS
   ========================================================= */

/* --- Mots cliquables : petit indice au survol --- */
[data-egg] {
  cursor: pointer;
}

.approche-text b[data-egg]:hover,
.approche-text b[data-egg]:focus-visible {
  text-decoration: underline wavy var(--pen) 1px;
  text-underline-offset: 3px;
  outline: none;
}

.pen[data-egg]:hover .pen-svg path,
.pen[data-egg]:focus-visible .pen-svg path {
  stroke-width: 3px;
}

.pen[data-egg]:focus-visible {
  outline: none;
}

.note-psst {
  margin: -.4em 0 1.1em;
  padding: 0;
  font-size: clamp(17px, 1.2vw, 20px);
  transform: rotate(-1.5deg);
}

.open-carte {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.open-carte-footer {
  font-family: var(--font-hand);
  font-size: 1.35em;
  line-height: .8;
  font-weight: 700;
  color: var(--pen);
  text-decoration: none;
  text-transform: none;
}

/* --- Notification avec action --- */
.toast.has-action {
  pointer-events: auto;
}

.toast-action {
  margin-left: 12px;
  padding: 4px 8px 3px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- 1. Coup de feu : un bandeau traverse l'écran, la page tremble --- */
html.is-rush .scroll-progress {
  height: 6px;
}

.rush-banner {
  position: fixed;
  left: -5vw;
  right: -5vw;
  top: 50%;
  z-index: 945;
  padding: 12px 0 8px;
  background: var(--black);
  color: var(--fluo);
  transform: translateY(-50%) rotate(-4deg) scaleY(0);
  pointer-events: none;
  overflow: hidden;
  transition: transform 260ms var(--ease);
}

html.is-rush .rush-banner {
  transform: translateY(-50%) rotate(-4deg) scaleY(1);
}

.rush-track {
  display: flex;
  width: max-content;
  font-family: var(--font-title);
  font-size: clamp(34px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  animation: e1-scroll 3.2s linear infinite;
}

.rush-track span {
  padding-right: .5em;
}

/* 2e bandeau : la marque, en diagonale opposée */
.rush-banner-2 {
  top: 34%;
  padding: 10px 0 8px;
  background: var(--white);
  transform: translateY(-50%) rotate(5deg) scaleY(0);
  transition-delay: 120ms;
}

html.is-rush .rush-banner-2 {
  transform: translateY(-50%) rotate(5deg) scaleY(1);
}

.rush-track-2 {
  animation-direction: reverse;
  animation-duration: 4.2s;
}

.rush-track-2 span {
  display: block;
  padding-right: 4vw;
}

.rush-track-2 img {
  display: block;
  height: clamp(34px, 6vw, 80px);
  width: auto;
}

/* --- Coup de feu : les chefs (tête + corps de stickman) traversent l'écran --- */
.rush-crew {
  position: fixed;
  inset: 0;
  z-index: 946;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

html.is-rush .rush-crew {
  visibility: visible;
}

.crew-stage {
  position: absolute;
  inset: 0;
}

.crew-fig {
  position: absolute;
  left: 0;
  width: clamp(110px, 13vw, 190px);
  transform: translateX(-120%);
}

.crew-fig:nth-child(1) { bottom: 4vh; }
.crew-fig:nth-child(2) { bottom: 36vh; }
.crew-fig:nth-child(3) { bottom: 66vh; }

/* chacun traverse l'écran, dans un sens différent, par petits bonds */
html.is-rush .crew-fig:nth-child(1) { animation: crew-run-r 4.6s steps(24) 200ms both; }
html.is-rush .crew-fig:nth-child(2) { animation: crew-run-l 4.6s steps(24) 450ms both; }
html.is-rush .crew-fig:nth-child(3) { animation: crew-run-r 4.6s steps(24) 700ms both; }

@keyframes crew-run-r {
  from { transform: translateX(-120%); }
  to   { transform: translateX(calc(100vw + 20%)); }
}

@keyframes crew-run-l {
  from { transform: translateX(calc(100vw + 20%)) scaleX(-1); }
  to   { transform: translateX(-120%) scaleX(-1); }
}

/* la tête repose sur le cou du stickman */
.crew-head {
  position: relative;
  z-index: 2;
  display: block;
  width: 46%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 0 #fff);
}

html.is-rush .crew-head {
  animation: e1-bob 360ms steps(1) infinite;
}

.crew-body {
  display: block;
  width: 100%;
  height: auto;
  /* le cou est à 66/160 de la hauteur du corps (= 50,8 % de sa largeur) */
  margin-top: -49%;
}

.crew-body line,
.crew-body polyline,
.crew-body path {
  fill: none;
  stroke: #111;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crew-body .thick { stroke-width: 7; }
.crew-body .fill { fill: #111; stroke: none; }
.crew-body .steam path { stroke-width: 2.5; }

.crew-body g {
  transform-box: fill-box;
}

.crew-body .leg-l,
.crew-body .leg-r   { transform-origin: 50% 0; }
.crew-body .arm     { transform-origin: 0 0; }

/* Animations image par image (steps) : l'esprit Game & Watch */
html.is-rush .crew-body .leg-l { animation: gw-leg 360ms steps(1) infinite; }
html.is-rush .crew-body .leg-r { animation: gw-leg 360ms steps(1) 180ms infinite; }
html.is-rush .crew-body .arm-l { animation: gw-arm-l 480ms steps(1) infinite; }

html.is-rush .tool-pan   { animation: gw-flip 480ms steps(1) infinite; }
html.is-rush .tool-pan .food { animation: gw-food 480ms steps(1) infinite; transform-box: fill-box; }
html.is-rush .tool-knife { animation: gw-chop 260ms steps(1) infinite; }
html.is-rush .tool-spoon { animation: gw-stir 400ms steps(1) infinite; }
html.is-rush .crew-body .steam { animation: gw-steam 400ms steps(1) infinite; }

@keyframes e1-bob {
  0%   { translate: 0 0; }
  50%  { translate: 0 -3px; }
}

@keyframes gw-leg {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(14deg); }
}

@keyframes gw-arm-l {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(-22deg); }
}

@keyframes gw-flip {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(-16deg); }
}

@keyframes gw-food {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-26px) rotate(180deg); }
}

@keyframes gw-chop {
  0%   { transform: rotate(-14deg); }
  50%  { transform: rotate(12deg); }
}

@keyframes gw-stir {
  0%   { transform: rotate(-8deg) translateX(0); }
  50%  { transform: rotate(8deg) translateX(3px); }
}

@keyframes gw-steam {
  0%   { opacity: 1; }
  50%  { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  html.is-rush .crew-fig,
  html.is-rush .crew-head {
    animation: none;
  }
  html.is-rush .crew-fig {
    transform: none;
    left: 40%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.is-rush main.stack-card,
  html.is-rush .hero-stage {
    animation: e1-shake 180ms linear 6;
  }
}

@keyframes e1-shake {
  0%, 100% { translate: 0 0; }
  25%      { translate: -3px 1px; }
  50%      { translate: 2px -1px; }
  75%      { translate: -1px 2px; }
}

/* --- 2. Plat du jour : ticket de cuisine --- */
.ticket {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 950;
  width: min(300px, calc(100% - 36px));
  padding: 16px 16px 20px;
  background: var(--paper-color) var(--paper);
  color: var(--black);
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  /* bord bas déchiré (dents de scie) */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  transform: translateY(calc(100% + 40px)) rotate(-2deg);
  visibility: hidden;
  transition: transform 420ms var(--ease), visibility 0s linear 420ms;
}

.ticket.is-open {
  transform: rotate(-2deg);
  visibility: visible;
  transition: transform 420ms var(--ease);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--black);
  font-weight: 700;
}

.ticket-meta {
  margin: 8px 0 12px;
  font-size: 11px;
  white-space: pre;
}

.ticket-kicker {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--pen);
}

.ticket-dish {
  margin: 2px 0 12px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.ticket-lines {
  margin: 0;
  padding: 10px 0;
  border-top: 1px dashed var(--black);
  border-bottom: 1px dashed var(--black);
}

.ticket-lines dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
}

.ticket-lines dd {
  margin: 0 0 6px;
}

.ticket-actions {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.ticket-order {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 120ms ease;
}

.ticket-order:active {
  transform: scale(.97);
}

.ticket-close {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
}

/* --- 3. Pluie d'assiettes --- */
.plate-rain {
  position: fixed;
  inset: 0;
  z-index: 940;
  overflow: hidden;
  pointer-events: none;
}

.plate-rain img {
  position: absolute;
  top: 0;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
  will-change: transform;
}

/* --- Pluie d'assiettes (mobile) : penchez pour débarrasser --- */
.plate-rain.is-tilt {
  pointer-events: auto;
  touch-action: none;
}

.plate-rain.is-tilt img {
  left: 0;
  transform: translateY(-200px);
}

.tilt-hint {
  position: absolute;
  top: 38%;
  left: 20px;
  right: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px 11px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
}

.tilt-hint svg {
  flex: none;
  width: 18px;
  height: 18px;
  animation: e1-nudge 1s ease-in-out infinite;
}

@keyframes e1-nudge {
  50% { transform: translateX(6px); }
}

/* --- La salière --- */
.salt {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: none;
  cursor: none;
  touch-action: none;
}

.salt.is-on { display: block; }

.salt-shaker {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
}

.salt-shaker svg {
  display: block;
  width: 40px;
  height: 56px;
  transform: rotate(180deg);
}

.salt-shaker.is-shaking svg {
  animation: e1-salt 320ms ease-in-out;
}

@keyframes e1-salt {
  25% { transform: rotate(160deg) translateY(4px); }
  60% { transform: rotate(200deg) translateY(-3px); }
}

.salt-grain {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--white);
  border: 1px solid var(--black);
  pointer-events: none;
}

/* --- La cloche du service --- */
.bell {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 26px 14px;
  background: var(--paper-color) var(--paper);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}

.bell.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.bell-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
  transform-origin: 50% 90%;
}

.bell-btn svg {
  display: block;
  width: 84px;
  height: 63px;
}

.bell-btn.is-ringing {
  animation: e1-ring 460ms ease-in-out;
}

@keyframes e1-ring {
  20% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  70% { transform: rotate(-5deg); }
}

.bell-text {
  margin: 0;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.bell-close {
  position: absolute;
  top: 2px;
  right: 6px;
  padding: 2px 6px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .bell-btn.is-ringing,
  .salt-shaker.is-shaking svg,
  .tilt-hint svg { animation: none; }
}

/* --- Clin d'œil : une seule paupière --- */
.eye.is-winking::after {
  animation: e1-blink 420ms ease-in-out;
}

/* Mobile : notification en bas à droite, juste au-dessus du CTA flottant
   (zone naturelle du pouce, main droite) */
@media (max-width: 480px) {
  .toast {
    left: auto;
    right: 14px;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 58px);
    max-width: calc(100% - 28px);
    text-align: left;
    transform: translateY(12px);
  }
  .toast.is-visible {
    transform: none;
  }
  .toast.has-action {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .toast-action {
    flex-shrink: 0;
    padding: 10px 12px 9px;
  }
}

/* =========================================================
   BRIGADE — la fiche de chaque chef (s'ouvre en grand)
   ========================================================= */

.member-insta {
  display: inline-block;
  margin-top: .5em;
  padding-left: 10px;
  font-family: var(--font-text);
  font-size: clamp(11px, .85vw, 13px);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-insta:hover {
  color: var(--pen);
}

.member-more {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1em;
  padding: 0 0 0 10px;
  font-family: var(--font-title);
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
}

.member-more:hover .i-arrow {
  transform: translate(2px, -2px);
}

/* Le contenu reste dans la page (source de la fiche) mais n'est pas affiché ici */
.member-fiche {
  display: none;
}

@media (max-width: 900px) {
  .member {
    grid-template-rows: auto auto auto auto auto 1fr;
  }

  .member-insta,
  .member-more {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  /* bouton "Voir la fiche" bien visible, juste sous le texte */
  .member-more {
    margin-top: 14px;
    padding: 11px 14px 10px;
    border: 1.5px solid var(--black);
    font-size: 13px;
  }
}

.chef {
  position: fixed;
  inset: 0;
  z-index: 990;
  visibility: hidden;
  pointer-events: none;
}

.chef.is-open {
  visibility: visible;
}

.chef.is-open .chef-bubble {
  pointer-events: auto;
}

/* Fiche joueur : quasi plein écran sur desktop (seul le contenu change) */
.chef-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity var(--t-base) ease;
}

.chef.is-open .chef-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.chef-bubble {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(64px, 6vw, 96px) 36px;
  background: var(--paper-color) var(--paper);
  color: var(--black);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-fast) ease, transform var(--t-base) var(--ease);
}

.chef.is-open .chef-bubble {
  opacity: 1;
  transform: none;
}

/* Flèches pour changer de chef, sur les côtés */
.chef-arrow {
  position: fixed;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  background: var(--paper-color);
  transform: translateY(-50%);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.chef-arrow svg {
  width: 18px;
  height: 18px;
}

.chef-arrow:hover {
  background: var(--black);
  color: var(--white);
}

.chef-prev { left: 14px; }
.chef-next { right: 14px; }

.chef-layout {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  min-height: calc(100vh - 110px);
  padding-top: 20px;
}

/* La tête, à taille raisonnable, sur un corps de stickman animé */
.chef-figure {
  width: min(100%, 320px);
  margin: 0 auto;
}

.chef-portrait {
  display: block;
  width: 62%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 2;
}

.chef-body .crew-body {
  margin-top: -49%;
}

.chef.is-open .chef-body .leg-l   { animation: gw-leg 720ms steps(1) infinite; }
.chef.is-open .chef-body .leg-r   { animation: gw-leg 720ms steps(1) 360ms infinite; }
.chef.is-open .chef-body .arm-l   { animation: gw-arm-l 960ms steps(1) infinite; }
.chef.is-open .chef-body .tool-pan   { animation: gw-flip 960ms steps(1) infinite; }
.chef.is-open .chef-body .tool-pan .food { animation: gw-food 960ms steps(1) infinite; transform-box: fill-box; }
.chef.is-open .chef-body .tool-knife { animation: gw-chop 520ms steps(1) infinite; }
.chef.is-open .chef-body .tool-spoon { animation: gw-stir 800ms steps(1) infinite; }
.chef.is-open .chef-body .steam      { animation: gw-steam 800ms steps(1) infinite; }

/* Identité à gauche, poste à droite */
.chef-id {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--black);
}

.chef-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 12px 7px;
  border: 2px solid var(--black);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.chef-badge-label {
  font-family: var(--font-text);
  font-size: 10px;
  text-transform: uppercase;
}

.chef-pos {
  margin-top: 4px;
  max-width: 9em;
  font-size: 16px;
  line-height: 1.05;
  text-transform: uppercase;
}

.chef-stats-title span {
  font-family: var(--font-text);
  font-weight: 400;
  text-transform: none;
}

.chef-stats-title {
  margin-top: 22px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Ingrédients : barres en pourcentage, lisibles d'un coup d'œil */
.chef-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black);
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-text);
  font-size: 13px;
}

.stat-top b {
  font-family: var(--font-title);
  font-size: 15px;
}

.stat-bar {
  display: block;
  height: 8px;
  margin-top: 5px;
  border: 1.5px solid var(--black);
  background: transparent;
}

.stat-bar span {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  background: var(--fluo);
  border-right: 1.5px solid var(--black);
  animation: e1-fill 520ms var(--ease) both;
}

@keyframes e1-fill {
  from { width: 0; }
  to   { width: var(--v, 0%); }
}

/* Desktop : rubriques sur deux colonnes, grand nom */
@media (min-width: 641px) {
  .chef .chef-top {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 16px;
    background: var(--paper-color);
  }

  .chef .chef-name {
    font-size: clamp(44px, 5vw, 76px);
  }

  .chef .chef-role {
    margin-top: .6em;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 18px;
  }

  .chef .chef-fiche {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .chef .chef-fiche dd {
    font-size: 14px;
  }
}

/* Mobile : panneau en bas, barre des chefs figée en haut du panneau */
@media (max-width: 640px) {
  .chef-bubble {
    inset: auto 0 0 0;
    max-height: 72dvh;
    padding: 0 var(--gutter) max(20px, env(safe-area-inset-bottom));
    border-top: 2px solid var(--black);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    transform: translateY(100%);
  }

  .chef.is-open .chef-bubble {
    transform: none;
  }

  .chef .chef-top {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 12px;
    background: var(--paper-color);
  }

  .chef-arrow,
  .chef-visual {
    display: none;
  }

  .chef-layout {
    display: block;
    min-height: 0;
    padding-top: 0;
  }

  .chef .chef-role {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .chef-badge {
    padding: 6px 8px 5px;
  }

  .chef-pos {
    font-size: 12px;
  }

  .chef-stat-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LA MÉTHODE — de l'idée à la diffusion
   ========================================================= */

.method {
  padding: clamp(10px, 2vw, 30px) var(--gutter) clamp(70px, 7vw, 120px);
}

.method-head {
  display: grid;
  grid-template-columns: minmax(0, 27fr) minmax(0, 74fr);
  column-gap: clamp(40px, 6.3vw, 110px);
  align-items: baseline;
  padding-top: clamp(36px, 4vw, 60px);
  border-top: 1px solid var(--black);
}

.method-intro {
  max-width: 62ch;
  font-size: clamp(13px, 1.02vw, 17px);
  line-height: 1.4;
}

/* Fiche : où le chef intervient dans la méthode */
.chef-cycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: cyc;
}

.chef-cycle li {
  counter-increment: cyc;
  padding: 8px 9px 9px;
  border: 1px solid var(--black);
  color: rgba(0, 0, 0, .45);
  border-color: rgba(0, 0, 0, .25);
}

.chef-cycle li::before {
  content: "0" counter(cyc);
  display: block;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
}

.chef-cycle b {
  display: block;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.chef-cycle span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 1.3;
}

.chef-cycle li.is-current {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

@media (max-width: 900px) {
  .chef-cycle { grid-template-columns: 1fr; gap: 3px; }
  .chef-cycle li {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
  }
  .chef-cycle span { margin: 0; text-align: right; }
}


.method-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin: clamp(28px, 3vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 14px;
  border-top: 2px solid var(--black);
}

.step-n {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
}

.step-name {
  margin-top: 6px;
  font-family: var(--font-title);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.step-pro {
  margin-top: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.step-text {
  margin-top: 10px;
  font-size: clamp(12px, .9vw, 14px);
  line-height: 1.4;
}

.step-who {
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  color: var(--pen);
}

@media (max-width: 900px) {
  .method-head {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .method-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* En-tête "sélection de joueur" : 3 emplacements */
.chef-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--black);
}

.chef-tabs {
  display: flex;
  gap: 6px;
}

.chef-tab {
  width: 40px;
  height: 48px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: .45;
  transition: opacity var(--t-fast) ease, border-color var(--t-fast) ease, transform 120ms ease;
}

.chef-tab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.chef-tab:hover {
  opacity: .8;
}

.chef-tab.is-active {
  opacity: 1;
  border-color: var(--black);
}

.chef-tab:active {
  transform: scale(.94);
}

.chef-kicker {
  margin-left: auto;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chef-close {
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  padding: 4px 6px;
}

.chef-name {
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.chef-aka-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.chef-link {
  transition: color var(--t-fast) ease;
}

.chef-link:hover {
  color: var(--pen);
}

.chef-handle {
  font-family: var(--font-text);
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chef-role {
  margin-top: .7em;
  padding-bottom: .8em;
  border-bottom: 1px solid var(--black);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.chef-fiche {
  margin: 4px 0 0;
}

.chef-fiche dt {
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chef-fiche dd {
  margin: .25em 0 0;
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.38;
}

body.chef-open {
  overflow: hidden;
}

/* le visage sélectionné est "encadré", comme un joueur choisi */
.member.is-selected .member-photo {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}


/* =========================================================
   LA CARTE SECRÈTE
   ========================================================= */

.carte {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 960;
  width: min(360px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 18px 18px 16px;
  background: var(--paper-color) var(--paper);
  color: var(--black);
  font-family: var(--font-text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) ease, visibility 0s linear var(--t-base);
}

.carte.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) ease;
}

.carte-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--black);
}

.carte-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.carte-count {
  margin-left: auto;
  font-size: 12px;
}

.carte-close {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1;
}

.carte-section {
  margin: 14px 0 4px;
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: var(--pen);
}

/* "Coup de feu ................ ?" */
.carte-item {
  display: flex;
  align-items: baseline;
  width: 100%;
  padding: 3px 0;
  font-family: var(--font-text);
  font-size: 14px;
  text-align: left;
  transition: transform var(--t-fast) var(--ease);
}

.carte-item::after {
  content: "?";
  order: 3;
  margin-left: 6px;
  font-weight: 700;
}

.carte-item span {
  order: 1;
}

.carte-item::before {
  content: "";
  order: 2;
  flex: 1;
  margin: 0 6px;
  border-bottom: 1.5px dotted currentColor;
  transform: translateY(-3px);
}

.carte-item.is-found::after {
  content: "";
  width: 5px;
  height: 10px;
  margin: 0 3px 0 8px;
  border-right: 2px solid var(--pen);
  border-bottom: 2px solid var(--pen);
  transform: rotate(45deg) translateY(-3px);
}

.carte-item:hover {
  transform: translateX(4px);
}

.carte-hint {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--black);
  font-size: 11px;
  line-height: 1.35;
  opacity: .75;
}

/* Marquee : pause au survol / au toucher, pour lire tranquillement */
.e1-marquee:hover .e1-marquee-track,
.e1-marquee.is-paused .e1-marquee-track {
  animation-play-state: paused;
}

@media (max-width: 480px) {
  .carte {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }
}

/* Sans animations : pas de pluie */
@media (prefers-reduced-motion: reduce) {
  .plate-rain { display: none; }
}


/* =========================================================
   PAGE MENTIONS LÉGALES
   ========================================================= */

.legal-page {
  background: var(--white);
}

.legal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--black);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-back svg {
  width: 14px;
  height: 14px;
}

.legal-logo img {
  width: clamp(120px, 14vw, 200px);
  height: auto;
}

.legal {
  max-width: 760px;
  padding: clamp(36px, 5vw, 72px) var(--gutter) 80px;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
}

.legal h1 {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.legal-updated {
  margin-top: 12px;
  font-size: 12px;
  opacity: .6;
}

.legal section {
  margin-top: 44px;
}

.legal h2 {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal h3 {
  margin: 18px 0 4px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal p + p {
  margin-top: .8em;
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px 20px;
  margin: 14px 0 0;
}

.legal dt {
  font-weight: 700;
}

.legal dd {
  margin: 0;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .todo {
  color: var(--pen);
  font-weight: 700;
}

.legal-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter) max(26px, env(safe-area-inset-bottom));
  background: var(--black);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-foot a {
  font-family: var(--font-title);
  font-weight: 700;
}

@media (max-width: 560px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal dd {
    margin-bottom: 10px;
  }
}


/* =========================================================
   ACCESSIBILITÉ : animations réduites
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .e1-marquee-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
