/* ==========================================================================
   activizi — feuille de style unique
   Refonte du 10/10/2026 d'après la livraison de Design (prototype
   « Site Activizi », paquets A et B). Les valeurs viennent de son §2 « Règles
   de design » ; quand il ne suffit pas, le prototype fait foi.
   ========================================================================== */

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

:root {
  /* Un seul thème, clair (voir la balise color-scheme de base.njk) */
  color-scheme: only light;
  /* Couleurs (contrastes AA vérifiés dans le README de Design) */
  --encre: #0e1f17;
  --encre-2: #48594f;
  --encre-3: #5f6d64;
  --vert: #127543;
  --vert-survol: #0e5e36;
  --vert-lien-survol: #0c5a33;
  --vert-fonce: #0e4a2c;
  --vert-nuit: #093822;
  --vert-clair: #dcf0e2;
  --vert-pale: #cfe6d6;
  --vert-texte-clair: #f4f8f1;
  --orange: #d2490f;
  /* L'orange du petit texte : #d2490f ne donne que 4,1:1 sur la crème,
     sous le seuil de 4,5:1 ; celui-ci donne 4,8:1. Les grands titres
     gardent l'orange vif (seuil de 3:1). */
  --orange-texte: #bf420d;
  --jaune: #f6c945;
  --creme: #f5f5ee;
  --creme-2: #eeece6;
  --blanc: #fff;
  --bordure: #d9decf;
  --bordure-champ: #7d8a80;

  /* Mise en page */
  --largeur: 1152px;
  --gouttiere: 20px;
  --section: clamp(56px, 9vw, 112px);
  --pile: clamp(24px, 3vw, 40px);
  --ombre-capture: 0 18px 40px rgba(14, 31, 23, 0.16);
  --ombre-montage: 0 14px 30px rgba(14, 31, 23, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: "Bricolage", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

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

img {
  height: auto;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

a {
  color: var(--vert);
}

a:hover {
  color: var(--vert-lien-survol);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Sur les fonds vert foncé, l'orange ne se détache pas assez (2,9:1, sous le
   seuil de 3:1) : l'anneau y passe au jaune (8:1). */
.section--foncee :focus-visible,
.appel :focus-visible {
  outline-color: var(--jaune);
}

/* L'attribut hidden l'emporte toujours, même sur un .bouton */
[hidden] {
  display: none !important;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 600;
  text-decoration: none;
}

.lien-evitement:focus {
  top: 12px;
  color: var(--blanc);
}

/* --- Conteneurs et sections ------------------------------------------- */

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--bordure);
  background: var(--creme);
}

.section--creme-2 {
  background: var(--creme-2);
}

.section--foncee {
  background: var(--vert-fonce);
  color: var(--vert-texte-clair);
  border-top: 0;
}

.section--suite {
  padding-top: 0;
  border-top: 0;
}

.pile {
  display: flex;
  flex-direction: column;
  gap: var(--pile);
}

.titre-section {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 22ch;
}

.titre-section--bloc {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  max-width: none;
}

/* L'accueil laisse ses titres de section sur toute la largeur */
.titre-section--libre {
  max-width: none;
}

.note-libre {
  color: var(--encre-2);
  max-width: 70ch;
}

.section--foncee .titre-section {
  color: var(--vert-texte-clair);
}

.chapo {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--encre-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.section--foncee .chapo {
  color: var(--vert-pale);
}

/* Titre de section suivi de son chapeau, avant le contenu */
.entete-section {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 2rem;
}

.texte {
  max-width: 68ch;
  text-wrap: pretty;
}

.texte + .texte {
  margin-top: 1rem;
}

.note {
  font-size: 15px;
  color: var(--encre-2);
  max-width: 68ch;
  text-wrap: pretty;
}

.note-separee {
  padding-top: 22px;
  border-top: 1px solid var(--bordure);
  color: var(--encre-2);
  max-width: 70ch;
  text-wrap: pretty;
}

.fin-de-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
  color: var(--encre-2);
  max-width: 68ch;
}

/* --- Boutons et liens d'action ---------------------------------------- */

.boutons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.boutons--large {
  gap: 14px 26px;
}

.bouton {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid var(--vert);
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.bouton:hover {
  background: var(--vert-survol);
  border-color: var(--vert-survol);
  color: var(--blanc);
}

.bouton--secondaire {
  background: transparent;
  color: var(--vert);
}

.bouton--secondaire:hover {
  background: var(--vert-clair);
  border-color: var(--vert);
  color: var(--vert);
}

.bouton--clair {
  background: var(--vert-texte-clair);
  border-color: var(--vert-texte-clair);
  color: var(--encre);
}

.bouton--clair:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  color: var(--encre);
}

.bouton--contour-clair {
  padding: 13px 24px;
  border: 2px solid var(--vert-texte-clair);
  background: transparent;
  color: var(--vert-texte-clair);
}

.bouton--contour-clair:hover {
  background: rgba(244, 248, 241, 0.12);
  border-color: var(--vert-texte-clair);
  color: var(--vert-texte-clair);
}

.bouton[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.lien-action {
  display: inline-block;
  padding: 9px 0 2px;
  border-bottom: 2px solid var(--orange);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.lien-action:hover {
  color: var(--vert);
}

.lien-action--serre {
  padding: 2px 0;
}

.lien-action--clair {
  color: var(--vert-texte-clair);
  border-bottom-color: var(--jaune);
}

.lien-action--clair:hover {
  color: var(--vert-clair);
}

.etiquette {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--vert);
  border-radius: 999px;
  color: var(--vert);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* --- Pastilles d'icônes ----------------------------------------------- */

.pastille {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert);
}

.pastille svg {
  width: 22px;
  height: 22px;
}

.pastille--blanche {
  background: var(--blanc);
}

.pastille--grande {
  width: 52px;
  height: 52px;
}

.pastille--jaune {
  background: rgba(246, 201, 69, 0.16);
  color: var(--jaune);
}

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

.entete {
  position: relative;
  z-index: 10;
  background: var(--creme);
  border-bottom: 1px solid var(--bordure);
}

.entete__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 16px 0;
}

.logo {
  display: block;
  flex: none;
  color: var(--vert);
  text-decoration: none;
}

.logo svg {
  height: 37px;
  width: auto;
  overflow: visible;
}

.navigation {
  display: flex;
  align-items: center;
  font-size: 15px;
}

.navigation__liste {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation__lien,
.services__bouton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--encre);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.navigation__lien:hover,
.services__bouton:hover {
  color: var(--encre);
  border-bottom-color: var(--bordure);
}

.navigation__lien[aria-current="page"],
.services--courant .services__bouton {
  border-bottom-color: var(--vert);
}

.services__bouton svg {
  width: 11px;
  height: 11px;
}

.services {
  position: relative;
}

.services__panneau {
  display: none;
  position: absolute;
  left: -16px;
  top: 100%;
  min-width: 340px;
  padding-top: 8px;
}

.services:hover .services__panneau,
.services:focus-within .services__panneau,
.services--ouvert .services__panneau {
  display: block;
  animation: apparition 0.15s ease-out;
}

.services.services--ferme .services__panneau {
  display: none;
}

.services__panneau ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(14, 31, 23, 0.14);
}

