/* ==========================================================================
   TEST-FIDE.CH — Feuille de style commune à tout le site
   --------------------------------------------------------------------------
   Site du centre d'examen fide d'Interlangues. Il reprend l'identité du
   nouveau site interlangues.ch : mêmes couleurs, mêmes polices, mêmes
   diagonales à l'angle de la barre oblique du logo Interlangues
   (0,6 de décalage horizontal pour 1 de hauteur, ≈ 59°), mêmes boutons
   en biais. Le logo fide (apostrophe suisse) remplace celui d'Interlangues.

   Sommaire
     0. Variables & base
     1. Composants partagés (titres, boutons, diagonales, étiquettes…)
     2. En-tête
     3. Accueil : section principale
     4. Accueil : repères, démarches, sessions, préparation
     5. En-têtes des pages intérieures
     6. Blocs de contenu (niveaux, étapes, FAQ, tarifs, centres…)
     7. Formulaires et inscription
     8. Pages légales
     9. Pied de page
    10. Responsive (< 880 px)
   ========================================================================== */


/* ==========================================================================
   0. VARIABLES & BASE
   ========================================================================== */

:root {
  --color-red: #E8422B;
  --color-red-dark: #B92F1B;
  --color-black: #1D1D1B;
  --color-bg: #FAF9F5;          /* blanc cassé, comme interlangues.ch */
  --color-paper: #F2F0E9;       /* fond papier un peu plus soutenu */
  --color-text: #2B2B29;
  --color-muted: #6B6A65;
  --color-line: #E6E5E0;

  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Ms Madi", cursive;

  --container: 56.875rem;
  --gutter: 1.5rem;
  --bleed: calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2);
  --header-h: 6.0625rem;
}

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* Même échelle que interlangues.ch : 16 px à 1086 px de large */
  font-size: clamp(14px, 1.4733vw, 21.2px);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

/* Icônes au trait (Lucide) */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--filled {
  fill: currentColor;
  stroke: none;
}


/* ==========================================================================
   1. COMPOSANTS PARTAGÉS
   ========================================================================== */

/* --- Sections ------------------------------------------------------------ */

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section--line {
  border-top: 1px solid var(--color-line);
}

.section--paper {
  background: var(--color-paper);
}

.section--dark {
  background: var(--color-black);
  color: #D9D7D0;
}

/* En-tête de section : titre à gauche, phrase ou lien à droite */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 3rem;
  margin-bottom: 2.6rem;
}

