/* ==========================================================================
   AXOLOTL — home-plus.css : accueil « un cran au-dessus »
   Moins de hauteur, plus de blocs, plus de vie. Les mouvements lourds sont réservés au bureau (souris + écran large).
   Chargé après home.css et seo.css : il complète et ajuste, il ne remplace rien.
   ========================================================================== */

/* — Titres de section plus compacts : 2 lignes au lieu de 4 — */
.h2-services .pg-head, .h2-anat .pg-head, .h2-works .pg-head, .h2-explore .pg-head { grid-template-columns: 1.5fr .8fr; margin-bottom: 34px; }
.h2-services .pg-head h2, .h2-anat .pg-head h2, .h2-works .pg-head h2, .h2-explore .pg-head h2, .faq-grid h2 { font-size: clamp(2.1rem, 3.9vw, 3.6rem); }
.h2-services, .h2-anat, .h2-works { padding: 66px 0; }
.h2-bento { padding: 66px 0 50px; }
.h2-fast-track { padding: 60px 0; }
.h2-pns { height: clamp(400px, 50vh, 500px); margin-top: 0; }
.h2-svc-card { padding: 28px 26px; }
.h2-svc-desc { margin-bottom: 18px; }

/* — Chiffres clés — */
.ticker:not(.ticker-rev) { padding-bottom: 44px; }
.h2-stats { padding: 0; margin-top: -26px; position: relative; z-index: 3; }
.h2-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.h2-stat-row li { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 18px; border-radius: 24px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 16px 36px rgba(27,18,51,.10); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.h2-stat-row li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--sc); }
.h2-stat-row li b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 74; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .95; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: baseline; gap: 6px; padding-left: 8px; }
.h2-stat-row li b small { font-size: .38em; font-weight: 800; letter-spacing: .02em; }
.h2-stat-row li > span { font-size: .92rem; line-height: 1.35; color: var(--muted); padding-left: 8px; font-weight: 600; }
.h2-stat-row li:hover { transform: translateY(-6px); box-shadow: 0 26px 46px rgba(27,18,51,.16); }

/* — Explorer : tuiles de liens + journal — */
.h2-explore { padding: 66px 0 70px; background: var(--bg); }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.ex-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 28px; background: #fff; border: 2px solid var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ex-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--tc); }
.ex-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.ex-tile:hover { transform: translateY(-8px); box-shadow: 0 26px 48px rgba(27,18,51,.14); }
.ex-tile:hover::after { opacity: 1; }
.ex-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--tc); border: 2px solid var(--ink); margin: 6px 0 12px; animation: exDot 2.8s ease-out infinite; }
@keyframes exDot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.ex-tile h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 76; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; }
.ex-tile p { font-size: .94rem; line-height: 1.4; color: var(--muted); margin-bottom: 16px; }
.ex-links { display: grid; gap: 6px; margin-top: 0; list-style: none; padding: 0; }
.ex-links a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 14px; font-weight: 700; font-size: .94rem; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--tc) 9%, #fff); border: 1.5px solid transparent; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.ex-links a::after { content: "→"; transition: transform .35s var(--ease); }
.ex-links a:hover, .ex-links a:focus-visible { background: color-mix(in srgb, var(--tc) 30%, #fff); border-color: var(--ink); transform: translateX(4px); }
.ex-links a:hover::after { transform: translateX(4px); }
.ex-journal { margin-top: 22px; padding: clamp(24px, 3.4vw, 40px); border-radius: 32px; background: var(--ink); color: #F6F0F2; border: 2px solid var(--ink); }
.ex-j-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
.ex-j-head .kicker { color: var(--rose-pale); width: 100%; margin: 0; }
.ex-j-head h3 { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 76; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -.02em; flex: 1 1 320px; }
.ex-j-head .btn-line { color: #F6F0F2; border-color: rgba(246,240,242,.5); }
.ex-j-head .btn-line:hover { background: var(--rose); color: var(--ink); border-color: var(--rose); }
.ex-j-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.ex-j-list a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 16px 44px; border-radius: 20px; text-decoration: none; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.ex-j-list small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.ex-j-list b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.2rem; line-height: 1.05; }
.ex-j-list span { font-size: .86rem; line-height: 1.35; opacity: .75; }
.ex-j-list i { position: absolute; right: 16px; bottom: 14px; font-style: normal; font-weight: 800; color: var(--rose); transition: transform .35s var(--ease); }
.ex-j-list a:hover, .ex-j-list a:focus-visible { transform: translateY(-6px); background: rgba(255,111,168,.16); border-color: var(--rose); }
.ex-j-list a:hover i { transform: translateX(6px); }

/* — Bandeau inversé — */
.ticker-rev { background: var(--rose); color: var(--ink); border-color: var(--ink); padding: 16px 0; }
.ticker-rev .ticker-track { font-size: 1.25rem; animation-direction: reverse; animation-duration: 56s; }
.ticker-rev .ticker-track i { outline-color: rgba(27,18,51,.5); }

/* — Barre de progression de lecture (bureau, créée par home.js) — */
.h2-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 90; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #F4C542, #FF6FA8, #B9A6D9, #7CFF6B); pointer-events: none; }

/* — Entrées plus vivantes, bureau uniquement (souris + écran large) — */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .js .bn.rv { transform: translateY(70px) scale(.94); transition-duration: 1.1s; }
  .js .bn.rv.in { transform: none; }
  .js .ex-tile.rv { transform: translateY(50px) rotate(-1.6deg); }
  .js .ex-tile.rv.in { transform: none; }
  .js .ex-tile.rv.in:hover { transform: translateY(-8px); transition-delay: 0s; }
  .js .ex-links li, .js .ex-j-list li { opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(var(--i) * .07s + .35s); }
  .js .ex-tile.in .ex-links li, .js .ex-journal.in .ex-j-list li { opacity: 1; transform: none; }
  .js .h2-stat-row.rv li { opacity: 0; transform: translateY(40px) scale(.92); transition: opacity .7s, transform .8s var(--ease), box-shadow .45s var(--ease); }
  .js .h2-stat-row.rv.in li { opacity: 1; transform: none; }
  .js .h2-stat-row.rv.in li:nth-child(2) { transition-delay: .1s; }
  .js .h2-stat-row.rv.in li:nth-child(3) { transition-delay: .2s; }
  .js .h2-stat-row.rv.in li:nth-child(4) { transition-delay: .3s; }
  .js .h2-stat-row.rv.in li:hover { transform: translateY(-6px); transition-delay: 0s; }
  .h2-work-item { transition: transform .5s var(--ease); }
  .h2-work-item:hover { transform: translateY(-8px); }
  /* lueur qui suit la souris dans les blocs animés */
  .bn::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 70%); opacity: 0; transition: opacity .4s; }
  .bn:hover::after { opacity: 1; }
}
@media (max-width: 1080px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-j-list { grid-template-columns: repeat(2, 1fr); }
  .h2-stat-row { grid-template-columns: repeat(2, 1fr); }
  .h2-services .pg-head, .h2-anat .pg-head, .h2-works .pg-head, .h2-explore .pg-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .h2-stats { margin-top: -18px; }
  .h2-services, .h2-anat, .h2-works, .h2-explore { padding: 48px 0; }
  .ex-grid, .ex-j-list { grid-template-columns: 1fr; }
  .h2-stat-row { gap: 10px; }
  .h2-stat-row li { padding: 16px 14px 14px; border-radius: 20px; }
  .h2-stat-row li > span { font-size: .82rem; }
  .ex-j-list a { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-dot, .ticker-rev .ticker-track { animation: none; }
  .h2-progress { display: none; }
  .js .ex-links li, .js .ex-j-list li, .js .h2-stat-row.rv li { opacity: 1; transform: none; transition: none; }
}

/* — Blocs animés : plus denses (moins de hauteur, même contenu) — */
.bn { padding: clamp(24px, 3vw, 40px); border-radius: 32px; }
.bn h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin-bottom: 14px; }
.bn-p { font-size: .98rem; line-height: 1.55; margin-bottom: 11px; }
.bn-n { margin-bottom: 10px; }
.bn-grid { gap: 16px; }
.bn-chips { grid-template-columns: 1fr 1fr 1fr; }
.bn-chips li { padding: 10px 12px; font-size: .88rem; }
.bn-venn { height: 120px; margin-bottom: 8px; }
.bn-venn .c { width: 112px; height: 112px; }
.bn-venn .c1 { left: calc(50% - 100px); } .bn-venn .c2 { left: calc(50% - 12px); }
.bn-path { height: 92px; margin-bottom: 10px; }
.bn-pulse { min-height: 230px; }
.bn-steps li { padding-top: 56px; font-size: .92rem; }
@media (min-width: 1081px) {
  .bn-1 { grid-template-columns: 1.4fr .6fr; }
  .bn-orbit { --s: clamp(200px, 20vw, 270px); }
}
@media (max-width: 1080px) { .bn-chips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .bn-chips { grid-template-columns: 1fr; } .bn-venn .c { width: 100px; height: 100px; } .bn-venn .c1 { left: calc(50% - 92px); } .bn-venn .c2 { left: calc(50% - 8px); } }

