/* Kalma, site commercial : feuille commune à toutes les pages (extraite de l'accueil validé le 24/10/2026). */
@font-face { font-family: "Markazi Text"; src: url("../polices/MarkaziText-Latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter"; src: url("../polices/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../polices/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../polices/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --lin: #fbfaf7; --surface: #ffffff; --encre: #0f2e4a; --encre-2: #4a5560;
  --bleu: #1d5c96; --filet: #e6e1d7; --voile: #f4f1ec; --sur-bande: #f4f1ec;
  --voile-action: #d9e6f2; --voile-neutre: #f1eee8;
  --f-titre: "Markazi Text", Georgia, serif;
  --f-texte: "Inter", system-ui, sans-serif;
  --f-arabe: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --r: 14px; --r-sm: 7px;
  --g: clamp(1rem, 4vw, 2.5rem);
  --largeur: 76rem;
  --ombre-1: 0 4px 14px -6px rgb(15 46 74 / 0.2);
  --ombre-2: 0 24px 60px -20px rgb(15 46 74 / 0.35), 0 4px 14px -6px rgb(15 46 74 / 0.2);
  --courbe: cubic-bezier(0.2, 0, 0, 1);
  --courbe-logo: cubic-bezier(0.45, 0, 0.25, 1); /* départ doux : le logo ne « sort » pas d'un coup */
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--lin); color: var(--encre); font: 400 1.0625rem/1.6 var(--f-texte); }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; margin: 0; line-height: 1; }
h1 strong, h2 strong { font-weight: 700; }
p { margin: 0; }
a { color: var(--bleu); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.encre :focus-visible { outline-color: var(--sur-bande); }
.cadre { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--g); }
.surtitre { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-2); }
.picto { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; } /* masque : dans chaque page, voir le commentaire de la page */

.cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 600; text-decoration: none; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--encre); opacity: 0; }
.cta:hover::after { opacity: 0.35; }
.cta.trait { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); min-height: 2.5rem; padding-inline: 1.1rem; }
.cta.trait:hover::after { opacity: 0.08; }
.encre .cta { background: var(--surface); color: var(--encre); }
.encre .cta:hover::after { opacity: 0.08; }
.lien { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Navigation en pilule flottante */
.pilule { position: sticky; top: 0.75rem; z-index: 20; display: flex; align-items: center; gap: 1.5rem; max-width: 72rem; margin: 0.75rem auto 0; padding: 0.45rem 0.45rem 0.45rem 1.75rem; background: var(--surface); border: 1px solid var(--filet); border-radius: 999px; box-shadow: var(--ombre-1); }
.pilule .logo { display: block; flex: none; height: 20px; width: 85px; overflow: visible; } /* 20 × 156,4 / 36,93 : logo français, sans « كلمة » (éditeur, 24/10/2026) */
.pilule nav { display: flex; align-items: center; gap: 1.5rem; margin-inline-start: auto; font-size: 0.9375rem; font-weight: 600; }
.pilule nav a:not(.cta) { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); text-decoration: none; }
.menu-bouton { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-start: auto; padding: 0; color: var(--encre); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.menu-bouton:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.pilule .ar { font-family: var(--f-arabe); font-weight: 400; }

/* 1. Haut de page : titre centré, scène peinte, fenêtre d'agenda posée devant */
.haut { padding: clamp(3rem, 7vw, 5rem) var(--g) 0; text-align: center; }
.haut-texte { max-width: 46rem; margin-inline: auto; display: grid; justify-items: center; gap: 1.25rem; }
.haut h1 { font-size: calc(clamp(2.25rem, 5vw, 3.5rem) * 1.35); }
.haut .chapeau { font-size: 1.1875rem; color: var(--encre-2); max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; align-items: center; }
.tableau { position: relative; max-width: var(--largeur); margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding-bottom: clamp(6rem, 16vw, 13rem); }
.scene { display: block; width: 100%; height: auto; border-radius: var(--r); }
.fenetre { position: absolute; inset-inline: 0; bottom: 0; margin: 0 auto; width: min(88%, 52rem); text-align: start; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre-2); overflow: hidden; }
.fen-barre { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--filet); font-size: 0.8125rem; font-weight: 600; }
.fen-barre i { width: 9px; height: 9px; border-radius: 50%; background: var(--filet); }
.fen-barre span:first-of-type { margin-inline-start: 0.6rem; }
.fen-barre .qui { margin-inline-start: auto; color: var(--encre-2); font-weight: 400; }
.fen-grille { display: grid; grid-template-columns: 3.25rem repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0.9rem 1rem 1.1rem; }
.fen-heures, .fen-col { position: relative; height: 15rem; }
.fen-heures { margin-top: 1.6rem; font-size: 0.75rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.fen-heures span { position: absolute; top: var(--y); }
.fen-col b { display: flex; align-items: center; gap: 0.4rem; height: 1.6rem; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fen-col b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rdv { position: absolute; inset-inline: 0; top: calc(1.6rem + var(--y) * 0.89); height: calc(var(--h) * 0.89); padding: 0.3rem 0.55rem; border-radius: var(--r-sm); background: var(--v); border-inline-start: 3px solid var(--c); font-size: 0.75rem; font-weight: 600; line-height: 1.25; overflow: hidden; }
.rdv small { display: block; font-weight: 400; color: var(--encre-2); }
.rdv.libre { background: transparent; border: 1.5px dashed var(--bleu); color: var(--bleu); }
.fenetre figcaption { padding: 0 1rem 0.8rem; font-size: 0.75rem; color: var(--encre-2); }

/* 2. Kalma s'adapte : un rôle au choix, l'écran change (boutons radio natifs, flèches au clavier) */
.roles { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.roles h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: 1rem; }
.choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem clamp(1rem, 4vw, 3.5rem); margin: 2.5rem 0 0; padding: 0; border: 0; }
.choix label { position: relative; display: grid; justify-items: center; gap: 0.5rem; min-width: 7rem; padding: 0.75rem 0.5rem; border-radius: var(--r); font-weight: 600; font-size: 0.9375rem; cursor: pointer; color: var(--encre-2); }
.choix .picto { width: 34px; height: 34px; }
.choix input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: inherit; cursor: pointer; }
.choix input:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.choix label:has(:checked) { color: var(--encre); background: var(--voile); }
.vue { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin-top: 2.5rem; text-align: start; border-radius: var(--r); background: var(--voile); padding: clamp(1.5rem, 4vw, 3rem); }
.roles:has(#r-sec:checked) #v-sec, .roles:has(#r-pra:checked) #v-pra, .roles:has(#r-ass:checked) #v-ass, .roles:has(#r-ger:checked) #v-ger { display: grid; }
.vue h3 { font-size: 2.1rem; font-weight: 700; }
.vue p { margin-top: 0.9rem; color: var(--encre-2); max-width: 42ch; }
.vue img { display: block; width: min(100%, 300px); justify-self: center; border-radius: var(--r); border: 1px solid var(--filet); box-shadow: var(--ombre-1); }

/* 3-5. Le parcours : un grand panneau pastel par étape, comme les blocs de Craft */
.etape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin: 1.25rem auto; padding: clamp(2rem, 6vw, 4.5rem); border-radius: var(--r); }
.etape.bleu { background: var(--voile-action); }
/* Rythme des étapes : bleu pâle, sable, encre. Le sable est le filet de la charte, celui de l'illustration. */
.etape.sable { background: var(--filet); }
.etape.encre { background: var(--encre); color: var(--sur-bande); }
.etape.encre .surtitre, .etape.encre .texte, .etape.encre .preuve figcaption { color: rgb(244 241 236 / 0.8); }
.etape.encre .puces li { color: var(--encre); }
.etape.encre .preuve video { border-color: rgb(244 241 236 / 0.2); }
/* Un morceau d'agenda posé sur l'écran : la couleur du praticien, toujours DANS un écran de l'application. */
.carte-rdv { position: absolute; z-index: 2; inset-inline-start: -2.5rem; top: 12%; display: grid; gap: 0.1rem; min-width: 11rem; padding: 0.55rem 0.8rem; border-radius: var(--r-sm); background: var(--v); border-inline-start: 3px solid var(--c); box-shadow: var(--ombre-1); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--encre); }
.carte-rdv small { display: flex; align-items: center; gap: 0.35rem; font-weight: 400; color: var(--encre-2); }
.carte-rdv small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.carte-rdv.bas { top: auto; bottom: 22%; inset-inline-start: auto; inset-inline-end: -2.5rem; }
/* Fin de page sur l'encre : l'appel final et le pied ne font qu'un bloc, le soir au cabinet. */
.soir-bande { background: var(--encre); color: var(--sur-bande); margin-top: 1.25rem; }
.soir-bande .final p { color: rgb(244 241 236 / 0.8); }
.soir-bande .surtitre { color: rgb(244 241 236 / 0.75); }
.soir-bande .cta { background: var(--surface); color: var(--encre); }
.soir-bande .cta:hover::after { opacity: 0.08; }
.soir-bande :focus-visible { outline-color: var(--sur-bande); }
.soir-bande .pied { border-top-color: rgb(244 241 236 / 0.15); }
.soir-bande .pied a { color: var(--sur-bande); }
.etape h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.etape .accroche { margin-top: 1.25rem; font-family: var(--f-titre); font-size: 1.6rem; line-height: 1.15; }
.etape .texte { margin-top: 1rem; color: var(--encre-2); max-width: 46ch; }
.etape .module { margin-top: 0.75rem; font-size: 0.875rem; color: var(--encre-2); }
.puces { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.puces li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--filet); font-size: 0.8125rem; font-weight: 600; }
.puces .picto { width: 16px; height: 16px; color: var(--encre-2); }
.preuve { position: relative; margin: 0; justify-self: center; width: min(100%, 300px); }
.preuve video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r); border: 1px solid var(--filet); background: var(--lin); box-shadow: var(--ombre-2); }
.preuve figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--encre-2); text-align: center; }