.services__panneau a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--encre);
  text-decoration: none;
}

.services__panneau a:hover,
.services__panneau a[aria-current="page"] {
  background: var(--creme);
  color: var(--encre);
}

.services__nom {
  font-weight: 700;
}

.services__description {
  font-size: 14px;
  color: var(--encre-2);
}

@keyframes apparition {
  from {
    opacity: 0;
  }
}

.entete__action {
  padding: 10px 18px;
}

/* Le bouton « Menu » n'existe qu'avec JavaScript : sans lui, la navigation
   reste dépliée sous le logo. */
.entete__menu {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .entete__ligne {
    flex-wrap: wrap;
  }

  html:not(.js) .navigation {
    width: 100%;
  }

  html:not(.js) .navigation__liste {
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  html:not(.js) .services__panneau {
    display: none !important;
  }

  .js .navigation {
    display: none;
  }

  .js .entete__menu {
    display: inline-flex;
  }

  .js .menu-mobile[data-ouvert] {
    display: block;
    padding: 4px 0 18px;
  }

  .menu-mobile ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .menu-mobile__groupe {
    padding: 12px 0 6px;
    color: var(--encre-2);
    font-size: 15px;
    font-weight: 600;
  }

  /* :not(.bouton) : les deux boutons du bas du menu gardent leurs couleurs
     (le texte foncé sur le bouton vert tombait à 2,97:1). */
  .menu-mobile li > a:not(.bouton) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--bordure);
    color: var(--encre);
    font-weight: 600;
    text-decoration: none;
  }

  .menu-mobile li > a:not(.bouton)[aria-current="page"] {
    color: var(--vert);
  }

  .menu-mobile__bloc {
    margin: 4px 0 8px;
    padding: 4px 18px 2px;
    border-radius: 14px;
    background: var(--vert-clair);
  }

  .menu-mobile__bloc .menu-mobile__groupe {
    display: block;
    color: var(--vert-fonce);
  }

  .menu-mobile .menu-mobile__service > a {
    border-bottom-color: var(--vert-pale);
  }

  .menu-mobile .menu-mobile__service:last-child > a {
    border-bottom: 0;
  }

  .menu-mobile__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
  }

  .menu-mobile__actions .bouton {
    display: block;
  }
}

/* --- Logo : les yeux --------------------------------------------------- */
/* Ouverts d'emblée, sur toutes les pages (plus de clin depuis le
   16/10/2026). À l'arrivée sur l'accueil, le compte à rebours de
   /js/az-depart.js s'en charge ; les pupilles suivent ensuite le pointeur
   (script en bas de base.njk). */

.pupille {
  transition: transform 0.25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .pupille {
    transition: none;
  }
}

/* --- Héros ------------------------------------------------------------ */

.heros {
  padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 4vw, 44px);
  overflow: hidden;
  background: var(--creme);
}

.heros--accueil {
  padding-top: clamp(18px, 2.6vw, 36px);
}

.heros--simple {
  padding: var(--section) 0 clamp(28px, 4vw, 48px);
}

.heros__pile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
}

.heros--accueil .heros__pile {
  gap: clamp(20px, 3vw, 36px);
}

.heros--simple .heros__pile {
  gap: 0;
}

.heros__surtitre {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--encre-2);
  text-wrap: pretty;
}

.heros__surtitre strong {
  font-weight: 600;
  color: var(--encre);
}

.heros__titre {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 26ch;
}

.heros--simple .heros__titre {
  margin-bottom: 0.4em;
}

.heros--simple .etiquette {
  margin-bottom: 18px;
}

.accent {
  font-style: normal;
  color: var(--orange);
}

.heros__bloc-titre {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 30px);
  width: 100%;
}

.heros__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 56px;
  width: 100%;
}

.heros__texte {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 56ch;
}

.heros--accueil .heros__texte {
  flex: 1 1 auto;
  max-width: 52ch;
}

.heros__chapo {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--encre-2);
  text-wrap: pretty;
}

.heros__complement {
  font-size: 16px;
  color: var(--encre-2);
  text-wrap: pretty;
}

@media (max-width: 759px) {
  .heros--accueil .heros__ligne {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Écran d'ordinateur, téléphone, affiche --------------------------- */

.ecran-ordi {
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blanc);
  box-shadow: var(--ombre-capture);
}

.ecran-ordi__barre {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 9px;
  background: #e4e7dc;
}

.ecran-ordi__barre span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3c8ba;
}

.ecran-tel {
  flex: none;
  padding: 5px;
  border-radius: 22px;
  background: var(--encre);
  box-shadow: var(--ombre-capture);
}

.ecran-tel img {
  border-radius: 17px;
}

.affiche {
  flex: none;
  border-radius: 3px;
  box-shadow: var(--ombre-capture);
}

/* Rangée fixe des pages de service : défile au doigt si elle déborde */
.vitrine-conteneur {
  padding-top: clamp(24px, 3.5vw, 44px);
}

.vitrine {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.8vw, 22px);
  overflow-x: auto;
  padding: 6px 2px 26px;
  scrollbar-width: none;
}

.vitrine::-webkit-scrollbar {
  display: none;
}

/* Les captures gardent leur taille et la rangée défile : sans ça, une
   affiche (que l'optimisation des images enveloppe dans un <picture>)
   rétrécissait jusqu'à 2 px de large sur téléphone. */
.vitrine > * {
  flex: none;
}

.vitrine .ecran-ordi img {
  height: clamp(150px, 20.5vw, 236px);
  width: auto;
}

.vitrine .ecran-tel img {
  height: clamp(170px, 23vw, 262px);
  width: auto;
}

.vitrine .affiche {
  height: clamp(158px, 22vw, 250px);
  width: auto;
}

/* Bande défilante de l'accueil : la série est écrite deux fois (la
   seconde cachée aux lecteurs d'écran) et glisse en continu. */
.bande {
  padding-top: clamp(28px, 4vw, 48px);
}

