/*
 * Socle des pages, version 2 (refonte du 2 novembre 2026) : bandeau et menu, fil d'Ariane, en-tête de page en deux
 * colonnes (texte, visuel), sections sur douze colonnes (titre à gauche, texte et visuels à droite, visuels larges
 * sur toute la largeur), boutons, portes de l'accueil, notes, pied de page. Les briques ajoutent leurs règles dans
 * css/briques/<brique>.css ; toute valeur vient des jetons du thème (themes/<thème>/theme.css).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--k-bandeau) + 16px);
  background: var(--k-fond-sombre); }
body {
  margin: 0;
  background: var(--k-fond);
  color: var(--k-encre);
  font: 400 var(--k-corps)/var(--k-interligne) var(--k-police-texte);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: var(--k-focus) solid var(--k-accent); outline-offset: 3px; }
.mot { white-space: nowrap; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js:not(.mdb-pret) [data-attente] { visibility: hidden; }

.evitement { position: absolute; left: var(--k-marge); top: -100px; z-index: 40; padding: 10px 16px; background: var(--k-encre); color: var(--k-fond); text-decoration: none; border-radius: var(--k-rayon); }
.evitement:focus { top: 8px; }

/* ---- bandeau : la marque, le menu ---- */
.bandeau { position: sticky; top: 0; z-index: 30; background: var(--k-fond-bandeau); border-bottom: 1px solid var(--k-filet);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.bandeau__ligne { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; min-height: var(--k-bandeau);
  padding: 0 var(--k-marge); display: flex; align-items: center; justify-content: space-between; gap: var(--k-pas-2); }
.marque { display: inline-flex; align-items: center; gap: 12px; min-height: var(--k-cible-tactile); text-decoration: none; flex-shrink: 0; }
.marque__toit { width: 44px; height: 14px; fill: none; stroke: var(--k-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.marque__nom { font-family: var(--k-police-titres); font-weight: 800; letter-spacing: -0.02em; font-size: 1.3rem; }
.marque__metier { font-size: var(--k-mini); color: var(--k-encre-2); padding-left: 12px; border-left: 1px solid var(--k-filet); line-height: 1.25; }

.menu__bouton { display: none; align-items: center; gap: 10px; min-height: var(--k-cible-tactile); padding: 0 18px;
  border: 1px solid var(--k-filet); border-radius: var(--k-rayon-bouton); background: var(--k-fond); font-weight: 600; font-size: var(--k-petit); cursor: pointer; }
.menu__trait { position: relative; width: 16px; height: 2px; background: var(--k-encre); }
.menu__trait::before, .menu__trait::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--k-encre); transition: transform var(--k-duree) var(--k-courbe); }
.menu__trait::before { top: -5px; }
.menu__trait::after { top: 5px; }
.menu__bouton[aria-expanded="true"] .menu__trait { background: transparent; }
.menu__bouton[aria-expanded="true"] .menu__trait::before { transform: translateY(5px) rotate(45deg); }
.menu__bouton[aria-expanded="true"] .menu__trait::after { transform: translateY(-5px) rotate(-45deg); }
.menu__liste { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu__lien { position: relative; display: inline-flex; align-items: center; min-height: var(--k-cible-tactile); padding: 0 12px; font-size: var(--k-petit);
  font-weight: 500; text-decoration: none; color: var(--k-encre); border-radius: var(--k-rayon-bouton);
  transition: color var(--k-duree) var(--k-courbe), background-color var(--k-duree) var(--k-courbe); }
.menu__lien:hover { background: var(--k-piste); }
.menu__lien[aria-current="page"], .menu__lien[aria-current="true"] { color: var(--k-accent-texte); background: var(--k-accent-doux); font-weight: 600; }
.menu__lien--contact { margin-left: 8px; padding: 0 20px; background: var(--k-accent); color: var(--k-sur-accent); font-weight: 600; }
.menu__lien--contact:hover { background: var(--k-accent-texte); }
.menu__lien--contact[aria-current="page"] { background: var(--k-accent-texte); color: var(--k-sur-accent); }

/* sous 1200 pixels, les entrées passent derrière un bouton ; sans JavaScript, elles restent visibles sous la marque */
@media (max-width: 1199px) {
  .js .menu__bouton { display: inline-flex; }
  .bandeau__ligne { flex-wrap: wrap; }
  .js .menu { flex-basis: 100%; }
  .js .menu:not(.est-ouvert) { display: none; }
  .menu__liste { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .menu__lien, .menu__lien--contact { width: 100%; margin: 0; padding: 0 12px; border-radius: var(--k-rayon); border-top: 1px solid var(--k-filet); font-size: 1.05rem; }
  .menu__lien--contact { margin-top: 10px; justify-content: center; border-top: 0; }
}
@media (max-width: 640px) {
  .marque__metier { display: none; }
}
@media (max-width: 359px) {
  .marque__toit { display: none; }
}

/* ---- fil d'Ariane ---- */
.ariane { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: var(--k-pas-2) var(--k-marge) 0; position: relative; z-index: 1; }
.ariane__liste { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; font-size: var(--k-mini); color: var(--k-encre-2); }
/* le séparateur précède l'élément qu'il annonce : quand le fil passe à la ligne, il part avec lui */
.ariane__liste li + li::before { content: "›"; margin: 0 8px; color: var(--k-encre-2); }
.ariane__liste a { display: inline-block; min-width: var(--k-cible-tactile); padding: 12px 0; margin: -6px 0; color: var(--k-encre-2); text-underline-offset: 3px; }
.ariane__liste [aria-current="page"] { display: inline-block; padding: 6px 0; color: var(--k-encre); }
/* au téléphone, le fil se réduit au parent, précédé de « ‹ » : il tient sur une ligne et aucune ligne ne s'ouvre par
   un séparateur (contrôle design du 4/11, C10) ; le nom de la page reste lu des lecteurs d'écran */
@media (max-width: 640px) {
  .ariane__liste li:not(:nth-last-child(-n + 2)) { display: none; }
  .ariane__liste li:nth-last-child(2)::before { content: "‹"; margin: 0 8px 0 0; }
  .ariane__liste li:last-child { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- colonne de la page ---- */
.page { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: 0 var(--k-marge); }

/* ---- en-tête de page : le texte à gauche, un visuel à droite ; le dégradé couvre toute la largeur de l'écran ---- */
.tete { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 80px); }
.tete::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * clamp(40px, 6vw, 72px)); bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--k-degrade-tete); border-bottom: 1px solid var(--k-filet); }
.tete__titre { font-family: var(--k-police-titres); font-size: var(--k-titre-1); font-weight: var(--k-graisse-titres); font-stretch: var(--k-serre);
  line-height: 1.02; letter-spacing: var(--k-interlettre-titres); max-width: 18ch; text-wrap: balance; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--k-pas-2); font-size: var(--k-petit); font-weight: 600;
  color: var(--k-accent-texte); letter-spacing: 0.01em; }
