/* ==========================================================================
   Jean Sylvain Dossou — Site officiel
   Design 100% custom — Thème sombre dominant, accent or unique
   ========================================================================== */

:root {
  /* Palette officielle — thème sombre dominant, le noir décline en
     nuances entre elles, jamais de fond clair. */
  --blanc:           #FFFFFF;  /* titres */
  --noir:            #111111;  /* texte de structure (logo, liens clairs sur or) */

  /* Fonds — hiérarchie par nuances de noir uniquement */
  --noir-profond:    #0A0A0A;  /* fond principal, sections standard */
  --noir-section:    #101010;  /* alternance entre sections adjacentes */
  --noir-surface:    #161616;  /* cartes, bandes, encarts */
  --noir-eleve:      #1E1E1E;  /* hover de carte, éléments actifs */

  /* Accent — seule couleur hors noir/blanc */
  --or:              #D4AF37;
  --or-clair:        #E5C158;  /* hover */
  --or-sombre:       #A88A2B;  /* bordures discrètes, dégradés */

  /* Texte */
  --gris-clair:      #D0D0D0;  /* texte courant */
  --gris-texte:      #9A9A9A;  /* texte secondaire, légendes */

  /* Séparateurs */
  --bordure:         rgba(212, 175, 55, 0.15);
  --bordure-neutre:  rgba(255, 255, 255, 0.08);

  --font-titres: "Playfair Display", Georgia, serif;
  --font-texte: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1180px;
  --header-height: 76px;
  --transition-rapide: 0.2s ease;
  --transition-normale: 0.4s ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--noir-profond);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-titres);
  color: var(--blanc);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { color: var(--gris-texte); margin: 0 0 1rem; }

.icon {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  color: currentColor;
  vertical-align: -0.25em;
}

.svg-sprite-defs { display: none; }
.icon-sm { width: 1em; height: 1em; }

/* --------------------------------------------------------------------------
   Préloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noir);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Bouton retour en haut
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 45px;
  bottom: 45px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noir-surface);
  border: 2px solid var(--or);
  color: var(--or);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--or); color: var(--noir-profond); }
.back-to-top .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Scrollbar custom
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--noir-section); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--or), var(--or-sombre));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--or-clair); }
* { scrollbar-color: var(--or) var(--noir-section); scrollbar-width: thin; }

/* --------------------------------------------------------------------------
   Layout / conteneurs
   -------------------------------------------------------------------------- */
.container,
.site-header-inner,
.site-footer-inner,
.counters,
.intro,
.cta-banner,
.page-header,
.timeline-section,
.values-section,
.quote-section,
.filiales-section,
.vision-section,
.contact-section {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

section { padding: 90px 0; }
.hero { padding: 0; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all var(--transition-rapide);
}

/* Boutons unifiés : primaire plein or, secondaire contour or. Un seul
   couple de styles pour tout le site (le bouton bordeaux est retiré). */
.btn-outline {
  background: transparent;
  border-color: var(--or);
  color: var(--or);
}
.btn-outline:hover {
  background: var(--or);
  color: var(--noir-profond);
}

.btn-filled {
  background: var(--or);
  border-color: var(--or);
  color: var(--noir-profond);
}
.btn-filled:hover {
  background: var(--or-clair);
  border-color: var(--or-clair);
  color: var(--noir-profond);
}

.btn-block { width: 100%; }
.btn-sm { padding: 13px 30px; font-size: 0.82rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blanc);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-rapide), gap var(--transition-rapide), color var(--transition-rapide);
}
.link-arrow .icon { color: var(--or); }
.link-arrow:hover {
  border-color: var(--or);
  gap: 14px;
  color: var(--or-clair);
}

/* --------------------------------------------------------------------------
   Header (élément de structure : reste sur fond noir)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--bordure-neutre);
  transition: box-shadow var(--transition-normale), border-color var(--transition-normale);
}
/* Le flou est isolé dans un pseudo-élément : mettre backdrop-filter
   directement sur .site-header créerait un containing block pour ses
   descendants en position:fixed (dont le menu mobile), qui se mettrait
   alors à défiler avec la page au lieu de rester ancré à l'écran. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  transition: background var(--transition-normale), backdrop-filter var(--transition-normale);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Sur la home, le header flotte transparent sur le hero sombre tant qu'on
   n'a pas scrollé (comme Poseify) ; ailleurs il reste toujours opaque pour
   rester lisible dès le chargement de la page. */