/* 6. Tout se connecte : grille de modules */
.connecte { padding-block: clamp(4rem, 9vw, 7rem); }
.connecte h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 20ch; }
.connecte ul { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.connecte li { display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--filet); }
.connecte li .picto { width: 28px; height: 28px; }
.connecte li span:last-child { font-size: 0.875rem; color: var(--encre-2); }
.connecte .note { margin-top: 1rem; font-size: 0.875rem; color: var(--encre-2); }

/* 7. Spécialités : trois plaques de porte */
.specialites { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--filet); }
.specialites h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.plaque { position: relative; display: grid; place-items: center; text-align: center; gap: 0.3rem; aspect-ratio: 3 / 2; border-radius: var(--r-sm); background: var(--encre); color: var(--sur-bande); padding: 1.5rem; }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 0.8rem; width: 6px; height: 6px; border-radius: 50%; background: rgb(244 241 236 / 0.35); }
.plaque::before { inset-inline-start: 0.8rem; } .plaque::after { inset-inline-end: 0.8rem; }
.plaque strong { font-family: var(--f-titre); font-weight: 600; font-size: 1.85rem; line-height: 1.05; }
.plaque span { font-size: 0.875rem; opacity: 0.8; }
.plaques p { margin-top: 1rem; font-size: 0.9375rem; color: var(--encre-2); }

/* 8. Sécurité : la nuit, sur l'encre */
.nuit { margin-block: 1.25rem; border-radius: var(--r); background: var(--encre); color: var(--sur-bande); padding: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem 4rem; }
.nuit .surtitre { color: rgb(244 241 236 / 0.75); }
.nuit h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.nuit ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.nuit li { display: grid; gap: 0.4rem; font-size: 0.9375rem; color: rgb(244 241 236 / 0.78); }
.nuit li .picto { color: var(--sur-bande); }
.nuit strong { color: var(--sur-bande); }

/* 9. Appel final */
.final { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.final h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 18ch; }
.final p { color: var(--encre-2); max-width: 46ch; }
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--filet); font-size: 0.875rem; }
.pied img { height: 24px; display: block; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); }

.roles-accroche, .con-accroche { max-width: 52ch; margin: 1.25rem auto 0; color: var(--encre-2); }
.con-accroche { margin-inline: 0; }
.puces.centre { justify-content: center; margin-top: 2rem; }
.nuit-accroche { margin-top: 1.25rem; color: rgb(244 241 236 / 0.82); max-width: 44ch; }
.vue .surtitre { margin-bottom: 0.5rem; }

/* Effet 4, état de base : la pilule porte son fond sur un calque, qui s'affirme quand on descend. */
.pilule { background: transparent; border-color: transparent; box-shadow: none; isolation: isolate; }
.pilule::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface); border: 1px solid var(--filet); opacity: 0.7; }
.pilule::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--ombre-1); opacity: 0; }
.pilule.serree::before { opacity: 1; }
.pilule.serree::after { opacity: 1; }
.pilule.serree { transform: scale(0.985); }

/* ——— Variante « pastels vifs » (palette d'expression, communication uniquement, à valider dans DECISIONS) ———
   Des pastels lumineux pour les grandes surfaces, des écrans plus grands, des textes plus foncés.
   Texte encre sur chaque pastel : contraste ≥ 9:1. Le bleu reste réservé à ce qui se clique. */
