/* ==========================================================================
   EXIGENCES GROUPE — SECTIONS
   Chaque bloc = 1 section Elementor. Layouts en flex uniquement
   (les `grid` utilisés ici sont de simples grilles régulières,
   reproductibles avec des conteneurs flex + largeur % dans Elementor).
   ========================================================================== */

/* --------------------------------------------------------------------------
   PREUVE / BANDEAU RÉFÉRENCES  (le récit fondateur — actif le plus fort)
   -------------------------------------------------------------------------- */
.proof {
  background: var(--color-surface-inverse);
  color: var(--color-text-inverse);
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border-inverse);
}
.proof__label {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--eg-ink-400);
  margin-bottom: var(--space-5);
}
.proof__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-7);
}
.proof__item {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--eg-ink-200);
  letter-spacing: var(--tracking-wide);
  transition: color var(--dur-base) var(--ease-out);
}
.proof__item:hover {
  color: var(--eg-gold-400);
}
.proof__note {
  text-align: center;
  font-size: var(--text-xs);
  /* ink-300 et non ink-500 : cette note porte une clarification essentielle
     (ce ne sont pas des références clients) — elle doit rester lisible, AA. */
  color: var(--eg-ink-300);
  margin-top: var(--space-5);
  max-width: 70ch;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   CHIFFRES CLÉS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.stat {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border-left: 2px solid var(--color-border);
}
.stat:first-child {
  border-left: none;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: var(--tracking-tighter);
  display: block;
  margin-bottom: var(--space-3);
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

/* --------------------------------------------------------------------------
   PÔLES / EXPERTISES  — 4 cartes
   -------------------------------------------------------------------------- */
.poles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.pole {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.pole::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pole-color, var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.pole:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
}
.pole:hover::before {
  transform: scaleX(1);
}
.pole__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.pole__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pole-color, var(--color-accent)) 12%, transparent);
  color: var(--pole-color, var(--color-accent));
  flex-shrink: 0;
}
.pole__icon svg {
  width: 26px;
  height: 26px;
}
.pole__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: 2px;
}
.pole__tagline {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}
.pole__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}
.pole__services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.pole__services li {
  font-size: var(--text-xs);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
}
.pole__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.pole__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--pole-color, var(--color-accent));
  transition: gap var(--dur-base) var(--ease-out);
}
.pole__link:hover {
  gap: var(--space-3);
}

/* Variante « destination pas encore ouverte ». Ce n'est pas un lien : rien à
   cliquer tant que le site du pôle n'existe pas. On garde l'emplacement et la
   lisibilité du libellé, sans la flèche ni l'affordance de clic — promettre une
   page qui renvoie une 404 coûte plus de crédibilité que de l'annoncer. */
.pole__link--soon {
  color: var(--color-text-muted);
  font-style: italic;
  cursor: default;
}
.pole__link--soon:hover {
  gap: var(--space-2);
}

/* Badge état (En développement / Actif) — jamais de fausse promesse */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge--soon {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.badge--live {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   POURQUOI NOUS  — split texte / liste
   -------------------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}
.why__sticky {
  position: sticky;
  top: 120px;
}
.why__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.why__item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.why__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.why__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  flex-shrink: 0;
  width: 32px;
  padding-top: 4px;
  letter-spacing: var(--tracking-wide);
}
.why__body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.why__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   RÉALISATIONS  — galerie avec masque au survol
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-7);
}
.filter {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 0.55em 1.3em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  background: transparent;
}
.filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.filter.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--eg-ink-900);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.project.hidden {
  display: none;
}
.project__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* la "distorsion" demandée, en pur CSS : scale + clip, aucun WebGL */
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out),
              filter var(--dur-slow) var(--ease-out);
  filter: saturate(.9) brightness(.85);
}
.project:hover .project__media img {
  transform: scale(1.09);
  filter: saturate(1.05) brightness(1);
}
.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(7, 12, 21, .92) 0%,
              rgba(7, 12, 21, .55) 40%,
              rgba(7, 12, 21, .1) 100%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.project__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  color: var(--eg-white);
  z-index: var(--z-base);
}
.project__cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--eg-gold-300);
  margin-bottom: var(--space-2);
}
.project__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}
.project__meta {
  font-size: var(--text-sm);
  color: var(--eg-ink-300);
  /* révélation au survol */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}
