/* ── Hero Principal ───────────────────────────────────────── */
.hero-wrap { position: relative; }
/* CDC §6 : bande des 11 pôles sous le Hero */
.hero-poles-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-poles-strip::-webkit-scrollbar { display: none; }
.hero-poles-strip__inner {
  display: flex;
  gap: 4px;
  padding: 14px 24px;
  white-space: nowrap;
}
.hero-poles-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray);
  transition: color .25s, background .25s;
  flex-shrink: 0;
}
.hero-poles-strip__item:hover { color: var(--pole-c, var(--red)); background: color-mix(in srgb, var(--pole-c, var(--red)) 10%, white); }
.hero-poles-strip__icon { width: 18px; height: 18px; display: inline-flex; color: var(--pole-c, var(--red)); }
.hero-poles-strip__icon svg { width: 100%; height: 100%; }
@media (max-width: 700px) {
  .hero-poles-strip__inner { padding: 12px 16px; }
  .hero-poles-strip__item { padding: 7px 12px; font-size: .78rem; }
}
/* V47 : sur desktop large, le défilement horizontal masqué (scrollbar-width:none)
   donnait l'impression que les derniers pôles étaient coupés/perdus hors écran,
   sans aucune affordance de scroll visible. À partir de 1024px il y a largement
   la place : on repasse en grille qui s'enroule sur 2 lignes, centrée, sans
   scroll caché — tout est visible d'un coup d'œil. Le comportement "bande
   défilante" (CDC mobile) reste inchangé en dessous de 1024px. */
