/* ============================================================
   ELAN-PETROLEUM & BTP — Design System
   ============================================================ */

:root {
  --navy-900: #060d1a;
  --navy-800: #0a1628;
  --navy-700: #0f2038;
  --navy-600: #16304f;
  --steel: #33506e;
  --gold: #e8a020;
  --gold-light: #f5b942;
  --gold-dark: #c7860a;
  --white: #ffffff;
  --surface: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-300: #d4dae2;
  --gray-500: #7a8699;
  --gray-700: #3d4a5c;
  --text-dark: #14202e;
  --gradient-gold: linear-gradient(135deg, #f5b942 0%, #e8a020 50%, #c7860a 100%);
  --gradient-navy: linear-gradient(160deg, rgba(6,13,26,.92) 0%, rgba(10,22,40,.85) 45%, rgba(15,32,56,.78) 100%);
  --shadow-sm: 0 2px 10px rgba(10, 22, 40, .08);
  --shadow-md: 0 10px 30px rgba(10, 22, 40, .12);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: all .35s cubic-bezier(.25, .8, .3, 1);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ---------- Utilitaires ---------- */
.container { width: min(1200px, 92%); margin-inline: auto; }

.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--dark { background: var(--navy-800); color: var(--white); }
.section--gray { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.text-center { text-align: center; }

/* En-têtes de section */
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head--left { margin-left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy-800);
}
.section--dark .section-title { color: var(--white); }

.section-sub { margin-top: 16px; color: var(--gray-500); font-size: 1.05rem; }
.section--dark .section-sub { color: #aebccd; }

.gold-text { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--gold {
  background: var(--gradient-gold);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(232, 160, 32, .35);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(232, 160, 32, .45); }

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

.btn--navy { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-md); }
.btn--navy:hover { background: var(--navy-600); transform: translateY(-3px); }

.btn--ghost { border: 2px solid var(--navy-800); color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Préchargeur ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
  text-transform: uppercase;
}
.preloader-logo span { color: var(--gold); }
.preloader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient-gold);
  border-radius: 99px;
  animation: loading 1.1s ease-in-out infinite;
}
@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(450%); }
}

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--navy-900);
  color: #b9c4d4;
  font-size: .82rem;
  padding: 8px 0;
  position: relative;
  z-index: 60;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.topbar-group { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; transition: var(--transition); }
