/* ===========================================================
   SALAMANDRE CCR — Design system
   =========================================================== */

:root {
  --ink: #081b2e;
  --ink-2: #0e2338;
  --surface: #133249;
  --surface-2: #173c58;
  --line: rgba(255, 255, 255, 0.11);
  --teal: #22ddd0;
  --teal-2: #0aa89b;
  --red: #e2001a;
  --white: #f6fafc;
  --muted: #9cbcd0;
  --muted-2: #6f95ab;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }

p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--ink-2); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.wide { max-width: 940px; }

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04191c; }
.btn-primary:hover { background: #4fe3d7; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #ff1f38; }

/* ===================== DEPTH GAUGE ===================== */
.depth-gauge {
  position: fixed;
  top: 110px;
  bottom: 40px;
  left: 20px;
  width: 56px;
  z-index: 500;
  pointer-events: none;
}
.depth-gauge-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), var(--line) 10%, var(--line) 90%, var(--teal-2));
  opacity: .55;
}
.depth-gauge-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.depth-gauge-ticks .tick {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 6px;
}
.depth-gauge-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.depth-gauge-tick-mark {
  flex: none;
  width: 7px;
  height: 1px;
  background: var(--muted-2);
}
.depth-gauge-marker {
  position: absolute;
  top: 0;
  left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  transform: translateY(-50%);
}
.depth-gauge-marker::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(43, 212, 199, .9), 0 0 0 3px rgba(43, 212, 199, .15);
}
.depth-gauge-current {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(6, 21, 32, .9);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

.tick-link {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
.tick-link .depth-gauge-label,
.tick-link .depth-gauge-tick-mark {
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tick-link:hover .depth-gauge-label,
.tick-link:focus-visible .depth-gauge-label {
  color: var(--teal);
}
.tick-link:hover .depth-gauge-tick-mark,
.tick-link:focus-visible .depth-gauge-tick-mark {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(34, 221, 208, .8);
}
.tick-name {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 21, 32, .95);
  border: 1px solid var(--teal-2);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity .18s ease, transform .18s ease;
}
.tick-link:hover .tick-name,
.tick-link:focus-visible .tick-name {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 980px) {
  .depth-gauge { display: none; }
}

/* ===================== HEADER ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 21, 32, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .05em;
  white-space: nowrap;
  flex: none;
}
.brand img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .16em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 10px 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  background: var(--surface-2);
}

.has-submenu { position: relative; }
.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  margin-bottom: 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
}
nav.main-nav ul.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  margin: 6px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1100;
}
nav.main-nav .has-submenu:hover ul.submenu,
nav.main-nav .has-submenu:focus-within ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
nav.main-nav ul.submenu a {
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 12px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { padding: 10px 18px; white-space: nowrap; }

.fullscreen-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.fullscreen-toggle:hover {
  color: var(--teal);
  border-color: var(--teal-2);
  background: var(--surface-2);
}
.fullscreen-toggle svg { width: 18px; height: 18px; flex: none; }
.fullscreen-toggle .icon-compress { display: none; }
.fullscreen-toggle.is-fullscreen .icon-expand { display: none; }
.fullscreen-toggle.is-fullscreen .icon-compress { display: block; }

/* Groupe segmenté : une capsule qui isole le sélecteur du menu voisin */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  /* capsule plus claire que la barre : sur fond sombre, un bloc clair se
     détache franchement mieux qu'un bloc plus foncé, qui se fondait. */
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
}
.lang-btn {
  display: block;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted-2);
  transition: color .2s ease;
}
.lang-btn:hover .lang-code { color: var(--white); }
.lang-btn.active {
  background: var(--teal);
  cursor: default;
}
.lang-btn.active .lang-code { color: #04191c; }

.nav-lang-switch { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,19,30,.35) 0%, rgba(5,19,30,.55) 55%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5,19,30,.85) 0%, rgba(5,19,30,.2) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px;
  max-width: 720px;
}
.hero-content .eyebrow {
  font-size: clamp(15px, 1.5vw, 18px);
  margin-bottom: 16px;
}
.hero-content .eyebrow span { color: var(--white); }
.hero-content h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero-content h1 span { color: var(--teal); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-page {
  min-height: 64vh;
  align-items: center;
}
.hero-page .hero-content { padding: 60px 0 60px; }
.hero-page h1 { font-size: clamp(32px, 5vw, 52px); }
/* Extension floutée : une copie de la photo, en pleine largeur derrière le panneau net,
   prolonge ses couleurs jusqu'aux bords du site. */
.hero-extend { display: none; }
/* cadrage remonté : dégage le sujet du bloc de texte */
.hero-page.focus-haut .hero-media img,
.hero-page.focus-haut .hero-extend img { object-position: center 90%; }
.hero-extend img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.15);
  filter: blur(48px) saturate(1.25) brightness(.62);
}
.hero-extend::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,27,46,.8) 0%, rgba(8,27,46,.25) 20%, rgba(8,27,46,.25) 80%, rgba(8,27,46,.8) 100%),
    linear-gradient(180deg, rgba(8,27,46,.35) 0%, rgba(8,27,46,.1) 45%, var(--ink) 100%);
}