.section-head > p {
  max-width: 22rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --- Titres -------------------------------------------------------------- */

.h1,
.h2,
.h3 {
  font-family: var(--font-title);
  color: var(--color-black);
}

.h1 {
  font-weight: 300;
  font-size: 4.1rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.h2 {
  font-weight: 300;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.h3 {
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section--dark .h1,
.section--dark .h2,
.section--dark .h3 {
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-black);
}

.section--dark .eyebrow {
  color: #fff;
}

/* Mot ou ligne en écriture manuscrite, avec son trait rouge */
.script {
  position: relative;
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.3em;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.script--line {
  display: block;
  width: max-content;
  margin-top: 0.12em;
  font-size: 1.05em;
}

.script-underline {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}

.script .script-underline {
  left: 6%;
  bottom: -0.2em;
  width: 58%;
  height: 0.4em;
}

/* --- Textes -------------------------------------------------------------- */

.lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
}

.prose {
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose p + p {
  margin-top: 1em;
}

.small {
  font-size: 0.8rem;
  line-height: 1.55;
}

.muted {
  color: var(--color-muted);
}

.section--dark .muted {
  color: #A3A19A;
}

/* --- Boutons ------------------------------------------------------------
   Rectangle légèrement en biais, à l'angle du logo Interlangues
   (tan 31° ≈ 0,6). Le fond est un pseudo-élément incliné : le texte
   reste droit. Les variantes ne changent que les variables --btn-*. */
.btn {
  --btn-h: 3rem;
  --btn-pad: 1.8rem;
  --btn-bg: var(--color-black);
  --btn-fg: #fff;
  --btn-line: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: var(--btn-h);
  padding: 0 calc(var(--btn-pad) + var(--btn-h) * 0.3);
  border: 0;
  background: none;
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(var(--btn-h) * 0.3);
  right: calc(var(--btn-h) * 0.3);
  border-radius: 0.1875rem;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  transform: skewX(-31deg);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  --btn-bg: var(--color-red);
  --btn-fg: #fff;
  --btn-line: transparent;
}

.btn .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.btn--red {
  --btn-bg: var(--color-red);
}

.btn--red:hover,
.btn--red:focus-visible {
  --btn-bg: var(--color-black);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-black);
  --btn-line: var(--color-black);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--color-black);
}

.btn--small {
  --btn-h: 2.1rem;
  --btn-pad: 1.2rem;
  font-size: 0.78rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  --btn-bg: #D9D7CF;
  --btn-fg: #6B6A65;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-black);
  transition: color 0.2s ease;
}

.link-arrow .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--color-red);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.section--dark .link-arrow {
  color: #fff;
}

/* Lien souligné dans le texte */
.link {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link:hover {
  color: var(--color-red);
}

/* --- Étiquettes ---------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.5rem;
  padding: 0 0.65rem;
  border-radius: 0.1875rem;
  background: #ECE9E1;
  color: var(--color-black);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--red {
  background: #FBE3DE;
  color: var(--color-red-dark);
}

.tag--green {
  background: #E2EFE3;
  color: #2F6B3A;
}

.tag--dark {
  background: var(--color-black);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Niveau CECR (A1, A2, B1) : étiquette noire en biais */
.level {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 1.7rem;
  padding: 0 0.7rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.level::before {
  content: "";
  position: absolute;
  inset: 0 0.25rem;
  z-index: -1;
  border-radius: 0.125rem;
  background: var(--color-black);
  transform: skewX(-31deg);
}

.level--red::before {
  background: var(--color-red);
}

.level--none {
  color: var(--color-muted);
}

.level--none::before {
  background: #E2E0D8;
}

/* --- Diagonales ----------------------------------------------------------
   Décalage = hauteur × 0,6 ; --sh : hauteur ; --sw : épaisseur.          */

.slash {
  --sh: 10rem;
  --sw: 4rem;
  position: absolute;
  width: calc(var(--sh) * 0.6 + var(--sw));
  height: var(--sh);
  background: var(--color-red);
  clip-path: polygon(calc(var(--sh) * 0.6) 0, 100% 0, var(--sw) 100%, 0 100%);
  pointer-events: none;
}

.slash--black {
  background: var(--color-black);
}

/* Photo découpée en parallélogramme (hauteur --h) */
.slant-photo {
  --h: 24rem;
  position: relative;
  height: var(--h);
}

.slant-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(calc(var(--h) * 0.6) 0, 100% 0, calc(100% - var(--h) * 0.6) 100%, 0 100%);
}

.slant-photo--bleed-left {
  margin-left: calc(-1 * var(--bleed));
}

.slant-photo--bleed-left > img {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--h) * 0.6) 100%, 0 100%);
}

.slant-photo .slash {
  z-index: 2;
}

/* Petite barre oblique devant un titre ou un élément de liste */
.mark {
  display: inline-block;
  flex: none;
  width: 0.55em;
  height: 0.9em;
  background: var(--color-red);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

/* --- Fil d'Ariane -------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.crumbs a:hover {
  color: var(--color-red);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #B9B7AF;
}

/* --- Message temporaire (maquette) -------------------------------------- */

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 1.5rem;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.3rem;
  border-radius: 0.1875rem;
  background: var(--color-black);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, 160%);
  transition: transform 0.35s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

/* --- Deux colonnes ------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split--narrow-left {
  grid-template-columns: 0.8fr 1.2fr;
}

.split--center {
  align-items: center;
}

/* --- Encadré d'information ---------------------------------------------- */

.note {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--color-red);
  background: #fff;
  font-size: 0.86rem;
  line-height: 1.55;
}

.note .icon {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--color-red);
}

.note strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-black);
}

.section--paper .note {
  background: var(--color-bg);
}

/* --- Liste à coches ------------------------------------------------------ */

.checks {
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.checks li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.checks li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.75rem;
  background: var(--color-red);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
  transform: translateY(0.05rem);
}

.checks--no li::before {
  background: #B9B7AF;
}


/* ==========================================================================
   2. EN-TÊTE
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-line), 0 6px 18px rgba(29, 29, 27, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

/* Logo fide + mention « Centre d'examen » séparés par une petite oblique */
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__logo {
  width: 5.6rem;
  height: auto;
}

.brand__sep {
  width: 0.6rem;
  height: 1.9rem;
  background: var(--color-line);
  clip-path: polygon(calc(100% - 1px) 0, 100% 0, 1px 100%, 0 100%);
  background: #C9C7BF;
}

