/* ==========================================================================
   ESTELLE FORMATION IA, version 3 : « Le cahier »
   --------------------------------------------------------------------------
   Encre bleue, surligneur jaune, papier. Le site ressemble à ce qu'Estelle
   laisse sur la table après une séance : des mots soulignés, des notes dans
   la marge, et ce qui compte passé au surligneur.

   Trois polices, chacune avec un rôle :
   - Bricolage Grotesque : les titres. Franche, chaleureuse, un peu bricolée.
   - Atkinson Hyperlegible Next : le texte. Dessinée par le Braille Institute
     pour les lecteurs qui voient mal. Le public d'Estelle, exactement.
   - Caveat : l'écriture à la main d'Estelle, pour les notes de marge.
   ========================================================================== */

:root {
  --papier: #FBF7EF;
  --papier-2: #F3ECDD;
  --carte: #FFFFFF;
  --encre: #17161C;
  --encre-2: #45434E;
  --trait: #D8CFBD;
  --bleu: #2136C4;
  --bleu-2: #3A4FE0;
  --nuit: #10196B;
  --fluo: #FFE45E;
  --fluo-2: #FFF2A8;
  --corail: #FF8B6B;
  --vert: #15724A;
  --rouge: #B42318;
  --correcteur: #D7372B; /* le stylo rouge d'Estelle : uniquement la correction de l'ouverture */

  --titre: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --texte: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, system-ui, sans-serif;
  --main: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --rayon: 18px;
  --rayon-l: 28px;
  --ombre: 5px 5px 0 var(--encre);
  --ombre-l: 8px 8px 0 var(--encre);
  --bord: 2px solid var(--encre);

  --courbe: cubic-bezier(.2, .9, .25, 1);
  --large: 1200px;
  --gouttiere: clamp(18px, 4vw, 40px);

  color-scheme: light;
  font-size: 100%;
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.1875rem; /* 19 px : jamais moins pour le texte courant */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--bleu); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--nuit); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 6px;
}

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.aller-au-contenu {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
}
.aller-au-contenu:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Titres
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.12; letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }

.surtitre {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--texte); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; color: var(--encre);
  background: var(--carte); border: var(--bord); border-radius: 999px;
  padding: .35em 1em .35em .75em; margin-bottom: 1.4rem;
}
.surtitre::before {
  content: ""; width: .7em; height: .7em; border-radius: 50%;
  background: var(--fluo); border: 2px solid var(--encre);
}

.chapeau { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--encre-2); max-width: 38em; }

/* --------------------------------------------------------------------------
   Le surligneur : l'élément signature du site.
   Le trait se pose de gauche à droite quand le mot entre à l'écran.
   -------------------------------------------------------------------------- */

.fluo {
  color: inherit;
  background-image: linear-gradient(100deg, transparent 0 1%, var(--fluo) 3% 96%, transparent 99%);
  background-repeat: no-repeat;
  background-size: 100% 78%;
  background-position: 0 72%;
  padding: 0 .12em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: .2em .5em .3em .45em;
}
.js .fluo[data-anime] { background-size: 0% 78%; transition: background-size 900ms var(--courbe); }
.js .fluo[data-anime].vu { background-size: 100% 78%; }

/* Le souligné à la main, tracé en SVG sous le mot. */
.souligne { position: relative; white-space: nowrap; display: inline-block; }
.souligne svg {
  position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .4em;
  overflow: visible; pointer-events: none;
}
.souligne path { fill: none; stroke: var(--bleu); stroke-width: 5; stroke-linecap: round; }
.js .souligne[data-anime] path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1100ms var(--courbe) 250ms; }
.js .souligne[data-anime].vu path { stroke-dashoffset: 0; }

/* L'écriture d'Estelle dans la marge. */
.main {
  font-family: var(--main); font-weight: 600; color: var(--bleu);
  font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.05;
  letter-spacing: 0; transform: rotate(-3deg); display: inline-block;
}
.note {
  position: absolute; display: flex; align-items: flex-end; gap: 6px;
  pointer-events: none;
}
.note svg path { fill: none; stroke: var(--bleu); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.etroit { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow-x: clip; } /* une animation qui démarre hors cadre ne doit jamais élargir la page */
.section-serree { padding: clamp(48px, 6vw, 80px) 0; }
.fond-2 { background: var(--papier-2); }
.fond-nuit { background: var(--nuit); color: #fff; }
.fond-nuit .chapeau, .fond-nuit p { color: #D9DDF8; }
.fond-nuit a:not(.bouton) { color: var(--fluo); }
.fond-nuit .fluo { color: var(--encre); }
.fond-fluo { background: var(--fluo); }

.entete-section { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.entete-section.centre { margin-left: auto; margin-right: auto; text-align: center; }
.entete-section.centre .chapeau { margin-left: auto; margin-right: auto; }

.grille { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Boutons. Grands, épais, impossibles à rater.
   -------------------------------------------------------------------------- */

.bouton {
  --fond: var(--bleu); --texte-b: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 60px; padding: .7em 1.5em;
  background: var(--fond); color: var(--texte-b);
  border: var(--bord); border-radius: 999px;
  box-shadow: var(--ombre);
  font-family: var(--texte); font-weight: 700; font-size: 1.125rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 140ms var(--courbe), box-shadow 140ms var(--courbe), background-color 140ms;
}
.bouton:hover { color: var(--texte-b); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--encre); }
.bouton:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--encre); }
.bouton svg { width: 1.2em; height: 1.2em; flex: none; }
.bouton-fluo { --fond: var(--fluo); --texte-b: var(--encre); }
.bouton-blanc { --fond: var(--carte); --texte-b: var(--encre); }
.bouton-petit { min-height: 48px; font-size: 1rem; padding: .5em 1.1em; box-shadow: 3px 3px 0 var(--encre); }
.bouton-large { width: 100%; }
.bouton[disabled] { opacity: .6; cursor: progress; transform: none; }
.fond-nuit .bouton { border-color: var(--encre); }

.boutons { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700;
  color: var(--encre); text-decoration: underline; text-decoration-color: var(--fluo);
  text-decoration-thickness: .35em; text-underline-offset: -.1em; text-decoration-skip-ink: none;
}
.lien-fleche:hover { color: var(--bleu); }

/* --------------------------------------------------------------------------
   Bandeau et en-tête
   -------------------------------------------------------------------------- */

.bandeau {
  background: var(--encre); color: #fff; font-size: .95rem;
  padding: 8px 0; text-align: center;
}
.bandeau a { color: var(--fluo); font-weight: 700; text-decoration: none; }
.bandeau a:hover { color: #fff; }
.bandeau .conteneur { display: flex; justify-content: center; gap: 6px 10px; flex-wrap: wrap; }
.bandeau-court { display: none; }
@media (max-width: 640px) { .bandeau-long { display: none; } .bandeau-court { display: inline; } }

.entete {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color 200ms;
}
.entete.colle { border-bottom-color: var(--encre); }
.entete .conteneur { display: flex; align-items: center; gap: 20px; min-height: 84px; }

.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--encre);
  flex: none;
}
.logo-ligne { display: inline-flex; align-items: center; gap: 6px; }
.logo-nom { font-family: var(--titre); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.04em; line-height: 1; }
.logo-ia {
  font-family: var(--titre); font-weight: 800; font-size: 1rem; line-height: 1;
  background: var(--fluo); border: 2px solid var(--encre); border-radius: 8px;
  padding: 4px 7px 3px; transform: rotate(-6deg); display: inline-block;
}
.logo-sous { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--encre-2); margin-top: 3px; }
.logo:hover { color: var(--encre); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--papier-2); }
.nav a[aria-current="page"] { background: var(--fluo); }

