/* Epoko — jetons de docs/design/systeme/tokens.json et gabarits du site. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/polices/v2/BricolageGrotesque-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 80% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00A3, U+00A5-00AC, U+00AE-00FF,
    U+014C-014D, U+0152-0153, U+016A-016B, U+0178, U+2009, U+2013-2014, U+2018-2019, U+201C-201E,
    U+2022, U+2026, U+202F, U+2032-2033, U+2039-203A, U+20AC;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/polices/v2/BricolageGrotesque-LatinExt.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 80% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123,
    U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148,
    U+014A-014B, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165,
    U+0168-0169, U+016C-0177, U+0179-017E;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/polices/v2/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Hauteur d'x rapprochée de Bricolage, métriques 930/270 sur 1 000. */
@font-face {
  font-family: "Bricolage repli";
  src: local("Arial"), local("Liberation Sans");
  font-weight: 400;
  font-display: swap;
  size-adjust: 102%;
  ascent-override: 91.2%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Bricolage repli";
  src: local("Arial Bold"), local("Liberation Sans Bold");
  font-weight: 700 800;
  font-display: swap;
  size-adjust: 102%;
  ascent-override: 91.2%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}

:root {
  --craie: #f6f3ec;
  --craie-sombre: #ede9e0;
  --blanc: #ffffff;
  --encre: #141414;
  --graphite: #55524b;
  --cobalt: #2f4bdb;
  --sur-cobalt: var(--blanc);
  --tomate: #ff5a3c;
  --beurre: #ffd25e;
  --menthe: #7fd6b5;
  --voile: rgba(20, 20, 20, 0.55);
  --fond: var(--craie);
  --surface: var(--blanc);
  --surface-creuse: var(--craie-sombre);
  --texte: var(--encre);
  --texte-second: var(--graphite);
  --contour: var(--encre);
  --ombre: var(--encre);
  --sur-accent: var(--encre);
  --progression: var(--cobalt);
  --focus: var(--cobalt);
  --font-display: "Bricolage Grotesque", "Bricolage repli", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 12px;
  --espace-4: 16px;
  --espace-5: 20px;
  --espace-6: 24px;
  --espace-8: 32px;
  --espace-12: 48px;
  --rayon-vignette: 10px;
  --rayon-pastille: 12px;
  --rayon-bouton: 14px;
  --rayon-carte: 20px;
  --rayon-feuille: 28px;
  --rayon-pilule: 999px;
  --ombre-pastille: 3px 3px 0 var(--ombre);
  --ombre-bouton: 4px 4px 0 var(--ombre);
  --ombre-carte: 5px 5px 0 var(--ombre);
  --ombre-sur-scene-sombre: 3px 3px 0 var(--blanc);
  --trait-fin: 2px;
  --trait: 2.5px;
  --marge-site: clamp(16px, 4vw, 24px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171612;
    --surface: #23211c;
    --surface-creuse: #0f0e0b;
    --texte: #f4f0e7;
    --texte-second: #b3ad9f;
    --contour: #e8e2d5;
    --ombre: #e8e2d5;
    --progression: #8a9cff;
    --focus: var(--beurre);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
}

main { flex: 1; }

.ew-conteneur {
  inline-size: calc(100% - max(var(--marge-site), env(safe-area-inset-left)) - max(var(--marge-site), env(safe-area-inset-right)));
  max-inline-size: 1240px;
  margin-inline: auto;
}

.ew-display {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ew-chapeau {
  max-inline-size: 58ch;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}

.ew-etiquette {
  margin: 0;
  color: var(--texte-second);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

a.ep-btn { text-decoration: none; }
a.ep-btn:hover:not(:active) { transform: translate(-1px, -1px); }

a:focus-visible, summary:focus-visible, main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus-visible { outline-offset: -3px; }

.ew-evitement {
  position: absolute;
  inset-block-start: var(--espace-4);
  inset-inline-start: max(var(--espace-4), env(safe-area-inset-left));
  z-index: 1;
  min-block-size: 44px;
  padding: var(--espace-3) var(--espace-4);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon-pastille);
  background: var(--beurre);
  color: var(--sur-accent);
  font-weight: 800;
  text-decoration: none;
}

.ew-evitement:not(:focus) {
  clip-path: inset(50%);
  inline-size: 1px;
  block-size: 1px;
  min-block-size: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* En-tête de la maquette et navigation principale. */
.ew-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-2) var(--espace-5);
  margin-block-start: var(--espace-5);
  padding: 10px 12px 10px 20px;
  border: var(--trait) solid var(--contour);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-bouton);
  background: var(--surface);
}