.project:hover .project__meta,
.project:focus-visible .project__meta {
  max-height: 140px;
  opacity: 1;
}
/* Le domaine, affiché tel quel : c'est la seule promesse vérifiable qu'on peut
   faire sur une réalisation — le visiteur voit où le lien l'emmène avant de
   cliquer. La flèche est dans le HTML (caractère), pas en pseudo-élément :
   Elementor conserve le texte, pas le CSS des widgets. */
.project__url {
  display: inline-block;
  margin-top: var(--space-1);
  color: var(--eg-gold-300);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

/* Au doigt il n'y a pas de survol : le descriptif resterait invisible.
   Il est donc affiché en permanence dès que le pointeur est grossier. */
@media (hover: none) {
  .project__meta { max-height: 140px; opacity: 1; }
}

/* Carte « émission » : identique à .project mais déclenche un lecteur au lieu
   d'une navigation. C'est un <button>, pas un <a> — il n'y a pas de page de
   destination, seulement une vidéo à ouvrir.
   ELEMENTOR : widget « Vidéo », source YouTube, Lightbox activé, image de
   couverture personnalisée. Aucun code à reporter. */
.project--video {
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
}
.project__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .92);
  color: var(--eg-ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-base);
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.project__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px; /* recentre optiquement le triangle */
}
.project--video:hover .project__play,
.project--video:focus-visible .project__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--eg-gold-400);
  color: var(--eg-ink-950);
}
/* Emplacement vidéo non encore renseigné : on le dit, on ne le simule pas. */
.project--pending .project__play {
  background: rgba(255, 255, 255, .18);
  color: var(--eg-white);
  box-shadow: none;
}
.project--pending {
  cursor: default;
  /* le bouton est désactivé ; certains navigateurs le grisent d'office alors
     que la carte, elle, reste une vraie vignette à montrer en recette */
  opacity: 1;
}
/* Le repère « épisode à sélectionner » s'adresse à la recette : il doit être lu
   sans survol, sinon il passe inaperçu sur mobile — là où le client relit. */
.project--pending .project__meta {
  max-height: 140px;
  opacity: 1;
}

/* Lien vers la chaîne, sous la galerie */
.channel-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.channel-link svg {
  width: 22px;
  height: 22px;
  color: #FF0000; /* rouge de marque YouTube — identification immédiate */
  flex-shrink: 0;
}
.channel-link:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   CASE — fiche projet détaillée (page Réalisations)
   Édito : image principale + secondaire en collage, texte à côté.
   -------------------------------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.case:first-of-type { padding-top: 0; }
.case:last-child { border-bottom: none; padding-bottom: 0; }
.case--reverse .case__body { order: 1; }
.case--reverse .case__media { order: 2; }
.case__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.case__media > img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: block;
}
.case__media--secondary {
  width: 82%;
  margin-top: calc(-1 * var(--space-5));
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.case__media--secondary img {
  width: 100%;
  height: auto;
  display: block;
}
.case__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.case__body > p {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}
.case__meta {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  margin-bottom: var(--space-4) !important;
}

/* --------------------------------------------------------------------------
   VIDEOS — cartes vidéo cliquables (page Réalisations / Accueil)
   -------------------------------------------------------------------------- */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.videos__item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-inverse);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
}
.videos__item:hover,
.videos__item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}
.videos__item figure {
  margin: 0;
  position: relative;
}
.videos__item figure > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.videos__item figcaption {
  position: relative;
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--eg-ink-900);
}
.videos__item figcaption h3 {
  color: var(--eg-white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}
.videos__item .project__play {
  background: rgba(196, 48, 43, .95); /* rouge YouTube pour les émissions */
  /* remonte le bouton pour qu'il couvre l'image (et non la légende) */
  top: calc(50% - 56px);
}
.videos__item:hover .project__play {
  background: var(--eg-gold-400);
  color: var(--eg-ink-950);
}

/* --------------------------------------------------------------------------
   PROCESSUS  — 4 étapes
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--space-6);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--eg-gold-200);
  display: block;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-border);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.section--dark .step::after {
  background: var(--color-border-inverse);
}
.section--dark .step::before {
  color: var(--eg-gold-500);
}
.section--dark .step p {
  color: var(--eg-ink-300);
}

/* --------------------------------------------------------------------------
   ACTUALITÉS
   -------------------------------------------------------------------------- */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.article {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.article__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.article:hover .article__media img {
  transform: scale(1.05);
}
.article__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.article__cat {
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.article__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}
.article__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.article__link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--dur-base);
}
.article:hover .article__link {
  gap: var(--space-3);
}
/* --------------------------------------------------------------------------
   TIMELINE — histoire du groupe (page À propos)
   Une ligne verticale qui part de l'or (le passé fondateur) vers le neutre.
   Le point de jalons est posé sur la ligne : centre du point aligné sur le
   centre de la ligne (padding-left = décalage du point, cf. calc ci-dessous).
   ELEMENTOR : liste d'icônes imbriquée dans un conteneur à bordure gauche,
   ou widget « Timeline » tiers — sinon reporter ce bloc tel quel.
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: var(--space-7);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 60ch;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  /* centre du point (6px) ramené sur le centre de la ligne (left 5px + 1px) */
  left: calc(-1 * var(--space-6));
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}
.timeline__item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.timeline__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding-block: var(--section-y);
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%,
              rgba(201, 153, 47, .18), transparent 70%);
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  z-index: var(--z-base);
  max-width: 720px;
  margin-inline: auto;
}
.cta-final h2 {
  font-size: var(--text-5xl);
  color: var(--eg-white);
  margin-bottom: var(--space-4);
}
.cta-final p {
  font-size: var(--text-lg);
  color: var(--eg-ink-300);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}