.surtitre::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k-corail); box-shadow: 0 0 0 4px var(--k-corail-doux); }
.tete__date { margin-top: var(--k-pas-2); font-size: var(--k-petit); color: var(--k-encre-2); }
/* la date garde ses espaces ordinaires dans le source (finition.py) : elle ne se coupe jamais à l'affichage */
.tete__date time { white-space: nowrap; }
/* version de validation : une date en attente porte son repère, qui doit pouvoir passer à la ligne au téléphone */
.tete__date time:has(.attente) { white-space: normal; }
.journal__date { margin: 0 0 var(--k-pas-1); }
.tete__intro { margin-top: var(--k-pas-3); max-width: var(--k-colonne-texte); font-size: var(--k-chapeau); line-height: 1.55; color: var(--k-encre); }
.tete__intro p + p { margin-top: 12px; }
.tete__intro a { color: var(--k-accent-texte); text-underline-offset: 3px; }
/* sous-titre d'une page, posé sous le titre par une classe du texte de l'étude ({: .tete__sous-titre }, que
   generateur/textes.py sort de l'introduction) : celui d'Olivier Emery sur la page des opérations (WhatsApp du 16/11) */
.tete__sous-titre { margin-top: var(--k-pas-2); max-width: var(--k-colonne-texte); font-family: var(--k-police-titres);
  font-size: var(--k-titre-3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--k-vert-texte);
  text-wrap: balance; }