/* image de fond limitée à la largeur du contenu : moins de recadrage, meilleure lecture.
   Sur mobile on garde le pleine largeur, le texte occupant tout l'écran. */
@media (min-width: 1000px) {
  .hero-page .hero-extend {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-page .hero-media {
    z-index: 1;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
  .hero-page .hero-media {
    left: 50%;
    right: auto;
    width: min(100% - 64px, 1320px);
    transform: translateX(-50%);
    border-radius: var(--radius);
    overflow: hidden;
  }
}

/* ===================== VISUELS HANS HASS ===================== */
.book-figures {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}
/* décalage vertical : diagonale descendante, dans le sens de lecture */
.book-figures figure { margin: 0; }
.book-figures figure:nth-child(1) { margin-bottom: 88px; }
.book-figures figure:nth-child(2) { margin-top: 88px; }
/* la seconde apparaît juste après la première au défilement */
.book-figures figure:nth-child(2).reveal { transition-delay: .18s; }
/* saturation et luminosité déjà atténuées dans les fichiers image,
   afin que le fond aplati reste identique à celui de la page */
.book-figures img { width: 100%; height: auto; }
.book-figures figcaption a {
  color: var(--teal);
  transition: color .2s ease;
}
.book-figures figcaption a:hover { color: var(--white); text-decoration: underline; }
.book-figures figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}
@media (max-width: 780px) {
  .book-figures { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .book-figures figure:nth-child(1),
  .book-figures figure:nth-child(2) { margin-top: 0; margin-bottom: 0; }
}

/* ===================== STATS STRIP ===================== */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--teal);
  display: block;
}
.stat .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .02em;
}
.stat .sub {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}
.stat-icon {
  width: 26px;
  height: 26px;
  color: var(--teal);
  margin: 0 auto 10px;
  display: block;
  opacity: .85;
}

/* ===================== FEATURE GRID ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--teal-2); }
.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(43, 212, 199, .12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; }

/* ===================== SPLIT / MEDIA-TEXT ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-spotlight {
  position: relative;
  border-radius: var(--radius);
  padding: 48px;
  background:
    radial-gradient(circle at 50% 40%, rgba(43,212,199,.16), transparent 65%),
    linear-gradient(160deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line);
}
.split .media.product-spotlight img,
.product-spotlight img {
  /* neutralise l'ombre rectangulaire de .split .media img, plus spécifique */
  border-radius: 0;
  box-shadow: none;
  max-height: 460px;
  width: auto;
  margin: 0 auto;
  /* drop-shadow suit la silhouette détourée, contrairement à box-shadow
     qui dessinerait un rectangle autour de l'image transparente */
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .5));
}
.split ul.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.split ul.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
}
.split ul.check-list li:last-child { border-bottom: none; }
.split ul.check-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--teal);
}

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ===================== PHOTO GRID ===================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.photo-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-grid a:hover img { transform: scale(1.07); }