@media (min-width: 1024px) {
  .hero-poles-strip { overflow-x: visible; }
  .hero-poles-strip__inner {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    padding: 14px 24px;
  }
}
.hero {
  /* Correction Dann 10/07 : min-height:100vh + padding-top du nav pouvait
     dépasser un plein écran dès que le contenu (badge + titre + stats)
     était un peu long, donnant l'impression d'un hero "toujours grand"
     nécessitant un scroll pour voir les points de navigation en bas.
     Le Nid de Cocody utilise height:100vh strict (pas min-height) — même
     règle ici, le contenu interne s'adapte à cet espace fixe. */
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--nav-h) + var(--announce-h));
  overflow: hidden;
  background: var(--black);
}
/* Navigation manuelle du hero — jamais de défilement automatique (CDC V33 §12) */
.hero-nav {
  position: absolute; left: 50%; bottom: var(--sp-6); transform: translateX(-50%);
  z-index: 3; display: flex; gap: var(--sp-3);
}
.hero-dot {
  width: 32px; height: 3px; border-radius: var(--radius-badge);
  background: rgba(255,255,255,.3); border: none; padding: 0; cursor: pointer;
  transition: background .25s;
}
.hero-dot:hover { background: rgba(255,255,255,.55); }
.hero-dot.is-active { background: var(--red); }
.hero-bg {
  position: absolute;
  top: -8%; left: 0; right: 0;
  height: 116%; /* déborde pour laisser de la marge au parallaxe sans découvrir de bord */
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(165,0,0,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(165,0,0,.1) 0%, transparent 60%);
  background-size: cover;
  background-position: center;
  /* CDC 2026 §7 — Parallaxe hero : continu, linéaire, amplitude ≤15% hauteur
     image. --hero-py posé en JS (scroll), jamais de transition ici : un
     parallaxe doit suivre le scroll à l'image près, pas avec un temps de
     retard (sinon l'effet devient un décalage visible plutôt qu'un glisse). */
  transform: translateY(var(--hero-py, 0px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .hero-bg { transform: none !important; } }
/* Voile de lisibilité (Priorité 2, formule .hovl de Le Nid) + texture fine
   existante — garantit que le titre/texte blanc du hero reste lisible
   quelle que soit la photo ou vidéo utilisée en fond, sans dépendre du
   contenu de l'image. Purement visuel, n'affecte aucun markup. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 68px, rgba(255,255,255,.035) 68px 69px),
    linear-gradient(to bottom, rgba(15,15,15,.55) 0%, rgba(15,15,15,.22) 42%, rgba(15,15,15,.78) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-stats {
    opacity: 0;
    animation: heroRise .8s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero-eyebrow { animation-delay: .05s; }
  .hero-title   { animation-delay: .18s; }
  .hero-sub     { animation-delay: .32s; }
  .hero-actions { animation-delay: .46s; }
  .hero-stats   { animation-delay: .6s; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.stat-icon { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}
/* Badge pulsé (CDC design V38 §4.2, sur le modèle .hbadge/.hpulse de Le Nid) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero-badge-pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.hero-badge-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--red);
  opacity: .5;
  animation: heroBadgePulse 1.8s ease-out infinite;
}
@keyframes heroBadgePulse {
  0%   { transform: scale(.4); opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge-pulse::after { animation: none; } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--white);
  max-width: 920px;
  margin-bottom: 24px;
}
.hero-accent { color: var(--red); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.6);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}
.hero-stat {
  text-align: left;
  position: relative;
  padding: 0 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat::before {
  content: '';
  position: absolute;
  top: -29px; left: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ── Partenaires — V49 : mise en scène dédiée, toujours en défilement,
   cartes visuelles (avant : liste plate, texte brut pour les partenaires
   sans logo, JS inline onmouseover/onmouseout). Rotation des 11 teintes
   comme le reste du site (--i posé en inline style PHP, 0-10). ────── */
.partners-marquee {
  overflow: hidden;
  position: relative;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  animation: partnersScroll 32s linear infinite;
  width: max-content;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-card {
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 96px;
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, border-color .35s ease;
}
/* Couleur signature par position (même rotation que le reste du site) */
.partner-card:nth-child(11n+1)  { --tc: #1D3557; }
.partner-card:nth-child(11n+2)  { --tc: #0F766E; }
.partner-card:nth-child(11n+3)  { --tc: #6D28D9; }
.partner-card:nth-child(11n+4)  { --tc: #0369A1; }
.partner-card:nth-child(11n+5)  { --tc: #B8232F; }
.partner-card:nth-child(11n+6)  { --tc: #B45309; }
.partner-card:nth-child(11n+7)  { --tc: #0891B2; }
.partner-card:nth-child(11n+8)  { --tc: #374151; }
.partner-card:nth-child(11n+9)  { --tc: #15803D; }
.partner-card:nth-child(11n+10) { --tc: #4338CA; }
.partner-card:nth-child(11n+11) { --tc: #A2145E; }
.partner-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tc, var(--champagne)) 45%, var(--border));
  box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--tc, var(--champagne)) 40%, transparent);
}
.partner-card img {
  max-width: 100%; max-height: 44px; object-fit: contain;
  filter: grayscale(1) opacity(.6);
  transition: filter .35s ease;
}
.partner-card:hover img { filter: grayscale(0) opacity(1); }
/* Partenaire sans logo encore fourni : badge coloré + nom, jamais de
   texte gris brut isolé — reste une "carte" visuelle au même format */
.partner-card--badge {
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(165deg, var(--white) 0%, var(--surface) 100%);
}
.partner-card-initial {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  color: var(--white);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc, var(--champagne)) 85%, white 0%), color-mix(in srgb, var(--tc, var(--champagne)) 60%, black 25%));
}
.partner-card-name { font-size: .72rem; font-weight: 700; color: var(--gray); text-align: center; line-height: 1.2; }
@media (max-width: 640px) { .partner-card { width: 136px; height: 84px; padding: 14px 18px; } }
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .partner-card, .partner-card img { transition: none !important; }
  .partner-card:hover { transform: none !important; }
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + var(--announce-h) + 64px) 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero.hero-dark { background: var(--black); }
.page-hero.hero-light { background: var(--light); }
/* CDC design V38 §3.2 : en-tête d'une page univers/service — dégradé teinté par
   la couleur du pôle (var(--pole-c)) plutôt qu'un noir uniforme, sur le modèle
   du .phero dégradé de Le Nid de Cocody. Ne s'applique qu'aux hero portant
   data-pole ; le fond noir standard reste inchangé partout ailleurs. */
.page-hero.hero-dark[data-pole] {
  background: linear-gradient(135deg, var(--black) 0%, color-mix(in srgb, var(--pole-c) 55%, var(--black)) 60%, var(--pole-c) 130%);
}
/* Même texture discrète que le hero d'accueil, réservée au fond sombre */
.page-hero.hero-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 68px, rgba(255,255,255,.03) 68px 69px);
}
/* Hauteurs de hero par page, CDC §10 : Agence 70vh · Expertises/page univers
   60vh · Réalisations/Contact 50vh. min-height plutôt que height fixe pour
   ne jamais couper le contenu sur petit écran ; flex pour centrer verticalement. */
.page-hero--70vh { min-height: 70vh; display: flex; align-items: center; }
.page-hero--60vh { min-height: 60vh; display: flex; align-items: center; }
.page-hero--50vh { min-height: 50vh; display: flex; align-items: center; }
@media (max-width: 640px) {
  .page-hero--70vh, .page-hero--60vh, .page-hero--50vh { min-height: 0; display: block; }
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-eyebrow.light { color: rgba(255,255,255,.5); }

/* V67 — Hero visuel du pôle : image de fond + dégradé teinté par univers +
   numéro géant en filigrane, sur le modèle des cartes de la page Expertises
   (univers-vedette-card / univers-compact-card), pour que la page pôle et
   son index se répondent visuellement. */
.pole-hero-visual.page-hero.hero-dark[data-pole] { background: var(--black); }
.pole-hero-media {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.pole-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.pole-hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    rgba(10,10,10,.55) 0%,
    color-mix(in srgb, var(--pole-c) 62%, rgba(10,10,10,.88)) 55%,
    color-mix(in srgb, var(--pole-c) 88%, rgba(10,10,10,.6)) 130%);
}
.pole-hero-number {
  position: absolute;
  top: calc(var(--nav-h) + var(--announce-h) + 28px);
  right: clamp(24px, 5vw, 64px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 1;
  color: color-mix(in srgb, var(--pole-c) 55%, rgba(255,255,255,.6));
  opacity: .45;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 767px) {
  .pole-hero-number { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero .section-eyebrow, .page-hero h1, .page-hero .hero-sub, .page-hero > .container > p {
    opacity: 0;
    animation: heroRise .7s cubic-bezier(.16,1,.3,1) forwards;
  }
  .page-hero .section-eyebrow { animation-delay: .05s; }
  .page-hero h1               { animation-delay: .15s; }
  .page-hero .hero-sub, .page-hero > .container > p { animation-delay: .28s; }
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  max-width: 800px;
  margin: 12px 0 16px;
}
.page-hero.hero-light h1 { color: var(--black); }
.page-hero p { color: rgba(255,255,255,.6); max-width: 600px; font-size: 1.05rem; }
.page-hero.hero-light p { color: var(--gray); }
.text-red { color: var(--red); font-style: italic; }
.hero-price {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 700;
  margin-top: 12px;
}

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
/* v28 : rythme cassé — décalage vertical alterné plutôt qu'une mosaïque
   d'images (le contenu est du texte/prix, donc on casse la grille par la
   position, pas par la taille, pour ne jamais couper une carte au milieu). */
@media (min-width: 900px) {
  .services-grid--offset > .service-card:nth-child(3n+2) { margin-top: 32px; }
  .services-grid--offset > .service-card:nth-child(3n+3) { margin-top: 64px; }
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card--featured {
  background: var(--black);
  border-color: var(--red);
}
.service-card--featured h3,
.service-card--featured p { color: var(--white); }
.service-card--featured .sc-price { color: var(--red); }

.mega-menu-icon .service-icon-svg { width: 20px; height: 20px; }
.sc-icon { font-size: 2rem; color: var(--red); }
.sc-icon .service-icon-svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.service-card p  { font-size: .875rem; color: var(--gray); line-height: 1.6; flex: 1; }
.sc-price {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sc-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: auto;
  transition: transform .3s;
}
.service-card:hover .sc-arrow { transform: translateX(4px); }

/* ── Why Grid ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s;
}
/* Reprend le motif déjà utilisé sur .hero-stat::before (petit trait dégradé
   champagne) pour donner un peu de profondeur à des cartes jusqu'ici trop
   plates, sans introduire une nouvelle couleur hors système. */
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.why-card:hover {
  border-color: rgba(200,169,106,.35);
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transform: translateY(-3px);
}
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(200,169,106,.14);
  color: var(--champagne);
  margin-bottom: 20px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.why-card p  { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.6; }