.brand__text {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.brand__text strong {
  display: block;
  font-weight: 700;
  color: var(--color-black);
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  gap: 1.45rem;
  margin-right: 1.6rem;
}

.main-nav__list a {
  position: relative;
  font-size: 0.78rem;
  color: var(--color-black);
  transition: color 0.2s ease;
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible {
  color: var(--color-red);
}

.main-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--color-red);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  margin-left: 1.4rem;
  font-size: 0.72rem;
  color: var(--color-black);
}

.lang-switch a {
  color: var(--color-muted);
}

.lang-switch a.is-active {
  color: var(--color-black);
}

.site-header__toggle {
  display: none;
}


/* ==========================================================================
   3. ACCUEIL : SECTION PRINCIPALE
   Texte à gauche ; à droite, photo en parallélogramme qui touche le bord
   de l'écran, une forme rouge à l'angle du logo et la prochaine session
   dans un cartouche noir en biais.
   ========================================================================== */

.hero {
  position: relative;
  overflow-x: clip;
}

.hero__inner {
  position: relative;
  min-height: 35rem;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 27rem;
  padding: 3.6rem 0 4.5rem;
}

.hero__title {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.hero__title span {
  display: block;
}

.hero__title .hero__script {
  position: relative;
  width: max-content;
  margin-top: 0.2em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.72em;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__script .script-underline {
  left: 18%;
  bottom: -0.15em;
  width: 50%;
  height: 0.45em;
}

.hero__lead {
  max-width: 24rem;
  margin-top: 2rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero__visual {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 3.2rem;
  left: 25rem;
  right: calc(-1 * var(--bleed));
}

/* Photo : 31,8rem de haut → décalage 19,08rem */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  clip-path: polygon(19.08rem 0, 100% 0, 100% 100%, 0 100%);
}

/* Forme rouge en appui sur le bord oblique, en bas */
.hero__shape {
  position: absolute;
  bottom: -3.2rem;
  left: -2.4rem;
  width: calc(11rem * 0.6 + 3.4rem);
  height: 11rem;
  background: var(--color-red);
  clip-path: polygon(6.6rem 0, 100% 0, 3.4rem 100%, 0 100%);
}

/* Prochaine session : cartouche noir en biais posé sur la photo */
.next-session {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 1.2rem;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.2rem 1.6rem;
  padding: 1.1rem 2.2rem 1.15rem 2.6rem;
  color: #fff;
}

.next-session::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0.1875rem;
  background: var(--color-black);
  transform: skewX(-31deg);
}

.next-session__label {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #A3A19A;
}

.next-session__date {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.next-session__meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #D9D7D0;
}

.next-session__meta strong {
  color: #fff;
}

.next-session__sep {
  display: none;
}

.next-session a {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.next-session a:hover {
  color: var(--color-red);
}


/* ==========================================================================
   4. ACCUEIL : REPÈRES, DÉMARCHES, SESSIONS, PRÉPARATION
   ========================================================================== */

/* --- Repères : quatre informations clés, séparées par de fines lignes --- */
.facts {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.9rem 1.2rem;
}

.fact:first-child {
  padding-left: 0;
}

.fact + .fact {
  border-left: 1px solid var(--color-line);
}

.fact .icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--color-red);
  stroke-width: 1.2;
}

.fact strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-black);
}

.fact span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--color-muted);
}

/* --- Quel niveau pour quelle démarche ? -----------------------------------
   À gauche, la liste des démarches (boutons) ; à droite, le résultat. */
.finder {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: stretch;
}

.finder__list {
  border-top: 1px solid var(--color-black);
}

.finder__option {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  background: none;
  color: var(--color-black);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, padding 0.2s ease;
}