.bande__fenetre {
  /* Elle défile toute seule, et à la main : au doigt, à la molette, au
     clavier. La barre de défilement est cachée, la bande se suffit. */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 12px 0 28px;
  scrollbar-width: none;
}

.bande__fenetre::-webkit-scrollbar {
  display: none;
}

.bande__piste {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.8vw, 22px);
  width: max-content;
  padding-left: max(20px, calc((100vw - 1152px) / 2 + 20px));
}

.bande__serie {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.8vw, 22px);
}

.bande .ecran-ordi,
.bande .ecran-tel,
.bande .affiche {
  box-shadow: var(--ombre-montage);
}

.bande .ecran-ordi img {
  height: clamp(148px, 20.5vw, 236px);
  width: auto;
}

.bande .ecran-tel img {
  height: clamp(168px, 24vw, 262px);
  width: auto;
}

.bande .affiche {
  height: clamp(156px, 22.5vw, 250px);
  width: auto;
}

/* --- Situations (accueil) --------------------------------------------- */

.situations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.situation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 24px;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--blanc);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Les situations au-delà des quatre premières : repliées sur téléphone
   derrière « Voir les … autres » (le script pose la classe et montre le
   bouton), toujours visibles ailleurs. Sans JavaScript, tout est visible. */
.bouton-plus {
  margin-top: 18px;
  padding: 12px 22px;
}

@media (max-width: 759px) {
  .situation {
    flex-direction: row;
  }

  .situations--replie .situation--plus {
    display: none;
  }
}

/* --- Atouts (« Un site professionnel, sans la technique ») ------------- */

.atouts {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  background: var(--blanc);
}

.atouts__titre {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}

.atouts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atouts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 3px solid var(--vert);
}

.atouts .pastille {
  margin-bottom: 6px;
}

.atouts__nom {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.atouts__texte {
  color: var(--encre-2);
  line-height: 1.5;
}

/* --- Rangées de cartes, défilantes sur téléphone ----------------------- */

.rangee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--carte-min, 460px)), 1fr));
  gap: var(--rangee-ecart, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 759px) {
  .rangee {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--gouttiere));
    padding: 0 var(--gouttiere) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gouttiere);
    scrollbar-width: none;
  }

  .rangee::-webkit-scrollbar {
    display: none;
  }

  .rangee > li {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
}

/* --- Quatre façons de travailler ensemble ------------------------------ */

.facon {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.facon__visuel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--creme-2);
}

.facon__visuel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.facon__corps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 28px;
}

.facon__titre {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.facon__titre a {
  color: var(--encre);
  text-decoration: none;
}

.facon__titre a:hover {
  color: var(--vert);
}

.facon__prix {
  font-weight: 700;
  color: var(--vert);
}

.facon__texte {
  color: var(--encre-2);
  text-wrap: pretty;
}

/* Un lien d'action dans une phrase de fin de section peut passer à la ligne
   sur téléphone (le lien vers l'exemple de diagnostic débordait de 44 px). */
.fin-de-section .lien-action {
  display: inline;
  white-space: normal;
}

/* Le bouton de chaque carte, en bas : le titre est un lien, mais rien ne le
   dit (relecture de Quentin, 14/10/2026). */
.facon__lien {
  margin-top: auto;
  padding-top: 6px;
  align-self: flex-start;
}

/* Le configurateur, sur l'accueil et le clé en main : le texte à gauche, la
   capture de la page à droite, empilés sur téléphone. */
.composer {
  display: grid;
  gap: 28px;
  align-items: center;
}

.composer__texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.composer__texte .etiquette {
  align-self: flex-start;
}

.composer__capture {
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
  box-shadow: var(--ombre-capture);
}

.composer__capture img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .composer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }
}

/* La carte des affiches : une affiche, puis un produit au logo, côte à côte
   sur le vert clair (remplace l'éventail de Design le 10/10/2026). Le
   plugin image enveloppe chaque image dans un <picture>, qui sert de case. */
.facon__visuel--duo {
  display: grid;
  grid-template-columns: 38% 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--vert-clair);
}

.facon__visuel--duo > picture {
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(14, 31, 23, 0.14);
}

.facon__visuel--duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facon__visuel--duo > picture:first-child img {
  object-position: top;
}

/* --- Avant, après ------------------------------------------------------ */

.comparaison__titre {
  font-size: 1.19rem;
  font-weight: 700;
}

.comparaison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--figure-min, 260px)), 1fr));
  gap: 18px;
  align-items: start;
}

.comparaison--telephone {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.comparaison figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Les captures posées sur un panneau vert, chacune dans un cadre blanc
   (relecture du 14/10/2026 : le fond gris ne mettait rien en valeur). La
   dernière, la plus aboutie, est soulignée en jaune. */
.comparaison {
  padding: clamp(14px, 3vw, 32px);
  border-radius: 20px;
  background: var(--vert);
}

.comparaison figure {
  padding: clamp(6px, 1vw, 10px);
  border-radius: 14px;
  background: var(--blanc);
  box-shadow: 0 14px 30px rgba(9, 56, 34, 0.35);
}

.comparaison figure:last-child {
  outline: 4px solid var(--jaune);
  outline-offset: 0;
}

.comparaison img {
  width: 100%;
  border-radius: 8px;
}

.comparaison--telephone figure {
  max-width: 270px;
}

.comparaison figcaption {
  padding: 2px 4px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--encre);
}

.comparaison--telephone figcaption {
  line-height: 1.3;
}

@media (max-width: 759px) {
  .comparaison--telephone figcaption {
    font-size: 13px;
  }
}

/* Accueil : la version ordinateur ou la version téléphone, selon l'écran.
   Une image cachée en display: none et chargée en différé n'est pas
   téléchargée : chaque visiteur ne charge que sa version. */
.selon-ecran {
  display: flex;
  flex-direction: column;
  gap: var(--pile);
}

.selon-ecran--telephone {
  display: none;
}

@media (max-width: 759px) {
  .selon-ecran--ordinateur,
  .avant-apres > .selon-ecran--ordinateur {
    display: none;
  }

  .selon-ecran--telephone {
    display: flex;
    flex-direction: column;
    gap: var(--pile);
  }
}

.avant-apres {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.avant-apres > li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Comment ça se passe (section foncée) ------------------------------ */

.etapes {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* La frise (relecture du 14/10/2026) : trois pastilles jaunes reliées par
   un trait. Sur téléphone et tablette, le trait descend à gauche ; sur
   ordinateur, il court d'une étape à l'autre. */
.etapes li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 76px;
  min-height: 56px;
}

.etapes li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: -28px;
  width: 3px;
  border-radius: 3px;
  background: rgba(246, 201, 69, 0.45);
}