body.has-transparent-header .site-header:not(.is-scrolled)::before {
  background: transparent;
  backdrop-filter: none;
}
body.has-transparent-header .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-titres);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Nav centrée entre logo et CTA, indépendamment de la largeur de chacun */
@media (min-width: 993px) {
  .site-header-inner { position: relative; }
  .main-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.header-cta { flex-shrink: 0; }

.nav-link {
  position: relative;
  color: var(--blanc);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--or);
  transition: width var(--transition-rapide);
}
.nav-link:hover { color: var(--or); }
.nav-link:hover::after { width: 100%; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--or);
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
}
.burger .icon { width: 26px; height: 26px; }
.burger-icon-close { display: none; }
.burger.is-open .burger-icon-open { display: none; }
.burger.is-open .burger-icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero (élément de structure : reste sur fond noir profond)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  text-align: center;
  background: var(--noir);
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}
/* Renfort de lisibilité sous le header transparent, indépendant du voile
   de chaque diapositive : reste identique sur les 3 slides. */
.hero-slides::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 4;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
  z-index: 1;
}
/* Images de fond en classes dédiées (plutôt qu'en style="" inline) pour
   rester compatible avec la Content-Security-Policy stricte du site,
   qui n'autorise pas les styles inline (style-src sans unsafe-inline). */
.hero-bg-1 { background-image: url("../images/hero-slide-1.3bc0da55ddbe.jpg"); }
.hero-bg-2 { background-image: url("../images/hero-slide-2.ee44d5983805.jpg"); }
.hero-bg-3 { background-image: url("../images/hero-slide-3.2aab94310a2e.jpg"); }

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Voile plat à 70% (comme le rgba(0,0,0,.7) de Poseify sur .carousel-caption),
   plutôt qu'un dégradé, pour une lisibilité constante du texte. */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 17, 17, 0.7);
}

.hero-slide-caption {
  position: relative;
  z-index: 6;
  max-width: 760px;
  padding: 100px 24px 60px;
}
.hero-slide-caption > * {
  opacity: 0;
  transform: translateY(26px);
}
.hero-slide.is-active .hero-slide-caption > * {
  animation: hero-caption-in 0.8s ease forwards;
}
.hero-slide.is-active .hero-slide-caption > *:nth-child(1) { animation-delay: 0.1s; }
.hero-slide.is-active .hero-slide-caption > *:nth-child(2) { animation-delay: 0.25s; }
.hero-slide.is-active .hero-slide-caption > *:nth-child(3) { animation-delay: 0.4s; }
.hero-slide.is-active .hero-slide-caption > *:nth-child(4) { animation-delay: 0.55s; }
@keyframes hero-caption-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-texte);
  color: var(--or-clair);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Eyebrow à traits décoratifs de part et d'autre du texte (façon Poseify) :
   le wrapper masque le débord des traits, trop longs pour être mesurés
   précisément en CSS pur. Variante centrée (traits des 2 côtés) et
   variante alignée à gauche (trait à droite seulement). */
.eyebrow-wrap,
.eyebrow-wrap-center {
  display: block;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.eyebrow-wrap-center { text-align: center; }
.eyebrow-wrap .eyebrow,
.eyebrow-wrap-center .eyebrow,
.eyebrow-wrap-center .hero-eyebrow {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}
.eyebrow-wrap .eyebrow::after,
.eyebrow-wrap-center .eyebrow::after,
.eyebrow-wrap-center .hero-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  width: 400px;
  height: 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.45;
}
.eyebrow-wrap-center .eyebrow::before,
.eyebrow-wrap-center .hero-eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 16px);
  width: 400px;
  height: 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.45;
}

.hero-title {
  color: var(--or);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.35), 0 4px 18px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
  font-family: var(--font-texte);
  color: var(--or-clair);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 2.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--blanc);
  transition: background var(--transition-rapide), border-color var(--transition-rapide), color var(--transition-rapide);
}
.hero-nav:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--noir);
}
.hero-nav .icon { width: 20px; height: 20px; }
.hero-nav-prev { left: 20px; }
.hero-nav-prev .icon { transform: rotate(180deg); }
.hero-nav-next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  transition: background var(--transition-rapide), transform var(--transition-rapide);
}
.hero-dot.is-active {
  background: var(--or);
  transform: scale(1.35);
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--or);
  border-radius: 14px;
  z-index: 6;
}
.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--or);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* --------------------------------------------------------------------------
   Séparateurs
   -------------------------------------------------------------------------- */
.separator {
  height: 1px;
  max-width: var(--container-width);
  margin: 0 auto;
  background: linear-gradient(90deg, var(--or) 0%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Compteurs
   -------------------------------------------------------------------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.counters-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.counter-item {
  text-align: center;
  border-left: 1px solid var(--bordure-neutre);
  padding-left: 20px;
}
.counter-item:first-child { border-left: none; padding-left: 0; }

.counter-number {
  display: block;
  font-family: var(--font-titres);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--or);
}

.counter-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Intro (photo + texte)
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--noir-profond);
  padding-top: 70px;
  padding-bottom: 70px;
}