.finder__option .icon {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.finder__option:hover {
  color: var(--color-red);
}

.finder__option[aria-selected="true"] {
  padding-left: 1rem;
  color: var(--color-red);
}

.finder__option[aria-selected="true"] .icon {
  opacity: 1;
}

/* Le résultat : bloc noir, grands niveaux, barre oblique rouge à droite */
.finder__result {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.4rem 2.2rem;
  border-radius: 0.375rem;
  background: var(--color-black);
  color: #D9D7D0;
}

.finder__result .slash {
  --sh: 100%;
  top: 0;
  right: -2.4rem;
  width: 7rem;
  height: 100%;
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
  opacity: 0.9;
}

.finder__title {
  position: relative;
  max-width: 80%;
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.finder__text {
  position: relative;
  max-width: 78%;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #A3A19A;
}

.finder__levels {
  position: relative;
  display: flex;
  gap: 2.6rem;
  margin-top: auto;
  padding-top: 2rem;
}

.finder__level dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #A3A19A;
}

.finder__level dd {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.finder__level dd.is-none {
  color: #5A5955;
}

.finder__module {
  position: relative;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid #3A3A37;
  font-size: 0.82rem;
}

.finder__module strong {
  color: #fff;
}

.finder__module a {
  margin-left: 0.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 0.2em;
}

.finder__module a:hover {
  color: var(--color-red);
}

/* --- Sessions d'examen ---------------------------------------------------- */

/* Filtres : boutons en biais, comme des onglets */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.2rem;
}

.chips__label {
  margin-right: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
}

.chip {
  --btn-h: 2.1rem;
  --btn-pad: 1rem;
  --btn-bg: transparent;
  --btn-fg: var(--color-black);
  --btn-line: #CFCDC5;
  font-size: 0.78rem;
}

.chip[aria-pressed="true"] {
  --btn-bg: var(--color-black);
  --btn-fg: #fff;
  --btn-line: transparent;
}

.chip:hover,
.chip:focus-visible {
  --btn-bg: var(--color-black);
  --btn-fg: #fff;
  --btn-line: transparent;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.6rem;
}

/* Une session = une ligne blanche détachée sur le fond */
.sessions {
  display: grid;
  gap: 0.5rem;
}

.session {
  display: grid;
  grid-template-columns: 5.2rem 1.3fr 1fr 1.1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem 1rem 0;
  border-radius: 0.375rem;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.section--paper .session {
  background: var(--color-bg);
}

.session:hover {
  box-shadow: inset 3px 0 0 var(--color-red);
}

.session[hidden] {
  display: none;
}

/* Date : jour en grand, mois dessous, dans un bloc en biais */
.session__date {
  display: grid;
  justify-items: center;
  align-self: stretch;
  align-content: center;
  border-right: 1px solid var(--color-line);
  line-height: 1;
}

.session__day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.session__month {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-red);
}

.session__place strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
}

.session__place span,
.session__time {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.session__time strong {
  display: block;
  font-weight: 600;
  color: var(--color-black);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2F6B3A;
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.7rem;
  background: currentColor;
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

.status--limited {
  color: #A8620B;
}

.status--last {
  color: var(--color-red-dark);
}

.status--closed {
  color: var(--color-muted);
}

.session.is-closed .session__day,
.session.is-closed .session__place strong {
  color: #A3A19A;
}

.sessions-empty {
  padding: 2.5rem 1.4rem;
  border-radius: 0.375rem;
  background: #fff;
  text-align: center;
  color: var(--color-muted);
}

.sessions-empty[hidden] {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.4rem;
}

/* --- Préparation : photo à gauche, trois offres à droite --------------- */
.prep {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.prep .slash {
  --sh: 9rem;
  --sw: 3.4rem;
  right: -1.2rem;
  bottom: 0;
}

.offer-rows {
  border-top: 1px solid var(--color-black);
}

.offer-rows > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-line);
}

.offer-rows h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.offer-rows p {
  grid-column: 1;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.offer-rows .link-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

/* --- Deux centres : carte + adresse ------------------------------------ */
.campuses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.campus__photo {
  --h: 13rem;
}

.campus__photo > img {
  border-radius: 0;
}

.campus__city {
  margin-top: 1.5rem;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.campus__lead {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.info-table {
  margin-top: 1.2rem;
  border-top: 1px solid var(--color-black);
  font-size: 0.85rem;
}

.info-table > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-line);
}

.info-table dt {
  font-weight: 700;
  color: var(--color-black);
}

.info-table dd a:hover {
  color: var(--color-red);
}

.map {
  overflow: hidden;
  border-radius: 0.375rem;
  background: #E9E7E0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 15rem;
  border: 0;
}


/* ==========================================================================
   5. EN-TÊTES DES PAGES INTÉRIEURES
   Texte à gauche, photo en parallélogramme qui touche le bord droit de
   l'écran, barre rouge en appui sur le bord oblique (comme interlangues.ch).
   ========================================================================== */

.page-hero {
  position: relative;
  overflow-x: clip;
}

.page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  min-height: 27rem;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 4rem;
}

.page-hero__content .h1 {
  margin-top: 1.6rem;
}

.page-hero__lead {
  max-width: 25rem;
  margin-top: 2rem;
}

.page-hero__visual {
  --h: 27rem;
  position: relative;
  height: var(--h);
  margin-left: -3rem;
  margin-right: calc(-1 * var(--bleed));
}

.page-hero__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(calc(var(--h) * 0.6) 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero__visual .slash {
  --sh: 11rem;
  --sw: 4.2rem;
  left: -4.2rem;
  bottom: 0;
}

/* Variante texte seul (contact, inscription, pages légales) */
.page-hero--plain .page-hero__inner {
  display: block;
  min-height: 0;
}

.page-hero--plain .page-hero__content {
  max-width: 44rem;
  padding: 1.5rem 0 3.5rem;
}

.page-hero--plain .slash {
  --sh: 9rem;
  --sw: 2.6rem;
  top: 0;
  right: calc(50% - 50vw - 1rem);
}

/* Sommaire de page (« Sur cette page ») */
.page-toc {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.page-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-black);
}

.page-toc a::before {
  content: "";
  width: 0.4rem;
  height: 0.65rem;
  background: var(--color-red);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

.page-toc a:hover {
  color: var(--color-red);
}


/* ==========================================================================
   6. BLOCS DE CONTENU
   ========================================================================== */

/* --- Quatre compétences ------------------------------------------------- */
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-black);
}