/* — Explorer, bandeaux, passage à l'action : un peu plus serrés — */
.ex-links { gap: 4px; }
.ex-links a { padding: 7px 11px; font-size: .9rem; }
.ex-tile { padding: 22px 20px 18px; }
.ex-tile p { margin-bottom: 12px; }
.ex-journal { padding: clamp(22px, 3vw, 34px); }
.ex-j-head { margin-bottom: 16px; }
.h2-ft-box { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.h2-contact-band { padding-top: 56px; padding-bottom: 56px; }

/* Bouton flottant : jamais sur deux lignes */
.h2-float { white-space: nowrap; }

/* ---------- Carte du héros : pile de 3 calques à ordre fixe (or -3, mauve -2, face blanche -1), contenu au-dessus.
   La carte garde un contexte d'empilement permanent (isolation) : plus de bascule d'ordre à la fin de l'animation d'entrée,
   qui faisait apparaître la feuille mauve avant la carte blanche. ---------- */
.h2-hero-card { isolation: isolate; background: transparent; border-color: transparent; box-shadow: none; animation: heroCardIn .8s var(--ease) .1s backwards; }
.h2-card-face { position: absolute; inset: -2px; z-index: -1; background: #fff; border: 2px solid var(--ink); border-radius: 28px; pointer-events: none;
  box-shadow: 0 1px 1px rgba(27,18,51,.08), 0 6px 12px rgba(27,18,51,.08), 0 22px 40px -8px rgba(27,18,51,.22); transition: box-shadow .5s var(--ease); }
.h2-hero-card:hover .h2-card-face { box-shadow: 0 1px 1px rgba(27,18,51,.08), 0 10px 18px rgba(27,18,51,.1), 0 32px 56px -8px rgba(27,18,51,.28); }
.h2-hero-card::before { z-index: -3; animation: heroSheetIn .9s var(--ease) .7s backwards; }
.h2-hero-card::after { z-index: -2; animation: heroSheetIn .9s var(--ease) .8s backwards; }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(28px); } }
@keyframes heroSheetIn { from { opacity: 0; transform: rotate(0deg) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .h2-hero-card, .h2-hero-card::before, .h2-hero-card::after { animation: none; } }