.topbar-item a:hover { color: var(--gold); }
.topbar-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  transition: var(--transition);
}
.topbar-social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 22, 40, .08);
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--gradient-navy), var(--navy-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232,160,32,.4);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy-800);
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--gold); }
.brand-tag {
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 15px;
  font-weight: 600;
  font-size: .93rem;
  line-height: 1.3;
  color: var(--gray-700);
  letter-spacing: .03em;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transition: right .35s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after, .nav-links a.active::after { right: 15px; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gray-500);
  transition: var(--transition);
}
.lang-switch button.active {
  background: var(--navy-800);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  background:
    var(--gradient-navy),
    url("../img/gallery/photo-01.jpg") center/cover no-repeat,
    var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 110px;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid rgba(232,160,32,.45);
  border-radius: 999px;
  background: rgba(232,160,32,.1);
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,160,32,.55); }
  55% { box-shadow: 0 0 0 9px rgba(232,160,32,0); }
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero h1 .line-accent {
  color: var(--gold);
  display: block;
}
.hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #c3cedd;
  max-width: 640px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 70px;
  backdrop-filter: blur(8px);
}
.hero-stat {
  background: rgba(6, 13, 26, .55);
  padding: 26px 20px;
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .num small { font-size: .55em; vertical-align: super; }
.hero-stat .lbl {
  margin-top: 8px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9fb0c5;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint::after {
  content: "";
  width: 4px; height: 9px;
  border-radius: 99px;
  background: var(--gold);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Bandeau page interne */
.page-hero {
  position: relative;
  padding: 130px 0 90px;
  background:
    var(--gradient-navy),
    url("../img/gallery/photo-05.jpg") center/cover no-repeat,
    var(--navy-900);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.breadcrumb {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: .88rem;
  color: #aebccd;
}
.breadcrumb a { color: var(--gold); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Cartes services ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,22,40,.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,160,32,.14), rgba(232,160,32,.05));
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: var(--transition);
}
.card-icon svg { width: 30px; height: 30px; color: var(--gold-dark); }
.card:hover .card-icon { background: var(--gradient-gold); }
.card:hover .card-icon svg { color: var(--navy-900); }

.card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.card p { color: var(--gray-500); font-size: .95rem; flex-grow: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: var(--transition);
}
.card-link svg { width: 16px; height: 16px; transition: var(--transition); }
.card-link:hover { gap: 13px; color: var(--navy-800); }

/* Variante carte sombre */
.card--dark {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: #aebccd; }
.card--dark .card-link { color: var(--gold); }
.card--dark .card-link:hover { color: var(--white); }

/* ---------- Section À propos (accueil) ---------- */
.about-visual { position: relative; }
.about-visual .main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}
.about-visual .overlay-img {
  position: absolute;
  bottom: -36px;
  right: -18px;
  width: 46%;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.exp-badge {
  position: absolute;
  top: 26px;
  left: -20px;
  background: var(--gradient-gold);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.exp-badge .n {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}
.exp-badge .t {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--gray-700);
  font-weight: 500;
}
.check-list .check {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,160,32,.15);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.check-list .check svg { width: 13px; height: 13px; color: var(--gold-dark); }

/* ---------- Compteurs ---------- */
.stats-band {
  background:
    linear-gradient(rgba(6,13,26,.88), rgba(6,13,26,.88)),
    url("../img/gallery/photo-09.jpg") center/cover fixed no-repeat;
  color: var(--white);
}
.stats-band .grid-4 { gap: 20px; }
.stat-box { text-align: center; padding: 20px 10px; }
.stat-box .num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-box .num small { font-size: .5em; vertical-align: super; }
.stat-box .lbl {
  margin-top: 10px;
  font-size: .84rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #aebccd;
  font-weight: 600;
}

/* ---------- Pourquoi nous ---------- */
.feature-row {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.feature-row:hover { background: rgba(232,160,32,.08); border-color: rgba(232,160,32,.3); transform: translateX(8px); }
.feature-row .fi {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
}
.feature-row .fi svg { width: 26px; height: 26px; color: var(--navy-900); }
.feature-row h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.feature-row p { color: #aebccd; font-size: .93rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.14);
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  color: var(--navy-900);
  line-height: 1.15;
}
.cta-band p { color: rgba(6,13,26,.75); margin-top: 8px; font-weight: 500; }
.cta-band .btn--navy { box-shadow: 0 12px 30px rgba(6,13,26,.3); }

/* ---------- Galerie / Réalisations ---------- */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-300);
  font-weight: 600;
  font-size: .87rem;
  color: var(--gray-700);
  letter-spacing: .04em;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  animation: fadeInUp .5s ease both;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,13,26,.92) 0%, rgba(6,13,26,.15) 55%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay .cat {
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gi-overlay .title {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.gi-overlay .zoom {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
}
.gi-overlay .zoom svg { width: 17px; height: 17px; color: var(--navy-900); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 8, 16, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--gold); color: var(--navy-900); transform: rotate(90deg); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.lb-nav:hover { background: var(--gold); color: var(--navy-900); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ---------- Équipe ---------- */
.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(10,22,40,.06);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo {
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232,160,32,.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.team-info { padding: 26px 24px 30px; text-align: center; }
.team-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-800);
}
.team-info .role {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 5px;
}
.team-info .bio {
  color: var(--gray-500);
  font-size: .88rem;
  margin-top: 12px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin-inline: auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(232,160,32,.15));
}
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold);
}
.tl-item .year {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
}
.tl-item h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 4px 0 8px;
}
.tl-item p { color: #aebccd; font-size: .95rem; }

/* ---------- Valeurs ---------- */
.value-card {
  text-align: center;
  padding: 40px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(232,160,32,.09);
  border-color: rgba(232,160,32,.35);
  transform: translateY(-6px);
}
.value-card .vi {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
}
.value-card .vi svg { width: 30px; height: 30px; color: var(--gold); }
.value-card h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.value-card p { color: #aebccd; font-size: .9rem; }

/* ---------- Liste services détaillée ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,22,40,.07);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-detail + .service-detail { margin-top: 26px; }
.service-detail:hover { box-shadow: var(--shadow-md); border-color: rgba(232,160,32,.4); }
.sd-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--gold);
  line-height: 1;
}
.service-detail h3 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.service-detail > div > p { color: var(--gray-500); margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-list li {
  padding: 7px 15px;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
}
.tag-list li:hover { background: var(--navy-800); color: var(--gold); }

/* ---------- Formulaire ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 46px;
  align-items: start;
}
.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(10,22,40,.07);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card + .info-card { margin-top: 18px; }
.info-card:hover { border-color: rgba(232,160,32,.45); transform: translateX(6px); }
.info-card .ic {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
}
.info-card .ic svg { width: 24px; height: 24px; color: var(--navy-900); }
.info-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy-800);
}
.info-card p, .info-card a { color: var(--gray-500); font-size: .93rem; word-break: break-word; }
.info-card a:hover { color: var(--gold-dark); }

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10,22,40,.07);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy-800);
  letter-spacing: .02em;
}
.form-group label span { color: #d43f3f; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  color: var(--text-dark);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(232,160,32,.14);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: #d43f3f; }
.form-error-msg {
  display: none;
  font-size: .8rem;
  color: #d43f3f;
  font-weight: 600;
}
.form-group.error .form-error-msg { display: block; }

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(46, 160, 90, .12);
  border: 1px solid rgba(46, 160, 90, .4);
  color: #1d7a44;
  font-weight: 600;
  font-size: .92rem;
}
.form-success.show { display: block; animation: fadeInUp .4s ease; }

/* ---------- Carte Google Maps ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
  border: 1px solid rgba(10,22,40,.08);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; filter: grayscale(30%) contrast(1.05); }

/* ---------- Pied de page ---------- */
.footer {
  background: var(--navy-900);
  color: #9fb0c5;
  padding: 80px 0 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer .brand-name { color: var(--white); }
.footer .brand-tag { color: #7a8699; }
.footer-about p { font-size: .92rem; margin-top: 20px; max-width: 320px; }
.footer h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--gold);
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: var(--transition);
}
.footer-links a::before {
  content: "›";
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05em;
}
.footer-links a:hover { color: var(--gold); transform: translateX(5px); }
.footer-contact li {
  display: flex;
  gap: 13px;
  margin-bottom: 16px;
  font-size: .92rem;
  align-items: flex-start;
}
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .84rem;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Boutons flottants ---------- */
.float-btn {
  position: fixed;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 900;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.float-btn svg { width: 27px; height: 27px; }
.whatsapp-btn {
  bottom: 24px;
  background: #25d366;
  color: var(--white);
}
.whatsapp-btn:hover { transform: scale(1.1) rotate(6deg); }
.back-top {
  bottom: 92px;
  background: var(--navy-800);
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); }

/* ---------- Animations au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
.reveal-d4 { transition-delay: .48s; }

/* ---------- Responsive ---------- */
/* Tablettes larges / petits ordinateurs */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .hero-stats .num { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
}

/* Tablettes / grands téléphones — menu hamburger */
@media (max-width: 860px) {
  .topbar { font-size: .78rem; }
  .topbar .container {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
    padding-block: 7px;
  }
  .topbar-group { justify-content: center; }
  .topbar-social { display: none; }

  /* Navigation mobile */
  .navbar .container { padding-block: 12px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 26, .98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a {
    color: var(--white);
    font-size: 1.35rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.45;
    padding: 6px 20px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--gold); }
  body.menu-open { overflow: hidden; }
  .nav-toggle.open span { background: var(--white); }
  .nav-actions .btn { padding: 11px 20px; font-size: .85rem; }

  /* Grilles empilées */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
  .about-visual .overlay-img { display: none; }
  .exp-badge { left: 10px; padding: 14px 18px; }

  /* Sections plus compactes */
  .section { padding: 60px 0; }
  .page-hero { padding: 90px 0 64px; }
  .hero-inner { padding: 60px 0 70px; }
  .scroll-hint { display: none; }

  /* Cartes services détaillées */
  .service-detail { grid-template-columns: 1fr; gap: 10px; padding: 30px 24px; }
  .sd-num { font-size: 2.2rem; }

  /* Formulaire */
  .form-grid { grid-template-columns: 1fr; }

  /* CTA centré */
  .cta-band { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

  /* Galerie : légendes visibles sur écrans tactiles */
  .gallery-item .gi-overlay { opacity: 1; background: linear-gradient(to top, rgba(6,13,26,.85) 0%, rgba(6,13,26,.05) 55%, transparent 100%); }

  /* Équipe et timeline */
  .timeline { padding-left: 28px; }
}

/* Téléphones */
@media (max-width: 560px) {
  .container { width: 94%; }

  .grid-4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer { padding-top: 56px; }
  .footer-bottom .container { justify-content: center; text-align: center; }

  .brand-text { display: none; }
  .brand-mark { width: 46px; height: 46px; border-radius: 11px; }

  /* Masquer le bouton devis dans la barre (déjà accessible via menu + CTA page d'accueil) */
  .nav-actions .btn { display: none; }

  .topbar-group { gap: 14px; }
  .topbar-item:nth-child(2) { display: none; } /* email masqué sur petit écran */

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
  .hero-stat { padding: 18px 10px; }
  .hero-stat .num { font-size: 1.25rem !important; letter-spacing: .02em; }
  .hero-stat .lbl { font-size: .66rem; letter-spacing: .08em; }

  .exp-badge { top: 14px; left: 8px; }
  .exp-badge .n { font-size: 1.7rem; }

  .card { padding: 30px 24px; }
  .value-card { padding: 32px 20px; }
  .info-card { padding: 20px 16px; }
  .form-card { padding: 26px 20px; }

  .map-frame iframe { height: 300px; }

  .cta-band .btn { width: 100%; max-width: 340px; }
  .cta-band > div:last-child { width: 100%; align-items: stretch; }

  .float-btn { right: calc(16px + env(safe-area-inset-right)); }
  .whatsapp-btn { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .back-top { bottom: calc(86px + env(safe-area-inset-bottom)); }

  .lightbox-close { top: 12px; right: 14px; }
}

/* Très petits téléphones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-stat .num { font-size: 1.05rem !important; }
  .hero-badge { font-size: .72rem; padding: 8px 14px; }
  .btn { padding: 13px 24px; font-size: .88rem; }
  .filters .filter-btn { padding: 9px 16px; font-size: .8rem; }
}

/* Écrans tactiles : légendes galerie toujours lisibles */
@media (hover: none) and (pointer: coarse) {
  .gallery-item .gi-overlay { opacity: 1; }
  .card:hover, .team-card:hover, .gallery-item:hover img { transform: none; }
}

/* ---------- Bouton thème jour/nuit ---------- */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-300);
  color: var(--navy-800);
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-dark); transform: rotate(18deg) scale(1.06); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle { color: #ffd57a; }
html[data-theme="dark"] .theme-toggle:hover { color: var(--gold-light); }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Mode nuit ---------- */
html[data-theme="dark"] {
  --surface: #101f36;
  --off-white: #0b1830;
  --gray-100: #17293f;
  --gray-300: #2c405e;
  --gray-500: #93a3b8;
  --gray-700: #c3cedd;
  --text-dark: #e6edf5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] body {
  background: #060d1a;
  color: var(--text-dark);
}

/* Navigation */
html[data-theme="dark"] .navbar {
  background: rgba(8, 17, 32, .94);
  border-bottom-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .brand-name { color: #fff; }
html[data-theme="dark"] .brand-tag { color: #8296ad; }
html[data-theme="dark"] .nav-links a { color: var(--gray-700); }
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active { color: var(--gold-light); }
html[data-theme="dark"] .nav-toggle span { background: #e6edf5; }

/* Titres et textes sur les sections claires */
html[data-theme="dark"] .section:not(.section--dark) .section-title { color: #fff; }
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .service-detail h3,
html[data-theme="dark"] .team-info h3,
html[data-theme="dark"] .info-card h4 { color: #fff; }
html[data-theme="dark"] .eyebrow::before { background: var(--gold); }

/* Boutons */
html[data-theme="dark"] .btn--ghost { border-color: #3a5273; color: #dce6f2; }
html[data-theme="dark"] .btn--ghost:hover { background: #dce6f2; color: #0a1628; border-color: #dce6f2; }
html[data-theme="dark"] .btn--navy { background: #1d3557; }
html[data-theme="dark"] .filter-btn.active { background: var(--gold); border-color: var(--gold); color: #0a1628; }
html[data-theme="dark"] .lang-switch button.active { background: var(--gold); color: #0a1628; }

/* Carte Google Maps légèrement assombrie */
html[data-theme="dark"] .map-frame iframe { filter: grayscale(20%) brightness(.85) contrast(1.05); }

/* Transition douce entre les deux modes */
body, .navbar, .card, .team-card, .info-card, .form-card, .service-detail,
.form-group input, .form-group textarea, .form-group select,
.tag-list li, .footer {
  transition-property: background-color, color, border-color, box-shadow, transform;
  transition-duration: .35s;
  transition-timing-function: ease;
}

@media (max-width: 380px) {
  .theme-toggle { width: 38px; height: 38px; }
  .theme-toggle svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