.skill {
  padding: 1.6rem 1.3rem 1.6rem 0;
}

.skill + .skill {
  padding-left: 1.3rem;
  border-left: 1px solid var(--color-line);
}

.skill .icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--color-red);
  stroke-width: 1.2;
}

.skill h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.skill p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.skill .tag {
  margin-top: 0.9rem;
}

/* Domaines de la vie quotidienne : liste en ligne */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.domains li {
  padding: 0.45rem 0.85rem;
  border: 1px solid #DDD9CF;
  border-radius: 0.1875rem;
  font-size: 0.8rem;
  color: var(--color-black);
}

/* --- Niveaux A1 → B1 : marches d'escalier ------------------------------ */
.steps-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 0.375rem;
  background: #fff;
}

.level-card:nth-child(1) { min-height: 17rem; }
.level-card:nth-child(2) { min-height: 19.5rem; }
.level-card:nth-child(3) {
  min-height: 22rem;
  background: var(--color-black);
  color: #D9D7D0;
}

.level-card .level-card__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.level-card:nth-child(3) .level-card__code,
.level-card:nth-child(3) h3 {
  color: #fff;
}

.level-card__code::after {
  content: "";
  display: inline-block;
  width: 0.3em;
  height: 0.5em;
  margin-left: 0.1em;
  background: var(--color-red);
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

.level-card h3 {
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

.level-card p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.level-card ul {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.78rem;
}

.level-card li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--color-line);
}

.level-card:nth-child(3) li {
  border-color: #3A3A37;
}

.level-card li strong {
  color: var(--color-black);
}

.level-card:nth-child(3) li strong {
  color: #fff;
}

/* --- Tableau des exigences --------------------------------------------- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.req-table th {
  padding: 0 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--color-black);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-muted);
}

.req-table td {
  padding: 0.95rem 0.8rem 0.95rem 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-black);
}

.req-table td:first-child {
  font-weight: 600;
}

.req-table th:not(:first-child),
.req-table td:not(:first-child) {
  width: 7rem;
}

/* --- Étapes numérotées (déroulement, inscription) ---------------------- */
.steps {
  counter-reset: step;
  border-top: 1px solid var(--color-black);
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.3rem 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-line);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-red);
}

.steps h3 {
  font-size: 1.08rem;
}

.steps p {
  grid-column: 2;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.steps .tag {
  grid-column: 3;
  grid-row: 1;
}

/* --- Tarifs : une ligne par test ---------------------------------------- */
.price-list {
  border-top: 1px solid var(--color-black);
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-line);
}

.price-list__name h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.price-list__name p {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.price-list__price {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
  color: var(--color-black);
}

.price-list__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--color-muted);
}

.price-list li:not(:has(.btn)) {
  grid-template-columns: 1fr auto;
}

/* Moyens de paiement */
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

/* --- Remboursement : deux cas côte à côte ------------------------------ */
.refund {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.refund__case {
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 0.375rem;
  background: #fff;
}

.refund__case:first-child {
  background: var(--color-black);
  color: #D9D7D0;
}

.refund__when {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-muted);
}