.outils-entete { display: flex; align-items: center; gap: 10px; }
.bouton-texte {
  min-height: 48px; min-width: 48px; padding: 0 12px;
  background: var(--carte); border: var(--bord); border-radius: 12px;
  font-family: var(--titre); font-weight: 800; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.bouton-texte span:first-child { font-size: .95rem; }
.bouton-texte span:last-child { font-size: 1.35rem; }
.bouton-texte:hover { background: var(--fluo-2); }

.bouton-menu { display: none; }

@media (max-width: 1080px) {
  .nav a { padding: 10px 10px; font-size: 1rem; }
}
@media (max-width: 960px) {
  .nav, .entete .tel-entete { display: none; }
  .outils-entete { margin-left: auto; }
  .bouton-menu {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
    background: var(--encre); color: #fff; border: var(--bord); border-radius: 12px;
    font-weight: 700; cursor: pointer;
  }
  .bouton-menu svg { width: 22px; height: 22px; }
}

/* Le menu en plein écran sur téléphone */
.tiroir {
  position: fixed; inset: 0; z-index: 60; background: var(--papier);
  display: flex; flex-direction: column; padding: 20px var(--gouttiere) 32px;
  overflow-y: auto;
}
.tiroir[hidden] { display: none; }
.tiroir-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tiroir nav { display: flex; flex-direction: column; gap: 4px; }
.tiroir nav a {
  font-family: var(--titre); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em;
  color: var(--encre); text-decoration: none; padding: 8px 0; border-bottom: 2px solid var(--trait);
}
.tiroir nav a[aria-current="page"] .fluo-menu { background: var(--fluo); }
.tiroir .boutons { margin-top: 28px; flex-direction: column; align-items: stretch; }
.bouton-fermer {
  min-height: 48px; padding: 0 16px; border: var(--bord); border-radius: 12px; background: var(--carte);
  font-weight: 700; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Accueil : l'ouverture
   -------------------------------------------------------------------------- */

.ouverture { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); position: relative; overflow: hidden; }
.ouverture .conteneur {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.ouverture h1 { margin-bottom: .35em; }
.h1-petit {
  display: block; font-family: var(--texte); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  letter-spacing: .01em; line-height: 1.3; margin-bottom: 1.1rem; color: var(--encre-2);
}
.ouverture .chapeau { margin-bottom: 2rem; }
.rassurances { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 10px; }
.rassurances li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.coche {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fluo);
  border: 2px solid var(--encre); display: grid; place-items: center; margin-top: 1px;
}
.coche svg { width: 15px; height: 15px; }
.coche path { fill: none; stroke: var(--encre); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .ouverture .conteneur { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   La démonstration : une tablette où l'on essaie l'IA pour de vrai
   -------------------------------------------------------------------------- */

.demo-cadre { position: relative; }
.tablette {
  position: relative;
  background: var(--encre); border-radius: 34px; padding: 14px;
  box-shadow: var(--ombre-l);
  transform: rotate(1.2deg);
}
.tablette-ecran {
  background: #fff; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; height: clamp(440px, 52vw, 540px);
}
.tablette-barre {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid #E8E3D8; font-weight: 700; font-size: .98rem;
}
.tablette-barre .pastille-ia {
  width: 30px; height: 30px; border-radius: 9px; background: var(--bleu); color: #fff;
  display: grid; place-items: center; font-family: var(--titre); font-size: .8rem;
}
.tablette-barre small { display: block; font-weight: 400; color: var(--encre-2); font-size: .82rem; }
.fil {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth; overscroll-behavior: contain;
}
.bulle {
  max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 1.02rem; line-height: 1.5;
  animation: bulle-entre 380ms var(--courbe) both;
}
.bulle p { margin: 0 0 .55em; }
.bulle p:last-child { margin-bottom: 0; }
.bulle ul { margin: .2em 0 .6em; padding-left: 1.2em; }
.bulle-moi { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 6px; }
.bulle-ia { align-self: flex-start; background: #F1EEE6; border-bottom-left-radius: 6px; }
.bulle-photo {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: .9rem;
}
.bulle-photo svg { width: 34px; height: 34px; flex: none; }
.points { display: inline-flex; gap: 5px; padding: 6px 2px; }
.points i { width: 8px; height: 8px; border-radius: 50%; background: var(--encre-2); animation: point 1s infinite ease-in-out; }
.points i:nth-child(2) { animation-delay: .15s; }
.points i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes bulle-entre { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.questions-demo {
  border-top: 1px solid #E8E3D8; padding: 12px; display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; background: #FCFBF8;
}
.questions-demo::-webkit-scrollbar { display: none; }
.question-demo {
  flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--encre); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: background-color 140ms;
}
.question-demo:hover { background: var(--fluo-2); }
.question-demo[aria-pressed="true"] { background: var(--fluo); }

.demo-note { top: -58px; right: 4%; }
.demo-note svg { width: 60px; height: 52px; margin-bottom: -22px; }
.demo-legende { font-size: .92rem; color: var(--encre-2); margin-top: 26px; text-align: center; }
@media (max-width: 960px) {
  .demo-cadre { margin-top: 64px; }
  .tablette { transform: none; }
}
@media (max-width: 520px) {
  .tablette { border-radius: 26px; padding: 10px; }
  .tablette-ecran { border-radius: 18px; height: 470px; }
  .demo-note { right: 0; top: -54px; }
}

/* --------------------------------------------------------------------------
   Le ruban qui défile
   -------------------------------------------------------------------------- */

.ruban-cadre { overflow: hidden; padding: calc(1.2vw + 12px) 0; margin: calc(-1.2vw - 12px) 0; position: relative; z-index: 2; }
.ruban {
  background: var(--fluo); border-top: var(--bord); border-bottom: var(--bord);
  overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: 0 -40px;
}
.ruban-piste { display: flex; width: max-content; animation: ruban 40s linear infinite; }
.ruban-piste ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ruban li {
  font-family: var(--titre); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center;
}
.ruban li::after { content: ""; width: 14px; height: 14px; margin: 0 26px; background: var(--bleu); border-radius: 50%; }
@keyframes ruban { to { transform: translateX(-50%); } }
.ruban:hover .ruban-piste { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.carte {
  background: var(--carte); border: var(--bord); border-radius: var(--rayon-l);
  box-shadow: var(--ombre); padding: clamp(24px, 3vw, 34px); position: relative;
}
.carte h3 { margin-bottom: .45em; }
.carte p:last-child { margin-bottom: 0; }

.usage .icone {
  width: 64px; height: 64px; border-radius: 18px; border: var(--bord);
  display: grid; place-items: center; margin-bottom: 20px; background: var(--fluo);
}
.usage:nth-child(3n+2) .icone { background: #DDE2FF; }
.usage:nth-child(3n+3) .icone { background: #FFD9CC; }
.usage .icone svg { width: 34px; height: 34px; }
.usage .icone path, .usage .icone circle, .usage .icone rect, .usage .icone line, .usage .icone polyline {
  fill: none; stroke: var(--encre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.usage .exemple {
  margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--trait);
  font-family: var(--main); font-size: 1.45rem; line-height: 1.15; color: var(--bleu); font-weight: 600;
}

/* --------------------------------------------------------------------------
   Les trois étapes
   -------------------------------------------------------------------------- */

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.etape { position: relative; padding-top: 16px; }
.etape-num {
  font-family: var(--titre); font-weight: 800; font-size: 5.5rem; line-height: .8;
  color: var(--bleu); display: block; margin-bottom: 16px; letter-spacing: -0.05em;
}
.fond-nuit .etape-num { color: var(--fluo); }
.etape h3 { margin-bottom: .4em; }
.etape p { color: var(--encre-2); }
.fond-nuit .etape p { color: #D9DDF8; }

/* --------------------------------------------------------------------------
   La lettre d'Estelle
   -------------------------------------------------------------------------- */

.estelle { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .estelle { grid-template-columns: minmax(0, 1fr); } }

.polaroid {
  background: #fff; border: var(--bord); padding: 14px 14px 18px; box-shadow: var(--ombre-l);
  transform: rotate(-2.5deg); max-width: 460px; margin: 0 auto; position: relative;
}
.polaroid-image { aspect-ratio: 4 / 4.2; background: var(--papier-2); border: 2px solid var(--encre); overflow: hidden; }
.polaroid-image svg, .polaroid-image img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font-family: var(--main); font-weight: 600; font-size: 1.7rem; text-align: center; margin-top: 10px; color: var(--encre); }
.scotch {
  position: absolute; width: 120px; height: 34px; background: rgba(255, 228, 94, .75);
  top: -16px; left: 50%; transform: translateX(-50%) rotate(3deg);
  border-left: 2px dashed rgba(0,0,0,.08); border-right: 2px dashed rgba(0,0,0,.08);
}

.lettre {
  background: #fff; border: var(--bord); border-radius: 6px; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--ombre-l); position: relative;
  background-image: repeating-linear-gradient(transparent 0 37px, #E4E9FB 37px 39px);
  background-position: 0 22px;
}
.lettre::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 32px); width: 2px; background: #F4B9AE;
}
.lettre > * { position: relative; padding-left: clamp(14px, 2vw, 22px); }
.lettre p { font-size: 1.15rem; line-height: 39px; margin-bottom: 0; }
.lettre p + p { margin-top: 39px; }
.lettre .signature { font-family: var(--main); font-size: 2.6rem; color: var(--bleu); line-height: 1; margin-top: 30px; font-weight: 600; }
.lettre .main { font-size: 1.9rem; }

.promesses { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.promesses li { display: flex; gap: 12px; align-items: flex-start; }
.promesses strong { display: block; }
.promesses span { color: var(--encre-2); font-size: 1.02rem; }
@media (max-width: 600px) { .promesses { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Les formules et les prix
   -------------------------------------------------------------------------- */

.formule { display: flex; flex-direction: column; }
.formule .etiquette {
  position: absolute; top: -18px; right: 22px; background: var(--fluo); border: var(--bord);
  border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .95rem; transform: rotate(3deg);
}
.formule-recommandee { background: var(--nuit); color: #fff; }
.formule-recommandee p, .formule-recommandee li { color: #E3E6FB; }
.formule-recommandee .prix-ligne { border-color: rgba(255,255,255,.2); }
.formule-recommandee .prix-ligne span:first-child { color: #D9DDF8; }
.formule .duree { font-weight: 700; color: var(--bleu); margin-bottom: .4em; }
.formule-recommandee .duree { color: var(--fluo); }
.formule-prix { font-family: var(--titre); font-weight: 800; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; margin: 10px 0 4px; }
.formule-prix small { font-family: var(--texte); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-left: 6px; }
.formule .economie { font-weight: 700; display: inline-block; background: var(--fluo); color: var(--encre); padding: 2px 10px; border-radius: 6px; margin-bottom: 18px; }
.prix-lignes { list-style: none; padding: 0; margin: 12px 0 26px; }
.prix-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 2px dotted var(--trait); }
.prix-ligne span:last-child { font-weight: 700; white-space: nowrap; }
.formule .bouton { margin-top: auto; }
.formule ul.inclus { list-style: none; padding: 0; margin: 0 0 8px; }
.formule ul.inclus li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.formule ul.inclus li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 9px;
  border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg);
  color: var(--vert);
}
.formule-recommandee ul.inclus li::before { color: var(--fluo); }

/* Le tableau complet de la page Tarifs */
.tableau-prix-cadre { overflow-x: auto; border: var(--bord); border-radius: var(--rayon-l); box-shadow: var(--ombre); background: #fff; }
.tableau-prix { width: 100%; border-collapse: collapse; min-width: 620px; }
.tableau-prix th, .tableau-prix td { padding: 18px 22px; text-align: left; border-bottom: 2px solid var(--papier-2); vertical-align: top; }
.tableau-prix thead th { font-family: var(--titre); font-size: 1.35rem; background: var(--papier-2); letter-spacing: -0.02em; }
.tableau-prix thead th small { display: block; font-family: var(--texte); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--encre-2); }
.tableau-prix tbody th { font-weight: 700; }
.tableau-prix tbody th small { display: block; font-weight: 400; color: var(--encre-2); font-size: .95rem; }
.tableau-prix td { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; white-space: nowrap; }
.tableau-prix td small { font-family: var(--texte); font-weight: 400; font-size: .9rem; letter-spacing: 0; color: var(--encre-2); display: block; }
.tableau-prix tr:last-child th, .tableau-prix tr:last-child td { border-bottom: 0; }
.tableau-prix .col-reco { background: #FFFBE0; }

/* --------------------------------------------------------------------------
   Le cadeau
   -------------------------------------------------------------------------- */

.cadeau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .cadeau { grid-template-columns: minmax(0, 1fr); } }
.bon {
  background: var(--corail); border: var(--bord); border-radius: 22px; box-shadow: var(--ombre-l);
  padding: clamp(26px, 4vw, 40px); transform: rotate(-3deg); position: relative; max-width: 520px;
  margin: 0 auto;
}
.bon::after {
  content: ""; position: absolute; top: 18px; bottom: 18px; right: 30%; border-left: 3px dashed rgba(23,22,28,.45);
}
.bon-titre { font-family: var(--titre); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; letter-spacing: -0.03em; max-width: 64%; }
.bon-titre em { font-style: normal; background: var(--fluo); padding: 0 .1em; }
.bon-pour { font-family: var(--main); font-size: 1.9rem; margin-top: 18px; max-width: 64%; line-height: 1.1; }
.bon-coin { position: absolute; right: 7%; top: 50%; transform: translateY(-50%) rotate(90deg); font-family: var(--titre); font-weight: 800; letter-spacing: .15em; font-size: 1rem; white-space: nowrap; }
.noeud { position: absolute; top: -26px; left: 28px; width: 70px; height: 52px; }

/* --------------------------------------------------------------------------
   « Est-ce qu'Estelle vient chez moi ? »
   -------------------------------------------------------------------------- */

.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .zone { grid-template-columns: minmax(0, 1fr); } }
.verif { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.verif input { flex: 1 1 240px; }
.verif-reponse { margin-top: 18px; font-size: 1.2rem; font-weight: 700; min-height: 2em; }
.verif-reponse.oui { color: var(--vert); }
.verif-reponse.non { color: var(--encre); }
.communes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.communes li {
  border: 2px solid var(--encre); border-radius: 999px; padding: 4px 12px; font-size: .95rem; font-weight: 700; background: #fff;
  transition: background-color 200ms;
}
.communes li.trouvee { background: var(--fluo); }
.communes li.phare { background: var(--encre); color: #fff; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

label, .libelle { display: block; font-weight: 700; margin-bottom: 8px; }
.aide { display: block; font-weight: 400; color: var(--encre-2); font-size: .98rem; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 58px; padding: 12px 16px; font-size: 1.125rem;
  background: #fff; border: 2px solid var(--encre); border-radius: 14px;
  transition: box-shadow 140ms;
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--fluo), 0 0 0 6px var(--encre); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' fill='none' stroke='%2317161C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.champ { margin-bottom: 20px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.case input { width: 26px; height: 26px; flex: none; margin: 2px 0 0; accent-color: var(--bleu); }
.message { margin-top: 14px; font-weight: 700; }
.message.ok { color: var(--vert); }
.message.erreur { color: var(--rouge); }

/* --------------------------------------------------------------------------
   Le panier
   -------------------------------------------------------------------------- */

.panier { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .panier { grid-template-columns: minmax(0, 1fr); } }

.etape-panier { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.etape-panier legend {
  font-family: var(--titre); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 0;
}
.etape-panier legend .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--fluo); border: var(--bord);
  display: grid; place-items: center; font-size: 1.2rem; flex: none;
}
.options { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-corps {
  display: block; height: 100%; padding: 18px 20px 18px 58px; background: #fff;
  border: 2px solid var(--encre); border-radius: 18px; cursor: pointer; position: relative;
  transition: box-shadow 140ms, background-color 140ms, transform 140ms;
}
.option-corps::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--encre); background: #fff;
}
.option-corps strong { display: block; font-size: 1.15rem; }
.option-corps .aide { margin-top: 4px; }
.option-corps .option-prix { display: inline-block; margin-top: 8px; font-weight: 700; background: var(--papier-2); border-radius: 6px; padding: 1px 8px; }
.option input:checked + .option-corps { background: var(--fluo-2); box-shadow: var(--ombre); transform: translate(-2px, -2px); }
.option input:checked + .option-corps::before { background: var(--bleu); box-shadow: inset 0 0 0 4px #fff; }
.option input:focus-visible + .option-corps { outline: 3px solid var(--bleu); outline-offset: 3px; }

.compteur { display: inline-flex; align-items: center; border: var(--bord); border-radius: 16px; overflow: hidden; background: #fff; }
.compteur button { width: 60px; height: 58px; border: 0; background: var(--papier-2); font-size: 1.8rem; font-weight: 700; cursor: pointer; }
.compteur button:hover { background: var(--fluo-2); }
.compteur input { width: 80px; min-height: 58px; border: 0; border-left: 2px solid var(--encre); border-right: 2px solid var(--encre); border-radius: 0; text-align: center; font-weight: 700; font-size: 1.4rem; -moz-appearance: textfield; }
.compteur input::-webkit-outer-spin-button, .compteur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.compteur input:focus { box-shadow: none; background: var(--fluo-2); }

.recap { position: sticky; top: 110px; }
.recap h2 { font-size: 1.9rem; }
.recap dl { margin: 0 0 18px; }
.recap-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dotted var(--trait); }
.recap-ligne dt { color: var(--encre-2); }
.recap-ligne dd { margin: 0; font-weight: 700; text-align: right; }
.recap-ligne.remise dd { color: var(--vert); }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; }
.recap-total span:first-child { font-weight: 700; font-size: 1.2rem; }
.recap-total strong { font-family: var(--titre); font-size: 3rem; letter-spacing: -0.04em; line-height: 1; }
.promo { display: flex; gap: 8px; }
.promo input { min-height: 50px; text-transform: uppercase; }
.promo .bouton { min-height: 50px; box-shadow: 3px 3px 0 var(--encre); }
.avertissement {
  background: var(--fluo-2); border: 2px solid var(--encre); border-radius: 14px; padding: 14px 16px; font-size: 1rem; margin: 16px 0;
}
.securite { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--encre-2); margin-top: 14px; }
.securite svg { width: 22px; height: 22px; flex: none; }
.securite path, .securite rect { fill: none; stroke: currentColor; stroke-width: 2; }

/* Fenêtres (paiement, confirmation) */
dialog.fenetre {
  border: var(--bord); border-radius: var(--rayon-l); box-shadow: var(--ombre-l); padding: 0;
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; color: var(--encre);
}
dialog.fenetre::backdrop { background: rgba(16, 25, 107, .55); backdrop-filter: blur(3px); }
.fenetre-haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 2px solid var(--papier-2); }
.fenetre-haut h2 { font-size: 1.6rem; margin: 0; }
.fenetre-corps { padding: 24px; }
.fenetre-corps dl { margin: 18px 0; }
#carte-sumup { min-height: 280px; }
.tampon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--fluo); border: var(--bord); display: grid; place-items: center; margin-bottom: 16px;
}
.tampon svg { width: 40px; height: 40px; }
.tampon path { fill: none; stroke: var(--encre); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Questions fréquentes
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: var(--bord); border-radius: 20px; overflow: hidden; transition: box-shadow 140ms; }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative;
  font-family: var(--titre); font-weight: 800; font-size: clamp(1.2rem, 1.8vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 2px solid var(--encre); background: var(--fluo)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%2317161C' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 200ms var(--courbe);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--papier); }
.faq .reponse { padding: 0 24px 22px; color: var(--encre-2); }
.faq .reponse p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   L'appel final
   -------------------------------------------------------------------------- */

.appel { text-align: center; overflow: hidden; }
.appel h2 { color: #fff; max-width: 14em; margin-left: auto; margin-right: auto; }
.numero-geant {
  display: inline-block; font-family: var(--titre); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.5rem); letter-spacing: -0.04em; line-height: 1;
  color: var(--encre) !important; background: var(--fluo); text-decoration: none;
  padding: .12em .35em .16em; border-radius: 22px; border: var(--bord); box-shadow: 8px 8px 0 #000;
  margin: 18px 0 10px; transform: rotate(-1.5deg); transition: transform 200ms var(--courbe);
}
.numero-geant:hover { transform: rotate(0) scale(1.02); }
.rappel-mini { max-width: 640px; margin: 44px auto 0; text-align: left; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.25); border-radius: var(--rayon-l); padding: clamp(22px, 3vw, 32px); }
.rappel-mini h3 { color: #fff; font-size: 1.5rem; }
.rappel-mini .rangee { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.rappel-mini label { color: #fff; }
.rappel-mini .case { color: #D9DDF8; font-size: .98rem; margin-top: 14px; }
.rappel-mini .message.ok { color: var(--fluo); }
.rappel-mini .message.erreur { color: #FFC2B8; }
@media (max-width: 720px) { .rappel-mini .rangee { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pied { background: var(--encre); color: #D8D6DE; padding: 72px 0 36px; font-size: 1.02rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--fluo); text-decoration: underline; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 960px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h2 { font-size: 1.1rem; letter-spacing: 0; font-family: var(--texte); color: #fff; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied .logo { color: #fff; }
.pied .logo-sous { color: #B9B6C2; }
.pied .newsletter { display: flex; gap: 8px; margin-top: 10px; }
.pied .newsletter input { min-height: 52px; border-color: #fff; }
.pied .newsletter .bouton { min-height: 52px; box-shadow: 3px 3px 0 #000; }
.pied-bas { border-top: 1px solid #3A3843; margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: .92rem; color: #A9A6B2; }

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */

.tete-page { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; }
.tete-page h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 13em; }
.fil-ariane { font-size: .95rem; margin-bottom: 18px; color: var(--encre-2); }
.fil-ariane a { color: var(--encre-2); }
.fil-ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil-ariane li + li::before { content: "/"; margin-right: 6px; color: var(--trait); }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--bleu); font-weight: 700; }
.prose .astuce {
  background: var(--fluo-2); border: var(--bord); border-radius: 18px; padding: 20px 24px; margin: 1.6em 0;
}
.prose .astuce > strong:first-child { font-family: var(--main); font-size: 1.7rem; color: var(--bleu); display: block; line-height: 1; margin-bottom: 6px; font-weight: 600; }
.prose .attention { background: #FFE3DB; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 6px solid var(--bleu); background: #fff; border-radius: 0 14px 14px 0; font-size: 1.1rem; }
.prose .exemple-prompt {
  display: block; background: var(--bleu); color: #fff; border-radius: 18px 18px 6px 18px; padding: 14px 18px; margin: 1em 0 1.2em auto; max-width: 90%;
}
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }

.theme { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(32px, 4vw, 48px) 0; border-top: 2px solid var(--encre); }
.theme:last-child { border-bottom: 2px solid var(--encre); }
.theme-num { font-family: var(--titre); font-weight: 800; font-size: 4.5rem; line-height: .85; color: var(--bleu); letter-spacing: -0.05em; }
.theme h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.theme-corps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.theme ul { padding-left: 1.2em; margin: 0; }
.theme li { margin-bottom: .4em; }
.theme .exemple-prompt { display: block; background: var(--bleu); color: #fff; border-radius: 18px 18px 6px 18px; padding: 14px 18px; font-size: 1.05rem; }
.theme .exemple-intro { font-family: var(--main); color: var(--bleu); font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 10px; font-weight: 600; }
@media (max-width: 800px) {
  .theme { grid-template-columns: 1fr; }
  .theme-corps { grid-template-columns: 1fr; }
}

.deroule { list-style: none; padding: 0; margin: 0; border-left: 3px dashed var(--bleu); }
.deroule li { position: relative; padding: 0 0 26px 30px; }
.deroule li::before { content: ""; position: absolute; left: -12px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--fluo); border: 2px solid var(--encre); }
.deroule strong { display: block; font-family: var(--titre); font-size: 1.3rem; letter-spacing: -0.01em; }
.deroule .temps { font-family: var(--main); color: var(--bleu); font-size: 1.5rem; font-weight: 600; }

.article-carte { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); transition: transform 140ms var(--courbe), box-shadow 140ms var(--courbe); }
.article-carte:hover { color: var(--encre); transform: translate(-3px, -3px); box-shadow: var(--ombre-l); }
.theme-etiquette { align-self: flex-start; background: var(--fluo); border: 2px solid var(--encre); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.article-carte h3 { font-size: 1.55rem; }
.article-carte p { color: var(--encre-2); }
.article-carte .lien-fleche { margin-top: auto; }

.meta-article { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--encre-2); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Apparitions au défilement : discrètes, jamais plus de 18 px.
   -------------------------------------------------------------------------- */

.js [data-apparait] { opacity: 0; translate: 0 18px; transition: opacity 700ms var(--courbe), translate 700ms var(--courbe); }
.js [data-apparait].vu { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  /* On coupe seulement ce qui bouge beaucoup ; voir « le mouvement doux ». */
  .ruban-piste { animation: none; }
  .js [data-apparait] { translate: none; }
}

@media print {
  .entete, .bandeau, .pied, .appel, .ruban { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   L'OUVERTURE DE L'ACCUEIL : la phrase corrigée au stylo rouge
   --------------------------------------------------------------------------
   Un cahier d'écolier à grands carreaux (réglure Seyès, celle que tout le
   monde a connue en classe). Une phrase que pensent beaucoup de gens,
   « L'IA, c'est pas pour moi. », et la maîtresse qui barre le « pas » pour
   écrire « aussi » au-dessus. Tout est en CSS : la correction se joue même
   sans JavaScript, et s'affiche directement corrigée si l'on a demandé moins
   d'animations.
   ========================================================================== */

.une { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(90px, 9vw, 120px); min-height: min(860px, calc(100svh - 120px)); display: flex; flex-direction: column; justify-content: center; }
.une-papier {
  --marge: clamp(8px, 7vw, 110px);
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, transparent calc(var(--marge) - 1px), #EC9A90 calc(var(--marge) - 1px) calc(var(--marge) + 1px), transparent calc(var(--marge) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, #B9C8EE 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, #E3E9F8 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 31px, #EBD3E6 31px 32px),
    var(--papier);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.une-grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.une .h1-petit { display: inline-block; background: var(--carte); border: var(--bord); border-radius: 999px; padding: 6px 16px; font-size: .95rem; line-height: 1.3; letter-spacing: 0; margin-bottom: 1.4rem; max-width: 100%; }
.une-titre { margin: 0 0 .35em; font-size: clamp(3.9rem, 11vw, 10.5rem); line-height: .9; letter-spacing: -0.05em; }
.une-phrase { display: block; }
.une-ligne { display: block; overflow: hidden; padding: .02em .08em .08em; margin: 0 -.08em; }
.une-ligne-2 { padding-top: .3em; overflow: visible; }
.une-mot { display: inline-block; }
.barre { position: relative; display: inline-block; margin-left: .16em; }
.rature { position: absolute; left: -8%; top: 18%; width: 116%; height: 70%; overflow: visible; pointer-events: none; }
.rature path { fill: none; stroke: var(--correcteur); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 0; }
.aussi {
  position: absolute; left: 50%; bottom: 80%; translate: -46% 0; rotate: -7deg;
  font-family: var(--main); font-weight: 600; color: var(--correcteur);
  font-size: .78em; letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.aussi::before {
  /* le petit chevron d'insertion, comme dans une marge corrigée */
  content: ""; position: absolute; left: 50%; bottom: -.26em; width: .34em; height: .2em;
  border-left: .06em solid var(--correcteur); border-top: .06em solid var(--correcteur);
  transform: translateX(-50%) rotate(45deg); border-radius: 2px 0 0 0;
}
.une-fluo {
  background-image: linear-gradient(100deg, transparent 0 1%, var(--fluo) 3% 96%, transparent 99%);
  background-repeat: no-repeat; background-size: 100% 70%; background-position: 0 78%;
  padding: 0 .06em; margin: 0 -.06em; border-radius: .1em .3em .2em .25em;
}
.une-chapeau { max-width: 30em; background: rgba(251, 247, 239, .9); border-radius: 12px; padding: 4px 10px; margin-left: -10px; }
.une-chapeau strong { color: var(--encre); }

@media (prefers-reduced-motion: no-preference) {
  .une-ligne .une-mot { animation: une-monte 900ms var(--courbe) both; }
  .une-ligne:nth-child(2) .une-mot { animation-delay: 110ms; }
  .une-ligne:nth-child(3) .une-mot { animation-delay: 220ms; }
  .rature .r1 { animation: une-trait 420ms cubic-bezier(.5, 0, .2, 1) 1150ms both; }
  .rature .r2 { animation: une-trait 380ms cubic-bezier(.5, 0, .2, 1) 1480ms both; }
  .aussi { animation: une-ecrit 700ms steps(14, end) 1850ms both; }
  .une-fluo { animation: une-surligne 800ms var(--courbe) 2500ms both; }
  .une-chapeau, .une-boutons { animation: une-apparait 800ms var(--courbe) 700ms both; }
  .une-boutons { animation-delay: 850ms; }
  .objet { animation: une-pose 750ms cubic-bezier(.2, 1.4, .4, 1) both; }
  .objet-polaroid { animation-delay: 350ms; }
  .objet-postit { animation-delay: 650ms; }
  .objet-bulles { animation-delay: 950ms; }
  .objet-tampon { animation-delay: 1250ms; }
  .objet-prix { animation-delay: 1550ms; }
  .objet-flotte { animation: une-flotte 7s ease-in-out infinite alternate; }
  .objet-postit .objet-flotte { animation-duration: 6s; animation-delay: -2s; }
  .objet-bulles .objet-flotte { animation-duration: 8s; animation-delay: -4s; }
  .tampon-tourne { animation: une-tourne 24s linear infinite; transform-origin: 100px 100px; }
  .une-suite svg { animation: une-rebond 1.8s ease-in-out 3.2s infinite; }
}
@keyframes une-monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes une-trait { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes une-ecrit { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -10% -30% 0); } }
@keyframes une-surligne { from { background-size: 0% 70%; } to { background-size: 100% 70%; } }
@keyframes une-apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes une-pose { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes une-flotte { from { transform: translateY(-5px) rotate(-.6deg); } to { transform: translateY(6px) rotate(.8deg); } }
@keyframes une-tourne { to { transform: rotate(360deg); } }
@keyframes une-rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Le collage : cinq objets posés sur la table. */
.collage { position: relative; height: clamp(480px, 44vw, 600px); }
.objet { position: absolute; margin: 0; will-change: translate; }
.objet-polaroid { top: 2%; right: 4%; width: 58%; rotate: 5deg; z-index: 1; }
.objet-polaroid .objet-flotte { background: #fff; border: var(--bord); padding: 10px 10px 14px; box-shadow: var(--ombre-l); }
.objet-polaroid .polaroid-image { aspect-ratio: 1 / 1; border: 2px solid var(--encre); overflow: hidden; }
.objet-polaroid .polaroid-image svg { width: 100%; height: 100%; }
.objet-polaroid figcaption { font-family: var(--main); font-weight: 600; font-size: 1.45rem; text-align: center; margin-top: 6px; line-height: 1.1; }
.objet-postit { top: 8%; left: 0; width: 40%; rotate: -8deg; z-index: 2; }
.objet-postit .objet-flotte {
  background: var(--fluo); border: 2px solid var(--encre); padding: 18px 16px 20px;
  font-family: var(--main); font-weight: 600; font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.05;
  box-shadow: 4px 6px 0 rgba(23, 22, 28, .9); clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}
.objet-postit small { font-size: .78em; color: var(--encre-2); }
.objet-bulles { bottom: 12%; left: -6%; width: 66%; rotate: -3deg; z-index: 3; }
.objet-bulles .objet-flotte {
  background: #fff; border: var(--bord); border-radius: 26px; padding: 14px; box-shadow: var(--ombre-l);
  display: flex; flex-direction: column; gap: 8px; font-size: 1rem; line-height: 1.35;
}
.objet-bulles p { margin: 0; padding: 10px 14px; border-radius: 18px; }
.mini-moi { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 5px !important; max-width: 90%; }
.mini-ia { align-self: flex-start; background: #F1EEE6; border-bottom-left-radius: 5px !important; max-width: 92%; }
.objet-tampon { bottom: 0; right: 0; width: 34%; rotate: 12deg; z-index: 4; }
.objet-tampon svg { width: 100%; height: auto; filter: drop-shadow(4px 5px 0 var(--encre)); }
.objet-tampon text { font-family: var(--titre); font-weight: 800; font-size: 17px; letter-spacing: 2.2px; fill: var(--encre); }
.objet-prix { top: 46%; right: 0; rotate: 9deg; z-index: 2; }
.objet-prix .objet-flotte {
  width: 104px; height: 104px; display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--corail); color: var(--encre);
  clip-path: polygon(50% 0, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 90% 41%, 100% 54%, 88% 64%, 92% 81%, 76% 83%, 70% 98%, 56% 90%, 42% 100%, 33% 86%, 17% 92%, 15% 75%, 0 69%, 9% 54%, 1% 38%, 16% 30%, 15% 13%, 32% 14%, 41% 0);
}
.objet-prix span { font-family: var(--main); font-size: 1.4rem; font-weight: 600; }
.objet-prix strong { font-family: var(--titre); font-size: 1.75rem; letter-spacing: -0.03em; }

.une-suite {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--encre);
  text-decoration: none; background: var(--carte); border: var(--bord); border-radius: 999px; padding: 10px 18px;
  white-space: nowrap;
}
.une-suite svg { width: 20px; height: 20px; }
.une-suite:hover { background: var(--fluo); color: var(--encre); }

@media (max-width: 960px) {
  .une { min-height: 0; padding-bottom: 96px; }
  .une-grille { grid-template-columns: minmax(0, 1fr); }
  .une-titre { font-size: clamp(3.4rem, 22vw, 8rem); }
  .collage { height: clamp(360px, 92vw, 520px); max-width: 560px; width: 100%; margin: 12px auto 0; }
  .objet-bulles { left: 0; width: 70%; bottom: 6%; }
  .objet-postit { width: 44%; }
  .objet-tampon { width: 36%; }
  .objet-prix .objet-flotte { width: 88px; height: 88px; }
  .objet-prix strong { font-size: 1.45rem; }
  .objet-prix span { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .une-papier { --marge: 8px; }
  .une { padding-top: 28px; }
  .une .boutons { flex-direction: column; align-items: stretch; }
  .objet-bulles .objet-flotte { font-size: .92rem; padding: 10px; border-radius: 20px; }
  .objet-bulles p { padding: 8px 11px; }
  .objet-polaroid figcaption { font-size: 1.15rem; }
  .objet-postit .objet-flotte { padding: 12px 11px 16px; }
}

/* ==========================================================================
   « Essayez » : le téléphone en grand
   ========================================================================== */

.essayer-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.essayer .questions-demo {
  display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; border: 0; background: none; overflow: visible; margin-top: 28px;
}
.essayer .question-demo {
  white-space: normal; text-align: left; min-height: 64px; padding: 14px 20px 14px 56px; border-radius: 18px;
  font-size: 1.1rem; color: var(--encre); position: relative; box-shadow: 4px 4px 0 #000; border-color: #000;
  transition: transform 140ms var(--courbe), background-color 140ms;
}
.essayer .question-demo::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l6 5-6 5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.essayer .question-demo:hover { transform: translate(-2px, -2px); background: var(--fluo-2); }
.essayer .question-demo[aria-pressed="true"] { background: var(--fluo); }
.telephone-cadre { display: flex; flex-direction: column; align-items: center; }
.telephone {
  width: min(380px, 100%); background: #000; border-radius: 48px; padding: 12px; position: relative;
  box-shadow: 0 0 0 2px #3A3F7A, 14px 16px 0 rgba(0, 0, 0, .45); rotate: 2deg;
}
.telephone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #000; border-radius: 20px; z-index: 2; }
.telephone-ecran { background: #fff; border-radius: 38px; overflow: hidden; height: clamp(520px, 60vw, 640px); display: flex; flex-direction: column; color: var(--encre); }
.telephone-ecran .tablette-barre { padding-top: 54px; }
.telephone-ecran p { color: inherit; }
.essayer .demo-legende { color: #B8BEEA; font-size: .92rem; text-align: center; margin-top: 22px; max-width: 360px; }
@media (max-width: 900px) {
  .essayer-grille { grid-template-columns: minmax(0, 1fr); }
  .telephone { rotate: 0deg; }
  .telephone-ecran { height: 500px; }
  .essayer .questions-demo { grid-template-columns: 1fr 1fr; }
  .essayer .question-demo { padding: 12px 14px 12px 46px; font-size: 1rem; min-height: 72px; }
  .essayer .question-demo::before { left: 13px; width: 22px; height: 22px; margin-top: -11px; }
}
@media (max-width: 420px) {
  .essayer .questions-demo { grid-template-columns: 1fr; }
  .essayer .question-demo { min-height: 56px; }
}

/* ==========================================================================
   LE TÉLÉPHONE : tout ce qui doit être plus serré sous 680 px
   ========================================================================== */

@media (max-width: 680px) {
  body { font-size: 1.125rem; }
  .section { padding: 64px 0; }
  .section-serree { padding: 40px 0; }
  .entete-section { margin-bottom: 32px; }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .chapeau { font-size: 1.15rem; }
  .entete .conteneur { min-height: 70px; gap: 10px; }
  .logo-nom { font-size: 1.6rem; }
  .logo-sous { display: none; }
  .bouton { min-height: 56px; font-size: 1.05rem; }
  .carte { padding: 20px; border-radius: 22px; }

  /* Les usages : icône à gauche, texte à droite, sans l'exemple manuscrit. */
  .usage { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .usage .icone { width: 52px; height: 52px; border-radius: 14px; margin: 0; grid-row: span 2; }
  .usage .icone svg { width: 28px; height: 28px; }
  .usage h3 { font-size: 1.3rem; margin-bottom: .25em; }
  .usage p { font-size: 1.02rem; margin: 0; }
  .usage .exemple { display: none; }
  .grille.g3 { gap: 14px; }

  /* Les étapes : le chiffre à gauche. */
  .etape { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding-top: 0; }
  .etape-num { font-size: 3.4rem; grid-row: span 2; margin: 0; }
  .etape h3 { font-size: 1.35rem; }
  .etapes.grille { gap: 28px; }

  .formule-prix { font-size: 2.8rem; }
  .polaroid { max-width: 300px; }
  .promesses { margin-top: 24px; }
  .bon { max-width: 340px; }
  .bon-titre { font-size: 1.9rem; }
  .bon-pour { font-size: 1.45rem; }
  .numero-geant { font-size: clamp(2.3rem, 12vw, 3.4rem); box-shadow: 5px 5px 0 #000; }
  .tete-page h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .theme { padding: 28px 0; gap: 8px; }
  .theme-num { font-size: 2.6rem; }
  .theme h2 { font-size: 1.7rem; }
  .faq summary { padding: 16px 56px 16px 18px; font-size: 1.15rem; }
  .faq summary::after { right: 14px; }
  .faq .reponse { padding: 0 18px 18px; }
  .recap { position: static; }
  .pied { padding-top: 52px; }
}

/* La lettre : les lignes du papier tombent exactement sous le texte. */
.lettre { --l: 38px; background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--l) - 2px), #E4E9FB calc(var(--l) - 2px) var(--l)); background-position: 0 var(--l); background-size: 100% var(--l); padding: var(--l) clamp(20px, 4vw, 44px) var(--l); }
.lettre p { line-height: var(--l); font-size: 1.12rem; }
.lettre p + p { margin-top: var(--l); }
.lettre .main { font-size: 1.9rem; line-height: var(--l); display: inline-block; }
.lettre .signature { line-height: calc(var(--l) * 2); margin-top: 0; font-size: 2.4rem; }
@media (max-width: 680px) { .lettre { --l: 34px; } .lettre p { font-size: 1.05rem; } }

/* Les 44 communes : repliées sur téléphone, dépliées sur ordinateur. */
.toutes-communes > summary { cursor: pointer; font-weight: 700; color: var(--bleu); text-decoration: underline; text-underline-offset: .2em; margin-bottom: 14px; list-style: none; }
.toutes-communes > summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .toutes-communes[data-ouvert] > summary { display: none; } }

/* Le tableau des prix devient une pile de cartes sur téléphone. */
@media (max-width: 680px) {
  .tableau-prix-cadre { overflow: visible; border: 0; box-shadow: none; background: none; }
  .tableau-prix { min-width: 0; display: block; }
  .tableau-prix thead { display: none; }
  .tableau-prix tbody { display: grid; gap: 14px; }
  .tableau-prix tr { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: var(--bord); border-radius: 20px; overflow: hidden; }
  .tableau-prix tbody th { grid-column: 1 / -1; padding: 16px 18px 12px; border-bottom: 2px solid var(--papier-2); }
  .tableau-prix td { padding: 14px 18px; font-size: 1.5rem; border-bottom: 0; white-space: normal; }
  .tableau-prix td::before { content: attr(data-libelle); display: block; font-family: var(--texte); font-size: .85rem; font-weight: 700; letter-spacing: 0; color: var(--encre-2); margin-bottom: 4px; }
  .tableau-prix .col-reco { border-left: 2px solid var(--papier-2); }
}

/* L'offre aux structures (clubs, résidences, mairies) */
.structures { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.structures-liste { list-style: none; margin: 0; display: grid; gap: 20px; }
.structures-liste li { display: flex; gap: 14px; align-items: flex-start; }
.structures-liste strong { display: block; font-size: 1.12rem; }
.structures-liste span { color: var(--encre-2); font-size: 1.02rem; }
@media (max-width: 900px) { .structures { grid-template-columns: minmax(0, 1fr); } }
.options-3 { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 680px) {
  .estelle .polaroid { display: none; } /* déjà dans le collage de l'ouverture */
  .pied-bas { font-size: 1rem; }
  .theme-etiquette { font-size: .95rem; }
}

/* ==========================================================================
   VERSION 3.2 : LA VISIO AU PREMIER PLAN
   ========================================================================== */

/* Le collage : la carte d'appel remplace le post-it. */
.objet-appel { top: 6%; left: 0; width: 38%; rotate: -7deg; z-index: 2; }
.objet-appel .objet-flotte {
  background: var(--nuit); border: var(--bord); border-radius: 22px; padding: 10px 10px 12px; box-shadow: var(--ombre);
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff;
}
.mini-appel-barre { align-self: stretch; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: #D9DDF8; }
.mini-appel-barre i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.mini-appel-visage { width: 78%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 2px solid #fff; background: #FF8B6B; }
.mini-appel-visage svg { width: 100%; height: 100%; }
.mini-appel-nom { font-family: var(--main); font-size: 1.5rem; line-height: 1; color: var(--fluo); }
.mini-appel-boutons { display: flex; gap: 8px; }
.mini-appel-boutons i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mini-appel-boutons i.rouge { background: #E5484D; }
@media (prefers-reduced-motion: no-preference) {
  .objet-appel { animation-delay: 650ms; }
  .objet-appel .objet-flotte { animation-duration: 6s; animation-delay: -2s; }
  .mini-appel-barre i { animation: direct 1.6s ease-in-out infinite; }
}
@keyframes direct { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@media (max-width: 960px) { .objet-appel { width: 34%; } }

/* --------------------------------------------------------------------------
   La scène « visio » : un SMS arrive, l'appel s'ouvre, la main d'Estelle
   entoure le bon bouton. Une boucle de 10 secondes, en CSS seulement.
   -------------------------------------------------------------------------- */

.visio-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .visio-grille { grid-template-columns: minmax(0, 1fr); } }
.visio-scene { position: relative; padding-top: 56px; }
.ordi { position: relative; }
.ordi .appel {
  background: #1B1F3F; border: var(--bord); border-radius: 22px 22px 8px 8px; padding: 12px; box-shadow: var(--ombre-l);
  display: flex; flex-direction: column; gap: 10px; color: #fff; aspect-ratio: 16 / 10.5;
}
.ordi-pied { height: 18px; margin: 0 -5%; background: #D5D0C4; border: var(--bord); border-top: 0; border-radius: 0 0 22px 22px; }
.appel-barre { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: #D9DDF8; }
.appel-direct { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; }
.appel-duree { margin-left: auto; font-variant-numeric: tabular-nums; }
.appel-corps { flex: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; min-height: 0; }
.appel-estelle { position: relative; background: #FF8B6B; border-radius: 14px; overflow: hidden; display: grid; place-items: end center; }
.appel-estelle .avatar { width: 100%; height: 100%; position: absolute; inset: 0; }
.appel-nom { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 6px; font-size: .82rem; font-weight: 700; }
.onde { position: absolute; right: 8px; bottom: 10px; display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.onde i { width: 4px; height: 30%; background: #3DDC84; border-radius: 2px; }
.appel-partage { position: relative; background: #fff; border-radius: 14px; padding: 12px; color: var(--encre); overflow: hidden; }
.partage-titre { display: block; font-size: .78rem; font-weight: 700; color: var(--encre-2); margin-bottom: 10px; }
.mini-appli { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-appli span { aspect-ratio: 1; border-radius: 10px; background: #E7E3F6; }
.mini-appli span:nth-child(3n) { background: #FFE9B8; }
.mini-appli span:nth-child(4n+1) { background: #D5F0E1; }
.mini-appli .cible { background: var(--bleu) !important; }
.cercle-main { position: absolute; width: 44%; left: 42%; top: 18%; overflow: visible; }
.cercle-main path { fill: none; stroke: var(--correcteur); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.bulle-ici { position: absolute; right: 6%; bottom: 12%; font-family: var(--main); font-weight: 600; font-size: 1.5rem; color: var(--correcteur); rotate: -6deg; }
.curseur { position: absolute; width: 26px; left: 64%; top: 34%; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .3)); }
.appel-boutons { display: flex; justify-content: center; gap: 12px; }
.appel-boutons span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.appel-boutons .raccrocher { background: #E5484D; width: 48px; border-radius: 17px; }
.sms-notif {
  position: absolute; z-index: 3; top: 0; left: 50%; width: min(88%, 380px); translate: -50% 0;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: var(--bord);
  border-radius: 18px; box-shadow: var(--ombre); font-size: .95rem; line-height: 1.3;
}
.sms-notif strong { display: block; }
.sms-icone { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #3DDC84; border: 2px solid var(--encre); display: grid; place-items: center; font-weight: 800; font-size: .7rem; }
.visio-etapes { list-style: none; counter-reset: v; padding: 0; margin: 26px 0 18px; display: grid; gap: 16px; }
.visio-etapes li { counter-increment: v; position: relative; padding-left: 56px; color: var(--encre-2); }
.visio-etapes li::before {
  content: counter(v); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--fluo); border: var(--bord); display: grid; place-items: center; font-family: var(--titre); font-weight: 800; color: var(--encre);
}
.visio-etapes strong { display: block; color: var(--encre); font-size: 1.15rem; }

@media (prefers-reduced-motion: no-preference) {
  .sms-notif { animation: sms 10s var(--courbe) infinite; }
  .onde i { animation: onde .9s ease-in-out infinite alternate; }
  .onde i:nth-child(2) { animation-delay: .15s; } .onde i:nth-child(3) { animation-delay: .3s; }
  .onde i:nth-child(4) { animation-delay: .45s; } .onde i:nth-child(5) { animation-delay: .6s; }
  .curseur { animation: curseur 10s var(--courbe) infinite; }
  .cercle-main path { animation: cercle 10s ease-in-out infinite; }
  .bulle-ici { animation: ici 10s ease-in-out infinite; }
  .mini-appli .cible { animation: cible 10s ease-in-out infinite; }
  .appel-direct { animation: clignote 1.2s steps(2) infinite; }
}
@keyframes sms {
  0%, 4% { opacity: 0; transform: translateY(-24px) scale(.96); }
  10%, 26% { opacity: 1; transform: none; }
  29% { transform: scale(.94); }
  34%, 100% { opacity: 0; transform: translateY(-16px) scale(.96); }
}
@keyframes onde { from { height: 20%; } to { height: 100%; } }
@keyframes curseur {
  0%, 36% { left: 20%; top: 80%; opacity: 0; }
  42% { opacity: 1; }
  58%, 92% { left: 64%; top: 34%; opacity: 1; }
  100% { left: 64%; top: 34%; opacity: 0; }
}
@keyframes cercle { 0%, 58% { stroke-dashoffset: 260; } 68%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ici { 0%, 66% { opacity: 0; transform: translateY(6px); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cible { 0%, 60% { transform: none; } 64% { transform: scale(.86); } 68%, 100% { transform: none; } }
@keyframes clignote { 50% { opacity: .2; } }

/* --------------------------------------------------------------------------
   Sur mesure : la pile du guide PDF personnalisé
   -------------------------------------------------------------------------- */

.mesure-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .mesure-grille { grid-template-columns: minmax(0, 1fr); } }
.guide-pile { position: relative; max-width: 440px; margin: 0 auto; padding: 18px 18px 30px; }
.guide-feuille {
  position: relative; background: #fff; border: var(--bord); border-radius: 6px; padding: 22px 22px 26px;
  box-shadow: var(--ombre-l); rotate: 2deg; font-size: .95rem;
}
.guide-dessous { position: absolute; inset: 30px 0 14px 34px; rotate: -4deg; background: var(--papier-2); box-shadow: none; }
.guide-tete { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--encre-2); border-bottom: 2px solid var(--papier-2); padding-bottom: 8px; margin-bottom: 12px; }
.guide-logo b { background: var(--fluo); border: 1.5px solid var(--encre); border-radius: 4px; padding: 0 4px; font-size: .7rem; color: var(--encre); }
.guide-pour { font-family: var(--main); color: var(--bleu); font-size: 1.35rem; margin: 0 0 4px; line-height: 1.1; }
.guide-titre { font-family: var(--titre); font-weight: 800; font-size: 1.45rem; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.guide-titre span { background: var(--fluo); padding: 0 .1em; }
.guide-etapes { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide-etapes li { counter-increment: g; display: grid; grid-template-columns: 26px 64px minmax(0, 1fr); gap: 10px; align-items: center; line-height: 1.3; }
.guide-etapes li::before { content: counter(g); width: 26px; height: 26px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.guide-capture { width: 64px; height: 44px; border: 2px solid var(--encre); border-radius: 8px; background: #F4F1EA; display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; }
.guide-capture i { width: 14px; height: 12px; border-radius: 3px; background: #D5D0E8; }
.guide-capture i:nth-child(2) { background: var(--bleu); }
.guide-capture-2 i:first-child { width: 42px; background: #FFD9CC; }
.guide-etapes mark { background: var(--fluo); padding: 0 .15em; }
.guide-note { margin: 14px 0 0; padding: 8px 12px; border-left: 4px solid var(--correcteur); background: #FFF3F0; font-size: .88rem; }
.guide-tampon {
  position: absolute; right: -6px; bottom: 0; rotate: -12deg; font-family: var(--titre); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--correcteur); border: 3px solid var(--correcteur); border-radius: 10px;
  padding: 6px 12px; background: rgba(255, 255, 255, .85);
}
@media (prefers-reduced-motion: no-preference) {
  .js .guide-pile .guide-feuille:not(.guide-dessous) { transition: rotate 900ms var(--courbe), translate 900ms var(--courbe); }
  .js .guide-pile:not(.vu) .guide-feuille:not(.guide-dessous) { rotate: -6deg; translate: 0 30px; }
  .js .guide-pile .guide-tampon { transition: scale 400ms cubic-bezier(.2, 1.6, .4, 1) 700ms, opacity 200ms 700ms; }
  .js .guide-pile:not(.vu) .guide-tampon { scale: 2.2; opacity: 0; }
}

/* --------------------------------------------------------------------------
   La carte de France
   -------------------------------------------------------------------------- */

.zone-carte { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.carte-cadre { max-width: 640px; margin: 0 auto; width: 100%; }
@media (max-width: 900px) { .zone-carte { grid-template-columns: minmax(0, 1fr); } }
.carte-france { width: 100%; height: auto; overflow: visible; }
.carte-pays { fill: #fff; stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.carte-alsace { fill: none; stroke: var(--encre); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: .55; }
.carte-zone-bord { fill: var(--encre); stroke: var(--encre); stroke-width: 6; stroke-linejoin: round; }
.carte-zone { fill: var(--fluo); stroke: var(--fluo); stroke-width: 2; stroke-linejoin: round; }
.loupe-fond { fill: #fff; }
.loupe-bord { fill: none; stroke: var(--encre); stroke-width: 3.5; }
.loupe-lien { stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; opacity: .7; }
.loupe-zone { fill: var(--fluo); stroke: var(--encre); stroke-width: .8; stroke-linejoin: round; }
.loupe-ville { fill: var(--correcteur); stroke: var(--encre); stroke-width: 2; }
.loupe-nom { font-family: var(--titre); font-weight: 800; font-size: 17px; fill: var(--encre); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.carte-zone-onde { fill: none; stroke: var(--correcteur); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.carte-point { fill: var(--bleu); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.carte-note text { font-family: var(--main); font-weight: 600; font-size: 36px; fill: var(--bleu); }
.carte-note-alsace text { fill: var(--correcteur); }
.carte-note .carte-note-petit { font-family: var(--main); font-size: 21px; font-weight: 700; fill: var(--encre-2); }
.carte-point-ami { fill: #fff; stroke: var(--bleu); stroke-width: 3.5; }
.carte-ami { font-family: var(--main); font-weight: 700; font-size: 22px; fill: var(--bleu); }
.carte-note-alsace path { fill: none; stroke: var(--correcteur); stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .carte-point { animation: sonar 2.6s ease-out infinite; animation-delay: calc(var(--i) * 210ms); }
  .carte-zone-onde { animation: onde-zone 2.4s ease-out infinite; }
}
@keyframes sonar { 0% { transform: scale(1); } 20% { transform: scale(1.8); } 40%, 100% { transform: scale(1); } }
@keyframes onde-zone { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* --------------------------------------------------------------------------
   « Essayez » : plus de vie autour du téléphone
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .telephone-cadre .telephone { animation: telephone-flotte 6s ease-in-out infinite alternate; transition: transform 300ms var(--courbe); }
  .js .essayer .question-demo { opacity: 0; translate: -24px 0; transition: opacity 600ms var(--courbe), translate 600ms var(--courbe), transform 140ms var(--courbe), background-color 140ms; }
  .js .essayer.vu .question-demo { opacity: 1; translate: 0 0; }
  .js .essayer.vu .question-demo:nth-child(2) { transition-delay: 90ms, 90ms, 0s, 0s; }
  .js .essayer.vu .question-demo:nth-child(3) { transition-delay: 180ms, 180ms, 0s, 0s; }
  .js .essayer.vu .question-demo:nth-child(4) { transition-delay: 270ms, 270ms, 0s, 0s; }
  .essayer .question-demo[aria-pressed="true"]::before { animation: pouls 1.2s ease-in-out infinite; }
}
@keyframes telephone-flotte { from { translate: 0 -8px; } to { translate: 0 8px; } }
@keyframes pouls { 50% { box-shadow: 0 0 0 6px rgba(33, 54, 196, .25); } }
.telephone-cadre { perspective: 1200px; }
.essayer-progres { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); margin-top: 18px; overflow: hidden; max-width: 380px; }
.essayer-progres i { display: block; height: 100%; width: 0; background: var(--fluo); }

/* --------------------------------------------------------------------------
   Le bandeau des offres de saison (Halloween, Noël)
   -------------------------------------------------------------------------- */

.bandeau.offre { background: var(--correcteur); }
.bandeau.offre a { color: #fff; text-decoration: underline; }
.bandeau code { font-family: var(--titre); font-weight: 800; background: #fff; color: var(--encre); padding: 1px 8px; border-radius: 6px; letter-spacing: .04em; }

/* ==========================================================================
   LES HABILLAGES DE SAISON
   --------------------------------------------------------------------------
   Le thème (html[data-theme]) change quelques jetons de couleur ; saison.js
   pose les décorations sur toutes les pages. Les objets vivent dans les
   marges et derrière le contenu (z-index 0, le contenu est à 1). Rien ne
   bouge avec « animations réduites ».
   ========================================================================== */

:root[data-theme="halloween"] {
  --fluo: #FF9A2E;
  --fluo-2: #FFD6AB;
  --bleu: #6B2FA0;
  --bleu-2: #8446BD;
  --nuit: #1F0C33;
  --corail: #FF9A2E;
}
:root[data-theme="noel"] {
  --fluo: #FFA39A;
  --fluo-2: #FFD9D4;
  --bleu: #0B6B3A;
  --bleu-2: #13874B;
  --nuit: #0C3A26;
  --corail: #F26B5B;
}
:root[data-theme="halloween"] .bandeau, :root[data-theme="noel"] .bandeau { background: var(--correcteur); }
:root[data-theme="noel"] .fond-nuit:nth-of-type(even) { background: #9E2A22; }

.scene-saison, .section-saison { position: relative; }
.scene-saison > .conteneur, .section-saison > .conteneur, .pied > .conteneur { position: relative; z-index: 1; }
.tete-page.scene-saison { overflow: hidden; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Le sélecteur d'aperçu */
.apercu-theme {
  position: fixed; left: 12px; bottom: 12px; z-index: 80; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #fff; border: var(--bord); border-radius: 16px; padding: 8px 10px; box-shadow: var(--ombre); font-size: .9rem; font-weight: 700;
  max-width: calc(100vw - 24px);
}
.apercu-theme button { font: inherit; border: 2px solid var(--encre); border-radius: 999px; padding: 4px 12px; background: var(--papier); cursor: pointer; min-height: 36px; }
.apercu-theme button[aria-pressed="true"] { background: var(--fluo); }

/* --- Les objets suspendus (araignées, boules) --------------------------- */
.deco-sous-menu { top: 100%; width: clamp(32px, 3.2vw, 46px); z-index: 39; }
.suspendu { display: flex; flex-direction: column; align-items: center; transform-origin: top center; }
.suspendu .fil-suspendu { width: 2px; height: var(--fil); background: var(--encre); opacity: .8; }
.suspendu svg { width: 100%; }

/* --- Sur le logo --------------------------------------------------------- */
.logo-ligne { position: relative; }
.deco-chapeau { width: 52px; right: -22px; top: -30px; rotate: 16deg; z-index: 2; }
.deco-bonnet-logo { width: 50px; right: -24px; top: -24px; rotate: 18deg; z-index: 2; }

/* --- Halloween : l'ouverture ---------------------------------------------- */
.deco-lune { width: clamp(90px, 11vw, 170px); top: 4%; right: 3%; }
.une .deco-lune { right: 40%; top: 3%; width: clamp(70px, 7vw, 110px); }
.deco-toile-g { top: 0; left: 0; width: clamp(110px, 14vw, 230px); }
.deco-toile-d { top: 0; right: 0; width: clamp(110px, 14vw, 230px); transform: scaleX(-1); }
.deco-trio { bottom: 0; right: 2%; width: clamp(180px, 22vw, 320px); display: flex; align-items: flex-end; }
.deco-trio svg:nth-child(1) { width: 34%; }
.deco-trio svg:nth-child(2) { width: 46%; margin: 0 -6%; position: relative; z-index: 1; }
.deco-trio svg:nth-child(3) { width: 28%; }
.une .deco-trio { right: auto; left: 1%; }
.deco-fantome-passe { width: clamp(64px, 7vw, 100px); top: 34%; left: -12%; opacity: .95; }
.deco-vol { width: clamp(50px, 6vw, 90px); top: 12%; left: 20%; }
.deco-vol.v1 { top: 26%; left: 55%; width: clamp(40px, 4.4vw, 66px); }
.deco-vol.v2 { top: 6%; left: 70%; width: clamp(34px, 3.4vw, 52px); }
.deco-vol.v3 { top: 48%; left: 35%; width: clamp(44px, 5vw, 74px); }
.deco-vol.v4 { top: 18%; left: 88%; width: clamp(30px, 3vw, 46px); }

/* --- Les objets des sections --------------------------------------------- */
.deco-coin-bas-d { right: 1.5%; bottom: -8px; }
.deco-coin-bas-g { left: 1.5%; bottom: -6px; }
.deco-coin-haut-d { right: 5%; top: 0; width: clamp(34px, 3.4vw, 48px); }
.deco-coin-haut-g { left: 2.5%; top: 18px; width: clamp(56px, 6vw, 96px); }
.deco-bord-d { right: 1%; top: 42%; width: clamp(70px, 7vw, 110px); }
.deco-grande { width: clamp(90px, 10vw, 150px); }
.deco-moyenne { width: clamp(70px, 8vw, 120px); }
.deco-petite { width: clamp(52px, 5vw, 80px); }
.deco-paire { width: clamp(130px, 14vw, 210px); display: flex; align-items: flex-end; gap: 4px; }
.deco-paire svg { width: 50%; }
.deco-paire svg + svg { width: 40%; }
.deco-sucre { width: clamp(36px, 3.4vw, 54px); }
.deco-chaussettes { display: flex; gap: 14px; width: clamp(90px, 9vw, 130px); align-items: flex-start; }
.deco-chaussettes .suspendu { width: 50%; }
.deco-coin-haut-g .suspendu, .deco-coin-haut-d .suspendu { width: 100%; }

/* --- Sur les cartes ------------------------------------------------------ */
.deco-carte-toile { top: 0; right: 0; width: 58px; transform: scaleX(-1); z-index: 2; opacity: .85; }
.deco-carte-bonnet { top: -24px; left: -18px; width: 62px; rotate: -18deg; z-index: 2; }
.deco-carte-houx { top: -16px; right: -12px; width: 64px; rotate: 12deg; z-index: 2; }

/* --- Noël : l'ouverture ---------------------------------------------------- */
.deco-guirlande { left: 0; right: 0; top: 100%; height: 36px; overflow: hidden; z-index: 39; }
.deco-guirlande svg { width: 100%; height: 36px; }
.ampoule { stroke: var(--encre); stroke-width: 2; }
.a0 { fill: #D7372B; } .a1 { fill: #FFD84D; } .a2 { fill: #13874B; } .a3 { fill: #3A7BE0; }
.deco-grand-sapin { width: clamp(120px, 14vw, 210px); bottom: 0; right: 3%; }
.une .deco-grand-sapin { right: auto; left: 1%; }
.deco-cadeaux { width: clamp(140px, 15vw, 220px); bottom: 0; right: calc(3% + clamp(100px, 12vw, 180px)); display: flex; align-items: flex-end; }
.une .deco-cadeaux { right: auto; left: calc(1% + clamp(100px, 12vw, 180px)); }
.deco-cadeaux svg:nth-child(1) { width: 40%; } .deco-cadeaux svg:nth-child(2) { width: 34%; margin-left: -6%; } .deco-cadeaux svg:nth-child(3) { width: 28%; margin-left: -4%; }
.deco-pere-noel { width: clamp(90px, 10vw, 150px); right: 1%; top: 30%; rotate: -8deg; }
.une .deco-pere-noel { top: auto; bottom: 0; right: 46%; width: clamp(80px, 8vw, 120px); }
.deco-chaussette-une { width: clamp(44px, 4.4vw, 64px); top: 0; left: 2%; }
.deco-houx-coin { width: clamp(80px, 9vw, 130px); top: 8px; right: 1%; rotate: 10deg; }
.une .deco-houx-coin { right: auto; left: 44%; top: 4px; }

/* --- Le ciel de la page -------------------------------------------------- */
.ciel-saison { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.deco-ciel-vol { width: clamp(44px, 5vw, 76px); top: 20%; left: -12%; }
.deco-ciel-vol.c1 { top: 60%; width: clamp(34px, 3.6vw, 56px); }
.deco-ciel-vol.c2 { top: 38%; }
.deco-ciel-vol.c3 { top: 78%; width: clamp(30px, 3vw, 46px); }
.deco-ciel-fantome { width: clamp(60px, 6vw, 90px); bottom: 4%; left: -14%; opacity: .85; }
.flocon { position: absolute; top: -40px; opacity: .92; }
.flocon svg { width: 100%; height: auto; }
.deco-traineau { width: clamp(170px, 22vw, 320px); top: 14%; left: 110%; }

/* --- En bas de page : la scène ---------------------------------------------- */
.pied { position: relative; }
.deco-scene-pied {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 28px);
  max-width: 900px; height: clamp(90px, 11vw, 140px); margin: -130px auto 40px; z-index: 2; padding: 0 var(--gouttiere);
}
.pied-objet { width: clamp(64px, 9vw, 116px); flex: none; }
:root[data-theme="halloween"] .pied-objet:nth-child(even) { width: clamp(50px, 7vw, 86px); }
:root[data-theme="noel"] .pied-objet:nth-child(2), :root[data-theme="noel"] .pied-objet:nth-child(4) { width: clamp(44px, 6vw, 72px); }
.pied-objet svg { width: 100%; height: auto; display: block; }

/* --- Le ruban --------------------------------------------------------------- */
:root[data-theme="halloween"] .ruban li::after { width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='60' rx='40' ry='32' fill='%231F0C33'/%3E%3Cpath d='M50 26c0-8 4-14 10-16' stroke='%231F0C33' stroke-width='8' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 0; }
:root[data-theme="noel"] .ruban li::after { width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3 7 8 1-6 5 2 8-7-4-7 4 2-8-6-5 8-1z' fill='%230B6B3A'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 0; }
:root[data-theme="halloween"] .une-papier { background:
    linear-gradient(90deg, transparent calc(var(--marge) - 1px), #EC9A90 calc(var(--marge) - 1px) calc(var(--marge) + 1px), transparent calc(var(--marge) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, #D9C3EA 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, #EFE4F5 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 31px, #F2D9C4 31px 32px),
    #FBF5EC; }

/* --- Les petits objets de l'accueil (collage, téléphone) --------------------- */
.objet-saison { bottom: 30%; left: 28%; width: 30%; rotate: -10deg; z-index: 5; }
.objet-saison .objet-flotte { position: relative; }
.objet-saison svg { filter: drop-shadow(4px 5px 0 var(--encre)); }
.objet-saison span {
  position: absolute; left: 50%; top: 58%; translate: -50% -50%; font-family: var(--titre); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.35rem);
  background: #fff; border: 2px solid var(--encre); border-radius: 8px; padding: 2px 8px; white-space: nowrap; rotate: 6deg;
}
.telephone-cadre, .telephone { position: relative; }
.deco-fantome { width: clamp(80px, 9vw, 120px); left: calc(50% - min(190px, 50%) - 50px); top: 40px; rotate: -14deg; }
.deco-bonnet { width: 34%; left: -8%; top: -12%; rotate: -22deg; z-index: 3; }

/* --- Les mouvements ------------------------------------------------------------ */
/* Pour tout le monde, même en « moins d'animations » : tout est lent et loin du texte. */
@media all {
  .aile { transform-box: view-box; transform-origin: 60px 30px; animation: battement .22s ease-in-out infinite alternate; }
  .lueur { animation: lueur 2.6s steps(1) infinite; }
  .descend .fil-suspendu { animation: descend 4.5s ease-in-out infinite; }
  .descend.d1 .fil-suspendu { animation-duration: 5.5s; animation-delay: -2s; }
  .descend.d2 .fil-suspendu { animation-duration: 3.8s; animation-delay: -1s; }
  .balance { animation: balance 2.8s ease-in-out infinite alternate; }
  .balance.b1 { animation-duration: 3.4s; animation-delay: -1s; }
  .balance.b2 { animation-duration: 2.4s; animation-delay: -.6s; }
  .balance.b3 { animation-duration: 3.8s; animation-delay: -2s; }
  .deco-vol { animation: vol-sur-place 3.2s ease-in-out infinite alternate; }
  .deco-vol.v1 { animation-duration: 2.6s; } .deco-vol.v2 { animation-duration: 3.8s; } .deco-vol.v3 { animation-duration: 2.9s; } .deco-vol.v4 { animation-duration: 3.4s; }
  .deco-fantome-passe { animation: traverse 26s linear infinite; }
  .deco-flotte, .deco-fantome { animation: flotte 4s ease-in-out infinite alternate; }
  .deco-battement { animation: vol-sur-place 2.8s ease-in-out infinite alternate; }
  .deco-ciel-vol { animation: vol-ciel 17s linear infinite; }
  .deco-ciel-vol.c1 { animation-duration: 23s; animation-delay: -8s; }
  .deco-ciel-vol.c2 { animation-duration: 29s; animation-delay: -15s; }
  .deco-ciel-vol.c3 { animation-duration: 21s; animation-delay: -4s; }
  .deco-ciel-fantome { animation: traverse 38s linear infinite; animation-delay: -12s; }
  .ampoule { animation: brille 1.4s steps(2) infinite; }
  .a1 { animation-delay: .35s; } .a2 { animation-delay: .7s; } .a3 { animation-delay: 1.05s; }
  .clignote circle { animation: brille 1.8s steps(2) infinite; }
  .clignote circle:nth-child(2n) { animation-delay: .9s; }
  .etoile { transform-box: fill-box; transform-origin: center; animation: etoile 3s ease-in-out infinite; }
  .flocon { animation: tombe linear infinite; }
  .deco-traineau { animation: traineau 30s linear infinite; animation-delay: -6s; }
  .deco-pere-noel { animation: salut 3s ease-in-out infinite alternate; }
  .pied-objet { animation: flotte 5s ease-in-out infinite alternate; }
  .pied-objet:nth-child(2n) { animation-delay: -2s; }
}
@keyframes battement { to { transform: scaleY(.3); } }
@keyframes lueur { 0%, 100% { opacity: 1; } 42% { opacity: .55; } 46% { opacity: 1; } 71% { opacity: .75; } 74% { opacity: 1; } }
@keyframes descend { 0%, 100% { height: calc(var(--fil) * .45); } 50% { height: var(--fil); } }
@keyframes balance { from { rotate: -9deg; } to { rotate: 9deg; } }
@keyframes vol-sur-place { from { translate: -10px 6px; rotate: -6deg; } to { translate: 12px -10px; rotate: 6deg; } }
@keyframes traverse { from { transform: translateX(0) translateY(0); } 25% { transform: translateX(32vw) translateY(-18px); } 50% { transform: translateX(64vw) translateY(10px); } 75% { transform: translateX(96vw) translateY(-12px); } to { transform: translateX(130vw) translateY(0); } }
@keyframes flotte { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes vol-ciel {
  0% { transform: translate(0, 0); }
  20% { transform: translate(30vw, -40px); }
  40% { transform: translate(60vw, 20px); }
  60% { transform: translate(90vw, -30px); }
  70%, 100% { transform: translate(130vw, -10px); }
}
@keyframes brille { 50% { opacity: .3; } }
@keyframes etoile { 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes tombe { from { transform: translate(0, 0) rotate(0); } 50% { transform: translate(24px, 55vh) rotate(160deg); } to { transform: translate(-10px, 112vh) rotate(320deg); } }
@keyframes traineau { 0% { transform: translate(0, 0); } 45% { transform: translate(-80vw, -30px); } 60%, 100% { transform: translate(-140vw, -50px); } }
@keyframes salut { from { rotate: -10deg; } to { rotate: -2deg; } }

/* --- Sur téléphone : moins d'objets, plus petits, jamais sur le texte -------------- */
@media (max-width: 700px) {
  .deco-grande, .deco-moyenne { width: 64px; }
  .deco-petite { width: 44px; }
  .deco-paire { width: 96px; }
  .deco-bord-d, .deco-flotte, .deco-sucre { display: none; }
  .deco-coin-haut-g { width: 52px; top: 8px; }
  .deco-toile-g, .deco-toile-d { width: 96px; }
  .deco-lune { width: 64px; }
  .une .deco-lune { right: 4%; top: 1%; width: 54px; }
  .deco-trio { width: 150px; }
  .une .deco-trio { left: auto; right: 2%; bottom: 58px; width: 130px; }
  .deco-vol.v3, .deco-vol.v4 { display: none; }
  .deco-grand-sapin { width: 96px; }
  .une .deco-grand-sapin { left: auto; right: 2%; bottom: 60px; width: 80px; }
  .deco-cadeaux, .une .deco-cadeaux { display: none; }
  .deco-pere-noel { width: 76px; top: auto; bottom: 0; }
  .une .deco-pere-noel { right: auto; left: 2%; bottom: 58px; width: 70px; }
  .deco-houx-coin { width: 70px; }
  .une .deco-houx-coin { left: auto; right: 22%; }
  .deco-chaussette-une { left: auto; right: 40%; }
  .deco-carte-toile { width: 44px; }
  .deco-carte-bonnet { width: 48px; top: -18px; left: -12px; }
  .deco-carte-houx { width: 50px; }
  .deco-ciel-vol.c2, .deco-ciel-vol.c3 { display: none; }
  .flocon:nth-child(2n) { display: none; }
  .deco-traineau { width: 150px; }
  .deco-scene-pied { margin-top: -96px; height: 80px; gap: 6px; }
  .pied-objet { width: 60px; }
  .deco-sous-menu, .deco-fantome-passe, .deco-ciel-fantome, .deco-chaussette-une, .deco-houx-coin { display: none; }
  /* Une bande réservée sous le texte de l'ouverture, où la scène se pose sans rien cacher. */
  :root[data-theme] .tete-page.scene-saison { padding-bottom: 128px; }
  .tete-page .deco-grand-sapin { right: 2%; bottom: 0; width: 84px; }
  .tete-page .deco-pere-noel { right: auto; left: 3%; bottom: 0; top: auto; width: 76px; }
  .tete-page .deco-trio { right: 2%; bottom: 0; width: 140px; }
  .tete-page .deco-lune { width: 48px; right: 3%; top: 2%; }
  .apercu-theme { left: 8px; right: 8px; bottom: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 6px 8px; font-size: .8rem; box-shadow: 3px 3px 0 var(--encre); }
  .apercu-theme button { min-height: 32px; padding: 2px 10px; white-space: nowrap; }
  .deco-fantome { left: -6px; top: 10px; width: 70px; }
  .objet-saison { left: 36%; bottom: 34%; width: 24%; }
}


/* ==========================================================================
   POUR LES MÉFIANTS : « Vous n'aimez pas l'IA ? Vous avez le droit. »
   ========================================================================== */

.mefiant { padding-top: 34px; }
.mefiant-num {
  position: absolute; top: -22px; left: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--fluo); border: var(--bord); display: grid; place-items: center;
  font-family: var(--titre); font-weight: 800; font-size: 1.3rem;
}
.mefiants-grille { margin-top: 18px; row-gap: 40px; }
.avoir {
  margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  background: var(--nuit); color: #fff; border: var(--bord); border-radius: var(--rayon-l); padding: clamp(24px, 4vw, 44px); box-shadow: var(--ombre-l);
}
.avoir .main { color: var(--fluo); font-size: 1.7rem; margin-bottom: 6px; }
.avoir h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.avoir p { color: #D9DDF8; margin: 0; }
@media (max-width: 800px) { .avoir { grid-template-columns: minmax(0, 1fr); } }



/* ==========================================================================
   LE MOUVEMENT AU DÉFILEMENT (posé par mouvement.js, classe html.mouvement)
   --------------------------------------------------------------------------
   Les apparitions utilisent les propriétés translate, scale et rotate, jamais
   transform : les objets déjà inclinés (polaroïd, bon cadeau) gardent leur
   inclinaison, et le survol des cartes continue de marcher.
   ========================================================================== */

@property --rev { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --r { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Les cascades : chaque élément arrive un peu plus tard que son voisin. */
.mouvement .revele {
  opacity: 0; --rev: 46px; scale: .95; rotate: var(--r, 0deg);
  transition: opacity 800ms var(--courbe) var(--d, 0ms), --rev 1000ms var(--courbe) var(--d, 0ms),
    scale 1000ms var(--courbe) var(--d, 0ms), rotate 1000ms var(--courbe) var(--d, 0ms);
}
.mouvement .revele.vu { opacity: 1; --rev: 0px; scale: 1; rotate: 0deg; }

/* La profondeur : ces objets glissent un peu moins vite que la page. */
.mouvement .revele,
.mouvement .polaroid, .mouvement .bon, .mouvement .guide-pile, .mouvement .telephone-cadre,
.mouvement .visio-scene, .mouvement .carte-cadre, .mouvement .lettre, .mouvement .formule-recommandee {
  translate: 0 calc(var(--rev, 0px) + var(--px, 0px));
}

/* Les titres montent mot par mot, comme sortis d'une fente. */
.mouvement .titre-anime .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.mouvement .titre-anime .mot-dedans {
  display: inline-block; translate: 0 108%; rotate: 7deg;
  transition: translate 900ms var(--courbe) calc(var(--i) * 55ms), rotate 900ms var(--courbe) calc(var(--i) * 55ms);
}
.mouvement .titre-anime.vu .mot-dedans { translate: 0 0; rotate: 0deg; }

/* Les grands chiffres rebondissent, les icônes frétillent. */
.mouvement .etape.vu .etape-num,
.mouvement .mefiant.vu .mefiant-num { animation: rebond 800ms cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--d, 0ms) + 250ms); }
.mouvement .usage.vu .icone { animation: gigote 900ms ease-in-out both; animation-delay: calc(var(--d, 0ms) + 350ms); }
@keyframes rebond { from { scale: .2; rotate: -24deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes gigote { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 11deg; } 60% { rotate: -7deg; } 80% { rotate: 3deg; } }

/* La signature d'Estelle s'écrit. */
.mouvement .lettre .signature { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms steps(16, end) 700ms; }
.mouvement .lettre.vu .signature { clip-path: inset(0 -10% 0 0); }

/* La carte de France se dessine au trait, puis se remplit. */
.carte-a-dessiner .carte-pays { fill-opacity: 0; transition: stroke-dashoffset 2400ms cubic-bezier(.6, 0, .2, 1), fill-opacity 800ms 2000ms; }
.carte-a-dessiner.vu .carte-pays { fill-opacity: 1; }
.carte-a-dessiner > path:first-child, .carte-a-dessiner .carte-alsace, .carte-a-dessiner .carte-zone, .carte-a-dessiner .carte-zone-bord, .carte-a-dessiner .carte-zone-onde, .carte-a-dessiner .carte-loupe, .carte-a-dessiner .carte-points, .carte-a-dessiner .carte-note { opacity: 0; transition: opacity 700ms 2200ms; }
.carte-a-dessiner .carte-note-alsace { transition-delay: 2700ms; }
.carte-a-dessiner.vu > path:first-child, .carte-a-dessiner.vu .carte-alsace, .carte-a-dessiner.vu .carte-zone, .carte-a-dessiner.vu .carte-zone-bord, .carte-a-dessiner.vu .carte-zone-onde, .carte-a-dessiner.vu .carte-loupe, .carte-a-dessiner.vu .carte-points, .carte-a-dessiner.vu .carte-note { opacity: 1; }

/* L'en-tête se resserre, et la barre de lecture avance. */
.entete .conteneur { transition: min-height 300ms var(--courbe); }
.mouvement .entete.colle .conteneur { min-height: 68px; }
.progression { position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; background: var(--fluo); border-bottom: 1px solid var(--encre); transform-origin: left center; transform: scaleX(0); z-index: 41; pointer-events: none; }

/* ==========================================================================
   LES PETITS ROBOTS D'ESTELLE, ET BIP, L'ASSISTANT
   ========================================================================== */

/* Le logo : le robot à gauche du nom. */
.logo { flex-direction: row; align-items: center; gap: 10px; }
.logo-robot-cadre { position: relative; flex: none; width: 62px; margin-block: 6px 2px; }
.logo-robot { width: 62px; height: auto; transform-origin: 50% 90%; transition: transform 300ms var(--courbe), width 300ms var(--courbe); animation: logo-flotte 3.2s ease-in-out infinite alternate; }
@keyframes logo-flotte { from { translate: 0 1px; } to { translate: 0 -4px; } }
.logo:hover .logo-robot { transform: rotate(-10deg) scale(1.1); }
.logo-textes { display: flex; flex-direction: column; line-height: 1; }
.logo-marque {
  align-self: flex-start; margin-top: 4px; font-family: var(--titre); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  color: var(--encre); background: var(--fluo); border-radius: 4px; padding: 1px 6px 2px; rotate: -2deg; transition: rotate 300ms var(--courbe), background 300ms;
}
.logo:hover .logo-marque { rotate: 1deg; }
.pied .logo-marque { color: var(--encre); }
.tiroir .logo-robot-cadre, .tiroir .logo-robot { width: 48px; }
.entete.colle .logo-robot-cadre, .entete.colle .logo-robot { width: 50px; }
@media (max-width: 680px) { .logo-robot-cadre, .logo-robot { width: 46px; } .logo-marque { font-size: .9rem; } }
/* Les chapeaux de saison se posent sur la tête du robot. */
.deco-chapeau { width: 40px; left: 50%; right: auto; top: -24px; translate: -50% 0; rotate: -10deg; }
.deco-bonnet-logo { width: 38px; left: 55%; right: auto; top: -20px; translate: -50% 0; rotate: 16deg; }

/* Les robots posés dans les sections. */
.robot-deco { position: absolute; height: auto; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 0 rgba(23, 22, 28, .08)); }
.robot-demo { width: clamp(110px, 12vw, 170px); left: calc(50% - min(190px, 50%) - clamp(80px, 9vw, 130px)); bottom: 70px; rotate: -6deg; }
.guide-pile { position: relative; }
.robot-lettre { width: clamp(100px, 11vw, 150px); left: -14%; bottom: -18px; rotate: -5deg; }
.bon { overflow: visible; }
.robot-cadeau { width: clamp(100px, 11vw, 150px); right: -10%; bottom: -46px; rotate: 6deg; }
.robot-404 { position: static; display: block; width: 160px; margin-bottom: 12px; }
@media all {
  .robot-deco:not(.robot-404) { animation: robot-flotte 3.6s ease-in-out infinite alternate; }
  .robot-lettre { animation-delay: -1.2s; }
  .robot-cadeau { animation-delay: -2.4s; }
}
@keyframes robot-flotte { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (max-width: 900px) {
  .robot-demo { width: 92px; left: -4px; bottom: 30px; }
  .robot-lettre { width: 90px; left: -6px; bottom: -24px; }
  .robot-cadeau { width: 92px; right: -6px; bottom: -40px; }
}

/* --- Bip : le bouton ------------------------------------------------------- */
.bip-bouton {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 78px; height: 78px; border-radius: 50%;
  background: var(--fluo); border: var(--bord); box-shadow: var(--ombre); padding: 6px; cursor: pointer;
  display: grid; place-items: center; transition: transform 200ms var(--courbe);
}
.bip-bouton:hover { transform: translate(-2px, -2px) rotate(-4deg); }
.bip-bouton img { width: 100%; height: auto; }
.bip-bulle {
  position: absolute; right: calc(100% + 12px); bottom: 14px; white-space: nowrap; background: #fff; border: var(--bord);
  border-radius: 16px 16px 4px 16px; padding: 8px 14px; font-size: 1rem; color: var(--encre); box-shadow: 3px 3px 0 var(--encre);
  opacity: 0; translate: 10px 0; pointer-events: none; transition: opacity 400ms var(--courbe), translate 400ms var(--courbe);
}
.bip-bouton:hover .bip-bulle, .bip-bouton.bip-appel .bip-bulle { opacity: 1; translate: 0 0; }
.bip-ouvert .bip-bouton .bip-bulle { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bip-bouton.bip-appel img { animation: bip-coucou 1.4s ease-in-out 2; }
}
@keyframes bip-coucou { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 75% { rotate: 10deg; } }

/* --- Bip : la fenêtre ------------------------------------------------------ */
.bip-fenetre {
  position: fixed; right: 18px; bottom: 108px; z-index: 71; width: min(410px, calc(100vw - 24px)); height: min(620px, calc(100vh - 140px));
  display: flex; flex-direction: column; background: var(--papier); border: var(--bord); border-radius: 24px; box-shadow: var(--ombre-l); overflow: hidden;
}
.bip-fenetre[hidden] { display: none; }
.bip-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--nuit); color: #fff; }
.bip-tete img { width: 46px; height: auto; background: var(--fluo); border-radius: 50%; border: 2px solid #000; padding: 3px; }
.bip-tete p { margin: 0; color: #fff; }
#bip-titre { font-family: var(--titre); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.bip-statut { font-size: .85rem; color: #D9DDF8 !important; }
.bip-fermer { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.bip-fil { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.bip-message { max-width: 90%; padding: 10px 14px; border-radius: 18px; font-size: 1.05rem; line-height: 1.45; border: 2px solid var(--encre); }
.bip-message p { margin: 0 0 .5em; } .bip-message p:last-child { margin: 0; }
.bip-message ul { margin: .2em 0 .5em; padding-left: 1.2em; }
.bip-lui { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.bip-moi { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 5px; }
.bip-moi p { color: #fff; }
.bip-exemples { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.bip-exemples[hidden] { display: none; }
.bip-exemples button { font: inherit; font-size: .98rem; font-weight: 700; background: var(--fluo-2); border: 2px solid var(--encre); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 40px; text-align: left; }
.bip-exemples button:hover { background: var(--fluo); }
.bip-saisie { display: flex; gap: 8px; padding: 10px 12px; border-top: 2px solid var(--encre); background: #fff; align-items: flex-end; }
.bip-saisie textarea { flex: 1; min-height: 50px; max-height: 140px; resize: none; font-size: 1.05rem; padding: 12px 14px; border-radius: 14px; }
.bip-envoyer { width: 52px; height: 52px; flex: none; border-radius: 50%; border: var(--bord); background: var(--bleu); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bip-envoyer svg { width: 24px; height: 24px; }
.bip-envoyer[disabled] { opacity: .5; cursor: progress; }
.bip-mention { margin: 0; padding: 6px 12px 10px; font-size: .82rem; color: var(--encre-2); background: #fff; }
@media (max-width: 560px) {
  .bip-bouton { width: 66px; height: 66px; right: 12px; bottom: 12px; }
  .bip-fenetre { right: 0; left: 0; bottom: 0; width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; border-width: 0; }
  .bip-ouvert .bip-bouton { display: none; }
  .bip-bulle { font-size: .9rem; }
}
/* Le sélecteur d'aperçu des saisons ne doit pas passer sous le bouton. */
.apercu-theme { max-width: calc(100vw - 120px); }

/* ==========================================================================
   LE MOUVEMENT DOUX : pour les ordinateurs réglés sur « moins d'animations »
   --------------------------------------------------------------------------
   Beaucoup de PC Windows ont les « effets d'animation » coupés sans que leurs
   utilisateurs le sachent, et le navigateur l'annonce aux sites. On n'y coupe
   que ce qui peut donner le tournis : les grands déplacements, la profondeur,
   les objets qui volent. On garde ce qui est doux : les fondus, les titres qui
   apparaissent, le surligneur, le stylo rouge, les prix qui comptent, la
   carte qui se dessine. C'est ce qu'autorisent les règles d'accessibilité.
   ========================================================================== */

@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  /* L'ouverture : la phrase apparaît, puis le stylo corrige. */
  .une-ligne .une-mot { animation: fondu 900ms ease both; }
  .une-ligne:nth-child(2) .une-mot { animation-delay: 150ms; }
  .une-ligne:nth-child(3) .une-mot { animation-delay: 300ms; }
  .rature .r1 { animation: une-trait 420ms ease 1150ms both; }
  .rature .r2 { animation: une-trait 380ms ease 1480ms both; }
  .aussi { animation: une-ecrit 700ms steps(14, end) 1850ms both; }
  .une-fluo { animation: une-surligne 800ms ease 2500ms both; }
  .une-chapeau, .une-boutons, .objet { animation: fondu 800ms ease 700ms both; }
  .objet-bulles { animation-delay: 1000ms; }
  .objet-tampon, .objet-prix { animation-delay: 1300ms; }
}

/* Les cascades et les titres, sans déplacement. */
.mouvement-doux .revele { --rev: 0px !important; scale: 1 !important; rotate: 0deg !important; transition: opacity 900ms ease var(--d, 0ms); }
.mouvement-doux .titre-anime .mot-dedans { translate: 0 0 !important; rotate: 0deg !important; opacity: 0; transition: opacity 700ms ease calc(var(--i) * 70ms); }
.mouvement-doux .titre-anime.vu .mot-dedans { opacity: 1; }
.mouvement-doux .etape.vu .etape-num, .mouvement-doux .mefiant.vu .mefiant-num { animation: fondu 700ms ease both; animation-delay: calc(var(--d, 0ms) + 250ms); }
.mouvement-doux .usage.vu .icone { animation: none; }
.mouvement-doux .polaroid, .mouvement-doux .bon, .mouvement-doux .guide-pile, .mouvement-doux .telephone-cadre,
.mouvement-doux .visio-scene, .mouvement-doux .carte-cadre, .mouvement-doux .lettre, .mouvement-doux .formule-recommandee { --px: 0px !important; }

/* ==========================================================================
   LE SURVOL : de petites réponses quand la souris passe
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .carte { transition: transform 250ms var(--courbe), box-shadow 250ms var(--courbe); }
  .carte.usage:hover, .carte.mefiant:hover, .carte.formule:hover, .structures-liste:hover, .tableau-prix-cadre:hover { transform: translate(-3px, -3px); box-shadow: var(--ombre-l); }
  .usage .icone { transition: rotate 300ms var(--courbe), scale 300ms var(--courbe); }
  .usage:hover .icone { rotate: -10deg; scale: 1.12; }
  .mefiant-num, .etape-num, .theme-num { transition: rotate 300ms var(--courbe), scale 300ms var(--courbe), color 300ms; }
  .etape-num, .theme-num { display: inline-block; }
  .mefiant:hover .mefiant-num { rotate: 12deg; scale: 1.15; }
  .etape:hover .etape-num, .theme:hover .theme-num { rotate: -8deg; scale: 1.12; }

  /* Le menu : le surligneur passe sous le lien survolé. */
  .nav a:not([aria-current]) { background-image: linear-gradient(100deg, transparent 2%, var(--fluo) 4% 96%, transparent 98%); background-repeat: no-repeat; background-size: 0% 72%; background-position: 0 70%; transition: background-size 350ms var(--courbe); }
  .nav a:not([aria-current]):hover { background-color: transparent; background-size: 100% 72%; }

  .lien-fleche { transition: text-decoration-color 200ms, color 200ms; }
  .lien-fleche::after { content: " \2192"; display: inline-block; transition: translate 250ms var(--courbe); }
  .lien-fleche:hover::after { translate: 5px 0; }

  .polaroid { transition: transform 400ms var(--courbe); }
  .polaroid:hover { transform: rotate(0deg) scale(1.03); }
  .bon { transition: transform 400ms var(--courbe); }
  .bon:hover { transform: rotate(-1deg) scale(1.02); }
  .guide-pile .guide-feuille:not(.guide-dessous) { transition: rotate 400ms var(--courbe); }
  .guide-pile:hover .guide-feuille:not(.guide-dessous) { rotate: 0deg; }

  .robot-deco:not(.robot-404) { pointer-events: auto; cursor: default; }
  .robot-deco { transition: scale 250ms var(--courbe); }
  .robot-deco:hover { scale: 1.08; animation: robot-joie 600ms ease-in-out; }

  .communes li { transition: background-color 200ms, translate 200ms var(--courbe); }
  .communes li:hover { background: var(--fluo-2); translate: 0 -3px; }
  .faq summary::after { transition: transform 250ms var(--courbe), background-color 200ms; }
  .faq details:not([open]) summary:hover::after { transform: rotate(90deg); background-color: var(--fluo); }
  .tableau-prix tbody tr { transition: background-color 200ms; }
  .tableau-prix tbody tr:hover { background: var(--fluo-2); }
  .option-corps:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--encre); }
  .pied a { background-image: linear-gradient(var(--fluo), var(--fluo)); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%; transition: background-size 300ms var(--courbe); text-decoration: none !important; }
  .pied a:hover { background-size: 100% 2px; }
  .numero-geant:hover { transform: rotate(1deg) scale(1.04); }
  .surtitre { transition: background-color 200ms; }
  .section:hover > .conteneur > .entete-section .surtitre::before { background: var(--corail); }
}
@keyframes robot-joie { 0%, 100% { rotate: 0deg; } 30% { rotate: -9deg; } 65% { rotate: 7deg; } }

/* ==========================================================================
   LES ROBOTS DE SAISON
   ========================================================================== */
/* Dans l'ouverture de l'accueil : le robot déguisé tient le code promo. */
.objet-saison.robot-saison { width: 21%; top: -13%; bottom: auto; left: 34%; rotate: -6deg; }
.objet-saison.robot-saison img { width: 100%; height: auto; display: block; filter: drop-shadow(4px 5px 0 rgba(23, 22, 28, .9)); }
.objet-saison.robot-saison span { top: auto; bottom: -6%; left: 50%; rotate: -4deg; background: var(--fluo); }
:root[data-theme="halloween"] .objet-saison.robot-saison span { background: #FF9A3C; }
:root[data-theme="noel"] .objet-saison.robot-saison span { background: #fff; color: #B3261E; }
@media (max-width: 900px) { .objet-saison.robot-saison { width: 22%; left: 36%; top: -12%; bottom: auto; } }

/* Dans le ciel : un robot déguisé traverse la page de temps en temps. */
.robot-ciel { position: absolute; width: clamp(64px, 7vw, 104px); top: 46%; left: -14%; }
.robot-ciel img { width: 100%; height: auto; display: block; }
.robot-ciel { animation: robot-ciel 34s linear infinite; animation-delay: -9s; }
@keyframes robot-ciel {
  0% { transform: translate(0, 0) rotate(-8deg); }
  15% { transform: translate(24vw, -60px) rotate(6deg); }
  30% { transform: translate(52vw, 10px) rotate(-6deg); }
  45% { transform: translate(84vw, -40px) rotate(8deg); }
  55%, 100% { transform: translate(128vw, -20px) rotate(0deg); }
}
@media (max-width: 680px) { .robot-ciel { display: none; } }

/* Bip se déguise, lui aussi. */
:root[data-theme="halloween"] .bip-bouton { background: #FF9A3C; }
:root[data-theme="noel"] .bip-bouton { background: #fff; box-shadow: 4px 4px 0 #0B6B3A; }

/* L'aperçu des thèmes (visible seulement avec ?theme=) : sur téléphone, la barre
   prend toute la largeur en bas, et Bip monte d'un cran pour lui laisser la place. */
@media (max-width: 680px) {
  .apercu-theme { max-width: none; left: 8px; right: 8px; justify-content: space-between; gap: 4px; }
  .apercu-theme > span { display: none; }
  .apercu-theme button { padding: 2px 8px; font-size: .78rem; }
  .avec-apercu .bip-bouton { bottom: 72px; }
}

/* ==========================================================================
   LES RETOURS DU 25 SEPTEMBRE
   ========================================================================== */
/* Les décors passent derrière le texte : le contenu des pages monte au-dessus
   du ciel de saison. Ses zones vides restent transparentes, on voit donc les
   objets voler entre les blocs, jamais par-dessus une phrase. */
:root[data-theme] main .conteneur, :root[data-theme] .pied .conteneur { position: relative; z-index: 31; }

/* La fin de page : moins de vide sous le formulaire de rappel. */
section.appel { padding-bottom: clamp(56px, 7vw, 96px); }
.rappel-mini .message:empty { display: none; }
:root[data-theme] .pied { padding-top: 18px; }
:root[data-theme] .deco-scene-pied { margin: 0 auto 36px; height: auto; align-items: flex-end; flex-wrap: wrap; row-gap: 0; }
.pied-legende { flex: 0 0 100%; margin: 0 0 6px; text-align: center; font-family: var(--main); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #FFB870; }
:root[data-theme="halloween"] .pied-objet:nth-child(even) { width: clamp(84px, 11vw, 138px); }
:root[data-theme="halloween"] .pied-objet:nth-child(odd) { width: clamp(52px, 7vw, 88px); }

/* Les chauves-souris : une sur deux traverse de droite à gauche. */
.deco-ciel-vol.c4 { top: 50%; width: clamp(38px, 4vw, 60px); }
.deco-ciel-vol.retour { left: auto; right: -12%; animation-name: vol-ciel-retour; }
.deco-ciel-vol.retour svg { transform: scaleX(-1); }
.deco-ciel-vol.c4 { animation-duration: 26s; animation-delay: -19s; }
@keyframes vol-ciel-retour {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30vw, 36px); }
  40% { transform: translate(-60vw, -24px); }
  60% { transform: translate(-90vw, 30px); }
  70%, 100% { transform: translate(-130vw, 0); }
}

/* Le robot qui vole : plus petit. */
.robot-ciel { width: clamp(48px, 5vw, 74px); }

/* La neige : de vrais cristaux. */
.flocon { opacity: 1; filter: drop-shadow(0 1px 1px rgba(33, 54, 196, .18)); }

/* Le traîneau : vers la gauche, en vagues, sous le menu, et il lâche un cadeau. */
.deco-traineau { width: clamp(230px, 27vw, 400px); top: 30%; left: 104%; animation: traineau 32s linear infinite; animation-delay: -4s; }
.deco-traineau svg { width: 100%; height: auto; display: block; }
.traineau-vague { animation: traineau-vague 3.4s ease-in-out infinite alternate; transform-origin: 70% 60%; }
.cadeau-lache { position: absolute; left: 84%; top: 20%; width: 8%; animation: cadeau-lache 32s linear infinite; animation-delay: -4s; }
.cadeau-chute { opacity: 0; animation: cadeau-chute 32s linear infinite; animation-delay: -4s; }
/* Le trajet se mesure en largeur d'écran PLUS la largeur du traîneau et de sa
   traînée : sur téléphone, il sort ainsi entièrement de l'écran. */
@keyframes traineau {
  0% { transform: translate(0, 0); }
  12% { transform: translate(calc((-104vw - 140% - 40px) * .25), -60px); }
  24% { transform: translate(calc((-104vw - 140% - 40px) * .5), 30px); }
  36% { transform: translate(calc((-104vw - 140% - 40px) * .75), -40px); }
  48%, 100% { transform: translate(calc(-104vw - 140% - 40px), 10px); }
}
@media (max-width: 680px) { .deco-traineau { width: 180px; top: 34%; } }
@keyframes traineau-vague { from { transform: translateY(-14px) rotate(3deg); } to { transform: translateY(14px) rotate(-3deg); } }
@keyframes cadeau-lache {
  0%, 20% { transform: translateX(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  38% { transform: translateX(24vw); }
  38.5%, 100% { transform: translateX(0); }
}
@keyframes cadeau-chute {
  0%, 20% { opacity: 0; transform: translateY(0) rotate(0deg); }
  21% { opacity: 1; transform: translateY(0) rotate(0deg); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  38% { opacity: 1; transform: translateY(75vh) rotate(260deg); }
  38.5%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
}

/* La loupe de la carte grossit quand on la survole ou qu'on la touche. */
.carte-france { overflow: visible; }
.loupe-disque { transition: scale 450ms var(--courbe); cursor: zoom-in; }
.carte-loupe:hover .loupe-disque, .loupe-disque.zoom { scale: 1.32; cursor: zoom-out; }

/* Bip garde une tête ronde, quelle que soit l'image. */
.bip-tete img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.bip-bouton img { height: 100%; object-fit: contain; }

/* ==========================================================================
   LES RETOURS DU 25 SEPTEMBRE (2)
   ========================================================================== */
/* La guirlande garde sa taille : plus longue que l'écran, jamais étirée. */
.deco-guirlande { height: 40px; }
.deco-guirlande svg { width: 4000px; max-width: none; height: 36px; }

/* Les chapeaux du logo sont posés sur la boîte du robot, pas au-dessus des antennes. */
.deco-chapeau { width: 84%; left: 50%; right: auto; top: -33%; translate: -50% 0; rotate: -8deg; }
.deco-bonnet-logo { width: 80%; left: 54%; right: auto; top: -40%; translate: -50% 0; rotate: 8deg; }

/* L'étiquette « Bouh ! -15 % » passe sous le robot, sans cacher sa citrouille. */
.objet-saison.robot-saison span { top: 100%; bottom: auto; translate: -50% -35%; }

/* Le menu : au survol, la bulle se remplit entièrement. */
@media (hover: hover) and (pointer: fine) {
  .nav a:not([aria-current]) { background-image: linear-gradient(var(--fluo), var(--fluo)); background-size: 0% 100%; background-position: left center; }
  .nav a:not([aria-current]):hover { background-size: 100% 100%; }
}

/* Les rennes galopent : les pattes avant et arrière battent à contretemps. */
.patte { transform-box: fill-box; transform-origin: 50% 0; animation: galop .42s ease-in-out infinite alternate; }
.patte-ar { animation-direction: alternate-reverse; }
@keyframes galop { from { rotate: 24deg; } to { rotate: -22deg; } }

/* La traînée d'étoiles derrière le traîneau (il file vers la gauche, elle est à droite). */
.traine { position: absolute; left: 96%; top: 30%; width: 40%; height: 60%; }
.traine span { position: absolute; width: 24px; animation: scintille 1.3s ease-in-out infinite; opacity: 0; }
.traine svg { width: 100%; display: block; }
.traine .t0 { left: 2%; top: 30%; } .traine .t1 { left: 16%; top: 70%; width: 18px; animation-delay: -.3s; }
.traine .t2 { left: 30%; top: 10%; width: 17px; animation-delay: -.6s; } .traine .t3 { left: 44%; top: 55%; animation-delay: -.9s; }
.traine .t4 { left: 60%; top: 25%; width: 16px; animation-delay: -.2s; } .traine .t5 { left: 76%; top: 75%; width: 14px; animation-delay: -.75s; }
.traine .t6 { left: 90%; top: 40%; width: 12px; animation-delay: -1.05s; }
@keyframes scintille { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Deux étoiles filantes, de temps en temps. */
.etoile-filante { position: absolute; width: clamp(110px, 12vw, 170px); height: 4px; border-radius: 4px; opacity: 0;
  background: linear-gradient(90deg, #FFC83D, rgba(255, 200, 61, 0)); animation: filante 17s linear infinite; }
.etoile-filante.f0 { top: 12%; left: 78%; }
.etoile-filante.f1 { top: 22%; left: 46%; animation-duration: 23s; animation-delay: -9s; }
.filante-tete { position: absolute; left: -9px; top: 50%; width: 20px; translate: 0 -50%; }
.filante-tete svg { width: 100%; display: block; }
@keyframes filante {
  0% { opacity: 0; transform: translate(0, 0) rotate(-22deg); }
  1% { opacity: 1; }
  6% { opacity: 1; }
  8% { opacity: 0; transform: translate(-38vw, 15vw) rotate(-22deg); }
  100% { opacity: 0; transform: translate(-38vw, 15vw) rotate(-22deg); }
}

/* ==========================================================================
   LA TOURNÉE MOBILE DU 25 SEPTEMBRE (outils/verif-mobile.mjs)
   ========================================================================== */
/* Des zones à toucher d'au moins 44 px de haut, pour des doigts pas toujours sûrs. */
.lien-fleche { display: inline-block; padding-block: 10px; }
.toutes-communes > summary { display: inline-block; padding-block: 10px; }
.case input { width: 30px; height: 30px; }
.pied-bas a { display: inline-block; padding-block: 10px; }

@media (max-width: 680px) {
  /* Sur téléphone, pas de marge où poser les décors : les toiles s'en vont,
     et ce qui reste se range, en petit, dans le vide au-dessus et au-dessous
     du contenu de chaque section. */
  .tete-page .deco-toile, .section-saison > .deco-toile, .tete-page .deco-vol { display: none; }
  .section-serree.section-saison { padding-block: 64px; }
  .section-saison > .deco-coin-haut-d, .section-saison > .deco-coin-haut-g { width: 40px; top: 4px; }
  .section-saison > .deco-chaussettes { width: 46px; }
  .section-saison .suspendu { --fil: 8px !important; }
  .section-saison > .deco-coin-bas-d, .section-saison > .deco-coin-bas-g { width: 48px; bottom: 4px; }
  .section-saison > .deco-paire { width: 76px; }

  /* Le cimetière et le village tiennent sur une ligne. */
  :root[data-theme] .deco-scene-pied { gap: 4px; padding: 0 8px; margin-bottom: 24px; }
  :root[data-theme="halloween"] .pied-objet:nth-child(even) { width: 70px; }
  :root[data-theme="halloween"] .pied-objet:nth-child(odd) { width: 42px; }
  :root[data-theme="noel"] .pied-objet { width: 56px; }

  /* Les robots des sections se perchent en haut à droite, loin des phrases. */
  .robot-demo { width: 70px; left: auto; right: -6px; top: -30px; bottom: auto; rotate: 8deg; }
  .robot-lettre { width: 70px; left: auto; right: 4px; top: -30px; bottom: auto; }

  /* La bulle de Bip ne cache pas les boutons : plus courte, et elle se retire seule (assistant.js). */
  .bip-bulle { font-size: .9rem; padding: 6px 10px; }
}
/* Menu ouvert : Bip s'efface pour ne pas cacher « Réserver en ligne ». */
:root:has(.tiroir:not([hidden])) .bip-bouton { visibility: hidden; }
