/* ============================================================
   La page du livre « L'IA dans votre entreprise » — /guide/
   La charte est celle du livre (dépôt guide-ia-2027, couverture
   « C2 » du 21 novembre 2026) : titres en Archivo étroite, second
   temps du titre souligné de deux traits verts, mention d'édition en
   IBM Plex Mono, papier chaud de la couverture. L'ouverture et les
   sept parties sont sur fond nuit.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/guide/Archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/guide/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

.guide-page {
  --livre-papier: #F4EFE6;
  --livre-vert: #6EAA87;
  --livre-vert-encre: #2F6B4F;
  --livre-terracotta: #DC7844;
  --livre-bleu-gris: #4D6A85;
  --nuit: #081726;
  --nuit-2: #0E2238;
  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --edition: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --svg-souligne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 50 2, 120 11, 198 5' stroke='%236EAA87' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M8 10 C 60 6, 130 12, 190 8' stroke='%236EAA87' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Les titres du livre : Archivo étroite. */
.guide-page h1,
.guide-page h2,
.guide-page h3 {
  font-family: var(--titre);
  font-stretch: 90%;
}

.guide-page h2 {
  font-weight: 720;
  letter-spacing: -0.022em;
}

.guide-souligne {
  display: inline-block;
  background: var(--svg-souligne) bottom / 100% 0.2em no-repeat;
  padding-bottom: 0.14em;
}

/* Le surtitre, à la façon de la mention d'édition de la couverture. */
.guide-surtitre {
  margin: 0 0 var(--esp-3);
  font: 600 clamp(0.95rem, 1.35vw, 1.15rem)/1.3 var(--edition);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--livre-vert);
}

.guide-surtitre-clair { color: var(--livre-vert-encre); }

.guide-bouton {
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
}

/* ---------- Le livre, sur fond nuit ---------- */

.guide-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
  color: var(--papier);
  background:
    radial-gradient(ellipse 48% 62% at 74% 52%, rgba(27, 75, 135, 0.55) 0%, rgba(27, 75, 135, 0) 70%),
    radial-gradient(ellipse 30% 40% at 12% 8%, rgba(110, 170, 135, 0.12) 0%, rgba(110, 170, 135, 0) 70%),
    linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%);
}

/* Un grain discret, comme le papier de la couverture. */
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.guide-hero-grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--esp-4);
  align-items: center;
}

.guide-titre {
  margin-bottom: var(--esp-3);
  font: 720 clamp(3rem, 7vw, 5.4rem)/1 var(--titre);
  font-stretch: 90%;
  letter-spacing: -0.022em;
  color: var(--papier);
}

.guide-titre .guide-souligne { padding-bottom: 0.1em; }

.guide-sous-titre {
  max-width: 36rem;
  margin-bottom: var(--esp-3);
  font: 400 clamp(1.15rem, 1.9vw, 1.45rem)/1.35 var(--titre);
  font-stretch: 95%;
  color: #A9C7DD;
}

.guide-chapo {
  max-width: 35rem;
  margin-bottom: var(--esp-4);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: #BDD0DF;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-2) var(--esp-3);
}

.guide-hero .btn-primaire {
  background: var(--livre-vert);
  border-color: var(--livre-vert);
  color: var(--nuit);
}

.guide-hero .btn-primaire:hover {
  background: var(--papier);
  border-color: var(--papier);
  color: var(--nuit);
}

.guide-lien {
  font-weight: 650;
  color: var(--papier);
  text-decoration-color: var(--livre-vert);
  text-decoration-thickness: 2px;
}

.guide-lien:hover { color: #A9CCE3; }

/* Le livre en volume : six faces, orientées par --rx et --ry, que
   guide-livre.js fait suivre la souris (ou le doigt qui le fait tourner).
   Les tailles suivent la largeur de la couverture (unités cqw) : la
   première se compose comme le livre imprimé, 139,7 × 215,9 mm. */
.guide-livre {
  --e: 6.5cqw;
  --demi-largeur: 50cqw;
  --demi-hauteur: 77.27cqw;
  position: relative;
  justify-self: center;
  width: min(100%, 22.5rem);
  container-type: inline-size;
  padding-block: 1.5rem 3rem;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.guide-livre.est-saisi { cursor: grabbing; }

.guide-livre-scene {
  position: relative;
  aspect-ratio: 139.7 / 215.9;
  perspective: 1500px;
  transform: translateY(var(--flotte, 0px));
}

.guide-livre-objet {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -24deg));
}

