/* Hero v2 agenceindexx.com — 10/11/2026. Maquette Alex v2 validée par Josué.
   Strictement scopé : toutes les classes sont préfixées .hx-, toutes les variables --hx-.
   Ne touche à aucune règle du reste du site (sombre). Police Inter auto-hébergée. */

@font-face{
  font-family:"Inter";
  src:url("inter-var-latin.woff2") format("woff2");
  font-weight:300 700;
  font-style:normal;
  font-display:swap;
}

.hx{
  --hx-font:"Inter",Arial,sans-serif;
  --hx-bg:#f7f7f5;
  --hx-ink:#0b0b0f;
  --hx-ink-2:#51515a;
  --hx-lede:#3a3a43;
  --hx-on-ink:#ffffff;
  --hx-line:#e7e7e2;
  --hx-line-2:#d6d6cf;
  --hx-frame:#e4e4de;
  --hx-fill:#f2f2ef;
  --hx-btn-hover:#23232b;
  --hx-btn-hover-alt:#fbfbfa;
  --hx-focus:#243027;
  --hx-aura-1:#9d8ff0;
  --hx-aura-2:#ff9ac6;
  --hx-aura-3:#ffc58f;
  --hx-aura-4:#9fd2ff;
  /* Dégradé « leader » : choix de Josué (10/11), teintes Softriver ; #FF5324 = 3,01:1 sur #f7f7f5. */
  --hx-grad-leader:linear-gradient(100deg,#4B3FE3 0%,#8D4EE6 16%,#DC3C98 33%,#FF5324 50%,#DC3C98 67%,#8D4EE6 84%,#4B3FE3 100%);
  --hx-page:1320px;
  --hx-gut:16px;
  --hx-nav-h:68px;
  --hx-pill:999px;
  --hx-btn-shadow:rgba(11,11,15,.55) 0 10px 30px -12px;
  --hx-btn-shadow-hover:rgba(11,11,15,.6) 0 14px 34px -12px;
  --hx-spring:cubic-bezier(.16,1,.3,1);
  --hx-target:44px;
  --hx-grain:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='n' filterUnits='userSpaceOnUse' x='0' y='0' width='480' height='480' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='1' seed='7' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='2.6' intercept='-.8'/><feFuncG type='linear' slope='2.6' intercept='-.8'/><feFuncB type='linear' slope='2.6' intercept='-.8'/><feFuncA type='linear' slope='0' intercept='.27'/></feComponentTransfer></filter><rect width='480' height='480' filter='url(%23n)'/></svg>");
  font-family:var(--hx-font);
  font-size:16px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:-0.011em;
  color:var(--hx-ink);
  -webkit-font-smoothing:antialiased;
  font-optical-sizing:auto;
}
.hx :where(p){margin:0}
.hx :where(a){color:inherit}
.hx :where(button){font:inherit}
.hx :focus-visible{
  outline:3px solid var(--hx-focus);
  outline-offset:3px;
  border-radius:2px;
}
.hx .hx-btn:focus-visible,.hx .hx-reel-toggle:focus-visible{border-radius:var(--hx-pill)}

/* ---------- Nav ---------- */
.hx-nav{
  position:sticky;
  top:0;
  z-index:40;
  height:var(--hx-nav-h);
  background:var(--hx-bg);
  transition:background-color .2s,box-shadow .2s;
}
.hx-nav.hx-scrolled{
  background:rgba(247,247,245,.86);
  -webkit-backdrop-filter:saturate(1.8) blur(18px);
  backdrop-filter:saturate(1.8) blur(18px);
  box-shadow:0 1px 0 var(--hx-frame);
}
.hx-nav__in{
  display:flex;
  align-items:center;
  gap:18px;
  max-width:var(--hx-page);
  height:var(--hx-nav-h);
  margin:0 auto;
  padding:0 var(--hx-gut);
}
.hx-logo{
  font-family:var(--hx-font);
  font-weight:700;
  font-size:22px;
  line-height:1;
  letter-spacing:-0.04em;
  text-decoration:none;
  color:var(--hx-ink);
  min-height:var(--hx-target);
  display:inline-flex;
  align-items:center;
  flex:none;
}
.hx-links{display:none;align-items:center}
.hx-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--hx-target);
  padding:11px 13px;
  border-radius:var(--hx-pill);
  font-size:14.5px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:-0.012em;
  color:var(--hx-ink-2);
  text-decoration:none;
}
.hx-links a:hover{background:rgba(11,11,15,.05);color:var(--hx-ink)}
.hx-acts{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}