.etapes__numero {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--vert-nuit);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 900px) {
  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }

  .etapes li {
    padding-left: 0;
    padding-top: 76px;
  }

  .etapes li:not(:last-child)::before {
    left: 68px;
    right: -26px;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 3px;
  }
}

.etapes h3 {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.etapes p {
  color: var(--vert-pale);
  text-wrap: pretty;
}

.deja-site {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
  color: var(--encre);
}

.deja-site__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
}

.deja-site__titre {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deja-site__intro p {
  color: var(--encre-2);
}

.deja-site__detail > summary {
  display: none;
}

.deja-site__contenu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deja-site__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deja-site__points li {
  padding-left: 14px;
  border-left: 3px solid var(--vert);
  line-height: 1.5;
}

.deja-site .note {
  max-width: none;
}

@media (max-width: 759px) {
  .deja-site__detail > summary {
    display: inline-block;
    padding: 12px 22px;
    border: 1.5px solid var(--vert);
    border-radius: 999px;
    color: var(--vert);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .deja-site__detail > summary::-webkit-details-marker {
    display: none;
  }

  .deja-site__detail > summary:hover {
    background: var(--vert-clair);
  }

  .deja-site__detail[open] > summary {
    display: none;
  }
}

/* --- La vidéo ---------------------------------------------------------- */

.video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #000;
  box-shadow: var(--ombre-capture);
}

.video-bloc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(8px, 2vw, 24px);
}

.video-seule .video {
  margin-bottom: 1rem;
}

/* --- Ce que vous modifiez, et ce que vous ne pouvez pas casser ---------- */

.perimetre {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(16px, 3vw, 40px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--bordure);
}

.perimetre__cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.perimetre__carte {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 30px;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.perimetre__carte--verte {
  border-color: var(--vert-clair);
  background: var(--vert-clair);
}

.perimetre__carte h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.perimetre__carte--verte h3 {
  color: var(--vert);
}

.perimetre__carte ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.1em;
}

/* --- Appel de fin de page ---------------------------------------------- */

.appel {
  padding: var(--section) 0;
  background: var(--vert-nuit);
  color: var(--vert-texte-clair);
}

.appel__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.appel__principal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.appel__titre {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.appel__texte {
  font-size: 1.125rem;
  color: var(--vert-pale);
  text-wrap: pretty;
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-top: 6px;
}

.appel__encart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(244, 248, 241, 0.28);
  border-radius: 18px;
}

.appel__encart h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.appel__encart p {
  color: var(--vert-pale);
  text-wrap: pretty;
}

/* --- Cartes d'exemple : capture d'ordinateur et de téléphone ----------- */

/* position: relative : le texte caché « (nouvel onglet) » du lien se place
   dans la carte. Sans repère, il partait à sa place d'origine dans la page
   et, dans une rangée qui défile, élargissait toute la page sur téléphone. */
.exemple {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.exemple__visuel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 22px 22px 0;
  background: var(--vert-clair);
}

.exemple__ordi {
  width: 100%;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--ombre-capture);
}

.exemple__tel {
  width: 100%;
  margin-bottom: 14px;
  border: 4px solid var(--encre);
  border-radius: 12px;
  box-shadow: var(--ombre-capture);
}

.exemple__corps,
.carte__corps {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 22px 24px 26px;
}

.exemple__corps h3,
.carte__corps h3,
.liste-icones h3,
.panneau h3,
.criteres h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.exemple__corps p,
.carte__corps p {
  text-wrap: pretty;
}

.exemple__corps .lien-action,
.carte__corps .lien-action {
  align-self: flex-start;
  margin-top: 0.4em;
}

/* --- Listes à icônes (« Ce qui est compris », « Ce qui ne change pas ») -- */

.liste-icones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--liste-min, 400px)), 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-icones li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 16px;
  border-top: 2px solid var(--vert);
}

.liste-icones li > div {
  min-width: 0;
}

.liste-icones h3 {
  margin-bottom: 0.45em;
}

.liste-icones p {
  text-wrap: pretty;
}

@media (max-width: 759px) {
  .liste-icones li {
    flex-direction: row;
  }
}

.fonctionnement {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.capture-interface {
  width: 100%;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  box-shadow: var(--ombre-capture);
}

/* --- Encarts verts à coches -------------------------------------------- */

.encart-vert {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: var(--vert-clair);
}

.encart-vert .titre-section {
  margin-bottom: 0.5em;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.coches {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.coches li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 0.7em;
}

.coches li:last-child {
  margin-bottom: 0;
}

.coches svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--vert);
}

/* --- Les rubriques, selon votre activité -------------------------------- */
/* Sans JavaScript, les trois listes s'affichent l'une sous l'autre ; avec,
   les boutons n'en montrent qu'une. */

.publics__choix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.publics__choix[hidden] {
  display: none;
}

.publics__choix button {
  padding: 10px 18px;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.publics__choix button:hover {
  border-color: var(--vert);
}

.publics__choix button[aria-pressed="true"] {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--blanc);
}

.publics__panneaux {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panneau {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.panneau[hidden] {
  display: none;
}

.panneau h3 {
  margin-bottom: 0.45em;
}

.panneau__note {
  margin-bottom: 1rem;
  font-size: 15px;
  color: var(--encre-2);
  max-width: 68ch;
}

.pilules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilules li {
  padding: 8px 14px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--creme);
  font-size: 15px;
  line-height: 1.3;
}

/* --- La technique, en clair (section foncée) --------------------------- */
/* Chaque point est un <details> ouvert : sur téléphone, un script le
   referme au chargement et il se déplie au « + ». Ailleurs, il reste
   ouvert. Sans JavaScript, tout est ouvert. */

.technique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technique > li {
  padding-top: 18px;
  border-top: 2px solid var(--jaune);
}

.technique .pastille {
  margin-bottom: 14px;
}

.technique summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.45em;
  color: var(--vert-texte-clair);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  list-style: none;
}

.technique summary::-webkit-details-marker {
  display: none;
}

.technique__sous-titre {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--vert-pale);
}

.technique__signe {
  display: none;
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--jaune);
}

.technique p {
  margin-bottom: 1rem;
  color: var(--vert-pale);
  max-width: 68ch;
  text-wrap: pretty;
}

.technique .technique__note {
  font-size: 14px;
  font-style: italic;
}

@media (min-width: 760px) {
  .technique summary {
    pointer-events: none;
  }
}

@media (max-width: 759px) {
  .technique summary {
    cursor: pointer;
  }

  .technique__signe {
    display: block;
  }

  .technique details[open] .technique__signe--plus,
  .technique details:not([open]) .technique__signe--moins {
    display: none;
  }
}