.guide-livre-face {
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.guide-livre-avant,
.guide-livre-arriere {
  inset: 0;
  overflow: hidden;
  border-radius: 1px 4px 4px 1px;
  background-color: var(--livre-papier);
  background-image: url("../img/guide/couverture-panoramique.webp");
  background-size: auto 100%;
  background-repeat: no-repeat;
}

.guide-livre-avant {
  padding: 12.9cqw 7.9cqw 0 10cqw;
  color: var(--encre);
  background-position: 90.5% 100%;
  transform: translateZ(calc(var(--e) / 2));
}

/* La quatrième, composée comme sur le livre imprimé (maquette du dépôt du
   livre) : 1 mm du livre vaut 0,716 cqw. */
.guide-livre-arriere {
  padding: 8.6cqw 10.7cqw;
  background-position: 9.3% 100%;
  transform: rotateY(180deg) translateZ(calc(var(--e) / 2));
}

.guide-livre-arriere p {
  position: relative;
  max-width: 80.2cqw;
  margin: 0 0 2.15cqw;
  font: 2.65cqw/1.38 var(--serif);
  color: var(--encre);
}

.guide-livre-arriere .guide-livre-envoi {
  font-style: italic;
  color: var(--marine);
}

.guide-livre-arriere .guide-livre-bio {
  position: absolute;
  top: 58.7cqw;
  left: 10.7cqw;
  margin: 0;
  font: 2.02cqw/1.4 var(--sans);
  color: #3b4a5c;
}

.guide-livre-arriere .guide-livre-url {
  position: absolute;
  left: 13.6cqw;
  bottom: 5.3cqw;
  margin: 0;
  padding: 0.8cqw 1.6cqw;
  border-radius: 1cqw;
  font: 700 2.5cqw/1 var(--titre);
  font-stretch: 90%;
  background: color-mix(in srgb, var(--livre-papier) 90%, transparent);
}

/* Le pli de la reliure, sur la première. */
.guide-livre-avant::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 2.4cqw;
  width: 1.6cqw;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0));
}

.guide-livre-avant p { position: relative; margin: 0; }

.guide-livre-titre {
  font: 720 10.47cqw/1 var(--titre);
  font-stretch: 90%;
  letter-spacing: -0.022em;
}

.guide-livre-titre span {
  display: inline-block;
  background: var(--svg-souligne) bottom / 100% 2.3cqw no-repeat;
  padding-bottom: 1.6cqw;
}

.guide-livre-sous-titre {
  margin-top: 3.2cqw !important;
  font: 400 3.19cqw/1.3 var(--titre);
  font-stretch: 95%;
  color: var(--livre-bleu-gris);
  white-space: nowrap;
}

.guide-livre-edition {
  margin-top: 2.5cqw !important;
  font: 600 2.17cqw var(--edition);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--livre-vert-encre);
}

.guide-livre-auteurs {
  position: absolute !important;
  left: 7.9cqw;
  bottom: 7.2cqw;
  padding: 1.07cqw 2.15cqw;
  border-radius: 1.07cqw;
  font: 650 3.32cqw var(--titre);
  font-stretch: 90%;
  background: color-mix(in srgb, var(--livre-papier) 90%, transparent);
}

/* Le reflet suit l'inclinaison (--gx, --gy). */
.guide-livre-reflet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%),
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
}

/* Le dos, à gauche, et la tranche des pages, à droite. */
.guide-livre-dos,
.guide-livre-tranche {
  top: 0;
  height: 100%;
  width: var(--e);
  left: calc(50% - var(--e) / 2);
}

