/* VO NET — pages Guides (public/guides/*.html, générées par seo/build.mjs).
   Se charge APRÈS vonet-app.css (mêmes variables : --ink, --forest, --leaf, --mint, --mist, --line, --muted…).
   Classes : .guide .crumbs .g-lead .g-meta .g-cta .g-cta-m .g-cta-t .g-grid .g-card .g-check .g-q
             + utilitaires pour les rédacteurs : .g-note .g-tip .g-warn .g-table, tableaux, <details>, <blockquote>, <figure>.
   Lecture : 17 px sur téléphone, 18 px sur ordinateur, interligne 1,65, colonne de texte ≈ 65 caractères.
   CSS seul (aucun changement HTML) : barre de progression de lecture et apparitions douces au défilement,
   uniquement dans les navigateurs qui gèrent animation-timeline, jamais si « réduire les animations ». */

/* ---------- Conteneur de lecture ---------- */
/* 720 px de large : environ 65 à 70 caractères par ligne à 18 px (Plus Jakarta Sans est une police large : 65ch ≈ 850 px) */
.card.guide{width:100%;max-width:720px;margin-inline:auto;gap:18px}
@media (min-width:720px){.card.guide{gap:20px}}
.guide > *{min-width:0}
.guide{overflow-wrap:break-word}
/* Garde-fou de mesure pour le texte ; tableaux, cartes et encadré d'appel à l'action gardent toute la largeur */
.guide > :is(p,ul,ol,h2,h3,h4,blockquote,details,figure){max-width:min(65ch,38em)}
/* Téléphone : l'article occupe toute la largeur de l'écran (≈ 46 caractères par ligne au lieu de 40 à 360 px) */
@media (max-width:479.98px){
  .card.guide{width:auto;max-width:none;margin-inline:-16px;border-radius:0;padding:24px 18px 30px;box-shadow:0 1px 0 var(--line),0 -1px 0 var(--line)}
}