.refund__case:first-child .refund__when {
  color: #A3A19A;
}

.refund__value {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.refund__case:first-child .refund__value {
  color: #fff;
}

.refund__case p:last-child {
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

/* --- Attestation : carte « passeport des langues » ---------------------- */
.passport {
  position: relative;
  overflow: hidden;
  padding: 1.8rem 1.8rem 1.6rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(29, 29, 27, 0.08);
}

.passport__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}

.passport__head img {
  width: 4.2rem;
}

.passport__head span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-muted);
}

.passport__rows {
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.passport__rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--color-line);
}

.passport__foot {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.passport .slash {
  --sh: 100%;
  top: 0;
  right: -3.2rem;
  width: 4.5rem;
  height: 100%;
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
  opacity: 0.12;
}

/* --- Questions fréquentes ---------------------------------------------- */
.faq {
  border-top: 1px solid var(--color-black);
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--color-red);
}

.faq details p {
  max-width: 40rem;
  padding: 0 0 1.3rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* --- Livre de préparation ---------------------------------------------- */
.book {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Couverture dessinée en CSS, en attendant la photo du livre */
.book__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  padding: 1.4rem 1.3rem;
  border-radius: 0.25rem 0.6rem 0.6rem 0.25rem;
  background: var(--color-black);
  color: #fff;
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.08), 0 24px 50px rgba(29, 29, 27, 0.22);
}

.book__cover img {
  width: 5.2rem;
}

.book__cover strong {
  display: block;
  margin-top: 2.6rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.1;
}

.book__cover span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #A3A19A;
}

.book__cover .slash {
  --sh: 45%;
  right: -1rem;
  bottom: 0;
  width: 6rem;
  clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
}

/* --- Liens utiles -------------------------------------------------------- */
.links-list {
  border-top: 1px solid var(--color-black);
}

.links-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.2s ease;
}

.links-list strong {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-black);
}

.links-list span {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.links-list .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.1rem;
  height: 1.1rem;
}

.links-list a:hover strong,
.links-list a:hover .icon {
  color: var(--color-red);
}

/* --- Trois colonnes simples (à apporter / fourni / interdit) ---------- */
.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.box {
  padding: 1.5rem;
  border-radius: 0.375rem;
  background: #fff;
}

.box h3 {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}


/* ==========================================================================
   7. FORMULAIRES ET INSCRIPTION
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend,
.label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-black);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 2.9rem;
  padding: 0 0.95rem;
  border: 1px solid #D6D4CC;
  border-radius: 0.25rem;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select {
  appearance: none;
  padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 1rem no-repeat;
}

.textarea {
  height: auto;
  min-height: 8rem;
  padding: 0.8rem 0.95rem;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(232, 66, 43, 0.15);
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
}

.check input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-red);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Bloc d'étape du formulaire d'inscription */
.form-step + .form-step {
  margin-top: 2.6rem;
}

.form-step__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-black);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-black);
}

.form-step__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-red);
}

/* Choix en cartes (module, moyen de paiement) */
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.choices--2 {
  grid-template-columns: repeat(2, 1fr);
}

.choices--4 {
  grid-template-columns: repeat(4, 1fr);
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid #D6D4CC;
  border-radius: 0.25rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice__box strong {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-black);
}

.choice__box span {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.choice__box em {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-black);
}

.choice input:checked + .choice__box {
  border-color: var(--color-black);
  box-shadow: inset 0 0 0 1px var(--color-black), inset 4px 0 0 var(--color-red);
}

.choice input:focus-visible + .choice__box {
  box-shadow: 0 0 0 3px rgba(232, 66, 43, 0.25);
}

