/* =========================================================================
   SETOM_AFRIK — Design system site public (v2)
   Concept : « Matière & précision ». On garde l'ADN technique (triangle du
   logo, lignes de cote, coupes diagonales) mais on l'habille : photo plein
   cadre, profondeur par ombres teintées, verre dépoli sur le header,
   respirations généreuses. Le triangle du logo reste le motif conducteur.
   ========================================================================= */

:root {
  /* --- Marque --- */
  --navy: #0d2b45;
  --navy-deep: #081b2c;
  --navy-light: #163e5e;
  --steel: #1b6fa8;
  --steel-light: #2b86c6;
  --turquoise: #29abc4;
  --turquoise-soft: #7fd0e0;
  --concrete: #f4f2ed;
  --concrete-dark: #e2ddd2;
  --amber: #e8a33d;
  --amber-light: #f6c37a;
  --white: #ffffff;
  --ink: #16232f;
  --ink-soft: #5a6875;
  --ink-faint: #8a96a1;

  /* --- Dégradés --- */
  --grad-brand: linear-gradient(135deg, var(--steel) 0%, var(--turquoise) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  --grad-amber: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);

  /* --- Typo --- */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* --- Échelles --- */
  --container: 1200px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* Ombres teintées navy : plus crédibles qu'un noir pur */
  --shadow-sm: 0 2px 6px rgba(13, 43, 69, .06);
  --shadow: 0 10px 24px -8px rgba(13, 43, 69, .14), 0 2px 6px rgba(13, 43, 69, .05);
  --shadow-lg: 0 28px 56px -18px rgba(13, 43, 69, .26), 0 6px 16px rgba(13, 43, 69, .07);
  --shadow-glow: 0 18px 40px -12px rgba(27, 111, 168, .45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px) { .container { padding: 0 20px; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  color: var(--navy);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.12rem; }

/* Accent typographique : un mot clé teinté dans les titres */
.accent { color: var(--turquoise); }
.accent-amber { color: var(--amber); }

p { max-width: 68ch; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--turquoise); color: var(--navy); }

/* -------------------------------------------------------------------------
   Motif triangle du logo — marqueurs, séparateurs
   ------------------------------------------------------------------------- */
.mark-triangle {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--turquoise);
  display: inline-block;
  flex: none;
}

/* Eyebrow : pastille de section, remplace l'ancien trait sec */
.section-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 12px;
  background: rgba(41, 171, 196, .12);
  border: 1px solid rgba(41, 171, 196, .28);
  border-radius: var(--radius-pill);
}
.section-divider .line {
  height: 0; width: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--turquoise);
  background: none;
}
.section-divider span:not(.line) {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--steel);
}
/* Variante sur fond sombre */
.section-navy .section-divider,
.cta-band .section-divider,
.hero .section-divider {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}
.section-navy .section-divider span:not(.line),
.cta-band .section-divider span:not(.line),
.hero .section-divider span:not(.line) { color: var(--turquoise-soft); }