.guide-livre-dos {
  display: flex;
  justify-content: center;
  padding-top: 11cqw;
  background:
    linear-gradient(180deg, transparent 72%, #2E5B8C 72%, #1B4B87 100%),
    linear-gradient(90deg, #e9e2d4, var(--livre-papier) 45%, #e4dccd);
  transform: rotateY(-90deg) translateZ(var(--demi-largeur));
}

.guide-livre-dos span {
  writing-mode: vertical-rl;
  font: 680 2.35cqw var(--titre);
  font-stretch: 90%;
  white-space: nowrap;
  color: var(--encre);
}

.guide-livre-tranche {
  background:
    repeating-linear-gradient(90deg, #fbf8f1 0 1.5px, #ddd5c6 1.5px 2.4px),
    #f4efe6;
  box-shadow: inset 0 0 0.6cqw rgba(0, 0, 0, 0.2);
  transform: rotateY(90deg) translateZ(var(--demi-largeur));
}

.guide-livre-haut,
.guide-livre-bas {
  left: 0;
  width: 100%;
  height: var(--e);
  top: calc(50% - var(--e) / 2);
  background:
    repeating-linear-gradient(0deg, #fbf8f1 0 1.5px, #ddd5c6 1.5px 2.4px),
    #f4efe6;
}

.guide-livre-haut { transform: rotateX(90deg) translateZ(var(--demi-hauteur)); }
.guide-livre-bas { transform: rotateX(-90deg) translateZ(var(--demi-hauteur)); }

.guide-livre-ombre {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1.2rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px);
  transform: translateX(var(--ombre-x, 0px)) scaleX(var(--ombre-l, 1));
  pointer-events: none;
}

/* ---------- L'extrait ---------- */

.guide-extrait {
  padding-block: var(--esp-bande);
  background: var(--livre-papier);
  scroll-margin-top: 4.5rem;
}

.guide-extrait h2 { max-width: 52rem; }

.guide-extrait-resume {
  margin-bottom: var(--esp-4);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.6;
  color: var(--encre-douce);
}

.guide-extrait-texte {
  margin: 0;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.2rem);
  background: #fffdf8;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(14, 34, 56, 0.06),
    0 30px 60px -45px rgba(14, 34, 56, 0.55);
}

.guide-colonnes {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 3.6rem);
  column-rule: 1px solid #ebe4d6;
}

.guide-colonnes p {
  margin: 0 0 0.9em;
  font: 1.08rem/1.65 var(--serif);
  color: #1d2b3a;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* La lettrine. */
.guide-colonnes p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font: 720 3.6em/0.8 var(--titre);
  font-stretch: 90%;
  color: var(--marine);
}

.guide-colonnes .guide-exergue {
  break-inside: avoid;
  margin: 0.4em 0 1em;
  padding: 0.2em 0 0.2em 1em;
  border-left: 3px solid var(--livre-terracotta);
  font: italic 1.32rem/1.4 var(--serif);
  text-align: left;
  color: var(--marine);
}

.guide-extrait-texte figcaption {
  margin-top: var(--esp-3);
  padding-top: var(--esp-2);
  border-top: 1px solid #ebe4d6;
  font: 600 0.78rem var(--edition);
  letter-spacing: 0.08em;
  color: var(--gris-chaud);
}

/* ---------- Les sept parties, sur fond nuit ---------- */

.guide-parties {
  padding-block: var(--esp-bande);
  color: var(--papier);
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit));
}

.guide-parties h2 { color: var(--papier); }

.guide-parties h2 { margin-bottom: var(--esp-4); }

.guide-ouvertures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-ouverture { aspect-ratio: 760 / 1133; }

.guide-ouverture-grande {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.guide-ouverture button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-sm);
  background: #efe8dc;
  font: inherit;
  color: var(--encre);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease;
}

.guide-ouverture button:hover,
.guide-ouverture button:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.9);
}

.guide-ouverture button:focus-visible {
  outline: 3px solid var(--livre-vert);
  outline-offset: 3px;
}

.guide-ouverture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.guide-ouverture button:hover img { transform: scale(1.05); }

.guide-ouverture-titre {
  position: absolute;
  inset: 0.6rem 0.6rem auto;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-xs);
  font: 680 0.95rem/1.2 var(--titre);
  font-stretch: 90%;
  background: color-mix(in srgb, var(--livre-papier) 90%, transparent);
  backdrop-filter: blur(3px);
}

.guide-ouverture-titre b {
  font: 600 0.72rem var(--edition);
  color: var(--livre-vert-encre);
}

.guide-ouverture-grande .guide-ouverture-titre {
  inset: 1rem 1rem auto;
  padding: 0.7rem 0.9rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

/* Au survol : l'invitation à ouvrir la partie. */
.guide-ouverture-voir {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-pilule);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--papier);
  background: var(--nuit-2);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.guide-ouverture-voir::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: var(--svg-chevron) center / contain no-repeat;
  mask: var(--svg-chevron) center / contain no-repeat;
}

.guide-ouverture button:hover .guide-ouverture-voir,
.guide-ouverture button:focus-visible .guide-ouverture-voir {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .guide-ouverture-voir { opacity: 1; transform: none; }
}

/* ---------- Les auteurs ---------- */

.guide-auteurs {
  padding-block: var(--esp-bande);
  background: var(--papier);
}

.guide-auteurs-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--esp-4);
  align-items: center;
}

.guide-auteurs .lede { margin-bottom: var(--esp-3); }

.guide-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-portraits img {
  width: 7.5rem;
  height: 7.5rem;
  margin-bottom: var(--esp-2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--papier), 0 0 0 5px var(--livre-vert);
}

.guide-portraits h3 { margin-bottom: 0.4rem; font-weight: 700; }

.guide-portraits p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--gris-chaud);
}

/* ---------- Les fenêtres ---------- */

