/* Livre blanc COINNOV : page de présentation et lecteur en ligne */

@font-face{font-family:"Poppins";src:url("../fonts/poppins-regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../fonts/poppins-medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../fonts/poppins-bold.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}

:root{
  --navy:#001296;        /* bleu de la charte COINNOV */
  --navy-deep:#00094f;   /* fond du lecteur */
  --ink:#0d1440;         /* texte courant */
  --muted:#4b5275;
  --orange:#fe4102;      /* orange de la charte, réservé aux signes et aplats */
  --orange-text:#c73400; /* orange lisible sur fond blanc */
  --mist:#eef1fb;
  --line:#d6dbf0;
  --white:#fff;
  --wrap:1180px;
  --font:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
section[id]{scroll-margin-top:68px}
.reader-body{scroll-margin-top:84px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;font-family:var(--font);font-size:1.0625rem;line-height:1.65;color:var(--ink);background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy)}
h1,h2,h3{line-height:1.15;margin:0;color:var(--navy);font-weight:700}
h2{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.01em}
h3{font-size:1.15rem}
p{margin:0 0 1rem}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-3rem;background:var(--navy);color:#fff;padding:.5rem 1rem;z-index:50}
.skip:focus{top:1rem}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem}

/* Logos officiels, en tête de page comme sur la couverture */
.official{background:#fff;border-bottom:1px solid var(--line);padding:.75rem 1.5rem}
.official img{width:100%;max-width:760px;margin:0 auto}

/* Barre de navigation */
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.2) blur(6px);border-bottom:1px solid var(--line)}
.topbar-in{display:flex;align-items:center;gap:1.5rem;height:68px}
.brand img{height:44px;width:auto}
.nav{display:flex;gap:1.5rem;margin-left:auto}
.nav a{color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:500}
.nav a:hover{color:var(--orange-text)}

/* Boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.7rem 1.4rem;border-radius:4px;font:inherit;font-weight:500;font-size:1rem;text-decoration:none;cursor:pointer;border:2px solid var(--navy);transition:background .15s,color .15s}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-deep);border-color:var(--navy-deep)}
.btn-ghost{background:transparent;color:var(--navy)}
.btn-ghost:hover{background:var(--navy);color:#fff}
.btn-light{background:#fff;color:var(--navy);border-color:#fff}
.btn-light:hover{background:var(--orange);border-color:var(--orange);color:#fff}
.btn-sm{min-height:40px;padding:.45rem 1rem;font-size:.9rem}

/* En-tête */
.hero{padding:clamp(2.5rem,6vw,5rem) 0 clamp(3rem,6vw,5rem);overflow:hidden}
.hero-in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(2rem,5vw,5rem);align-items:center}
.kicker{display:flex;align-items:center;gap:.9rem;color:var(--orange-text);font-weight:500;font-size:1.05rem;margin-bottom:1rem}
.kicker::after{content:"";width:72px;height:2px;background:var(--orange)}
.hero h1{font-size:clamp(3rem,8.2vw,6.6rem);line-height:.92;text-transform:uppercase;letter-spacing:-.015em;margin-bottom:1.5rem;max-width:8ch}
.lead{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.45;max-width:34ch;color:var(--ink);margin-bottom:2rem}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}
.meta{color:var(--muted);font-size:.95rem;margin:0}
.hero-cover{position:relative;display:block;justify-self:center;width:min(100%,380px)}
.hero-cover::before,.hero-cover::after{content:"";position:absolute;z-index:-1;top:8%;bottom:-6%}
.hero-cover::before{right:-14%;width:22%;background:var(--navy)}
.hero-cover::after{right:-20%;width:5%;background:var(--orange);top:22%;bottom:18%}
.hero-cover img{box-shadow:0 2px 4px rgba(0,9,79,.12),0 18px 40px -12px rgba(0,9,79,.35);border-radius:2px}