.limites {
  max-width: 820px;
  margin-top: 36px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(244, 248, 241, 0.28);
  border-radius: 16px;
}

.limites h3 {
  margin-bottom: 0.45em;
  font-size: 1.3rem;
  font-weight: 700;
}

.limites p {
  color: var(--vert-pale);
  max-width: 68ch;
}

/* --- Tableau « Clé en main ou sur mesure ? » --------------------------- */

.tableau-defilant {
  max-width: 900px;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--bordure);
  border-radius: 14px;
  background: var(--blanc);
}

.tableau-defilant table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.tableau-defilant th,
.tableau-defilant td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bordure);
  text-align: left;
  vertical-align: top;
}

.tableau-defilant thead th {
  background: var(--vert-fonce);
  color: var(--vert-texte-clair);
  font-weight: 700;
}

.tableau-defilant tbody th {
  width: 26%;
  font-weight: 700;
}

.tableau-defilant tr:last-child th,
.tableau-defilant tr:last-child td {
  border-bottom: 0;
}

.tableau-defilant .ligne-prix th,
.tableau-defilant .ligne-prix td {
  background: var(--vert-clair);
  font-weight: 700;
}

.tableau-indication {
  display: none;
  margin: -1rem 0 1.5rem;
  font-size: 13px;
  color: var(--encre-3);
}

@media (max-width: 759px) {
  .tableau-indication {
    display: block;
  }
}

.comparatif__commun {
  margin-bottom: 1rem;
}

/* --- Grilles de cartes (affiches, produits) ----------------------------- */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--carte-min, 260px)), 1fr));
  gap: var(--grille-ecart, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.carte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.carte > img {
  width: 100%;
}

.produit > img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.produit--large {
  grid-column: 1 / -1;
}

.produit--large > img {
  aspect-ratio: 3 / 2;
}

.produit__legende {
  padding: 14px 18px 16px;
  font-weight: 700;
}

/* --- Affiches, visuels : deux encarts verts à pastilles blanches -------- */

.deux-encarts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 18px;
  align-items: start;
}

.liste-pastilles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-pastilles li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.liste-pastilles__texte {
  padding-top: 9px;
  line-height: 1.5;
}

/* --- Tarifs ------------------------------------------------------------ */

.offres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.offre {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.offre h3,
.abonnement h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.prix {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--vert);
}

.prix span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--encre-2);
}

.offre__texte {
  color: var(--encre-2);
  text-wrap: pretty;
}

.offre__lien {
  margin-top: auto;
  font-weight: 600;
}

.offre__lien + .offre__lien {
  margin-top: 0;
}

.tarifs__exemple {
  margin-top: 18px;
}

.abonnement {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px 40px;
  align-items: start;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--bordure);
  border-radius: 16px;
  background: var(--blanc);
}

.abonnement > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.abonnement > p {
  color: var(--encre-2);
  max-width: 68ch;
  text-wrap: pretty;
}

.couts,
.complements {
  max-width: 820px;
}

.complements__groupe {
  max-width: 820px;
  margin: 32px 0 6px;
  font-size: 1.1rem;
  color: var(--vert);
}

.complements__groupe:first-of-type {
  margin-top: 0;
}

.complements__detail {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 15px;
  color: var(--encre-2);
}

.couts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--bordure);
}

.couts dt,
.complements dt {
  font-weight: 700;
}

.couts dd,
.complements dd {
  margin: 0;
}

/* Un montant trop long pour tenir à côté de son intitulé passe à la ligne
   au lieu de le chevaucher. */
.couts__montant {
  margin-left: auto;
  font-weight: 700;
  color: var(--vert);
  text-align: right;
}

.couts__detail {
  flex-basis: 100%;
  color: var(--encre-2);
}

.complements > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--bordure);
}

/* Un prix tient sur une ligne (« À partir de 300 € » se coupait en trois
   sur téléphone) : c'est l'intitulé qui passe à la ligne. Les précisions
   vont sous l'intitulé, pas dans le prix. */
.complements dd {
  flex-shrink: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.encart-devis {
  max-width: 820px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  background: var(--vert-clair);
}

.encart-devis .titre-section {
  margin-bottom: 0.5em;
}

.encart-devis .texte + .texte {
  margin-top: 0.8em;
}

.criteres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteres li {
  padding-top: 16px;
  border-top: 2px solid var(--vert);
}

.criteres h3 {
  margin-bottom: 0.45em;
}

/* --- Questions ---------------------------------------------------------- */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--bordure);
}

.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--bordure);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--vert);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  max-width: 68ch;
  text-wrap: pretty;
}

/* --- Pourquoi activizi ------------------------------------------------- */

.heros--pourquoi .heros__pile {
  gap: 20px;
}

.heros--pourquoi .heros__titre {
  max-width: 22ch;
  margin-bottom: 0;
}

.heros--pourquoi .chapo {
  max-width: 58ch;
}

.raisons {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--bordure);
}

.raisons > li {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--bordure);
}

