/* Pop'Quiz — page d'accueil. Charte : DESIGN.md à la racine du projet. */

@font-face {
  font-family: "Neo Tech Pro";
  src: url("../assets/fonts/neotechpro-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #333946;
  --ink-soft: #4a5160;
  --bg: #f1f6f2;
  --blue: #d6dfe6;
  --green: #eaf2dd;
  --yellow: #fdec94;
  --red: #eb5953;
  --dot: rgba(185, 200, 214, 0.5);

  --t-loisirs: #fdec94;
  --t-scolaire: #eb5953;
  --t-societe: #81a2d8;
  --t-arts: #fda768;
  --t-sciences: #80c397;
  --t-culture: #b09fdf;

  --title: "Neo Tech Pro", system-ui, sans-serif;
  --text: Nunito, system-ui, sans-serif;
  --dots: radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px) 0 0 / 10px 10px;
  --veil: rgba(241, 246, 242, 0.6);
  --header-h: 116px;
  /* Passage de la barre pleine à la barre réduite : lent, avec un léger rebond */
  --bar-t: 0.9s;
  --bar-ease: cubic-bezier(0.45, 1.35, 0.5, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.defs { position: absolute; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

.wrap { max-width: 1264px; margin: 0 auto; padding-inline: 32px; }

/* ---------- Typographie ---------- */

h1, h2, h3, .h1, .btn, .nav, .card__title, .theme, .latest__title,
.school__title, .answer, .quiz__bar, .link {
  font-family: var(--title);
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.2vw, 56px); line-height: 1.05; }
.h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.lead--sm { font-size: 18px; }
.lead--ink { color: var(--ink); }
.small { font-size: 14px; }

/* ---------- Trait à main levée : le vrai trait de la graphiste, tiré du kit Canva ----------
   Le fond est un aplat (::before). Le contour est une image du kit posée en bordure (::after) :
   coins d'origine, côtés longs à coupures rares et irrégulières, jamais étirés.
   Chaque côté porte un nombre entier de morceaux (« round ») : il arrive toujours pile sur ses coins (27 nov. 2026).
   Les images se refont avec design/generer_trait_kit.py. */

.box { position: relative; isolation: isolate; --ti: url(../assets/img/trait-a.webp); --tw: 18px; }
.btn, .answer, .field__box, .count__card, .quiz__bar { --ti: url(../assets/img/trait-b.webp); --tw: 16px; }
.btn--sm, .header__cta, .count__badge { --tw: 13px; }
.box::before {
  content: "";
  /* le fond s'arrête au milieu du trait (13 % de son épaisseur, mesuré sur l'image) : il ne dépasse pas du contour */
  position: absolute; inset: calc(var(--tw) * 0.13 - 2px); z-index: -1;
  background: var(--fill, var(--blue));
  /* même arrondi que les coins de l'image du trait, qui grandit avec son épaisseur */
  border-radius: calc(var(--tw) * 0.78);
}
.box::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  border: var(--tw) solid transparent; border-image: var(--ti) 40 / var(--tw) round;
}
/* Formes rondes (pastilles A-D, bouton lecture, flèches, pastilles de classe) : ce sont des images du kit
   (voir « Pièces du kit Canva » en fin de fichier). Ni fond ni contour dessinés par le code. */
.round::before, .answer__letter::before, .play::before, .pastille::before,
.round::after, .answer__letter::after, .play::after, .pastille::after { content: none; }

.sep { position: absolute; left: 0; width: 100%; height: 16px; color: var(--ink); pointer-events: none; }
.sep--top { top: -8px; }
.sep--bottom { bottom: -8px; }
/* Trait des grands séparateurs (retenu le 30 nov. 2026, 3 px) : vrais morceaux du trait crayon de la graphiste,
   mis bout à bout sans les coupures et un peu épaissis (design/generer_trait_separateur.py). L'image sert de masque :
   la couleur reste celle du site. Le motif fait 1200 px et se répète sans raccord. Le tracé SVG d'origine est masqué. */
.sep, .header__fill { background-color: currentColor; -webkit-mask: url(../assets/img/sep-trait.webp) repeat-x left center / 1200px 16px; mask: url(../assets/img/sep-trait.webp) repeat-x left center / 1200px 16px; }
.sep > use, .header__fill > use { display: none; }

/* ---------- Boutons ---------- */

.btn {
  --fill: var(--yellow); --r: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; min-height: 48px; border: 0; background: none;
  font-size: 20px; line-height: 1.2; text-decoration: none; color: var(--ink);
  cursor: pointer; transition: transform 0.15s;
}
.btn--blue { --fill: var(--blue); }
.btn--ink { --fill: var(--ink); color: var(--bg); }
.btn--xl { padding: 16px 40px; font-size: 24px; }
.btn--sm { padding: 12px 24px; font-size: 18px; }
.btn:hover, a:hover > .school__cta .btn { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }

.lift { transition: transform 0.2s; }
.lift:hover { transform: translateY(-4px) rotate(-0.6deg); }

.round {
  --fill: var(--yellow); --r: 999px;
  width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s;
}
.round--blue { --fill: var(--blue); }

.link { font-size: 18px; padding: 10px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--tag, var(--bg)); font-family: var(--text); font-size: 14px; font-weight: 700;
}
.tag--green { --tag: var(--green); padding-block: 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); }

/* ---------- Accroche d'ouverture : quelques secondes, puis elle se lève comme un rideau ---------- */

.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 24px; text-align: center; color: var(--ink);
  background: radial-gradient(circle, rgba(51, 57, 70, 0.14) 1.4px, transparent 1.8px) 0 0 / 12px 12px, var(--yellow);
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Tant que l'accroche est là, la page dessous ne défile pas */
html.intro-on { overflow: hidden; }
.js.no-intro .intro, .intro[hidden] { display: none; }
.intro.is-leaving { transform: translateY(calc(-100% - 24px)); }
.intro__edge { position: absolute; left: 0; top: calc(100% - 2px); width: 100%; height: 14px; color: var(--yellow); }
.intro__l1 { font-family: var(--title); font-weight: 700; font-size: clamp(34px, 7vw, 88px); line-height: 1.05; }
.intro__l1 span { display: inline-block; animation: intro-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.intro__l1 span:nth-child(1) { animation-delay: 0.2s; }
.intro__l1 span:nth-child(2) { animation-delay: 0.45s; }
.intro__l1 span:nth-child(3) { animation-delay: 0.7s; }
.intro__l1 i { font-style: normal; display: inline-block; animation: intro-dot 0.7s cubic-bezier(0.3, 0, 0.5, 1) both; }
.intro__l1 i:nth-of-type(1) { animation-delay: 1.15s; }
.intro__l1 i:nth-of-type(2) { animation-delay: 1.5s; }
.intro__l1 i:nth-of-type(3) { animation-delay: 1.85s; }
.intro__l2 {
  --fill: var(--ink); --r: 20px; --tw: clamp(18px, 2.4vw, 30px);   /* grande boîte : trait plus épais */
  font-family: var(--title); font-weight: 700; font-size: clamp(30px, 8.6vw, 128px); line-height: 1; white-space: nowrap;
  color: var(--bg); padding: 0.27em 0.42em 0.17em; transform: rotate(-3deg);
  animation: intro-slam 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.7s both;
}
.intro__q { display: inline-block; color: var(--yellow); animation: intro-wiggle 0.5s ease-in-out 3.4s 3 both; }
@keyframes intro-pop { 0% { opacity: 0; transform: translateY(24px) rotate(-6deg) scale(0.8); } 100% { opacity: 1; transform: none; } }
/* Les trois points tombent du haut de l'écran et rebondissent */
@keyframes intro-dot {
  0% { opacity: 0; transform: translateY(-60vh); }
  12% { opacity: 1; }
  62% { transform: translateY(0); }
  76% { transform: translateY(-0.28em); }
  88% { transform: translateY(0); }
  94% { transform: translateY(-0.08em); }
  100% { opacity: 1; transform: none; }
}
@keyframes intro-slam { 0% { opacity: 0; transform: rotate(8deg) scale(2.2); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes intro-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg) scale(1.15); } 70% { transform: rotate(14deg) scale(1.15); } }