/* -------------------------------------------------------------------------
   Boutons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .2px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn i { transition: transform .3s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-amber);
  color: var(--navy);
  box-shadow: 0 12px 26px -10px rgba(232, 163, 61, .75);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -12px rgba(232, 163, 61, .9);
}

.btn-outline {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-dark:hover {
  background: var(--steel);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--concrete-dark);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }

.btn-sm { padding: 10px 20px; font-size: .87rem; }

/* -------------------------------------------------------------------------
   Header — transparent sur le hero puis verre dépoli au scroll
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .4s var(--ease-soft), box-shadow .4s var(--ease-soft),
              backdrop-filter .4s var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(13, 43, 69, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .5);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
  transition: height .4s var(--ease-soft);
}
.site-header.is-scrolled .container { height: 72px; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  flex: none;
}
.brand img {
  height: 44px; width: auto;
  transition: height .4s var(--ease-soft);
}
.site-header.is-scrolled .brand img { height: 37px; }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--turquoise);
  margin-top: 3px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0; padding: 0;
}
.main-nav a {
  color: rgba(255, 255, 255, .88);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .2px;
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--amber);
  border-radius: 2px;
  transition: width .32s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--white); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }


@media (max-width: 1040px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--grad-navy);
    padding: 110px 32px 32px;
    transform: translateX(102%);
    transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav a {
    display: block;
    font-size: 1.15rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; z-index: 101; }
  .header-cta .btn-outline { display: none; }
}

/* -------------------------------------------------------------------------
   Hero — vidéo/YouTube/image plein cadre + voile dégradé
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video,
.hero-media iframe,
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
/* Lent zoom arrière : donne vie à une image fixe sans distraire */
.hero-media img { animation: hero-drift 22s var(--ease-soft) forwards; }
@keyframes hero-drift {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
/* Voile double : vertical pour la lisibilité du texte, latéral pour la profondeur */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 27, 44, .72) 0%, rgba(8, 27, 44, .32) 34%, rgba(8, 27, 44, .93) 100%),
    linear-gradient(90deg, rgba(8, 27, 44, .66) 0%, rgba(8, 27, 44, 0) 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  /* padding-top/bottom uniquement : la forme courte « padding: 140px 0 150px »
     remettrait à zéro la gouttière horizontale de .container et décalerait
     le texte du hero par rapport au logo et à la navigation. */
  padding-top: 140px;
  padding-bottom: 150px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--turquoise-soft);
  margin-bottom: 24px;
  opacity: 0;
}
.hero h1 {
  color: var(--white);
  max-width: 15ch;
  opacity: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero p.lead {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 50ch;
  margin-top: 20px;
  opacity: 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Une seule séquence d'entrée orchestrée au chargement */
.hero-eyebrow, .hero h1, .hero p.lead, .hero-actions {
  animation: hero-rise .95s var(--ease) forwards;
}
.hero-eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .3s; }
.hero p.lead { animation-delay: .46s; }
.hero-actions { animation-delay: .6s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, .7);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: 2.6px; font-weight: 600;
}
.scroll-cue .stick {
  width: 1px; height: 40px;
  background: rgba(255, 255, 255, .28);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stick::after {
  content: "";
  position: absolute; left: 0; top: -40px;
  width: 100%; height: 40px;
  background: var(--amber);
  animation: cue-fall 2s ease-in-out infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* -------------------------------------------------------------------------
   Bande statistiques — carte flottante en verre chevauchant le hero
   ------------------------------------------------------------------------- */
.stat-band {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  color: var(--white);
}
.stat-band .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(13, 43, 69, .88);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 38px 20px;
  text-align: center;
}
.stat-grid > div {
  position: relative;
  padding: 4px 18px;
}
.stat-grid > div + div::before {
  content: "";
  position: absolute; left: 0; top: 14%; bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
}
.stat-grid .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}
/* Le suffixe (« + ») est ajouté par site.js dans le texte : ne pas le
   redoubler ici avec un ::after, sous peine d'afficher « 2++ ». */
.stat-grid .label {
  font-size: .78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 860px) {
  .stat-band { margin-top: -48px; }
  .stat-band .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding: 32px 12px; }
  .stat-grid > div:nth-child(3)::before { display: none; }
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
section { padding: clamp(72px, 9vw, 124px) 0; }
.section-alt { background: var(--concrete); }
.section-navy { background: var(--grad-navy); color: var(--white); }
.section-navy p { color: rgba(255, 255, 255, .74); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }

.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.06rem; }

/* En-tête de section avec lien d'action à droite */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Bandeau clients / références — touche « preuve » façon logos partenaires
   ------------------------------------------------------------------------- */
.clients-band {
  padding: 40px 0;
  border-bottom: 1px solid var(--concrete-dark);
  background: var(--white);
}
.clients-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 46px;
  flex-wrap: wrap;
}
.clients-band .label {
  font-size: .74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  border-right: 1px solid var(--concrete-dark);
  padding-right: 46px;
}
.clients-band .client {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--navy);
  opacity: .42;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.clients-band .client:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 760px) {
  .clients-band .label { border-right: none; padding-right: 0; width: 100%; text-align: center; }
}