/* Pêche adoucie (#fbdcc7 → #fbe8db) : la caisse reste sérieuse. */
:root { --ciel: #cfe2fa; --menthe: #cdebdc; --peche: #fbe8db; --lavande: #e2dbf6; }
body { background: #fbf8f2; }
.etape.ciel { background: var(--ciel); }
.etape.menthe { background: var(--menthe); }
.etape.peche { background: var(--peche); }
.vue { background: var(--lavande); }
/* Règle 1 : un pastel ne sert qu'en grand aplat. Le poste choisi se marque à l'encre, pas en pastel. */
/* Le poste choisi : un calque encre qui apparaît en fondu, au lieu d'un fond qui s'allume d'un coup. */
/* L'onglet choisi prend la lavande du panneau (on les relie à l'œil), mais reste détaché de lui. */
.choix label:has(:checked) { color: var(--encre); }
.choix label::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lavande); opacity: 0; }
.choix label:has(:checked)::after { opacity: 1; }
.etape .texte, .vue p, .roles-accroche, .con-accroche, .haut .chapeau { color: var(--encre); }
.etape .texte { font-size: 1.125rem; }
.etape h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.etape .accroche { font-weight: 600; }
.preuve { width: min(100%, 400px); }
.vue img { width: min(100%, 360px); }
.puces li { border-color: transparent; box-shadow: var(--ombre-1); }
/* Modules : chaque pictogramme dans une pastille de couleur. */
.connecte li { gap: 0.8rem; }
.connecte li .pastille { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; }
/* Règle 1 : pas de pastel sur de petits éléments, et un seul par section. Les pastilles sont en voile neutre. */
.connecte li .pastille { background: var(--voile); }
/* Chaque module est un lien vers sa présentation dans « L'offre » : la carte entière se clique. */
/* Le fond et le contour sont portés par la carte (qui bouge), pas par l'élément de liste (qui reste) :
   sinon le contour resterait en place sous la carte soulevée. */
.connecte li { padding: 0; background: none; border: 0; align-content: stretch; } /* la carte occupe toute la hauteur de la rangée */
.connecte .carte { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; height: 100%; padding: 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--filet); color: var(--encre); text-decoration: none; }
.connecte .carte::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--ombre-1); opacity: 0; }
.connecte .carte span:not(.pastille):not(.plus) { font-size: 0.875rem; color: var(--encre-2); }
.connecte .carte .plus { margin-top: auto; padding-top: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--bleu); } /* bleu : c'est ce qui se clique */
.connecte .plus b { display: inline-block; font-weight: 600; }
.connecte .pastille { position: relative; isolation: isolate; overflow: hidden; }
.connecte .pastille::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--encre); opacity: 0; }
.connecte .carte:hover .pastille::before, .connecte .carte:focus-visible .pastille::before { opacity: 1; }
.connecte .carte:hover .pastille .picto, .connecte .carte:focus-visible .pastille .picto { color: var(--lin); }
.connecte .carte:hover::after, .connecte .carte:focus-visible::after { opacity: 1; }
.connecte .carte:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .connecte .carte { transition: transform 200ms var(--courbe); }
  .connecte .carte::after, .connecte .pastille::before { transition: opacity 200ms var(--courbe); }
  .connecte .plus b { transition: transform 200ms var(--courbe); }
  .connecte .carte:hover, .connecte .carte:focus-visible { transform: translateY(-4px); }
  .connecte .carte:hover .plus b, .connecte .carte:focus-visible .plus b { transform: translateX(4px); }
}
.connecte li .pastille .picto { width: 26px; height: 26px; padding: 0; }