.guide-modale {
  width: min(46rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--r-md);
  color: var(--encre);
  background: var(--papier-clair);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.guide-modale::backdrop {
  background: rgba(8, 23, 38, 0.72);
  backdrop-filter: blur(4px);
}

.guide-modale[open] { animation: guide-modale-entree 0.35s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes guide-modale-entree {
  from { opacity: 0; transform: translateY(1.2rem) scale(0.98); }
}

.guide-fermer {
  position: sticky;
  top: 0.8rem;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.8rem 0.8rem -3.3rem 0;
  border: 1px solid var(--marine-filet);
  border-radius: 50%;
  font: 400 1.6rem/1 var(--sans);
  color: var(--encre);
  background: var(--papier-clair);
  cursor: pointer;
}

.guide-fermer:hover { background: var(--marine-pale); }

/* Sans JavaScript, la section d'inscription n'a pas de fenêtre à fermer. */
.guide-inscription .guide-fermer { display: none; }

/* Une partie, à la place des sept illustrations. */
.guide-partie-panneau {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--r-md);
  color: var(--encre);
  background: var(--papier-clair);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 5.5rem;
}

.guide-partie-panneau[hidden] { display: none; }
.guide-partie-panneau > .guide-partie-corps { flex: 1; }
.guide-partie-panneau.est-anime { animation: guide-apparition 0.4s ease both; }
.guide-partie-panneau h3 { outline: none; }

.guide-partie-fermer {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--marine-filet);
  border-radius: 50%;
  font: 400 1.6rem/1 var(--sans);
  color: var(--encre);
  background: var(--papier-clair);
  cursor: pointer;
}

.guide-partie-fermer:hover { background: var(--marine-pale); }

.guide-partie-corps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.guide-partie-corps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.guide-partie-texte {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.guide-partie-texte .guide-surtitre { margin-bottom: var(--esp-2); font-size: 0.85rem; }

.guide-partie-texte h3 {
  margin-bottom: var(--esp-3);
  padding-right: 2.5rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 720;
  letter-spacing: -0.022em;
}

.guide-partie-texte ol {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 var(--esp-3);
  padding: 0;
  list-style: none;
  counter-reset: q;
}

.guide-partie-texte ol li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2.4rem;
  border-bottom: 1px solid var(--filet);
  font: italic 1.08rem/1.4 var(--serif);
  counter-increment: q;
}

.guide-partie-texte ol li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font: 600 0.75rem var(--edition);
  font-style: normal;
  color: var(--livre-vert-encre);
}

.guide-partie-intro { color: var(--gris-chaud); }

.guide-partie-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 var(--esp-3);
  padding: 0;
  list-style: none;
}

.guide-partie-services li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--marine-filet);
  border-radius: var(--r-pilule);
  font-size: 0.92rem;
  font-weight: 600;
}

.guide-partie-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-2);
  margin-top: auto;
  padding-top: var(--esp-2);
}

.guide-partie-nav { display: flex; gap: 0.4rem; }

.guide-partie-nav button {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--marine-filet);
  border-radius: 50%;
  font: 600 1.1rem var(--sans);
  color: var(--encre);
  background: var(--blanc);
  cursor: pointer;
}

.guide-partie-nav button:hover { background: var(--marine-pale); }

/* ---------- L'inscription ---------- */

/* Sans JavaScript, la section reste en bas de page. */
.guide-inscription {
  padding-block: var(--esp-bande);
  padding-inline: var(--gouttiere);
  background: var(--marine-pale);
}

.guide-inscription .guide-panneau {
  max-width: 46rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--marine-filet);
  border-radius: var(--r-md);
  background: var(--papier-clair);
}

.guide-js .guide-inscription { display: none; }

.guide-panneau-tete {
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.6rem) var(--esp-3);
  background: var(--livre-papier);
  border-bottom: 1px solid #e6dfd1;
}

.guide-panneau-tete .guide-surtitre { margin-bottom: var(--esp-2); font-size: 0.82rem; }

.guide-panneau-tete h2 {
  margin-bottom: var(--esp-1);
  padding-right: 2.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.guide-panneau-chapo { color: var(--gris-chaud); }

.guide-progression {
  display: none;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--esp-3) 0 0;
  padding: 0;
  list-style: none;
}

.guide-js .guide-progression { display: flex; }
.guide-js .guide-progression[hidden] { display: none; }

.guide-progression li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--gris-chaud);
}

.guide-progression li + li::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  margin-right: 0.2rem;
  background: var(--marine-filet);
}

.guide-progression span {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--marine-filet);
  border-radius: 50%;
  font: 600 0.75rem var(--edition);
}

.guide-progression .est-courant { color: var(--encre); }

.guide-progression .est-courant span,
.guide-progression .est-fait span {
  border-color: var(--encre);
  color: var(--papier);
  background: var(--encre);
}

.guide-form {
  padding: var(--esp-3) clamp(1.4rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.4rem);
}

.guide-pas {
  display: grid;
  gap: var(--esp-3);
}