.raisons__tete {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.raisons__titre {
  max-width: 18ch;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.raisons__corps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.raisons__corps p {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.raisons__corps .lien-action {
  align-self: flex-start;
}

/* --- Qui je suis -------------------------------------------------------- */

.recit p {
  max-width: 68ch;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

/* Les photos de la page « Qui je suis » : la principale à côté du texte,
   la rangée de terrain dessous, aux coins arrondis des captures. */
.apropos--photo {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.apropos__photo img,
.apropos__galerie img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--ombre-capture);
}

.apropos__galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .apropos--photo {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

/* --- Diagnostic -------------------------------------------------------- */

.tests {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tests li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px 0;
  padding: 20px 0;
  border-top: 1px solid var(--bordure);
}

.tests__numero {
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.tests__question {
  font-size: 1.15rem;
  font-weight: 700;
  max-width: 68ch;
}

.tests__explication {
  color: var(--encre-2);
  max-width: 68ch;
}

/* --- Formulaires -------------------------------------------------------- */

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.champ label {
  font-weight: 600;
}

.champ__facultatif,
.champ__aide {
  font-size: 14px;
  font-weight: 400;
  color: var(--encre-3);
}

.champ__facultatif {
  margin-left: 0.3em;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bordure-champ);
  border-radius: 10px;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.champ textarea {
  resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(18, 117, 67, 0.18);
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.formulaire .bouton {
  align-self: flex-start;
}

.mention-donnees {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre-2);
}

/* Le piège à robots : hors de l'écran, jamais en display: none */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px;
  align-items: start;
}

.contact-direct {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: var(--vert-clair);
}

.contact-direct .titre-section {
  margin-bottom: 0.5em;
}

.contact-direct p + p {
  margin-top: 1rem;
}

/* --- Pages simples (mentions, message envoyé) --------------------------- */

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
}

/* --- Pied de page ------------------------------------------------------- */

.pied {
  padding: clamp(40px, 6vw, 72px) 0 40px;
  border-top: 1px solid var(--bordure);
  background: var(--creme-2);
}

.pied__pile {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pied__logo {
  padding-top: clamp(10px, 2vw, 28px);
  overflow-x: clip;
  color: var(--vert);
}

.pied__logo svg {
  height: clamp(70px, 14.7vw, 228px);
  width: auto;
  overflow: visible;
}

/* La baseline, juste sous le grand logo, alignée à gauche avec lui :
   16 px d'écart (le reste de la pile en a 22, d'où la marge négative), une
   taille qui suit celle du logo. Largeur normale de la police, pas la
   version condensée du logo. */
.pied__baseline {
  margin: -6px 0 0;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--encre);
}

.pied__colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 28px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bordure);
}

.pied__colonne {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pied__presentation {
  max-width: 36ch;
}

.pied__zone {
  font-size: 15px;
  color: var(--encre-2);
}

.pied__courriel {
  font-size: 15px;
  font-weight: 600;
}

.pied__titre {
  font-size: 15px;
  font-weight: 700;
}

.pied ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied ul a {
  color: var(--encre);
  font-size: 15px;
  text-decoration: none;
}

.pied ul a:hover {
  color: var(--vert);
  text-decoration: underline;
}

.pied__legal {
  font-size: 15px;
  color: var(--encre-2);
}

.pied__legal a {
  color: var(--encre-2);
}

/* --- Barre d'appel fixe (téléphone) -------------------------------------- */

.barre-appel {
  display: none;
}

@media (max-width: 759px) {
  .js .barre-appel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bordure);
    background: rgba(245, 245, 238, 0.97);
    box-shadow: 0 -8px 24px rgba(14, 31, 23, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.2s ease-out, visibility 0.2s;
  }

  .js .barre-appel--visible {
    transform: none;
    visibility: visible;
  }

  .barre-appel .bouton {
    flex: 1;
    padding: 13px 10px;
    font-size: 15px;
  }

  .js .pied {
    padding-bottom: calc(40px + 76px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .barre-appel {
    transition: none !important;
  }

  .services__panneau {
    animation: none !important;
  }
}

/* --- Affiches agrandies -------------------------------------------------- */
/* Le bouton posé autour d'une affiche (par le script de base.njk) ne change
   rien à la mise en page : il prend la place de l'image. */
.agrandir {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.vitrine > .agrandir,
.bande__serie > .agrandir {
  flex: none;
}

.visionneuse {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: zoom-out;
}

.visionneuse::backdrop {
  background: rgba(14, 31, 23, 0.86);
}

.visionneuse__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 960px);
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.visionneuse__fermer {
  position: fixed;
  top: 14px;
  right: 14px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* --- Le choix du contact (fenêtre ouverte par chaque lien vers /contact/) -- */
.contact-choix {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--creme);
  color: var(--encre);
  box-shadow: 0 30px 60px rgba(9, 56, 34, 0.35);
}

.contact-choix::backdrop {
  background: rgba(9, 56, 34, 0.6);
}

.contact-choix__corps {
  position: relative;
  padding: 26px clamp(18px, 4vw, 32px) 24px;
}

.contact-choix__fermer {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--bordure-champ);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.contact-choix__fermer:hover {
  border-color: var(--encre);
}

.contact-choix__titre {
  margin: 4px 0 20px;
  padding-right: 96px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--vert-nuit);
}

/* Le bloc de contact (contact-bloc.njk), le même dans la fenêtre et sur
   /contact/ : le message, le nom et de quoi répondre, puis l'envoi d'ici
   ou par WhatsApp. Les champs prennent le style des formulaires. */
.contact-bloc {
  gap: 16px;
}

.contact-bloc textarea {
  min-height: 120px;
}

.contact-bloc__duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  align-items: start;
}

.contact-bloc__envoi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.formulaire .contact-bloc__envoi .bouton {
  flex: 1 1 200px;
  align-self: stretch;
}

.contact-bloc__direct {
  font-size: 15px;
  color: var(--encre-2);
}

.contact-bloc__direct a {
  color: var(--vert-nuit);
  font-weight: 700;
  text-decoration-color: var(--orange);
}

.contact-choix .formulaire {
  max-width: none;
}

.contact-choix .mention-donnees {
  font-size: 13px;
}

/* --- Configurateur (/configurateur/) ------------------------------------
   Repris du configurateur du modèle (modele/configurateur.gabarit.html),
   aux couleurs de la vitrine. Les réglages à gauche, l'aperçu collé à
   droite, jusqu'au bord de l'écran ; sur téléphone, l'aperçu sous la
   situation, à mi-hauteur d'écran, et les choix dessous, toutes les
   pastilles visibles. Sans JavaScript, il n'y a pas
   d'aperçu : un message renvoie aux exemples et au contact. */

.heros--configurateur {
  padding-bottom: clamp(20px, 3vw, 32px);
}

.cfg {
  display: grid;
  gap: 24px;
  padding: 0 var(--gouttiere) var(--section);
}

.cfg__reglages {
  display: contents;
}

.js .cfg__sans-js,
html:not(.js) .cfg__reglages {
  display: none;
}

.cfg-etape {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Le titre flotte : sans ça, le trait entre deux étapes passe à travers,
   comme le cadre d'un fieldset. */
.cfg-etape > legend:not(.visuellement-cache) {
  float: left;
  width: 100%;
}

.cfg-etape > legend + * {
  clear: both;
}

.cfg-etape > legend:not(.visuellement-cache),
.cfg-devis__titre {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cfg-etape__numero {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.cfg__sous-etapes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.cfg__sous-etapes fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cfg__sous-etapes legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--encre-2);
  font-weight: 600;
}

/* Les pastilles de choix : une coche sur ce qui est choisi, un « + » sur
   une rubrique qu'on peut ajouter. */
.cfg-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfg-choix input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cfg-choix label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1.5px solid var(--bordure-champ);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.cfg-choix label:hover {
  border-color: var(--vert);
}

.cfg-choix label::before {
  content: "";
  display: none;
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--cfg-icone) center / contain no-repeat;
  mask: var(--cfg-icone) center / contain no-repeat;
}

.cfg-choix input:checked + label {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--blanc);
}

.cfg-choix input:checked + label::before {
  display: block;
  --cfg-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.6l3 3L12.8 5' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.cfg-choix--cases label {
  border-style: dashed;
}

