/* ============ HVD CONSULTING — Charte V3 ============ */
:root{
  --navy:#0e1d42;
  --navy-deep:#080f22;
  --navy-accent:#1a2f5e;
  --navy-line:#23386b;
  --gold:#c0a24a;
  --gold-2:#d4aa45;
  --gold-deep:#b8922a;
  --cream:#f8f7f3;
  --sand:#ede9df;
  --sand-2:#e8e5de;
  --ink:#13182a;
  --muted:#6b6b6b;
  --muted-light:#a9b3c9;
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Lato',-apple-system,BlinkMacSystemFont,sans-serif;
  --wrap:1180px;
  --r:14px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;width:100%;max-width:100%;overflow-x:hidden;}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--sans);font-weight:400;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  width:100%;max-width:100%;
}
img{max-width:100%;display:block;}
h1,h2,h3,h4,p,li,blockquote,figcaption{overflow-wrap:break-word;}
a{color:inherit;text-decoration:none;}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px;}
.kicker{
  font-family:var(--sans);font-weight:700;font-size:12.5px;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold-deep);
  display:inline-flex;align-items:center;gap:12px;margin:0 0 20px;
}
.kicker::before{content:"";width:28px;height:2px;background:var(--gold);display:inline-block;}
.kicker.center{justify-content:center;}
.kicker.on-dark{color:var(--gold-2);}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;color:var(--navy);margin:0;line-height:1.14;letter-spacing:-.01em;}
h2.section{font-size:clamp(32px,4vw,50px);}
.lead{font-size:clamp(17px,1.6vw,20px);color:var(--muted);font-weight:300;line-height:1.6;}
.on-dark h2,.on-dark h1,.on-dark h3{color:#fff;}
.on-dark .lead{color:var(--muted-light);}

.btn{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  font-family:var(--sans);font-weight:700;font-size:14.5px;letter-spacing:.01em;
  padding:15px 26px;border-radius:10px;border:1.6px solid transparent;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease,color .2s;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-gold{background:var(--gold);color:#1a1606;box-shadow:0 12px 26px -12px rgba(192,162,74,.7);}
.btn-gold:hover{background:var(--gold-2);}
.btn-navy{background:var(--navy);color:#fff;}
.btn-navy:hover{box-shadow:0 14px 28px -14px rgba(14,29,66,.6);}
.btn-ghost{border-color:rgba(255,255,255,.4);color:#fff;}
.btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.06);}
.btn-outline{border-color:var(--navy);color:var(--navy);}
.btn-outline:hover{background:var(--navy);color:#fff;}
.btn .arr{transition:transform .2s;}
.btn:hover .arr{transform:translateX(3px);}

/* ---------- Header ---------- */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:100;
  transition:background .3s,box-shadow .3s,padding .3s;padding:9px 0;
}
.hdr.solid{background:rgba(8,15,34,.92);backdrop-filter:blur(12px);padding:8px 0;box-shadow:0 1px 0 rgba(255,255,255,.06);}
.hdr-row{display:flex;align-items:center;gap:30px;}
.hdr-logo{height:112px;width:auto;transition:height .3s;}
.hdr.solid .hdr-logo{height:84px;}
.nav{display:flex;gap:28px;margin-left:16px;}
.nav a{font-size:14px;color:rgba(255,255,255,.82);font-weight:400;letter-spacing:.01em;position:relative;padding:4px 0;white-space:nowrap;transition:color .2s;}
.nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:1.5px;background:var(--gold);transition:width .25s;}
.nav a:hover{color:#fff;}
.nav a:hover::after{width:100%;}
.nav a.active{color:#fff;}
.nav a.active::after{width:100%;}
.hdr-cta{margin-left:auto;}
.burger{display:none;margin-left:auto;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:8px;}
.burger span{width:24px;height:2px;background:#fff;display:block;}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--navy-deep);color:#fff;overflow:hidden;
  padding:155px 0 110px;}
.hero-bg{position:absolute;inset:0;background:
  radial-gradient(120% 90% at 78% 18%,#162a55 0%,#0e1d42 38%,#080f22 78%);}
.hero-arcs{position:absolute;top:-22%;right:-12%;width:780px;height:780px;pointer-events:none;opacity:.9;}
@keyframes arc-orbit{to{transform:rotate(360deg);}}
.arc-orb-1{animation:arc-orbit 22s linear infinite;}
.arc-orb-2{animation:arc-orbit 15s linear infinite; animation-delay:-5s;}
.arc-orb-3{animation:arc-orbit 10s linear infinite; animation-delay:-2s;}
.arc-orb-4{animation:arc-orbit 7s linear infinite; animation-delay:-1s;}
.hero-glow{position:absolute;left:-180px;bottom:-220px;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(26,47,94,.7),transparent 70%);}
.hero-inner{position:relative;z-index:2;max-width:880px;}
.hero h1{font-size:clamp(38px,5.4vw,68px);color:#fff;line-height:1.18;padding-bottom:.06em;}
.hero h1 .hl{color:var(--gold-2);font-style:italic;}
.hero .sub{margin:42px 0 0;max-width:660px;font-size:clamp(16px,1.5vw,19px);color:#c7cfe0;font-weight:300;line-height:1.62;}
.hero-cta{display:flex;gap:16px;margin-top:38px;flex-wrap:wrap;}
.pillars{display:flex;gap:14px;flex-wrap:wrap;margin-top:54px;border-top:1px solid var(--navy-line);padding-top:26px;}
.pillar{display:flex;align-items:center;gap:11px;color:#d9dfee;font-size:14.5px;font-weight:400;letter-spacing:.06em;}
.pillar::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--gold-2);flex:none;opacity:.85;}
.pillar:not(:last-child)::after{content:"";width:24px;height:1px;background:var(--navy-line);margin-left:14px;}

/* ---------- Section base ---------- */
section.band{padding:clamp(74px,8vw,118px) 0;position:relative;}
.band.cream{background:var(--cream);}
.band.sand{background:var(--sand);}
.band.navy{background:var(--navy);color:#fff;}
.band.navy-deep{background:var(--navy-deep);color:#fff;}
.band.white{background:#fff;}
.sec-head{max-width:720px;margin-bottom:54px;}
.sec-head.center{margin-left:auto;margin-right:auto;text-align:center;}

/* ---------- Credibility ---------- */
.cred-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.cred{background:#fff;border:1px solid #ece7da;border-radius:var(--r);padding:30px 26px;
  transition:transform .25s,box-shadow .25s,border-color .25s,border-left-color .25s;}
.cred:hover{transform:translateY(-5px);box-shadow:inset 4px 0 0 var(--gold),0 24px 44px -28px rgba(14,29,66,.4);border-color:#e3dcc8;}
.cred .ic{width:48px;height:48px;border-radius:11px;background:var(--navy);display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
.cred .ic svg{width:24px;height:24px;stroke:var(--gold-2);fill:none;stroke-width:1.6;}
.cred h3{font-size:21px;margin-bottom:9px;}
.cred p{margin:0;font-size:14.5px;color:var(--muted);line-height:1.55;}

.metrics{margin-top:64px;}
.metrics-head{max-width:640px;margin-bottom:24px;}
.metrics-head p{margin:0;font-size:15px;color:var(--muted);line-height:1.55;}
.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:#e6e0d2;border:1px solid #e6e0d2;border-top:3px solid var(--gold);border-radius:var(--r);overflow:hidden;}
.stat{background:var(--cream);padding:30px 26px;display:flex;flex-direction:column;gap:16px;
  transition:background .25s,box-shadow .25s;}
.stat:hover{background:#fff;box-shadow:inset 0 -3px 0 var(--gold);}
.stat-ic{width:42px;height:42px;border-radius:11px;border:1.5px solid var(--gold);
  color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:700;
  transition:background .2s,color .2s;}
.stat:hover .stat-ic{background:var(--gold);color:#1a1606;}
.stat .l{font-size:14.5px;color:var(--navy);font-weight:700;line-height:1.4;letter-spacing:.005em;}

/* ---------- Sales Tracker ---------- */
.tracker{position:relative;overflow:hidden;}
.tracker-arcs{position:absolute;left:-10%;bottom:-30%;width:620px;height:620px;opacity:.5;pointer-events:none;}
.tracker-grid{display:grid;grid-template-columns:1.02fr 1fr;gap:60px;align-items:center;position:relative;z-index:2;}
.tracker .feats{list-style:none;padding:0;margin:30px 0 34px;display:flex;flex-direction:column;gap:16px;}
.tracker .feats li{display:flex;gap:14px;align-items:flex-start;color:#cfd6e6;font-size:15.5px;}
.tracker .feats .tick{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--gold);color:var(--gold-2);
  display:flex;align-items:center;justify-content:center;flex:none;font-size:12px;margin-top:2px;}
.tag-quote{font-family:var(--serif);font-style:italic;font-size:clamp(26px,3vw,38px);color:#fff;line-height:1.18;}
.tag-quote .u{color:var(--gold-2);}

/* device stage */
.device-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:440px;}
.dash{position:absolute;right:-4%;top:8%;width:74%;background:#fff;border-radius:16px;
  box-shadow:0 40px 80px -40px rgba(0,0,0,.7);border:1px solid #eee;overflow:hidden;}
.dash-top{background:var(--navy);padding:13px 16px;display:flex;align-items:center;gap:8px;}
.dash-top i{width:8px;height:8px;border-radius:50%;background:#33446b;}
.dash-top .t{margin-left:8px;color:#cfd6e6;font-size:11px;letter-spacing:.05em;}
.dash-body{padding:18px;}
.dash-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px;}
.dash-kpi{background:var(--cream);border-radius:9px;padding:12px;}
.dash-kpi .kv{font-family:var(--serif);font-weight:600;font-size:24px;color:var(--navy);line-height:1;}
.dash-kpi .kl{font-size:10px;color:var(--muted);margin-top:5px;letter-spacing:.03em;}
.dash-kpi .kv small{font-size:12px;color:var(--gold-deep);font-family:var(--sans);font-weight:700;}
.chart{display:flex;align-items:flex-end;gap:9px;height:96px;padding:10px 4px 0;border-top:1px solid #eee;}
.chart .bar{flex:1;background:linear-gradient(var(--navy-accent),var(--navy));border-radius:5px 5px 0 0;position:relative;}
.chart .bar.hl{background:linear-gradient(var(--gold-2),var(--gold-deep));}

.phone{position:relative;z-index:3;width:226px;height:464px;background:#0b1430;border-radius:34px;
  padding:9px;box-shadow:0 44px 80px -34px rgba(0,0,0,.8);border:1.5px solid #2a3a63;margin-left:-38%;margin-top:60px;}
.phone .notch{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:90px;height:22px;background:#0b1430;border-radius:14px;z-index:4;}
.phone-scr{width:100%;height:100%;border-radius:26px;overflow:hidden;background:var(--cream);display:flex;flex-direction:column;}
.app-head{background:var(--navy);color:#fff;padding:34px 16px 16px;}
.app-head .hi{font-size:11px;color:var(--muted-light);letter-spacing:.04em;}
.app-head .nm{font-family:var(--serif);font-size:19px;margin-top:2px;}
.app-body{padding:14px;display:flex;flex-direction:column;gap:11px;overflow:hidden;}
.app-card{background:#fff;border:1px solid #ece7da;border-radius:11px;padding:12px;}
.app-card .row{display:flex;justify-content:space-between;align-items:center;}
.app-card .lab{font-size:10.5px;color:var(--muted);letter-spacing:.03em;}
.app-card .big{font-family:var(--serif);font-weight:600;font-size:22px;color:var(--navy);}
.app-prog{height:7px;border-radius:6px;background:#ece7da;margin-top:9px;overflow:hidden;}
.app-prog i{display:block;height:100%;background:linear-gradient(90deg,var(--gold-2),var(--gold-deep));border-radius:6px;}
@keyframes prog-fill{from{width:0;}}
.reveal.in .app-prog i{animation:prog-fill 1.1s cubic-bezier(.4,0,.2,1) both;}
.app-list{display:flex;flex-direction:column;gap:8px;}
.app-li{display:flex;align-items:center;gap:9px;font-size:11.5px;color:#33425f;}
.app-li .dot{width:8px;height:8px;border-radius:50%;flex:none;}
.dot-g{background:#3a9d6a;}.dot-o{background:var(--gold-deep);}.dot-b{background:var(--navy-accent);}

/* ---------- Méthode timeline ---------- */
.method-wrap{position:relative;}
.method-line{position:absolute;left:0;right:0;top:38px;height:2px;background:linear-gradient(90deg,var(--gold) 0%,#e6dcc0 100%);}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;position:relative;}
.step .node{width:76px;height:76px;border-radius:50%;background:#fff;border:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:30px;color:var(--navy);
  position:relative;z-index:2;margin-bottom:26px;box-shadow:0 0 0 8px var(--cream);}
.step .num{position:absolute;top:-8px;right:-6px;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--gold-deep);
  background:#fff;border:1px solid var(--gold);border-radius:20px;padding:2px 8px;font-family:var(--sans);}
.step h3{font-size:22px;margin-bottom:10px;}
.step p{margin:0;font-size:14.5px;color:var(--muted);line-height:1.55;}
.step .meta{margin-top:14px;display:flex;flex-wrap:wrap;gap:7px;}
.step .meta span{font-size:11.5px;color:var(--navy);background:#fff;border:1px solid #e6dfcd;border-radius:20px;padding:4px 11px;}

/* ---------- Domaines ---------- */
.dom-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:22px;}
.dom{grid-column:span 2;background:var(--navy);color:#fff;border-radius:var(--r);padding:34px 30px;position:relative;overflow:hidden;
  transition:transform .25s,box-shadow .25s;border:1px solid var(--navy-line);}
.dom:hover{transform:translateY(-6px);box-shadow:0 30px 56px -30px rgba(14,29,66,.7);}
.dom:nth-child(4){grid-column:2 / span 2;}
.dom:nth-child(5){grid-column:4 / span 2;}
.dom .ic{width:50px;height:50px;border-radius:12px;background:rgba(192,162,74,.14);border:1px solid rgba(192,162,74,.4);
  display:flex;align-items:center;justify-content:center;margin-bottom:22px;}
.dom .ic svg{width:25px;height:25px;stroke:var(--gold-2);fill:none;stroke-width:1.5;}
.dom h3{color:#fff;font-size:23px;margin-bottom:10px;}
.dom p{margin:0;font-size:14.5px;color:#bcc5da;line-height:1.55;}
.dom .corner{position:absolute;right:-30px;bottom:-30px;width:120px;height:120px;border-radius:50%;border:1px solid rgba(192,162,74,.18);}
.dom .corner::after{content:"";position:absolute;inset:14px;border-radius:50%;border:1px solid rgba(192,162,74,.12);}

/* ---------- Final CTA ---------- */
.final{position:relative;overflow:hidden;text-align:center;}
.final-arcs{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:760px;height:760px;opacity:.4;pointer-events:none;}
.final h2{font-size:clamp(34px,4.4vw,56px);position:relative;z-index:2;color:#fff;}
.final p{position:relative;z-index:2;}
.final .hero-cta{justify-content:center;position:relative;z-index:2;}

/* Variante claire (offre, méthode, domaines) */
.final.final-light{background:var(--cream);}
.final.final-light .final-arcs{display:none;}
.final.final-light h2{color:var(--navy);}
.final.final-light .kicker{color:var(--gold-deep);}
.final.final-light .kicker::before{background:var(--gold);}
.final.final-light .lead{color:var(--muted) !important;}
.final.final-light .btn-ghost{border-color:var(--navy);color:var(--navy);}
.final.final-light .btn-ghost:hover{background:var(--navy);color:#fff;border-color:var(--navy);}

/* ---------- Footer ---------- */
.footer{background:var(--navy-deep);color:#aab4cc;padding:46px 0 26px;}
.foot-top{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:32px;padding-bottom:30px;border-bottom:1px solid #1a2747;}
.foot-logo{height:75px;margin-bottom:16px;}
.foot-top p{font-size:13.5px;line-height:1.55;color:#9aa6c2;max-width:300px;}
.foot-col h4{font-family:var(--sans);font-weight:700;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#fff;margin-bottom:13px;}
.foot-col a{display:block;font-size:13.5px;color:#9aa6c2;padding:4px 0;transition:color .2s;}
.foot-col a:hover{color:var(--gold-2);}
.foot-col .geo{display:block;font-size:12px;color:rgba(192,162,74,.65);letter-spacing:.05em;margin-top:2px;font-style:italic;}
.foot-col .geo:hover{color:var(--gold-2);}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:18px;font-size:12.5px;color:#6b7799;flex-wrap:wrap;gap:12px;}

/* ---------- Reveal ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);}
.reveal.in{opacity:1;transform:none;}
.reveal.d1{transition-delay:.08s;}.reveal.d2{transition-delay:.16s;}.reveal.d3{transition-delay:.24s;}.reveal.d4{transition-delay:.32s;}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;}}

/* ===== UPGRADES 21st.dev ===== */

/* 1 — Hero animated grid */
.hero-grid{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background-image:
    linear-gradient(rgba(35,56,107,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(35,56,107,.12) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(ellipse 52% 95% at 4% 50%,rgba(0,0,0,.65) 0%,transparent 75%);
  mask-image:radial-gradient(ellipse 52% 95% at 4% 50%,rgba(0,0,0,.65) 0%,transparent 75%);
  animation:grid-drift 32s linear infinite;
}
@keyframes grid-drift{to{background-position:58px 58px;}}

/* 2 — H1 word-by-word reveal */
.hero h1 .word{
  display:inline-block;
  opacity:0;transform:translateY(18px);
  transition:opacity .52s cubic-bezier(.2,.7,.2,1),transform .52s cubic-bezier(.2,.7,.2,1);
}
.hero h1.words-in .word{opacity:1;transform:none;}

/* 3 — Navbar gold shimmer when solid */
.hdr.solid{box-shadow:0 1px 0 rgba(192,162,74,.22),0 4px 28px rgba(0,0,0,.42);}

/* 4 — CTA card premium */
.cta-card{
  position:relative;z-index:2;
  max-width:820px;margin:0 auto;
  padding:clamp(46px,6vw,76px) clamp(28px,5vw,80px);
}
@keyframes gold-pulse{
  0%,100%{box-shadow:0 12px 26px -12px rgba(192,162,74,.7);}
  50%{box-shadow:0 12px 26px -12px rgba(192,162,74,.95),0 0 28px -4px rgba(192,162,74,.32);}
}
.cta-card .btn-gold{animation:gold-pulse 2.8s ease-in-out infinite;}
@media(prefers-reduced-motion:reduce){
  .hero-grid,.cta-card .btn-gold{animation:none;}
  .hero h1 .word{opacity:1;transform:none;}
}

/* ---------- Responsive ---------- */
@media(max-width:1140px){
  .hdr-logo{height:84px;}
  .hdr.solid .hdr-logo{height:68px;}
}
@media(max-width:960px){
  .cred-grid{grid-template-columns:repeat(2,1fr);}
  .stat-strip{grid-template-columns:repeat(2,1fr);}
  .tracker-grid{grid-template-columns:1fr;gap:30px;}
  .device-stage{min-height:520px;}
  .steps{grid-template-columns:repeat(2,1fr);gap:40px;}
  .method-line{display:none;}
  .dom-grid{grid-template-columns:repeat(2,1fr);}
  .dom,.dom:nth-child(4),.dom:nth-child(5){grid-column:auto;}
  .foot-top{grid-template-columns:1fr 1fr;gap:30px;}
}
@media(max-width:720px){
  .nav{
    display:flex;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;
    background:rgba(8,15,34,.97);backdrop-filter:blur(12px);
    padding:0 28px;gap:0;
    max-height:0;overflow:hidden;
    transition:max-height .35s cubic-bezier(.4,0,.2,1),padding .3s;
    pointer-events:none;
  }
  .nav.open{max-height:420px;padding:18px 28px;pointer-events:auto;}
  .nav a{padding:13px 0;border-bottom:1px solid rgba(255,255,255,.06);}
  .nav a:last-child{border-bottom:none;}
  .hdr-cta{display:none;}
  .burger{display:flex;}
  .hdr,.hdr.solid{padding:13px 0;}
  .hdr-logo,.hdr.solid .hdr-logo{height:70px;}
  .foot-logo{height:65px;}
  .hero{padding:120px 0 80px;}
  .cred-grid,.stat-strip,.steps,.dom-grid{grid-template-columns:1fr;}
  .pillar:not(:last-child)::after{display:none;}
  .phone{margin-left:0;margin-top:0;}
  .dash{position:relative;right:0;top:0;width:100%;margin-top:24px;}
  .device-stage{flex-direction:column;min-height:auto;}
  .foot-top{grid-template-columns:1fr;}
  /* Boutons : retour a la ligne sur mobile (evite debordement / texte coupe) */
  .btn{white-space:normal;text-align:center;max-width:100%;}
}

/* ===== Durcissement responsive mobile - page HVD Consulting (home) ===== */
@media(max-width:720px){
  body.home .wrap{padding-left:20px;padding-right:20px;}
  body.home .btn{width:100%;max-width:100%;justify-content:center;text-align:center;white-space:normal;}
  body.home .hero-cta{width:100%;}
  body.home .hero-cta .btn{flex:1 1 100%;}
  body.home .feats li,
  body.home .pillars{min-width:0;}
  body.home .feats li .tick{flex:none;}
  body.home .tracker{overflow:hidden;}
  body.home .tracker .device-stage{max-width:100%;overflow:hidden;}
  body.home .tracker .phone{max-width:100%;}
}
@media(max-width:430px){
  body.home .hero h1{font-size:34px;}
  body.home h2.section{font-size:28px;}
  body.home .tag-quote{font-size:24px;}
}