.cta-final__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--eg-ink-950);
  color: var(--eg-ink-300);
  padding-block: var(--space-8) var(--space-5);
  font-size: var(--text-sm);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border-inverse);
}
.footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--eg-ink-200);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.footer__desc {
  color: var(--eg-ink-400);
  line-height: var(--leading-relaxed);
  max-width: 42ch;
  font-size: var(--text-sm);
}
.footer h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--eg-white);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  color: var(--eg-ink-300);
  transition: color var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
}
.footer__links a:hover {
  color: var(--eg-gold-400);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--eg-ink-300);
  line-height: var(--leading-snug);
}
.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--eg-gold-400);
  flex-shrink: 0;
  margin-top: 3px;
}
/* Intitulé de l'implantation (Dakar / Paris) : deux adresses côte à côte
   deviennent illisibles sans un repère fort en tête de bloc. */
.footer__place {
  color: var(--eg-white);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}
.footer__contact-item a:hover {
  color: var(--eg-gold-400);
}
.footer__bottom {
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--eg-ink-500);
  font-size: var(--text-xs);
}
.footer__social {
  display: flex;
  gap: var(--space-2);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eg-ink-300);
  transition: all var(--dur-base) var(--ease-out);
}
.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201, 153, 47, .08);
}
.footer__social svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   PARALLAX / SCROLL EFFECTS
   -------------------------------------------------------------------------- */
.parallax {
  will-change: transform;
}
.parallax-bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}
.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   EN-TÊTE DE PAGE INTÉRIEURE  (mentions légales, confidentialité, etc.)
   Bandeau sombre court : il pose le titre sans voler l'espace du contenu,
   et il rattrape l'en-tête transparent qui, sinon, se poserait sur du blanc.
   ELEMENTOR : conteneur pleine largeur, fond « --color-bg-inverse », un
   widget « Fil d'Ariane », un widget « Titre », un « Éditeur de texte ».
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding: calc(var(--space-10) + 20px) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
/* Filet doré en fond, très atténué : même signature visuelle que le hero
   sans en reprendre le poids. */
.page-head::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(201, 153, 47, .14) 0%, transparent 70%);
  pointer-events: none;
}
.page-head h1 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  margin: var(--space-4) 0 var(--space-4);
  max-width: 22ch;
}
.page-head__lead {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}
.page-head__meta {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--eg-gold-300);
  letter-spacing: var(--tracking-wide);
}

/* Fil d'Ariane — ELEMENTOR : widget « Fil d'Ariane » (Yoast/RankMath) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
}
.breadcrumb a { color: var(--color-text-inverse-muted); }
.breadcrumb a:hover { color: var(--eg-gold-300); }
.breadcrumb [aria-current] { color: var(--eg-white); }
.breadcrumb__sep { color: var(--eg-ink-600); }

/* --------------------------------------------------------------------------
   PAGE LÉGALE — sommaire ancré + corps de texte
   Deux colonnes flex : le sommaire reste visible pendant la lecture, sinon
   un document de cette longueur devient impraticable.
   ELEMENTOR : conteneur flex horizontal ; colonne 1 en position collante
   (Avancé > CSS personnalisé : position:sticky), colonne 2 = un widget
   « Éditeur de texte » par rubrique.
   -------------------------------------------------------------------------- */