.cfg-choix--cases label::before {
  display: block;
  color: var(--vert);
  --cfg-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.cfg-choix--cases input:checked + label {
  border-style: solid;
}

.cfg-choix--cases input:checked + label::before {
  color: inherit;
}

.cfg-choix input:disabled + label {
  cursor: default;
}

.cfg-choix input:focus-visible + label {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Le choix de l'écran tient sur une ligne, même en 360 px */
.cfg-choix--petit {
  gap: 6px;
}

.cfg-choix--petit label {
  min-height: 40px;
  padding: 4px 11px;
  font-size: 14px;
}

.cfg__selecteurs {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.cfg__selecteurs .cfg-etape + .cfg-etape {
  padding-top: 24px;
  border-top: 1px solid var(--bordure);
}

/* Sur téléphone et tablette, l'aperçu reste en haut de l'écran pendant
   qu'on fait défiler les choix, d'un bord à l'autre : chaque changement se
   voit sans remonter (16/10/2026). Le script lui donne 40 % de la hauteur ;
   une pastille atteinte au clavier s'arrête sous lui, pas derrière. Sur
   ordinateur et sur un téléphone couché, il passe à côté des choix (voir
   plus bas, « .cfg » en deux colonnes). */
.cfg__apercu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-inline: calc(var(--gouttiere) * -1);
  padding: 10px var(--gouttiere) 12px;
  border-radius: 0 0 18px 18px;
  background: var(--creme-2);
  box-shadow: 0 10px 18px -8px rgb(14 31 23 / 0.28);
}

.cfg__selecteurs label,
.cfg__details label {
  scroll-margin-top: calc(40vh + 90px);
  scroll-margin-bottom: 32px;
}

.cfg-appareil figcaption {
  display: none;
}

.cfg__scene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.cfg-appareil {
  display: grid;
  gap: 8px;
}

.cfg-ecran {
  position: relative;
  overflow: hidden;
  background: var(--blanc);
  box-shadow: var(--ombre-montage);
}

.cfg-appareil--ordinateur .cfg-ecran {
  border: 1px solid var(--bordure);
  border-radius: 10px;
}

.cfg-appareil--telephone .cfg-ecran {
  border: 8.8px solid var(--encre);
  border-radius: 26px;
}

.cfg-ecran iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: var(--blanc);
  transform-origin: 0 0;
}

.cfg-appareil figcaption {
  color: var(--encre-2);
  font-size: 15px;
}

.cfg__details {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.cfg__details > * + * {
  padding-top: 24px;
  border-top: 1px solid var(--bordure);
}

.cfg__description {
  margin: 12px 0 0;
  color: var(--encre-2);
  font-size: 16px;
  line-height: 1.45;
}

.cfg__description strong {
  color: var(--encre);
}

.cfg__socle {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--vert-clair);
  font-size: 16px;
}

.cfg__compteur {
  margin: 14px 0 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cfg__compteur--plus {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: #fbe7dc;
  color: var(--orange-texte);
}

.cfg__details .note + .note {
  margin-top: 8px;
}

.cfg-devis__titre {
  margin-bottom: 0.5em;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.cfg-devis__titre .cfg-etape__numero {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.cfg-devis__recap {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--bordure);
  border-radius: 14px;
  background: var(--blanc);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Sur ordinateur, les réglages s'alignent sur le reste de la page, et
   l'aperçu prend toute la place jusqu'au bord droit : il faut 1 280 pixels
   d'écran pour voir l'ordinateur et le téléphone côte à côte. */
@media (min-width: 1024px), (min-width: 700px) and (max-height: 559px) {
  .cfg {
    padding-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2 + var(--gouttiere)));
    grid-template-columns: 23rem minmax(0, 1fr);
    grid-template-areas:
      "type apercu"
      "selecteurs apercu"
      "details apercu";
    grid-template-rows: auto auto 1fr;
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
  }

  .cfg__sans-js {
    grid-column: 1 / -1;
  }

  .cfg-etape--type { grid-area: type; }
  .cfg__details { grid-area: details; }

  .cfg__apercu {
    grid-area: apercu;
    top: 16px;
    gap: 16px;
    margin-inline: 0;
    padding: clamp(12px, 2vw, 24px);
    border-radius: 18px;
    box-shadow: none;
  }

  .cfg__selecteurs label,
  .cfg__details label {
    scroll-margin-top: 16px;
  }

  .cfg-appareil figcaption {
    display: block;
  }

  .cfg__selecteurs {
    grid-area: selecteurs;
    padding-top: 24px;
    border-top: 1px solid var(--bordure);
  }

  .cfg__scene {
    justify-content: flex-start;
  }

  .cfg__details {
    padding-top: 24px;
    border-top: 1px solid var(--bordure);
  }
}

/* Tarifs : ce que coûtent ailleurs les frais annuels (relecture du
   14/10/2026, « un argument très puissant »). Un encadré, pas une note. */
.comparaison-annuelle {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--vert);
  border-radius: 0 12px 12px 0;
  background: var(--blanc);
  max-width: 72ch;
  font-weight: 500;
  text-wrap: pretty;
}

/* Un lien d'action posé directement dans une pile ne s'étire pas. */
.pile > .lien-action {
  align-self: flex-start;
}

/* Diagnostic : le formulaire, et à côté l'exemple de compte rendu en image,
   qui s'agrandit (relecture du 14/10/2026 : visible, pas téléchargeable). */
.diag-grille {
  display: grid;
  gap: 40px;
  align-items: start;
}

.diag-exemple {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.diag-exemple__titre {
  font-size: 1.19rem;
  font-weight: 700;
}

.diag-exemple img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  box-shadow: var(--ombre-capture);
}

@media (min-width: 960px) {
  .diag-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 64px;
  }
}

/* --- Événements sportifs ------------------------------------------------ */

/* Direction « profil de course » (05/11/2026), choisie par Quentin parmi
   trois maquettes, en trois temps : avant, pendant, après. Fond crème aux
   courbes de niveau, comme une carte IGN ; la photo d'un départ en tête,
   le bandeau des trois temps dessous ; le
   tracé orange qui serpente d'un bloc à l'autre ; les vrais documents en
   éventail ; l'arrivée en vert nuit sous une ligne en damier. */