.choice input:disabled + .choice__box {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Logo de moyen de paiement dans une carte */
.pay-logo {
  display: inline-grid;
  place-items: center;
  height: 1.6rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

/* Mise en page de l'inscription : formulaire + récapitulatif collant */
.signup {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  overflow: hidden;
  padding: 1.8rem 1.8rem 1.6rem;
  border-radius: 0.375rem;
  background: var(--color-black);
  color: #D9D7D0;
}

.summary .slash {
  --sh: 6rem;
  --sw: 1.8rem;
  top: 0;
  right: -0.6rem;
}

.summary__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #A3A19A;
}

.summary__title {
  margin-top: 0.8rem;
  padding-right: 3rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.summary__rows {
  margin-top: 1.3rem;
  font-size: 0.82rem;
}

.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #3A3A37;
}

.summary__rows dd {
  text-align: right;
  color: #fff;
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.1rem;
  color: #fff;
}

.summary__total strong {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.summary .btn {
  margin-top: 1.4rem;
}

.summary .small {
  margin-top: 1rem;
  color: #A3A19A;
}

/* Contact : formulaire + coordonnées */
.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-card {
  padding: 1.6rem;
  border-radius: 0.375rem;
  background: #fff;
}

.contact-card + .contact-card {
  margin-top: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.contact-card p,
.contact-card li {
  font-size: 0.86rem;
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--color-red);
}

.contact-card--dark {
  background: var(--color-black);
  color: #D9D7D0;
}

.contact-card--dark h3 {
  color: #fff;
}

.contact-big {
  display: block;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-black);
}


/* ==========================================================================
   8. PAGES LÉGALES
   ========================================================================== */

.legal {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 4rem;
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-size: 0.8rem;
}

.legal__toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 1px solid var(--color-line);
  color: var(--color-muted);
}

.legal__toc a:hover,
.legal__toc a.is-active {
  border-color: var(--color-red);
  color: var(--color-black);
}

.legal__body section + section {
  margin-top: 2.6rem;
}

.legal__body h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-black);
}

.legal__body p,
.legal__body li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal__body p + p,
.legal__body p + ul,
.legal__body ul + p {
  margin-top: 0.8rem;
}

.legal__body ul {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.legal__body a {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 0.2em;
}


/* ==========================================================================
   9. PIED DE PAGE
   ========================================================================== */

.site-footer {
  background: var(--color-black);
  color: #A3A19A;
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-footer a {
  color: #fff;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-red);
}

.site-footer__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding: 3.6rem 0 2.6rem;
  border-bottom: 1px solid #3A3A37;
}

.site-footer__logo img {
  width: 6.4rem;
  height: auto;
}

.site-footer__tagline {
  max-width: 24rem;
  margin-top: 1rem;
}

/* « Un service d'Interlangues » avec le logo de l'école */
.site-footer__by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: #A3A19A !important;
}

.site-footer__by img {
  width: 9.5rem;
  height: auto;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.6rem 0 3rem;
}

.site-footer__col h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
}

.site-footer__col li + li {
  margin-top: 0.3rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid #3A3A37;
  font-size: 0.74rem;
}

.site-footer__bottom a {
  font-weight: 700;
}


/* ==========================================================================
   10. RESPONSIVE — TABLETTE ET TÉLÉPHONE (< 880 px)
   ========================================================================== */

/* Sur ordinateur, le menu occupe la place : le logo reste seul.
   La mention « Centre d'examen agréé » n'apparaît que sur téléphone. */
@media (min-width: 880px) {
  .brand__sep,
  .brand__text {
    display: none;
  }
}