/* ——— Mouvement. Tout ce qui suit disparaît sous prefers-reduced-motion : la page est déjà finie. ——— */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cta::after { transition: opacity 150ms var(--courbe); }
  .cta:hover::after { transition-duration: 200ms; }

  /* Effet 1, le seul moment orchestré : le logo se construit, plus lentement que 04 §6.3 à la demande de
     l'éditeur (24/10/2026) : barre 0-500, arc 500-1100, point 1100-1400, puis le nom s'écrit de gauche à
     droite de 1400 à 2400 ms, comme le symbole, au lieu d'apparaître d'un coup. Puis la matinée se remplit : les rendez-vous se dressent un à un
     dans l'agenda, de 900 à 2 430 ms (rythme de site, plus lent que dans l'application). Une seule fois, au chargement. */
  .logo .l-barre { transform-box: fill-box; transform-origin: bottom; animation: dresse 500ms var(--courbe-logo) backwards; }
  .logo .l-arc { stroke-dasharray: 23.57 40; animation: trace 600ms var(--courbe-logo) 500ms backwards; }
  .logo .l-point { transform-box: fill-box; transform-origin: center; animation: pose-point 300ms var(--courbe-logo) 1100ms backwards; }
  /* Le nom se découvre sous un masque qui glisse (clip-path) : seconde exception à « transform et opacity », après l'arc. */
  .logo .l-nom { animation: nom 1000ms var(--courbe-logo) 1400ms backwards; }
  .fenetre .rdv { transform-origin: top; animation: dresse 450ms var(--courbe) calc(900ms + var(--i, 0) * 120ms) backwards; }
  @keyframes dresse { from { transform: scaleY(0); } }
  @keyframes trace { from { stroke-dashoffset: 24.5; } }
  @keyframes pose-point { from { transform: scale(0); } }
  @keyframes nom { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } } /* « to » explicite : vers « none », le masque sauterait d'un coup */

  /* Effet 2 : changer de poste. Le nouvel écran se pose de 8 px en 200 ms : le même logiciel, vu autrement. */
  /* Changement de poste, déclenché par le visiteur : le texte se pose, puis l'écran juste après. */
  .vue > div { animation: pose-doux 450ms var(--courbe); }
  .vue > img { animation: pose-doux 450ms var(--courbe) 80ms backwards; }
  @keyframes pose-doux { from { transform: translateY(8px); opacity: 0.35; } }
  @keyframes pose { from { transform: translateY(8px); } }

  /* Effet 3 : quand un panneau du parcours arrive à l'écran, ses étiquettes se posent l'une après l'autre. */
  .etape.vu .puces li { animation: pose 380ms var(--courbe) calc(var(--i, 0) * 100ms) backwards; }
  /* Les modules se posent l'un après l'autre quand la section arrive (pas d'effet au survol : ils ne se cliquent pas). */
  .connecte.vu li { animation: pose 380ms var(--courbe) calc(var(--i, 0) * 100ms) backwards; }

  /* Effet 4 : la pilule s'affirme et se resserre légèrement dès qu'on descend. */
  .pilule { transition: transform 300ms var(--courbe); }
  .pilule::before, .pilule::after { transition: opacity 300ms var(--courbe); }
}

@media (max-width: 860px) {
  .pilule { margin-inline: 0.5rem; }
  /* Trop étroit pour une ligne : les liens passent dans un panneau ouvert par le bouton Menu. */
  .menu-bouton { display: inline-flex; }
  .pilule nav { display: none; position: absolute; top: calc(100% + 0.5rem); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre-1); }
  .pilule.ouverte nav { display: flex; }
  .pilule nav a:not(.cta) { padding-inline: 0.75rem; }
  .pilule nav .cta { align-self: flex-start; margin: 0.25rem 0.75rem 0.25rem; }
  .tableau { padding-bottom: 0; }
  .fenetre { position: relative; width: 100%; margin-top: -1.5rem; }
  .fen-grille { grid-template-columns: 2.5rem repeat(3, minmax(0, 1fr)); gap: 0.4rem; padding-inline: 0.6rem; }
  .fen-barre .qui, .rdv small { display: none; }
  .fen-col b { font-size: 0.6875rem; }
  .vue, .etape, .nuit { grid-template-columns: minmax(0, 1fr); }
  .etape { margin-inline: 0.5rem; padding: 1.75rem 1.25rem; }
  .connecte ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-rdv { inset-inline-start: 0.5rem; min-width: 0; }
  .carte-rdv.bas { inset-inline-end: 0.5rem; }
  .plaques, .nuit ul { grid-template-columns: minmax(0, 1fr); }
}
/* ——— FAQ en conversation : la liste sur l'encre, la réponse dans une bulle (une seule couleur pastel : le ciel) ——— */
.faq { padding-block: var(--respire, 6rem) 0; }
.faq h2 { font-size: var(--titre-section, 3rem); }
.faq-cadre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 2.5rem; padding: 1.25rem; border-radius: var(--r); background: var(--ciel); }
.faq-liste { display: grid; align-content: start; gap: 0.25rem; padding: 1.75rem 1.25rem; border-radius: var(--r); background: var(--encre); }
.faq-titre { margin: 0 0 1rem; padding-inline: 0.75rem; font-family: var(--f-titre); font-size: 1.75rem; color: inherit; }
.faq-liste .faq-titre { color: var(--sur-bande); }
.faq-liste button { position: relative; isolation: isolate; min-height: 44px; padding: 0.85rem 0.9rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--sur-bande); font: 600 1rem/1.35 var(--f-texte); text-align: start; cursor: pointer; }
.faq-liste button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgb(244 241 236 / 0.12); opacity: 0; }
.faq-liste button:hover::before { opacity: 0.6; }
.faq-liste button[aria-selected="true"]::before { opacity: 1; }
.faq-liste button:focus-visible { outline: 2px solid var(--sur-bande); outline-offset: 2px; }
.faq-reponse { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 1.25rem; scroll-margin-top: 5.5rem; } /* ne passe pas sous la pilule */
.bulle-q { align-self: flex-end; max-width: 80%; margin: 0; font-size: 1rem; color: var(--encre-2); text-align: end; }
.bulle-r { max-width: 90%; padding: 1.1rem 1.25rem; border-radius: var(--r); border-start-start-radius: var(--r-sm); background: var(--surface); box-shadow: var(--ombre-1); }
.bulle-r p { margin: 0; color: var(--encre); line-height: 1.6; }
.faq-signe { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--encre); }
.faq-signe img { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .faq-liste button::before { transition: opacity 200ms var(--courbe); }
  /* L'enchaînement de la FAQ (effacer, changer, poser) est joué par le script : voir « FAQ en conversation ». */
}
@media (max-width: 860px) { .faq-cadre { grid-template-columns: minmax(0, 1fr); padding: 0.75rem; } .faq-reponse { padding-inline: 0.5rem; } }

