/* =====================================================================
   Press-book COBEN-Gabon — identité « Architecture de nuit »
   Bleu nuit profond, vert COBEN lumineux, touche de jaune chantier.
   ===================================================================== */
:root {
  /* Couleurs de marque */
  --green: #1f8a3d;
  --green-dark: #166a2e;
  --green-light: #3ddc74;
  --green-50: #eaf7ee;
  --navy: #262b86;
  --gold: #f5b82e;
  /* Nuit (sections sombres) */
  --night: #070b14;
  --night-2: #0c1322;
  --night-3: #131c31;
  --night-line: rgba(255, 255, 255, .09);
  /* Clair */
  --ink: #0e1220;
  --text: #2f3546;
  --muted: #6b7286;
  --line: #e5e7ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f3;
  /* Dégradé signature (logo : vert → bleu) */
  --grad: linear-gradient(120deg, #3ddc74 0%, #1f8a3d 45%, #262b86 100%);
  --grad-text: linear-gradient(100deg, #6cf09a 0%, #3ddc74 40%, #8f95ff 100%);
  /* Formes */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 16, 30, .06);
  --shadow: 0 4px 10px rgba(10, 16, 30, .05), 0 18px 40px rgba(10, 16, 30, .09);
  --shadow-lg: 0 30px 80px rgba(10, 16, 30, .22);
  --glow: 0 10px 40px rgba(61, 220, 116, .35);
  /* Typographie */
  --font-title: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif; /* italique élégant : mots mis en valeur, numéros, citations */
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--green-light); color: var(--night); }
:focus-visible { outline: 3px solid rgba(61, 220, 116, .55); outline-offset: 3px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Titres & libellés ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-light);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow-dark { color: var(--green-dark); }
.section-title {
  font-family: var(--font-title); font-stretch: 112%; font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); margin: 0;
}
.section-title small { font-family: var(--font-body); font-stretch: 100%; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 10px; vertical-align: middle; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-head { margin-bottom: 44px; max-width: 780px; }
.section-head .section-title { margin: 16px 0 0; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; max-width: none; }
.section-lead { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 60ch; }
.link-more {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none;
  font-weight: 700; color: var(--ink); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.link-more:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.dark .link-more { color: #fff; background: rgba(255, 255, 255, .06); border-color: var(--night-line); }

/* ---------- Boutons ---------- */
.btn-hero, .btn-cta, .btn-submit, .btn-back, .footer-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn-hero { padding: 16px 28px; font-size: 15.5px; color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-hero:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.btn-hero.primary, .btn-cta, .btn-submit, .footer-cta { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); background-size: 160% 100%; background-position: 0 0; }
.btn-hero.primary:hover, .btn-cta:hover, .btn-submit:hover, .footer-cta:hover { background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 16px 50px rgba(61, 220, 116, .45); }
.btn-cta { padding: 14px 26px; }
.btn-hero svg, .btn-cta svg { width: 18px; height: 18px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent; transition: background .35s, box-shadow .35s, border-color .35s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(10, 16, 30, .07); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 90px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 68px; width: auto; border-radius: 10px; background: #fff; padding: 3px 8px; transition: box-shadow .3s, transform .3s var(--ease); }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { position: relative; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 15px; border-radius: 999px; color: var(--ink); transition: color .2s, background .2s; }
.nav > a:not(.nav-cta):not(.admin-access)::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-dark); }
.nav a.nav-cta { margin-left: 10px; color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 8px 22px rgba(31, 138, 61, .32); padding: 11px 20px; }
.nav a.nav-cta:hover { background-position: 100% 0; }
.nav a.admin-access {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin-left: 6px;
  border: 1px solid var(--line); color: var(--navy);
}
.nav a.admin-access:hover { border-color: var(--navy); background: #f1f2fb; }
.nav a.admin-access svg, .footer-admin svg { width: 15px; height: 15px; }
.nav a.admin-access .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Pages avec grande photo d'ouverture : en-tête transparent tant que l'on n'a pas défilé */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header:not(.scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .nav > a:not(.nav-cta) { color: #fff; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .admin-access { border-color: rgba(255, 255, 255, .35); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .admin-access:hover { background: rgba(255, 255, 255, .12); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .brand img { box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* ---------- Héros d'accueil (plein écran, effet cinéma) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -2%; z-index: -2;
  background: url("/fond-accueil") center 55% / cover no-repeat, url("/assets/hero-accueil.jpg") center 55% / cover no-repeat; /* photo choisie dans l'admin ; l'originale en secours */
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* Vidéo de fond de l'accueil : apparaît en fondu une fois lancée ; le zoom lent de la photo s'arrête alors */
.hero-video-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-bg.avec-video { animation: none; }
.hero-bg.avec-video .hero-video-fond { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, .88) 0%, rgba(7, 11, 20, .6) 42%, rgba(7, 11, 20, .1) 75%, rgba(7, 11, 20, 0) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 25%, rgba(7, 11, 20, 0) 60%, rgba(7, 11, 20, .92) 100%);
}
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; padding-top: 140px; padding-bottom: 40px; }
.hero > .container { width: 100%; }
.hero-text { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-title {
  font-family: var(--font-title); font-stretch: 118%; font-weight: 900;
  font-size: clamp(42px, 4.9vw, 78px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title .line:nth-child(4) > span { animation-delay: .36s; }
.hero-title .line:nth-child(5) > span { animation-delay: .48s; }
.hero-title em { font-style: italic; font-family: var(--font-accent); font-weight: 700; font-stretch: normal; letter-spacing: -.01em; padding-right: .12em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
@keyframes lineUp { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; color: rgba(255, 255, 255, .86); margin: 0 0 36px; animation: fadeUp 1s .35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hero-actions { animation: fadeUp 1s .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Vidéo du logo : carte vitrée flottante */
.hero-video { position: relative; margin: 0; animation: fadeUp 1.1s .45s var(--ease) both; }
.video-frame {
  position: relative; aspect-ratio: 640 / 432; overflow: hidden; border-radius: 26px; background: #0d0f13;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.hero-video:hover .video-frame { transform: perspective(1200px) rotateY(0) rotateX(0); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transform-origin: 50% 100%; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(7, 11, 20, .6); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s;
}
.video-frame:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; }
.video-toggle svg { width: 16px; height: 16px; }
.hero-video figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero-video .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 0 rgba(61, 220, 116, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(61, 220, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 116, 0); } }
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(7, 11, 20, .78); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  animation: floaty 6s ease-in-out infinite;
}
.float-badge .fb-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.float-badge .fb-icon svg { width: 20px; height: 20px; color: #fff; }
.float-badge strong { display: block; font-family: var(--font-title); font-size: 20px; line-height: 1; }
.float-badge span { font-size: 12px; color: rgba(255, 255, 255, .8); }
.float-badge.b1 { left: -34px; bottom: 54px; }
.float-badge.b2 { right: -18px; top: -26px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* Barre de chiffres vitrée en bas du héros */
.hero-stats { position: relative; z-index: 2; padding-bottom: 36px; animation: fadeUp 1s .7s var(--ease) both; }
.stats {
  display: flex; flex-wrap: wrap; border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .14);
}
.stat { flex: 1 1 0; min-width: 0; padding: 22px 26px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:last-of-type { border-right: 0; }
.stat strong { display: block; font-family: var(--font-title); font-stretch: 112%; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .72); }

/* ---------- Logos en défilement continu ---------- */
.trust { background: var(--night); color: #fff; border-top: 1px solid var(--night-line); overflow: hidden; }
.trust-inner { display: flex; align-items: center; gap: 36px; padding-top: 30px; padding-bottom: 30px; }
.trust-title { margin: 0; flex: none; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); max-width: 140px; line-height: 1.5; }
.trust-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust-track { display: flex; align-items: center; gap: 18px; width: max-content; animation: marquee 34s linear infinite; }
.trust-track.hors-ecran { animation-play-state: paused; } /* à l'arrêt hors écran */
.trust-viewport:hover .trust-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-item { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 64px; min-width: 130px; padding: 0 22px; border-radius: 16px; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.trust-item img { max-height: 44px; max-width: 120px; object-fit: contain; }

/* ---------- Réalisations ---------- */
.realisations { background: var(--bg-soft); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 36px; }
.toolbar .filters { order: -1; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chip { border: 0; background: transparent; color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.chip:hover { color: var(--ink); background: var(--bg-soft); }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; }
.chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] .chip-count { background: var(--green-light); color: var(--night); }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: #fff; min-width: 340px; box-shadow: var(--shadow-sm); } /* assez large pour le texte indicatif entier */
.search input { border: 0; outline: 0; padding: 14px 0; font: inherit; font-size: 14.5px; width: 100%; background: transparent; }
.search input::placeholder { color: #5f6675; opacity: 1; } /* texte indicatif bien lisible */
.search input { text-overflow: ellipsis; color: var(--ink); }
.search > span:not(.sr-only) { display: flex; color: #5f6675; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 116, .18); }

.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--night-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
/* Cadre photo : la photo est affichée EN ENTIER et JAMAIS agrandie au-delà de sa taille réelle (donc toujours nette).
   L'espace libre autour est comblé par un fond flou tiré de la même photo, pour garder des cadres de taille identique. */
.cadre-photo { position: relative; overflow: hidden; isolation: isolate; }
.cadre-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fond, none) center / cover no-repeat;
  filter: blur(22px) saturate(1.1) brightness(.72); transform: scale(1.2);
}
.cadre-photo > img {
  position: absolute; inset: 0; margin: auto; width: auto !important; height: auto !important;
  max-width: 100%; max-height: 100%; object-fit: contain !important;
  min-width: 48px; min-height: 48px; /* sinon une image « lazy » de taille 0 n'est jamais chargée */
}
/* Diaporama et avant/après : la photo occupe toute la zone (agrandie si besoin), toujours entière */
.slide.cadre-photo > img, .ba-photo.cadre-photo > img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.card-count {
  position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(7, 11, 20, .55); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
}
.card-count svg { width: 14px; height: 14px; }
/* Badge « Avant → Après » : deux parties (sombre / vert COBEN) reliées par une flèche */
.card-ba {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-grid; grid-template-columns: 1fr 1fr;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  border-radius: 999px; overflow: hidden; box-shadow: 0 6px 18px rgba(7, 11, 20, .35); border: 1px solid rgba(255, 255, 255, .22);
}
.card-ba > span { display: flex; align-items: center; justify-content: center; padding: 7px 10px; }
.card-ba .ba-avant { background: rgba(7, 11, 20, .62); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .78); padding-right: 16px; }
.card-ba .ba-apres { background: var(--grad); color: #fff; padding-left: 16px; }
.card-ba svg {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; padding: 4px; z-index: 1;
  border-radius: 50%; background: #fff; color: var(--green-dark); box-shadow: 0 2px 6px rgba(7, 11, 20, .3);
  transition: transform .4s var(--ease);
}
.card:hover .card-ba svg { transform: translateX(2px); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
.card-body h3 { font-family: var(--font-title); font-size: 20px; line-height: 1.25; margin: 0; color: var(--ink); letter-spacing: -.01em; }
.card-link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.card-link svg { width: 18px; height: 18px; color: var(--green); transition: transform .35s var(--ease); }
.card:hover .card-link svg { transform: translateX(6px); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); background: var(--green-50); padding: 5px 11px; border-radius: 999px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; flex: none; color: var(--green); }

/* Réalisations (accueil) : carrousel de cartes blanches façon magazine, 3 par page (2 sur tablette, 1 sur téléphone).
   Toutes les photos ont le même cadre (photo entière, côtés comblés par un fond flou), puis titre, catégorie et extrait centrés. Angles droits, aucune bordure. */
.grid-realisations { display: block; }
.carrousel-fenetre { overflow: hidden; margin: -24px -15px 0; padding: 24px 0 40px; } /* marge pour l'ombre au survol */
.carrousel-piste { display: flex; transition: transform .8s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.carrousel-page {
  flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 30px;
  align-items: stretch; padding: 0 15px; box-sizing: border-box;
  transition: opacity .8s ease;
}
.carrousel-page[aria-hidden="true"] { opacity: .35; }
.carrousel-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 4px; }
.carrousel-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border: 0; border-radius: 0; cursor: pointer;
  background: #0b0f17; color: #fff; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: background .3s, transform .3s var(--ease), opacity .3s;
}
.carrousel-btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.carrousel-btn.suivant svg { transform: rotate(180deg); }
.carrousel-btn:hover:not(:disabled) { background: var(--green-dark); }
.carrousel-btn:hover:not(:disabled) svg { transform: translateX(-3px); }
.carrousel-btn.suivant:hover:not(:disabled) svg { transform: rotate(180deg) translateX(-3px); }
.carrousel-btn:disabled { opacity: .3; cursor: default; }
.carrousel-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.carrousel-compteur { min-width: 64px; text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.carrousel-compteur strong { color: var(--ink); font-size: 18px; }
@media (max-width: 559px) { .carrousel-btn span { display: none; } .carrousel-btn { padding: 13px 16px; } }
@media (prefers-reduced-motion: reduce) { .carrousel-piste, .carrousel-page { transition: none; } }
.grid-realisations .card {
  background: #fff; border-radius: 0; box-shadow: none; padding: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.grid-realisations .card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(10, 16, 30, .1); }
.grid-realisations .glow-card::before { display: none; }
.grid-realisations .card-media { border-radius: 0; background: var(--night-3); aspect-ratio: 4 / 3; }
.grid-realisations .card-media > img { transition: transform 1s var(--ease); }
.grid-realisations .card:hover .card-media > img { transform: scale(1.04); }
.grid-realisations .card-body { padding: 26px 26px 30px; gap: 0; align-items: center; text-align: center; }
.grid-realisations .card-body h3 {
  font-size: 21px; line-height: 1.3; font-weight: 600; color: #22262e;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* titre sur 2 lignes au plus */
}
.grid-realisations .card-cat {
  margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: #9a9ea6;
}
.card-extrait {
  margin: 16px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.7; color: #8a8e96;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-extrait svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--green-dark); }
.card-extrait .sep { margin: 0 8px; }

.empty { text-align: center; color: var(--muted); padding: 60px 0 100px; grid-column: 1 / -1; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; grid-column: 1 / -1; }

/* ---------- Sections sombres ---------- */
.dark { background: var(--night); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.dark .section-title { color: #fff; }
.dark .section-lead { color: rgba(255, 255, 255, .65); }
.dark .eyebrow-dark { color: var(--green-light); }
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.glow-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .35; pointer-events: none; }
.glow-orb.green { background: #1f8a3d; right: -120px; top: -160px; }
.glow-orb.navy { background: #262b86; left: -160px; bottom: -200px; }
.dark .container { position: relative; }
.watermark { position: absolute; right: -2%; bottom: -8%; font-family: var(--font-title); font-stretch: 125%; font-weight: 900; font-size: clamp(120px, 20vw, 300px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; user-select: none; }

/* Cartes lumineuses (halo qui suit la souris) */
.glow-card { position: relative; isolation: isolate; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 220, 116, .16), transparent 45%);
}
.glow-card:hover::before { opacity: 1; }

/* ---------- Savoir-faire (accueil) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.service {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .035);
  border: 1px solid var(--night-line); transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(61, 220, 116, .45); background: rgba(255, 255, 255, .06); }
.service-num { position: absolute; right: 26px; top: 22px; font-family: var(--font-title); font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .25); }
.service-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 24px; box-shadow: var(--glow); }
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-title); font-stretch: 108%; font-size: 21px; margin: 0 0 10px; color: #fff; }
.service p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 15px; }

/* ---------- Aperçu des études (rangée justifiée, sans recadrage) ---------- */
.etudes-teaser { display: flex; gap: 18px; }
.teaser-card { position: relative; flex-basis: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--night-3); display: block; box-shadow: var(--shadow); }
.teaser-card img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.teaser-card:hover img { transform: scale(1.06); }
.teaser-overlay {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 50px 18px 16px; background: linear-gradient(transparent, rgba(7, 11, 20, .85)); color: #fff; font-weight: 700; font-size: 15px;
}
.teaser-overlay small { font-size: 12px; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Carte ---------- */
.map-section { background: var(--bg-soft); padding: var(--section) 0; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 32px; }
.map-head .section-title { margin-top: 16px; }
.map-head p { margin: 0; max-width: 44ch; font-size: 16px; }
.map { height: 560px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #dfe7ec; z-index: 0; border: 6px solid #fff; }
.map-pin { background: var(--grad); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.map-pin span { transform: rotate(45deg); color: #fff; font: 800 13px var(--font-body); }
.map-popup { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.map-popup-lieu { font-family: var(--font-title); font-size: 15px; color: var(--ink); }
.map-popup a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.35; }
.map-popup a:hover span { color: var(--green-dark); text-decoration: underline; }
.map-popup img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.leaflet-container { font-family: var(--font-body); }

/* ---------- Grand bandeau d'appel ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--night); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/hero-chantier.jpg") center 60% / cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(7, 11, 20, .94) 20%, rgba(22, 106, 46, .82) 60%, rgba(38, 43, 134, .85) 100%); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(70px, 9vw, 120px); }
.cta-band h2 { font-family: var(--font-title); font-stretch: 115%; font-weight: 900; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 14px; max-width: 18ch; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Bandeaux des pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--night); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/fond-accueil") center 55% / cover, url("/assets/hero-accueil.jpg") center 55% / cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 11, 20, .95) 30%, rgba(7, 11, 20, .72) 65%, rgba(19, 28, 49, .55) 100%); }
.page-hero .container { position: relative; padding-top: 170px; padding-bottom: 110px; }
.page-hero h1 { font-family: var(--font-title); font-stretch: 116%; font-weight: 900; font-size: clamp(38px, 6vw, 80px); line-height: .98; letter-spacing: -.035em; margin: 20px 0 20px; animation: fadeUp 1s var(--ease) both; }
.page-hero .lead { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0; animation: fadeUp 1s .15s var(--ease) both; }
.page-hero .hero-actions { margin-top: 32px; }

/* ---------- Page chantier ---------- */
.project-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; min-height: 78svh; display: flex; align-items: flex-end; isolation: isolate; }
/* Photo du chantier affichée entière, à sa taille réelle (jamais agrandie ni zoomée) ; les côtés sont comblés par un fond flou */
.project-hero-bg { position: absolute; inset: 0; z-index: -2; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 20, .6) 0%, rgba(7, 11, 20, .1) 35%, rgba(7, 11, 20, .9) 100%); }
.project-hero .container { width: 100%; padding-top: 160px; padding-bottom: 96px; }
.project-hero .page-top { margin-bottom: 30px; padding-top: 0; }
.project-hero h1 { font-family: var(--font-title); font-stretch: 114%; font-weight: 900; font-size: clamp(34px, 5.6vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 18px 0 0; max-width: 20ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); animation: fadeUp 1s var(--ease) both; }
.page-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--green-dark); font-weight: 600; }
.project-hero .breadcrumb, .project-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.btn-back { padding: 11px 18px 11px 14px; font-size: 14px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-back:hover { background: rgba(255, 255, 255, .22); transform: translateX(-3px); }
.btn-back svg { width: 16px; height: 16px; }
.back-bottom .btn-back, .empty .btn-back, .form-success .btn-back { background: var(--night); border-color: var(--night); }
.project-body { padding-bottom: 8px; }
.project-facts {
  position: relative; z-index: 2; margin: -52px 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.fact { display: flex; align-items: center; gap: 14px; padding: 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact > svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.fact dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
.has-hero main#content > .loading, .not-found { padding-top: 170px; }
.description { max-width: 72ch; font-size: 19px; line-height: 1.8; margin: 0 0 48px; white-space: pre-line; color: var(--ink); }
.gallery-title, .before-after .section-title { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 22px; }
/* Galerie photos en diaporama : photo entière sur fond nuit, flèches, lecture automatique, miniatures */
.slider { padding-bottom: 56px; }
.slider .gallery-title small { font-size: 14px; }
.slider-stage {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--night);
  aspect-ratio: 16 / 9; max-height: 76vh; box-shadow: var(--shadow-lg); outline-offset: 4px;
}
/* Transition : la nouvelle photo se dévoile en balayage (sens de navigation) avec un liseré lumineux,
   se pose en léger zoom arrière, tandis que l'ancienne recule et s'assombrit */
.slider-track { position: relative; height: 100%; --sens: 1; }
.slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; cursor: zoom-in; opacity: 0; visibility: hidden; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; animation: slideDevoile 1s var(--ease) both; }
.slide.active.vers-gauche { animation-name: slideDevoileG; }
.slide.active > img { animation: slidePose 1.6s var(--ease) both; }
.slide.active::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; z-index: 3; left: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--green-light) 30%, #fff 50%, var(--green-light) 70%, transparent);
  box-shadow: 0 0 24px 4px rgba(61, 220, 116, .55); animation: slideLisere 1s var(--ease) both;
}
.slide.active.vers-gauche::after { animation-name: slideLisereG; }
.slide.sortante { opacity: 1; visibility: visible; z-index: 1; }
.slide.sortante > img { animation: slideRecule 1s var(--ease) both; }
.slide.sortante::before { animation: slideAssombrit 1s var(--ease) both; }
.slide.sans-anim, .slide.sans-anim > img, .slide.sans-anim::after { animation: none; }
.slide.sans-anim::after { display: none; }
@keyframes slideDevoile { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes slideDevoileG { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slidePose { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes slideLisere { from { left: 100%; opacity: 1; } 85% { opacity: 1; } to { left: 0; opacity: 0; } }
@keyframes slideLisereG { from { left: 0; opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 4px); opacity: 0; } }
@keyframes slideRecule { to { transform: translateX(calc(var(--sens) * -7%)) scale(.9); filter: brightness(.35); } }
@keyframes slideAssombrit { to { filter: blur(22px) saturate(1.1) brightness(.3); } }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slider-btn {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(7, 11, 20, .5); backdrop-filter: blur(8px); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease), opacity .25s;
}
.slider-btn:hover { background: var(--green); transform: scale(1.08); }
.slider-btn svg { width: 22px; height: 22px; }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.slider-play {
  position: absolute; right: 18px; top: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(7, 11, 20, .5); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; transition: background .25s;
}
.slider-play:hover { background: var(--green); }
.slider-play svg { width: 16px; height: 16px; }
.slider-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 40px 22px 18px;
  background: linear-gradient(transparent, rgba(7, 11, 20, .75)); color: #fff; pointer-events: none;
}
.slider-counter { flex: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; }
.slider-caption { font-size: 14.5px; font-weight: 600; }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .12); }
.slider-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@keyframes sliderProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.slider-thumb {
  flex: 0 0 110px; height: 74px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg-soft);
  opacity: .55; outline: 3px solid transparent; outline-offset: -3px; transition: opacity .25s, outline-color .25s, transform .25s var(--ease);
}
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider-thumb:hover { opacity: .9; transform: translateY(-2px); }
.slider-thumb.active { opacity: 1; outline-color: var(--green); }
.before-after { margin: 0 0 56px; }
.ba-list { display: flex; flex-direction: column; gap: 28px; }
.ba-card h3 { font-family: var(--font-title); font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Toutes les photos avant/après ont exactement le même format ; la photo entière reste visible en grand au clic */
.ba-photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ba-photo:hover img { transform: scale(1.03); }
.ba-label { position: absolute; left: 14px; top: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ba-label.avant { background: rgba(7, 11, 20, .82); }
.ba-label.apres { background: var(--grad); }
.project-cta {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--night); color: #fff; border-radius: 22px; padding: 32px 36px; margin-bottom: 40px; isolation: isolate;
}
.project-cta::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -100px; top: -180px; border-radius: 50%; background: #1f8a3d; filter: blur(90px); opacity: .5; }
.project-cta strong { display: block; font-family: var(--font-title); font-stretch: 110%; font-size: 24px; color: #fff; }
.project-cta span { color: rgba(255, 255, 255, .75); font-size: 15px; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 0 24px; }
.project-nav a { text-decoration: none; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.project-nav a:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.project-nav small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.project-nav span { font-weight: 700; color: var(--ink); font-family: var(--font-title); font-size: 17px; }
.project-nav .next { text-align: right; grid-column: 2; }
.project-nav a.has-img { position: relative; overflow: hidden; min-height: 170px; justify-content: flex-end; border: 0; color: #fff; isolation: isolate; }
.project-nav a.has-img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-nav a.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 20, .15), rgba(7, 11, 20, .88)); }
.project-nav a.has-img:hover img { transform: scale(1.07); }
.project-nav a.has-img small { color: var(--green-light); }
.project-nav a.has-img span { color: #fff; font-size: 19px; }
.back-bottom { display: flex; justify-content: center; padding: 8px 0 80px; }

/* ---------- Études architecturales ---------- */
.etudes-page { padding-top: 72px; padding-bottom: var(--section); }
.etudes-hint { margin: 0; font-size: 14px; }
.etudes-grid { columns: 3 340px; column-gap: 22px; }
.etude-card {
  break-inside: avoid; margin: 0 0 22px; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s; display: inline-block; width: 100%;
}
.etude-card:hover, .etude-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); outline: none; }
.etude-media { position: relative; background: var(--night-3); overflow: hidden; }
.etude-media img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.etude-card:hover .etude-media img { transform: scale(1.05); }
.etude-vues { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(7, 11, 20, .7); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.etude-vues svg { width: 14px; height: 14px; }
.etude-card figcaption { padding: 16px 18px 18px; }
.etude-card h3 { font-family: var(--font-title); font-size: 18px; color: var(--ink); margin: 0; }
.etude-card figcaption p { margin: 6px 0 0; font-size: 14px; color: var(--text); }

/* ---------- Visionneuse plein écran ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 15, .96); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px; user-select: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-caption { color: rgba(255, 255, 255, .85); font-size: 14px; margin-top: 16px; min-height: 20px; text-align: center; padding: 0 20px; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb-btn:hover { background: var(--green); transform: scale(1.06); }
.lb-btn[hidden] { display: none; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; margin-top: -26px; }
.lb-next { right: 22px; top: 50%; margin-top: -26px; }
.lb-counter { position: absolute; top: 34px; left: 28px; color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; letter-spacing: .06em; }

/* ---------- À propos ---------- */
.about-nav { position: sticky; top: 90px; z-index: 15; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.about-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.about-nav a { white-space: nowrap; padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.about-nav a:hover { color: var(--ink); border-bottom-color: var(--green); }
.about-nav ~ main section[id] { scroll-margin-top: 140px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.about-intro .section-title { margin: 16px 0 0; font-size: clamp(28px, 3.2vw, 42px); }
.about-presentation { font-size: 20px; line-height: 1.7; color: var(--ink); margin: 22px 0; }
.about-histoire p { color: var(--text); margin: 0 0 14px; }
.publics { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.publics li { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-dark); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
.publics svg { width: 16px; height: 16px; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.about-mosaic img:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 8; }
/* Frise « Notre histoire » : horizontale sur ordinateur, verticale sur mobile */
.about-timeline { padding-bottom: var(--section); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 66px; height: 2px; background: linear-gradient(90deg, #3ddc74, #1f8a3d 45%, #262b86); opacity: .35; }
.jalon { position: relative; display: flex; flex-direction: column; gap: 14px; }
.jalon-annee { font-family: var(--font-title); font-stretch: 115%; font-weight: 900; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.2) brightness(.8); }
.jalon-point { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--green); box-shadow: 0 0 0 6px rgba(61, 220, 116, .18); position: relative; z-index: 1; }
.jalon-texte h3 { font-family: var(--font-title); font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.jalon-texte p { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 30px; }
  .timeline::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, #3ddc74, #262b86); }
  .jalon-point { position: absolute; left: -30px; top: 8px; }
}

.about-figures { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.figures { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.figure { border-left: 2px solid var(--green-light); padding-left: 22px; }
.figure strong { display: block; font-family: var(--font-title); font-stretch: 115%; font-size: clamp(40px, 4.6vw, 62px); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figure span { display: block; margin-top: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .65); }
.about-block { padding-top: var(--section); }
.block-head { margin-bottom: 40px; max-width: 72ch; }
.block-head .section-title { margin: 16px 0 10px; }
.block-head p { margin: 0; font-size: 17px; }
.block-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; }
.domaines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.domaine { border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s; }
.domaine:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.domaine-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--glow); }
.domaine-icon svg { width: 27px; height: 27px; }
.domaine h3 { font-family: var(--font-title); font-stretch: 106%; font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.domaine p { margin: 0; color: var(--text); font-size: 15px; }
.about-band { background: var(--night); color: #fff; margin-top: var(--section); padding: var(--section) 0; position: relative; overflow: hidden; }
.about-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 70%);
}
.about-band .container { position: relative; }
.about-band .section-title { color: #fff; }
.demarche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 1180px) { .demarche { grid-template-columns: repeat(var(--etapes, 3), minmax(0, 1fr)); } }
.etape { position: relative; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 26px 22px; transition: border-color .4s, transform .4s var(--ease); }
.etape:hover { border-color: rgba(61, 220, 116, .45); transform: translateY(-4px); }
.etape-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); font-family: var(--font-title); font-weight: 800; font-size: 15px; margin-bottom: 16px; box-shadow: var(--glow); }
.etape h3 { font-family: var(--font-title); font-size: 18px; margin: 0 0 8px; }
.etape p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.6; }
.engagements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.engagement { display: flex; align-items: flex-start; gap: 16px; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.engagement-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--green-50); color: var(--green-dark); display: grid; place-items: center; }
.engagement-icon svg { width: 22px; height: 22px; stroke-width: 2.6; }
.engagement h3 { font-family: var(--font-title); font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.engagement p { margin: 0; color: var(--text); font-size: 14.5px; }
.about-soft { background: var(--bg-soft); margin-top: var(--section); padding: var(--section) 0; }
.references { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.reference { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 18px 20px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.reference:hover { transform: translateY(-4px); }
.reference-logo { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 15px; }
.reference-logo-img { width: 70px; height: 48px; flex: none; display: grid; place-items: center; }
.reference-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.about-zones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.about-zones .section-title { margin: 16px 0 12px; }
.about-zones p { margin: 0 0 26px; font-size: 17px; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.zones li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; border-radius: 16px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); }
.zones svg { grid-row: span 2; width: 22px; height: 22px; color: var(--green); }
.zones strong { color: var(--ink); }
.zones span { font-size: 13px; color: var(--muted); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); padding-bottom: var(--section); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: -60px; padding-bottom: var(--section); align-items: start; position: relative; z-index: 2; }
.form-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); }
.form-card label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.form-card input, .form-card select, .form-card textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--text); background: var(--bg-soft); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 0; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 116, .16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ref-note { background: var(--green-50); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 22px; }
.ref-note a { color: var(--green-dark); font-weight: 700; }
.form-msg { color: #b42318; font-size: 14px; margin: 0 0 14px; }
.form-msg:empty { display: none; }
.btn-submit { padding: 16px 30px; font-size: 15.5px; }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.form-legal { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.form-success { text-align: center; padding: 30px 8px; }
.form-success h2 { font-family: var(--font-title); color: var(--ink); margin: 0 0 8px; }
.form-success p { margin: 0 0 24px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--glow); }
.success-icon svg { width: 32px; height: 32px; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.side-card h2 { font-family: var(--font-title); font-size: 19px; color: var(--ink); margin: 0 0 18px; }
#coordCard { background: var(--night); color: rgba(255, 255, 255, .8); }
#coordCard h2, #coordCard .coord a, #coordCard .coord span { color: #fff; }
#coordCard .coord small { color: rgba(255, 255, 255, .55); }
.coord { display: flex; gap: 14px; margin-bottom: 16px; }
.coord svg { width: 20px; height: 20px; color: var(--green-light); flex: none; margin-top: 3px; }
.coord small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.coord a { color: var(--ink); font-weight: 700; text-decoration: none; }
.coord a:hover { color: var(--green-light); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps strong { display: block; color: var(--ink); }
.steps span { font-size: 14px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer-bar { display: none; }
.site-footer { position: relative; overflow: hidden; background: var(--night); color: rgba(255, 255, 255, .62); padding: 90px 0 0; font-size: 14.5px; }
.site-footer::before { content: "COBEN"; position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%); font-family: var(--font-title); font-stretch: 125%; font-weight: 900; font-size: clamp(120px, 22vw, 340px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 72px; }
.footer-logo img { height: 66px; width: auto; background: #fff; border-radius: 14px; padding: 5px 12px; }
.footer-brand p { margin: 22px 0 26px; max-width: 40ch; line-height: 1.75; }
.footer-col h3 { font-family: var(--font-title); color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin: 8px 0 22px; }
.footer-cta { padding: 13px 24px; }
.footer-contact p { display: flex; gap: 12px; margin: 0 0 12px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--green-light); }
.footer-contact a, .footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s; }
.footer-contact a:hover, .footer-links a:hover { color: var(--green-light); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-admin { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { position: relative; border-top: 1px solid var(--night-line); padding: 24px 0; font-size: 13px; color: rgba(255, 255, 255, .45); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-credit strong { font-weight: 600; color: rgba(255, 255, 255, .7); }

/* ---------- Avertissement accès administrateur ---------- */
.warn-dialog { border: 0; border-top: 5px solid #d92d20; border-radius: 20px; padding: 34px 30px 28px; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); text-align: center; color: var(--text); }
.warn-dialog::backdrop { background: rgba(7, 11, 20, .7); backdrop-filter: blur(4px); }
.warn-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #fef3f2; color: #d92d20; }
.warn-icon svg { width: 26px; height: 26px; }
.warn-dialog h2 { font-family: var(--font-title); font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.warn-dialog p { margin: 0 0 12px; font-size: 15px; }
.warn-dialog p strong { color: #b42318; }
.warn-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.warn-btn { border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.warn-cancel { background: var(--green); color: #fff; }
.warn-cancel:hover { background: var(--green-dark); }
.warn-go { background: #fff; border-color: var(--line); color: var(--muted); }
.warn-go:hover { border-color: var(--muted); color: var(--ink); }

/* ---------- Apparition au défilement & bouton « retour en haut » ---------- */
/* « translate » (et non « transform ») pour ne pas bloquer les effets de survol des cartes */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, background .45s; }
.reveal.is-visible { opacity: 1; translate: none; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 50px; height: 50px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
body:has(.lightbox.open) .to-top { display: none; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 31; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wa-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .3s var(--ease);
}
.wa-icon svg { width: 32px; height: 32px; }
.wa-icon::after { content: ""; position: absolute; right: 0; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.6s infinite; }
@keyframes waPulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa-float:hover .wa-icon { transform: scale(1.08); }
.wa-bubble {
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); white-space: nowrap;
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.wa-float:hover .wa-bubble, .wa-float.hint .wa-bubble, .wa-float:focus-visible .wa-bubble { opacity: 1; transform: none; }
.has-wa .to-top { bottom: 96px; right: 27px; }
body:has(.lightbox.open) .wa-float { display: none; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 90px; left: 12px; right: 12px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px;
  }
  .nav.open { display: flex; animation: fadeUp .3s var(--ease); }
  .nav a, .has-hero .site-header .nav > a:not(.nav-cta) { padding: 13px 16px; font-size: 15.5px; border-radius: 12px; color: var(--ink); }
  .nav > a:not(.nav-cta):not(.admin-access)::after { display: none; }
  .nav > a[aria-current="page"] { background: var(--green-50); }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .nav a.admin-access { justify-content: center; margin: 6px 0 0; width: auto; height: auto; padding: 12px 16px; gap: 8px; border-color: var(--line) !important; }
  .nav a.admin-access .label { position: static; width: auto; height: auto; clip: auto; }
  .has-hero .site-header:not(.scrolled):not(.menu-open) .menu-toggle { background: rgba(255, 255, 255, .92); border-color: transparent; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 130px; }
  .hero-video { max-width: 560px; }
}
@media (max-width: 900px) {
  .stat { flex-basis: 50%; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .stat:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout, .about-intro, .about-zones { grid-template-columns: 1fr; }
  .map { height: 440px; }
  .float-badge.b1 { left: 10px; }
  .float-badge.b2 { right: 10px; }
  .video-frame { transform: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .brand img { height: 54px; }
  .hero-title { font-size: clamp(38px, 11vw, 54px); }
  .hero-grid { padding-top: 118px; }
  .float-badge { display: none; }
  .stat { padding: 18px; }
  .search { min-width: 0; width: 100%; }
  .filters { border-radius: 22px; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-title { max-width: none; }
  .trust-viewport { width: 100%; }
  .etudes-teaser { flex-direction: column; }
  .teaser-card { flex-grow: 0 !important; }
  .slider-stage { aspect-ratio: 4 / 3; border-radius: 16px; }
  .slider-btn { width: 42px; height: 42px; margin-top: -21px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-thumb { flex-basis: 84px; height: 58px; }
  .slider-caption { display: none; }
  .project-hero { min-height: 70svh; }
  .project-hero .container { padding-top: 130px; padding-bottom: 72px; }
  .project-facts { grid-template-columns: 1fr 1fr; margin-top: -36px; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav .next { grid-column: 1; }
  .ba-pair { gap: 8px; }
  .ba-label { left: 8px; top: 8px; padding: 4px 9px; font-size: 11px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin-top: 0; }
  .page-hero .container { padding-top: 130px; padding-bottom: 90px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .demarche { grid-template-columns: 1fr; }
  .project-cta { padding: 26px 22px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-icon, .wa-icon::after { width: 54px; height: 54px; }
  .wa-bubble { display: none; }
  .has-wa .to-top { bottom: 84px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .filters, .hero-video, .btn-back, .search, .site-footer, .project-nav, .lightbox, .hero-actions, .map-section, .cta-band, .project-cta, .to-top, .scroll-progress { display: none !important; }
  .hero, .page-hero, .project-hero, .dark { background: none !important; color: var(--ink); min-height: 0; }
  .card { break-inside: avoid; box-shadow: none; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- Page Évènements ---------- */
.evenements-page { padding-top: 72px; padding-bottom: var(--section); }
.evenements-section + .evenements-section { margin-top: 72px; }
.evenements-section .section-title small { font-size: 15px; color: var(--muted); font-weight: 700; }
.evenements-liste { display: grid; gap: 28px; margin-top: 26px; }
.evenement {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: #fff;
  box-shadow: 0 1px 2px rgba(10, 16, 30, .04), 0 14px 40px rgba(10, 16, 30, .07); overflow: hidden;
  transition: box-shadow .4s var(--ease), translate .4s var(--ease);
}
.evenement:hover { box-shadow: 0 24px 60px rgba(10, 16, 30, .13); }
.evenement-media { min-height: 300px; background: var(--night-3); }
.evenement-media > img { cursor: zoom-in; transition: transform 1s var(--ease); }
.evenement:hover .evenement-media > img { transform: scale(1.04); }
.evenement-logo { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--night-3), var(--night)); }
.evenement-logo img { width: 140px; padding: 10px 16px; background: #fff; border-radius: 12px; opacity: .9; }
.evenement-date {
  position: absolute; left: 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 86px; padding: 14px 12px 12px; background: var(--grad); color: #fff; line-height: 1; text-align: center;
  box-shadow: 0 10px 30px rgba(7, 11, 20, .3);
}
.evenement-date strong { font-family: var(--font-title); font-stretch: 112%; font-weight: 900; font-size: 40px; letter-spacing: -.02em; }
.evenement-date span { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.evenement-date small { font-size: 12px; font-weight: 600; opacity: .8; margin-top: 4px; }
.evenement-body { padding: 34px 38px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.evenement-body .meta span:first-child::first-letter { text-transform: uppercase; }
.evenement-body h3 { font-family: var(--font-title); font-stretch: 108%; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.015em; }
.evenement-texte { margin: 0; color: var(--ink-soft, #3d4556); line-height: 1.7; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.evenement-texte.ouvert { display: block; -webkit-line-clamp: unset; }
.evenement-suite { align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; color: var(--green-dark); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.evenement-suite:hover { text-decoration: underline; }
.evenement-photos {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.evenement-photos .card-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 30, .06); transition: background .35s, transform .35s var(--ease); }
.evenement-photos .card-arrow svg { width: 17px; height: 17px; }
.evenement-photos:hover .card-arrow { background: var(--grad); color: #fff; transform: rotate(-45deg); }
.a-venir .evenement { outline: 2px solid var(--green); outline-offset: -2px; }
@media (max-width: 900px) {
  .evenement { grid-template-columns: 1fr; }
  .evenement-media { min-height: 0; aspect-ratio: 16 / 10; }
  .evenement-body { padding: 24px 22px 26px; }
}

/* Liens vers les pages détail des études et des évènements */
a.etude-card { display: block; text-decoration: none; color: inherit; }
.evenement-lien-photo { position: absolute; inset: 0; z-index: 1; }
.evenement-media > img { cursor: pointer; }
.evenement h3 a { color: inherit; text-decoration: none; transition: color .25s; }
.evenement h3 a:hover { color: var(--green-dark); }
a.evenement-photos { text-decoration: none; }

/* ---------- Vidéos des chantiers, études et évènements ---------- */
.videos-section { margin: 56px 0 8px; }
.videos-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.videos-grille.une { grid-template-columns: minmax(0, 960px); }
.video-carte { margin: 0; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.video-carte video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b0f17; object-fit: contain; }
.video-carte figcaption { padding: 14px 18px; font-weight: 600; color: var(--ink); }

/* ---------- Typographie : trois styles d'écriture ----------
   Archivo (titres en gras), Inter (texte courant) et Playfair Display en italique pour les mots mis en valeur,
   les numéros, les années et les petits textes d'ambiance. */
.section-title em, .page-hero h1 em, .cta-band h2 em, .side-card h2 em, .form-success h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 600; font-stretch: normal; letter-spacing: -.01em;
  padding-right: .12em; /* l'italique ne se fait pas couper par le dégradé */
}
.section-title em { color: var(--green-dark); }
.dark .section-title em, .about-band .section-title em, .about-figures .section-title em, .trust .section-title em,
#coordCard h2 em, .page-hero h1 em, .cta-band h2 em {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.side-card:not(#coordCard) h2 em, .form-success h2 em { color: var(--green-dark); }

/* Numéros et années en italique élégant */
.service-num, .etape-num { font-family: var(--font-accent); font-style: italic; font-weight: 600; }
.service-num { font-size: 22px; }
.etape-num { font-size: 19px; }
.jalon-annee { font-family: var(--font-accent); font-style: italic; font-weight: 700; font-stretch: normal; letter-spacing: 0; padding-right: .06em; }

/* Textes d'ambiance */
.footer-brand p { font-family: var(--font-accent); font-style: italic; font-size: 17px; line-height: 1.6; }
.page-hero .lead, .about-hero .lead { font-family: var(--font-accent); font-style: italic; font-size: 21px; line-height: 1.55; }
.card-extrait { font-family: var(--font-accent); font-style: italic; }
.eyebrow { letter-spacing: .2em; }

/* Étiquette de catégorie posée sur une photo (cartes « Quelques chantiers récents » de la page À propos) :
   au premier plan, pastille sombre translucide et texte blanc, lisible sur n'importe quelle photo */
.card-media > .tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; max-width: calc(100% - 28px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(7, 11, 20, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 4px 14px rgba(7, 11, 20, .25);
  padding: 6px 12px;
}

/* ---------- Réalisations : défilement automatique et apparition des cartes ---------- */
.carrousel-piste.saut { transition: none; }
/* Les cartes de la page qui arrive montent l'une après l'autre, le flou se dissipe et la photo se recadre doucement */
.carrousel-page.entree .card { animation: carteEntre .9s cubic-bezier(.2, .8, .2, 1) backwards; /* backwards : le survol des cartes reste actif ensuite */ }
.carrousel-page.entree .card:nth-child(2) { animation-delay: .12s; }
.carrousel-page.entree .card:nth-child(3) { animation-delay: .24s; }
.carrousel-page.entree .card-media > img { animation: photoEntre 1.4s cubic-bezier(.2, .8, .2, 1) backwards; }
.carrousel-page.entree .card:nth-child(2) .card-media > img { animation-delay: .12s; }
.carrousel-page.entree .card:nth-child(3) .card-media > img { animation-delay: .24s; }
@keyframes carteEntre {
  from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes photoEntre { from { transform: scale(1.14); } to { transform: scale(1); } }
/* Fine barre qui se remplit jusqu'au prochain défilement */
.carrousel-progression { width: min(240px, 60%); height: 3px; margin: 18px auto 0; background: rgba(10, 16, 30, .08); overflow: hidden; }
.carrousel-progression span { display: block; height: 100%; width: 0; background: var(--grad); }
.carrousel-progression.en-pause span { width: 0; }
@keyframes carrouselTemps { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .carrousel-page.entree .card, .carrousel-page.entree .card-media > img { animation: none; }
  .carrousel-progression { display: none; }
}

/* ---------- Réalisations : pagination ----------
   Boutons ronds, compteur « 01 / 06 » en italique et points cliquables ; le point de la page affichée s'allonge
   et se remplit jusqu'au prochain défilement automatique. */
.carrousel-nav { gap: 18px; margin-top: 10px; }
.carrousel-btn {
  width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid rgba(10, 16, 30, .12); box-shadow: 0 6px 18px rgba(10, 16, 30, .07);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.carrousel-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); border-radius: inherit; transform: scale(0); transition: transform .45s var(--ease); }
.carrousel-btn:hover:not(:disabled) { background: #fff; color: #fff; border-color: transparent; box-shadow: 0 12px 26px rgba(31, 138, 61, .3); transform: translateY(-2px); }
.carrousel-btn:hover:not(:disabled)::before { transform: scale(1); }
.carrousel-btn:active:not(:disabled) { transform: scale(.94); }
.carrousel-btn svg { width: 20px; height: 20px; }
.carrousel-btn:hover:not(:disabled) svg { transform: translateX(-3px); }
.carrousel-btn.suivant:hover:not(:disabled) svg { transform: rotate(180deg) translateX(-3px); }

.carrousel-compteur { min-width: 0; display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-accent); font-style: italic; font-size: 17px; color: var(--muted); }
.carrousel-compteur strong { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.carrousel-compteur span { opacity: .5; }

.carrousel-points { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.carrousel-point {
  position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: rgba(10, 16, 30, .16); transition: width .55s cubic-bezier(.2, .8, .2, 1), background .3s, transform .3s;
}
.carrousel-point:hover { background: rgba(10, 16, 30, .32); transform: scale(1.2); }
.carrousel-point.actif { width: 46px; background: rgba(31, 138, 61, .18); transform: none; }
.carrousel-point span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); border-radius: inherit; }
.carrousel-point.actif span { width: 100%; } /* plein quand le défilement automatique est arrêté */
.carrousel-points:not(.en-pause) .carrousel-point.actif span { width: 0; }
.carrousel-point:focus-visible, .carrousel-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.carrousel-progression { display: none; } /* remplacée par le point actif */

/* Beaucoup de pages (téléphone) : seul le compteur reste, les points prendraient trop de place */
@media (max-width: 559px) {
  .carrousel-nav.nombreuses .carrousel-points { display: none; }
  .carrousel-nav { gap: 12px; }
  .carrousel-btn { width: 46px; height: 46px; padding: 0; }
}
@media (min-width: 560px) { .carrousel-nav:not(.nombreuses) .carrousel-compteur { order: 0; } }
