/* ── Page 404 immersive ───────────────────────────────────── */
.error-404-scene {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; position: relative; z-index: 1;
  padding: 48px 20px;
}
.error-404-compass {
  width: 120px; height: 120px; margin-bottom: 32px; position: relative;
}
.error-404-compass svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .error-404-compass .needle { animation: compassWander 5s ease-in-out infinite; transform-origin: 60px 60px; }
}
@keyframes compassWander {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(24deg); }
}
.error-404-scene h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 500; margin-bottom: 12px; }
.error-404-scene p { color: var(--gray); max-width: 480px; margin: 0 auto 28px; font-size: 1.05rem; }
.error-404-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── À propos ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col__text .section-eyebrow { display: block; margin-bottom: 12px; }
.two-col__text h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 500; line-height: 1.25; margin-bottom: 16px; }
.two-col__text p { color: var(--gray); line-height: 1.8; margin-bottom: 12px; font-size: .95rem; }

.stats-row { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.stat-box { text-align: left; }
.stat-box .stat-n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1; display: block; }
.stat-box .stat-l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

/* Badge (étiquette), au sens strict du CDC V33 §22 — à ne pas confondre avec
   .badge-card ci-dessous qui est un bloc de mise en avant plus grand */
.badge {
  display: inline-flex; align-items: center;
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  background: color-mix(in srgb, var(--badge-c, var(--gray)) 12%, transparent);
  color: var(--badge-c, var(--gray));
}
.badge-gray { --badge-c: var(--gray); }
.badge-red-soft  { --badge-c: var(--red); }
.badge-gold-soft { --badge-c: var(--gold); }

.about-badge-stack { display: flex; flex-direction: column; gap: 16px; }
.badge-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.badge-red   { background: var(--red); color: var(--white); }
.badge-dark  { background: var(--black); color: var(--white); }
.badge-light { background: var(--light); color: var(--black); border: 1.5px solid var(--border); }

/* VMV */
.vmv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
/* CDC 2026 §10 : page Agence, grille Valeurs strictement 4 col desktop / 2 col tablette / 1 col mobile */
.vmv-grid--4col { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .vmv-grid--4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .vmv-grid--4col { grid-template-columns: 1fr; } }
.vmv-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .3s, border-color .3s, transform .3s; /* V41 */
}
.vmv-card:hover { box-shadow: var(--shadow-soft); border-color: transparent; transform: translateY(-3px); }
.vmv-card--featured:hover { border-color: var(--red); }
.vmv-card--featured { background: var(--red); border-color: var(--red); }
/* Bug V50 corrigé : spécificité égale à ".vmv-card h3" ci-dessous, qui la
   suivait dans le fichier et gagnait donc le conflit (texte noir illisible
   sur fond rouge). Sélecteur renforcé (.vmv-card.vmv-card--featured) pour
   ne plus dépendre de l'ordre d'écriture. */
.vmv-card.vmv-card--featured h3,
.vmv-card.vmv-card--featured p,
.vmv-card.vmv-card--featured .vmv-icon { color: var(--white); }
.vmv-icon { font-size: 2rem; margin-bottom: 16px; }
.vmv-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.vmv-card p  { font-size: .875rem; color: var(--gray); line-height: 1.7; }
.vmv-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.vmv-list li { font-size: .85rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.vmv-list li::before { content: '✓'; color: var(--red); font-weight: 700; }
.vmv-card--featured .vmv-list li { color: rgba(255,255,255,.8); }
.vmv-card--featured .vmv-list li::before { color: rgba(255,255,255,.7); }

/* Team : définitions déplacées et unifiées section "── Équipe ──" plus bas
   dans ce fichier (CDC design V38, point relevé "double définition .team-card"
   — nettoyage : une seule source de vérité désormais, celle qui inclut les
   variantes --feat/Direction). Les anciennes classes .team-avatar--red/--dark
   étaient du code mort (non référencé dans aucun template PHP), supprimées. */

/* Outils */
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color .3s, background .3s;
}
.tool-chip:hover { border-color: rgba(165,0,0,.4); background: rgba(165,0,0,.08); }
.tool-name { font-size: .85rem; font-weight: 700; color: var(--white); }
.tool-cat  { font-size: .7rem; color: rgba(255,255,255,.35); }