/* ===================== DOWNLOADS ===================== */
.download-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.download-item:hover {
  transform: translateY(-3px);
  border-color: var(--teal-2);
}
.download-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(43, 212, 199, .12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-icon svg { width: 22px; height: 22px; }
.download-text strong {
  display: block;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}
.download-text small {
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: .02em;
}

/* ===================== CARDS (generic) ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card .card-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.info-card h3 { font-size: 18px; margin-bottom: 4px; }
.info-card .role { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; }
.badge-logo {
  height: 20px;
  width: auto;
  margin-right: 8px;
  border-radius: 3px;
  flex: none;
}
.eyebrow .badge-logo {
  height: 22px;
  margin-right: 8px;
  margin-bottom: -2px;
}
.badge-logo-chip {
  background: #fff;
  padding: 3px 6px;
  box-sizing: content-box;
}

.role.role-logo-only {
  justify-content: center;
  margin-bottom: 20px;
}
.role.role-logo-only .badge-logo {
  height: 68px;
  margin-right: 0;
}

.eyebrow.eyebrow-logo-only {
  display: flex;
  justify-content: center;
}
.eyebrow.eyebrow-logo-only .badge-logo {
  height: 68px;
  margin-right: 0;
  margin-bottom: 0;
}

/* IANTD's badge is a near-square crest rather than a wide wordmark like
   CMAS, so it needs extra height to read as visually equal in size.
   (Selector must match the specificity of the .badge-logo rules above
   to actually win instead of being silently overridden.) */
.role.role-logo-only .badge-logo.badge-logo-chip,
.eyebrow.eyebrow-logo-only .badge-logo.badge-logo-chip {
  height: 140px;
}

/* Instructor cards: name is the prominent element, status is the small label */
.instructor-card .role {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--white);
  margin-bottom: 4px;
}
.instructor-card .role .badge-logo {
  height: 24px;
}
.instructor-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.info-card dl { margin: 0; }
.info-card dl div { display: flex; gap: 8px; padding: 6px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.info-card dl div:first-of-type { border-top: none; }
.info-card dl dt { color: var(--muted-2); min-width: 60px; }
.info-card dl dd { margin: 0; }
.info-card a.value { color: var(--teal); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 70px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--teal-2), #0a4a52 60%, var(--ink));
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); max-width: 640px; margin: 0 auto 12px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; color: rgba(244,248,250,.85); }

/* ===================== FORM ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--ff);
  font-size: 15px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  border: 1px solid;
}
.form-status.success {
  background: rgba(43, 212, 199, .1);
  border-color: var(--teal-2);
  color: var(--teal);
}
.form-status.error {
  background: rgba(226, 0, 26, .1);
  border-color: var(--red);
  color: #ff8b98;
}

/* ===================== FOOTER ===================== */
#site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 14.5px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.social-row a:hover { border-color: var(--teal); color: var(--teal); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--teal); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===================== PAGE (legal/text) ===================== */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== LIGHTBOX ===================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 16, .93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  cursor: zoom-out;
  transition: filter .35s ease;
}
/* Pendant le chargement : la miniature sert d'aperçu flouté, à la place d'un
   cadre vide. Le flou masque son recadrage carré, seule la couleur compte. */
.lightbox-overlay.is-loading img { filter: blur(24px); }
.lightbox-overlay.is-loading::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: var(--teal);
  animation: lightbox-spin .8s linear infinite;
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay img { transition: none; }
  .lightbox-overlay.is-loading::after { animation-duration: 2.4s; }
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 18px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1050px) {
  nav.main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    bottom: 0;
    background: var(--ink);
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  body.nav-open nav.main-nav { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { font-size: 16px; padding: 14px 16px; }
  .header-actions .btn.hide-mobile { display: none; }
  .lang-switch { display: none; }
  .nav-toggle { display: block; }

  /* même capsule qu'en en-tête : elle épouse son contenu et se centre
     dans la colonne du menu, sans englober le trait de séparation */
  .nav-lang-switch {
    display: inline-flex;
    align-self: center;
    margin-top: 28px;
    position: relative;
  }
  .nav-lang-switch::before {
    content: "";
    position: absolute;
    left: -40px;
    right: -40px;
    top: -28px;
    border-top: 1px solid var(--line);
  }
  .nav-lang-switch .lang-btn { padding: 9px 20px; }
  .nav-lang-switch .lang-code { font-size: 14px; }

  .has-submenu > a::after { display: none; }
  nav.main-nav ul.submenu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    border: none;
    margin: 2px 0 6px;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--line);
  }
  nav.main-nav ul.submenu a { font-size: 14px; padding: 10px 16px; color: var(--muted-2); }
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .wide { grid-column: span 1; }
  .gallery-grid .tall { grid-row: span 1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 50px 24px; }
}