@media (max-width: 879px) {

  html {
    font-size: 16px;
  }

  :root {
    --header-h: 4.5rem;
  }

  /* --- En-tête : menu repliable --- */
  .brand__logo {
    width: 4.6rem;
  }

  .brand__text {
    font-size: 0.68rem;
  }

  .site-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0 0.6rem;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .site-header__toggle-bar {
    display: block;
    height: 2px;
    background: var(--color-black);
    transition: transform 0.25s ease;
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0.9rem;
    margin: 0;
  }

  .main-nav__list a {
    font-size: 1.05rem;
  }

  .main-nav__list a[aria-current="page"] {
    color: var(--color-red);
  }

  .main-nav__list a[aria-current="page"]::after {
    display: none;
  }

  .lang-switch {
    margin: 0;
    font-size: 0.9rem;
  }

  /* --- Titres --- */
  .h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .h2 {
    font-size: 2rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-head {
    margin-bottom: 1.8rem;
  }

  .script--line {
    width: auto;
    white-space: normal;
  }

  /* --- Accueil : la photo passe sous le texte --- */
  .hero__inner {
    min-height: 0;
  }

  .hero__content {
    max-width: none;
    padding: 1.6rem 0 0;
  }

  .hero__title {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero__visual {
    position: relative;
    left: auto;
    right: auto;
    height: 72vw;
    max-height: 24rem;
    margin: 2.5rem calc(-1 * var(--gutter)) 3.2rem 0;
  }

  .hero__photo {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__shape {
    left: auto;
    right: 62%;
    bottom: -2rem;
    width: 5rem;
    height: 6rem;
    clip-path: polygon(3.6rem 0, 100% 0, 1.4rem 100%, 0 100%);
  }

  /* Le cartouche passe sous la photo, en léger chevauchement */
  .hero__visual {
    margin-bottom: 0;
  }

  .next-session {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: max-content;
    max-width: calc(100% - 1rem);
    margin: -2.6rem 0 3rem auto;
    padding: 0.9rem 1.6rem 0.95rem 1.9rem;
  }

  .next-session__meta br {
    display: none;
  }

  .next-session__sep {
    display: inline;
  }

  .next-session__date {
    font-size: 1.1rem;
  }

  .facts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact,
  .fact:first-child {
    padding: 1.4rem 0.9rem 1.4rem 0;
  }

  .fact + .fact {
    border-left: 0;
  }

  .fact:nth-child(even) {
    padding-left: 0.9rem;
    border-left: 1px solid var(--color-line);
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--color-line);
  }

  .fact .icon {
    display: none;
  }

  /* --- Mises en page à une colonne --- */
  .split,
  .split--narrow-left,
  .finder,
  .prep,
  .campuses,
  .signup,
  .contact,
  .legal,
  .book {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .split > *,
  .signup > *,
  .contact > *,
  .legal > * {
    min-width: 0;
  }

  .finder__result {
    padding: 1.8rem 1.6rem;
  }

  .finder__title,
  .finder__text {
    max-width: none;
    padding-right: 2.5rem;
  }

  .finder__level dd {
    font-size: 3rem;
  }

  /* Sessions : la ligne devient une carte */
  .filters-bar {
    flex-direction: column;
  }

  .session {
    grid-template-columns: 4.4rem 1fr;
    gap: 0.6rem 1.1rem;
    padding: 1rem 1.1rem 1.1rem 0;
  }

  .session__date {
    grid-row: 1 / span 4;
  }

  .session > :not(.session__date) {
    grid-column: 2;
  }

  .session .btn {
    justify-self: start;
    margin-top: 0.3rem;
  }

  .prep .slant-photo {
    --h: 15rem;
  }

  .offer-rows > li {
    grid-template-columns: 1fr;
  }

  .offer-rows .link-arrow {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  /* --- En-têtes de pages --- */
  .page-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-hero__content {
    padding: 1.2rem 0 0;
  }

  .page-hero__visual {
    --h: 15rem;
    margin: 2.2rem calc(-1 * var(--gutter)) 0 0;
  }

  .page-hero__visual > img {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-hero__visual .slash {
    --sh: 5.5rem;
    --sw: 2rem;
    left: auto;
    right: 70%;
  }

  .page-hero--plain .slash {
    --sh: 4.5rem;
    --sw: 1.5rem;
    top: auto;
    bottom: 0;
    right: -0.5rem;
  }

  .page-hero--plain .page-hero__content {
    padding-bottom: 2.6rem;
  }

  /* --- Blocs --- */
  .skills {
    grid-template-columns: 1fr 1fr;
  }

  .skill,
  .skill + .skill {
    padding: 1.4rem 0.9rem 1.4rem 0;
    border-left: 0;
  }

  .skill:nth-child(even) {
    padding-left: 0.9rem;
    border-left: 1px solid var(--color-line);
  }

  .skill:nth-child(n + 3) {
    border-top: 1px solid var(--color-line);
  }

  .steps-levels,
  .columns-3,
  .refund {
    grid-template-columns: 1fr;
  }

  .level-card:nth-child(n) {
    min-height: 0;
  }

  .steps > li {
    grid-template-columns: 2.6rem 1fr;
  }

  .steps > li::before {
    font-size: 1.35rem;
  }

  .steps .tag {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  .req-table {
    font-size: 0.82rem;
  }

  .req-table th:not(:first-child),
  .req-table td:not(:first-child) {
    width: 3.6rem;
  }

  .price-list li {
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1rem;
  }

  .price-list li .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .book__cover {
    width: 11rem;
  }

  .form-grid,
  .choices,
  .choices--4 {
    grid-template-columns: 1fr;
  }

  .choices--2 {
    grid-template-columns: 1fr 1fr;
  }

  .summary {
    position: relative;
    top: auto;
  }

  .legal__toc {
    display: none;
  }

  /* --- Pied de page --- */
  .site-footer__head {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 0 2rem;
  }

  .site-footer__by {
    align-items: flex-start;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding: 2rem 0 2.4rem;
  }

  .site-footer__col {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
