/* Notre histoire v2 (Claude pour Carole, 30/11/2026)
   Références : ReelUp (pastilles, titres qui montent derrière un masque, cartes de couleur qui s'empilent),
   Reelers (dégradé rose → blanc, cartes flottantes), photos d'atelier (tirages à bord blanc penchés qui se posent),
   Tubik (grands chiffres sans cadre), stickers #ITDURABLE #IMPACTSOCIAL #RSE. */
.nh{--marine:#011C78;--bleu:#008DCE;--menthe:#14C98E;--menthe-c:#BFF8E4;--rose:#FFD6F3;--rose-f:#E2007A;--bleu-c:#D3ECFA;--gris:#5B6690;color:var(--marine);overflow-x:clip}
.nh .wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.nh h1,.nh h2,.nh .tt{font-family:"Inter Tight",Inter,sans-serif;font-weight:800;letter-spacing:-.01em;margin:0}

/* pastille au-dessus des titres */
.nh-pill{display:inline-flex;align-items:center;gap:8px;border:1.5px solid currentColor;border-radius:999px;padding:5px 14px 6px;font:700 12.5px/1 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px;opacity:.85}
.nh-pill i{width:7px;height:7px;border-radius:50%;background:var(--bleu)}

/* titres : chaque ligne monte derrière un masque */
.nh .ln{display:block!important;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.nh .ln>span{display:inline-block;transform:translateY(105%);transition:transform .9s cubic-bezier(.2,.75,.2,1)}
.nh .vu .ln>span,.nh .ln.vu>span{transform:none}
.nh .vu .ln:nth-child(2)>span{transition-delay:.1s}.nh .vu .ln:nth-child(3)>span{transition-delay:.2s}
/* textes : fondu qui monte, l'un après l'autre */
.nh .mt{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.75,.2,1)}
.nh .vu .mt{opacity:1;transform:none}
.nh .vu .mt:nth-of-type(1){transition-delay:.25s}.nh .vu .mt:nth-of-type(2){transition-delay:.35s}.nh .vu .mt:nth-of-type(3){transition-delay:.45s}.nh .vu .mt:nth-of-type(4){transition-delay:.55s}
/* photos : tirage à bord blanc qui se pose */
.nh-tirage{background:#fff;padding:10px 10px 12px;border-radius:14px;box-shadow:0 26px 50px -24px rgba(1,28,120,.55);transform:rotate(var(--r,-3deg));opacity:0;transform:translateY(-60px) rotate(calc(var(--r,-3deg) + 9deg)) scale(1.08);transition:transform 1s cubic-bezier(.34,1.45,.5,1),opacity .5s ease}
.nh .vu .nh-tirage,.nh-tirage.vu{opacity:1;transform:rotate(var(--r,-3deg))}
.nh-tirage img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}

/* ---------- Ouverture (dégradé rose → blanc) ---------- */
.nh-ouv{background:linear-gradient(180deg,#FFD6F3 0%,#FCE9F7 45%,rgba(255,255,255,0) 100%);border-radius:36px;margin:8px 16px 0;padding:72px 0 96px}
.nh-ouv .wrap{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.nh-ouv h1{font-size:clamp(52px,7.4vw,104px);line-height:.98}
.nh-ouv h1 .hl{color:var(--bleu)}
.nh-chapo{font:500 20px/1.55 Inter,sans-serif;color:var(--marine);max-width:520px;margin:26px 0 0}
.nh-chapo b{font-weight:700}
.nh-trait{height:1.5px;background:rgba(1,28,120,.15);margin:30px 0 22px;max-width:520px}
.nh-sign{display:flex;align-items:center;gap:14px;font:600 15px Inter,sans-serif}
.nh-sign img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:3px solid #fff}
.nh-scene{position:relative;min-height:480px}
.nh-scene .nh-tirage{position:absolute}
.nh-scene .t1{--r:-4deg;width:78%;aspect-ratio:4/3;left:4%;top:6%;z-index:2}
.nh-scene .t2{--r:6deg;width:40%;aspect-ratio:3/4;right:0;top:44%;z-index:3;transition-delay:.25s}
.nh-flot{position:absolute;z-index:4;background:#fff;border-radius:18px;box-shadow:0 18px 40px -18px rgba(1,28,120,.45);padding:14px 18px;opacity:0;transform:translateY(20px);transition:opacity .6s ease .7s,transform .8s cubic-bezier(.34,1.45,.5,1) .7s}
.nh .vu .nh-flot{opacity:1;transform:none}
.nh-flot .g{font:800 30px/1 "Inter Tight",Inter,sans-serif;letter-spacing:-.01em}
.nh-flot .p{font:600 13px/1.3 Inter,sans-serif;color:var(--gris);margin-top:4px}
.nh-flot.f1{left:-4%;bottom:6%}
.nh-flot.f2{right:6%;top:-2%;display:flex;align-items:center;gap:10px;padding:10px 16px 10px 10px}
.nh-flot.f2 b{width:34px;height:34px;border-radius:50%;background:var(--menthe);display:grid;place-items:center}
.nh-flot.f2 b svg{width:18px;height:18px}
.nh-stick{position:absolute;z-index:5;font:900 18px/1 "Inter Tight",Inter,sans-serif;letter-spacing:.01em;padding:10px 18px 11px;border-radius:999px;border:4px solid #fff;box-shadow:0 10px 22px -10px rgba(1,28,120,.5);opacity:0;transform:scale(.4) rotate(-20deg);transition:opacity .3s ease,transform .7s cubic-bezier(.34,1.7,.5,1)}
.nh .vu .nh-stick{opacity:1;transform:rotate(var(--r))}
.nh-stick.s1{background:var(--bleu);color:#fff;--r:-8deg;left:0;top:-3%;transition-delay:1s}
.nh-stick.s2{background:var(--rose);color:var(--rose-f);--r:5deg;left:30%;bottom:-6%;transition-delay:1.15s}

/* ---------- Les chapitres : cartes de couleur qui s'empilent ---------- */
.nh-pile{padding:24px 0 40px}
.nh-pile-tete{text-align:center;margin:0 auto 40px;max-width:760px}
.nh-pile-tete h2{font-size:clamp(36px,4.6vw,60px);line-height:1.04}
.nh-carte{position:sticky;top:var(--haut,110px);border-radius:36px;padding:56px 56px;margin:0 0 28px;display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center;min-height:min(560px,calc(100vh - 150px));box-shadow:0 -18px 40px -30px rgba(1,28,120,.35)}
.nh-carte:nth-child(1){--haut:104px;background:linear-gradient(160deg,#FFD6F3,#FFF0FA)}
.nh-carte:nth-child(2){--haut:118px;background:var(--menthe-c)}
.nh-carte:nth-child(3){--haut:132px;background:var(--bleu-c)}
.nh-carte:nth-child(4){--haut:146px;background:#fff}
.nh-carte:nth-child(5){--haut:160px;background:var(--menthe)}
.nh-carte h2{font-size:clamp(32px,3.6vw,48px);line-height:1.05;margin-bottom:22px}
.nh-carte p{font-size:18px;line-height:1.6;margin:0 0 12px;max-width:520px}
.nh-carte p.fort{font-weight:700}
.nh-carte .nh-tirage{aspect-ratio:4/3}
.nh-num{position:absolute;right:40px;bottom:18px;font:800 120px/1 "Inter Tight",Inter,sans-serif;color:rgba(1,28,120,.07);pointer-events:none}
.nh-carte{position:sticky}
.nh-bulle{display:inline-block;background:#fff;border-radius:22px 22px 22px 6px;padding:16px 20px;font:800 20px/1.3 "Inter Tight",Inter,sans-serif;box-shadow:0 14px 30px -18px rgba(1,28,120,.45);margin-top:8px;max-width:460px}

/* ---------- Aujourd'hui : grands chiffres + tirages ---------- */
.nh-auj{padding:80px 0 24px}
.nh-auj-tete{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:56px}
.nh-auj-tete h2{font-size:clamp(40px,5vw,68px);line-height:1}
.nh-auj-tete p{font-size:19px;line-height:1.55;margin:0;color:var(--gris)}
.nh-chif{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;border-top:1.5px solid rgba(1,28,120,.12)}
.nh-chif>div{padding:28px 8px 0}
.nh-chif .g{white-space:nowrap;font:800 clamp(52px,6.4vw,96px)/.95 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;color:var(--marine)}
.nh-chif .g em{font-style:normal;color:var(--bleu)}
.nh-chif .p{font:600 17px/1.4 Inter,sans-serif;margin-top:12px;max-width:280px}
.nh-mur{position:relative;height:520px;margin:72px 0 20px}
.nh-mur .nh-tirage{position:absolute;width:26%;aspect-ratio:4/3}
.nh-mur .m1{--r:-6deg;left:2%;top:4%}
.nh-mur .m2{--r:3deg;left:24%;top:0;width:30%;transition-delay:.12s;z-index:2}
.nh-mur .m3{--r:-2deg;left:52%;top:6%;transition-delay:.24s}
.nh-mur .m4{--r:7deg;right:1%;top:2%;width:22%;aspect-ratio:3/4;transition-delay:.36s}
.nh-mur .m5{--r:4deg;left:8%;top:46%;transition-delay:.48s;z-index:3}
.nh-mur .m6{--r:-5deg;left:36%;top:42%;width:34%;transition-delay:.6s;z-index:4}
.nh-mur .m7{--r:-8deg;right:6%;top:52%;transition-delay:.72s;z-index:3}
.nh-ft{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px auto 0}
.nh-ft img{height:64px;width:auto;border-radius:12px}
.nh-ft span{font:600 16px Inter,sans-serif}

/* ---------- Appel à l'action ---------- */
.nh-cta{margin:8px 0 72px;border-radius:36px;padding:64px 40px;text-align:center;background:#EEF0FA}
.nh-cta h2{font-size:clamp(32px,4vw,52px);line-height:1.05;margin-bottom:26px}
.nh-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.nh-btn{display:inline-flex;align-items:center;gap:12px;height:56px;padding:0 10px 0 26px;border-radius:999px;font:700 17px Inter,sans-serif;text-decoration:none;color:var(--marine);background:var(--menthe);transition:transform .15s,box-shadow .15s}
.nh-btn .fl{width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center}.nh-btn svg{width:16px;height:16px}
.nh-btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(44,246,179,.5)}
.nh-btn.blanc{background:#fff}.nh-btn.blanc .fl{background:var(--menthe)}.nh-btn.blanc:hover{box-shadow:0 0 0 2px var(--bleu)}

/* ---------- Téléphone ---------- */
@media (max-width:900px){
  .nh .wrap{padding:0 16px}
  .nh-ouv{margin:0 8px;border-radius:26px;padding:40px 0 64px}
  .nh-ouv .wrap{grid-template-columns:1fr;gap:28px}
  .nh-chapo{font-size:17px}
  .nh-scene{min-height:360px}
  .nh-carte{position:relative;top:auto;grid-template-columns:1fr;gap:26px;padding:32px 22px 36px;border-radius:26px;min-height:0}
  .nh-carte p{font-size:16.5px}.nh-num{font-size:80px;right:18px}
  .nh-auj-tete{grid-template-columns:1fr;gap:16px}
  .nh-chif{grid-template-columns:1fr;gap:0}.nh-chif>div{padding:22px 4px;border-bottom:1.5px solid rgba(1,28,120,.12)}
  .nh-mur{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:40px 0}
  .nh-mur .nh-tirage{position:relative;left:auto!important;right:auto!important;top:auto!important;width:auto!important;aspect-ratio:4/3!important}
  .nh-mur .m7{display:none}
  .nh-cta{padding:40px 20px;border-radius:26px}
  .nh-stick{font-size:14px;padding:8px 13px 9px}
}
@media (prefers-reduced-motion:reduce){.nh *{transition:none!important}.nh .ln>span,.nh .mt,.nh-tirage,.nh-flot,.nh-stick{opacity:1!important;transform:none!important}.nh-tirage{transform:rotate(var(--r,-3deg))!important}}

/* 30/11 v2b : légende sous la photo des fondateurs (plus de vignette ronde ni d'étiquettes flottantes) */
.nh-tirage figcaption{font:600 15px/1.35 Inter,sans-serif;color:#011C78;padding:12px 6px 2px;text-align:center}
.nh-tirage figcaption b{font-weight:800}
figure.nh-tirage{margin:0}
.nh-scene .t1{aspect-ratio:auto!important}.nh-scene .t1 img{aspect-ratio:4/3;height:auto}
.nh-chapo{font-size:22px;line-height:1.5}
@media (max-width:900px){.nh-chapo{font-size:18px}}
.nh-scene .t1{width:72%!important;left:0!important;top:2%!important}
.nh-scene .t2{width:34%!important;right:0!important;top:8%!important;bottom:auto!important}
.nh-tirage figcaption{text-align:left}
@media (max-width:900px){.nh-scene{min-height:0!important;display:block;padding-right:28%}.nh-scene .t1{position:relative!important;width:100%!important}.nh-scene .t2{width:36%!important;top:-6%!important}}
/* 30/11 : photos d'équipe cadrées sur les visages ; casque sur fond blanc ; bandeau French Tech plus grand */
.nh-mur .nh-tirage img{object-position:center 18%}
.nh-mur .m5{aspect-ratio:3/4!important;width:20%!important;top:40%!important}
img[src$="boite-casque.webp"]{object-position:center 40%;background:#fff}
.nh-ft{margin:88px auto 0;gap:32px;padding:28px 40px;background:#fff;border-radius:28px;max-width:860px}
.nh-ft img{height:120px}
.nh-ft span{font:800 clamp(22px,2.4vw,30px)/1.2 "Inter Tight",Inter,sans-serif;letter-spacing:-.01em}
@media (max-width:900px){.nh-mur .m5{width:auto!important}.nh-ft{flex-direction:column;text-align:center;gap:16px;padding:24px 18px;margin-top:56px}.nh-ft img{height:96px}}
/* 30/11 (Carole) : plus de temps de lecture — chaque carte reste en place ~60 % d'écran avant que la suivante arrive (ordinateur) */
@media (min-width:901px){.nh-cartes .nh-carte{margin-bottom:60vh}.nh-cartes .nh-carte:last-child{margin-bottom:0}}
/* 30/11 (Carole) : nuancier n° 1 « Franche » — bleu, menthe, blanc, rose charte (#FFB5FF, dégradé rose), vert « poste de travail » de l'accueil (#14C98E) */
.nh-carte:nth-child(1){background:#008DCE!important;color:#fff}
.nh-carte:nth-child(1) .nh-pill i{background:#fff}
.nh-carte:nth-child(1) .nh-num{color:rgba(255,255,255,.16)}
.nh-carte:nth-child(1) .nh-bulle{color:#011C78}
.nh-carte:nth-child(2){background:#14C98E!important}
.nh-carte:nth-child(3){background:#fff!important;box-shadow:0 0 0 1.5px #E2E6F0,0 -18px 40px -30px rgba(1,28,120,.35)}
.nh-carte:nth-child(4){background:#FFB5FF!important}
.nh-carte:nth-child(5){background:#14C98E!important}
.nh-carte:nth-child(2) .nh-pill i,.nh-carte:nth-child(5) .nh-pill i,.nh-carte:nth-child(4) .nh-pill i{background:#011C78}
/* ---------- 30/11 : parcours (calé sur la présentation 2027) ---------- */
.nh-parc{padding:56px 0 8px}
.nh-kraft{background:#CDB590 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");border-radius:32px;padding:48px 40px 44px}
.nh-parc-t{font-size:clamp(34px,4.6vw,60px)!important;line-height:1.02!important;margin:0 0 26px!important}
.nh-frise{position:relative;height:20px;margin:0 0 22px}
.nh-frise::before{content:"";position:absolute;left:0;right:10px;top:9px;height:3px;background:#011C78;border-radius:3px}
.nh-frise i{position:absolute;top:2px;width:17px;height:17px;border-radius:50%;background:#011C78}
.nh-frise i:nth-child(1){left:calc(16.66% - 8px)}.nh-frise i:nth-child(2){left:calc(50% - 8px)}.nh-frise i:nth-child(3){left:calc(83.33% - 8px)}
.nh-frise i.fin{right:0;left:auto;background:#14C98E;box-shadow:0 0 0 3px #CDB590}
.nh-etapes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.nh-et{border-radius:24px;padding:12px 12px 22px;display:flex;flex-direction:column}
.nh-et.blanc{background:#fff}.nh-et.rose{background:#FFD1FC}.nh-et.menthe{background:#76FFCE}
.nh-et .ph{border-radius:16px;overflow:hidden;aspect-ratio:16/10;background:#fff}
.nh-et .ph img{width:100%;height:100%;object-fit:cover;display:block}
.nh-et .an,.nh-tu .an{display:inline-block;align-self:flex-start;background:#011C78;color:#fff;font:800 16px/1 "Inter Tight",Inter,sans-serif;padding:9px 22px 10px;border-radius:999px;margin:20px 6px 14px}
.nh-et h3{font:800 clamp(26px,2.6vw,34px)/1.05 "Inter Tight",Inter,sans-serif;letter-spacing:-.01em;margin:0 6px 8px}
.nh-et p{margin:0 6px;font:500 16.5px/1.4 Inter,sans-serif;min-height:2.8em}
.nh-et .g,.nh-tu .g{font:800 clamp(56px,6vw,84px)/.95 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;margin:18px 6px 4px;white-space:nowrap}
.nh-et .u{font:600 17px Inter,sans-serif;margin:0 6px}
.nh-site{display:grid;grid-template-columns:44% 1fr;grid-template-rows:auto auto;gap:22px}
.nh-site-ph{position:relative;border-radius:22px;overflow:hidden;min-height:260px}
.nh-site-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nh-site-ph span{position:absolute;left:18px;bottom:16px;background:#011C78;color:#fff;font:700 14px Inter,sans-serif;padding:9px 16px;border-radius:999px}
.nh-tu{border-radius:22px;padding:26px 30px;display:flex;flex-direction:column;justify-content:center}
.nh-tu .lbl{font:800 20px "Inter Tight",Inter,sans-serif;margin:0}
.nh-tu .u{font:600 18px Inter,sans-serif;margin:0}
.nh-tu .an{margin:0 0 4px}
.nh-tu.menthe{background:#76FFCE}.nh-tu.rose{background:#FFD1FC}
.nh-tu.bleu{background:#008DCE;color:#fff}.nh-tu.bleu .an{background:#76FFCE;color:#011C78}
.nh-site .nh-tu.bleu{grid-column:1/2}
@media (max-width:900px){.nh-kraft{padding:28px 16px;border-radius:24px}.nh-etapes,.nh-site{grid-template-columns:1fr}.nh-frise{display:none}.nh-site .nh-tu.bleu{grid-column:auto}.nh-site-ph{min-height:220px}}
/* 30/11 : les cartes se bloquent SOUS l'en-tête (son fond coupait les coins arrondis) — --nh-top calculé par lbk-histoire.js */
.nh-cartes .nh-carte:nth-child(1){top:calc(var(--nh-top,124px) + 0px)}
.nh-cartes .nh-carte:nth-child(2){top:calc(var(--nh-top,124px) + 14px)}
.nh-cartes .nh-carte:nth-child(3){top:calc(var(--nh-top,124px) + 28px)}
.nh-cartes .nh-carte:nth-child(4){top:calc(var(--nh-top,124px) + 42px)}
.nh-cartes .nh-carte:nth-child(5){top:calc(var(--nh-top,124px) + 56px)}
@media (min-width:901px){.nh-carte{min-height:min(560px,calc(100vh - var(--nh-top,124px) - 90px))}}
/* 30/11 : chapitre 6 « Demain » (infos de la présentation 2027 intégrées au récit) */
.nh-cartes .nh-carte:nth-child(6){top:calc(var(--nh-top,124px) + 70px);background:#008DCE!important;color:#fff}
.nh-carte:nth-child(6) .nh-pill i{background:#fff}.nh-carte:nth-child(6) .nh-num{color:rgba(255,255,255,.16)}
/* 30/11 : « Labeko aujourd'hui » séparé en Nos techniciens / L'emploi solidaire */
.nh-bloc{margin-top:8px}
.nh-bloc-t{font:800 clamp(30px,3.4vw,44px)/1.05 "Inter Tight",Inter,sans-serif;letter-spacing:-.01em;margin:0 0 12px}
.nh-bloc-tete{display:grid;grid-template-columns:1fr 1.25fr;gap:40px;align-items:end;border-top:1.5px solid rgba(1,28,120,.12);padding-top:32px}
.nh-bloc-tete p{font-size:18px;line-height:1.55;margin:0;max-width:440px}
.nh-chif2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.nh-chif2 .g,.nh-esat .g{font:800 clamp(56px,6.4vw,92px)/.95 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;white-space:nowrap}
.nh-chif2 .g em{font-style:normal;color:#008DCE}
.nh-chif2 .p{font:600 16px/1.4 Inter,sans-serif;margin-top:10px}
.nh-bloc .nh-mur{margin:48px 0 8px}
.nh-bloc-btn{display:flex;justify-content:center;margin:12px 0 0}
.nh-esat{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;background:#fff;border-radius:36px;padding:48px;margin:72px 0 0}
.nh-esat .nh-tirage{aspect-ratio:4/3}
.nh-esat .g{margin:4px 0 10px}
.nh-esat p{font-size:18px;line-height:1.55;margin:0 0 24px;max-width:460px}
.nh-esat p b{font-weight:800}
.nh-esat .nh-btn.blanc{background:#14C98E}.nh-esat .nh-btn.blanc .fl{background:#fff}
@media (max-width:900px){.nh-bloc-tete,.nh-chif2,.nh-esat{grid-template-columns:1fr;gap:22px}.nh-esat{padding:24px 18px;border-radius:26px;margin-top:48px}}
.nh-bloc-btn{margin-top:64px!important}@media (max-width:900px){.nh-bloc-btn{margin-top:36px!important}}
/* audit 30/11 : téléphone — mur de photos en 2 colonnes propres (les photos recouvraient le bouton « Découvrir les coulisses ») */
@media(max-width:900px){.nh-mur{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;height:auto!important}.nh-mur .nh-tirage{top:auto!important;left:auto!important;right:auto!important;width:auto!important;aspect-ratio:4/3!important;min-width:0}.nh-mur .nh-tirage img{width:100%}.nh-bloc-btn{position:relative;z-index:5}}