.ew-logo {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  border-radius: var(--rayon-pastille);
  color: var(--texte);
}

.ew-logo svg {
  display: block;
  inline-size: 96px;
  block-size: auto;
}

.ew-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--espace-1);
}

.ew-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 14px;
  border: var(--trait-fin) solid transparent;
  border-radius: var(--rayon-pastille);
  color: var(--texte);
  font-weight: 700;
  text-decoration: none;
}

.ew-nav a:hover { background: var(--surface-creuse); }

.ew-nav a[aria-current="page"] {
  border-color: var(--encre);
  background: var(--beurre);
  color: var(--sur-accent);
}

/* Bandeaux sur fond craie, puis colonne de lecture sur surface. */
.ew-hero, .ew-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--espace-5);
}

.ew-hero {
  gap: var(--espace-6);
  padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px);
}

.ew-hero .ew-display { max-inline-size: 14ch; }

.ew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ew-bandeau {
  max-inline-size: 1100px;
  margin-inline: auto;
  padding-inline: max(var(--marge-site), env(safe-area-inset-left)) max(var(--marge-site), env(safe-area-inset-right));
  padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 64px);
}

.ew-bandeau .ew-display { font-size: clamp(44px, 6vw, 88px); }

.ew-intro .foi {
  margin: 0;
  color: var(--texte-second);
  font-size: 15px;
  line-height: 22px;
}

.ew-bandeau-aide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-5) var(--espace-12);
}

.ew-bandeau-aide .ew-intro {
  flex: 1 1 340px;
  min-inline-size: 0;
}

.ew-bandeau-aide .ep-octave {
  inline-size: clamp(88px, 13vw, 150px);
  block-size: auto;
}

.ew-lecture {
  padding-inline: max(var(--marge-site), env(safe-area-inset-left)) max(var(--marge-site), env(safe-area-inset-right));
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px);
  border-block-start: var(--trait) solid var(--contour);
  background: var(--surface);
}

.ew-prose {
  max-inline-size: 68ch;
  margin-inline: auto;
  font-size: 17px;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.ew-prose section + section { margin-block-start: var(--espace-12); }

.ew-prose h2 {
  margin: 0 0 var(--espace-3);
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ew-prose h3 {
  margin: var(--espace-6) 0 var(--espace-2);
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}

.ew-prose p, .ew-prose ul, .ew-prose ol, .ew-prose dl { margin: 0 0 var(--espace-4); }
.ew-prose ul, .ew-prose ol { padding-inline-start: 22px; }
.ew-prose li + li { margin-block-start: var(--espace-1); }
.ew-prose dt, .ew-prose .libelle { font-weight: 700; }
.ew-prose dd { margin: 0 0 var(--espace-3); }
.ew-prose section > :last-child, .ew-reponse > :last-child { margin-block-end: 0; }

:is(.ew-prose, .foi) a {
  /* Le padding d'un lien en ligne agrandit la cible sans déplacer les lignes. */
  position: relative;
  padding-block: 14px;
  color: var(--progression);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Écarte les cibles de deux liens quand ils se retrouvent sur des lignes voisines. */
.ew-prose p > a:has(~ a) { padding-block: 28px 0; }
.ew-prose p > a ~ a { padding-block: 0 28px; }

:is(.ew-prose, .foi) a:hover { text-decoration-thickness: 2px; }

.ew-prose .ew-tuile {
  padding: var(--espace-6);
  border: var(--trait) solid var(--contour);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-carte);
  background: var(--beurre);
  color: var(--sur-accent);
}

/* Le tableau des durées garde ses en-têtes et se replie dans la colonne. */
.ew-table {
  inline-size: 100%;
  margin-block-end: var(--espace-6);
  border-collapse: collapse;
  table-layout: fixed;
}

.ew-table th, .ew-table td {
  padding: var(--espace-2) var(--espace-3);
  border-block-start: 1px solid var(--contour);
  text-align: start;
  vertical-align: top;
}

.ew-table th:first-child { inline-size: 40%; }
.ew-table thead th { background: var(--surface-creuse); }
.ew-prose .ew-credit { margin: var(--espace-12) 0 0; }

.ew-questions h2 {
  padding-block-end: var(--espace-3);
  border-block-end: var(--trait) solid var(--contour);
}

.ew-faq { border-block-end: var(--trait-fin) solid var(--contour); }

.ew-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--espace-4);
  min-block-size: 44px;
  padding: var(--espace-4) var(--espace-1);
  cursor: pointer;
  list-style: none;
}

