/* ══════════════════════════════════════════════
   ACTINUANCE — Accueil : section « Quatre expertises »
   Défilement horizontal épinglé : un grand panneau par expertise,
   avec ce qu'elle couvre et ses offres (liens vers chaque offre).
   Profondeur : le panneau qui arrive grandit, celui qui part recule,
   le grand numéro et le halo défilent à une autre vitesse.
   Les offres de chaque expertise sont mises en avant en tuiles.
   Chargée après ax.css.
════════════════════════════════════════════════ */

.xh {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(72px, 9vw, 120px);
  /* Le haut reprend le violet du hero puis plonge vers la nuit :
     la section n'arrive plus comme un bloc noir. */
  background:
    radial-gradient(60% 40% at 20% 75%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(45% 30% at 85% 45%, rgba(241, 136, 71, 0.12), transparent 70%),
    linear-gradient(180deg, #5a2378 0%, #3b1650 14%, #24102f 32%, #170b20 52%);
  color: #fff;
}
.xh-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Palette de chaque panneau (couleurs Actinuance : violets, orange, gris). */
.xh-panel--1 { --tile: rgba(255, 255, 255, 0.12); --tile-h: #f18847; --tile-hink: #2a0f3a; --bg1: #8a4bd6; --bg2: #632a7c; --ink: #fff; --soft: rgba(255, 255, 255, 0.8); --acc: #f18847; --mk: #f18847; --mk-ink: #2a0f3a; --line: rgba(255, 255, 255, 0.18); }
.xh-panel--2 { --tile: rgba(255, 255, 255, 0.3); --tile-h: #632a7c; --tile-hink: #fff; --bg1: #ff9a5c; --bg2: #e86f30; --ink: #2a0f3a; --soft: rgba(42, 15, 58, 0.82); --acc: #2a0f3a; --mk: #632a7c; --mk-ink: #fff; --line: rgba(42, 15, 58, 0.2); }
.xh-panel--3 { --tile: #fff; --tile-h: #632a7c; --tile-hink: #fff; --bg1: #f5f4f7; --bg2: #dedae3; --ink: #2a0f3a; --soft: #5a5163; --acc: #632a7c; --mk: #f18847; --mk-ink: #2a0f3a; --line: rgba(42, 15, 58, 0.14); }
.xh-panel--4 { --tile: rgba(255, 255, 255, 0.1); --tile-h: #f18847; --tile-hink: #2a0f3a; --bg1: #632a7c; --bg2: #2c0f3b; --ink: #fff; --soft: rgba(255, 255, 255, 0.78); --acc: #f18847; --mk: #f18847; --mk-ink: #2a0f3a; --line: rgba(255, 255, 255, 0.16); }

/* ─── Panneaux ─────────────────────────────────── */
.xh-view { perspective: 1600px; }
.xh-track { display: grid; gap: 24px; padding-top: 32px; }
.xh-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  color: var(--ink);
  background: linear-gradient(140deg, var(--bg1), var(--bg2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
/* Grand numéro en filigrane et halo : couches qui défilent à part. */
.xh-big {
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: -14%;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(14rem, 30vw, 28rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
  pointer-events: none;
}
.xh-orb {
  position: absolute;
  z-index: -1;
  left: -10%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.xh-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: #0d0612;
  opacity: 0;
  pointer-events: none;
}
.xh--h .xh-panel { will-change: transform; backface-visibility: hidden; pointer-events: auto; }
/* La bande qui porte les panneaux est transparente : elle ne doit pas
   intercepter les clics quand un panneau pivote derrière son plan. */
.xh--h .xh-track { pointer-events: none; }
.xh-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 5vw, 64px);
}
.xh-intro h3 {
  margin: 0 0 20px;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.xh-intro h3 a { color: var(--ink); }
.xh-intro h3 a:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 6px; }
.xh-desc { max-width: 44ch; font-size: 1.1rem; line-height: 1.75; color: var(--soft); }
.xh-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--acc);
  padding-bottom: 4px;
}
.xh-cta::after { content: '→'; transition: transform 0.3s ease; }
.xh-cta:hover::after { transform: translateX(5px); }

/* Offres : tuiles numérotées, contrastées sur le panneau ; au survol la
   tuile se remplit de la couleur d'accent. */
.xh-offers-label {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.xh-offers ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.xh-offer {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  background: var(--tile);
  color: var(--ink);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.6);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.4s var(--ax-ease);
}
.xh-offer-n {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--acc);
  transition: color 0.35s ease;
}
.xh-offer strong {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.xh-offer::after {
  content: '→';
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tile-h);
  color: var(--tile-hink);
  font-size: 1.05rem;
  transition: transform 0.35s var(--ax-ease), background-color 0.35s ease, color 0.35s ease;
}
.xh-offer:hover,
.xh-offer:focus-visible { background: var(--tile-h); color: var(--tile-hink); transform: translateX(6px); }
.xh-offer:hover .xh-offer-n,
.xh-offer:focus-visible .xh-offer-n { color: var(--tile-hink); }
.xh-offer:hover::after,
.xh-offer:focus-visible::after { background: var(--tile-hink); color: var(--tile-h); transform: translateX(4px); }
.xh-offer:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ─── Mode horizontal épinglé (grand écran) ────── */
.xh--h .xh-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding-top: var(--nav-height);
}
.xh--h .xh-view { overflow: visible; }
.xh--h .xh-track {
  display: flex;
  gap: clamp(24px, 3vw, 40px);
  width: max-content;
  padding: 36px 6vw 0;
  transform-style: preserve-3d;
}
.xh--h .xh-panel {
  flex: none;
  width: min(84vw, 1180px);
  height: min(70vh, 640px);
  transform-origin: center center;
}
.xh--h .xh-body { height: 100%; align-items: center; padding-block: clamp(28px, 4vh, 48px); }

/* ─── Petits écrans ─────────────────────────────── */
@media (max-width: 999px) {
  .xh-body { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .xh-big { font-size: 12rem; bottom: -6%; }
}
@media (prefers-reduced-motion: reduce) {
  .xh-offer, .xh-offer::after, .xh-offer-n, .xh-cta::after { transition: none; }
}
/* Mode empilé : marges latérales comme le reste de la page. */
.xh:not(.xh--h) .xh-track { max-width: 1168px; margin-inline: auto; padding-inline: 16px; }