.tete__visuel { margin-top: var(--k-pas-4); }
.lieux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--k-pas-3); padding: 0; list-style: none; font-size: var(--k-petit); }
.lieux li { padding: 6px 14px; border-radius: var(--k-rayon-bouton); background: var(--k-fond); border: 1px solid var(--k-filet); color: var(--k-encre); }

@media (min-width: 1024px) {
  .tete--duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); align-items: center; }
  .tete--duo > .tete__texte { grid-column: 1 / span 6; }
  .tete--duo > .tete__visuel { grid-column: 7 / -1; margin-top: 0; }
  /* une seule règle pour l'en-tête de toutes les pages du gabarit commun : le texte part du haut, à côté du visuel ;
     centré, il laissait sous le fil d'Ariane une colonne vide de 300 à 690 pixels (contrôle design du 4/11, C1, C7) */
  .page > .tete--duo { align-items: start; }
  /* une fiche d'opération donne un peu plus de place à ses deux photos */
  .page > .tete--fiche > .tete__texte { grid-column: 1 / span 5; }
  .page > .tete--fiche > .tete__visuel { grid-column: 6 / -1; }
  /* photo de tête à la hauteur du texte d'en face : la colonne s'étire et la photo la couvre en entier (object-fit:
     cover) ; elle ne laissait plus sous elle une bande vide de 390 à 550 pixels (contrôle 2, C-20) */
  .page > .tete--duo:has(> .tete__visuel > .photo-tete:not(.photo-tete--portrait)) { align-items: stretch; }
  .page > .tete--duo > .tete__visuel:has(> .photo-tete:not(.photo-tete--portrait)) { display: flex; flex-direction: column; align-self: stretch; }
  .page > .tete--duo > .tete__visuel > .photo-tete:not(.photo-tete--portrait) { flex: 1 1 auto; display: flex; flex-direction: column; }
  .page > .tete--duo > .tete__visuel > .photo-tete:not(.photo-tete--portrait) > .photo-tete__cadre { flex: 1 1 auto; aspect-ratio: auto; min-height: 340px; }
  .page > .tete--duo > .tete__visuel > .photo-tete > .photo-tete__duo { flex: 1 1 auto; }
  .page > .tete--duo > .tete__visuel .photo-tete__duo > figure { display: flex; flex-direction: column; }
  .page > .tete--duo > .tete__visuel .photo-tete__duo .photo-tete__cadre { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
}
/* au téléphone, le visuel vient juste sous le titre : le premier écran montre une image */
@media (max-width: 1023px) {
  .tete--duo { display: flex; flex-direction: column; }
  .tete--duo > .tete__texte { display: contents; }
  .tete--duo .surtitre { order: 0; }
  .tete--duo .tete__titre, .tete--duo .tete__sous-titre { order: 1; }
  .tete--duo > .tete__visuel { order: 2; margin-top: var(--k-pas-3); }
  .tete--duo .tete__date, .tete--duo .tete__intro, .tete--duo .actions, .tete--duo .lieux, .tete--duo .suite,
  .tete--duo .chiffre-source, .tete--duo .reperes { order: 3; }
  /* sur l'accueil, les deux appels montent sous le titre : le premier écran d'un téléphone montre le titre, les
     appels puis la photo (lecture aveugle du 2/11 à 390 pixels : boutons sous le premier écran) */
  .accueil-tete .tete--duo .actions { order: 1; margin-top: var(--k-pas-3); }
}
/* pages de conversion et fiches : l'appel puis le chiffre précèdent la photo, dans le premier écran du téléphone (N22) ;
   l'introduction, qui peut porter la phrase de risque de Co-investir (M3), reste juste au-dessus de l'appel */
@media (max-width: 1023px) {
  .tete--appel .tete__date, .tete--appel .tete__intro { order: 2; }
  .tete--appel .actions { order: 3; margin-top: var(--k-pas-3); }
  .tete--appel .tete-chiffre { order: 4; }
  .tete--appel > .tete__visuel { order: 5; }
  .tete--appel .chiffre-source, .tete--appel .reperes, .tete--appel .lieux, .tete--appel .suite { order: 6; }
  .tete--appel .actions .bouton { min-height: 52px; }
}
@media (max-width: 640px) {
  .tete--appel .tete__intro { margin-top: var(--k-pas-2); font-size: 1.06rem; line-height: 1.5; }
  .tete--appel .actions .bouton { width: 100%; padding: 0 16px; font-size: 1rem; }
}