.guide-pas + .guide-pas { margin-top: var(--esp-4); }
.guide-js .guide-pas + .guide-pas { margin-top: 0; }
.guide-pas[hidden] { display: none; }

.guide-etape {
  display: grid;
  gap: var(--esp-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guide-etape > legend {
  margin-bottom: var(--esp-1);
  padding: 0;
  font: 700 1.2rem var(--titre);
  font-stretch: 90%;
  letter-spacing: -0.01em;
}

.guide-ligne {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-2);
}

.guide-ligne-fonction { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.guide-ligne-cp { grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); }

.guide-champ { position: relative; min-width: 0; }

.guide-form label,
.guide-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-form label > span,
.guide-label > span { color: var(--gris-chaud); font-weight: 450; }

.guide-form input[type="text"],
.guide-form input[type="email"],
.guide-form select,
.guide-form textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--marine-filet);
  border-radius: var(--r-xs);
  color: var(--encre);
  background: var(--blanc);
  font: inherit;
  font-size: 1rem;
}

.guide-form textarea { resize: vertical; }

/* Champs et listes à la même hauteur, sur tous les navigateurs : la liste perd
   son apparence native (Safari la dessine plus basse) et reçoit son chevron. */
.guide-form input[type="text"],
.guide-form input[type="email"],
.guide-form select {
  height: 3.1rem;
  line-height: 1.25;
}

.guide-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2238' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  cursor: pointer;
}


.guide-form input:focus-visible,
.guide-form select:focus-visible,
.guide-form textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--marine) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--marine);
}

.guide-form [aria-invalid="true"] { border-color: #a33528 !important; }

/* Un champ rempli par le répertoire Sirene, que la personne peut corriger. */
.guide-form .est-prerempli {
  border-color: var(--livre-vert);
  background-color: #f3f9f5;
}

.guide-aide {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gris-chaud);
}

.guide-aide[data-ton="attention"] { color: #9a4a22; }
.guide-aide[data-ton="ok"] { color: var(--action-sombre); }
.guide-aide[hidden] { display: none; }

.guide-choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.guide-choix label {
  position: relative;
  margin: 0;
  font-weight: 550;
  font-size: 0.93rem;
  cursor: pointer;
}

.guide-choix input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.guide-choix span {
  display: block;
  height: 100%;
  padding: 0.65rem 0.8rem 0.65rem 2.2rem;
  border: 1px solid var(--marine-filet);
  border-radius: var(--r-xs);
  background: var(--blanc);
  color: var(--encre) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.guide-choix span::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--marine-filet);
  border-radius: 50%;
  background: var(--blanc);
}

.guide-choix input:checked + span {
  border-color: var(--action);
  background: #eef6f1;
}

.guide-choix input:checked + span::before {
  border-color: var(--action);
  background: radial-gradient(circle, var(--action) 0 45%, var(--blanc) 50%);
}

.guide-choix input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--marine) 45%, transparent);
  outline-offset: 1px;
}

/* Les suggestions : entreprises du répertoire, adresses de la BAN. */
.guide-combo-boite { position: relative; }

.guide-liste {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 18rem;
  margin: 0;
  padding: 0.3rem;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--marine-filet);
  border-radius: var(--r-xs);
  background: var(--blanc);
  box-shadow: 0 18px 40px -18px rgba(14, 34, 56, 0.45);
}

.guide-liste li {
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.35;
}

.guide-liste li[aria-selected="true"],
.guide-liste li:hover { background: var(--marine-pale); }

.guide-liste strong { display: block; font-size: 0.95rem; }
.guide-liste small { display: block; font-size: 0.8rem; color: var(--gris-chaud); }

.guide-liste .guide-liste-note {
  cursor: default;
  font-size: 0.8rem;
  color: var(--gris-chaud);
  background: none !important;
}

/* L'exemplaire : le verdict, puis l'adresse quand le papier part. */
.guide-verdict { outline: none; }

.guide-verdict > div {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-sm);
  background: var(--papier);
  border: 1px solid var(--filet);
}

.guide-verdict [data-verdict="papier"] {
  border-color: var(--livre-terracotta);
  background: #fdf4ec;
  animation: guide-apparition 0.45s ease both;
}

.guide-verdict [data-verdict="numerique"] {
  border-color: var(--marine-filet);
  background: #f2f6fb;
  animation: guide-apparition 0.45s ease both;
}

@keyframes guide-apparition {
  from { opacity: 0; transform: translateY(4px); }
}

.guide-verdict p { margin-bottom: 0.4rem; font-size: 0.97rem; line-height: 1.5; }
.guide-verdict p:last-child { margin-bottom: 0; }

.guide-verdict-titre {
  font: 720 1.3rem/1.2 var(--titre) !important;
  font-stretch: 90% !important;
}

