/* Hero « Signature ». */
.hero-b{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;padding:130px 0 44px;overflow:hidden;background:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/72px 72px,linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/72px 72px}
.hero-b::before{content:"";position:absolute;inset:0;background:radial-gradient(520px circle at var(--mx,70%) var(--my,35%),rgba(200,255,58,.09),transparent 62%);pointer-events:none}
.hero-b::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,var(--bg));pointer-events:none}
.hero-b>.wrap{position:relative;z-index:2}
@media(max-width:480px){.hero-b .pill{display:none}}
.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:99px;padding:7px 14px;background:rgba(255,255,255,.04);backdrop-filter:blur(8px);color:var(--mut);margin-bottom:22px}
.pill i{width:7px;height:7px;border-radius:50%;background:var(--acc)}
.hero-b h1{font-size:clamp(36px,10.2vw,190px);line-height:.98;text-shadow:0 2px 40px rgba(0,0,0,.6)}
.hero-b .row{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-top:34px;flex-wrap:wrap}
.hero-b .row p{max-width:480px;color:#b9bcc2;font-size:clamp(16px,1.4vw,20px)}
.hero-b .btns{margin-top:0}

@media(max-width:600px){
  .hero-b h1{line-height:1}
  .hero-b .row{gap:18px;margin-top:26px}
  .hero-b .row p{font-size:15px;line-height:1.5;max-width:34ch}
}

/* ---------- Anneau de projets concepts (hero) ----------
   Quatre maquettes en cadre de navigateur, posees sur un anneau vu de face : celle de devant est a plat et lisible,
   les deux voisines pivotent sur les cotes (assombries, leger flou), la quatrieme attend derriere.
   Toutes les 2,8 s la suivante vient devant ; seule la video de devant joue.
   Mouvement : transform / opacity / filter avec --dur-signature (900 ms) et --ease-in-out ; jamais top/left.
   Contour lumineux de la maquette de devant : couleur de l'entreprise (--glow), reglable ici : --hglow-border, --hglow-size, --hglow-halo. */
.hreel{position:relative;margin-top:clamp(24px,3.6vw,40px);width:100%;--cw:70%;--off:44%;--glow:#FFC933;--px:0;--py:0;--hglow-border:45%;--hglow-size:60px;--hglow-halo:.22}
.hreel::before{content:"";position:absolute;inset:-12% -5%;background:radial-gradient(closest-side,var(--glow),transparent 70%);opacity:var(--hglow-halo);filter:blur(30px);pointer-events:none;transform:translate(calc(var(--px) * -22px),calc(var(--py) * -16px));transition:background var(--dur-signature) var(--ease-in-out),transform .9s var(--ease-out)}
.hring{position:relative;z-index:1;aspect-ratio:1.9;perspective:1700px;perspective-origin:50% 40%;touch-action:pan-y}
.hcards{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(calc(var(--px) * 5deg)) rotateX(calc(var(--py) * -3deg));transition:transform .9s var(--ease-out)}
.hcard{position:absolute;left:50%;top:50%;width:var(--cw);transform-style:preserve-3d;will-change:transform;transition:transform var(--dur-signature) var(--ease-in-out),opacity var(--dur-signature) var(--ease-in-out),filter var(--dur-signature) var(--ease-in-out)}
.hcard[data-pos="0"]{transform:translate(-50%,-50%);z-index:4}
.hcard[data-pos="1"]{transform:translate(-50%,-50%) translateX(var(--off)) translateZ(-170px) rotateY(-30deg) scale(.88);z-index:3;filter:brightness(.55) blur(.8px);cursor:pointer}
.hcard[data-pos="-1"]{transform:translate(-50%,-50%) translateX(calc(var(--off) * -1)) translateZ(-170px) rotateY(30deg) scale(.88);z-index:3;filter:brightness(.55) blur(.8px);cursor:pointer}
.hcard[data-pos="2"]{transform:translate(-50%,-50%) translateZ(-340px) scale(.74);z-index:1;opacity:0;filter:blur(2px);pointer-events:none}
.hcard .hf{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--card);box-shadow:0 30px 70px -26px rgba(0,0,0,.9);transition:border-color var(--dur-signature) var(--ease-in-out),box-shadow var(--dur-signature) var(--ease-in-out)}
.hcard[data-pos="0"] .hf{border-color:color-mix(in srgb,var(--glow) var(--hglow-border),transparent);box-shadow:0 40px 90px -30px rgba(0,0,0,.85),0 0 var(--hglow-size) -20px var(--glow)}
.hcard video{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:50% 0;background:var(--bg2)}
.hcard .tb{position:relative;height:34px;background:#2a2d35;display:flex;align-items:center;gap:8px;padding:0 14px;font-family:var(--f-m);font-size:12px;color:var(--mut)}
.hcard .tb i{flex:none;width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.25)}
.hcard .tb i:nth-child(2){background:#febc2e}
.hcard .tb i:nth-child(3){background:#28c840}
.hcard .tb span:not(.n){position:absolute;left:50%;transform:translateX(-50%);max-width:52%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.hcard .tb .n{margin-left:auto;letter-spacing:.08em}

/* Commandes : symboles des entreprises (tout petits, en verre, gris au repos, couleur quand ils sont choisis) + pause.
   Chaque commande fait 28 px ; la zone de clic fait 44 px. */
.hreel-foot{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px}
.hlogos{display:flex;gap:14px}
.lg,.pb{position:relative;flex:none;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.06);color:var(--fg);cursor:pointer;opacity:.7;transition:opacity var(--dur-hover) var(--ease-out),border-color var(--dur-signature) var(--ease-in-out),background var(--dur-hover) var(--ease-out),transform var(--dur-tap) var(--ease-out)}
.lg::before,.pb::before{content:"";position:absolute;inset:-5px}
.lg:hover,.pb:hover{opacity:1;background:rgba(255,255,255,.1)}
.lg:active,.pb:active{transform:scale(.94)}
.lg img{width:19px;height:19px;border-radius:4px;filter:grayscale(1);opacity:.65;transition:filter var(--dur-signature) var(--ease-in-out),opacity var(--dur-hover) var(--ease-out)}
.lg[data-inv] img{filter:grayscale(1) invert(1);mix-blend-mode:screen}
.lg[aria-current=true]{opacity:1;border-color:color-mix(in srgb,var(--c) 60%,transparent);background:rgba(255,255,255,.09)}
.lg[aria-current=true] img{filter:none;opacity:1}
.lg[aria-current=true][data-inv] img{filter:invert(1)}
.pb svg{width:14px;height:14px;fill:currentColor}
.pb .ic-play{display:none}
.pb[aria-pressed=true] .ic-pause{display:none}
.pb[aria-pressed=true] .ic-play{display:block}

/* Le bloc du hero est centre verticalement, pas colle en bas. */
.hero-b{justify-content:center;padding:clamp(104px,13vh,150px) 0 clamp(44px,7vh,72px)}

/* Mobile : le bloc est centre dans l'espace libre, entre l'en-tete fixe
   et la barre d'action collante (.mbar, 88px). */
@media(max-width:980px){
  .hero-b{justify-content:center;padding:96px 0 calc(100px + env(safe-area-inset-bottom,0px))}
  .hreel{margin-top:clamp(26px,6vw,38px)}
}

/* Grand ecran : le titre a gauche, le cadre a droite, le tout sur un seul ecran. */
@media(min-width:1000px){
  /* le groupe texte (pastille, titre, phrase, bouton) est serré et centré sur la hauteur des maquettes */
  .hero-b>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,clamp(440px,48vw,660px));grid-template-rows:minmax(0,.45fr) auto auto auto auto minmax(0,1fr);column-gap:clamp(32px,4vw,64px);row-gap:0;align-items:start}
  .hero-b .pill{grid-column:1;grid-row:2;justify-self:start;margin-bottom:28px;white-space:nowrap}
  .hero-b .hero-head{grid-column:1;grid-row:3;margin-top:0;margin-bottom:28px}
  .hero-b h1{font-size:clamp(54px,6vw,92px);align-self:start;margin-top:0}
  .hero-b .btns{grid-column:1;grid-row:4;align-self:start}
  .hreel{margin-top:0;grid-row:1/7;grid-column:2;align-self:center}
}

/* Telephone : le hero n'est plus coince dans un seul ecran. Le contenu s'ecoule avec de vrais espaces
   (titre, ligne d'explication, anneau, commandes, bouton). Anneau plus large et voisines plus serrees. */
@media(max-width:560px){.hreel{--cw:84%;--off:56%}.hring{aspect-ratio:1.38}}
@media(max-width:600px){
  .hero-b{min-height:0;justify-content:flex-start;padding:112px 0 calc(120px + env(safe-area-inset-bottom,0px))}
  .hero-b>.wrap{flex:none;display:flex;flex-direction:column;justify-content:flex-start}
  .hero-sub{margin-top:22px}
  .hero-b .hreel{margin-top:36px}
  .hreel-foot{justify-content:center;margin-top:20px}
  .hero-b .btns{margin-top:44px}
}

@media(prefers-reduced-motion:reduce){
  .hcard,.hcard .hf,.hcards,.hreel::before,.lg,.pb,.lg img{transition:none}
}


/* Ligne d'explication sous le titre : dit tout de suite ce que fait le studio. */
.hero-sub{margin-top:14px;color:#c9ccd2;font-size:clamp(16px,4.4vw,19px);line-height:1.45}
@media(min-width:1000px){
  .hero-head{grid-column:1;align-self:start;margin-top:14px}
  .hero-head h1{margin-top:0}
}

/* Un seul bouton « Soumission gratuite » par ecran : sur l'accueil, celui de l'en-tete laisse la place a celui du hero. */
.head-cta .btn{display:none}
/* Telephone : la barre du cadre est etroite, le numero est retire pour ne pas couper le nom */
@media(max-width:560px){.hcard .tb .n{display:none}}

/* Ordinateur : messages fixes qui disent tout de suite ce que le visiteur obtient (textes deja presents sur l'accueil). Aucune animation. */
.hero-facts,.hreel-cap{display:none}
@media(min-width:1000px){
  .hero-facts{display:grid;grid-template-columns:auto auto;justify-content:start;gap:12px 28px;grid-column:1;grid-row:5;align-self:start;margin:34px 0 0;padding:0;list-style:none;color:#c9ccd2;font-size:15px;white-space:nowrap}
  @media(max-width:1249px){.hero-facts{grid-template-columns:auto}}
  .hero-facts li{display:flex;align-items:center;gap:10px}
  .hero-facts li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--acc)}
  .hreel-cap{display:block;margin:14px 0 0;text-align:center;color:var(--mut);font-family:var(--f-m);font-size:12px;letter-spacing:.04em}
}

/* Ordinateur : le contenu est pose a distance fixe sous l'en-tete (plus de grand vide noir) ; le hero fait le strict necessaire : la section suivante apparait juste en dessous. */
@media(min-width:1000px){.hero-b{min-height:76svh;justify-content:flex-start;padding:clamp(118px,14vh,160px) 0 clamp(40px,6vh,64px)}}

@media(max-width:480px){.hcard .tb{font-size:12px}}

/* mobile : les 4 logos restent centrés sur la page, la pause se place à droite */
@media(max-width:760px){.hreel-foot{padding-inline:0}.hreel-foot .pb{position:absolute;right:0;top:50
/* mobile : les 4 logos restent centrés sur la page, la pause se place à droite */
@media(max-width:760px){.hreel-foot .pb{position:absolute;right:0;top:50%;margin-top:-17px}}

.hreel-cap a{color:var(--acc);text-decoration:underline;text-underline-offset:3px}