/* ---------- En-tête ---------- */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: var(--bg);
  transition: background-color 0.5s;
}
/* En haut de page, la barre est transparente sur le hero ; elle prend un fond dès qu'on défile */
.js .header:not(.is-stuck):not(.is-menu) { background: transparent; }
/* Trait de la barre : plus fin que les séparateurs de section, décollé du menu ; il se dessine quand la barre se réduit */
/* sous la barre du haut : le même trait, plus fin (2,5 px), et le fond de la barre s'arrête au milieu du trait */
.header__sep { bottom: -11px; -webkit-mask-image: url(../assets/img/sep-trait-fin.webp); mask-image: url(../assets/img/sep-trait-fin.webp); }
/* Le fond de la barre épouse le trait ondulé : rien ne passe entre les deux quand on défile */
.header__fill { position: absolute; left: 0; bottom: -11px; width: 100%; height: 16px; color: var(--bg); pointer-events: none; transition: opacity 0.5s; -webkit-mask-image: url(../assets/img/sep-fond.webp); mask-image: url(../assets/img/sep-fond.webp); }
.js .header:not(.is-stuck):not(.is-menu) .header__fill { opacity: 0; }
.js .header__sep { clip-path: inset(-12px 100% -12px 0); transition: clip-path 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.15s; }
.js .header.is-stuck .header__sep { clip-path: inset(-12px 0 -12px 0); }
.js .header:not(.is-stuck) .header__sep { transition-duration: 0.35s; transition-delay: 0s; }
.header.is-stuck .header__in { padding-block: 9px 11px; gap: 16px; }
/* Barre réduite au défilement : tout rapetisse, pas seulement le logo */
.nav, .nav a, .nav__pill img, .header__cta {
  transition: font-size var(--bar-t) var(--bar-ease), padding var(--bar-t) var(--bar-ease), margin var(--bar-t) var(--bar-ease),
    width var(--bar-t) var(--bar-ease), height var(--bar-t) var(--bar-ease), min-height var(--bar-t) var(--bar-ease), gap var(--bar-t) var(--bar-ease), transform 0.15s;
}
.header.is-stuck .nav { font-size: 16px; gap: 2px; }
.header.is-stuck .nav a { padding: 6px 12px; }
.header.is-stuck .nav .nav__pill { padding: 6px 14px; margin-inline: 14px; }
.header.is-stuck .nav__pill img { width: 22px; height: 22px; }
/* Bouton s'abonner : bleu en haut de page, foncé et plus petit dans la barre réduite */
.header__cta { transition-property: font-size, padding, min-height, color, transform; }
.header__cta::before { transition: background-color 0.5s; }
.header.is-stuck .header__cta { --fill: var(--ink); color: var(--bg); font-size: 15px; padding: 5px 16px; min-height: 34px; }
.header__in { display: flex; align-items: center; gap: 24px; padding-block: 16px; transition: padding var(--bar-t) var(--bar-ease), gap var(--bar-t) var(--bar-ease); }
.header__logo { position: relative; display: block; flex-shrink: 0; width: 120px; height: 76px; perspective: 600px; transition: width var(--bar-t) var(--bar-ease), height var(--bar-t) var(--bar-ease); }
.header__logo img { position: absolute; left: 0; top: 0; height: 100%; width: auto; display: block; backface-visibility: hidden; }
/* Logo long en haut de page, logo court dès qu'on défile : bascule autour d'un axe vertical, comme une carte qu'on retourne */
/* Celui qui sort tourne d'abord puis s'efface ; celui qui entre attend la fin de la sortie */
.header__logo .logo-long { transition: opacity 0.1s 0.45s, transform 0.5s ease-out 0.45s; }
.header__logo .logo-court { opacity: 0; transform: rotateY(-90deg); transition: opacity 0.1s 0.4s, transform 0.5s ease-in; }
.js .header.is-stuck .header__logo { width: 42px; height: 40px; }
.js .header.is-stuck .logo-long { opacity: 0; transform: rotateY(90deg); transition: opacity 0.1s 0.4s, transform 0.5s ease-in; }
.js .header.is-stuck .logo-court { opacity: 1; transform: none; transition: opacity 0.1s 0.45s, transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) 0.45s; }
.header__logo:hover .logo-long, .js .header.is-stuck .header__logo:hover .logo-court { transform: rotate(-6deg) scale(1.05); transition: transform 0.2s; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-grow: 1; font-size: 18px; }
.nav a { padding: 10px 16px; text-decoration: none; }
.nav a:not(.nav__pill):hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.nav .nav__pill {
  --fill: var(--bg); --r: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; margin-inline: 24px; transition: transform 0.15s;
}
.nav .nav__pill:hover { transform: rotate(-1.5deg); }
.nav__pill img { width: 28px; height: 28px; object-fit: contain; }
/* Menus déroulants « classes » et « culture G » : au survol ou au clic sur ordinateur, en accordéon sur mobile */
.nav__group { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; padding: 10px 16px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav__toggle:hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.nav__toggle .nav__fleche { transition: transform 0.6s; transform-origin: 50% 50%; transform-box: fill-box; }
.nav__toggle[aria-expanded="true"] .nav__fleche { transform: rotate(180deg); }
.nav__sub {
  --fill: var(--bg); --r: 14px;
  position: absolute; top: calc(100% + 4px); left: 4px; z-index: 30;
  display: flex; flex-direction: column; min-width: 210px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.6s, transform 0.6s, visibility 0s 0.6s;
}
.nav__group:hover .nav__sub, .nav__group.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s, transform 0.6s, visibility 0s;
}
.nav .nav__sub a { padding: 10px 14px; white-space: nowrap; }
.header.is-stuck .nav__toggle { padding: 6px 12px; }
.header.is-stuck .nav .nav__sub a { padding: 8px 14px; }
@keyframes accordeon { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav__sub, .nav__toggle .nav__fleche { transition: none; } .nav__group.is-open .nav__sub { animation: none; } }
.header__cta { font-size: 18px; padding: 12px 24px; flex-shrink: 0; }
.menu-btn {
  --fill: var(--bg); --r: 12px;
  display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { background: var(--dots), var(--bg); padding-top: var(--header-h); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
  padding-block: 48px 104px;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__visual { min-width: 0; }
.hero .lead { max-width: 580px; }
.hero h1 { max-width: 13em; }
.hero .btn { margin-top: 16px; }

.hero__video { --r: 18px; display: block; margin: 40px 36px 40px 44px; padding: 12px; transform: rotate(2deg); transition: transform 0.25s; }
.hero__video:hover { transform: rotate(0deg) scale(1.02); }
.hero__video > img:first-child { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 10px; }
.hero__sticker { position: absolute; object-fit: contain; }
.hero__sticker--1 { left: -44px; top: -48px; width: 110px; height: 110px; }
.hero__sticker--2 { right: -36px; bottom: -40px; width: 100px; height: 100px; }




/* ---------- Fonds à points atténués ---------- */

.soft { background: linear-gradient(var(--veil), var(--veil)), var(--dots), var(--bg); }
.soft--fade { background: linear-gradient(to bottom, rgba(241, 246, 242, 0), var(--veil) 240px), var(--dots), var(--bg); }

/* ---------- Essaie tout de suite ---------- */

.try__in {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 48px; row-gap: 28px;
  grid-template-areas: "quiz head" "quiz steps"; padding-bottom: 96px;
}
.try__head { grid-area: head; align-self: end; display: flex; flex-direction: column; gap: 12px; }
.quiz {
  --fill: var(--bg); --r: 18px;
  grid-area: quiz; align-self: center; min-width: 0; z-index: 1; /* au-dessus de la liste : la carte d'explication vient se poser dessus */
  display: flex; flex-direction: column; gap: 28px; padding: 20px 20px 32px;
}
.quiz__bar {
  --fill: var(--red); --r: 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 12px 24px; font-size: 20px;
}
.quiz__q { font-size: 24px; line-height: 1.3; text-align: center; }
.quiz__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding-inline: 12px; }
.answer {
  --fill: var(--blue); --r: 10px;
  min-height: 56px; padding: 14px 44px; /* marges égales : texte centré, sans passer sous la pastille */
  border: 0; background: none; color: var(--ink);
  font-size: 20px; text-align: center; cursor: pointer; transition: transform 0.15s;
}
.answer:hover { transform: translateY(-2px) rotate(-1deg); }
.answer__letter {
  --fill: var(--yellow); --r: 999px;
  position: absolute; left: -12px; top: -12px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.answer.is-good { --fill: #dbe799; }
.answer.is-bad { --fill: var(--t-arts); }
.answer.is-good { animation: pop 0.45s ease-out; }
.answer.is-bad { animation: shake 0.8s ease-in-out; }
.quiz__feedback { min-height: 29px; text-align: center; font-size: 18px; font-weight: 700; }
/* Trois questions qui s'enchaînent : une seule visible à la fois quand le script tourne */
.quiz__item { display: flex; flex-direction: column; gap: 28px; }
.js .quiz__item:not(.is-current) { display: none; }
.quiz__item + .quiz__item { margin-top: 28px; }
.js .quiz__item + .quiz__item { margin-top: 0; }
.quiz.is-locked .answer { cursor: default; }
.quiz__next { margin-top: 4px; }
.quiz__end { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 8px 8px; text-align: center; animation: pop 0.45s ease-out; }
.quiz__end[hidden] { display: none; }
.quiz__end img { width: 96px; height: 96px; object-fit: contain; }
.quiz__score { font-family: var(--title); font-weight: 700; font-size: 32px; line-height: 1.2; }
.quiz__endtext { color: var(--ink-soft); }
.quiz__endbtns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }

/* Explication visuelle : une carte qui sort de derrière la question et vient se poser à côté, sur la liste.
   Elle part sous le fond de la question (z-index négatif), puis passe au-dessus une fois sortie. */
.quiz__explain {
  --fill: var(--yellow); --r: 16px; --fx: -108%; --fy: 0px;
  position: absolute; left: calc(100% - 14px); top: 16px; bottom: 16px; height: fit-content; margin-block: auto; z-index: -2; width: clamp(300px, 27vw, 380px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 18px 16px;
  /* déplacement et angle en propriétés séparées : l'angle suit exactement --ang, que le bouton compense */
  --ang: 2deg; translate: var(--dx, 0px) var(--dy, 0px); rotate: var(--ang);
  animation: popup 0.95s cubic-bezier(0.3, 0.9, 0.3, 1.08) both;
  cursor: grab; touch-action: none; user-select: none;
}
.quiz__explain.is-out { z-index: 3; }
.quiz__explain.is-dragging { cursor: grabbing; scale: 1.03; }
.quiz__explain[hidden] { display: none; }
.quiz__explain svg:not(.quiz__close svg) { width: 200px; max-width: 100%; height: auto; flex-shrink: 0; align-self: center; font-family: var(--title); }
.quiz__explain p { font-size: 16px; line-height: 1.4; text-align: center; }
.quiz__explain strong { font-family: var(--title); font-size: 20px; }
.quiz__close {
  position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.steps { grid-area: steps; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 10px; align-items: center; }
.step h3 { font-family: var(--text); font-weight: 400; font-size: 17px; line-height: 1.4; color: var(--ink-soft); }
.steps__end { font-size: 17px; font-weight: 700; color: var(--ink); padding-left: 42px; margin-top: 4px; }
.step img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.step p { color: var(--ink-soft); }

/* ---------- Bandes ---------- */

.band { position: relative; }
.band--green { background: var(--green); }
.band__in { display: flex; flex-direction: column; gap: 40px; padding-block: 96px; }
.head { display: flex; flex-direction: column; gap: 8px; text-align: center; }

/* Bande des quiz à ne pas manquer : bleu-gris doux à petit quadrillage, traits encre */
.band--grid {
  background:
    linear-gradient(rgba(51, 57, 70, 0.10) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(51, 57, 70, 0.10) 1px, transparent 1px) 0 0 / 22px 22px,
    #b9c8d6;
}

/* ---------- Thèmes ---------- */

.school {
  --fill: var(--bg); --r: 18px;
  display: flex; flex-wrap: wrap; align-items: stretch; padding: 12px;
  text-decoration: none;
}
.school__pic {
  --fill: var(--red); --r: 12px;
  flex: 0 0 200px; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.school__pic img { width: 130px; height: 130px; object-fit: contain; transform: rotate(-8deg); transition: transform 0.25s; }
.school:hover .school__pic img { transform: rotate(6deg) scale(1.08); }
.school__text { flex: 1 1 360px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 32px; }
.school__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.school__sub { font-size: 18px; color: var(--ink-soft); }
.school__cta { display: flex; align-items: center; padding: 20px 24px; }

.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.theme {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 16px; font-size: 20px; line-height: 1.3; text-align: center; text-decoration: none;
}
.theme img { width: 88px; height: 88px; object-fit: contain; transition: transform 0.25s; }
.theme:hover img { transform: rotate(-10deg) scale(1.12); }

/* ---------- Dernier quiz ---------- */

.latest__in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 96px; }
.latest__video { --r: 18px; flex: 3 1 560px; min-width: 0; display: block; padding: 12px; }
.latest__video img, .latest__player iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 10px; border: 0; }
.play {
  --fill: var(--yellow); --r: 999px;
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: transform 0.2s;
}
.latest__video:hover .play { transform: scale(1.12); }
.latest__text { flex: 2 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.latest__title { font-size: 24px; line-height: 1.3; }
.latest__text .btn { margin-top: 8px; }

/* ---------- Quiz les plus joués ---------- */

.carousel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.carousel__tools { display: flex; align-items: center; gap: 16px; }
.carousel {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 8px 6px 16px; margin: -8px -6px -16px; scroll-padding-inline: 6px;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 calc((100% - 64px) / 3); min-width: 260px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 18px; text-decoration: none;
}
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 8px; }
.card__title { padding-inline: 8px; font-size: 20px; line-height: 1.3; }
.card .tag { margin-inline: 8px; }

/* ---------- Abonnement ---------- */

.sub { padding-block: 96px; }
.sub__card {
  --fill: var(--yellow); --r: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; padding: 64px 32px;
}
.sub__card > img { width: 140px; height: 140px; object-fit: contain; }
.sub__text { flex: 0 1 780px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sub__text .btn { margin-top: 8px; }

/* ---------- Pages intérieures : À propos, Contact, Mentions légales ---------- */

.page-hero { background: var(--dots), var(--bg); padding-top: var(--header-h); }
.page-hero__in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 24px 72px; text-align: center; }
.page-hero__in img { width: 104px; height: 104px; object-fit: contain; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { max-width: 900px; }
.page-hero--full { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.page-hero--full .page-hero__in { padding-block: 40px 96px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; }
.page-body { position: relative; }

/* Chiffres de la page introuvable : un par couleur, cernés d'encre */
.e404 { display: flex; gap: 4px; margin-bottom: 4px; font-family: var(--title); font-weight: 700; font-size: 128px; line-height: 1; filter: url(#trait); }
.e404 span { display: block; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.e404 span:nth-child(1) { color: var(--t-scolaire); transform: rotate(-7deg); }
.e404 span:nth-child(2) { color: var(--yellow); transform: translateY(6px) rotate(4deg); }
.e404 span:nth-child(3) { color: var(--t-societe); transform: rotate(-3deg); }
.e404 { cursor: pointer; }

/* Le zéro arrive en roulant, le premier 4 saute par-dessus, le dernier est percuté et tombe à plat.
   Ensuite les chiffres bougent doucement (le 4 couché se soulève à peine). Un clic rejoue le tout. */
.e404--roule span:nth-child(1) { animation: e404-saute 1.9s ease-in-out both, e404-sway1 3.1s ease-in-out 2s infinite alternate; }
.e404--roule span:nth-child(2) { animation: e404-roule 1.9s cubic-bezier(0.25, 0.7, 0.3, 1) both, e404-sway2 2.7s ease-in-out 2s infinite alternate; position: relative; z-index: 1; }
.e404--roule span:nth-child(3) { transform-origin: 48% 56%; animation: e404-pousse 1.9s linear both, e404-sway3 3.4s ease-in-out 2.1s infinite alternate; }
@keyframes e404-roule {
  0% { transform: translate(-620px, 6px) rotate(-900deg); opacity: 0; }
  8% { opacity: 1; }
  74% { transform: translate(16px, 6px) rotate(16deg); }
  100% { transform: translate(0, 6px) rotate(4deg); }
}
@keyframes e404-saute {
  0%, 34% { transform: rotate(-7deg); }
  48% { transform: translateY(-70px) rotate(-16deg); }
  62%, 100% { transform: rotate(-7deg); }
}
@keyframes e404-pousse {
  0%, 70% { transform: rotate(-3deg); animation-timing-function: ease-out; }
  /* le choc le fait partir, puis il bascule de plus en plus vite, comme un objet qui tombe */
  74% { transform: translateX(0.05em) rotate(9deg); animation-timing-function: cubic-bezier(0.6, 0, 0.95, 0.55); }
  87% { transform: translateX(0.05em) rotate(92deg); animation-timing-function: ease-out; }
  /* il rebondit deux fois sur le sol, de moins en moins haut */
  91% { transform: translateX(0.05em) rotate(81deg); animation-timing-function: ease-in; }
  95% { transform: translateX(0.05em) rotate(91deg); animation-timing-function: ease-out; }
  97.5% { transform: translateX(0.05em) rotate(87deg); animation-timing-function: ease-in; }
  100% { transform: translateX(0.05em) rotate(90deg); }
}
}
}
@keyframes e404-sway1 { from { transform: rotate(-7deg); } to { transform: rotate(-2deg) translateY(-4px); } }
@keyframes e404-sway2 { from { transform: translateY(6px) rotate(4deg); } to { transform: translateY(0) rotate(-3deg); } }
@keyframes e404-sway3 { from { transform: translateX(0.05em) rotate(90deg); } to { transform: translateX(0.05em) rotate(87deg); } }
@media (prefers-reduced-motion: reduce) { .e404 span { animation: none !important; } }

/* Filtres de la page Révisions : une ligne par filtre, nom à gauche, petites pastilles ; la pastille choisie passe au jaune */
.filtres { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.filtres__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filtres__nom { width: 70px; flex-shrink: 0; font-family: var(--title); font-weight: 700; font-size: 16px; }
.chip { min-height: 30px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink); font-family: var(--text); font-weight: 700; font-size: 14px; line-height: 1.3; cursor: pointer; transition: transform 0.2s ease; }
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--yellow); }
.chip[hidden] { display: none; }
.chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Comptes à rebours des examens : petites étiquettes claires, le nombre dans une pastille jaune */
.count { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.count__card { --fill: var(--blue); --r: 16px; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; both; }
.count__card[hidden] { display: none; }
/* Détail par épreuve : étiquettes plus petites, trois par rangée */
#epreuves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
#epreuves .count__card { --r: 12px; gap: 10px; padding: 9px 12px 9px 9px; }
#epreuves .count__badge { --r: 10px; width: 60px; height: 54px; }
#epreuves .count__num { font-size: 24px; }
#epreuves .count__unit { font-size: 11px; }
#epreuves .count__name { font-size: 17px; }
#epreuves .count__date { gap: 6px; font-size: 13px; }
#epreuves .count__dot { width: 10px; height: 10px; }
.count--resume { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
.count--resume .count__card { padding-right: 24px; }
.count__plus { display: flex; justify-content: center; margin-top: 18px; }
.chip--filtre { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px; }
.chip--filtre[aria-expanded="true"] { background: var(--yellow); }
.detail { margin-top: 28px; animation: count-in 0.8s cubic-bezier(0.3, 0.9, 0.3, 1.05) both; }
.detail[hidden] { display: none; }
.count__badge { --fill: var(--yellow); --r: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 84px; flex-shrink: 0; transform: rotate(-3deg); }
.count__num { font-family: var(--title); font-weight: 700; font-size: 38px; line-height: 1; }
.count__unit { font-size: 14px; font-weight: 800; line-height: 1.2; }
.count__name { font-size: 24px; line-height: 1.2; }
.count__date { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 15px; line-height: 1.35; }
.count__dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); flex-shrink: 0; }
.count__dot--brevet { background: var(--t-scolaire); }
.count__dot--bac1 { background: var(--t-arts); }
.count__dot--bact { background: var(--t-societe); }
.count__vide { margin-top: 8px; }
@keyframes count-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .count__card, .detail { animation: none; } }
.page-note.count__src { margin-top: 18px; font-size: 15px; font-style: italic; line-height: 1.5; }
.soon { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.soon img { width: 104px; height: 104px; object-fit: contain; transform: rotate(-8deg); }
.soon .lead { max-width: 560px; }
.page-body__in { max-width: 824px; padding-block: 72px 96px; }

/* Petit trait à main levée entre deux blocs */
.rule { display: block; width: 100%; height: 12px; margin-block: 36px; color: var(--ink); stroke-width: 2; opacity: 0.55; }

.block { display: flex; gap: 24px; align-items: flex-start; }
.block > img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; transform: rotate(-6deg); }
.block h2 { margin-bottom: 8px; }
.block p, .block li { font-size: 18px; line-height: 1.6; }
.block p + p { margin-top: 12px; }
.block ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.block__actions { margin-top: 20px; }
.page-note { text-align: center; font-size: 18px; color: var(--ink-soft); }
.page a:not(.btn):not(.box) { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Formulaire de contact */
.form { --fill: var(--bg); --r: 18px; display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--title); font-weight: 700; font-size: 18px; }
.field__box { --fill: var(--blue); --r: 10px; display: block; }
/* Champ en cours de saisie : le fond s'éclaircit. Le rectangle de contour n'apparaît que pour
   la navigation au clavier (classe .clavier posée par main.js à la première touche Tab). */
.field__box:focus-within { --fill: #ffffff; }
.clavier .field__box:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 10px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px;
  border: 0; background: none; outline: none; color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 150px; }
.form .btn { align-self: flex-start; }
.form[hidden] { display: none; }

/* Remerciement : il prend la place du formulaire une fois le message parti */
.merci { --fill: var(--yellow); --r: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px 32px; text-align: center; animation: merci-in 0.9s cubic-bezier(0.3, 0.9, 0.3, 1.05) both; }
.merci[hidden] { display: none; }
.merci:focus { outline: none; }
.merci img { width: 104px; height: 104px; object-fit: contain; transform: rotate(-8deg); animation: merci-pouce 1.1s cubic-bezier(0.3, 0.9, 0.3, 1.2) 0.3s both; }
.merci .lead { max-width: 520px; color: var(--ink); }
.merci__plus { font-size: 16px; }
.merci__encore { padding: 8px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
@keyframes merci-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes merci-pouce { from { opacity: 0; transform: rotate(-40deg) scale(0.5); } }
@media (prefers-reduced-motion: reduce) { .merci, .merci img { animation: none; } }
.form__hint { font-size: 15px; color: var(--ink-soft); }
.form__status { font-weight: 700; font-size: 18px; }
.form__trap { position: absolute; left: -9999px; }

/* ---------- Pages de classe (/classes/) et de culture G (/culture-g/) ---------- */

.nav__fleche { display: inline-block; margin-left: 5px; vertical-align: 1px; }
/* Pas de fil d'Ariane affiché (retiré le 27 nov. 2026) : la pastille ouvre la page avec un peu d'air sous la barre */
.page-hero--quiz .page-hero__in { gap: 14px; padding-block: 24px 64px; }
.page-hero--quiz h1 { max-width: 18em; }
/* Grande pastille ronde de la classe, ou carré du thème avec son picto */
.pastille { --fill: var(--t-scolaire); --r: 999px; display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; font-family: var(--title); font-weight: 700; font-size: 54px; line-height: 1; transform: rotate(-6deg); }
.pastille--mini { width: 86px; height: 86px; font-size: 30px; }
.vignette-theme { --r: 22px; display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; transform: rotate(-6deg); }
.vignette-theme img { width: 92px; height: 92px; object-fit: contain; }

/* Sommaire des matières : reste collé sous la barre du haut */
.sommaire { position: sticky; top: 60px; z-index: 5; background: var(--bg); border-bottom: 2px solid rgba(51, 57, 70, 0.14); }
.sommaire__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 12px; }
.sommaire__nom { margin-right: 6px; font-family: var(--title); font-weight: 700; font-size: 16px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip--lg { min-height: 36px; padding: 5px 15px; font-size: 15px; }

.quizpage__in { padding-block: 24px 72px; }
.matiere { padding-top: 40px; scroll-margin-top: 130px; }
.matiere__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.matiere__head a { font-size: 16px; color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.quizgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.quizgrid .card { min-width: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; padding-inline: 8px; }
.card .card__meta .tag { margin-inline: 0; }
.thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--bg); border: 2px dashed var(--ink-soft); color: var(--ink); font-size: 14px; font-weight: 700; }

/* Texte lu par les lecteurs d'écran et les moteurs de recherche, invisible à l'écran */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Phrase de confiance : une seule ligne, sur toute la largeur, centrée */
.garantie { max-width: none; padding-top: 56px; text-align: center; white-space: nowrap; }
.garantie a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Encart examen : le compte à rebours de la classe */
.examen { --fill: var(--green); --r: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; margin-top: 48px; padding: 28px 32px; }
.examen .count__card { --fill: var(--bg); }

/* Passerelle vers le scolaire */
.passerelle { --fill: var(--t-scolaire); --r: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; padding: 36px 32px; text-align: center; }
.passerelle h2, .passerelle p { color: #fff; }
.passerelle p { font-size: 20px; font-weight: 700; line-height: 1.35; }
.passerelle__classes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.autres { padding-top: 56px; }
.autres h2 { margin-bottom: 20px; text-align: center; }
.themes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Pied de page : discret, sur une seule rangée ---------- */

.footer { background: var(--ink); color: var(--bg); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 12px; }
.footer__brand { flex-shrink: 0; }
.footer__logo { width: 132px; height: auto; display: block; margin: -14px 0 -12px -14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer nav a { padding: 10px 0; }
.footer__end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.footer__end .small { color: var(--blue); }
.footer__rs { display: flex; gap: 10px; }
/* Réseaux : les ronds jaunes du kit, icônes dessinées au trait encre ; petit saut penché au survol */
.footer__rs .round { width: 40px; height: 40px; }
.footer__rs .round:hover { transform: translateY(-4px) rotate(-8deg); }

/* ---------- Animations ---------- */

.float { transform: rotate(var(--rot, 0deg)); animation: float 6s ease-in-out infinite; }
.f2 { animation-duration: 7.5s; animation-delay: -2s; }
.f3 { animation-duration: 5.2s; animation-delay: -3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 5deg)); }
}
@keyframes pop {
  0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-2deg); } 100% { transform: scale(1); }
}
/* L'angle de la vignette est une variable animée (--ang) : le bouton « question suivante » prend l'angle inverse
   à chaque instant, il reste à l'horizontale pendant l'arrivée et quand on déplace la vignette. */