/* ——— Lecture des vidéos : un bouton rond aux couleurs de Kalma, à la place des commandes du navigateur ——— */
.preuve video { cursor: pointer; }
.lecture { position: absolute; inset: 0 0 auto; aspect-ratio: 9 / 16; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.lecture span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 999px; background: var(--encre); box-shadow: var(--ombre-1); }
.lecture span::before { content: ""; margin-inline-start: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--lin); }
.lecture:focus-visible span { outline: 2px solid var(--bleu); outline-offset: 4px; }
.preuve.en-cours .lecture { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .lecture span { transition: transform 200ms var(--courbe); }
  .lecture:hover span { transform: scale(1.06); }
  .lecture { transition: opacity 200ms var(--courbe); }
}

/* ——— Harmonisation : une échelle de titres, un rythme vertical, un seul comportement pour ce qui se clique ——— */
:root { --titre-section: clamp(2.4rem, 4.6vw, 3.6rem); --respire: clamp(4rem, 9vw, 7rem); }
.roles h2, .etape h2, .connecte h2, .specialites h2, .nuit h2 { font-size: var(--titre-section); }
.final h2 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.roles, .connecte, .specialites, .final { padding-block: var(--respire); }
.specialites { border-top: 0; }
.etape, .nuit { margin-block: 1.5rem; }
.surtitre + h2, .surtitre + h1 { margin-top: 1rem; }

/* Cartes cliquables : modules et spécialités, même construction et même survol. */
.plaques { gap: 1rem; }
.carte-spe { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: 1rem; height: 100%; padding: 1rem 1rem 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--filet); color: var(--encre); text-decoration: none; }
.carte-spe::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--ombre-1); opacity: 0; }
.carte-spe p { margin: 0 0.5rem; font-size: 0.9375rem; color: var(--encre-2); }
.carte-spe .plus { margin: auto 0.5rem 0; font-size: 0.875rem; font-weight: 600; color: var(--bleu); }
.carte-spe .plus b { display: inline-block; font-weight: 600; }
.carte-spe:hover::after, .carte-spe:focus-visible::after { opacity: 1; }
.carte-spe:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

/* Onglets de poste : ils s'éclairent au survol, comme tout ce qui se clique. */
.choix label { isolation: isolate; }
.choix label::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--voile); opacity: 0; }
.choix label:not(:has(:checked)):hover::before { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .carte-spe { transition: transform 200ms var(--courbe); }
  .carte-spe::after, .choix label::before { transition: opacity 200ms var(--courbe); }
  .choix label::after { transition: opacity 250ms var(--courbe); }
  .choix label { transition: color 250ms var(--courbe); }
  .carte-spe .plus b { transition: transform 200ms var(--courbe); }
  .carte-spe:hover, .carte-spe:focus-visible { transform: translateY(-4px); }
  .carte-spe:hover .plus b, .carte-spe:focus-visible .plus b { transform: translateX(4px); }
}