[data-verdict="papier"] .guide-verdict-titre { color: #9a4a22; }

.guide-adresse {
  display: grid;
  gap: var(--esp-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guide-adresse > legend { padding: 0; margin-bottom: 0.2rem; }
.guide-adresse[disabled] { display: none; }

.guide-case {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0 !important;
  font-weight: 450 !important;
  line-height: 1.55;
}

.guide-case[hidden] { display: none !important; }

.guide-case input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--action);
}

.guide-case span { color: var(--encre) !important; font-weight: 450 !important; }

.guide-piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.guide-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-2);
  padding-top: var(--esp-2);
  border-top: 1px solid var(--filet);
}

.guide-navigation [data-suivant],
.guide-navigation [data-envoyer] { margin-left: auto; }

.guide-seulement-js { display: none !important; }
.guide-js .guide-seulement-js { display: inline-flex !important; }
.guide-js .guide-navigation.guide-seulement-js { display: flex !important; }

.guide-retour {
  padding: 0.5rem 0;
  border: 0;
  font: inherit;
  font-weight: 650;
  color: var(--marine);
  background: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-form[aria-busy="true"] [data-envoyer] { cursor: wait; opacity: 0.72; }

.guide-statut {
  min-height: 1.5em;
  margin: -0.6rem 0 0;
  font-weight: 700;
}

.guide-statut[data-state="error"] { color: #a33528; }
.guide-statut[data-state="pending"] { color: var(--gris-chaud); }

.guide-merci {
  padding: var(--esp-4) clamp(1.4rem, 4vw, 2.6rem);
  outline: none;
  animation: guide-apparition 0.5s ease both;
}

.guide-merci-titre {
  font: 720 clamp(1.7rem, 3.4vw, 2.3rem)/1.15 var(--titre);
  font-stretch: 90%;
  letter-spacing: -0.02em;
}

.guide-merci-spine {
  margin-top: var(--esp-3);
  padding-top: var(--esp-2);
  border-top: 1px dashed var(--marine-filet);
  font-size: 0.95rem;
  color: var(--gris-chaud);
}

/* Le bouton qui reste à l'écran une fois l'ouverture dépassée : centré en bas,
   en vert clair sur toutes les sections, avec un halo à son apparition. */
.guide-flottant {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 2rem 1rem 3.9rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-pilule);
  font: 760 1.2rem var(--titre);
  font-stretch: 95%;
  letter-spacing: 0.005em;
  color: var(--nuit);
  text-decoration: none;
  background: var(--livre-vert);
  box-shadow:
    0 22px 50px -16px rgba(8, 23, 38, 0.85),
    0 0 0 6px rgba(110, 170, 135, 0.25);
  transform: translateX(-50%);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), opacity 0.3s ease, background 0.2s ease;
}

/* La couverture complète, plus grande que le bouton : elle déborde à gauche et
   en haut, légèrement inclinée. */
.guide-flottant::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  bottom: -0.35rem;
  width: 4.6rem;
  height: 7.1rem;
  border-radius: 2px 5px 5px 2px;
  background: var(--livre-papier) url("../img/guide/couverture-premiere.webp") center / cover no-repeat;
  box-shadow:
    -3px 0 0 #d9d0bf inset,
    0 12px 22px -6px rgba(8, 23, 38, 0.6),
    0 2px 4px rgba(8, 23, 38, 0.25);
  transform: rotate(-8deg);
  transform-origin: bottom center;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}

.guide-flottant:hover::before { transform: rotate(-3deg) translateY(-4px); }

.guide-flottant::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask: var(--svg-chevron) center / contain no-repeat;
  mask: var(--svg-chevron) center / contain no-repeat;
  transition: transform 0.18s ease;
}

