/* =========================================================================
   Essorio — Home premium « énergique industriel »
   Scopé sous .home2 pour ne pas impacter les autres pages.
   Palette : navy + turquoise + ambre. Animations via GSAP (home.js).
   ========================================================================= */

.home2 {
  --amber: #F59E0B;
  --amber2: #FB923C;
  --turq-bright: #2DE0C8;
  --navy-deep: #081729;
  --grain: rgba(255,255,255,.04);
}

/* Reveal : masqué UNIQUEMENT quand l'animation va réellement tourner (.anim-ready).
   Sans JS / reduced-motion / onglet en arrière-plan -> contenu visible par défaut. */
.anim-ready .home2 [data-reveal],
.anim-ready .home2 [data-reveal-item] { opacity: 0; transform: translateY(34px); }
.anim-ready .home2 [data-reveal-x] { opacity: 0; transform: translateX(-40px); }

/* Titres split-text (mot par mot). Chaque mot devient un inline-block animable. */
.home2 .split-w { display: inline-block; will-change: transform; }

/* ---------- Section helpers ---------- */
.home2 .wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.home2 .sec { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.home2 .kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
}
.home2 .kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.home2 .sec-title {
  font-weight: 900; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.4rem); margin: .8rem 0 1.1rem;
}
.home2 .sec-intro { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }

/* =========================================================================
   HERO
   ========================================================================= */
.h-hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  color: #eaf1fb;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  isolation: isolate;
}
.h-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.h-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.h-blob--turq { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: radial-gradient(circle, #14B8A6, transparent 68%); }
.h-blob--amber { width: 34vw; height: 34vw; right: -6vw; top: 8vw; background: radial-gradient(circle, var(--amber), transparent 66%); opacity: .38; }
.h-blob--blue { width: 38vw; height: 38vw; right: 12vw; bottom: -16vw; background: radial-gradient(circle, #1B4F8A, transparent 70%); }
.h-hero__grid-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--grain) 1px, transparent 1px), linear-gradient(90deg, var(--grain) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}

.h-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(20,184,166,.12); border: 1px solid rgba(45,224,200,.3); color: var(--turq-bright);
}
.h-hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq-bright); box-shadow: 0 0 0 0 rgba(45,224,200,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,224,200,.6)} 70%{box-shadow:0 0 0 10px rgba(45,224,200,0)} 100%{box-shadow:0 0 0 0 rgba(45,224,200,0)} }

.h-hero h1 {
  font-weight: 900; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  margin: 1.4rem 0 0; color: #fff; text-transform: none; max-width: 17ch;
}
.h-hero h1 .hl { position: relative; color: var(--amber); white-space: nowrap; }
.h-hero h1 .hl--turq { color: var(--turq-bright); }
.h-hero h1 .word { display: inline-block; }   /* pour le stagger GSAP */
.h-hero__lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #aebfd6; max-width: 56ch; line-height: 1.6; }