/* photo d'en-tête : cadre arrondi, ombre, aplat de couleur décalé, légende */
.photo-tete { position: relative; isolation: isolate; margin: 0; }
.photo-tete__cadre { position: relative; overflow: hidden; border-radius: var(--k-rayon-grand); box-shadow: var(--k-ombre-forte); background: var(--k-piste);
  aspect-ratio: 4 / 3; }
.photo-tete__cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo-tete--portrait { max-width: 440px; margin-left: auto; }
/* Plan annoté montré en entier : le cadre prend le gris du papier du plan, que l'image ne recouvre pas toujours. */
.photo-tete--entier .photo-tete__cadre { --fond-du-plan: #efefef; background: var(--fond-du-plan); }
.photo-tete--entier .photo-tete__cadre img { object-fit: contain; }
.page > .tete--duo > .tete__visuel > .photo-tete.photo-tete--entier { flex: 0 0 auto; margin-block: auto; }
.page > .tete--duo > .tete__visuel > .photo-tete.photo-tete--entier > .photo-tete__cadre { flex: 0 0 auto; min-height: 0; }
.photo-tete--portrait .photo-tete__cadre { aspect-ratio: 4 / 5; }
.photo-tete::after { content: ""; position: absolute; z-index: -1; right: -16px; top: -16px; width: 42%; height: 46%; border-radius: var(--k-rayon-grand);
  background: var(--k-soleil); }
.photo-tete--vert::after { background: var(--k-vert); }
.photo-tete--corail::after { background: var(--k-corail); }
.photo-tete--bleu::after { background: var(--k-accent); }
.photo-tete__legende { margin-top: 14px; font-size: var(--k-petit); color: var(--k-encre-2); }
/* deux photos (fiche d'opération) : la même brique, côte à côte, un seul aplat derrière le groupe */
.photo-tete__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-tete__duo > figure { margin: 0; min-width: 0; }
.photo-tete__duo .photo-tete__legende { margin-top: 10px; }
@media (max-width: 1023px) {
  .photo-tete__cadre { aspect-ratio: 16 / 10; }
  .photo-tete__duo .photo-tete__cadre { aspect-ratio: 4 / 3; }
  /* le portrait prend toute la largeur au lieu de laisser une moitié d'écran vide à côté de lui (C7) ; cadré sur
     le visage */
  .photo-tete--portrait { max-width: none; margin: 0; }
  .photo-tete--portrait .photo-tete__cadre { aspect-ratio: 4 / 3; }
  .photo-tete--portrait .photo-tete__cadre img { object-position: 50% 30%; }
  .photo-tete::after { right: -8px; top: -8px; }
}
@media (max-width: 640px) {
  .photo-tete__cadre, .photo-tete__duo .photo-tete__cadre { aspect-ratio: 3 / 2; }
  .photo-tete--portrait .photo-tete__cadre { aspect-ratio: 1 / 1; }
  .photo-tete__duo { grid-template-columns: minmax(0, 1fr); gap: var(--k-pas-2); }
}

/* ---- sections : titre à gauche, texte et visuels à droite, visuels larges sur toute la largeur ---- */
.section { padding: var(--k-section) 0 0; }
.section__titre { font-family: var(--k-police-titres); font-size: var(--k-titre-2); font-weight: var(--k-graisse-titres); font-stretch: var(--k-serre);
  line-height: 1.06; letter-spacing: var(--k-interlettre-titres); max-width: 22ch; text-wrap: balance; margin-bottom: var(--k-pas-3); }
.section__titre::before { content: ""; display: block; width: 44px; height: 6px; margin-bottom: 18px; border-radius: 3px; background: var(--k-accent); }
.section:nth-of-type(4n + 2) > .section__titre::before { background: var(--k-vert); }
.section:nth-of-type(4n + 3) > .section__titre::before { background: var(--k-corail); }
.section:nth-of-type(4n) > .section__titre::before { background: var(--k-soleil); }
.section__titre--plein { max-width: none; }
/* Entre le texte d'une section et les visuels qu'elle reçoit, un même espace, quel que soit leur ordre. */
.section > :not(.section__titre) + :not(.section__titre) { margin-top: var(--k-pas-4); }
.page > :last-child { padding-bottom: var(--k-section); }
.page > .tete + :not(.section) { margin-top: var(--k-pas-5); }
/* encart de bas de page (site_config.ENCARTS) : la section dans un aplat vert de la palette, sans pictogramme ; son
   accroche ouvre le texte, sa mention se lit en petit, son bouton le clôt */
.section--encart { margin-top: var(--k-section); padding: clamp(24px, 4vw, 48px); border-radius: var(--k-rayon);
  background: var(--k-vert-doux); }
.page > .section--encart:last-child { margin-bottom: var(--k-section); padding-bottom: clamp(24px, 4vw, 48px); }
.section--encart .encart__accroche { font-family: var(--k-police-titres); font-size: var(--k-titre-3); font-weight: 600;
  line-height: 1.3; color: var(--k-vert-texte); text-wrap: balance; }
.section--encart .encart__note { font-size: var(--k-petit); color: var(--k-encre-2); }
/* Au téléphone, le bouton de l'encart (« Découvrir les possibilités de co-investissement », W16) prend toute la largeur
   avec une marge intérieure réduite : à 390 pixels il dépassait de 3 pixels (capture du 19/11/2026). */
@media (max-width: 559px) { .section--encart .actions .bouton { width: 100%; padding: 0 16px; } }
.texte .signature { font-family: var(--k-police-titres); font-size: var(--k-titre-3); font-weight: 600; line-height: 1.35;
  color: var(--k-vert-texte); text-wrap: balance; }
.section--parcours > .video--verticale { margin-inline: auto; }

@media (min-width: 1024px) {
  .section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); align-items: start; }
  .section > .section__titre { grid-column: 1 / span 4; grid-row: 1; margin-bottom: 0; }
  .section > :not(.section__titre) { grid-column: 5 / -1; }
  .section > .texte { grid-row: 1; margin-top: 0 !important; }
  .section:not(:has(> .texte)) > .section__titre { grid-column: 1 / -1; margin-bottom: var(--k-pas-3); }
  .section--parcours > .section__titre { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--k-pas-3); }
  .section.section--parcours > .video.video--verticale { grid-column: 1 / span 4; grid-row: 2 / span 3; margin: 0; min-width: 0;
    width: 100%; max-width: 360px; }
  .section--parcours > .video--verticale .video__cadre video { max-width: 100%; }
  .section--parcours > .texte { grid-row: 2; }
  /* visuels larges : carte, schéma, frise, barres, couloirs, étapes, cartes d'opérations, vidéo, formulaire */
  .section > .carte-bloc, .section > .schema, .section > .frise-bloc, .section > .durees, .section > .couloirs,
  .section > .moments, .section > .cartes-ops, .section > .video, .section > .video__parties, .section > .fiche:not(.fiche--compacte),
  .section > .circuit, .section > .portes, .section > .prix { grid-column: 1 / -1; }
}