/* ---------- Titres : hiérarchie nette, espace avant, proches de leur texte ---------- */
.guide h1{font-size:clamp(29px,7vw,44px);line-height:1.1}
.guide h2{font-size:clamp(22px,5.4vw,28px);line-height:1.2;margin-top:22px}
@media (min-width:720px){.guide h2{margin-top:30px}}
.guide h3{font-size:clamp(19px,4.7vw,21.5px);line-height:1.3;letter-spacing:-.02em;margin-top:10px}
.guide h4{margin:0;font-size:18px;line-height:1.35;font-weight:800;color:var(--ink)}
/* Un intertitre reste collé au texte qu'il annonce */
.guide > :is(h2,h3,h4) + *{margin-top:-6px}
/* Ancres : html a déjà scroll-padding-top (place de l'en-tête fixe) ; ce petit écart s'y ajoute */
.guide :is(h2,h3,h4,[id]){scroll-margin-top:12px}
/* Petit repère bleu de la marque au-dessus des intertitres (le bleu-blanc-rouge reste réservé au logo de l'en-tête) */
.guide > h2{position:relative;padding-top:18px}
.guide > h2::before{content:"";position:absolute;left:0;top:0;width:34px;height:4px;border-radius:4px;transform-origin:0 50%;background:linear-gradient(90deg,var(--forest,#14307A),var(--sprout,#5B8CFF))}

/* ---------- Texte courant ---------- */
.guide p,.guide li{font-size:17px;line-height:1.65;color:#2B3550;text-wrap:pretty}
@media (min-width:720px){.guide p,.guide li{font-size:18px}}
.guide b,.guide strong{color:var(--ink)}
.guide a{font-weight:600;text-decoration-thickness:1.5px;text-underline-offset:3px}
.guide a:hover{color:var(--forest)}
.guide a.btn{text-decoration:none;color:#fff}
.guide a.btn:is(.btn-light,.btn-outline){color:#14307A}
.guide ul,.guide ol{margin:0;padding-left:1.35em;display:grid;gap:10px}
.guide li::marker{color:var(--leaf)}
.guide ol > li::marker{font-weight:800}
.guide li > :is(ul,ol){margin-top:10px}
.guide img,.guide video{max-width:100%;height:auto;border-radius:16px}
.guide figure{margin:0;display:grid;gap:8px}
.guide figcaption{font-size:14.5px;line-height:1.5;color:var(--muted)}
.guide hr{border:0;border-top:1px solid var(--line);margin:12px 0}
.guide code{font-size:.92em;padding:.1em .35em;border-radius:6px;background:var(--mist);color:var(--ink);overflow-wrap:anywhere}
.guide pre{margin:0;max-width:100%;overflow-x:auto;padding:14px 16px;border-radius:14px;background:var(--mist)}
.guide pre code{padding:0;background:none}

/* ---------- Fil d'Ariane ---------- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--muted)}
.crumbs a{color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.crumbs a:hover{color:var(--forest);text-decoration:underline}
.crumbs span{color:#5F6880}
.crumbs > span:last-child{color:var(--ink)}

/* ---------- Chapô et infos de l'article ---------- */
.guide .g-lead{font-size:clamp(18px,4.6vw,21px);line-height:1.6;color:var(--ink);font-weight:500;text-wrap:pretty}
.guide .g-meta{font-size:14px;line-height:1.5;color:var(--muted);padding:10px 14px;background:var(--mist);border-radius:14px}

/* ---------- Encadré d'appel à l'action ---------- */
.g-cta{position:relative;overflow:hidden;display:grid;gap:16px;align-items:center;margin-top:14px;padding:24px 20px 22px;border-radius:22px;color:#fff;
  background:radial-gradient(80% 120% at 100% 0%,rgba(91,140,255,.45) 0%,transparent 60%),linear-gradient(150deg,#13295F,#0A1433);
  box-shadow:0 30px 60px -34px rgba(10,27,63,.85)}
/* Petit repère bleu clair en haut de l'encadré (même repère que les intertitres) */
.g-cta::after{content:"";position:absolute;left:20px;top:12px;width:42px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--sprout,#5B8CFF),#9FB6FF);pointer-events:none}
@media (min-width:600px){.g-cta::after{left:28px;top:14px}}
.guide .g-cta .g-cta-note{font-size:13.5px;line-height:1.5;color:#A9B8DD}
.g-cta > div:last-child{display:grid;gap:10px;justify-items:start}
.g-cta-m{width:86px}
.guide .g-cta p{color:#DCE6FF;font-size:16.5px;line-height:1.6}
@media (min-width:720px){.guide .g-cta p{font-size:17px}}
.guide .g-cta .g-cta-t{color:#fff;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.25;text-wrap:balance}
/* Boutons d'action : bleu de la marque #14307A, texte blanc ; anneau bleu clair pour qu'ils se détachent du fond marine */
.g-cta .btn{background:#14307A;color:#fff;box-shadow:0 0 0 2px #9FB6FF,0 14px 30px -14px rgba(0,0,0,.6);margin-top:4px}
.g-cta .btn:hover{background:#0E245E;box-shadow:0 0 0 2px #C9D7FF,0 18px 34px -14px rgba(0,0,0,.7)}
.guide .g-cta a.btn{font-weight:800;text-decoration:none;color:#fff}
@media (min-width:600px){.g-cta{grid-template-columns:auto 1fr;padding:26px 28px;gap:22px}.g-cta-m{width:110px}}
/* Champ « Collez le lien » de l'encadré (géré par vonet-app.js ; le lien .g-cta-alt reste pour les navigateurs sans JS) */
.g-cta-f{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;margin-top:4px}
.g-cta-f input{width:100%;min-width:0;min-height:52px;padding:12px 16px;border:0;border-radius:14px;font:inherit;font-size:16px;color:var(--ink);background:#fff}
.g-cta-f input::placeholder{color:#5F6880;opacity:1}
.g-cta-f input:focus{outline:3px solid var(--sprout);outline-offset:2px}
.g-cta .g-cta-f .btn{margin-top:0;min-height:52px;background:#14307A;color:#fff;border:0;cursor:pointer;font:inherit;font-weight:800}
.g-cta .g-cta-f .btn:hover{background:#0E245E}
@media (min-width:600px){.g-cta-f{grid-template-columns:minmax(0,1fr) auto}}
.guide .g-cta .g-cta-msg{color:#FFD7D2;font-size:14.5px;font-weight:700;min-height:0}
.guide .g-cta .g-cta-msg:empty{display:none}
.guide .g-cta a.g-cta-alt{color:#DCE6FF;font-size:15px;font-weight:600;display:inline-flex;align-items:center;min-height:44px}
.guide .g-cta a.g-cta-alt:hover{color:#fff}
/* Formulaire court du haut des guides (build.mjs, CTA_HAUT) : fond clair, même champ que l'encadré du bas */
.guide .g-cta-top{display:grid;gap:10px;padding:16px;border-radius:18px;background:var(--mist);border:1px solid rgba(20,48,122,.14)}
.guide .g-cta-top .g-cta-top-t{margin:0;font-size:15.5px;line-height:1.55;color:var(--ink)}
.guide .g-cta-top .g-cta-f input{box-shadow:inset 0 0 0 1px rgba(10,27,63,.28)}
.guide .g-cta-top .btn{margin-top:0;min-height:52px;background:#14307A;color:#fff;border:0;cursor:pointer;font:inherit;font-weight:800}
.guide .g-cta-top .btn:hover{background:#0E245E}
.guide .g-cta-top .g-cta-msg{margin:0;color:#B3261E;font-size:14.5px;font-weight:700}
.guide .g-cta-top .g-cta-msg:empty{display:none}

/* ---------- Encart « Ce que le rapport vérifie » (fin d'article, juste avant le rappel ; seo/build.mjs, 30/10/2026) ---------- */
.g-verif{display:grid;gap:12px;margin-top:14px;padding:20px 18px;border:1.5px solid var(--line);border-radius:18px;background:#fff}
@media (min-width:600px){.g-verif{padding:24px 26px}}
.guide .g-verif .g-verif-t{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.25;color:var(--ink);text-wrap:balance}
.guide .g-verif ul.g-check{gap:8px}
.guide .g-verif li{font-size:16px;line-height:1.55}
.guide .g-verif .g-verif-n{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.guide .g-verif .g-verif-n a{color:var(--forest)}
@media print{.g-verif{break-inside:avoid}}
/* Page Guides : groupes par thème */
.g-group{display:grid;gap:12px}
.g-group h2{margin-top:10px}

/* ---------- Grille de cartes (À lire aussi, page Guides) ---------- */
.g-grid{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);padding-bottom:72px} /* 27/11 : la bulle d'aide ne couvre plus la dernière carte */
@media (min-width:640px){.g-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.guide a.g-card{display:grid;gap:6px;align-content:start;padding:16px 18px;border:1.5px solid var(--line);border-radius:18px;background:#fff;
  text-decoration:none;color:var(--ink);font-weight:400;transition:transform .45s var(--spring),box-shadow .3s,border-color .3s}
.guide a.g-card:hover{transform:translateY(-4px);border-color:var(--sprout);box-shadow:0 22px 40px -24px rgba(10,27,63,.5)}
.guide a.g-card:hover i{color:var(--forest)}
.g-card b{font-size:16.5px;font-weight:800;line-height:1.3;letter-spacing:-.01em;color:var(--ink);text-wrap:pretty}
/* 27/11/2026 (revue du jury) : résumés courts et complets (moins de 105 signes), écrits pour tenir en 3 lignes ; la limite passe à
   4 lignes, simple garde-fou : un résumé n'est plus jamais coupé par « … » */
.g-card span{font-size:15px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.g-card i{font-style:normal;font-size:13.5px;font-weight:800;color:var(--leaf);margin-top:2px}

/* ---------- Checklist (✓) ---------- */
.guide ul.g-check{list-style:none;padding-left:0;gap:10px}
.g-check li{position:relative;padding:12px 14px 12px 48px;background:#F8FAFF;border:1px solid var(--line);border-radius:14px}
.g-check li::before{content:"";position:absolute;left:14px;top:15px;width:22px;height:22px;border-radius:50%;background:var(--green);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:16px;background-position:center;background-repeat:no-repeat}

/* ---------- Liste numérotée de questions (garde la numérotation native, compatible avec start="7") ---------- */
.guide ol.g-q{padding-left:30px;gap:12px}
.g-q li{padding-left:4px}
.g-q li::marker{color:var(--leaf);font-weight:800}

/* ---------- Encadrés pour les rédacteurs (note, conseil, attention) et citations ---------- */
.g-note,.g-tip,.g-warn,.guide blockquote{margin:0;padding:16px 18px;border-radius:16px;border-left:4px solid var(--forest);background:var(--mist)}
.g-note,.g-tip,.g-warn{position:relative;padding-left:52px}
.g-note::before,.g-tip::before,.g-warn::before{position:absolute;left:16px;top:17px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  font-size:14px;font-weight:800;line-height:1;font-style:normal;color:#fff;background:var(--forest)}
.g-note::before{content:"i";content:"i" / ""}
.g-tip::before{content:"✓";content:"✓" / "";background:var(--green)}
.g-warn::before{content:"!";content:"!" / "";background:#A86400}
.g-tip{border-color:var(--green);background:#E9F7F0}
.g-warn{border-color:#A86400;background:#FFF6E6}
.guide :is(p.g-note,p.g-tip,p.g-warn),.guide :is(.g-note,.g-tip,.g-warn) :is(p,li){font-size:16px;line-height:1.6}
@media (min-width:720px){.guide :is(p.g-note,p.g-tip,p.g-warn),.guide :is(.g-note,.g-tip,.g-warn) :is(p,li){font-size:17px}}
.guide blockquote{background:#F5F8FF;border-left-color:var(--sprout)}
.guide blockquote p{color:var(--ink);font-weight:500}
.guide blockquote :is(cite,footer){display:block;margin-top:8px;font-size:14.5px;font-style:normal;font-weight:600;color:var(--muted)}
.g-note > :first-child,.g-tip > :first-child,.g-warn > :first-child,.guide blockquote > :first-child{margin-top:0}
.g-note p + p,.g-tip p + p,.g-warn p + p,.guide blockquote p + p{margin-top:10px}
.g-note :is(ul,ol),.g-tip :is(ul,ol),.g-warn :is(ul,ol){margin-top:8px}

/* ---------- Tableaux : défilent dans leur cadre sur téléphone, jamais la page ; ombres aux bords quand il reste à faire défiler ---------- */
.g-table{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:16px;
  background:
    linear-gradient(90deg,#fff 40%,rgba(255,255,255,0)) 0 0/28px 100% no-repeat local,
    linear-gradient(270deg,#fff 40%,rgba(255,255,255,0)) 100% 0/28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(10,27,63,.2),rgba(10,27,63,0)) 0 0/12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(10,27,63,.2),rgba(10,27,63,0)) 100% 0/12px 100% no-repeat scroll,
    #fff}
.guide table{border-collapse:separate;border-spacing:0;width:100%;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums}
@media (min-width:720px){.guide table{font-size:16px}}
.guide > table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.guide th,.guide td{padding:11px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);color:#2B3550}
.guide td{min-width:8em}
.guide th{color:var(--ink);font-weight:800}
.guide thead th{background:var(--mist);white-space:nowrap}
.guide tbody th{background:#F8FAFF;font-weight:700;min-width:8.5em}
.guide tr:last-child > td,.guide tr:last-child > th{border-bottom:0}
.guide thead tr:last-child > th{border-bottom:1px solid var(--line)}
.guide caption{caption-side:bottom;padding:10px 14px;font-size:14px;color:var(--muted);text-align:left}
/* Téléphone : la colonne des intitulés reste visible pendant que le tableau défile */
@media (max-width:719.98px){
  .g-table tbody th{position:sticky;left:0;z-index:1;box-shadow:1px 0 0 var(--line)}
  .g-table:has(tbody th) thead th:first-child{position:sticky;left:0;z-index:2;box-shadow:1px 0 0 var(--line)}
}

/* ---------- Questions dépliables ---------- */
.guide details{border:1px solid var(--line);border-radius:16px;padding:0 18px;background:#fff}
.guide details + details{margin-top:-8px}
.guide summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:800;font-size:17px;line-height:1.4;color:var(--ink);list-style-position:outside}
.guide details[open]{padding-bottom:16px}
.guide details[open] summary{margin-bottom:6px}
.guide details > :not(summary) + :not(summary){margin-top:10px}

/* ---------- Lecture fluide : le texte courant ne s'efface jamais pendant le défilement ----------
   (vonet-app.js fait apparaître les blocs au défilement ; dans un guide, paragraphes, listes et tableaux restent affichés) */
.vn-motion .guide > :is(p,ul,ol,.g-table,table,details,blockquote,figure).rv{opacity:1;transform:none}

/* ---------- Barre de progression de lecture (CSS seul, liée au défilement de l'article) ---------- */
@supports (animation-timeline: view()){
  @media screen{
    article.card.guide{view-timeline:--vn-article block}
    article.card.guide::before{content:"";position:fixed;z-index:60;left:0;right:0;top:env(safe-area-inset-top,0px);height:4px;pointer-events:none;
      background:linear-gradient(90deg,var(--forest,#14307A),var(--sprout,#5B8CFF));transform-origin:0 50%;transform:scaleX(0);
      animation:vnLecture 1ms linear both;animation-timeline:--vn-article;animation-range:contain 0% contain 100%}
    html.vn-menu-open article.card.guide::before{visibility:hidden}
  }
}
@keyframes vnLecture{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ---------- Apparitions douces au défilement : intertitres et images (CSS seul) ---------- */
@media screen and (prefers-reduced-motion:no-preference){
  @supports (animation-timeline: view()){
    .card.guide > h3,.card.guide img,.card.guide > figure{animation:vnMonte 1ms linear both;animation-timeline:view();animation-range:entry 0% cover 20%}
    .card.guide > h2::before{animation:vnTrait 1ms linear both;animation-timeline:view();animation-range:entry 0% cover 30%}
  }
}
@keyframes vnMonte{from{opacity:.15;transform:translate3d(0,16px,0)}to{opacity:1;transform:none}}
@keyframes vnTrait{from{transform:scaleX(.15)}to{transform:scaleX(1)}}

/* ---------- Impression ---------- */
@media print{
  .g-cta,.g-cta-top,.crumbs{display:none!important}
  .card.guide{max-width:none;margin-inline:0;border-radius:0}
  .card.guide::before{display:none!important}
  .card.guide :is(h2,h3,img,figure),.card.guide > h2::before{animation:none!important;opacity:1!important;transform:none!important}
  .g-table{overflow:visible;background:#fff}
}

/* flèche toujours visible : on comprend tout de suite que la carte se lit en cliquant */
.guide a.g-card{position:relative;padding-right:54px}
/* 27/11/2026 : flèche dessinée (même famille que les autres flèches du site), plus de « → » en texte */
.guide a.g-card::after{content:"";position:absolute;right:14px;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;
  background:var(--mist,#EEF3FF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' stroke='%2314307A' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;transition:transform .25s,background-color .25s}
.guide a.g-card:hover::after{transform:translateX(4px);background:var(--forest,#14307A) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
/* Téléphone : cartes pleine largeur, sans flèche (toute la carte se touche) ; fil d'Ariane réduit à « Accueil › Guides »
   sur les pages de guide (le titre est déjà le H1 juste dessous) */
@media (max-width:600px){
  .guide a.g-card{padding-right:20px}
  .guide a.g-card::after{display:none}
  .crumbs:has(> :nth-child(4)) > :last-child,.crumbs:has(> :nth-child(4)) > :nth-last-child(2){display:none}
}
