/* Livret de l'apprenti — styles communs.
   Extrait le 2026-08-17 du bloc <style> de livret-apprenti-ifce-2026.html
   pour etre partage entre les pages generees (livret.php5) et l'ancienne page. */
:root{--lv-teal:#4c6ef5;--lv-blue:#748ffc;--lv-coral:#e03131;--lv-ink:#111;--lv-soft:#555b63;--lv-rule:#e2e6ea;}
    .livret-body{position:relative;padding-top:10px;background-color:#eceff4;
      background-image:
        radial-gradient(620px 520px at 90% 2%, rgba(76,110,245,.18), transparent 60%),
        radial-gradient(720px 640px at 2% 22%, rgba(116,143,252,.14), transparent 60%),
        radial-gradient(640px 560px at 98% 60%, rgba(116,143,252,.14), transparent 60%),
        radial-gradient(560px 560px at 6% 92%, rgba(76,110,245,.13), transparent 60%);
      background-attachment:fixed;background-repeat:no-repeat}
    .livret-body section{border:0;padding:64px 0 8px}
    .livret-body .num{display:inline-block;font-family:'Sora',sans-serif;font-weight:600;font-size:.72rem;
      letter-spacing:.22em;text-transform:uppercase;color:#3b5bdb;background:rgba(76,110,245,.14);
      padding:6px 15px;border-radius:999px;margin-bottom:16px}
    .livret-body h2{font-family:'Sora',sans-serif;font-weight:800;letter-spacing:-.02em;color:var(--lv-ink);
      font-size:clamp(1.9rem,3.6vw,2.8rem);line-height:1.12;max-width:24ch;margin:0 0 .4em}
    .livret-body h3{font-family:'Sora',sans-serif;font-weight:700;color:var(--lv-ink);font-size:1.32rem;margin:2.1em 0 .5em}
    .livret-body h4{font-family:'Sora',sans-serif;font-weight:600;color:var(--lv-ink);font-size:1.04rem;margin:1.5em 0 .4em}
    .livret-body p,.livret-body li{font-family:'Manrope',sans-serif;color:#333;line-height:1.75}
    .livret-body .intro{background:transparent;font-size:1.08rem;color:var(--lv-soft);max-width:72ch}
    .livret-body a{color:#3b5bdb;text-underline-offset:3px}
    .livret-body a:hover{color:var(--lv-blue)}
    .livret-body strong{color:#1b1f24}
    .livret-body mark{background:linear-gradient(transparent 58%,rgba(76,110,245,.42) 58%);color:var(--lv-ink) !important;-webkit-text-fill-color:var(--lv-ink);padding:0 2px}
    /* grids + cards */
    .livret-body .grid{display:grid;gap:22px;margin-top:28px}
    .livret-body .g2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
    .livret-body .g3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
    .livret-body .card{position:relative;border-radius:22px;padding:30px 30px 26px;border:1.5px solid transparent;
      background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.86)) padding-box,
                linear-gradient(135deg,rgba(76,110,245,.85),rgba(116,143,252,.5)) border-box;
      box-shadow:0 24px 54px -32px rgba(28,38,58,.5);backdrop-filter:blur(6px);
      transition:transform .28s ease,box-shadow .28s ease}
    .livret-body .card:hover{transform:translateY(-5px);box-shadow:0 34px 64px -28px rgba(76,110,245,.55)}
    .livret-body .card-ic{width:56px;height:56px;object-fit:contain;display:block;margin-bottom:18px;
      filter:drop-shadow(0 8px 16px rgba(76,110,245,.4))}
    .livret-body .card h4{margin-top:0;padding-left:0}
    .livret-body .card h4:before{display:none}
    .livret-body .card p:last-child,.livret-body .card ul:last-child{margin-bottom:0}
    /* callouts */
    .livret-body .callout{position:relative;border-radius:18px;padding:22px 26px 22px 32px;margin:30px 0;border:1.5px solid transparent;
      background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,250,252,.82)) padding-box,
                linear-gradient(135deg,rgba(76,110,245,.75),rgba(116,143,252,.35)) border-box;
      box-shadow:0 20px 48px -32px rgba(28,38,58,.45);backdrop-filter:blur(6px)}
    .livret-body .callout:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:5px;border-radius:999px;background:linear-gradient(var(--lv-teal),var(--lv-blue))}
    .livret-body .callout.warn{background:linear-gradient(180deg,rgba(255,247,247,.92),rgba(253,236,236,.85)) padding-box,linear-gradient(135deg,rgba(224,49,49,.8),rgba(224,49,49,.3)) border-box}
    .livret-body .callout.warn:before{background:linear-gradient(#e03131,#c92a2a)}
    .livret-body .callout.ok{background:linear-gradient(180deg,rgba(244,251,249,.92),rgba(233,248,245,.85)) padding-box,linear-gradient(135deg,rgba(47,158,110,.8),rgba(76,110,245,.35)) border-box}
    .livret-body .callout.ok:before{background:linear-gradient(#2f9e6e,#4c6ef5)}
    .livret-body .callout .tag{display:inline-block;font-family:'Sora',sans-serif;font-size:.7rem;letter-spacing:.15em;
      text-transform:uppercase;font-weight:700;color:var(--lv-coral);margin-bottom:6px}
    .livret-body .callout.ok .tag{color:#2f9e6e}
    .livret-body .callout:not(.warn):not(.ok) .tag{color:#3b5bdb}
    /* tables */
    .livret-body table{width:100%;border-collapse:separate;border-spacing:0;margin:24px 0;font-size:.92rem;
      background:#fff;border:1px solid var(--lv-rule);border-radius:16px;overflow:hidden}
    .livret-body caption{caption-side:bottom;text-align:left;font-size:.78rem;color:var(--lv-soft);padding-top:10px;font-style:italic}
    .livret-body th,.livret-body td{border-bottom:1px solid var(--lv-rule);border-right:1px solid var(--lv-rule);padding:12px 14px;text-align:left}
    .livret-body tr>*:last-child{border-right:0}.livret-body tbody tr:last-child>*{border-bottom:0}
    .livret-body thead th{background:var(--lv-ink);color:#eef4f4;font-family:'Sora',sans-serif;font-size:.74rem;
      letter-spacing:.05em;text-transform:uppercase;font-weight:600}
    .livret-body tbody th{background:#eef1f4;font-weight:600;color:var(--lv-ink)}
    .livret-body tbody tr:nth-child(even) td{background:#f6f8fa}
    .livret-body td.pc{font-variant-numeric:tabular-nums;white-space:nowrap}.livret-body td.pc b{color:#3b5bdb}
    /* steps */
    .livret-body .steps{counter-reset:s;list-style:none;padding:0;margin:28px 0}
    .livret-body .steps li{counter-increment:s;position:relative;padding:0 0 22px 60px;border-left:2px dashed var(--lv-rule);margin-left:17px}
    .livret-body .steps li:last-child{border-left-color:transparent}
    .livret-body .steps li:before{content:counter(s);position:absolute;left:-18px;top:-2px;width:36px;height:36px;border-radius:50%;
      background:linear-gradient(113deg,var(--lv-teal),var(--lv-blue));color:#ffffff;display:grid;place-items:center;
      font-family:'Sora',sans-serif;font-weight:700;font-size:.95rem;box-shadow:0 8px 20px -8px rgba(76,110,245,.7)}
    .livret-body .steps strong{display:block;font-size:1.05rem;color:var(--lv-ink)}
    /* contacts */
    .livret-body .contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:28px}
    .livret-body .contact-grid>div{background:#fff;padding:20px 22px;border:1px solid var(--lv-rule);border-radius:16px;transition:.25s}
    .livret-body .contact-grid>div:hover{border-color:rgba(76,110,245,.55);transform:translateY(-2px)}
    .livret-body .contact-grid .role{font-family:'Sora',sans-serif;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#3b5bdb;font-weight:700}
    .livret-body .contact-grid .who{font-family:'Sora',sans-serif;font-size:1.06rem;font-weight:600;margin:6px 0 3px;color:var(--lv-ink)}
    .livret-body .contact-grid .how{font-size:.88rem;color:var(--lv-soft);word-break:break-word}
    .livret-body .ref{font-size:.8rem;color:var(--lv-soft);font-style:italic}
    .livret-body .legal{font-size:.82rem;color:var(--lv-soft)}
    /* hero livret */
    /* header natif (pavé blanc mode clair) : garantir qu'il passe au-dessus du hero sombre */
    .vs-header{z-index:100}
    /* lisibilite footer (colonnes texte sur fond sombre) */
    .footer-style1 .footer-links ul li{color:#c3ccce}
    .footer-style1 .footer-links ul li a{color:var(--lv-teal)}
    .hero-lv{position:relative;overflow:hidden;background:radial-gradient(120% 120% at 100% 0%,#10403a 0%,transparent 55%),
      linear-gradient(160deg,#0d0f12,#161a20 55%,#1f1f1f);color:#f4f7f8;padding:200px 0 96px}
    .hero-lv:after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:
      url(livret-tpl/assets/images/bg/main8-1.png) right -4% top -18%/58% auto no-repeat,
      radial-gradient(760px 340px at 84% 6%,rgba(76,110,245,.5),transparent 62%),
      radial-gradient(680px 420px at 2% 100%,rgba(116,143,252,.5),transparent 60%)}
    .hero-lv .container{position:relative;z-index:2}
    .hero-lv .eyebrow{font-family:'Sora',sans-serif;letter-spacing:.24em;text-transform:uppercase;font-size:.74rem;color:#9fb7b2;display:block;margin-bottom:14px}
    .hero-lv h1{font-family:'Sora',sans-serif;font-weight:800;letter-spacing:-.025em;color:#fff;
      font-size:clamp(2.6rem,6.6vw,4.8rem);line-height:1.06;margin:0 0 .3em}
    .hero-lv h1 span{background:linear-gradient(113deg,var(--lv-teal),var(--lv-blue));-webkit-background-clip:text;
      background-clip:text;-webkit-text-fill-color:transparent}
    .hero-lv .lead{max-width:60ch;color:#c6d3d3;font-size:1.12rem;line-height:1.7}
    .hero-lv .chips{margin:30px 0 8px;display:flex;flex-wrap:wrap;gap:10px}
    .hero-lv .chip{border:1px solid rgba(76,110,245,.45);background:rgba(76,110,245,.07);border-radius:999px;
      padding:7px 16px;font-family:'Sora',sans-serif;font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:#dff3ef}
    .hero-lv .cta{margin-top:30px;display:flex;flex-wrap:wrap;gap:14px}
    /* text logo */
    .lv-logo{font-family:'Sora',sans-serif;font-weight:800;font-size:1.7rem;letter-spacing:.04em;
      background:linear-gradient(113deg,var(--lv-teal),var(--lv-blue));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
    /* ================= Variante NEUTRE (sans photo, tons sobres, sans volet) ================= */
    /* fond neutre, suppression des halos colores */
    .livret-body{background:#f3f4f6 !important}
    /* icones en gris neutre */
    .livret-body .card-ic{filter:grayscale(1) brightness(.55) contrast(.9) !important}
    /* cartes : bordure neutre pleine */
    .livret-body .card{background:#fff !important;border:1px solid #d7dbe0 !important;box-shadow:0 16px 36px -30px rgba(20,25,35,.5) !important}
    .livret-body .card:hover{border-color:#9aa3ad !important;box-shadow:0 22px 44px -28px rgba(20,25,35,.35) !important}
    .livret-body .card h4:before{background:#64748b !important}
    /* callouts neutres (barre grise ; warn en rouge sobre) */
    .livret-body .callout{background:#f7f8fa !important;border:1px solid #dce0e5 !important;box-shadow:none !important}
    .livret-body .callout:before{background:#64748b !important}
    .livret-body .callout .tag{color:#475569 !important}
    .livret-body .callout.warn{background:#f6eeee !important;border-color:#e6d3d3 !important}
    .livret-body .callout.warn:before{background:#b05a5a !important}
    .livret-body .callout.warn .tag{color:#a24a4a !important}
    .livret-body .callout.ok{background:#f4f6f8 !important;border-color:#dce0e5 !important}
    .livret-body .callout.ok:before{background:#475569 !important}
    .livret-body .callout.ok .tag{color:#475569 !important}
    /* accents texte neutres */
    .livret-body .num{color:#475569 !important;background:#e6e9ed !important}
    .livret-body a{color:#334155 !important}
    .livret-body a:hover{color:#1b1f24 !important}
    .livret-body td.pc b{color:#334155 !important}
    .livret-body mark{background:linear-gradient(transparent 58%, #dfe3e8 58%) !important;color:var(--lv-ink) !important;-webkit-text-fill-color:var(--lv-ink) !important}
    .livret-body .contact-grid .role{color:#475569 !important}
    .livret-body .contact-grid>div:hover{border-color:#c7ccd2 !important}
    /* steps neutres */
    .livret-body .steps li:before{background:#475569 !important;color:#fff !important;box-shadow:none !important}
    /* hero neutre, sans photo */
    .hero-lv{background:linear-gradient(160deg,#1a1d21,#25292e 60%,#303439) !important}
    .hero-lv:after{background:radial-gradient(680px 420px at 88% 0%, rgba(255,255,255,.05), transparent 60%) !important;mix-blend-mode:normal !important}
    .hero-lv .eyebrow{color:#a7adb4 !important}
    .hero-lv h1 span{background:none !important;-webkit-text-fill-color:#b7bec6 !important;color:#b7bec6 !important}
    .hero-lv .chip{border-color:rgba(255,255,255,.26) !important;background:rgba(255,255,255,.05) !important;color:#d8dce0 !important}
    .hero-lv .ibt-btn-secondary{background:#e8eaed !important;color:#1b1f24 !important}
    /* logo IFCE : clair sur footer sombre, fonce sur pave blanc du header */
    .lv-logo{background:none !important;-webkit-text-fill-color:#e8eaed !important;color:#e8eaed !important}
    .vs-header .lv-logo,.sticky-active .lv-logo{-webkit-text-fill-color:#1b1f24 !important;color:#1b1f24 !important}

    /* ===== Navigation par rubriques : cartes icone + titre + description ===== */
    .lv-nav{margin:0 0 42px}
    .lv-nav-title{display:flex;align-items:center;gap:.55rem;font-family:'Sora',sans-serif;
      font-size:1.02rem;font-weight:700;color:var(--lv-ink);margin:26px 0 12px;
      text-transform:uppercase;letter-spacing:.06em}
    .lv-nav-title i{color:var(--lv-teal);font-size:1.1rem}
    .lv-cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(268px,1fr))}
    .lv-card{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;
      background:#fff;border:1px solid var(--lv-rule);border-radius:16px;
      text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
    .lv-card:hover,.lv-card:focus-visible{transform:translateY(-3px);border-color:var(--lv-teal);
      box-shadow:0 12px 26px rgba(17,17,17,.10)}
    .lv-card-ic{flex:0 0 42px;height:42px;display:grid;place-items:center;border-radius:12px;
      background:linear-gradient(135deg,rgba(76,110,245,.18),rgba(116,143,252,.18))}
    .lv-card-ic i{color:var(--lv-teal);font-size:1.15rem}
    .lv-card-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
    .lv-card-txt strong{font-family:'Sora',sans-serif;font-size:.98rem;color:var(--lv-ink);line-height:1.3}
    .lv-card-txt small{font-size:.82rem;color:var(--lv-soft);line-height:1.45}

    /* ===== Mode lecture plein ecran : une seule rubrique visible ===== */
    .lv-reader-launch{margin:0 0 18px}
    .lv-btn-reader{display:inline-flex;align-items:center;gap:13px;padding:14px 20px;
      border:0;border-radius:16px;cursor:pointer;text-align:left;
      background:linear-gradient(135deg,var(--lv-teal),var(--lv-blue));color:#fff;
      box-shadow:0 10px 24px rgba(76,110,245,.32);transition:transform .18s ease,box-shadow .18s ease}
    .lv-btn-reader:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(76,110,245,.42)}
    .lv-btn-reader i{font-size:1.3rem}
    .lv-btn-reader span{display:flex;flex-direction:column;line-height:1.25}
    .lv-btn-reader strong{font-family:'Sora',sans-serif;font-size:1rem}
    .lv-btn-reader small{font-size:.82rem;opacity:.92}

    /* barre haute + pied, visibles seulement en mode lecture */
    .lv-reader-bar{position:fixed;top:0;left:0;right:0;z-index:9999;background:#fff;
      border-bottom:1px solid var(--lv-rule);box-shadow:0 4px 16px rgba(17,17,17,.08)}
    .lv-reader-top{display:flex;align-items:center;gap:14px;padding:12px 18px}
    .lv-reader-brand{font-family:'Sora',sans-serif;font-weight:700;color:var(--lv-ink);font-size:.98rem}
    .lv-reader-pos{margin-left:auto;font-size:.86rem;color:var(--lv-soft)}
    .lv-reader-close{width:34px;height:34px;border:0;border-radius:50%;background:transparent;
      color:var(--lv-soft);font-size:1.6rem;line-height:1;cursor:pointer}
    .lv-reader-close:hover{background:rgba(0,0,0,.07);color:var(--lv-ink)}
    .lv-reader-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 18px 12px;scrollbar-width:thin}
    .lv-reader-tabs button{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;
      padding:8px 14px;border:1px solid var(--lv-rule);border-radius:999px;background:#fff;
      color:var(--lv-soft);font-size:.87rem;cursor:pointer;white-space:nowrap}
    .lv-reader-tabs button:hover{border-color:var(--lv-teal);color:var(--lv-ink)}
    .lv-reader-tabs button[aria-current="true"]{background:var(--lv-teal);border-color:var(--lv-teal);
      color:#fff;font-weight:600}
    .lv-reader-foot{position:fixed;bottom:0;left:0;right:0;z-index:9999;display:flex;
      align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;background:#fff;
      border-top:1px solid var(--lv-rule);box-shadow:0 -4px 16px rgba(17,17,17,.08)}
    .lv-reader-nav{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:0;
      border-radius:12px;background:var(--lv-ink);color:#fff;font-size:.9rem;cursor:pointer}
    .lv-reader-nav:disabled{opacity:.35;cursor:default}
    .lv-reader-hint{font-size:.8rem;color:var(--lv-soft);text-align:center}

    /* en mode lecture : tout le decor s'efface, seule la rubrique courante reste */
    body.lv-reading .lv-nav,
    body.lv-reading header,
    body.lv-reading footer,
    body.lv-reading .lv-hide-in-reader{display:none !important}
    body.lv-reading .livret-body{padding-top:118px;padding-bottom:86px}
    body.lv-reading .livret-body section[id]{display:none !important}
    body.lv-reading .livret-body section[id].lv-current{display:block !important}
    body.lv-reading .livret-body section[id].lv-current{animation:lvFade .28s ease}
    @keyframes lvFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
    @media (max-width:640px){
      .lv-reader-hint{display:none}
      body.lv-reading .livret-body{padding-top:132px}
    }

    /* recherche logee dans la barre de lecture */
    .lv-search-inbar{flex:1 1 260px;max-width:420px}
    .lv-search-inbar input{padding:9px 40px;font-size:.9rem;border-radius:11px}
    .lv-search-inbar i{left:13px}
    .lv-reader-top{flex-wrap:wrap}
    #lv-count{margin:0 18px 9px;font-size:.84rem}
    body:not(.lv-reading) #lv-count{display:none}
    /* onglet d'une rubrique sans resultat pendant une recherche */
    .lv-reader-tabs button.lv-tab-empty{opacity:.34;text-decoration:line-through}
    .lv-reader-tabs button.lv-tab-hit::after{content:attr(data-n);margin-left:6px;
      background:var(--lv-coral);color:#fff;border-radius:999px;padding:1px 7px;font-size:.74rem;font-weight:700}
    .lv-reader-close{width:auto;height:auto;padding:8px 14px;border-radius:11px;font-size:.86rem;
      background:rgba(0,0,0,.05);color:var(--lv-soft)}
    .lv-reader-close:hover{background:rgba(0,0,0,.10);color:var(--lv-ink)}

    /* ===== Schema de decision : que se passe-t-il apres une rupture ===== */
    .lv-flow{margin:22px 0 26px}
    .lv-flow-step{position:relative;background:#fff;border:1px solid var(--lv-rule);
      border-radius:16px;padding:18px 20px}
    .lv-flow-step h4{margin:6px 0 8px;font-family:'Sora',sans-serif;font-size:1.02rem;color:var(--lv-ink)}
    .lv-flow-step p{margin:0 0 8px;font-size:.93rem;line-height:1.55}
    .lv-flow-step p:last-child{margin-bottom:0}
    .lv-flow-badge,.lv-flow-cond{display:inline-block;font-size:.74rem;font-weight:700;
      text-transform:uppercase;letter-spacing:.05em;padding:4px 11px;border-radius:999px}
    .lv-flow-badge{background:rgba(116,143,252,.16);color:#1a5c7c}
    .lv-flow-start{border-left:4px solid var(--lv-blue)}
    .lv-flow-warn{background:rgba(255,193,7,.13);border-left:3px solid #f0ad00;
      border-radius:8px;padding:10px 13px;font-size:.9rem !important}

    /* embranchement : deux traits qui descendent vers les deux issues */
    .lv-flow-fork{display:flex;justify-content:center;gap:0;height:34px;position:relative}
    .lv-flow-fork span{width:50%;border-top:2px solid var(--lv-rule)}
    .lv-flow-fork span:first-child{border-left:2px solid var(--lv-rule);border-top-left-radius:10px}
    .lv-flow-fork span:last-child{border-right:2px solid var(--lv-rule);border-top-right-radius:10px}
    .lv-flow-fork::before{content:'';position:absolute;top:0;left:50%;width:2px;height:16px;
      background:var(--lv-rule);transform:translateX(-1px)}

    .lv-flow-branches{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}
    .lv-flow-yes{border-left:4px solid var(--lv-teal)}
    .lv-flow-yes .lv-flow-cond{background:rgba(76,110,245,.18);color:#166055}
    .lv-flow-no{border-left:4px solid var(--lv-coral)}
    .lv-flow-no .lv-flow-cond{background:rgba(224,49,49,.15);color:#a03030}
    @media (max-width:620px){
      .lv-flow-fork{height:22px}
      .lv-flow-fork span{border-top:0}
      .lv-flow-fork span:first-child{border-left:0;border-radius:0}
      .lv-flow-fork span:last-child{border-right:0;border-radius:0}
    }

    /* ===== IMPRESSION : le livret doit sortir EN ENTIER, jamais la seule
       rubrique affichee a l'ecran. ===== */
    @media print{
      .lv-reader-bar,.lv-reader-foot,.lv-nav,.lv-reader-launch{display:none !important}
      body.lv-reading .livret-body{padding-top:0 !important;padding-bottom:0 !important}
      body.lv-reading .livret-body section[id]{display:block !important}
      .lv-hidden{display:block !important}
      mark{background:none !important;color:#000 !important;-webkit-text-fill-color:#000 !important;
        font-weight:600;text-decoration:underline}
    }

    /* ===== Recherche ===== */
    .lv-search-box{margin:0 0 6px}
    .lv-search-label{display:block;font-family:'Sora',sans-serif;font-weight:600;
      font-size:.9rem;color:var(--lv-ink);margin-bottom:7px}
    .lv-search-field{position:relative;display:flex;align-items:center}
    .lv-search-field i{position:absolute;left:15px;color:var(--lv-soft);font-size:.95rem}
    .lv-search-field input{width:100%;padding:13px 44px;border:1px solid var(--lv-rule);
      border-radius:14px;background:#fff;font-size:.95rem;color:var(--lv-ink)}
    .lv-search-field input:focus{outline:none;border-color:var(--lv-teal);
      box-shadow:0 0 0 4px rgba(76,110,245,.16)}
    .lv-clear{position:absolute;right:8px;width:30px;height:30px;border:0;border-radius:50%;
      background:transparent;color:var(--lv-soft);font-size:1.3rem;line-height:1;cursor:pointer;display:none}
    .lv-clear:hover{background:rgba(0,0,0,.06);color:var(--lv-ink)}
    .lv-count{margin:8px 0 0;font-size:.86rem;color:var(--lv-soft);min-height:1.2em}
    /* surlignage des occurrences trouvees */
    .lv-hit{background:rgba(255,214,0,.42);color:var(--lv-ink) !important;
      -webkit-text-fill-color:var(--lv-ink);border-radius:3px;padding:0 2px}
    .lv-hit-current{background:rgba(255,145,0,.62);box-shadow:0 0 0 2px rgba(255,145,0,.35)}
    /* section masquee car sans resultat */
    .lv-hidden{display:none !important}

    /* ------------------------------------------------------------------
       MODE NUIT. Sans ces regles, le navigateur applique son propre mode
       sombre : il assombrit le pave blanc du header et le fond de page,
       mais laisse le logo (#1b1f24) et les titres (#111) fonces -> ils
       deviennent invisibles. On assume donc explicitement un theme sombre
       plutot que de subir l'inversion automatique du navigateur.
       ------------------------------------------------------------------ */
    @media (prefers-color-scheme: dark){html:not([data-theme="light"]){color-scheme:dark}
    /* logo : clair dans TOUS les contextes, header fixe compris */
  html:not([data-theme="light"]) .lv-logo,
html:not([data-theme="light"]) .vs-header .lv-logo,
html:not([data-theme="light"]) .sticky-active .lv-logo{-webkit-text-fill-color:#e8eaed !important;color:#e8eaed !important}
    /* fond de page (les degrades restent, la base devient sombre) */
  html:not([data-theme="light"]) .livret-body{background-color:#12161c !important}
    /* titres et texte courant */
  html:not([data-theme="light"]) .livret-body h1,
html:not([data-theme="light"]) .livret-body h2,
html:not([data-theme="light"]) .livret-body h3,
html:not([data-theme="light"]) .livret-body h4,
html:not([data-theme="light"]) .livret-body h5,
html:not([data-theme="light"]) .livret-body h6{color:#f2f5f9 !important}
  html:not([data-theme="light"]) .livret-body,
html:not([data-theme="light"]) .livret-body p,
html:not([data-theme="light"]) .livret-body li,
html:not([data-theme="light"]) .livret-body td,
html:not([data-theme="light"]) .livret-body th{color:#d7dce3}
  html:not([data-theme="light"]) .livret-body strong{color:#ffffff}
    /* cartes, encadres, separateurs */
  html:not([data-theme="light"]) .livret-body .card,
html:not([data-theme="light"]) .livret-body .box,
html:not([data-theme="light"]) .livret-body .panel{background-color:#1a1f27 !important;border-color:#2b323c !important}
  html:not([data-theme="light"]) .livret-body hr,
html:not([data-theme="light"]) .livret-body .rule{border-color:#2b323c !important}
    /* le pave blanc du header s'aligne sur le reste */
  html:not([data-theme="light"]) .header-menu-area,
html:not([data-theme="light"]) .vs-header,
html:not([data-theme="light"]) .sticky-active{background-color:#161b22 !important}
  html:not([data-theme="light"]) .main-menu a,
html:not([data-theme="light"]) .menu-item{color:#e8eaed !important}
    /* liens : contraste suffisant sur fond sombre */
  html:not([data-theme="light"]) .livret-body a{color:#93a7fb}
    /* navigation et recherche en mode nuit */
  html:not([data-theme="light"]) .lv-nav-title{color:#f2f5f9}
  html:not([data-theme="light"]) .lv-card{background:#1a1f27;border-color:#2b323c}
  html:not([data-theme="light"]) .lv-card:hover,
html:not([data-theme="light"]) .lv-card:focus-visible{border-color:#4c6ef5;box-shadow:0 12px 26px rgba(0,0,0,.45)}
  html:not([data-theme="light"]) .lv-card-txt strong{color:#f2f5f9}
  html:not([data-theme="light"]) .lv-card-txt small{color:#aab3bf}
  html:not([data-theme="light"]) .lv-search-label{color:#f2f5f9}
  html:not([data-theme="light"]) .lv-search-field input{background:#1a1f27;border-color:#2b323c;color:#f2f5f9}
  html:not([data-theme="light"]) .lv-search-field input::placeholder{color:#8b95a3}
  html:not([data-theme="light"]) .lv-count{color:#aab3bf}
  html:not([data-theme="light"]) .lv-clear:hover{background:rgba(255,255,255,.10);color:#f2f5f9}
    /* mode lecture en mode nuit */
  html:not([data-theme="light"]) .lv-reader-bar,
html:not([data-theme="light"]) .lv-reader-foot{background:#161b22;border-color:#2b323c}
  html:not([data-theme="light"]) .lv-reader-brand{color:#f2f5f9}
  html:not([data-theme="light"]) .lv-reader-pos,
html:not([data-theme="light"]) .lv-reader-hint{color:#aab3bf}
  html:not([data-theme="light"]) .lv-reader-close:hover{background:rgba(255,255,255,.10);color:#f2f5f9}
  html:not([data-theme="light"]) .lv-reader-tabs button{background:#1a1f27;border-color:#2b323c;color:#aab3bf}
  html:not([data-theme="light"]) .lv-reader-tabs button:hover{color:#f2f5f9;border-color:#4c6ef5}
  html:not([data-theme="light"]) .lv-reader-tabs button[aria-current="true"]{background:#4c6ef5;border-color:#4c6ef5;color:#0f1319}
  html:not([data-theme="light"]) .lv-reader-nav{background:#4c6ef5;color:#0f1319}
  html:not([data-theme="light"]) .lv-reader-close{background:rgba(255,255,255,.08);color:#aab3bf}
  html:not([data-theme="light"]) .lv-reader-close:hover{background:rgba(255,255,255,.16);color:#f2f5f9}
  html:not([data-theme="light"]) .lv-search-inbar input{background:#1a1f27;border-color:#2b323c;color:#f2f5f9}
    /* schema de decision en mode nuit */
  html:not([data-theme="light"]) .lv-flow-step{background:#1a1f27;border-color:#2b323c}
  html:not([data-theme="light"]) .lv-flow-step h4{color:#f2f5f9}
  html:not([data-theme="light"]) .lv-flow-fork span,
html:not([data-theme="light"]) .lv-flow-fork::before{border-color:#2b323c;background:#2b323c}
  html:not([data-theme="light"]) .lv-flow-fork span{background:none}
  html:not([data-theme="light"]) .lv-flow-badge{background:rgba(116,143,252,.22);color:#a5b4fc}
  html:not([data-theme="light"]) .lv-flow-yes .lv-flow-cond{background:rgba(76,110,245,.22);color:#a5b4fc}
  html:not([data-theme="light"]) .lv-flow-no .lv-flow-cond{background:rgba(224,49,49,.22);color:#f1a3a3}
  html:not([data-theme="light"]) .lv-flow-warn{background:rgba(255,193,7,.12);color:#e9d9a8}
  html:not([data-theme="light"]) .lv-hit{background:rgba(255,214,0,.30);color:#fff !important;-webkit-text-fill-color:#fff}
  html:not([data-theme="light"]) .lv-hit-current{background:rgba(255,145,0,.50)}
    /* surlignages du CONTENU : texte clair et souligne adapte au fond sombre */
  html:not([data-theme="light"]) .livret-body mark:not(.lv-hit){
        background:linear-gradient(transparent 58%,rgba(76,110,245,.34) 58%) !important;
        color:#f2f5f9 !important;-webkit-text-fill-color:#f2f5f9 !important}
    }

    /* Le mode sombre FORCE du navigateur (mobiles) n'interroge pas toujours
       prefers-color-scheme : filet de securite pour le logo. */
    @media (forced-colors: active){
      .lv-logo,.vs-header .lv-logo,.sticky-active .lv-logo{
        -webkit-text-fill-color:CanvasText !important;color:CanvasText !important}
    }
    .footer-style1 .footer-links ul li a{color:#c3ccce !important}
    /* menu : survol = texte fonce sur fond clair ; ACTIF = texte blanc sur pastille sombre (sinon masque) */
    .vs-header .main-menu>ul>li>a:hover,.sticky-active .main-menu>ul>li>a:hover{color:#1b1f24 !important;background:#eceff2 !important}
    .vs-header .main-menu>ul>li>.active,.sticky-active .main-menu>ul>li>.active{color:#fff !important}
    .vs-header .main-menu>ul>li>.active .menu-item,.vs-header .main-menu>ul>li>.active .menu-item2,
    .sticky-active .main-menu>ul>li>.active .menu-item,.sticky-active .main-menu>ul>li>.active .menu-item2{color:#fff !important}
    /* retirer la fleche de sous-menu (aucun sous-menu ici) + resserrer le padding droit */
    .vs-header .main-menu>ul>li>a::before,.sticky-active .main-menu>ul>li>a::before{display:none !important}
    .vs-header .main-menu>ul>li>a,.sticky-active .main-menu>ul>li>a{padding-right:22px !important}
    /* logo de chargement = logo de l'ecole */
    #preloader img{filter:none !important;width:240px !important;height:auto !important}
    #preloader{background:#ffffff !important}
    /* marges : plus d'air (eviter les zones "trop collees") */
    .livret-body section{padding-top:74px}
    .livret-body .card{padding:32px 32px 28px !important}
    .livret-body .callout{padding:24px 30px 24px 34px !important}
    .livret-body li{margin:.3em 0}
    .livret-body .card ul,.livret-body .callout ul{padding-left:1.15em;margin:.6em 0}
    .livret-body .contact-grid>div{padding:22px 24px}
    .livret-body h3{margin-top:2.3em}
    .livret-body table{margin:26px 0}
    .livret-body .intro{margin-bottom:.4em}
    /* boutons contour : anneau degrade teal (pseudo ::before masque) -> neutre */
    .ibt-btn.ibt-btn-outline-3{color:#1b1f24 !important}
    .ibt-btn.ibt-btn-outline-3::before{background:linear-gradient(90deg,#c3c8ce,#c3c8ce) !important}
    .ibt-btn.ibt-btn-outline-3::after{background:#1b1f24 !important}
    .ibt-btn.ibt-btn-outline-3:hover{color:#fff !important}
    .hero-lv .ibt-btn.ibt-btn-outline-3{color:#e8eaed !important}
    .hero-lv .ibt-btn.ibt-btn-outline-3::before{background:linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,.42)) !important}
    /* bouton retour haut neutre */
    #scrollBtn{background:#475569 !important;color:#fff !important}
    /* SUPPRESSION du volet lateral (les 4 carres en haut a gauche) */
    .menu-toggle{display:none !important}
    .side-menu{display:none !important}
    .header-logo{padding-left:0 !important}

    @media print{
      #preloader,#themeBtn,#scrollBtn,.vs-header,.sticky-active,.hero-lv .cta,.side-menu,.side-menu2,.search-popup,.video-modal,.overlay2{display:none!important}
      body{background:#fff}.hero-lv{background:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;padding:60px 0}
      .livret-body{background:#fff!important}
      .livret-body .card,.livret-body .callout,.livret-body .contact-grid>div{box-shadow:none!important;transform:none!important;background:#fff!important;border:1px solid #cfd6dc!important;backdrop-filter:none!important}
      .livret-body .card-ic{filter:none!important}
      .livret-body section{page-break-inside:auto}.livret-body h2,.livret-body h3{page-break-after:avoid}
      .livret-body table,.livret-body .card,.livret-body .callout,.livret-body .steps li{page-break-inside:avoid}
    }

/* ============================================================================
   MODE NUIT — reprise complete des fonds clairs.
   Constat mesure le 17/08/2026 : en mode sombre, de nombreux blocs du modele
   gardaient un fond BLANC (tableaux, encadres « callout », cartes, .pc) alors
   que le texte etait passe en clair -> texte clair sur blanc, illisible, et une
   impression d'ilots sales dans la page. On reprend donc explicitement tous ces
   conteneurs, plutot que de compter sur l'heritage.
   ========================================================================= */
@media (prefers-color-scheme: dark){  /* palette sombre : les variables d'origine visent un fond clair */
  html:not([data-theme="light"]){
    --lv-ink:#f2f5f9;          /* texte principal */
    --lv-soft:#aab3bf;         /* texte secondaire — #555b63 tombait a 2,6:1 */
    --lv-rule:#2b323c;         /* filets */
  }
    /* conteneurs generiques du modele */
  html:not([data-theme="light"]) .livret-body .card,
html:not([data-theme="light"]) .livret-body .box,
html:not([data-theme="light"]) .livret-body .panel,
html:not([data-theme="light"]) .livret-body .pc,
html:not([data-theme="light"]) .livret-body .grid > div,
html:not([data-theme="light"]) .livret-body .tcard{
    background:#1a1f27 !important;
    border-color:#2b323c !important;
    color:#d7dce3;
  }
    /* encadres (info / attention / ok) : fond teinte SOMBRE, liseré colore conserve */
  html:not([data-theme="light"]) .livret-body .callout{background:#1b2028 !important;border-color:#2b323c !important;color:#d7dce3}
  html:not([data-theme="light"]) .livret-body .callout.warn{background:#2a2118 !important;border-left-color:#f0ad00 !important}
  html:not([data-theme="light"]) .livret-body .callout.ok{background:#16241f !important;border-left-color:#4c6ef5 !important}
  html:not([data-theme="light"]) .livret-body .callout .tag{background:rgba(255,255,255,.10) !important;color:#f2f5f9 !important}
    /* tableaux : l'en-tete gardait un fond clair avec du texte fonce */
  html:not([data-theme="light"]) .livret-body table{background:#1a1f27 !important;color:#d7dce3}
  html:not([data-theme="light"]) .livret-body th{background:#232935 !important;color:#f2f5f9 !important;border-color:#2b323c !important}
  html:not([data-theme="light"]) .livret-body td{background:#1a1f27 !important;color:#d7dce3 !important;border-color:#2b323c !important}
  html:not([data-theme="light"]) .livret-body tr:nth-child(even) td{background:#1d2330 !important}
    /* references legales et mentions discretes */
  html:not([data-theme="light"]) .livret-body .ref,
html:not([data-theme="light"]) .livret-body .intro{color:#aab3bf !important}
    /* fiches d'interlocuteurs : de simples <div> sans classe dans .contact-grid,
     donc invisibles aux selecteurs precedents — d'ou 14 pastilles blanches. */
  html:not([data-theme="light"]) .livret-body .contact-grid > div{
    background:#1a1f27 !important;border-color:#2b323c !important;color:#d7dce3}
  html:not([data-theme="light"]) .livret-body .contact-grid .role{color:#a5b4fc !important}
  html:not([data-theme="light"]) .livret-body .contact-grid .who{color:#f2f5f9 !important}
  html:not([data-theme="light"]) .livret-body .contact-grid .how{color:#aab3bf !important}
    /* etiquettes : la regle du mode clair (.livret-body .callout .tag, avec !important)
     l'emportait sur un selecteur plus court — il faut la MEME specificite. */
  html:not([data-theme="light"]) .livret-body .tag,
html:not([data-theme="light"]) .livret-body .callout .tag,
html:not([data-theme="light"]) .livret-body .callout.ok .tag,
html:not([data-theme="light"]) .livret-body .callout.warn .tag,
html:not([data-theme="light"]) .livret-body .callout:not(.warn):not(.ok) .tag{
    background:rgba(255,255,255,.12) !important;color:#f2f5f9 !important}
    /* liens : contraste suffisant quel que soit le bloc qui les porte */
  html:not([data-theme="light"]) .livret-body a{color:#93a7fb}
  html:not([data-theme="light"]) .livret-body a:hover{color:#8fe8d9}
  html:not([data-theme="light"]) .livret-body .callout a,
html:not([data-theme="light"]) .livret-body td a,
html:not([data-theme="light"]) .livret-body .card a{color:#93a7fb !important}
}


/* =========================================================================
   MEME PALETTE SOMBRE, IMPOSEE PAR LE BOUTON DU BANDEAU
   Les regles ci-dessus vivent dans un @media : elles suivent le reglage du
   telephone et ne peuvent donc pas s'appliquer sur demande. D'ou cette copie
   pilotee par l'attribut data-theme, que le bouton pose sur <html>.
   ========================================================================= */
html[data-theme="dark"]{color-scheme:dark}
    /* logo : clair dans TOUS les contextes, header fixe compris */
  html[data-theme="dark"] .lv-logo,
html[data-theme="dark"] .vs-header .lv-logo,
html[data-theme="dark"] .sticky-active .lv-logo{-webkit-text-fill-color:#e8eaed !important;color:#e8eaed !important}
    /* fond de page (les degrades restent, la base devient sombre) */
  html[data-theme="dark"] .livret-body{background-color:#12161c !important}
    /* titres et texte courant */
  html[data-theme="dark"] .livret-body h1,
html[data-theme="dark"] .livret-body h2,
html[data-theme="dark"] .livret-body h3,
html[data-theme="dark"] .livret-body h4,
html[data-theme="dark"] .livret-body h5,
html[data-theme="dark"] .livret-body h6{color:#f2f5f9 !important}
  html[data-theme="dark"] .livret-body,
html[data-theme="dark"] .livret-body p,
html[data-theme="dark"] .livret-body li,
html[data-theme="dark"] .livret-body td,
html[data-theme="dark"] .livret-body th{color:#d7dce3}
  html[data-theme="dark"] .livret-body strong{color:#ffffff}
    /* cartes, encadres, separateurs */
  html[data-theme="dark"] .livret-body .card,
html[data-theme="dark"] .livret-body .box,
html[data-theme="dark"] .livret-body .panel{background-color:#1a1f27 !important;border-color:#2b323c !important}
  html[data-theme="dark"] .livret-body hr,
html[data-theme="dark"] .livret-body .rule{border-color:#2b323c !important}
    /* le pave blanc du header s'aligne sur le reste */
  html[data-theme="dark"] .header-menu-area,
html[data-theme="dark"] .vs-header,
html[data-theme="dark"] .sticky-active{background-color:#161b22 !important}
  html[data-theme="dark"] .main-menu a,
html[data-theme="dark"] .menu-item{color:#e8eaed !important}
    /* liens : contraste suffisant sur fond sombre */
  html[data-theme="dark"] .livret-body a{color:#93a7fb}
    /* navigation et recherche en mode nuit */
  html[data-theme="dark"] .lv-nav-title{color:#f2f5f9}
  html[data-theme="dark"] .lv-card{background:#1a1f27;border-color:#2b323c}
  html[data-theme="dark"] .lv-card:hover,
html[data-theme="dark"] .lv-card:focus-visible{border-color:#4c6ef5;box-shadow:0 12px 26px rgba(0,0,0,.45)}
  html[data-theme="dark"] .lv-card-txt strong{color:#f2f5f9}
  html[data-theme="dark"] .lv-card-txt small{color:#aab3bf}
  html[data-theme="dark"] .lv-search-label{color:#f2f5f9}
  html[data-theme="dark"] .lv-search-field input{background:#1a1f27;border-color:#2b323c;color:#f2f5f9}
  html[data-theme="dark"] .lv-search-field input::placeholder{color:#8b95a3}
  html[data-theme="dark"] .lv-count{color:#aab3bf}
  html[data-theme="dark"] .lv-clear:hover{background:rgba(255,255,255,.10);color:#f2f5f9}
    /* mode lecture en mode nuit */
  html[data-theme="dark"] .lv-reader-bar,
html[data-theme="dark"] .lv-reader-foot{background:#161b22;border-color:#2b323c}
  html[data-theme="dark"] .lv-reader-brand{color:#f2f5f9}
  html[data-theme="dark"] .lv-reader-pos,
html[data-theme="dark"] .lv-reader-hint{color:#aab3bf}
  html[data-theme="dark"] .lv-reader-close:hover{background:rgba(255,255,255,.10);color:#f2f5f9}
  html[data-theme="dark"] .lv-reader-tabs button{background:#1a1f27;border-color:#2b323c;color:#aab3bf}
  html[data-theme="dark"] .lv-reader-tabs button:hover{color:#f2f5f9;border-color:#4c6ef5}
  html[data-theme="dark"] .lv-reader-tabs button[aria-current="true"]{background:#4c6ef5;border-color:#4c6ef5;color:#0f1319}
  html[data-theme="dark"] .lv-reader-nav{background:#4c6ef5;color:#0f1319}
  html[data-theme="dark"] .lv-reader-close{background:rgba(255,255,255,.08);color:#aab3bf}
  html[data-theme="dark"] .lv-reader-close:hover{background:rgba(255,255,255,.16);color:#f2f5f9}
  html[data-theme="dark"] .lv-search-inbar input{background:#1a1f27;border-color:#2b323c;color:#f2f5f9}
    /* schema de decision en mode nuit */
  html[data-theme="dark"] .lv-flow-step{background:#1a1f27;border-color:#2b323c}
  html[data-theme="dark"] .lv-flow-step h4{color:#f2f5f9}
  html[data-theme="dark"] .lv-flow-fork span,
html[data-theme="dark"] .lv-flow-fork::before{border-color:#2b323c;background:#2b323c}
  html[data-theme="dark"] .lv-flow-fork span{background:none}
  html[data-theme="dark"] .lv-flow-badge{background:rgba(116,143,252,.22);color:#a5b4fc}
  html[data-theme="dark"] .lv-flow-yes .lv-flow-cond{background:rgba(76,110,245,.22);color:#a5b4fc}
  html[data-theme="dark"] .lv-flow-no .lv-flow-cond{background:rgba(224,49,49,.22);color:#f1a3a3}
  html[data-theme="dark"] .lv-flow-warn{background:rgba(255,193,7,.12);color:#e9d9a8}
  html[data-theme="dark"] .lv-hit{background:rgba(255,214,0,.30);color:#fff !important;-webkit-text-fill-color:#fff}
  html[data-theme="dark"] .lv-hit-current{background:rgba(255,145,0,.50)}
    /* surlignages du CONTENU : texte clair et souligne adapte au fond sombre */
  html[data-theme="dark"] .livret-body mark:not(.lv-hit){
        background:linear-gradient(transparent 58%,rgba(76,110,245,.34) 58%) !important;
        color:#f2f5f9 !important;-webkit-text-fill-color:#f2f5f9 !important}
    
  /* palette sombre : les variables d'origine visent un fond clair */
  html[data-theme="dark"]{
    --lv-ink:#f2f5f9;          /* texte principal */
    --lv-soft:#aab3bf;         /* texte secondaire — #555b63 tombait a 2,6:1 */
    --lv-rule:#2b323c;         /* filets */
  }
    /* conteneurs generiques du modele */
  html[data-theme="dark"] .livret-body .card,
html[data-theme="dark"] .livret-body .box,
html[data-theme="dark"] .livret-body .panel,
html[data-theme="dark"] .livret-body .pc,
html[data-theme="dark"] .livret-body .grid > div,
html[data-theme="dark"] .livret-body .tcard{
    background:#1a1f27 !important;
    border-color:#2b323c !important;
    color:#d7dce3;
  }
    /* encadres (info / attention / ok) : fond teinte SOMBRE, liseré colore conserve */
  html[data-theme="dark"] .livret-body .callout{background:#1b2028 !important;border-color:#2b323c !important;color:#d7dce3}
  html[data-theme="dark"] .livret-body .callout.warn{background:#2a2118 !important;border-left-color:#f0ad00 !important}
  html[data-theme="dark"] .livret-body .callout.ok{background:#16241f !important;border-left-color:#4c6ef5 !important}
  html[data-theme="dark"] .livret-body .callout .tag{background:rgba(255,255,255,.10) !important;color:#f2f5f9 !important}
    /* tableaux : l'en-tete gardait un fond clair avec du texte fonce */
  html[data-theme="dark"] .livret-body table{background:#1a1f27 !important;color:#d7dce3}
  html[data-theme="dark"] .livret-body th{background:#232935 !important;color:#f2f5f9 !important;border-color:#2b323c !important}
  html[data-theme="dark"] .livret-body td{background:#1a1f27 !important;color:#d7dce3 !important;border-color:#2b323c !important}
  html[data-theme="dark"] .livret-body tr:nth-child(even) td{background:#1d2330 !important}
    /* references legales et mentions discretes */
  html[data-theme="dark"] .livret-body .ref,
html[data-theme="dark"] .livret-body .intro{color:#aab3bf !important}
    /* fiches d'interlocuteurs : de simples <div> sans classe dans .contact-grid,
     donc invisibles aux selecteurs precedents — d'ou 14 pastilles blanches. */
  html[data-theme="dark"] .livret-body .contact-grid > div{
    background:#1a1f27 !important;border-color:#2b323c !important;color:#d7dce3}
  html[data-theme="dark"] .livret-body .contact-grid .role{color:#a5b4fc !important}
  html[data-theme="dark"] .livret-body .contact-grid .who{color:#f2f5f9 !important}
  html[data-theme="dark"] .livret-body .contact-grid .how{color:#aab3bf !important}
    /* etiquettes : la regle du mode clair (.livret-body .callout .tag, avec !important)
     l'emportait sur un selecteur plus court — il faut la MEME specificite. */
  html[data-theme="dark"] .livret-body .tag,
html[data-theme="dark"] .livret-body .callout .tag,
html[data-theme="dark"] .livret-body .callout.ok .tag,
html[data-theme="dark"] .livret-body .callout.warn .tag,
html[data-theme="dark"] .livret-body .callout:not(.warn):not(.ok) .tag{
    background:rgba(255,255,255,.12) !important;color:#f2f5f9 !important}
    /* liens : contraste suffisant quel que soit le bloc qui les porte */
  html[data-theme="dark"] .livret-body a{color:#93a7fb}
  html[data-theme="dark"] .livret-body a:hover{color:#8fe8d9}
  html[data-theme="dark"] .livret-body .callout a,
html[data-theme="dark"] .livret-body td a,
html[data-theme="dark"] .livret-body .card a{color:#93a7fb !important}



/* =========================================================================
   RATTRAPAGE DES LIENS EN MODE NUIT
   La palette claire pose .livret-body a{color:#334155 !important} ; sans
   !important de ce cote, les liens restaient gris ardoise sur fond sombre
   (1,8:1). Meme couleur que les regles nuit ci-dessus, priorite egale.
   ========================================================================= */
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .livret-body a{color:#93a7fb !important}
  html:not([data-theme="light"]) .livret-body a:hover{color:#8fe8d9 !important}
  html:not([data-theme="light"]) .livret-body td.pc b{color:#d7dce3 !important}
}
html[data-theme="dark"] .livret-body a{color:#93a7fb !important}
html[data-theme="dark"] .livret-body a:hover{color:#8fe8d9 !important}
html[data-theme="dark"] .livret-body td.pc b{color:#d7dce3 !important}


/* =====================================================================
   THEME « SOFT & CLEAN » — 2026-08-20, demande JMB.
   Référence visuelle : template Webflow MCP Hub (home-v2) : fond quasi
   blanc, UN accent (indigo doux), bordures fines, ombres subtiles,
   rayons doux, zéro dégradé décoratif. Couche de SURCHARGE : supprimer
   ce bloc + restaurer hors_docroot/backups/livret.css.avant-soft-20260820
   pour revenir à l'ancien thème coloré.
   ===================================================================== */
:root{--lv-teal:#4c6ef5;--lv-blue:#748ffc;--lv-coral:#e03131;--lv-ink:#1f2937;--lv-soft:#5f6774;--lv-rule:#e5e9f0}
.livret-body{background-color:#f8fafc;background-image:none}
.livret-body .num{color:#4c6ef5;background:#eef1fd}
.livret-body a{color:#3b5bdb;text-decoration-color:rgba(76,110,245,.35)}
.livret-body a:hover{color:#4c6ef5}
.livret-body mark{background:linear-gradient(transparent 58%,#ffe8a3 58%)}
.livret-body .card{background:#fff;border:1px solid var(--lv-rule);border-radius:16px;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 10px 26px -22px rgba(15,23,42,.20);backdrop-filter:none}
.livret-body .card:hover{transform:translateY(-2px);
  box-shadow:0 2px 4px rgba(15,23,42,.05),0 16px 32px -20px rgba(15,23,42,.24)}
.livret-body .card-ic{filter:none}
.livret-body .callout{background:#f8fafc;border:1px solid var(--lv-rule);border-radius:14px;box-shadow:none;backdrop-filter:none}
.livret-body .callout:before{background:#4c6ef5}
.livret-body .callout.warn{background:#fff9f9;border-color:#f4d7d7}
.livret-body .callout.warn:before{background:#e03131}
.livret-body .callout.ok{background:#f4fbf7;border-color:#d5ecdf}
.livret-body .callout.ok:before{background:#2f9e6e}
.livret-body thead th{background:#f1f5f9;color:#334155}
.livret-body tbody th{background:#f8fafc}
.livret-body tbody tr:nth-child(even) td{background:#fbfcfe}
.livret-body .steps li:before{background:#4c6ef5;color:#fff;box-shadow:none}
.livret-body .contact-grid>div:hover{border-color:#b9c5fb;transform:translateY(-2px)}
/* Aucune limitation de largeur du texte (demande JMB 20/08) : titres, chapeaux
   et corps occupent toute la colonne disponible. */
.livret-body h2{max-width:none}
.livret-body .intro{max-width:none}
html:not([data-theme="light"]) .livret-body{background-image:none !important}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .livret-body .callout,
  html:not([data-theme="light"]) .livret-body .card{background:#1a1f27 !important;border-color:#2b323c !important}
}

/* =====================================================================
   LIENS DU CONTENU EN MODE JOUR — 29/08/2026
   La palette neutre posait .livret-body a{color:#334155} : sur un texte
   deja en #1f2937, un lien devenait indistinguable du texte courant. Or
   le livret renvoie en permanence vers des articles du Code du travail
   et des formulaires : le lien doit se voir. On reprend l'accent indigo
   du theme (#3b5bdb, 5,9:1 sur fond blanc).
   31/08/2026 : plus de soulignement au survol (demande JMB). Le lien reste
   identifiable par sa couleur, et le soulignement d'origine du navigateur
   demeure au repos. Le focus clavier garde un contour visible : la couleur
   seule ne suffirait pas a signaler la cible active.
   Le rattrapage nuit est redonne ensuite : place en fin de fichier, la
   regle jour l'emporterait sinon a specificite egale.
   ===================================================================== */
.livret-body a{color:#3b5bdb !important}
.livret-body a:hover{color:#2f49af !important;text-decoration:none}
.livret-body a:focus-visible{color:#2f49af !important;text-decoration:none;
  outline:2px solid #4c6ef5;outline-offset:2px;border-radius:2px}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .livret-body a{color:#93a7fb !important}
  html:not([data-theme="light"]) .livret-body a:hover,
  html:not([data-theme="light"]) .livret-body a:focus-visible{color:#8fe8d9 !important}
}
html[data-theme="dark"] .livret-body a{color:#93a7fb !important}
html[data-theme="dark"] .livret-body a:hover,
html[data-theme="dark"] .livret-body a:focus-visible{color:#8fe8d9 !important}