/* ── Legal ────────────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--black); margin: 32px 0 12px; }
.legal-content p, .legal-content li { font-size: .9rem; color: var(--gray); line-height: 1.8; margin-bottom: 8px; }
.legal-content ul { padding-left: 24px; list-style: disc; }
.legal-contact-cta { margin-top: 48px; padding: 24px; background: var(--light); border-radius: var(--radius-md); text-align: center; font-size: .9rem; }
.legal-contact-cta a { color: var(--red); font-weight: 600; }

/* ── WhatsApp float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .3s, box-shadow .3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--black); color: var(--white); }
.footer-top { padding: 112px 0 64px; } /* V41 : plus d'air (CDC §4) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.4fr;
  gap: 56px; /* V41 : +8px pour aérer les colonnes */
}
.footer-logo { height: 44px; margin-bottom: 16px; background: #fff; padding: 8px 14px; border-radius: 8px; }
.footer-tagline { font-size: .78rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px; /* V41 : badge arrondi façon .ft-si Nid plutôt que cercle plat */
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  transition: background .25s, color .25s, transform .25s;
}
.social-icon:hover { background: rgba(255,255,255,.14); color: var(--gold); transform: translateY(-2px); }
/* V41 : titre de colonne mieux mis en valeur — plus opaque, repère doré
   discret au-dessus, sur le principe des titres .ft-col h4 de Le Nid,
   sans importer une police supplémentaire (identité ComEvents conservée). */
.footer-title {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.68); margin-bottom: 18px; position: relative; padding-top: 14px;
}
.footer-title::before {
  content: ''; position: absolute; top: 0; left: 0; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .25s; }
.footer-links a:hover { color: var(--gold); }

/* Pictogramme devant chaque lien des colonnes Navigation / Services-Ressources
   (CDC design V38 §2.2, modèle .ftl de Le Nid de Cocody).
   Correction Dann 10/07 : un point CSS de 6px était quasiment invisible à
   l'écran et ne correspondait à aucune icône réelle, contrairement à Le Nid
   où chaque lien porte un vrai pictogramme. Remplacé par un gabarit icône
   SVG (22px, fond doré léger, coins arrondis) + libellé, la même logique
   que les icônes déjà utilisées dans les blocs .ft-ci de la colonne Contact. */
.footer-links--iconed a { display: flex; align-items: center; gap: 10px; }
.footer-links--iconed a svg {
  flex: 0 0 22px; width: 22px; height: 22px; padding: 4px;
  border-radius: 7px; background: rgba(201,162,39,.14); color: var(--gold, #c9a227);
  transition: background .25s, color .25s, transform .25s;
}
/* V41 : hover cohérent avec le reste du footer (or, plus de rouge — CDC §8) */
.footer-links--iconed a:hover svg { background: var(--gold); color: var(--black); transform: scale(1.06); }
.footer-links--iconed a.footer-link-more { color: var(--gold); font-weight: 600; }
.footer-links--iconed a.footer-link-more svg { background: var(--gold); color: var(--black); }
.footer-links--iconed a.footer-link-more:hover { color: var(--white); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-contact-list i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.55); transition: color .25s; }
.footer-contact-list a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .25s; }
.footer-bottom a:hover { color: var(--white); }


/* ── CTA Final ────────────────────────────────────────────── */
.section-cta-final {
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Halo champagne discret derrière le titre — jusqu'ici un simple aplat noir,
   dernier point de contact avant le footer : mérite un peu de relief sans
   sortir de la palette de marque. */
.section-cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(200,169,106,.14) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.section-cta-final .container { position: relative; z-index: 1; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-detail { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .sd-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .conditions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; }
  .vmv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility & Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Skip-link — WCAG AA, évitement clavier (CDC V35 §18) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff;
  padding: 12px 20px; font-weight: 700; font-size: .85rem;
  z-index: 9999; border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   Sections dynamiques v2 — Process, Agence, Annonces, etc.
   ============================================================ */

/* ── Bande Partenaires & Certifications (CDC design V38 §2.1) ──────────────
   Transposition fidèle de .part-bar / .part-inner / .plogo du Le Nid de Cocody,
   avec les tokens couleur ComEvents (rouge/or/noir) à la place du bleu/or. */
.part-bar { background: var(--white); padding: 28px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.part-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.part-lbl { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.plogo { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--gray); padding: 9px 16px; background: var(--bg); border-radius: 10px; border: 1px solid var(--border); transition: all .2s ease; }
.plogo:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
.plogo-img { height: 34px; width: auto; object-fit: contain; opacity: .8; filter: grayscale(1); transition: opacity .2s, filter .2s, transform .2s; }
.plogo-img:hover { opacity: 1; filter: grayscale(0); transform: translateY(-2px); }
@media (max-width: 640px) { .part-bar { padding: 18px; } }

/* ── Bandeau d'annonce — ticker déroulant multi-messages en boucle infinie
   (CDC design V38 §1.1, sur le modèle du ticker Le Nid de Cocody) ────────── */
.announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3100; /* V41 : hiérarchie Nid (ticker 3100 > nav 3000) */
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: .85rem;
  font-weight: 600;
  overflow: hidden;
}
.announcement-content { display: flex; align-items: center; gap: 12px; }
.announcement-link { text-decoration: underline; font-weight: 700; }
.announcement-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; font-size: 1rem;
  opacity: .7; color: inherit; z-index: 2;
}
/* Piste de défilement : la liste des messages est dupliquée dans le HTML,
   l'animation translate exactement -50% pour boucler sans coupure visible. */
.announcement-bar .tkr {
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: tkr-scroll 32s linear infinite;
  padding-right: 56px;
  padding-left: 100vw; /* le premier passage entre depuis la droite comme les suivants */
}
.announcement-bar:hover .tkr { animation-play-state: paused; }
.tkr-item { display: inline-flex; align-items: center; gap: 10px; }
/* Repère visuel devant chaque message — même signature que le ✦ doré du
   ticker Le Nid de Cocody, en version ComEvents (or de marque). */
.tkr-item::before { content: '✦'; color: var(--gold, #c9a227); }
@keyframes tkr-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar .tkr { animation: none; padding-left: 24px; }
}

/* ── Section Process / Notre méthode ─────────────────────── */
.section-process { background: var(--bg); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  counter-reset: process;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.process-card:hover { transform: translateY(-4px); border-color: rgba(165,0,0,.4); }
.process-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0; transition: opacity .25s;
}
.process-card:hover::before { opacity: 1; }
.process-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(165,0,0,.12);
  line-height: 1;
  font-family: var(--font-display, 'Fraunces', serif);
  margin-bottom: -8px;
}
.process-icon { font-size: 1.8rem; margin-bottom: 12px; }
.process-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.process-card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ── Page Agence — About split ───────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .about-split { grid-template-columns: 1fr; gap: 40px; } }
.about-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 24px; }
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.about-stats { display: flex; flex-direction: column; gap: 24px; }