.course-heros {
  padding: clamp(36px, 5vw, 64px) 0 0;
  background-color: var(--creme);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360' viewBox='0 0 520 360'%3E%3Cg fill='none' stroke='%23cfe6d6' stroke-width='1.2'%3E%3Cpath d='M-20 300 C 80 240, 160 330, 260 270 S 440 210, 540 260'/%3E%3Cpath d='M-20 250 C 90 190, 170 280, 270 220 S 450 160, 540 210'/%3E%3Cpath d='M-20 200 C 100 140, 180 230, 280 170 S 460 110, 540 160'/%3E%3Cpath d='M-20 150 C 110 90, 190 180, 290 120 S 470 60, 540 110'/%3E%3Cpath d='M-20 100 C 120 40, 200 130, 300 70 S 480 10, 540 60'/%3E%3C/g%3E%3C/svg%3E");
}

.course-heros__titre {
  margin: 18px 0 0;
  max-width: 16ch;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--vert-nuit);
}

.course-heros__ligne {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 56px;
  margin-top: 28px;
}

.course-heros__chapo {
  flex: 1 1 420px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--encre-2);
}

/* La photo d'un départ, et sous elle le bandeau des trois temps */
.course-heros:has(.course-entete) {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.course-entete {
  margin-top: clamp(28px, 4vw, 48px);
}

.course-entete picture {
  display: block;
}

.course-entete__photo {
  display: block;
  width: 100%;
  height: clamp(220px, 36vw, 460px);
  object-fit: cover;
  object-position: 50% 80%;
  border-radius: 18px 18px 0 0;
}

.course-entete__temps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 16px 12px 18px;
  list-style: none;
  border-radius: 0 0 18px 18px;
  background: var(--vert-fonce);
  color: var(--vert-texte-clair);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
}

.course-entete__temps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
  text-align: center;
}

.course-entete__temps span {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--jaune);
}

/* Ce que l'organisateur y gagne : ses objectifs, deux par deux, chacun
   sous un trait orange, comme une ligne de départ */
.course-gains__liste {
  display: grid;
  gap: 28px clamp(28px, 4vw, 56px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.course-gains__liste li {
  padding-top: 18px;
  border-top: 5px solid var(--orange);
}

.course-gains__titre {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--vert-nuit);
}

.course-gains__liste p {
  max-width: 44ch;
  color: var(--encre-2);
}

/* Les services proposés, par thème : un pictogramme par thème, comme
   « Ce que vous y gagnez » sur l'accueil ; chaque élément pointé d'un
   repère jaune, comme les sommets du parcours */
.course-catalogue {
  display: grid;
  gap: 32px clamp(28px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
}

.course-theme {
  padding-top: 16px;
  border-top: 3px solid var(--vert-nuit);
}

/* Un pictogramme sur chaque gain et chaque thème, comme « Ce que vous y
   gagnez » sur l'accueil (Quentin, 06/11/2026) */
.course-gains__liste .pastille,
.course-theme .pastille {
  margin-bottom: 12px;
}

.course-theme__titre {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vert);
}

.course-theme__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-theme__liste li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-weight: 600;
  line-height: 1.4;
}

.course-theme__liste li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--vert-nuit);
  border-radius: 50%;
  background: var(--jaune);
}

@media (min-width: 640px) {
  .course-gains__liste,
  .course-catalogue {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .course-catalogue {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-route__note {
  margin-top: 14px;
}

.course-etapes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.course-bloc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 72px);
  align-items: center;
}

/* Le tracé qui arrive du bloc précédent, de l'autre côté */
.course-lien {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 110px;
  margin: 10px 0;
}

.course-lien path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
}

.course-bloc--droite .course-bloc__texte {
  order: 2;
}

.course-panneau {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 14px 7px;
  border: 3px solid var(--vert-nuit);
  border-radius: 8px;
  background: var(--jaune);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vert-nuit);
}

.course-temps--orange .course-panneau {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.course-temps__titre {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.course-bloc__titre {
  margin: 4px 0 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vert);
}

.course-outils {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-outils li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--bordure);
}

.course-outils strong {
  font-weight: 700;
}

.course-outils span {
  font-size: 15px;
  color: var(--encre-2);
}

/* Les prix, regroupés plus bas : avant à gauche, pendant et après à droite */
.course-prix {
  display: grid;
  gap: 8px 56px;
}

.course-prix .complements__groupe:first-of-type {
  margin-top: 0;
}

.course-prix > div + div {
  margin-top: 20px;
}

@media (min-width: 900px) {
  .course-prix {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .course-prix > :first-child {
    grid-row: span 2;
  }
}

/* Les vrais documents en éventail : chaque carte tournée selon sa place
   (--angle) et abaissée vers les bords (--creux), posés par le gabarit. Au
   survol ou au focus, la carte se redresse et remonte ; au clic, elle
   s'agrandit (visionneuse commune). */
.course-eventail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.course-eventail__cartes {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 40px 14px;
}

.course-eventail__cartes > * {
  flex: none;
  margin: 0 -30px;
}

.course-eventail__carte {
  position: relative;
  display: block;
  height: auto;
  border-radius: 8px;
  background: var(--blanc);
  box-shadow: 0 16px 30px rgba(14, 31, 23, 0.25);
  transform: translateY(var(--creux, 0)) rotate(var(--angle, 0));
  transform-origin: 50% 100%;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.course-eventail__carte--portrait {
  width: clamp(100px, 12vw, 150px);
}

.course-eventail__carte--paysage {
  width: clamp(160px, 19vw, 240px);
}

.course-eventail__carte:hover,
.course-eventail__carte:focus-visible {
  z-index: 2;
  transform: translateY(calc(var(--creux, 0) - 14px)) rotate(0deg) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .course-eventail__carte {
    transition: none;
  }
}

.course-eventail__legende {
  max-width: 46ch;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--encre-2);
}

.course-arrivee {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 9vw, 112px);
  background: var(--vert-nuit);
  color: var(--vert-texte-clair);
}

/* La ligne d'arrivée peinte au sol */
.course-arrivee::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  background: repeating-conic-gradient(var(--encre) 0 25%, #fff 0 50%) 0 0 / 28px 28px;
}

.course-arrivee .titre-section {
  color: var(--vert-texte-clair);
}

.course-arrivee .chapo {
  color: rgba(244, 248, 241, 0.86);
}

.course-arrivee :focus-visible {
  outline-color: var(--jaune);
}

.course-arrivee__grille {
  display: grid;
  gap: 32px;
  align-items: center;
}

.course-arrivee__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.course-arrivee picture {
  display: block;
}

.course-arrivee__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .course-arrivee__grille {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
  }
}

@media (max-width: 759px) {
  .course-bloc {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .course-bloc--droite .course-bloc__texte {
    order: 0;
  }

  .course-lien {
    height: 70px;
  }

  .course-entete__temps {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 13px;
  }

  .course-eventail__cartes {
    padding: 16px 30px 6px;
  }
}