.guide-flottant:hover { background: #82BB99; }
.guide-flottant:hover::after { transform: translateX(0.2rem); }

.guide-flottant:not(.est-cache) { animation: guide-flottant-halo 2.4s ease-out 0.4s 2; }

@keyframes guide-flottant-halo {
  0% { box-shadow: 0 22px 50px -16px rgba(8, 23, 38, 0.85), 0 0 0 0 rgba(110, 170, 135, 0.6); }
  70% { box-shadow: 0 22px 50px -16px rgba(8, 23, 38, 0.85), 0 0 0 18px rgba(110, 170, 135, 0); }
  100% { box-shadow: 0 22px 50px -16px rgba(8, 23, 38, 0.85), 0 0 0 6px rgba(110, 170, 135, 0.25); }
}

.guide-flottant.est-cache {
  opacity: 0;
  transform: translate(-50%, 2rem);
  pointer-events: none;
}

.guide-flottant[hidden] { display: none; }

/* ---------- Petits écrans ---------- */

@media (max-width: 62rem) {
  .guide-hero-grille,
  .guide-auteurs-grille { grid-template-columns: 1fr; }

  .guide-livre { width: min(56%, 15rem); grid-row: 1; padding-block: 0 2.2rem; }
  .guide-colonnes { columns: 1; }

  /* Trois colonnes, puis deux ; la première partie en grand, sur toute la largeur. */
  .guide-ouvertures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .guide-ouverture-grande {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .guide-ouverture-grande img { object-position: center 78%; }

  .guide-partie-corps { grid-template-columns: 1fr; min-height: 0; }
  .guide-partie-corps img { height: 14rem; }
}

@media (max-width: 40rem) {
  .guide-ligne,
  .guide-ligne-fonction,
  .guide-choix,
  .guide-portraits { grid-template-columns: 1fr; }

  .guide-ligne-cp { grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr); }
  .guide-progression li + li::before { display: none; }

  .guide-ouvertures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-ouverture-titre { inset: 0.45rem 0.45rem auto; padding: 0.35rem 0.5rem; font-size: 0.82rem; }
  .guide-ouverture-grande .guide-ouverture-titre { font-size: 1.05rem; }
  .guide-ouverture-voir { left: 0.45rem; right: 0.45rem; bottom: 0.45rem; padding: 0.4rem 0.5rem; font-size: 0.75rem; }

  /* Le bouton flottant ne cache pas la fin de la page. */
  .guide-js .guide-page .site-footer { padding-bottom: 7rem; }

  .guide-modale {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .guide-flottant {
    left: 1rem;
    right: 1rem;
    justify-content: center;
    padding: 0.9rem 1.5rem 0.9rem 4.6rem;
    font-size: 1.1rem;
    transform: none;
  }

  .guide-flottant::before { left: 0.5rem; width: 3.9rem; height: 6rem; }

  .guide-flottant.est-cache { transform: translateY(2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .guide-ouverture button,
  .guide-ouverture img,
  .guide-flottant { transition: none; animation: none; }
  .guide-verdict > div,
  .guide-merci,
  .guide-modale[open] { animation: none; }
}

/* ---------- Une étape tient dans la fenêtre, sans défilement ----------
   Sur un écran d'ordinateur, chaque étape de l'inscription doit se lire
   d'un seul regard : en-tête resserré, titres d'étape réservés aux lecteurs
   d'écran (la progression les affiche déjà), champs plus bas. */

.guide-panneau-tete {
  padding: 1.25rem clamp(1.4rem, 4vw, 2.4rem) 1rem;
}

.guide-panneau-tete .guide-surtitre {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}

.guide-panneau-tete h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.guide-panneau-chapo {
  margin: 0;
  font-size: 0.95rem;
}

.guide-progression { margin-top: 0.9rem; }

.guide-fermer {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0.7rem 0.7rem -2.9rem 0;
  font-size: 1.4rem;
}

.guide-form { padding: 1.1rem clamp(1.4rem, 4vw, 2.4rem) 1.2rem; }
.guide-pas { gap: 0.85rem; }
.guide-etape { gap: 0.8rem; }
.guide-ligne { gap: 0.8rem; }
.guide-ligne-voie { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }

/* Les titres d'étape et « Adresse d'envoi » : lus, pas affichés. */
.guide-js .guide-etape > legend,
.guide-js .guide-adresse > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.guide-form label,
.guide-label {
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.guide-form input[type="text"],
.guide-form input[type="email"],
.guide-form select {
  height: 2.8rem;
  padding-block: 0.5rem;
}

.guide-form textarea { padding-block: 0.55rem; }
.guide-aide { margin-top: 0.3rem; font-size: 0.8rem; }
.guide-choix span { padding-block: 0.55rem; }
.guide-choix span::before { top: 0.85rem; }

.guide-verdict > div { padding: 0.8rem 1rem; }
.guide-verdict p { font-size: 0.92rem; margin-bottom: 0.2rem; }
.guide-verdict-titre { font-size: 1.12rem !important; }

.guide-adresse { gap: 0.8rem; }
.guide-case { font-size: 0.9rem; line-height: 1.4; }
.guide-navigation { padding-top: 0.9rem; }
.guide-bouton { padding: 0.75rem 1.5rem; }
/* Vide, la zone de statut reste dans la page (annonces) sans prendre de place. */
.guide-statut { margin-top: -0.95rem; min-height: 0; }
.guide-statut:not(:empty) { margin-top: 0; }

@media (max-width: 40rem) {
  .guide-ligne-voie { grid-template-columns: 1fr; }
}

/* Passé la première étape, l'en-tête ne garde que le titre et la progression. */
.guide-panneau.est-avance .guide-panneau-tete .guide-surtitre,
.guide-panneau.est-avance .guide-panneau-chapo { display: none; }
.guide-panneau.est-avance .guide-progression { margin-top: 0.6rem; }

.guide-modale { max-height: calc(100dvh - 1rem); }

/* La préférence pour le numérique, dans l'encadré du papier. */
.guide-case-discrete {
  margin-top: 0.45rem !important;
  font-size: 0.86rem;
}

.guide-case-discrete input { width: 1rem; height: 1rem; }

/* Sans JavaScript, le serveur renvoie vers #merci-inscription : le remerciement
   s'affiche par l'ancre, en tête du panneau. */
.guide-merci-sans-js { display: none; }
.guide-merci-sans-js:target { display: block; }
.guide-js .guide-merci-sans-js { display: none !important; }

/* Le remerciement : un bouton vers Spine et un retour à la page ; la croix
   disparaît, le bouton « Revenir à la page » la remplace. */
.guide-merci-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-2) var(--esp-3);
  margin-top: var(--esp-3);
}

.guide-panneau.est-merci .guide-fermer { display: none; }

/* ============================================================
   La page des cas, /usecases/ — le complément en ligne du livre
   (chapitre « D'autres cas à découvrir en ligne »). Page d'attente :
   l'ouverture sur fond nuit, les six secteurs du site en attendant
   les cas, les trois gestes du premier essai, puis le livre.
   ============================================================ */

.cas-hero-grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: var(--esp-4);
  align-items: center;
}

.cas-hero-image {
  position: relative;
  justify-self: center;
  width: min(100%, 19rem);
  margin: 0;
}

.cas-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

/* L'étiquette « en préparation », posée sur l'illustration. */
.cas-attente {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  font: 600 0.78rem/1 var(--edition);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nuit);
  background: var(--livre-papier);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

.cas-attente-point {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--livre-terracotta);
  animation: cas-pulsation 2.4s ease-in-out infinite;
}

@keyframes cas-pulsation {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 120, 68, 0.55); }
  50% { box-shadow: 0 0 0 0.45rem rgba(220, 120, 68, 0); }
}