/* -------------------------------------------------------------------------
   Cartes Services
   ------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  background: none;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--concrete-dark);
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Liseré de marque qui se déploie au survol */
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-wrap {
  width: 62px; height: 62px;
  background: var(--grad-navy);
  color: var(--turquoise);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  transition: transform .4s var(--ease);
}
.service-card:hover .icon-wrap { transform: translateY(-3px) rotate(-3deg); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .96rem; margin: 0; }
.service-card .learn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--steel);
}
.service-card .learn i { transition: transform .3s var(--ease); }
.service-card:hover .learn i { transform: translateX(5px); }
@media (max-width: 980px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Étapes du process
   ------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 12px; }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(41, 171, 196, .55);
  margin-bottom: 14px;
  display: block;
}
.section-navy .process-step .step-num { -webkit-text-stroke-color: rgba(127, 208, 224, .6); }
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: .93rem; margin: 0; }
/* Ligne de liaison entre les étapes */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 30px; right: -18px;
  width: 12px; height: 1px;
  background: rgba(41, 171, 196, .4);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } .process-step::after { display: none; } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Projets
   ------------------------------------------------------------------------- */
/* Barre de recherche projets */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-bottom: 28px;
}
.search-bar input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--concrete);
  border: 1.5px solid var(--concrete-dark);
  border-radius: var(--radius-pill);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.search-bar input:focus {
  border-color: var(--steel);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(27, 111, 168, .12);
  outline: none;
}
.search-bar .btn { padding: 14px 22px; flex: none; }

.project-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.project-filters a {
  font-size: .89rem;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--concrete-dark);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: var(--white);
  transition: all .28s var(--ease);
}
.project-filters a.is-active,
.project-filters a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 1000px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--white);
  border: 1px solid var(--concrete-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.07); }
/* Voile bas pour asseoir le badge et enrichir la photo */
.project-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 44, .28) 0%, transparent 42%, rgba(8, 27, 44, .5) 100%);
  opacity: .85;
  transition: opacity .4s var(--ease);
}
.project-card:hover .project-thumb::after { opacity: .55; }

.badge-status {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--white);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.badge-status.completed { background: rgba(27, 111, 168, .92); }
.badge-status.in_progress { background: rgba(232, 163, 61, .95); color: var(--navy); }
.badge-status.planned { background: rgba(90, 104, 117, .9); }

.project-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { margin-bottom: 12px; }
.project-meta {
  display: flex; gap: 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.project-meta i { color: var(--turquoise); margin-right: 3px; }
.progress-track {
  height: 6px;
  background: var(--concrete-dark);
  border-radius: var(--radius-pill);
  margin-top: auto;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-amber);
  border-radius: var(--radius-pill);
  transition: width 1.2s var(--ease);
}

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 56px; }
.pagination nav > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--concrete-dark);
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  background: var(--white);
  transition: all .25s var(--ease);
}
.pagination a:hover { border-color: var(--steel); color: var(--steel); }
.pagination .active span { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* -------------------------------------------------------------------------
   Détail projet
   ------------------------------------------------------------------------- */
.project-hero {
  position: relative;
  background: var(--grad-navy);
  color: var(--white);
  padding: 190px 0 70px;
  overflow: hidden;
}
.project-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(41, 171, 196, .22) 0%, transparent 68%);
}
.project-hero .container { position: relative; z-index: 1; }
.project-hero h1 { color: var(--white); }
.project-hero .badge-status { position: static; display: inline-block; margin-bottom: 20px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--concrete-dark);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.gallery-grid a::after {
  content: "\F4FE"; /* bi-zoom-in */
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  background: rgba(13, 43, 69, .55);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.09); }
.gallery-grid a:hover::after { opacity: 1; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 27, 44, .96);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 84vh;
  width: auto; margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--white);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--turquoise); transform: scale(1.08);
}
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* -------------------------------------------------------------------------
   À propos — image encadrée « plan technique »
   ------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.blueprint-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.blueprint-frame img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
/* Cadre décalé + coins de plan technique */
.blueprint-frame::before {
  content: "";
  position: absolute;
  inset: -18px -18px 18px 18px;
  border: 1.5px solid var(--turquoise);
  border-radius: var(--radius);
  opacity: .5;
  z-index: 0;
}
.blueprint-frame::after {
  content: "";
  position: absolute;
  bottom: -14px; right: -14px;
  width: 64px; height: 64px;
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  border-bottom-right-radius: var(--radius);
  z-index: 2;
}