/* ——— Pages intérieures (offre, démonstration, sécurité) : mêmes composants, quelques ajouts ——— */
.pilule .accueil { display: flex; flex: none; }
.pilule nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.haut.court { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.etape.lavande { background: var(--lavande); }
.etape.pleine { grid-template-columns: minmax(0, 1fr); }
.etape.pleine > div:first-child { max-width: 52rem; }
.etape .chapeau-section { margin-top: 1rem; font-size: 1.125rem; max-width: 52ch; }
/* Liste de garanties ou d'éléments compris : picto, intitulé en gras, une phrase. */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.liste.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.liste li { display: grid; gap: 0.35rem; align-content: start; font-size: 0.9375rem; }
.liste li strong { font-size: 1rem; }
.liste .picto { color: var(--encre); }
/* Blocs blancs posés sur un aplat pastel : un module de l'offre par bloc, chacun avec son ancre. */
.blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bloc { display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-1); scroll-margin-top: 6rem; }
.bloc:target { box-shadow: 0 0 0 2px var(--encre), var(--ombre-1); }
.bloc h3 { font-size: 2rem; font-weight: 700; }
.bloc p { font-size: 0.9375rem; }
.bloc .demande { color: var(--encre-2); font-size: 0.875rem; }
.bloc .pastille { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--voile); }
.bloc .puces { margin-top: auto; padding-top: 0.5rem; }
.bloc .puces li { box-shadow: none; border-color: var(--filet); }
/* Étapes numérotées (comment on démarre). */
.etapes-num { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: n; }
.etapes-num li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.25rem 1rem; counter-increment: n; }
.etapes-num li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--encre); color: var(--sur-bande); font: 600 1.25rem/1 var(--f-titre); }
.etapes-num strong { font-size: 1.0625rem; }
.etapes-num p { font-size: 0.9375rem; }
.tarif { margin-top: 1.5rem; font-family: var(--f-titre); font-size: 1.6rem; font-weight: 600; line-height: 1.15; max-width: 30ch; }
/* Formulaire de demande (maquette : il ne s'envoie nulle part). */
.formulaire { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-1); }
.formulaire .deux-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.formulaire label { display: grid; gap: 0.35rem; font-size: 0.9375rem; font-weight: 600; }
.formulaire input, .formulaire select { width: 100%; min-height: 48px; padding: 0 0.9rem; border: 1px solid var(--filet); border-radius: var(--r-sm); background: var(--surface); color: var(--encre); font: 400 1rem var(--f-texte); }
.formulaire input:focus-visible, .formulaire select:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }
.formulaire button.cta { justify-self: start; border: 0; font: 600 1rem var(--f-texte); }
.formulaire button.cta[disabled] { opacity: 0.5; cursor: not-allowed; }
.formulaire button.cta[disabled]:hover::after { opacity: 0; }
.maquette { padding: 0.75rem 1rem; border-radius: var(--r-sm); background: var(--voile); font-size: 0.875rem; }
.emplacement { display: grid; gap: 0.35rem; margin-top: 1.75rem; padding: 1.25rem; border-radius: var(--r); border: 1.5px dashed var(--encre-2); background: var(--surface); font-size: 0.9375rem; }
.emplacement .numero { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 860px) {
  .liste.deux, .blocs, .formulaire .deux-champs { grid-template-columns: minmax(0, 1fr); }
}

/* Questions fréquentes en page : <details> natifs, une réponse par carte blanche sur l'aplat. */
.qr { display: grid; gap: 0.75rem; }
.qr h3 { margin: 1.5rem 0 0.25rem; font-size: 1.75rem; font-weight: 700; }
.qr h3:first-child { margin-top: 0; }
.qr details { border-radius: var(--r); background: var(--surface); box-shadow: var(--ombre-1); }
.qr summary { display: flex; align-items: center; min-height: 44px; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; }
.qr summary:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: var(--r); }
.qr details p { padding: 0 1.25rem 1.25rem; max-width: 70ch; }
/* Versions (nouveautés) : une liste à puces sobre dans chaque bloc. */
.bloc ul.points { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.bloc .date { color: var(--encre-2); font-size: 0.875rem; font-weight: 600; }
/* Texte long (mentions légales, confidentialité). */
.texte-long { max-width: 46rem; display: grid; gap: 0.9rem; }
.texte-long h2 { margin-top: 1.5rem; font-size: 2rem; }
.texte-long h2:first-child { margin-top: 0; }
.a-fournir { padding: 0.1rem 0.4rem; border-radius: var(--r-sm); background: var(--voile); border: 1px dashed var(--encre-2); font-size: 0.9375rem; }

/* Pied de page en colonnes : la marque à gauche, le plan du site en trois groupes, une ligne de bas de page. */
.pied { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem 3rem; padding-block: 3rem 1.5rem; }
.pied img { height: 20px; width: auto; }
.pied-marque p { margin-top: 1rem; font-family: var(--f-titre); font-size: 1.5rem; line-height: 1.1; }
.pied-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.5rem 2rem; }
.pied-colonnes ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pied-colonnes a { min-height: 40px; text-decoration: none; }
.pied-colonnes a:hover, .pied-colonnes a[aria-current="page"] { text-decoration: underline; }
.pied-bas { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--filet); font-size: 0.8125rem; }
.soir-bande .pied-bas { border-top-color: rgb(244 241 236 / 0.15); color: rgb(244 241 236 / 0.7); }
@media (max-width: 860px) { .pied { grid-template-columns: minmax(0, 1fr); } }