.ew-faq summary h3 { margin: 0; }
.ew-faq summary::-webkit-details-marker { display: none; }

.ew-faq summary::after {
  content: "+" / "";
  display: grid;
  flex-shrink: 0;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border: var(--trait-fin) solid var(--contour);
  border-radius: 50%;
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
}

.ew-faq[open] summary::after {
  content: "–" / "";
  background: var(--beurre);
  color: var(--sur-accent);
}

.ew-reponse { padding: 0 var(--espace-1) var(--espace-5); }

/* Pied de page sur encre en clair, sur surface en sombre. */
.ew-pied {
  --focus: var(--beurre);
  padding-block: var(--espace-12) var(--espace-8);
  border-block-start: var(--trait) solid var(--contour);
  background: var(--encre);
  color: var(--craie);
}

.ew-pied-haut {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--espace-4) var(--espace-8);
  padding-block-end: var(--espace-8);
}

.ew-pied .ew-etiquette { color: var(--beurre); }

.ew-pied-liens, .ew-pied .langues {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--espace-5);
}

.ew-pied-bas {
  padding-block-start: var(--espace-5);
  border-block-start: 1px solid var(--craie-sombre);
  color: var(--craie-sombre);
}

.ew-pied-bas p { margin: 0; }

.ew-pied a {
  display: inline-flex;
  align-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  color: var(--craie);
  text-decoration: none;
  text-underline-offset: 4px;
}

.ew-pied a:hover, .ew-pied a[aria-current="page"] {
  color: var(--beurre);
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .ew-pied { background: var(--surface); }
}

@media (max-width: 760px) {
  .ew-entete { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .ew-logo { grid-column: 1 / -1; justify-self: start; }
  .ew-nav { justify-content: flex-start; }
  .ew-nav a { padding-inline: 10px; font-size: 15px; }
  .ew-chapeau { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  a.ep-btn { transition: none; }
  a.ep-btn:hover:not(:active), a.ep-btn:active { transform: none; }
}

/* Héros jouable (W3a, #849) */
.ew-demo {
  display: grid;
  grid-template-areas: "intro" "scene" "resultat";
  gap: var(--espace-6);
  padding-block-start: clamp(24px, 4vw, 56px);
}

.ew-demo-intro {
  grid-area: intro;
  display: grid;
  justify-items: start;
  gap: var(--espace-4);
}

.ew-demo .ew-display { font-size: clamp(48px, 7vw, 100px); }
.ew-demo .ew-chapeau { max-inline-size: 42ch; }

.ew-demo-commandes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-3);
}

.ew-demo-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  clip-path: inset(50%);
}