/* ── Home — Présentation agence (variante média, CDC §4.2) ──── */
.about-split--media { align-items: center; }
.about-split--media .about-text { order: 2; }
.about-media { order: 1; position: relative; }
.about-media img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.25);
}
.about-media-badge {
  position: absolute; left: -20px; bottom: -20px;
  background: var(--black); color: #fff;
  border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.4);
  display: flex; flex-direction: column; line-height: 1.2;
}
.about-media-badge strong { font-family: var(--font-display, 'Fraunces', serif); font-size: 1.6rem; color: var(--red); }
.about-media-badge span { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 2px; }
.about-split--media .about-text .section-eyebrow { display: block; margin-bottom: 12px; }
@media (max-width: 768px) {
  .about-split--media .about-text { order: 1; }
  .about-media { order: 2; }
  .about-media-badge { left: 16px; bottom: -16px; padding: 14px 18px; }
}
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-item { background: var(--surface); border-radius: 12px; padding: 24px; text-align: center; }
.stat-item strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--red); }
.stat-item span { font-size: .8rem; color: var(--muted); }
.badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* V41 : les définitions .badge-card / .vmv-card dupliquées ici (CSS orphelin,
   probablement un reliquat d'une itération antérieure du design) écrasaient
   par cascade la définition canonique plus haut dans ce fichier — supprimées
   pour ne garder qu'une seule source de vérité (Priorité 1, cohérence). */

/* V49 — La pièce de vie de la maison : chaque carte équipe reçoit une
   couleur signature tournante (palette des 11 univers), pilotée par sa
   position dans la grille (nth-child), donc aucune dépendance à la base
   de données ni à avatar_color — s'applique immédiatement à toute
   l'équipe existante et future, sans migration ni action admin. */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.team-card {
  --tc: #1D3557; /* défaut, écrasé par nth-child ci-dessous */
  display: flex; gap: 20px;
  background: linear-gradient(165deg, var(--white) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--tc);
  border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.team-card::before {
  /* Halo discret en coin, teinté, qui s'intensifie au survol — la
     "vie" de la carte, jamais assez fort pour nuire à la lisibilité */
  content: ''; position: absolute; top: -40%; right: -30%; width: 65%; height: 140%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc) 22%, transparent) 0%, transparent 70%);
  opacity: .6; transition: opacity .35s ease; pointer-events: none;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--tc) 40%, transparent);
  border-color: color-mix(in srgb, var(--tc) 35%, var(--border));
}
.team-card:hover::before { opacity: 1; }
/* Rotation des 11 teintes, une par carte, dans l'ordre d'affichage */
.team-grid .team-card:nth-child(11n+1) { --tc: #1D3557; } /* bleu ardoise */
.team-grid .team-card:nth-child(11n+2) { --tc: #0F766E; } /* émeraude */
.team-grid .team-card:nth-child(11n+3) { --tc: #6D28D9; } /* améthyste */
.team-grid .team-card:nth-child(11n+4) { --tc: #0369A1; } /* bleu électrique */
.team-grid .team-card:nth-child(11n+5) { --tc: #B8232F; } /* corail */
.team-grid .team-card:nth-child(11n+6) { --tc: #B45309; } /* fuchsia */
.team-grid .team-card:nth-child(11n+7) { --tc: #0891B2; } /* sarcelle */
.team-grid .team-card:nth-child(11n+8) { --tc: #374151; } /* ambre bronze */
.team-grid .team-card:nth-child(11n+9) { --tc: #15803D; } /* vert sauge */
.team-grid .team-card:nth-child(11n+10) { --tc: #4338CA; } /* indigo */
.team-grid .team-card:nth-child(11n+11) { --tc: #A2145E; } /* magenta expérience */

.team-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  position: relative;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 55%, transparent);
  transition: box-shadow .35s ease;
}
.team-card:hover .team-avatar { box-shadow: 0 0 0 3px var(--tc), 0 6px 18px -4px color-mix(in srgb, var(--tc) 60%, transparent); }
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) contrast(.98);
  transition: filter .5s ease, transform .5s cubic-bezier(.4,0,.2,1);
}
.team-card:hover .team-avatar img { filter: saturate(1.15) contrast(1.02); transform: scale(1.06); }
/* Initiales : dégradé vivant au lieu du flat translucide */
.avatar-red, .avatar-dark {
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 85%, white 0%), color-mix(in srgb, var(--tc) 60%, black 25%));
  color: var(--white);
}
.team-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .78rem; color: color-mix(in srgb, var(--tc) 80%, var(--black) 15%); font-weight: 700; display: block; margin-bottom: 8px; }
.team-info p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.team-linkedin { font-size: .78rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.team-linkedin:hover { color: var(--tc); }
@media (prefers-reduced-motion: reduce) {
  .team-card, .team-card::before, .team-avatar, .team-avatar img { transition: none !important; }
  .team-card:hover { transform: none !important; }
  .team-card:hover .team-avatar img { transform: none !important; }
}

/* CDC design V38 §5 : carte Direction mise en avant, sur le modèle de la
   carte .eqc.feat de Le Nid de Cocody — centrée, agrandie, distincte de la
   grille standard qui suit en dessous. */
.team-grid--feat { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto 32px; }
.team-card--feat {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  /* V49 — dégradé noir profond avec pointe de champagne en bas-droite,
     au lieu du noir plat : la direction reste sobre (pas de couleur
     d'univers ici, c'est une personne, pas un pôle) mais gagne en
     profondeur et en lumière */
  background: radial-gradient(circle at 70% 120%, color-mix(in srgb, var(--champagne) 18%, transparent) 0%, transparent 55%), var(--black);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.team-card--feat::before { content: none; } /* pas de halo tournant ici : la direction n'est pas un pôle coloré */
.team-card--feat .team-avatar {
  width: 96px; height: 96px; font-size: 1.5rem; margin-bottom: 4px;
  box-shadow: 0 0 0 3px var(--champagne), 0 8px 24px -6px color-mix(in srgb, var(--champagne) 55%, transparent);
}
.team-card--feat .team-avatar img { filter: saturate(1.05) contrast(1.02); }
.team-card--feat:hover .team-avatar img { transform: scale(1.05); }
.team-card--feat .team-info h3 { color: var(--white); font-size: 1.15rem; }
.team-card--feat .team-info p { color: rgba(255,255,255,.65); max-width: 440px; }
.team-badge-direction {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

/* ── Outils par catégorie ────────────────────────────────── */
.tools-by-cat { display: flex; flex-direction: column; gap: 28px; margin-top: 48px; }
.tools-cat-group { display: flex; align-items: flex-start; gap: 24px; }
.tools-cat-label { min-width: 120px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); padding-top: 8px; }
.tools-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 16px; transition: border-color .3s; }
.tool-chip:hover { border-color: rgba(165,0,0,.4); }
.tool-name { font-size: .85rem; font-weight: 600; }
@media (max-width: 600px) { .tools-cat-group { flex-direction: column; gap: 8px; } }

/* ── Cookie banner ajustements ───────────────────────────── */
#cookie-banner { display: none; }

/* ── Barre de progression de lecture (scroll) ────────────── */
.scroll-progress {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, #C9A84C 100%);
  z-index: 10000;
  transition: width .25s linear, top .3s;
}

/* ── Bouton retour en haut ────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 96px; /* à gauche du bouton WhatsApp, jamais superposé */
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); }
@media (max-width: 600px) {
  .back-to-top { right: 20px; bottom: 92px; width: 44px; height: 44px; }
  .whatsapp-float { right: 20px; bottom: 28px; }
}