/* ---- texte courant ---- */
.texte { max-width: var(--k-colonne-texte); }
.texte > * + * { margin-top: 1em; }
.texte h3 { font-family: var(--k-police-titres); font-size: var(--k-titre-3); font-weight: 700; line-height: 1.25; margin-top: 1.6em; letter-spacing: -0.01em; }
.texte h3 + p { margin-top: 0.5em; }
.texte ul { padding-left: 1.3em; list-style: disc; }
.texte ol { padding-left: 1.3em; list-style: decimal; }
.texte li + li { margin-top: 0.45em; }
.texte li::marker { color: var(--k-accent); font-weight: 700; }
/* Synthèse d'une fiche d'opération en tableau (Olivier Emery, WhatsApp du 19/11/2026, W27) : filets fins, libellé à
   gauche, détail à droite ; au téléphone, les deux colonnes restent côte à côte et le texte passe à la ligne. */
.texte .synthese { width: 100%; border-collapse: collapse; border-top: 1px solid var(--k-filet); }
.texte .synthese th, .texte .synthese td { padding: 12px 20px 12px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--k-filet); overflow-wrap: anywhere; hyphens: auto; }
.texte .synthese th:last-child, .texte .synthese td:last-child { padding-right: 0; }
.texte .synthese thead th { font-size: var(--k-petit); font-weight: 600; color: var(--k-encre-2); }
.texte .synthese tbody th { width: 34%; font-weight: 600; }
@media (max-width: 559px) {
  .texte .synthese th, .texte .synthese td { padding: 10px 12px 10px 0; }
  .texte .synthese tbody th { width: 40%; }
}
.texte a { color: var(--k-accent-texte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.texte a:hover { text-decoration-thickness: 2px; }
/* une adresse électronique dans le texte : sur une ligne, une cible de 44 pixels de haut que la marge intérieure
   d'un lien en ligne donne sans changer l'interligne (contrôle design du 4/11, C9) */
.texte a[href^="mailto:"] { padding: 12px 0; white-space: nowrap; }
@media (max-width: 359px) { .texte a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; } }
.texte strong { font-weight: 650; }
/* appels de note et exposants : jamais sous 12 pixels, seuil de lecture au téléphone */
.texte sup { font-size: max(12px, 0.75em); line-height: 0; }
.footnote-ref { display: inline; padding: 0 1px 0 2px; font-weight: 600; text-decoration: none; }
.ordinal { font-size: max(12px, 0.72em); line-height: 0; vertical-align: 0.5em; }

/* listes d'étapes numérotées : un rang par étape, le numéro dans une pastille de couleur */
.texte ol.etapes { list-style: none; padding: 0; counter-reset: etape; border-top: 1px solid var(--k-filet); }
.texte ol.etapes li { position: relative; margin: 0; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--k-filet); counter-increment: etape; }
.texte ol.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 13px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--k-accent-doux); color: var(--k-accent-texte); font-weight: 700; font-size: var(--k-petit); }