@property --ang { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@keyframes popup {
  0% { --ang: 0deg; translate: calc(var(--dx, 0px) + var(--fx)) calc(var(--dy, 0px) + var(--fy)); }
  100% { --ang: 2deg; translate: var(--dx, 0px) var(--dy, 0px); }
}
@keyframes popup-m {
  0% { opacity: 0; --ang: 0deg; translate: var(--dx, 0px) calc(var(--dy, 0px) + 60px); scale: 0.92; }
  100% { opacity: 1; --ang: 1deg; translate: var(--dx, 0px) var(--dy, 0px); scale: 1; }
}
/* secousse douce : trois balancements qui s'amortissent */
@keyframes shake {
  0%, 100% { transform: none; } 20% { transform: translateX(-5px) rotate(-1deg); } 45% { transform: translateX(4px) rotate(1deg); } 70% { transform: translateX(-2px); }
}

/* Séparateurs qui se dessinent au défilement : haut de gauche à droite, bas de droite à gauche */
.js .sep:not(.header__sep) { clip-path: inset(-12px 100% -12px 0); transition: clip-path 1.3s cubic-bezier(0.6, 0, 0.2, 1); }
/* Repère invisible que le script surveille pour lancer le tracé (le trait lui-même est masqué au départ) */
.sep-watch { position: absolute; left: 0; width: 100%; height: 1px; pointer-events: none; }
.sep-watch--top { top: 0; }
.sep-watch--bottom { bottom: 0; }
.js .sep--bottom:not(.header__sep) { clip-path: inset(-12px 0 -12px 100%); }
.js .sep.in:not(.header__sep) { clip-path: inset(-12px 0 -12px 0); }

/* Apparition au défilement : seulement si le JavaScript tourne */
/* 1 s, en douceur ; les blocs qui arrivent ensemble se suivent à 0,2 s d'écart (--d, posé par le script) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.lift:hover { transform: translateY(-4px) rotate(-0.6deg); transition-delay: 0s; transition-duration: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .answer.is-good, .answer.is-bad, .quiz__explain, .quiz__end { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .sep:not(.header__sep) { clip-path: none; transition: none; }
  .js .header__sep, .header__fill { transition: none; }
  .header, .header__in, .header__sep, .header__logo, .header__logo img, .nav, .nav a, .nav__pill img, .header__cta { transition: none; }
  .btn, .lift, .round, .answer, .theme img, .school__pic img, .play, .header__logo img { transition: none; }
}

@media (min-width: 1024px) { .oneline { white-space: nowrap; font-size: 40px; } }

/* ---------- Tablette ---------- */

@media (max-width: 1023px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { flex-basis: calc((100% - 32px) / 2); }
  .nav { font-size: 16px; gap: 0; }
  .nav a { padding-inline: 10px; }
  .nav .nav__pill { margin-inline: 12px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  :root { --header-h: 88px; }
  html { scroll-padding-top: 72px; }
  .js .header.is-stuck .header__logo { width: 42px; height: 40px; }
  .header.is-stuck .header__cta { min-height: 44px; padding: 8px 14px; font-size: 15px; }
  .header.is-stuck .menu-btn { width: 44px; height: 44px; }
  .header.is-stuck .nav { font-size: 20px; }
  .header.is-stuck .nav a { padding: 12px 16px; }
  .header.is-stuck .nav .nav__pill { margin: 4px 0; padding: 10px 20px; }
  .header.is-stuck .header__in { padding-block: 8px 10px; gap: 12px; }
  .wrap { padding-inline: 16px; }
  .header__in { gap: 12px; padding-block: 12px; flex-wrap: wrap; }
  .header__logo { width: 88px; height: 56px; }
  .header__cta { margin-left: auto; order: 2; font-size: 16px; padding: 10px 16px; min-height: 44px; }
  .menu-btn { display: inline-flex; order: 3; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    font-size: 20px; background: var(--bg); border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav .nav__pill { margin: 4px 0; align-self: flex-start; }
  /* Accordéon : les sous-pages s'ouvrent sous leur titre, sans fond ni ombre */
  .nav__toggle, .header.is-stuck .nav__toggle { width: 100%; justify-content: space-between; padding: 12px 16px; }
  .nav__toggle:hover { text-decoration: none; }
  .nav__sub, .nav__group:hover .nav__sub {
    position: static; display: none; min-width: 0; padding: 0 0 6px 16px;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__sub::before, .nav__sub::after { content: none; }
  .nav__group.is-open .nav__sub { display: flex; animation: accordeon 0.6s ease-out both; }
  .nav .nav__sub a, .header.is-stuck .nav .nav__sub a { padding: 10px 16px; font-size: 18px; }

  .hero__sticker--1 { left: -24px; top: -36px; width: 80px; height: 80px; }
  .hero__sticker--2 { right: -20px; bottom: -28px; width: 72px; height: 72px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 8px 64px; }
  .hero__text { align-items: center; text-align: center; }
  .hero__video { margin: 24px 20px; }
  .hero .btn { width: 100%; }

  .try__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "quiz" "steps"; row-gap: 28px; padding-bottom: 64px; }
  .try__head { text-align: center; }
  .quiz { padding: 14px 14px 24px; gap: 24px; }
  .quiz__item { gap: 24px; }
  .quiz__bar { padding: 10px 16px; font-size: 19px; }
  .quiz__q { font-size: 20px; }
  .quiz__answers { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 4px 0 12px; }
  .answer { font-size: 18px; min-height: 52px; padding: 12px 40px; }
  .answer__letter { width: 44px; height: 44px; top: -8px; }
  /* le bloc est centré dans l'écran, ses lignes restent alignées à gauche entre elles */
  .steps { width: fit-content; justify-self: center; margin-inline: auto; }
  .steps__end { padding-left: 0; }
  /* Sur mobile, la carte se pose par-dessus la question (sous le bandeau), en montant doucement */
  .quiz__explain { --ang: 1deg; left: 20px; right: 20px; top: 66px; bottom: 10px; width: auto; z-index: 3; animation: popup-m 0.8s cubic-bezier(0.3, 0.9, 0.3, 1.05) both; }

  .band__in { gap: 28px; padding-block: 64px; }
  /* carte Scolaire plus basse : picto réduit, phrase longue masquée (elle reste sur ordinateur) */
  .school { flex-direction: column; gap: 10px; padding: 12px 12px 18px; }
  .school__pic { flex: none; padding: 8px; }
  .school__pic img { width: 68px; height: 68px; }
  .school__long { display: none; }
  .school__text { flex: none; padding: 0 8px; }
  .school__cta { padding: 4px 8px 0; }
  .school__cta .btn { width: 100%; font-size: 18px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .theme { padding: 20px 8px; font-size: 19px; gap: 4px; }
  .theme img { width: 64px; height: 64px; }
  .theme:last-child { grid-column: span 2; flex-direction: row; justify-content: center; gap: 12px; padding: 16px 8px; }

  .latest__in { gap: 20px; padding-block: 64px; }
  .latest__video { flex-basis: 100%; padding: 10px; --r: 16px; order: 2; }
  .latest__text { flex-basis: 100%; display: contents; }
  .latest__text .numero { order: 0; }
  .latest__text h2 { order: 1; }
  .latest__title { order: 3; font-size: 20px; }
  .latest__text .lead { order: 4; font-size: 16px; margin-top: -12px; }
  .latest__text .btn { order: 5; width: 100%; margin-top: 0; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

  .carousel__tools .round { display: none; }
  .carousel { gap: 16px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .card { flex-basis: 290px; }

  .pastille, .vignette-theme { width: 104px; height: 104px; }
  .pastille { font-size: 44px; }
  .vignette-theme img { width: 76px; height: 76px; }
  .sommaire__in { flex-wrap: nowrap; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
  .sommaire__in::-webkit-scrollbar { display: none; }
  .sommaire .chip, .sommaire__nom { flex-shrink: 0; }
  .quizgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .matiere { padding-top: 32px; }
  .garantie { padding-top: 40px; white-space: normal; }
  .examen { padding: 22px 16px; }
  .passerelle { padding: 28px 16px; }
  .themes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes--4 .theme:last-child { grid-column: auto; flex-direction: column; gap: 4px; padding: 20px 8px; }
  .e404 { font-size: 96px; }
  .count { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .count--resume { flex-direction: column; align-items: stretch; gap: 14px; }
  #epreuves { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .filtres__nom { width: 100%; }
  .chip { min-height: 36px; padding: 5px 12px; }
  .page-hero__in { padding-block: 8px 56px; }
  .page-body__in { padding-block: 56px 64px; }
  .rule { margin-block: 28px; }
  /* picto et titre sur une ligne, le texte repart du bord gauche, sous le picto */
  .block { display: block; }
  .block > img { float: left; width: 52px; height: 52px; margin-right: 14px; }
  .block h2 { display: flex; align-items: center; min-height: 52px; margin-bottom: 10px; }
  .block h2 ~ * { clear: left; }
  .block p, .block li { font-size: 17px; }
  .form { padding: 20px 16px; }
  .merci { padding: 28px 16px 22px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .form .btn { align-self: stretch; }
  .footer__in { gap: 4px 20px; padding-block: 16px; }
  .footer nav { flex-basis: 100%; gap: 0 20px; }
  .footer nav a { padding: 12px 0; }
  .footer__end { margin-left: 0; flex-basis: 100%; justify-content: space-between; }
  .footer__rs .round { width: 44px; height: 44px; }
  .sub { padding-block: 64px; }
  .sub__card { flex-direction: column; gap: 12px; padding: 40px 20px; --r: 20px; }
  .sub__card > img { width: 104px; height: 104px; }
  .sub__card > img:last-child { display: none; }
  .sub__text { flex: none; }
  .sub__text .btn { width: 100%; font-size: 20px; padding-inline: 16px; }

}

/* ---------- Navigation « brevet & bac », accueil par classe, page brevet & bac, 404 (maquettés le 27 nov. 2026) ---------- */

/* Pastille « brevet & bac » du menu : le vrai trait à grain du kit (même cadre que les boutons) */
.nav .nav__pill { --ti: url(../assets/img/trait-b.webp); --tw: 16px; }
.nav__pill::before { inset: calc(var(--tw) * 0.13 - 2px); border: 0; border-radius: calc(var(--tw) * 0.78); filter: none; }
.nav__pill::after { content: ""; }
.header.is-stuck .nav .nav__pill { --tw: 13px; }
/* Pastille « brevet & bac » un peu moins haute sur ordinateur (48 → 40 px ; 34 → 30 px quand la barre est réduite, 27 nov. 2026).
   Elle reste plus haute que deux coins du contour, donc les traits se rejoignent toujours. */
@media (min-width: 768px) {
  .nav .nav__pill { padding-block: 6px; }
  .header.is-stuck .nav .nav__pill { padding-block: 4px; }
}
@media (min-width: 768px) and (max-width: 1100px) { .nav__toggle { padding-inline: 10px; } }

/* Accueil, carte Scolaire : une pastille par classe publiée */
.school__classes { flex: 0 1 320px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 24px; }
.school__nom { font-family: var(--title); font-weight: 700; font-size: 20px; line-height: 1.2; }
.school__pastilles { display: flex; flex-wrap: wrap; gap: 12px; }
.pastille--lien { width: 64px; height: 64px; font-size: 24px; color: var(--ink); text-decoration: none; }
.school__playlist { font-size: 15px; color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Brevet & bac : lien « réviser » sous la date de chaque épreuve dont la classe est publiée */
#epreuves .count__lien { min-height: 26px; margin-top: 6px; padding: 1px 12px; font-size: 13px; background: var(--yellow); }

/* Brevet & bac : une carte par classe d'examen publiée */
.exam-classes { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.exam-classes__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; width: 100%; }
.exam-classe { --fill: var(--bg); --r: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 24px 16px 18px; color: var(--ink); text-align: left; text-decoration: none; }
.exam-classe__text { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; }
.exam-classe__nom { font-family: var(--title); font-weight: 700; font-size: 24px; line-height: 1.2; }
.exam-classe__sub { font-size: 16px; color: var(--ink-soft); }
.exam-classes__note { font-size: 16px; }

/* Cartes de quiz : les trois étiquettes ont la même hauteur */
.card__meta .tag--green { padding-block: 2px; }

/* 404 : liens secondaires sous le bouton */
.page-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: 16px; font-size: 17px; font-weight: 700; }
.page-liens a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

@media (prefers-reduced-motion: reduce) { .pastille--lien { transition: none; } }
@media (max-width: 767px) {
  .school__classes { flex: none; padding: 4px 8px 0; }
  .exam-classe { padding: 14px 16px; }
  .exam-classe .btn { width: 100%; }
  #epreuves .count__lien { min-height: 32px; padding: 3px 14px; font-size: 14px; }
}


/* ---------- Pièces du kit Canva : carte de quiz, ronds, pilules (maquettés le 27 nov. 2026) ----------
   Les images sont fabriquées à partir du kit « Assets de Pop'Quiz » et d'une slide de quiz :
   python3 design/generer_pastilles_kit.py "<projet>" site/assets/img
   Gardées en fin de fichier : elles passent après toutes les règles précédentes, comme dans la maquette. */

/* Bandeau de question : le vrai cadre du kit (côtés un peu penchés), avec les bulles « pop » au milieu */
.quiz__bar { align-items: center; padding: 12px 30px; background: url(../assets/img/bandeau-question.webp) center / 100% 100% no-repeat; }
.quiz__bar::before { content: none; }
.quiz__bar::after { inset: auto; left: 50%; top: 50%; z-index: 0; width: 68px; height: 62px; border: 0; border-image: none; transform: translate(-50%, -44%); background: url(../assets/img/logo-mini.webp) center / contain no-repeat; }

/* Pastilles A, B, C, D : la forme en goutte du kit, au vert-jaune des vidéos. A et B à gauche, C et D à droite, comme sur les slides */
.quiz__answers { grid-template-rows: repeat(2, auto); grid-auto-flow: column; }
.answer__letter { left: -16px; top: -20px; width: 54px; height: 54px; background: url(../assets/img/pastille-a.webp) center / 100% 100% no-repeat; }
.answer[data-letter="B"] .answer__letter { background-image: url(../assets/img/pastille-b.webp); }
.answer[data-letter="C"] .answer__letter { left: auto; right: -16px; background-image: url(../assets/img/pastille-c.webp); }
.answer[data-letter="D"] .answer__letter { left: auto; right: -16px; background-image: url(../assets/img/pastille-d.webp); }
.answer.is-good { --fill: #dbe799; }

/* Barre du bas : comme dans les vidéos, avec la jauge de temps vide (pas de chrono sur le site) */
.quiz__item::after { content: ""; display: block; width: 100%; aspect-ratio: 1891 / 128; margin-top: -4px; background: url(../assets/img/barre-bas.webp) center / 100% 100% no-repeat; }
.quiz { padding-bottom: 20px; }

/* Vignette d'explication : au vert clair des vidéos. Le bouton « question suivante » sort de la vignette, juste dessous */
.quiz__explain { --fill: var(--green); }
/* la vignette penche (--ang) : le bouton prend l'angle inverse et reste à l'horizontale, posé plus bas, bien détaché */
.quiz__next { position: absolute; left: 50%; top: calc(100% + 36px); margin: 0; transform: translateX(-50%) rotate(calc(-1 * var(--ang))); white-space: nowrap; }
.quiz__next:hover { transform: translateX(-50%) rotate(calc(-1 * var(--ang))) translateY(-2px); }

/* Petites pastilles (filtres, liens de classe) et étiquettes des cartes : le contour en pilule du bouton « débutant » du kit,
   à la place de la bordure lisse. Les bouts ronds suivent la hauteur, les côtés portent un nombre entier de morceaux. */
.chip, .tag { position: relative; border-color: transparent; --h: 30px; }
.tag { --h: 28px; }
.chip--lg, .chip--filtre { --h: 36px; }
.chip::after, .tag::after { content: ""; position: absolute; inset: -2.5px; pointer-events: none; border: 1px solid transparent; border-image: url(../assets/img/pilule.webp) 57 / 50% calc(var(--h) / 2 + 2.5px) round; }

/* Pastilles de classe : texte blanc sur le rouge Scolaire (gros caractères gras uniquement), bien droit et centré (plus de rotation) */
/* la police pose ses lettres 0,12 em trop haut dans leur ligne : on redescend le texte d'autant pour le centrer à l'œil */
.pastille, .pastille--lien { color: #fff; transform: none; padding-top: 0.24em; }

/* Pastille de numéro (« #1 » du quiz le plus populaire) : comme sur les miniatures Canva, encre pleine et texte blanc,
   avec le bord au trait crayon */
.numero { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 58px; height: 50px; padding: 0.24em 14px 0 calc(14px + 0.04em); background: url(../assets/img/rond-encre.webp) center / 100% 100% no-repeat; color: #fff; font-family: var(--title); font-weight: 700; font-size: 24px; line-height: 1; }

/* Bouton lecture des vignettes vidéo : un vrai rond (pas la goutte des pastilles A-D), au trait du kit et au jaune du site */
.play { background: url(../assets/img/rond-lecture.webp) center / 100% 100% no-repeat; }

/* Flèches du carrousel et pastilles de classe : le même vrai rond au trait du kit */
.round { background: url(../assets/img/rond-lecture.webp) center / 100% 100% no-repeat; }
.round--blue { background-image: url(../assets/img/rond-bleu.webp); }
.pastille { background: url(../assets/img/rond-classe.webp) center / 100% 100% no-repeat; }
/* « 2de », « 1re », « Tle » : trois caractères, un peu plus petits pour tenir dans le rond */
.pastille--3 { font-size: 46px; }
.pastille--mini.pastille--3 { font-size: 26px; }
.pastille--lien.pastille--3 { font-size: 21px; }

/* Haut de la page de classe (proposition C retenue le 27 nov. 2026) : pastille et titre sur une ligne, titre sur deux lignes.
   Le bouton « lance le dernier quiz » vit dans la barre des matières, qui reste collée sous la barre du haut. */
.hero-c .page-hero__in { flex-direction: row; justify-content: center; gap: 24px; padding-block: 20px 32px; text-align: left; }
.hero-c h1 { font-size: 40px; line-height: 1.1; }
.sommaire__cta { margin-left: auto; flex-shrink: 0; }

@media (max-width: 767px) {
  .quiz__answers { grid-template-rows: none; grid-auto-flow: row; }
  .quiz__bar { padding: 10px 20px; background-image: url(../assets/img/bandeau-question-court.webp); }
  .quiz__bar::after { content: none; }   /* pas la place pour les bulles entre le titre et le numéro */
  .answer__letter { top: -16px; width: 48px; height: 48px; }
  .quiz__item::after { aspect-ratio: 1040 / 128; background-image: url(../assets/img/barre-bas-court.webp); }
  .quiz { padding-bottom: 16px; }
  /* la vignette se cale au-dessus de la phrase de résultat ; le bouton se pose sur la barre du bas */
  .quiz__explain { top: 66px; bottom: 118px; margin-block: auto 0; }
  .chip { --h: 36px; }
  .quiz__next { top: calc(100% + 64px); }
  .pastille--3 { font-size: 38px; }
  .hero-c .page-hero__in { gap: 14px; padding-block: 8px 24px; }
  .hero-c h1 { font-size: 28px; }
  .hero-c .pastille { width: 72px; height: 72px; font-size: 26px; flex-shrink: 0; }
  .sommaire__cta { order: -1; margin-left: 0; }
}


/* ---------- Animations choisies par Delphine (27 nov. 2026, catalogue design/animations/catalogue.html) ----------
   Gardées en fin de fichier : elles passent après les règles de survol plus anciennes. */

/* Pastilles de classe (carte Scolaire) : petit saut au survol, texte toujours droit */
.pastille--lien { transition: transform 0.6s cubic-bezier(0.34, 1.8, 0.64, 1); }
.pastille--lien:hover { transform: translateY(-8px); }

/* Flèches du carrousel : un pas dans leur direction */
.round { transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.round[data-dir="-1"]:hover { transform: translateX(-5px); }
.round[data-dir="1"]:hover { transform: translateX(5px); }

/* Cartes de quiz : s'inclinent en 3D comme une carte qu'on prend, et suivent la souris (--rx, --ry posés par le script) */
@media (hover: hover) {
  .card { transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
  .card:hover, .card.lift:hover { transform: perspective(700px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)) translateY(-4px); transition-delay: 0s; }
  .card.is-suivi { transition-duration: 0.25s; }
}

/* Haut de la page de classe : la pastille grandit avec un rebond, puis le titre arrive */
.hero-c .pastille { animation: pastille-pop 0.9s cubic-bezier(0.34, 1.7, 0.64, 1) both; }
.hero-c h1 { animation: titre-arrive 0.9s ease 0.35s both; }
@keyframes pastille-pop { from { transform: scale(0); } }
@keyframes titre-arrive { from { opacity: 0; transform: translateX(14px); } }
/* le reste de la page attend l'en-tête : il apparaît en fondu juste après le titre */
.hero-c ~ * { animation: page-arrive 0.8s ease 0.75s both; }
@keyframes page-arrive { from { opacity: 0; } }

/* Pastille « #1 » : pivote doucement de gauche à droite, autour d'un axe vertical */
.numero { animation: pivote 4s ease-in-out infinite; }
@keyframes pivote { 0%, 100% { transform: perspective(300px) rotateY(-28deg); } 50% { transform: perspective(300px) rotateY(28deg); } }

/* Vignette d'explication : un halo dégradé de la couleur du fond l'entoure et masque le texte qui touche ses bords */
.quiz__explain::before { box-shadow: 0 0 16px 8px var(--bg), 0 0 40px 22px rgba(241, 246, 242, 0.85), 0 0 70px 34px rgba(241, 246, 242, 0.45); }

/* Carrousel « Les quiz à ne pas manquer » : défile tout seul, lentement (script), s'arrête au survol ou au toucher.
   Sans accroche des cartes, pour que le défilement reste continu. */
.carousel.is-auto { scroll-snap-type: none; }

/* Bloc « Abonne-toi » : la cloche sonne de temps en temps, le pouce se lève quand on survole le bouton */
.sub__card > img:first-child { transform-origin: 50% 10%; animation: sonne 4s ease-in-out infinite; }
@keyframes sonne { 0%, 70%, 100% { transform: rotate(-12deg); } 74% { transform: rotate(14deg); } 78% { transform: rotate(-16deg); } 82% { transform: rotate(10deg); } 86% { transform: rotate(-10deg); } 90% { transform: rotate(-12deg); } }
.sub__card > img:last-child { animation: none; transform: rotate(10deg); transition: transform 0.7s cubic-bezier(0.34, 1.7, 0.64, 1); }
.sub__card:has(.btn:hover) > img:last-child { transform: rotate(-12deg) scale(1.18) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .pastille--lien, .round, .card, .sub__card > img:last-child { transition: none; }
  .card:hover, .card.lift:hover { transform: translateY(-4px); }
  .hero-c .pastille, .hero-c h1, .hero-c ~ *, .numero, .sub__card > img:first-child { animation: none; }
  .hero__video, .chip { transition: none; }
}

/* 30 nov. 2026 : FAQ de l'accueil (section #faq, avant « Abonne-toi »).
   Ordinateur : intro à gauche (reste en place au défilement), questions à droite. Mobile : une colonne.
   Chaque question est une boîte au trait du kit ; le rond jaune « + » pivote en « × » à l'ouverture. */
.faq { padding-block: 96px; }
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: start; }
.faq__intro { position: sticky; top: 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__titre { display: flex; align-items: center; gap: 18px; }
.faq__titre img { width: 96px; height: 96px; transform: rotate(-8deg); }
.faq__list { display: flex; flex-direction: column; gap: 18px; }
.faq__item { --fill: var(--blue); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 20px 26px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font-family: var(--title); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--ink); }
.faq__icon { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: url(../assets/img/rond-lecture.webp) center / 100% 100% no-repeat; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.faq__item[open] .faq__icon { transform: rotate(135deg); }
.faq__item summary:hover .faq__icon { transform: rotate(-10deg) scale(1.06); }
.faq__item[open] summary:hover .faq__icon { transform: rotate(135deg) scale(1.06); }
.faq__a { margin: 0; padding: 0 28px 24px 26px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.faq__a a { color: var(--ink); }
/* ouverture en douceur (environ 0,8 s) là où le navigateur sait animer la hauteur */
:root { interpolate-size: allow-keywords; }
.faq__item::details-content { height: 0; overflow: clip; transition: height 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), content-visibility 0.8s allow-discrete; }
.faq__item[open]::details-content { height: auto; }
@media (max-width: 767px) {
  .faq { padding-block: 64px; }
  .faq__in { grid-template-columns: 1fr; gap: 28px; }
  .faq__intro { position: static; }
  .faq__titre img { width: 72px; height: 72px; }
  .faq__q { font-size: 19px; }
  .faq__item summary { padding: 18px 16px 18px 20px; gap: 14px; }
  .faq__a { padding: 0 20px 20px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__icon, .faq__item::details-content { transition: none; }
}