.legal {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-9);
}
.legal__toc {
  position: sticky;
  top: 110px;
  align-self: start;
  min-width: 0;
}
.legal__toc h2 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--color-border);
}
.legal__toc a {
  display: block;
  padding: var(--space-2) var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.legal__toc a:hover,
.legal__toc a:focus-visible {
  color: var(--color-text);
  border-left-color: var(--color-accent);
}
.legal__body { flex: 1 1 auto; min-width: 0; }
.legal__body section + section { margin-top: var(--space-8); }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.legal__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: var(--space-6) 0 var(--space-3);
}
.legal__body p,
.legal__body li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-secondary);
  max-width: var(--container-text);
}
.legal__body p + p { margin-top: var(--space-4); }
.legal__body ul,
.legal__body ol.legal-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
  list-style: none;
}
.legal__body ul li,
.legal__body ol.legal-list li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}
.legal__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}
.legal__body ol.legal-list { counter-reset: ll; }
.legal__body ol.legal-list li { counter-increment: ll; }
.legal__body ol.legal-list li::before {
  content: counter(ll) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}
.legal__body strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.legal__body a:not(.btn) {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}
.legal__body a:not(.btn):hover { color: var(--color-accent-hover); }

/* Bloc d'identité : une suite de paires libellé / valeur. Un tableau serait
   plus sémantique mais Elementor n'a pas de widget tableau natif ; un <dl>
   se reproduit tel quel dans un « Éditeur de texte ».
   ELEMENTOR : widget « Éditeur de texte » ou « Liste d'icônes ». */
.identity {
  margin: var(--space-5) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}
.identity > div { flex: 1 1 220px; min-width: 0; }
.identity dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.identity dd {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}
.identity dd span { font-variant-numeric: tabular-nums; }

/* Bloc d'identité dont les valeurs ne sont pas encore connues : le liseré passe
   de l'or à l'ambre d'alerte, pour qu'on ne le prenne pas pour un bloc validé. */
.identity--pending { border-left-color: var(--color-warning); }

/* Valeur manquante assumée. Les crochets sont ajoutés en CSS et non dans le
   texte : le jour où la donnée arrive, on remplace le contenu et on retire la
   classe, sans avoir à traquer des crochets orphelins dans le HTML.
   ELEMENTOR : à supprimer purement et simplement — un site en production ne
   doit plus contenir aucun élément portant cette classe. */
.placeholder {
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-warning);
}
.placeholder::before { content: '['; }
.placeholder::after  { content: ']'; }

/* Tableau des durées de conservation / finalités : deux colonnes de texte.
   Un vrai <table> reste la bonne sémantique pour des données appariées, et
   il passe sans dommage dans un widget « Éditeur de texte ». */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
}
.legal-table caption {
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-3);
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  line-height: var(--leading-normal);
}
.legal-table th {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
}
.legal-table thead th {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom-color: var(--color-border-strong);
  white-space: normal;
}
.legal-table td { color: var(--color-secondary); }
.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   CONTACT — page contact : coordonnées + formulaire
   ELEMENTOR : section à deux colonnes — colonne infos (image + cartes
   coordonnées) et widget « Formulaire » (nom, e-mail, téléphone, objet,
   message).
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: start;
}

.contact__intro h2,
.contact-panel__head h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
}

.contact__lead {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.contact__media {
  margin-top: var(--space-6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.contact-item:hover {
  border-color: var(--eg-gold-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--eg-gold-600);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: var(--text-base); }
.contact-item p {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}
/* Un item flex a une largeur minimale implicite « auto » : sans min-width: 0,
   un long mot insécable (adresse e-mail) déborde de la carte au lieu de
   se replier. */
.contact-item > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-item a:hover { color: var(--color-accent); }

/* Panneau du formulaire — filet doré signature en haut */
.contact-panel {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--eg-gold-300), var(--eg-gold-500));
}
.contact-panel__head p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

.contact-form { margin-top: var(--space-6); }
.contact-form .form-status { margin-bottom: var(--space-2); }
.contact-form .select.is-empty { color: var(--eg-ink-400); }
.contact-form__submit {
  width: 100%;
  justify-content: center;
}
.contact-form__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}
.contact-form__note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form__note a:hover { color: var(--color-accent); }