.eyebrow {
  display: block;
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
/* Sur le panneau sombre de l'intro, l'or foncé (calibré pour fond clair)
   perd trop de contraste : on repasse à l'or plein. */
.intro-text .eyebrow { color: var(--or); }

.intro-text h2 {
  display: inline-block;
  color: var(--blanc);
  padding: 12px 0;
  border-top: 1px solid var(--or);
  border-bottom: 1px solid var(--or);
  margin-bottom: 1.4rem;
}

.intro-text p { color: var(--gris-texte); line-height: 1.8; }

.checklist { margin: 0 0 2rem; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--noir-surface);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  color: var(--blanc);
  font-weight: 500;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist .icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 8px;
  box-sizing: border-box;
  background: var(--or);
  color: var(--noir-profond);
  border-radius: 50%;
}

.intro-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.intro-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
/* Voile sombre pour fondre une photo à fond clair dans le thème sombre,
   même principe que .hero-slide-overlay. */
.intro-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  pointer-events: none;
}

.intro-photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  text-align: center;
  background: var(--noir-section);
  border-top: 3px solid var(--or);
}
.cta-banner p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Page header générique
   -------------------------------------------------------------------------- */
.page-header {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 40px;
}
.page-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.chapter-title {
  text-align: center;
  margin-bottom: 60px;
}

.chapter-photo {
  position: relative;
  display: block;
  width: 220px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 30px;
  border: 1px solid var(--or);
  padding: 8px;
}
/* Voile sombre pour fondre une photo à fond clair dans le thème sombre,
   même principe que .hero-slide-overlay. */
.chapter-photo::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 10, 10, 0.35);
  pointer-events: none;
}
.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--or), var(--or-sombre));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 50px 60px;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 4px var(--noir-profond), 0 0 14px rgba(212, 175, 55, 0.5);
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

.timeline-content {
  background: var(--noir-surface);
  border: 1px solid var(--bordure-neutre);
  padding: 26px 30px;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-titres);
  color: var(--or);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-lieu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--or);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.timeline-item.left .timeline-lieu { flex-direction: row-reverse; }

.timeline-content p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Valeurs
   -------------------------------------------------------------------------- */
.values-section { text-align: center; }

.values-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
}

/* Survol à "rideau" : deux panneaux or glissent depuis les bords et se
   rejoignent au centre (adaptation du mécanisme à panneaux de Poseify,
   sans photo puisque chaque carte est un simple bloc texte+icône). */
.value-card {
  position: relative;
  overflow: hidden;
  background: var(--noir-surface);
  border: 1px solid var(--bordure-neutre);
  padding: 34px 26px;
  transition: transform var(--transition-rapide), border-color var(--transition-rapide);
}
.value-card::before,
.value-card::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--or);
  transition: width var(--transition-normale) ease;
  z-index: 0;
}
.value-card::before { left: 0; }
.value-card::after { right: 0; }
.value-card > * { position: relative; z-index: 1; }
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--or);
}
.value-card:hover::before,
.value-card:hover::after {
  width: 50%;
}
.value-card:hover h3,
.value-card:hover p,
.value-card:hover .value-icon {
  color: var(--noir);
  transition-delay: 0.15s;
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--or);
  margin-bottom: 18px;
  transition: color var(--transition-normale);
}

.value-card h3 { margin-bottom: 8px; transition: color var(--transition-normale); }
.value-card p { margin-bottom: 0; font-size: 0.92rem; transition: color var(--transition-normale); }

/* --------------------------------------------------------------------------
   Citation
   -------------------------------------------------------------------------- */
.quote-section { text-align: center; }
.quote-section blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-titres);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--or);
  font-style: italic;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Filiales (page Groupe)
   -------------------------------------------------------------------------- */
.filiales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.filiale-card {
  position: relative;
  overflow: hidden;
  background: var(--noir-surface);
  border: 1px solid var(--bordure-neutre);
  border-top: 3px solid var(--or);
  padding: 36px 28px;
  transition: color var(--transition-normale);
}
.filiale-card::before,
.filiale-card::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--or);
  transition: width var(--transition-normale) ease;
  z-index: 0;
}
.filiale-card::before { left: 0; }
.filiale-card::after { right: 0; }
.filiale-card > * { position: relative; z-index: 1; }
.filiale-card:hover::before,
.filiale-card:hover::after {
  width: 50%;
}
.filiale-card:hover h3,
.filiale-card:hover p,
.filiale-card:hover .filiale-domaine,
.filiale-card:hover .filiale-icon {
  color: var(--noir);
  transition-delay: 0.15s;
}

.filiale-icon {
  width: 42px;
  height: 42px;
  color: var(--or);
  margin-bottom: 20px;
  transition: color var(--transition-normale);
}