/* ---------- Boutons ---------- */
.hx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:52px;
  padding:12px 24px;
  border-radius:var(--hx-pill);
  border:0;
  font-family:var(--hx-font);
  font-weight:500;
  font-size:16px;
  line-height:1.2;
  letter-spacing:-0.014em;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  background:#fff;
  color:var(--hx-ink);
  box-shadow:0 0 0 1px var(--hx-line);
  transition:background-color .2s,box-shadow .2s,transform .2s var(--hx-spring);
}
.hx-btn--primary{background:var(--hx-ink);color:var(--hx-on-ink);box-shadow:var(--hx-btn-shadow)}
.hx-btn--primary:hover{background:var(--hx-btn-hover);box-shadow:var(--hx-btn-shadow-hover)}
.hx-btn--ghost{background:#fff;color:var(--hx-ink);box-shadow:0 0 0 1px var(--hx-line-2),0 1px 2px rgba(11,11,15,.04)}
.hx-btn--ghost:hover{background:var(--hx-btn-hover-alt)}
.hx-btn--xl{
  width:100%;
  min-height:54px;
  height:54px;
  padding:9px 9px 9px 22px;
  font-size:16px;
  justify-content:space-between;
}
.hx-btn--sm{min-height:var(--hx-target);height:var(--hx-target);padding:8px 16px;font-size:14.5px}
.hx-btn:active{transform:scale(.975)}
.hx-arr{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  flex:none;
  background:rgba(255,255,255,.14);
  transition:transform .2s var(--hx-spring);
}
.hx-arr svg{display:block}
.hx-btn--primary:hover .hx-arr{transform:translateX(3px)}

/* ---------- Hero ---------- */
.hx-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--hx-bg);
  padding:30px 0 64px;
  min-height:calc(100dvh - var(--hx-nav-h));
}
.hx-hero__in{
  position:relative;
  z-index:1;
  max-width:var(--hx-page);
  margin:0 auto;
  padding:0 var(--hx-gut);
  text-align:center;
}
.hx-aura{
  position:absolute;
  pointer-events:none;
  z-index:0;
  left:-45%;
  right:-45%;
  top:42%;
  height:640px;
  opacity:.55;
  filter:blur(70px);
}
.hx-aura i{position:absolute;border-radius:50%;mix-blend-mode:multiply;display:block}
.hx-aura i:nth-child(1){width:420px;height:360px;top:8%;left:55%;background:radial-gradient(closest-side,var(--hx-aura-1),transparent)}
.hx-aura i:nth-child(2){width:380px;height:320px;top:28%;left:25%;background:radial-gradient(closest-side,var(--hx-aura-2),transparent)}
.hx-aura i:nth-child(3){width:360px;height:300px;top:36%;left:70%;background:radial-gradient(closest-side,var(--hx-aura-3),transparent)}
.hx-aura i:nth-child(4){width:340px;height:280px;top:-10%;left:5%;background:radial-gradient(closest-side,var(--hx-aura-4),transparent)}
.hx-grain{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.07;
  mix-blend-mode:overlay;
  background-image:var(--hx-grain);
  background-size:160px auto;
  -webkit-mask-image:linear-gradient(#000 30%,transparent 85%);
  mask-image:linear-gradient(#000 30%,transparent 85%);
}
.hx-hero h1.hx-h1{
  margin:0 auto;
  font-family:var(--hx-font);
  font-size:44px;
  font-weight:400;
  line-height:.98;
  letter-spacing:-0.05em;
  text-wrap:balance;
  color:var(--hx-ink);
  max-width:660px;
}
.hx-grad{
  font-style:normal;
  white-space:nowrap;
  background-image:var(--hx-grad-leader);
  background-size:200% 100%;
  background-position:0% 0;
  -webkit-background-clip:text;
  background-clip:text;
  color:#4B3FE3;
  -webkit-text-fill-color:transparent;
  animation:hx-grad 9s ease-in-out infinite alternate;
}
@keyframes hx-grad{to{background-position:100% 0}}
.hx-row{display:grid;gap:20px;margin-top:20px}
.hx-lede{
  font-size:17px;
  line-height:1.45;
  letter-spacing:-0.016em;
  color:var(--hx-lede);
  max-width:34em;
  margin-inline:auto;
}
.hx-act{display:block}
.hx-btns{display:flex;justify-content:center;gap:10px}
.hx-btn--hero-ghost{display:none}
.hx-assure{
  list-style:none;
  margin:22px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 18px;
  font-size:14px;
  line-height:1.55;
  letter-spacing:-0.011em;
  color:var(--hx-lede);
}
.hx-assure li{display:flex;align-items:center;gap:7px}
.hx-assure svg{flex:none}

/* ---------- Bandeau (visuels provisoires) ---------- */
.hx-stage{
  position:relative;
  margin-top:36px;
  padding:14px 0;
  border-radius:24px;
  background-image:linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.28));
  box-shadow:0 0 0 1px var(--hx-line),0 40px 80px -50px rgba(60,40,140,.35);
  overflow:hidden;
}
.hx-reel{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 12px),transparent);
  mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 12px),transparent);
}
.hx-track{display:flex;width:max-content;animation:hx-reel 70s linear infinite}
.hx-set{display:flex;gap:14px;padding-right:14px}
@keyframes hx-reel{to{transform:translateX(-50%)}}
.hx-stage.hx-paused .hx-track,
.hx-stage:hover .hx-track,
.hx-stage:focus-within .hx-track{animation-play-state:paused}
.hx-card{
  position:relative;
  flex:none;
  width:165px;
  height:220px;
  margin:0;
  border-radius:18px;
  overflow:hidden;
  background:var(--hx-fill);
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.05);
}
/* Placeholder neutre : dégradé doux + grain, sans contenu client. */
.hx-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hx-grain);
  background-size:140px auto;
  mix-blend-mode:overlay;
  opacity:.22;
}
.hx-card::after{
  content:"";
  position:absolute;
  left:14px;right:14px;top:14px;
  height:38%;
  border-radius:10px;
  background:rgba(255,255,255,.34);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
}
.hx-card--a{background:linear-gradient(155deg,#e9e6fb 0%,#cfc8f6 55%,#b9b0f0 100%)}
.hx-card--b{background:linear-gradient(155deg,#fde8f1 0%,#f7c9dc 55%,#efadc8 100%)}
.hx-card--c{background:linear-gradient(155deg,#fff0e2 0%,#ffd8b8 55%,#ffc39a 100%)}
.hx-card--d{background:linear-gradient(155deg,#e6f2fd 0%,#c7e1f8 55%,#aed2f2 100%)}
.hx-card--e{background:linear-gradient(155deg,#efeee9 0%,#dedcd3 55%,#cfccc1 100%)}
.hx-card--f{background:linear-gradient(155deg,#ece8fb 0%,#f3cfe3 55%,#ffd2b5 100%)}

/* Deux cartes photo (Northline puis Verba). Captures plein cadre
   900×1200 (3:4), le même ratio que le cadre : background-size
   cover remplit les bords et n’écrête rien. Grain et voile désactivés. */
.hx-card--photo{
  background-color:var(--hx-fill);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
.hx-card--northline{background-image:url("../realisations-v2/img/northline-hero-34-900x1200-20261113.webp")}
.hx-card--verba{background-image:url("../realisations-v2/img/verba-hero-34-900x1200-20261113.webp")}
.hx-card--speakmove{background-image:url("../realisations-v2/img/speakmove-hero-34-900x1200-20261124.webp")}
.hx-card--koffi{background-image:url("../realisations-v2/img/koffi-hero-34-900x1200-20261124.webp")}
.hx-card--forma{background-image:url("../realisations-v2/img/forma-hero-34-900x1200-20261124.webp")}
.hx-card--habitat{background-image:url("../realisations-v2/img/habitat-hero-34-900x1200-20261124.webp")}
.hx-card--cocotrans{background-image:url("../realisations-v2/img/cocotrans-hero-34-900x1200-20261124.webp")}

.hx-card--photo::before,
.hx-card--photo::after{content:none;display:none}
.hx-card__meta{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 24px);
}
.hx-card__tag{
  padding:4px 10px;
  border-radius:var(--hx-pill);
  background:rgba(255,255,255,.72);
  color:var(--hx-ink-2);
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:-0.005em;
}
.hx-card__badge{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border:1px solid rgba(11,11,15,.14);
  border-radius:999px;
  background:#fff;
  color:var(--hx-ink);
  font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:0.04em;
  text-transform:uppercase;
  white-space:nowrap;
}
.hx-reel-toggle{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  min-width:var(--hx-target);
  min-height:var(--hx-target);
  padding:0 14px;
  border:0;
  border-radius:var(--hx-pill);
  background:rgba(255,255,255,.92);
  color:var(--hx-ink);
  font-family:var(--hx-font);
  font-size:14px;
  font-weight:500;
  letter-spacing:-0.011em;
  box-shadow:0 0 0 1px var(--hx-line),0 8px 20px -12px rgba(11,11,15,.4);
  cursor:pointer;
}

/* ---------- Desktop ≥700 ---------- */
@media (min-width:700px){
  .hx-hero{padding:64px 0 96px}
  .hx-hero__in{text-align:start}
  .hx-aura{top:-93px;left:-144px;right:-144px;height:760px;opacity:.68}
  .hx-aura i:nth-child(1){width:520px;height:420px;top:15px;left:1104px}
  .hx-aura i:nth-child(2){width:460px;height:380px;top:182px;left:819px}
  .hx-aura i:nth-child(3){width:420px;height:360px;top:258px;left:1377px}
  .hx-aura i:nth-child(4){width:380px;height:320px;top:-46px;left:69px}
  .hx-hero h1.hx-h1{
    font-size:clamp(44px,11px + 4.5vw,84px);
    text-align:start;
    max-width:1137px;
    margin-inline:0;
  }
  .hx-row{grid-template-columns:1fr auto;gap:56px;align-items:end;margin-top:34px}
  .hx-lede{font-size:clamp(17px,15px + .45vw,20px);text-align:start;max-width:680px;margin-inline:0}
  .hx-act{display:flex;flex-direction:column;align-items:flex-end}
  .hx-btns{justify-content:flex-end}
  .hx-btn--hero-ghost{display:inline-flex;width:auto}
  .hx-btn--xl{width:auto;min-height:60px;height:60px;padding:12px 12px 12px 28px;font-size:17px}
  .hx-btn--hero-ghost.hx-btn--xl{padding:12px 28px}
  .hx-assure{justify-content:flex-end}
  .hx-stage{margin-top:48px;padding:22px 0;border-radius:32px}
  .hx-card{width:225px;height:300px;border-radius:20px}
  .hx-reel-toggle{top:16px;right:16px}
}
@media (min-width:980px){.hx-links{display:flex}}

/* ---------- Barre mobile (<900) ---------- */
.hx-dock{display:none}
@media (max-width:899px){
  .hx-dock{
    display:flex;
    align-items:center;
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    z-index:50;
    min-height:60px;
    padding:8px;
    border-radius:var(--hx-pill);
    background:rgba(255,255,255,.88);
    -webkit-backdrop-filter:blur(18px) saturate(1.6);
    backdrop-filter:blur(18px) saturate(1.6);
    box-shadow:0 0 0 1px var(--hx-line),0 18px 40px -16px rgba(11,11,15,.4);
    transform:translateY(calc(150% + 10px));
    visibility:hidden;
    pointer-events:none;
    transition:transform .18s var(--hx-spring),visibility .18s;
  }
  .hx-dock.hx-on{transform:none;visibility:visible;pointer-events:auto}
  .hx-dock .hx-btn{
    flex:1;
    width:100%;
    min-height:var(--hx-target);
    height:44px;
    padding:4px 8px 4px 20px;
    justify-content:space-between;
    font-size:15px;
  }
  /* Espace sous le copyright / e-mail pour que le dock (fixe, ~70px + safe-area) ne les recouvre pas. */
  body.hx-dock-on #footer .ft-inner{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
}

@media (prefers-reduced-motion:reduce){
  .hx-btn,.hx-arr,.hx-dock,.hx-nav{transition:none}
  .hx-btn:active{transform:none}
  .hx-btn--primary:hover .hx-arr{transform:none}
  .hx-grad{animation:none;background-position:0 0}
  .hx-track{animation:none;transform:none}
  .hx-reel{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .hx-set[aria-hidden="true"]{display:none}
  .hx-reel-toggle{display:none}
}