/* Le modèle : trois acteurs */
.model{background:var(--navy);color:#fff;padding:clamp(3rem,7vw,5.5rem) 0}
.model h2{color:#fff}
.model-intro{max-width:62ch;margin:1rem 0 3rem;color:#dfe4ff;font-size:1.1rem}
.trio{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.trio li{position:relative;padding:0 2.2rem 0 0}
.trio li + li{padding-left:3.2rem;border-left:1px solid rgba(255,255,255,.22)}
.trio-plus{position:absolute;left:-1.05rem;top:-.35rem;width:2.1rem;height:2.1rem;display:grid;place-items:center;background:var(--orange);color:#fff;font-weight:700;font-size:1.6rem;line-height:1;border-radius:50%}
.trio-term{display:block;font-size:clamp(1.45rem,2.6vw,2.1rem);font-weight:700;line-height:1.1;margin-bottom:.9rem}
.trio-def{display:block;color:#dfe4ff;font-size:1rem;max-width:30ch}
.model-foot{margin:3rem 0 0;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.22);color:#dfe4ff;max-width:80ch;font-size:.98rem}

/* Pourquoi ce livre blanc */
.why{padding:clamp(3rem,7vw,5.5rem) 0}
.why-in{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(2rem,6vw,6rem);align-items:start}
.why-text h2{margin-bottom:1.25rem}
.why-text p{max-width:62ch}
.voices{margin:0;border-top:3px solid var(--navy);padding-top:1.25rem}
.voices figcaption{font-weight:500;color:var(--muted);margin-bottom:1rem}
.voices dl{margin:0}
.voice{display:grid;grid-template-columns:auto 1fr;gap:1.25rem;align-items:baseline;padding:1rem 0;border-bottom:1px solid var(--line)}
.voice dt{font-size:clamp(2.6rem,5vw,3.4rem);font-weight:700;color:var(--navy);line-height:1;white-space:nowrap}
.voice .unit{font-size:.4em;font-weight:500;color:var(--orange-text)}
.voice dd{margin:0;font-size:.98rem;color:var(--ink)}
.source{font-size:.85rem;color:var(--muted);margin:.9rem 0 0}

/* Lecteur */
.reader{background:radial-gradient(ellipse at 60% 35%,#13229a 0%,var(--navy-deep) 72%);color:#fff;padding:clamp(3rem,6vw,4.5rem) 0 2.5rem}
.reader:fullscreen{padding:1rem;overflow:auto}
.reader-head{max-width:1440px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1.25rem 2rem}
.reader-head h2{color:#fff}
.reader-head p{color:#c9d0ff;margin:.5rem 0 0}
.reader-body{max-width:1440px;margin:2rem auto 0;padding:0 1.5rem;display:grid;grid-template-columns:270px minmax(0,1fr);gap:2rem;align-items:start}
.toc ul{list-style:none;margin:0;padding:0}
.toc a{display:flex;gap:.7rem;padding:.55rem .75rem;color:#dfe4ff;text-decoration:none;font-size:.92rem;line-height:1.35;border-left:3px solid transparent}
.toc a:hover{color:#fff;background:rgba(255,255,255,.06)}
.toc a.is-current{color:#fff;border-left-color:var(--orange);background:rgba(255,255,255,.08)}
.toc .n{font-weight:700;color:#8f9cff;min-width:1.4rem}
.toc a.is-current .n{color:var(--orange)}
.toc-sub{margin:1.5rem 0 .25rem .75rem;font-size:.85rem;color:#8f9cff;font-weight:500}
.toc-cases a{padding-top:.35rem;padding-bottom:.35rem}
.viewer{min-width:0}
.stage{position:relative;height:min(calc(100vh - 190px),880px);min-height:420px;display:flex;align-items:center;justify-content:center;padding:0 3.5rem}
.reader:fullscreen .stage{height:calc(100vh - 7rem)}
.book-wrap{margin:0 auto;position:relative}
.loading{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#c9d0ff}
#book .page{background:#fff;overflow:hidden}
#book .page img:not([src]){visibility:hidden}
#book .page img{width:100%;height:100%;display:block;object-fit:contain;user-select:none;-webkit-user-drag:none}
#book .lnk{position:absolute;display:block;border-radius:2px;cursor:pointer}
#book .lnk:hover{background:rgba(254,65,2,.16);outline:1px solid rgba(254,65,2,.6)}
.turn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;z-index:5}
.turn:hover{background:var(--orange)}
.turn-prev{left:0}.turn-next{right:0}
.controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;margin-top:1.25rem}
.ctl{min-width:44px;min-height:40px;padding:.4rem .8rem;border:0;border-radius:4px;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.ctl:hover{background:var(--orange)}
.ctl-text{font-size:.9rem}
.pageno{display:inline-flex;align-items:center;gap:.4rem;font-size:.95rem;color:#dfe4ff;margin:0 .25rem}
.pageno input{width:3.6rem;min-height:40px;padding:.3rem;border:0;border-radius:4px;text-align:center;font:inherit;font-size:.95rem;color:var(--ink)}
.noscript{color:#fff}.noscript a{color:#fff}
/* Lecteur de secours, sans la bibliothèque de feuilletage */
#book.is-simple{width:100%;height:100%}
.simple{display:flex;gap:2px;height:100%;justify-content:center}
.simple img{height:100%;width:auto;max-width:100%;object-fit:contain;background:#fff}

/* Vidéos */
.videos{background:var(--mist);padding:clamp(3rem,7vw,5.5rem) 0}
.section-intro{color:var(--muted);margin:.5rem 0 2rem}
.video-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-template-rows:auto auto;gap:2rem 2rem}
.video-main{grid-row:span 2}
.video h3{margin:1rem 0 .4rem}
.video p{margin:0 0 .5rem;font-size:.98rem;max-width:60ch}
.video-meta{color:var(--muted);font-size:.88rem}
.video-meta a{color:var(--orange-text);font-weight:500}
.frame{position:relative;aspect-ratio:16/9;background:var(--navy-deep);border-radius:4px;overflow:hidden}
.frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.poster{position:absolute;inset:0;width:100%;border:0;padding:1rem 1.25rem;cursor:pointer;color:#fff;text-align:left;font:inherit;
  background:
    linear-gradient(90deg,transparent 0 58%,rgba(254,65,2,.95) 58% 61%,transparent 61% 100%),
    linear-gradient(90deg,#00094f 0 18%,#0a1aa8 18% 36%,#001296 36% 52%,#1c2fb8 52% 70%,#00094f 70% 84%,#0a1aa8 84% 100%);
  display:flex;flex-direction:column;justify-content:space-between}
.poster::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,9,79,.85),rgba(0,9,79,.1) 60%)}
.poster > *{position:relative;z-index:1}
.poster > .sr{position:absolute}
.poster-src{font-size:.8rem;font-weight:500;color:#dfe4ff}
.poster-title{font-weight:700;font-size:clamp(1.05rem,2vw,1.5rem);line-height:1.2;max-width:22ch}
.video:not(.video-main) .poster-title{font-size:1.05rem}
.play{position:absolute;right:1.1rem;bottom:1rem;width:60px;height:60px;border-radius:50%;background:var(--orange);z-index:1;transition:transform .15s}
.play::before{content:"";position:absolute;left:23px;top:18px;border-style:solid;border-width:12px 0 12px 19px;border-color:transparent transparent transparent #fff}
.poster:hover .play{transform:scale(1.06)}
.video-main .play{width:76px;height:76px;right:1.5rem;bottom:1.4rem}
.video-main .play::before{left:30px;top:23px;border-width:15px 0 15px 24px}
.poster-title{padding-right:80px}
.video-main .poster-title{padding-right:100px}
.note{font-size:.85rem;color:var(--muted);margin:2rem 0 0}

/* Enseignements */
.lessons{padding:clamp(3rem,7vw,5.5rem) 0}
.lessons-in{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.lesson-list{list-style:none;margin:1.75rem 0 0;padding:0}
.lesson-list li{border-left:3px solid var(--orange);padding:.1rem 0 .1rem 1.25rem;margin-bottom:1.75rem}
.lesson-head{font-weight:700;color:var(--navy);font-size:1.12rem;margin-bottom:.35rem}
.lesson-list p:not(.lesson-head){max-width:60ch;color:var(--ink)}
.next-steps{background:var(--mist);padding:1.75rem;border-radius:4px}
.next-steps h3{margin-bottom:.75rem}
.steps{margin:1rem 0 1.5rem;padding:0;list-style:none;counter-reset:s}
.steps li{counter-increment:s;display:grid;grid-template-columns:2rem 1fr;gap:.5rem;margin-bottom:.8rem;font-size:.98rem}
.steps li::before{content:counter(s);display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;font-size:.9rem}
.link-strong{font-weight:500;color:var(--orange-text);text-underline-offset:3px}

/* Cadre du programme */
.frame-prog{padding:clamp(3rem,6vw,4.5rem) 0;border-top:1px solid var(--line)}
.cadre-text{max-width:75ch;margin:1.25rem 0 2rem}
.prog-logos{width:100%;max-width:880px;margin:0 0 1.75rem}

/* Pied de page */
.footer{background:var(--navy);color:#dfe4ff;padding:2.5rem 0;font-size:.92rem}
.footer p{margin:0 0 .5rem}
.footer strong{color:#fff;font-weight:500}
.footer a{color:#fff}
.footer-links{display:flex;flex-wrap:wrap;gap:1.5rem;margin-top:1rem!important}

/* Tablette */
@media (max-width:1060px){
  .reader-body{grid-template-columns:minmax(0,1fr)}
  .toc{min-width:0}
  .toc ul{display:flex;flex-wrap:wrap;gap:.25rem}
  .toc a{border-left:0;border-bottom:3px solid transparent;padding:.45rem .6rem}
  .toc a.is-current{border-bottom-color:var(--orange)}
  .toc-sub{margin:.75rem 0 .1rem .6rem}
}
@media (max-width:900px){
  .nav{display:none}
  .topbar .btn-light{background:#fff;color:var(--navy);border-color:#fff}
.btn-light:hover{background:var(--orange);border-color:var(--orange);color:#fff}
.btn-sm{margin-left:auto}
  .hero-in,.why-in,.lessons-in{grid-template-columns:1fr}
  .hero-cover{width:min(70%,300px);justify-self:start}
  .trio{grid-template-columns:1fr;gap:2.25rem}
  .trio li,.trio li + li{padding:0;border-left:0}
  .trio-plus{position:static;margin-bottom:.9rem}
  .video-grid{grid-template-columns:1fr}
  .video-main{grid-row:auto}
}
/* Téléphone */
@media (max-width:640px){
  body{font-size:1rem}
  .official{padding:.5rem .75rem}
  .topbar-in{height:60px}
  .brand img{height:36px}
  .stage{height:auto;min-height:0;padding:0}
  .turn{display:none}
  .toc ul{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.25rem}
  .toc a{white-space:nowrap}
  .toc-cases{display:none!important}
  .toc-sub{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