.ew-demo :is(label.ep-btn, a.ep-btn) {
  min-inline-size: 44px;
  height: auto;
  min-block-size: 56px;
  padding-block: var(--espace-2);
  transition: none;
}

.ew-demo:has(#demo-cherche:focus-visible) label[for="demo-cherche"],
.ew-demo:has(#demo-indice:focus-visible) label[for="demo-indice"],
.ew-demo:has(#demo-trouve:focus-visible) .ew-demo-commandes label[for="demo-trouve"] {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.ew-demo:has(#demo-rate:focus-visible) .ew-demo-zone-rate {
  outline: 3px solid var(--blanc);
  outline-offset: -5px;
  box-shadow: inset 0 0 0 8px var(--encre);
}

.ew-demo-clavier {
  margin: 0;
  color: var(--texte-second);
  font-size: 15px;
}

.ew-demo-figure {
  grid-area: scene;
  justify-self: center;
  inline-size: 100%;
  max-inline-size: 520px;
  margin: 0;
}

.ew-demo-cadre {
  /* Centre et dimensions de la boîte du manifeste W2a, avant tolérance. */
  --intrus-x: 56.2%;
  --intrus-y: 37.95%;
  --intrus-largeur: 12%;
  --intrus-hauteur: 5.1%;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--rayon-carte);
  outline: var(--trait) solid var(--contour);
  box-shadow: var(--ombre-carte);
  background: var(--surface-creuse);
}

#demo-scene {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.ew-demo-figure figcaption {
  display: grid;
  gap: var(--espace-1);
  margin-block-start: var(--espace-3);
  color: var(--texte-second);
}

.ew-demo-figure figcaption strong { color: var(--texte); }

.ew-demo-zone-rate,
.ew-demo-zone-trouve,
.ew-demo-cercle-indice,
.ew-demo-cercle-trouve,
.ew-demo-message { position: absolute; }

.ew-demo-zone-rate,
.ew-demo-zone-trouve { cursor: crosshair; }

.ew-demo-zone-rate { inset: 0; }

.ew-demo-zone-trouve,
.ew-demo-cercle-trouve {
  left: var(--intrus-x);
  top: var(--intrus-y);
  transform: translate(-50%, -50%);
}

.ew-demo-zone-trouve {
  inline-size: max(44px, var(--intrus-largeur));
  block-size: max(44px, var(--intrus-hauteur));
}