/* paragraphes faits de liens seuls : des liens de suite de lecture */
.suite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: var(--k-pas-3); }
.suite a { display: inline-block; padding: 10px 0; color: var(--k-accent-texte); font-weight: 600; line-height: 1.5;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--k-accent); }
.suite a:hover { text-decoration-thickness: 3px; }
.suite a::after { content: "\00a0→"; text-decoration: none; display: inline; }

/* ---- boutons ---- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 1.5px solid var(--k-accent);
  border-radius: var(--k-rayon-bouton); background: var(--k-accent); color: var(--k-sur-accent) !important; text-decoration: none !important; font-weight: 650;
  box-shadow: 0 10px 24px -12px rgba(43, 89, 255, 0.7);
  transition: background-color var(--k-duree) var(--k-courbe), transform var(--k-duree-courte) var(--k-courbe), box-shadow var(--k-duree) var(--k-courbe); }
.bouton::after { content: "→" !important; display: inline !important; transition: transform var(--k-duree) var(--k-courbe); }
.bouton:hover { background: var(--k-accent-texte); border-color: var(--k-accent-texte); transform: translateY(-1px); }
.bouton:hover::after { transform: translateX(3px); }
.bouton:active { transform: scale(0.98); }
.bouton--clair { background: var(--k-fond); color: var(--k-accent-texte) !important; box-shadow: none; }
.bouton--clair:hover { background: var(--k-accent-doux); border-color: var(--k-accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--k-pas-4); }

/* ---- portes de l'accueil : vendre, co-investir, apprendre ---- */
.portes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.porte { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 26px 24px; border-radius: var(--k-rayon-grand);
  background: var(--k-fond); border: 1px solid var(--k-filet); box-shadow: var(--k-ombre); text-decoration: none; color: var(--k-encre);
  transition: transform var(--k-duree) var(--k-courbe), box-shadow var(--k-duree) var(--k-courbe), border-color var(--k-duree) var(--k-courbe); }
.porte:hover { transform: translateY(-4px); box-shadow: var(--k-ombre-forte); border-color: var(--k-accent); }
.porte__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--k-accent-doux); color: var(--k-accent-texte); }
.porte__icone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.porte--vert .porte__icone { background: var(--k-vert-doux); color: var(--k-vert-texte); }
.porte--corail .porte__icone { background: var(--k-corail-doux); color: var(--k-corail-texte); }
.porte--soleil .porte__icone { background: var(--k-soleil-doux); color: var(--k-attente); }
.porte__titre { font-family: var(--k-police-titres); font-size: 1.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.porte__texte { color: var(--k-encre-2); font-size: var(--k-petit); line-height: 1.5; }
.porte__suite { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--k-accent-texte); text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1.5px; text-decoration-color: var(--k-accent); }
.porte__suite::after { content: "\00a0→"; }
.porte:hover .porte__suite { text-decoration-thickness: 3px; }