/* Passage d'une page à l'autre (DECISIONS 22/10 §7 : @view-transition, sans routeur). La pilule ne bouge pas.
   L'ancienne page reste affichée, entière, pendant que la nouvelle se pose dessus (fondu et 8 px) : jamais
   d'instant vide entre les deux, qui ferait croire à un rechargement. Rien sous prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .pilule { view-transition-name: pilule; }
  ::view-transition-group(pilule) { animation-duration: 0s; }
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; } /* le mélange par défaut éclaircit l'ensemble */
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: 350ms var(--courbe) both page-entre; }
  @keyframes page-entre { from { opacity: 0; transform: translateY(8px); } }
}
/* Le logo se construit à la première page de la visite seulement ; ensuite il est déjà là (classe posée dans la tête de page). */
.deja-vu .logo * { animation: none !important; }

/* Haut de l'accueil : l'illustration moins large (64rem au lieu de 76), l'agenda garde sa taille et pèse davantage (éditeur, 24/10/2026). */
.tableau { max-width: 64rem; }

/* Écran « Créneaux libres » redessiné (page Parcours) : valeurs reprises de l'application (kalma/tokens.css,
   base.css 756-807). Couleurs de l'application, donc seulement DANS l'écran montré. Défile en largeur sur téléphone. */
.etape > .ecran-semaine { grid-column: 1 / -1; }
.ecran-semaine { margin: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre-2); overflow: hidden; }
.ecran-semaine figcaption { padding: 0.6rem 1rem 0.8rem; font-size: 0.75rem; color: var(--encre-2); }
.es-defil { overflow-x: auto; }
.es-contenu { min-width: 56rem; padding: 0.9rem 1rem 0.5rem; font-size: 0.8125rem; }
.es-semaine { margin-bottom: 0.75rem; color: var(--encre-2); }
.es-semaine strong { color: var(--encre); font-weight: 600; }
.es-filtres { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; padding: 0.55rem 0.75rem; border: 1px solid var(--filet); border-radius: var(--r); }
.es-segment { display: inline-flex; border: 1px solid #8f877a; border-radius: var(--r-sm); overflow: hidden; }
.es-segment b { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; font-weight: 600; }
.es-segment b + b { border-inline-start: 1px solid #8f877a; }
.es-segment b.is-actif { background: #1d5c96; color: #fff; }
.es-segment i { padding: 0 0.4rem; border-radius: 999px; background: #f1eee8; color: #4a5560; font: 600 0.6875rem var(--f-texte); }
.es-segment b.is-actif i { background: #164a7a; color: #fff; }
.es-duree { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.es-duree span { padding: 0.25rem 1.6rem 0.25rem 0.6rem; border: 1px solid #8f877a; border-radius: var(--r-sm); font-weight: 400; }
.es-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; }
.es-grille h4 { margin: 0; font-size: 0.875rem; font-weight: 600; }
.es-charge { margin: 0.15rem 0; font-size: 0.6875rem; color: #4a5560; }
.es-jauge { height: 4px; margin-bottom: 0.6rem; border-radius: 999px; background: #f1eee8; overflow: hidden; }
.es-jauge span { display: block; height: 100%; background: #1d5c96; }
.es-creneaux { display: grid; gap: 0.4rem; }
.es-creneau { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 0.4rem; padding: 0.4rem 0.55rem; border: 1px solid #8f877a; border-radius: var(--r-sm); }
.es-heure { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.es-fin { font-size: 0.75rem; color: #4a5560; font-variant-numeric: tabular-nums; }
.es-libre { grid-column: 1 / -1; justify-self: start; margin-top: 0.2rem; padding: 0 0.45rem; border-radius: 999px; background: #e6f0e4; color: #2f6b3d; font-size: 0.6875rem; font-weight: 600; }
.es-creneau.is-pris { display: block; padding-block: 0.25rem; background: #f1eee8; border-style: dashed; color: #4a5560; }
.es-creneau.is-pris .es-heure { display: block; font-size: 0.75rem; font-weight: 400; text-decoration: line-through; }
.es-creneau.is-pris .es-fin { display: block; font-size: 0.75rem; }
.es-pause { margin: 0; padding-top: 0.2rem; border-top: 1px dotted #8f877a; text-align: center; font-size: 0.6875rem; color: #4a5560; }
.es-ferme { min-height: 9rem; margin: 0; padding: 0.4rem 0.55rem; border: 1px solid var(--filet); border-radius: var(--r-sm); font-size: 0.75rem; color: #4a5560; background: repeating-linear-gradient(135deg, #f1eee8 0 8px, #fff 8px 16px); }