.ew-demo-cercle-indice,
.ew-demo-cercle-trouve {
  display: none;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.ew-demo-cercle-indice {
  /* Trois demi-diagonales, centre décalé de 60 % de la marge vers le haut-gauche. */
  left: 50.34823%;
  top: 33.56117%;
  inline-size: 41.37826%;
  transform: translate(-50%, -50%);
  border: 5px dashed var(--beurre);
  box-shadow: 0 0 0 2px var(--encre), inset 0 0 0 2px var(--encre);
}

.ew-demo-cercle-trouve {
  inline-size: 25%;
  border: 5px solid var(--blanc);
  box-shadow: 0 0 0 2.5px var(--encre), 0 0 0 100vmax var(--voile),
    inset 0 0 0 2.5px var(--encre), inset 0 0 0 9px var(--tomate),
    inset 0 0 0 11.5px var(--encre);
}

.ew-demo-message {
  inset: var(--espace-3) var(--espace-3) auto;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ew-demo-message .ep-consigne { display: none; }
.ew-demo-message .ew-demo-message-rate { background: var(--tomate); }
.ew-demo-message .ew-demo-message-indice { background: var(--beurre); }

.ew-demo:has(#demo-cherche:checked) .ew-demo-message-cherche,
.ew-demo:has(#demo-rate:checked) .ew-demo-message-rate,
.ew-demo:has(#demo-indice:checked) :is(.ew-demo-message-indice, .ew-demo-cercle-indice),
.ew-demo:has(#demo-trouve:checked) :is(.ew-demo-message-trouve, .ew-demo-cercle-trouve) {
  display: block;
}

.ew-demo:has(#demo-trouve:checked) :is(.ew-demo-zone-rate, .ew-demo-zone-trouve) {
  pointer-events: none;
}

.ew-demo-resultat {
  grid-area: resultat;
  display: none;
  justify-items: start;
  gap: var(--espace-4);
}

.ew-demo:has(#demo-trouve:checked) .ew-demo-resultat { display: grid; }

.ew-demo-victoire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-3);
}

.ew-demo-victoire svg { overflow: hidden; }

.ew-demo-victoire h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.ew-demo-resultat .ep-carte { max-inline-size: 42ch; }
.ew-demo-resultat .ep-carte-haut { margin: 0; }

.ew-demo-aide {
  display: inline-flex;
  align-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  margin-block: var(--espace-4) var(--espace-8);
  color: var(--progression);
  text-underline-offset: 3px;
}

@media (min-width: 1080px) {
  .ew-demo {
    grid-template-columns: minmax(0, 1fr) 520px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro scene" "resultat scene";
    column-gap: 56px;
  }

  .ew-demo-intro { padding-block-start: var(--espace-8); }
  .ew-demo-figure { align-self: start; }
}

/* Accueil, sections W3b (#850) */
/* Diffère le rendu après le héros pour limiter le LCP (#850). */
.ew-demo ~ section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto var(--hauteur-section, 560px);
}

.ew-accueil-section {
  padding-block: clamp(48px, 7vw, 96px);
}

.ew-accueil-section .ew-display,
.ew-accueil-offre .ew-display,
.ew-accueil-appel .ew-display {
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1;
}

.ew-accueil-section .ew-etiquette + h2 { margin-block-start: var(--espace-2); }

.ew-salles,
.ew-minicartes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ew-salles {
  margin-block-start: var(--espace-8);
  border-block-end: var(--trait-fin) solid var(--contour);
}

.ew-salles li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--espace-1) var(--espace-3);
  padding-block: var(--espace-4);
  border-block-start: var(--trait-fin) solid var(--contour);
}

.ew-salle-numero {
  grid-row: span 3;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ew-salles h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.1;
}

.ew-salle-periode { color: var(--texte-second); }

@media (min-width: 820px) {
  .ew-salles li {
    grid-template-columns: 1fr 5fr 4fr 2fr;
    gap: var(--espace-8);
    padding-inline: var(--espace-4);
  }

  .ew-salle-numero { grid-row: auto; }
}

.ew-accueil-reglement {
  --hauteur-section: clamp(420px, 1050px - 45vw, 880px);
  background: var(--cobalt);
  color: var(--sur-cobalt);
}

.ew-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--espace-8) var(--espace-12);
  margin-block-start: var(--espace-8);
}

.ew-articles .ew-etiquette { color: var(--beurre); }
.ew-articles h3 { margin: 8px 0; font-size: 23px; line-height: 1.15; }
.ew-articles p { margin: 0; line-height: 1.5; }

.ew-collection {
  --hauteur-section: clamp(460px, 940px - 50vw, 750px);
  display: grid;
  gap: var(--espace-8);
}

.ew-collection .ew-chapeau { margin-block-start: var(--espace-4); }

.ew-minicartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--espace-4);
}

.ew-minicartes .ep-minicarte-bas { margin-block-start: auto; }
.ew-minicartes .ep-minicarte-ecart { white-space: normal; }
.ew-collection-legende { margin-block-start: var(--espace-4); }