/* --------------------------------------------------------------------------
   CARRIÈRES — Recherche d'offres d'emploi
   -------------------------------------------------------------------------- */
.jobs {
  display: grid;
  gap: var(--space-7);
}

/* Intro + visuel */
.jobs__intro { max-width: 60ch; }
.jobs__lead {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-md);
}
.jobs__media {
  position: relative;
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.jobs__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 15, 30, .45));
  pointer-events: none;
}
.jobs__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Panneau de recherche */
.jobs-panel {
  position: relative;
  padding: var(--space-7) clamp(var(--space-5), 5vw, var(--space-8));
  background: var(--color-surface);
  border: 1px solid rgba(13, 27, 62, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.jobs-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(201, 162, 39, 0));
}
.jobs-panel__head h2 { font-size: var(--text-xl); }
.jobs-panel__head p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.jobs-search {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.jobs-search__submit svg { width: 18px; height: 18px; }

/* Badge état vide — aucune offre disponible */
.jobs-empty {
  margin-top: var(--space-7);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  border: 1px dashed rgba(201, 162, 39, .45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(201, 162, 39, .07), transparent 70%),
    var(--color-bg-alt, #f8f9fc);
}
.jobs-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--color-accent);
  background: rgba(201, 162, 39, .12);
}
.jobs-empty__icon svg { width: 26px; height: 26px; }
.jobs-empty__title {
  margin-top: var(--space-4);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}
.jobs-empty__desc {
  max-width: 46ch;
  margin: var(--space-2) auto 0;
  color: var(--color-text-muted);
}
.jobs-empty .btn {
  margin-top: var(--space-5);
}
/* Variante outline lisible sur fond clair (btn-ghost est prévu pour fonds sombres) */
.jobs-empty .btn-ghost {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.jobs-empty .btn-ghost:hover {
  background: var(--color-accent);
  color: #fff;
}
.jobs-empty.is-shake { animation: jobs-shake .5s ease; }

@keyframes jobs-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

@media (max-width: 768px) {
  .jobs-search { grid-template-columns: 1fr; }
  .jobs-search__submit { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — SECTIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .projects,
  .articles { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .why {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .why__sticky { position: static; }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  /* En tablette, on conserve les deux colonnes en les resserrant : le
     sommaire reste à gauche tant que la largeur le permet. */
  .legal {
    grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
    column-gap: var(--space-6);
  }
  .legal__toc a { padding: var(--space-2) var(--space-3); }
  /* Contact : on resserrre avant de passer à une colonne */
  .contact { gap: var(--space-6); }
}

@media (max-width: 768px) {
  .poles { grid-template-columns: 1fr; }
  .projects,
  .articles { grid-template-columns: 1fr; }
.case { grid-template-columns: 1fr; gap: var(--space-5); }
  .case--reverse .case__body { order: 0; }
  .case--reverse .case__media { order: 1; }
  .videos { grid-template-columns: 1fr; }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .stat {
    padding: var(--space-4) var(--space-2);
  }
  .stat__value { font-size: var(--text-4xl); }
  .cta-final h2 { font-size: var(--text-4xl); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .proof__list { gap: var(--space-3) var(--space-5); }
  .proof__item { font-size: var(--text-base); }
  .page-head { padding: calc(var(--space-9) + 20px) 0 var(--space-7); }
  .page-head h1 { font-size: var(--text-4xl); }
  .identity { padding: var(--space-4) var(--space-5); }
  /* Contact : une seule colonne — coordonnées puis formulaire. */
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__info { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { padding: var(--space-5); }
  /* Un tableau à cellules figées déborde : les libellés reprennent la main. */
  .legal-table th { white-space: normal; }
  /* Sommaire : une seule colonne devient indispensable. */
  .legal {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .legal__toc { position: static; }
}

@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
  .cta-final__actions { flex-direction: column; }
  .cta-final__actions .btn { width: 100%; }
  .filters { gap: 6px; }
  .filter { font-size: var(--text-xs); padding: 0.5em 1em; }
}