/* Liste à puces triangle */
.feature-list { list-style: none; padding: 0; margin: 30px 0 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.feature-list li .mark-triangle { margin-top: 8px; }
.section-navy .feature-list li { color: rgba(255, 255, 255, .82); }

/* auto-fit : 3 collaborateurs occupent toute la largeur au lieu de laisser
   une colonne vide, et la grille absorbe un 4e membre sans retouche. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
@media (max-width: 920px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1/1;
  background: var(--concrete-dark);
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 43, 69, .45) 100%);
}
.team-card h4 { margin-bottom: 3px; }
.team-card .role {
  color: var(--steel);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* -------------------------------------------------------------------------
   Témoignages
   ------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 940px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }
.testimonial {
  background: var(--white);
  border: 1px solid var(--concrete-dark);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .8;
  color: rgba(41, 171, 196, .25);
  margin-bottom: 6px;
}
.testimonial p { font-size: .97rem; color: var(--ink); margin: 0 0 22px; }
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--concrete-dark);
  padding-top: 18px;
}
.testimonial .who .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex: none;
}
.testimonial .who strong { display: block; font-size: .94rem; color: var(--navy); }
.testimonial .who span { font-size: .82rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--concrete-dark);
}
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info {
  background: var(--grad-navy);
  color: var(--white);
  padding: 56px 46px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  right: -90px; bottom: -90px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(41, 171, 196, .26) 0%, transparent 70%);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { color: var(--white); }
.contact-info ul { list-style: none; padding: 0; margin: 30px 0; }
.contact-info li {
  display: flex; gap: 15px; align-items: flex-start;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
}
.contact-info li i {
  color: var(--turquoise);
  margin-top: 3px;
  font-size: 1.1rem;
  flex: none;
}
.social-row { display: flex; gap: 11px; margin-top: 24px; }
.social-row a {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.social-row a:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-4px);
}

.contact-form { padding: 56px 46px; background: var(--white); }
@media (max-width: 560px) { .contact-info, .contact-form { padding: 40px 26px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 8px;
  color: var(--navy);
}
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--concrete-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--ink);
  background: var(--concrete);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--steel);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(27, 111, 168, .12);
  outline: none;
}
.field .error { color: #c0392b; font-size: .82rem; margin-top: 6px; }
.field textarea { min-height: 150px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.alert-success {
  background: #e9f7ef; color: #1e7245;
  border: 1px solid #b7e4c7;
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: .94rem;
}

.map-wrap { margin-top: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* -------------------------------------------------------------------------
   CTA bande finale
   ------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-navy);
  color: var(--white);
  text-align: center;
  padding: clamp(70px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
/* Halo de marque plutôt qu'un carré tourné */
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: -40%;
  transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(41, 171, 196, .2) 0%, transparent 62%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .66);
  padding: 80px 0 32px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 46px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-grid li i { color: var(--turquoise); margin-top: 4px; flex: none; }
.footer-grid a { transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-grid a:hover { color: var(--turquoise); }
.footer-grid ul a:hover { padding-left: 4px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 40px; }
.footer-brand strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}

/* -------------------------------------------------------------------------
   Reveal au scroll + retour en haut
   ------------------------------------------------------------------------- */
/* Le masquage initial n'est appliqué que si la classe .js a été posée par le
   layout : sans JavaScript (ou si site.js échoue), tout le contenu reste
   visible au lieu de disparaître derrière une animation qui ne viendra pas. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Décalage en cascade pour les grilles */
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0; visibility: hidden;
  box-shadow: var(--shadow-lg);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--steel); transform: translateY(-4px); }

/* -------------------------------------------------------------------------
   Crédit développeur (pied de page)
   ------------------------------------------------------------------------- */
.dev-credit { color: rgba(255, 255, 255, .45); }
.dev-credit a {
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
  border-bottom: 1px solid rgba(41, 171, 196, .55);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.dev-credit a:hover { color: var(--turquoise); border-color: var(--turquoise); }
