/* ============================================================
   home.css — page d'accueil
   ============================================================ */

/* ---------- héros ----------
   Un pavé vert posé sur le papier. La planche anatomique y gagne le
   fond sombre dont elle a besoin : les organes actifs s'allument au
   lieu de se fondre dans le crème. */
.hero { padding: clamp(18px, 2.4vw, 30px) 0 0 }
.hero-grid-bg { display: none }

.hero-in {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(152deg, var(--teal-deep) 0%, var(--teal-2) 62%, #14503B 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.08fr .92fr;
  grid-template-rows: auto auto;
  gap: clamp(26px, 4vw, 60px); align-items: center;
  padding: clamp(40px, 5.2vw, 76px) clamp(28px, 4.4vw, 68px);
}
/* le texte occupe toute la hauteur, la planche et sa légende s'empilent */
.hero-in > div:first-of-type { grid-column: 1; grid-row: 1 / span 2 }
.hero-plate { grid-column: 2; grid-row: 1 }
/* une seule lueur, décentrée, pour que le pavé ne soit pas plat */
.hero-in::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 24%, transparent), transparent 66%);
}
.hero-in > * { position: relative }

.hero h1 { margin: 20px 0 18px; color: #fff }
.hero h1 em { font-style: normal; color: var(--glow) }
.hero .lede { max-width: 46ch; color: rgba(255,255,255,.82) }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px);
  margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16);
}
.stat b {
  display: block; font-family: var(--font-display); font-weight: var(--w-display);
  font-size: clamp(26px, 2.8vw, 34px); letter-spacing: var(--track); line-height: 1;
  color: #fff;
}
.stat span { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px }

/* ---------- planche du héros ---------- */
.hero-plate { position: relative; display: grid; place-items: center; min-height: 430px }
.hero-plate .anatomy { width: 100%; max-width: 320px; max-height: 60vh }
/* La légende suit la planche dans sa colonne, au lieu de flotter
   au-dessus des chiffres de la colonne de gauche. */
.plate-caption {
  grid-column: 2; grid-row: 2; justify-self: center;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 13px 18px; max-width: 320px; color: #fff; margin-top: -8px;
}
.plate-caption b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px }
.plate-caption span { font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.5 }
.plate-loading { font-size: 12px; color: rgba(255,255,255,.6) }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr }
  .plate-caption { grid-column: 1; grid-row: auto; justify-self: stretch;
                   max-width: none; margin-top: 14px }
}

/* ---------- axes ---------- */
.axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.axe-card {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 24px; box-shadow: var(--shadow);
  transition: border-color .35s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.axe-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--tint, var(--accent));
}
.axe-card:nth-child(1) { --tint: var(--axe-1) }
.axe-card:nth-child(2) { --tint: var(--axe-2) }
.axe-card:nth-child(3) { --tint: var(--axe-3) }
.axe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift) }
.axe-vis {
  margin: -4px 0 6px; height: 148px; display: grid; place-items: center;
  border-radius: var(--radius-sm); overflow: hidden;
  background: radial-gradient(ellipse 70% 70% at 50% 60%, var(--surface), transparent 78%);
}
.axe-vis img { height: 132px; width: auto; object-fit: contain;
               transition: transform .45s cubic-bezier(.2,.8,.2,1) }
.axe-card:hover .axe-vis img { transform: scale(1.06) }
.axe-card .n {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: 40px; color: var(--tint, var(--accent)); line-height: 1;
  letter-spacing: var(--track);
}
.axe-card h3 { margin: 12px 0 10px }
.axe-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.62 }
.axe-card ul { list-style: none; margin-top: 16px; padding-top: 15px;
               border-top: 1px solid var(--line); display: grid; gap: 5px }
.axe-card li { font-size: 12px; color: var(--text-dim) }

/* ---------- procédé ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 }
.step { padding: 26px 24px 26px 0; border-top: 2px solid var(--line) }
.step:not(:last-child) { padding-right: 34px }
.step.is-key { border-top-color: var(--accent) }
.step { border-top-width: 3px }
.step:nth-child(1) { border-top-color: var(--teal-deep) }
.step:nth-child(2) { border-top-color: var(--teal) }
.step:nth-child(3) { border-top-color: var(--amber) }
.step:nth-child(4) { border-top-color: var(--plum) }
.step .mono { color: var(--text-dim); display: block; margin-bottom: 13px }
.step h3 { font-size: 17px; margin-bottom: 9px }
.step p { font-size: 13.5px; color: var(--text-soft); line-height: 1.62 }

/* ---------- implantation ---------- */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px);
         align-items: center }
.spec-list { list-style: none; display: grid; gap: 0; margin-top: 8px }
.spec-list li { display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line);
                font-size: 14px; align-items: baseline }
.spec-list b { flex: none; width: 130px; font-size: 11.5px; font-weight: 600;
               color: var(--text-dim) }
.spec-list span { color: var(--text-soft) }

.free-of { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px }
.free-of li { list-style: none; font-size: 13px; font-weight: 600;
              background: var(--teal-soft); border-radius: var(--pill);
              padding: 9px 18px; color: var(--teal-deep) }