/* ---- repères de la société (registre du commerce) ---- */
.reperes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: var(--k-pas-4); padding: 0; list-style: none; font-size: var(--k-petit); color: var(--k-encre-2); }
.reperes li { display: flex; flex-direction: column; gap: 2px; }
.reperes strong { font-family: var(--k-police-titres); font-size: 1.25rem; font-weight: 700; color: var(--k-encre); letter-spacing: -0.01em; }

/* légende d'un visuel : la phrase qui dit son idée, sous le graphique, avant sa note */
.visuel__phrase { display: block; margin-top: var(--k-pas-2); max-width: var(--k-colonne-texte); font-size: var(--k-corps);
  line-height: 1.5; color: var(--k-encre); }
.carte-bloc > .visuel__phrase { margin-top: var(--k-pas-3); }

/* sources, notes */
.source { margin-top: 10px; font-size: var(--k-mini); line-height: 1.45; color: var(--k-encre-2); max-width: var(--k-colonne-texte); }
.chiffre-source { margin-top: var(--k-pas-3); padding-top: 12px; border-top: 1px solid var(--k-filet); }
.notes { max-width: var(--k-colonne-texte); margin-top: var(--k-pas-5); padding-top: var(--k-pas-2); border-top: 1px solid var(--k-filet);
  font-size: var(--k-mini); color: var(--k-encre-2); }
.notes__titre { font-size: var(--k-petit); font-weight: 600; color: var(--k-encre); margin-bottom: 8px; }
.notes ol { padding-left: 1.6em; list-style: decimal; }
.notes li::marker { font-weight: 600; color: var(--k-encre); }
.notes li + li { margin-top: 6px; }
.notes p { display: inline; }
.notes a { color: var(--k-accent-texte); }
/* renvoi au texte : une cible de 44 pixels, que ses marges négatives gardent hors de la hauteur de ligne */
.footnote-backref { display: inline; padding: 12px 10px; white-space: nowrap; text-decoration: none; color: var(--k-accent-texte); }
@media (min-width: 1024px) {
  .page > .notes { margin-left: calc((100% + clamp(24px, 3vw, 48px)) / 3); }
}

/* ---- accueil : premier écran, bandes ---- */
.accueil-tete { position: relative; isolation: isolate; background: var(--k-degrade-tete); border-bottom: 1px solid var(--k-filet); }
.accueil-tete__dedans { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: clamp(28px, 4vw, 64px) var(--k-marge) clamp(40px, 5vw, 72px); }
.accueil-tete .tete__titre { font-size: var(--k-titre-affiche); max-width: 15ch; }
.accueil-tete .tete__intro { max-width: 54ch; }
.bande { padding: var(--k-section) 0; }
.bande--sable { background: var(--k-fond-2); }
.bande--ciel { background: var(--k-fond-3); }
.bande__dedans { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: 0 var(--k-marge); }
.bande--portes { padding: clamp(36px, 4vw, 56px) 0 0; }
.bande .section { padding: 0; }
.bande__titre-portes { font-family: var(--k-police-titres); font-size: var(--k-titre-3); font-weight: 700; margin-bottom: var(--k-pas-3); }
@media (min-width: 1024px) {
  .duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); align-items: center; }
  .duo > .duo__texte { grid-column: 1 / span 5; }
  .duo > .duo__visuel { grid-column: 6 / -1; }
  .duo--inverse > .duo__texte { grid-column: 8 / -1; grid-row: 1; }
  .duo--inverse > .duo__visuel { grid-column: 1 / span 7; grid-row: 1; }
  .duo--large > .duo__visuel { grid-column: 1 / -1; grid-row: 2; margin-top: var(--k-pas-4); }
  .duo--large > .duo__texte { grid-column: 1 / span 7; }
}
.duo__visuel { margin-top: var(--k-pas-4); }
@media (min-width: 1024px) { .duo:not(.duo--large) > .duo__visuel { margin-top: 0; } }
.duo .section__titre { margin-bottom: var(--k-pas-3); }