.cas-resume {
  max-width: 46rem;
  margin-bottom: var(--esp-4);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.6;
  color: var(--encre-douce);
}

/* ---------- Les secteurs ---------- */

.cas-secteurs {
  padding-block: var(--esp-bande);
  background: var(--livre-papier);
  scroll-margin-top: 4.5rem;
}

.cas-secteurs .carte { background: var(--papier-clair); }
.cas-secteurs .carte h3 { font-weight: 700; }

/* ---------- Le premier essai, sur fond nuit ---------- */

.cas-essai {
  padding-block: var(--esp-bande);
  color: var(--papier);
  background: linear-gradient(180deg, var(--nuit-2) 0%, var(--nuit) 100%);
  scroll-margin-top: 4.5rem;
}

.cas-essai h2 { color: var(--papier); margin-bottom: var(--esp-4); }

.cas-gestes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--esp-3);
  margin: 0 0 var(--esp-4);
  padding: 0;
  list-style: none;
}

.cas-gestes li {
  padding: var(--esp-3);
  border: 1px solid rgba(169, 199, 221, 0.22);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}

.cas-geste-numero {
  display: block;
  margin-bottom: var(--esp-2);
  font: 720 3.2rem/1 var(--titre);
  font-stretch: 90%;
  color: var(--livre-vert);
}

.cas-gestes h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--papier);
}

.cas-gestes p {
  margin: 0;
  line-height: 1.55;
  color: #BDD0DF;
}

.cas-essai-suite {
  margin: 0;
  font-size: 1.05rem;
  color: #BDD0DF;
}

/* ---------- Le livre ---------- */

.cas-livre {
  padding-block: var(--esp-bande);
  background: var(--papier);
}

.cas-livre-grille {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--esp-4);
  align-items: center;
}

.cas-livre-couverture {
  width: clamp(8rem, 16vw, 12rem);
  height: auto;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 18px 40px rgba(8, 23, 38, 0.28);
  transform: rotate(-3deg);
}

.cas-livre .cas-resume { margin-bottom: var(--esp-3); }

.cas-livre .btn-primaire {
  background: var(--livre-vert-encre);
  border-color: var(--livre-vert-encre);
}

.cas-lien-sombre {
  font-weight: 650;
  color: var(--encre);
  text-decoration-color: var(--livre-vert);
  text-decoration-thickness: 2px;
}

@media (max-width: 62rem) {
  .cas-hero-grille { grid-template-columns: 1fr; }
  .cas-hero-image { width: min(60%, 14rem); grid-row: 1; margin-bottom: var(--esp-4); }
  .cas-gestes { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .cas-livre-grille { grid-template-columns: 1fr; }
  .cas-livre-couverture { width: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cas-attente-point { animation: none; }
}