/* ---------- appel final ----------
   Un pavé sauge qui ferme la page, comme le bandeau de la référence. */
.cta-band { padding: 0 0 clamp(40px, 5vw, 72px) }
.cta-band .wrap {
  background: var(--teal); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 5.4vw, 76px) clamp(26px, 4vw, 56px); text-align: center;
}
.cta-band h2 { margin-bottom: 14px; color: #fff }
.cta-band p { margin-inline: auto; margin-bottom: 28px; color: rgba(255,255,255,.86) }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep) }
.cta-band .btn-primary:hover { background: var(--teal-soft) }

@media (max-width: 980px) {
  .hero-in, .where { grid-template-columns: 1fr }
  .hero-plate { order: -1; min-height: 320px }
  .hero-plate .anatomy { max-width: 250px }
  .plate-caption { position: static; margin-top: 18px; max-width: none }
  .axes { grid-template-columns: 1fr }
  .steps { grid-template-columns: 1fr 1fr }
  .step { padding-right: 24px }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr } }

/* ---------- vidéos, lues dans la page ---------- */
.vq-videos-wrap { padding: clamp(48px, 6vw, 88px) 0 clamp(20px, 3vw, 40px) }
.vq-videos {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 19vw, 248px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(24px, calc((100vw - 1200px) / 2)) 22px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.vt { scroll-snap-align: start; display: grid; gap: 12px; align-content: start }
/* le rythme de la référence : une tuile sur deux descend d'un cran */
.vt:nth-child(even) { margin-top: 30px }
.vt-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); background: var(--teal-ink);
  box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.vt-frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift) }
.vt-frame video { width: 100%; height: 100%; object-fit: cover; display: block }
.vt-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px;
  translate: -50% -50%; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(4,67,75,.3);
  transition: opacity .25s, scale .25s;
}
.vt-play::after {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--teal-deep);
}
.vt.is-playing .vt-play { opacity: 0; scale: .7 }
.vt-bar { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255,255,255,.25); opacity: 0 }
.vt.is-playing .vt-bar { opacity: 1 }
.vt-bar i { display: block; height: 100%; width: 0; background: var(--glow) }
.vt-prod {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; min-height: 62px; transition: border-color .25s;
}
.vt-prod:hover { border-color: var(--teal) }
.vt-prod img { width: 38px; height: 42px; object-fit: contain; flex: none }
.vt-prod b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25 }
.vt-prod i { font-style: normal; font-size: 12px; color: var(--text-soft) }
@media (max-width: 700px) { .vt:nth-child(even) { margin-top: 0 } }

/* ============================================================
   Héros pleine largeur : les produits occupent l'image
   Trois étuis, chacun dans un anneau lumineux ouvert. La teinte
   des anneaux est le turquoise réservé jusque-là à la planche.
   ============================================================ */