/* apparitions au défilement (moteur-mdb.js) : l'élément reste visible tant que le script ne l'a pas pris en charge ;
   chacune joue une seule fois, en moins d'une seconde */
.js [data-revele] { will-change: transform, opacity; }

/* ---- pied de page ---- */
.pied { background: var(--k-fond-sombre); color: var(--k-sur-sombre); }
.pied__grille { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: var(--k-pas-5) var(--k-marge) var(--k-pas-4);
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--k-pas-4); }
.pied__titre { font-family: var(--k-police-titres); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.pied__identite { font-size: var(--k-petit); color: var(--k-sur-sombre-2); line-height: 1.55; }
.pied__identite p + p { margin-top: 8px; }
.pied__identite a { color: var(--k-sur-sombre); }
/* l'adresse électronique tient sur une ligne et offre une cible de 44 pixels (contrôle design du 4/11, C9) */
.pied__identite .courriel { display: inline-flex; align-items: center; min-height: var(--k-cible-tactile); white-space: nowrap; }
@media (max-width: 359px) { .pied__identite .courriel { white-space: normal; overflow-wrap: anywhere; } }
.pied__liste { list-style: none; margin: 0; padding: 0; }
/* un lien du pied se voit lien (souligné) et offre une cible de 44 pixels à toutes les tailles (audit du 2/11, D17, D18) */
.pied__liste a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--k-cible-tactile); font-size: var(--k-petit); color: var(--k-sur-sombre);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.pied__liste a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.pied__liste svg { width: 20px; height: 20px; flex: none; }
.pied__marque { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--k-police-titres); font-weight: 800; font-size: 1.35rem; }
.pied__marque svg { width: 44px; height: 14px; fill: none; stroke: var(--k-soleil); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pied__bas { max-width: calc(var(--k-colonne-max) + 2 * var(--k-marge)); margin: 0 auto; padding: 0 var(--k-marge) var(--k-pas-4);
  font-size: var(--k-mini); color: var(--k-sur-sombre-2); }
@media (max-width: 1023px) {
  .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied__identite-bloc { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pied__liste a { min-width: var(--k-cible-tactile); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Version de validation (generateur/version.py) : chaque point en attente se voit surligné, suivi de son repère ; la
   version publique ne porte aucune de ces classes. */
.attente { background: #fff1a8; color: inherit; padding: 0 .15em; border-radius: 3px; box-shadow: 0 0 0 2px #f2b200; }
/* Le repère tient sa propre ligne, à 14 px au moins quel que soit le corps du parent (contrôle 2, C-24). */
.attente__repere { display: block; width: fit-content; max-width: 100%; margin: .3em 0 .15em; padding: .1em .5em;
  border-radius: 3px; background: #b45309; color: #fff; font-size: max(14px, 0.875rem); font-weight: 700;
  line-height: 1.45; letter-spacing: .01em; text-align: left; text-transform: none; white-space: normal; }
.attente__question { font-weight: 400; }
.attente-bandeau { margin: 0 0 1rem; padding: .6rem .9rem; border-left: 6px solid #b45309; border-radius: 6px;
  background: #fff1a8; color: #3b2a00; font-size: .95rem; max-width: 72ch; }
.attente-bloc { outline: 3px dashed #f2b200; outline-offset: 6px; border-radius: 8px; margin-block: 1.5rem; }

/* Au téléphone, l'aplat de couleur derrière une photo reste dans la colonne du texte : il ne touche plus le bord de
   l'écran (lecteurs aveugles du 5/11). */
@media (max-width: 639px) {
  .photo-tete::after, .curseur::after, .duo-photos__scene::before { right: -6px; top: -6px; }
}

/* Journal : la vignette de l'image de tête de chaque article, devant son entrée (contrôle 2, C-23) ; pleine largeur au
   téléphone, dans la colonne du titre à partir de 1 024 pixels. */
.journal__vignette { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--k-rayon); background: var(--k-piste); box-shadow: var(--k-ombre); }
.journal__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section--journal > .journal__vignette + .section__titre { margin-top: var(--k-pas-3); }
@media (min-width: 1024px) {
  .section--journal > .journal__vignette { grid-column: 1 / span 4; grid-row: 1; max-width: 360px; }
  .section--journal > .section__titre { grid-row: 2; }
  .section--journal > .texte { grid-row: 1 / span 2; }
}