.h-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.btn-x {
  --c1: var(--amber); --c2: var(--amber2);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1rem; padding: 1.05rem 1.9rem; border-radius: 12px;
  background: linear-gradient(120deg, var(--c1), var(--c2)); color: #1a1205;
  border: none; cursor: pointer; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 10px 30px rgba(245,158,11,.28);
}
.btn-x .arrow { transition: transform .25s; }
.btn-x:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(245,158,11,.4); color: #1a1205; }
.btn-x:hover .arrow { transform: translateX(4px); }
.btn-x--turq { --c1: var(--turq-bright); --c2: #14B8A6; color: #04231f; box-shadow: 0 10px 30px rgba(20,184,166,.3); }
.btn-x--turq:hover { box-shadow: 0 16px 40px rgba(20,184,166,.42); color: #04231f; }
.btn-ghost-x {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1rem; padding: 1.05rem 1.6rem; border-radius: 12px;
  color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.03);
  transition: border-color .25s, background .25s, transform .25s;
}
.btn-ghost-x:hover { border-color: var(--turq-bright); color: #fff; background: rgba(45,224,200,.08); transform: translateY(-3px); }
.play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--turq-bright); color: #04231f; font-size: .7rem; }

/* mini-stats hero */
.h-hero__stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.h-hero__stat .n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; color: #fff; line-height: 1; }
.h-hero__stat .n .u { color: var(--turq-bright); }
.h-hero__stat .l { font-size: .82rem; color: #93a6c2; margin-top: .4rem; max-width: 18ch; }

/* =========================================================================
   MARQUEE (bande défilante de secteurs)
   ========================================================================= */
.h-marquee { background: var(--amber); color: #1a1205; overflow: hidden; padding: .9rem 0; border-block: 3px solid #1a1205; }
.h-marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 28s linear infinite; }
.h-marquee:hover .h-marquee__track { animation-play-state: paused; }
.h-marquee__track span { font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; padding-inline: 1.4rem; display: inline-flex; align-items: center; gap: 1.4rem; }
.h-marquee__track span::after { content: "◆"; color: rgba(26,18,5,.45); font-size: .7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   CONSTAT
   ========================================================================= */
.h-constat { background: #fff; }
.h-constat .grid3 { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width:820px){ .h-constat .grid3 { grid-template-columns: repeat(3,1fr); } }
.h-feat { position: relative; padding: 2rem; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.h-feat::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--amber), var(--amber2)); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.h-feat:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,31,58,.12); }
.h-feat:hover::before { transform: scaleY(1); }
.h-feat .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.h-feat h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.h-feat p { color: var(--slate); margin: 0; }

/* =========================================================================
   AUTOMATISE (cartes services premium)
   ========================================================================= */
.h-auto { background: var(--navy-deep); color: #e7eefb; }
.h-auto .sec-title { color: #fff; }
.h-auto .sec-intro { color: #aebfd6; }
.h-cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width:680px){ .h-cards { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1040px){ .h-cards { grid-template-columns: repeat(4,1fr); } }
.h-card {
  position: relative; display: block; padding: 1.8rem; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #e7eefb; overflow: hidden; transition: transform .3s, border-color .3s, background .3s;
}
.h-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(45,224,200,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.h-card:hover { transform: translateY(-8px); border-color: rgba(45,224,200,.5); background: rgba(255,255,255,.06); color: #fff; }
.h-card:hover::after { opacity: 1; }
.h-card .num { font-size: .8rem; font-weight: 800; color: var(--amber); letter-spacing: .1em; }
.h-card .ic { font-size: 2rem; margin: .8rem 0 1rem; }
.h-card h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .45rem; }
.h-card p { color: #a9bbd6; font-size: .95rem; margin: 0; }
.h-card .go { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--turq-bright); font-weight: 700; font-size: .9rem; }
.h-card:hover .go { gap: .7rem; }

/* =========================================================================
   STATS (gros chiffres animés)
   ========================================================================= */
.h-stats { background: linear-gradient(135deg, #0B1F3A, #143a6b); color: #fff; }
.h-stats .sec-title { color: #fff; }   /* sinon le h2 global (encre foncée) rend le titre illisible sur navy */
.h-stats .grid4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
@media (min-width:900px){ .h-stats .grid4 { grid-template-columns: repeat(4,1fr); } }
.h-stat { text-align: center; padding: 1.4rem; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.h-stat .big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: linear-gradient(120deg, #fff, var(--turq-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-stat .lbl { margin-top: .7rem; font-size: .9rem; color: #b9c8dd; }

/* =========================================================================
   PROCESS (timeline animée)
   ========================================================================= */
.h-proc { background: #fff; }
.h-steps { position: relative; margin-top: 3.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width:860px){ .h-steps { grid-template-columns: repeat(3,1fr); } }
.h-steps::before { content:""; position:absolute; top:34px; left:6%; right:6%; height:3px; background: repeating-linear-gradient(90deg,var(--line) 0 14px, transparent 14px 26px); display:none; }
@media (min-width:860px){ .h-steps::before { display:block; } }
.h-step { position: relative; }
.h-step .badge-n { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 14px 30px rgba(11,31,58,.25); position: relative; z-index: 1; }
.h-step:nth-child(2) .badge-n { background: linear-gradient(135deg, #0d8478, var(--turq-bright)); }
.h-step:nth-child(3) .badge-n { background: linear-gradient(135deg, #b45309, var(--amber)); }
.h-step h3 { font-size: 1.35rem; font-weight: 800; margin: 1.2rem 0 .5rem; }
.h-step p { color: var(--slate); margin-bottom: .6rem; }
.h-step a { font-weight: 700; }

/* =========================================================================
   GARANTIES (bandeau audacieux)
   ========================================================================= */
.h-guar { background: var(--amber); color: #1a1205; }
.h-guar .sec-title { color: #1a1205; }
.h-guar .kicker, .h-guar .kicker::before { color: #1a1205; background-color: currentColor; }
.h-guar .kicker { color:#7a4d05; } .h-guar .kicker::before{ background:#7a4d05; }
.h-guar .grid3 { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.6rem; }
@media (min-width:820px){ .h-guar .grid3 { grid-template-columns: repeat(3,1fr); } }
.h-gcard { background: #1a1205; color: #fdebcf; border-radius: 18px; padding: 1.8rem; transition: transform .3s; }
.h-gcard:hover { transform: translateY(-6px) rotate(-.5deg); }
.h-gcard .gn { font-size: .8rem; font-weight: 800; color: var(--amber); letter-spacing: .1em; }
.h-gcard h3 { color: #fff; font-size: 1.25rem; font-weight: 800; margin: .5rem 0; }
.h-gcard p { color: #d8c4a6; margin: 0; font-size: .95rem; }

/* =========================================================================
   CTA final
   ========================================================================= */
.h-cta { background: var(--navy-deep); color: #fff; text-align: center; overflow: hidden; position: relative; }
.h-cta .ring { position: absolute; border: 1px solid rgba(45,224,200,.18); border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; }
.h-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; color: #fff; max-width: 18ch; margin-inline: auto; }
.h-cta p { color: #aebfd6; max-width: 52ch; margin: 1.2rem auto 2rem; font-size: 1.1rem; }

/* =========================================================================
   Responsive hero stats stack
   ========================================================================= */
@media (max-width: 560px){
  .home2 .h-hero__stats { gap: 1.4rem; }
  .home2 .h-hero__stat { flex: 1 1 40%; }
}

/* =========================================================================
   V2.1 — Visuels riches & animations supplémentaires
   ========================================================================= */

/* Barre de progression de scroll */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--turq-bright), #F59E0B); z-index: 100; }

/* ---------- Hero en 2 colonnes ---------- */
.h-hero__inner { display: grid; gap: 2.6rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .h-hero__inner { grid-template-columns: 1.05fr .95fr; gap: 2rem; } }

/* ---------- Mockup produit (tableau de bord verre) ---------- */
.h-mock-wrap { position: relative; perspective: 1200px; }
.h-mock {
  position: relative; border-radius: 20px; padding: 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgba(2,10,25,.6); transform-style: preserve-3d; will-change: transform;
}
.h-mock__bar { display: flex; align-items: center; gap: .5rem; padding: .2rem .4rem .9rem; }
.h-mock__dots { display: flex; gap: .35rem; }
.h-mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); display: inline-block; }
.h-mock__dots i:first-child { background: #ff6058; } .h-mock__dots i:nth-child(2){ background:#ffbd2e; } .h-mock__dots i:nth-child(3){ background:#28c840; }
.h-mock__title { font-size: .8rem; color: #9fb3d0; font-weight: 700; margin-left: .4rem; }
.h-mock__title .live { color: var(--turq-bright); }
.h-mock__panel { background: rgba(8,20,38,.7); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 1rem; }
.h-mock__kpi { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .9rem; }
.h-mock__kpi .v { font-size: 2.1rem; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1; }
.h-mock__kpi .u { color: var(--turq-bright); font-weight: 800; }
.h-mock__kpi .lab { font-size: .72rem; color: #8aa0bf; margin-left: auto; text-align: right; max-width: 12ch; }
.h-mock__rows { display: grid; gap: .5rem; }
.h-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: .82rem; color: #cdd9ea; }
.h-row .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(20,184,166,.16); font-size: .85rem; }
.h-row .ref { font-weight: 700; color: #fff; }
.h-row .cust { color: #8aa0bf; }
.h-row .st { margin-left: auto; font-size: .68rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.h-row .st--ok { background: rgba(40,200,120,.16); color: #46d995; }
.h-row .st--wait { background: rgba(245,158,11,.16); color: var(--amber2); }
.h-mock__prog { margin-top: .9rem; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.h-mock__prog i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--turq-bright), #14B8A6); }

/* Cartes flottantes */
.h-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(12,28,52,.85); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); box-shadow: 0 16px 40px rgba(2,10,25,.5); font-size: .8rem; color: #eaf1fb; font-weight: 700; will-change: transform; }
.h-float .badge-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; }
.h-float--a { top: -18px; left: -26px; } .h-float--a .badge-ic { background: rgba(245,158,11,.2); color: var(--amber2); }
.h-float--b { bottom: 38px; right: -26px; } .h-float--b .badge-ic { background: rgba(40,200,120,.2); color: #46d995; }
.h-float .big { font-size: 1.15rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.h-float small { display: block; font-weight: 600; color: #9fb3d0; font-size: .68rem; }
@media (max-width: 999px){ .h-float--a{ left:0; } .h-float--b{ right:0; } }

/* ---------- Section FLUX (Email/PDF/EDI -> IA -> ERP) ---------- */
.h-flow { background: #fff; }
.h-flow__diagram { margin-top: 3.5rem; position: relative; display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px){ .h-flow__diagram { grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: 1rem; } }
.flow-col { display: grid; gap: .8rem; }
.flow-node { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); font-weight: 700; box-shadow: var(--shadow-sm); }
.flow-node .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: #fff; box-shadow: var(--shadow-sm); }
.flow-core { text-align: center; padding: 1.6rem 1.2rem; border-radius: 20px; color: #fff; background: linear-gradient(150deg, var(--navy), var(--blue)); box-shadow: 0 24px 50px rgba(11,31,58,.3); position: relative; overflow: hidden; }
.flow-core::after { content: ""; position: absolute; inset: -2px; border-radius: 22px; background: conic-gradient(from 0deg, transparent, rgba(45,224,200,.5), transparent 40%); animation: spin 5s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-core .ic-core { font-size: 2rem; }
.flow-core h3 { color: #fff; font-size: 1.2rem; margin: .4rem 0 .2rem; }
.flow-core p { color: #b9c8dd; font-size: .82rem; margin: 0; }
.flow-arrow { display: none; align-items: center; justify-content: center; color: var(--turq); }
@media (min-width: 920px){ .flow-arrow { display: flex; } }
.flow-arrow svg { width: 60px; height: 24px; overflow: visible; }
.flow-arrow path { stroke: var(--turq); stroke-width: 2.5; fill: none; stroke-dasharray: 90; stroke-dashoffset: 90; }
.flow-arrow .dot { fill: var(--amber); }

/* ---------- Tilt 3D ---------- */
[data-tilt] { transform-style: preserve-3d; transition: transform .15s ease-out; will-change: transform; }

/* ---------- 2e marquee (inversé, navy) ---------- */
.h-marquee--rev { background: var(--navy-deep); color: #6f86a6; border-color: rgba(255,255,255,.1); }
.h-marquee--rev .h-marquee__track { animation-duration: 34s; animation-direction: reverse; }
.h-marquee--rev .h-marquee__track span::after { color: rgba(255,255,255,.18); }
.h-marquee--rev .h-marquee__track span { color: #8aa0bf; }

/* float idle keyframes */
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* =========================================================================
   V2.2 — Photographies réelles (Pixabay) + parallax
   ========================================================================= */

/* ---------- Cadre média réutilisable ---------- */
.h-media { position: relative; border-radius: 20px; }
.h-media__frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 34px 70px rgba(2,10,25,.28); background: var(--navy-deep); }
.h-media__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* accent ambre décalé derrière le cadre */
.h-media::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 62%; border: 2px solid var(--amber); border-radius: 20px; z-index: -1; opacity: .8; }
/* léger voile navy pour homogénéiser les tons */
.h-media__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,23,41,.05), rgba(8,23,41,.32)); pointer-events: none; }
/* chip flottant (stat) posé sur une image */
.h-media__chip { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .7rem .95rem; border-radius: 14px; background: rgba(8,20,38,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); box-shadow: 0 16px 40px rgba(2,10,25,.5); }
.h-media__chip .big { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; color: var(--turq-bright); line-height: 1; }
.h-media__chip small { display: block; font-size: .68rem; color: #b7c6dd; font-weight: 600; max-width: 16ch; margin-top: .18rem; }
/* clip pour parallax : l'image dépasse et se translate dans le cadre */
.h-media--px .h-media__frame { position: relative; }
.h-media--px .h-media__frame img { position: absolute; top: -15%; left: 0; height: 130%; }

/* ---------- Constat : 2 colonnes texte + image ---------- */
.h-constat__top { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){ .h-constat__top { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.h-constat__top .h-media__frame { aspect-ratio: 4/3; }

/* ---------- Automatise : header 2 colonnes ---------- */
.h-auto__head { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){ .h-auto__head { grid-template-columns: 1.1fr .9fr; gap: 2.6rem; } }
.h-auto__head .h-media__frame { aspect-ratio: 16/10; }
.h-auto__head .h-media::before { border-color: var(--turq-bright); }

/* ---------- Bandeau parallax pleine largeur ---------- */
.h-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(5rem, 12vw, 9rem); background: var(--navy-deep); }
.h-band__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.h-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.h-band__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,16,30,.94) 0%, rgba(6,16,30,.78) 42%, rgba(6,16,30,.55) 100%); }
.h-band .wrap { max-width: 900px; }
.h-band .kicker { color: var(--turq-bright); }
.h-band .kicker::before { background: var(--turq-bright); }
.h-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.04; color: #fff; max-width: 20ch; margin: .8rem 0 1.1rem; }
.h-band h2 .hl { color: var(--amber); }
.h-band p { color: #c6d4e8; font-size: 1.12rem; max-width: 54ch; line-height: 1.6; }
.h-band__stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.4rem; }
.h-band__stat .n { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; color: #fff; line-height: 1; }
.h-band__stat .n .u { color: var(--turq-bright); }
.h-band__stat .l { font-size: .82rem; color: #9fb3d0; margin-top: .35rem; max-width: 20ch; }

/* ---------- Process : 2 colonnes image + étapes ---------- */
.h-proc__inner { display: grid; gap: 2.6rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px){ .h-proc__inner { grid-template-columns: .82fr 1.18fr; gap: 3.2rem; } }
.h-proc__inner .h-media__frame { aspect-ratio: 3/4; }
.h-proc .h-steps { margin-top: 2rem; }
@media (min-width: 940px){ .h-proc .h-steps { grid-template-columns: 1fr; gap: 1.6rem; } .h-proc .h-steps::before { display: none; } }
/* en 2 colonnes, timeline verticale à gauche des étapes */
@media (min-width: 940px){
  .h-proc .h-step { padding-left: 5.6rem; min-height: 68px; }
  .h-proc .h-step .badge-n { position: absolute; left: 0; top: 0; }
}

/* ---------- CTA : fond photo + overlay ---------- */
.h-cta { isolation: isolate; }
.h-cta__bg { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.h-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.h-cta__overlay { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(8,23,41,.72), rgba(6,16,30,.96)); }
.h-cta .ring { z-index: -1; }

/* Les images restent visibles même sans animation (contenu réel) */
.home2 .h-media__frame img, .home2 .h-band__bg img, .home2 .h-cta__bg img { opacity: 1; }

/* =========================================================================
   V2.5 — Pack 1 : clip reveal, odomètre, flux épinglé
   ========================================================================= */

/* ---------- Reveal des images en volet (clip-path) ---------- */
.anim-ready .home2 [data-clip] .h-media__frame { clip-path: inset(0 100% 0 0); }
.anim-ready .home2 [data-clip] .h-media__chip { opacity: 0; transform: translateY(12px) scale(.92); }

/* ---------- Odomètre (rouleaux de chiffres) ---------- */
.od-reel { display: inline-block; overflow: hidden; height: 1em; line-height: 1; vertical-align: baseline; }
.od-strip { display: flex; flex-direction: column; will-change: transform; }
.od-num { height: 1em; line-height: 1; text-align: center; }
/* préserve le dégradé texte des gros chiffres, appliqué par chiffre */
.h-stat .big .od-num {
  background: linear-gradient(120deg, #fff, var(--turq-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Flux : paquets qui voyagent le long des flèches ---------- */
.h-flow__diagram { position: relative; }
.flow-arrow { position: relative; }
.flow-packet {
  position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--turq-bright); box-shadow: 0 0 16px 4px rgba(45,224,200,.75);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 3;
}