.filiale-domaine {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--or);
  margin-bottom: 14px;
  transition: color var(--transition-normale);
}

.filiale-card h3 { transition: color var(--transition-normale); }
.filiale-card p { margin-bottom: 0; transition: color var(--transition-normale); }

/* --------------------------------------------------------------------------
   Vision (panneau mis en avant, bordure or)
   -------------------------------------------------------------------------- */
.vision-section {
  background: var(--noir-surface);
  border: 1px solid var(--bordure);
  text-align: center;
  border-radius: 2px;
}
.vision-section p {
  color: var(--gris-clair);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Formulaire de contact
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: var(--noir-surface);
  border: 1px solid var(--bordure-neutre);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: 0.98rem;
  padding: 14px 16px;
  transition: border-color var(--transition-rapide), box-shadow var(--transition-rapide);
}
.form-input::placeholder { color: var(--gris-texte); }
.form-input:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-textarea { resize: vertical; }

.form-error {
  color: var(--or-clair);
  font-weight: 600;
  font-size: 0.82rem;
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--or-clair);
}

/* Champ piège anti-bot : hors écran plutôt que display:none, que certains
   robots savent détecter et contourner. */
.hp-field-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.messages { max-width: 680px; margin: 0 auto 26px; }

.alert {
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid;
  font-size: 0.92rem;
}
.alert-success {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--or);
  color: var(--or);
}
.alert-error {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--or);
  border-left-width: 4px;
  color: var(--or-clair);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer (élément de structure : reste sur fond noir)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--noir);
  padding: 70px 0 34px;
}

/* Liseré animé en remplacement de la texture défilante du footer Poseify
   (asset non réutilisable) : motif CSS pur, sans image. */
.footer-animated-line {
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--or) 0,
    var(--or) 10px,
    transparent 10px,
    transparent 22px
  );
  background-size: 44px 100%;
  opacity: 0.55;
  animation: footer-line-scroll 12s linear infinite;
}
@keyframes footer-line-scroll {
  from { background-position: 0 0; }
  to { background-position: -440px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-animated-line { animation: none; }
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand { padding-bottom: 8px; }

.footer-logo {
  display: block;
  font-family: var(--font-titres);
  color: var(--or);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin: 10px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav,
.footer-contact {
  padding-top: 20px;
  border-top: 1px solid var(--bordure-neutre);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-nav a:hover { color: var(--or); }

.footer-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
a.footer-contact-item:hover { color: var(--or); }
.footer-contact-item .icon { width: 1em; height: 1em; color: var(--or); flex-shrink: 0; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--bordure-neutre);
  width: 100%;
}

.footer-credit-sep {
  display: inline-block;
  margin: 0 6px;
  color: var(--bordure-neutre);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-rapide), border-color var(--transition-rapide);
}
.footer-credit a:hover {
  color: var(--or);
  border-color: var(--or);
}

/* --------------------------------------------------------------------------
   Animations au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les grilles de cards (façon wow.js data-wow-delay) */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Section Portrait : colonnes empilées sous 992px, image au-dessus du
   texte (l'ordre du DOM reste texte→image, seul l'ordre visuel change),
   boutons pleine largeur. */
@media (max-width: 992px) {
  .intro { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .intro-photo { order: -1; max-width: 380px; margin: 0 auto; }
  .intro-cta { flex-direction: column; justify-content: center; }
  .intro-cta .btn { width: 100%; }
}

@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(3) { border-left: none; padding-left: 0; }

  .hero-nav { display: none; }
}

/* Le burger apparaît sous 992px, comme chez Poseify (breakpoint navbar
   Bootstrap lg), et non 768px. */
@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.95)),
      url("../images/hero-slide-1.3bc0da55ddbe.jpg") center 20% / cover no-repeat;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateY(-110%);
    transition: transform var(--transition-normale);
    z-index: 99;
    visibility: hidden;
  }
  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav .nav-link {
    font-size: 1.3rem;
    color: var(--or-clair);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }
  .main-nav .nav-link:hover { color: var(--or); }
  .main-nav .nav-link::after { background: var(--or-clair); }

  .burger { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 40px 56px;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }
  .timeline-item.left .timeline-lieu { flex-direction: row; }

  section { padding: 60px 0; }
}

@media (max-width: 520px) {
  .counters { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

@media (max-width: 420px) {
  .container,
  .site-header-inner,
  .site-footer-inner,
  .counters,
  .intro,
  .cta-banner,
  .page-header,
  .timeline-section,
  .values-section,
  .quote-section,
  .filiales-section,
  .vision-section,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  section { padding: 48px 0; }

  .hero-dots { bottom: 70px; }

  .chapter-photo { width: 170px; }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 48px;
  }

  .value-card,
  .filiale-card { padding: 26px 20px; }
}