.jhero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(520px, 62vw, 700px);
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background:
    repeating-linear-gradient(118deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse 60% 80% at 28% 50%, #0B7C87 0%, transparent 70%),
    linear-gradient(100deg, #065C66 0%, #04434B 55%, #02262B 100%);
  color: #fff;
}
.jh-stage { position: relative; height: 100%; min-height: inherit }
.jh-box {
  --cx: 0; --cy: 0;
  position: absolute; display: grid; place-items: center;
  width: var(--s); aspect-ratio: 1; perspective: 900px; text-decoration: none;
}
.jh-b1 { --s: clamp(250px, 31vw, 400px); left: 0;   top: 12%; --tilt: -11deg; --d: 0s }
.jh-b2 { --s: clamp(210px, 26vw, 330px); left: 44%; top: 38%; --tilt: 9deg;   --d: -2.2s }
.jh-b3 { --s: clamp(160px, 20vw, 250px); left: 66%; top: 3%;  --tilt: 14deg;  --d: -4.1s }
.jh-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid var(--glow);
  box-shadow: 0 0 22px var(--glow), inset 0 0 22px color-mix(in srgb, var(--glow) 70%, transparent);
  /* anneau ouvert : deux arcs, comme un néon interrompu */
  -webkit-mask: conic-gradient(from var(--a, 20deg), #000 0 34%, transparent 34% 46%, #000 46% 84%, transparent 84%);
          mask: conic-gradient(from var(--a, 20deg), #000 0 34%, transparent 34% 46%, #000 46% 84%, transparent 84%);
  animation: ringTurn 26s linear infinite; animation-delay: var(--d);
}
.jh-b2 .jh-ring { --a: 150deg; animation-direction: reverse }
.jh-b3 .jh-ring { --a: 260deg }
@keyframes ringTurn { to { transform: rotate(360deg) } }
.jh-box img {
  position: relative; max-width: 62%; max-height: 82%; width: auto; height: auto;
  transform: rotate(var(--tilt)) rotateY(calc(var(--cx) * 26deg)) rotateX(calc(var(--cy) * -20deg));
  filter: drop-shadow(0 26px 30px rgba(0,0,0,.45));
  transition: transform .8s cubic-bezier(.16,.84,.26,1);
  animation: boxBob 7s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes boxBob { 0%,100% { translate: 0 0 } 50% { translate: 0 -12px } }
.jh-box:hover img {
  transition-duration: .12s; animation-play-state: paused;
  transform: rotate(calc(var(--tilt) * .4)) rotateY(calc(var(--cx) * 26deg))
             rotateX(calc(var(--cy) * -20deg)) scale(1.1) translateZ(40px);
}
.jh-copy { position: relative; z-index: 2; text-align: end; padding: 40px 0 }
.jh-copy h1 { color: #fff; margin: 18px 0 16px; font-size: clamp(30px, 3.5vw, 46px) }
.jh-copy .lede { color: rgba(255,255,255,.82); margin-inline-start: auto; max-width: 36ch; margin-bottom: 26px }
@media (max-width: 900px) {
  .jhero { grid-template-columns: 1fr; padding-bottom: 20px }
  .jh-stage { min-height: 360px; order: 2 }
  .jh-copy { text-align: start; padding-top: 44px }
  .jh-copy .lede { margin-inline-start: 0 }
  .jh-b1 { --s: 220px; left: -4% ; top: 6% } .jh-b2 { --s: 180px; left: 46%; top: 44% } .jh-b3 { --s: 140px; left: 58%; top: 0 }
}

/* ---------- tuiles par besoin ---------- */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px }
.nt { text-decoration: none; display: grid; gap: 12px; --cx: 0; --cy: 0 }
.nt-pic {
  aspect-ratio: 1 / .86; border-radius: var(--radius); display: grid; place-items: center;
  overflow: hidden; perspective: 800px; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nt-0 .nt-pic { background: linear-gradient(150deg, #0AA3AF, #065C66) }
.nt-1 .nt-pic { background: linear-gradient(150deg, #E9E3D3, #D6CDB7) }
.nt-2 .nt-pic { background: linear-gradient(150deg, #2E3A8C, #1B2260) }
.nt-pic img { max-height: 74%; max-width: 56%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.32));
              transition: transform .6s cubic-bezier(.16,.84,.26,1) }
.nt:hover .nt-pic { transform: translateY(-5px) }
.nt:hover .nt-pic img { transform: rotateY(calc(var(--cx) * 24deg)) rotateX(calc(var(--cy) * -16deg)) scale(1.1) }
.nt-lbl { text-align: center; font-weight: 600; font-size: 15.5px; color: var(--text) }
@media (max-width: 760px) { .needs { grid-template-columns: repeat(2, 1fr) } }

/* ---------- planche, dans son pavé sombre ---------- */
.plate-block {
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background: linear-gradient(152deg, var(--teal-deep), var(--teal-ink));
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  padding: clamp(30px, 4.4vw, 60px);
}
.plate-block h2 { color: #fff } .plate-block .lede { color: rgba(255,255,255,.8); margin-top: 12px }
.plate-block .plate-caption { grid-column: auto; grid-row: auto; justify-self: start; margin-top: 26px }
.plate-block .hero-plate { grid-column: auto; grid-row: auto; min-height: 400px }
@media (max-width: 820px) { .plate-block { grid-template-columns: 1fr } }

/* ---------- pourquoi ---------- */
.whys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.why { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px }
.why svg { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.6;
           stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px }
.why h3 { font-size: 16px; margin-bottom: 8px } .why p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6 }
@media (max-width: 960px) { .whys { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 520px) { .whys { grid-template-columns: 1fr } }

/* ---------- vidéos : son ---------- */
.vt-snd { position: absolute; inset: 12px 12px auto auto; width: 34px; height: 34px; border-radius: 50%;
          background: rgba(4,67,75,.6); display: grid; place-items: center }
.vt-snd::before { content: ""; width: 14px; height: 14px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm13.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4 2.7-2.7 2.7 2.7 1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm13.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4 2.7-2.7 2.7 2.7 1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat }
.vt.has-sound .vt-snd::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM12 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM12 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") }
.vt.is-auto .vt-play { opacity: 0 }

@media (prefers-reduced-motion: reduce) {
  .jh-ring, .jh-box img { animation: none }
}

/* ---------- carte du corps : pastilles de choix ---------- */
.pb-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px }
.pb-picks button {
  font: 600 13px var(--font-body); color: #fff; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--pill); padding: 9px 16px; transition: background .2s, border-color .2s, color .2s;
}
.pb-picks button:hover { border-color: var(--glow) }
.pb-picks button[aria-pressed="true"] { background: var(--glow); border-color: var(--glow); color: var(--teal-ink) }
.plate-block .plate-caption { margin-top: 16px }
.plate-block .plate-caption a { color: inherit; text-decoration: none; display: block }
.plate-block .hero-plate .anatomy { max-width: 430px; max-height: none }
.plate-host .anatomy { max-width: 420px }

/* ---------- bandeau conseil ---------- */
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
       background: var(--teal-soft); border-radius: var(--radius-lg);
       padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) }
.ask h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px }
.ask p { color: var(--text-soft); max-width: 52ch }
@media (max-width: 820px) { .plate-block .hero-plate { order: 0 } }