@media (min-width: 640px) {
  .ew-minicartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .ew-collection { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.ew-accueil-offre {
  --hauteur-section: 320px;
  margin-block-end: clamp(48px, 7vw, 96px);
  padding: clamp(20px, 4vw, 56px);
  border: var(--trait) solid var(--contour);
  border-radius: var(--rayon-feuille);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
  font-size: 18px;
  line-height: 1.4;
}

.ew-offre-prix { margin-block-end: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.ew-offre-remise {
  display: inline-block;
  margin-block: var(--espace-2) 0;
  padding: 4px 10px;
  border-radius: var(--rayon-pastille);
  background: var(--beurre);
  color: var(--sur-accent);
  font-weight: 800;
}

.ew-accueil-appel {
  --hauteur-section: 260px;
  padding-block: clamp(40px, 6vw, 72px);
  border-block-start: var(--trait) solid var(--contour);
  background: var(--beurre);
  color: var(--sur-accent);
  text-align: center;
}

.ew-accueil-appel .ew-conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--espace-6);
}

.ew-accueil-appel svg { overflow: hidden; }
.ew-badge-app-store { display: inline-block; margin-block-start: 8px; padding: 15px; }
.ew-badge-app-store:focus-visible { outline-color: var(--encre); }
.ew-badge-app-store img { display: block; }

/* Salles et Epoko+ (W4, #851) */
@media (max-width: 760px) {
  html[lang="fr"] .ew-entete { align-items: start; }
  html[lang="fr"] .ew-nav a { min-inline-size: 44px; }
}

.ew-lien-w4 {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--texte);
  font-weight: 800;
  text-underline-offset: 4px;
}

.ew-lien-w4:hover { color: var(--progression); }
.ew-salles + .ew-lien-w4 { margin-block-start: var(--espace-4); }

.ew-salles-visite,
.ew-plus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-block-end: clamp(48px, 7vw, 96px);
}

.ew-salle,
.ew-plus-prix {
  padding: clamp(16px, 3vw, 40px);
  border: var(--trait) solid var(--contour);
  border-radius: var(--rayon-carte);
  background: var(--surface);
  box-shadow: var(--ombre-carte);
}

.ew-salle {
  display: grid;
  align-items: start;
  gap: clamp(20px, 4vw, 56px);
}

.ew-salle + .ew-salle {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 1140px;
}

.ew-salle-vignette {
  display: block;
  inline-size: min(100%, 288px);
  border: var(--trait-fin) solid var(--contour);
  border-radius: var(--rayon-vignette);
  overflow: hidden;
  background: var(--surface-creuse);
}

.ew-salle-vignette img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.ew-salle-texte { min-inline-size: 0; }

.ew-salle .ew-display,
.ew-plus .ew-display {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.ew-salle-periode { margin-block: var(--espace-3); }
.ew-salle-prose { max-inline-size: 68ch; }
.ew-salle .ep-minicarte { max-inline-size: 244px; }
.ew-salle .ep-minicarte .ew-etiquette { color: var(--graphite); }

@media (min-width: 760px) {
  .ew-salle { grid-template-columns: 288px minmax(0, 1fr); }
  .ew-salle + .ew-salle { contain-intrinsic-block-size: auto 680px; }
}

.ew-plus { max-inline-size: 1100px; }

.ew-plus-table {
  inline-size: 100%;
  border-collapse: collapse;
  background: var(--surface);
  table-layout: fixed;
}

.ew-plus-table caption {
  padding-block-end: var(--espace-3);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  text-align: start;
}

.ew-plus-table :is(th, td) {
  padding: clamp(8px, 2vw, 24px);
  border: 1px solid var(--contour);
  text-align: start;
  vertical-align: top;
}

.ew-plus-table thead { background: var(--surface-creuse); }
.ew-plus-table thead td:first-child { inline-size: 24%; }
.ew-plus-table :is(th, td):last-child {
  color: var(--sur-accent);
  background: var(--beurre);
}

.ew-plus-prix .ew-offre-remise { margin-block: var(--espace-3) var(--espace-2); }
.ew-plus-prix .ew-badge-app-store:focus-visible { outline-color: var(--focus); }
.ew-plus-questions { max-inline-size: 68ch; }
.ew-plus-questions h3 { margin-block: var(--espace-6) var(--espace-2); }
.ew-plus-questions p { margin-block: 0; }
