/* ============================================================
   LDA — lda-france.com — Feuille de style principale
   Thème clair (défaut) / thème sombre — bleu LDA
   ============================================================ */

/* ---------- Polices locales (Bender) ---------- */
@font-face {
  font-family: 'Bender';
  src: url('fonts/Bender.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bender';
  src: url('fonts/Bender-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bender';
  src: url('fonts/Bender-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bender';
  src: url('fonts/Bender-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables : thème CLAIR (défaut) ---------- */
:root {
  --bg: #e8edf4;
  --bg-2: #dfe7f0;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --card-grad-b: #f2f7fb;
  --line: rgba(11, 71, 111, 0.16);
  --accent: #0079a8;
  --accent-deep: #0092c8;
  --accent-dark: #0b476f;
  --btn-hover-bg: #0b76a8;
  --btn-hover-fg: #ffffff;
  --text: #16283a;
  --muted: #46607a;
  --prose-text: #3c5268;
  --strong: #0b2437;
  --white-card: #f5f8fb;
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-solid: #ffffff;
  --alt-a: rgba(203, 219, 233, 0.55);
  --alt-b: rgba(203, 219, 233, 0.2);
  --glow-a: rgba(0, 146, 200, 0.1);
  --glow-b: rgba(11, 71, 111, 0.1);
  --ghost-bg: rgba(11, 71, 111, 0.06);
  --ghost-line: rgba(11, 71, 111, 0.35);
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(23, 56, 86, 0.28);
  --font: 'Bender', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Variables : thème SOMBRE ---------- */
html[data-theme="dark"] {
  --bg: #0a1420;
  --bg-2: #0d1b2c;
  --surface: #112438;
  --surface-2: #16304a;
  --card-grad-b: rgba(13, 27, 44, 0.6);
  --line: rgba(126, 190, 233, 0.16);
  --accent: #2fb2e8;
  --accent-deep: #0092c8;
  --accent-dark: #0b476f;
  --btn-hover-bg: #2fb2e8;
  --btn-hover-fg: #04121d;
  --text: #e9f1f8;
  --muted: #a9bfd2;
  --prose-text: #c7d6e4;
  --strong: #ffffff;
  --white-card: #f5f8fb;
  --header-bg: rgba(9, 18, 30, 0.86);
  --header-solid: rgba(9, 18, 30, 0.97);
  --alt-a: rgba(17, 36, 56, 0.55);
  --alt-b: rgba(17, 36, 56, 0.2);
  --glow-a: rgba(0, 146, 200, 0.14);
  --glow-b: rgba(11, 71, 111, 0.35);
  --ghost-bg: rgba(255, 255, 255, 0.07);
  --ghost-line: rgba(126, 190, 233, 0.4);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -100px, var(--glow-a), transparent 60%),
    radial-gradient(900px 600px at -150px 40%, var(--glow-b), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s, color 0.25s;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: var(--accent);
}

::selection {
  background: var(--accent-deep);
  color: #fff;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 53px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(47, 178, 232, 0.12);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: skewX(-18deg);
}

.site-nav a.nav-cta {
  margin-left: 6px;
  background: var(--accent-deep);
  color: #fff;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  border-radius: 0;
  padding: 10px 18px;
}

.site-nav a.nav-cta:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}

/* Bouton mode clair / mode sombre */
.theme-toggle {
  margin-left: 6px;
  padding: 9px 11px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(47, 178, 232, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 46px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--header-solid);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    font-size: 14.5px;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    clip-path: none;
    border-radius: 9px;
  }

  .theme-toggle {
    margin-left: 0;
    margin-top: 8px;
    padding: 13px 14px;
    font-size: 14.5px;
  }
}

/* ============================================================
   HERO (toujours sombre, sur photo)
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  color: #e9f1f8;
}

.hero.hero-sub {
  min-height: clamp(260px, 36vh, 380px);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slides img.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 26, 0.94) 0%, rgba(7, 15, 26, 0.72) 45%, rgba(7, 15, 26, 0.42) 100%),
    linear-gradient(0deg, rgba(7, 15, 26, 0.55) 0%, transparent 35%);
}

.hero-content {
  padding: 70px 0;
  max-width: 780px;
}

.hero-sub .hero-content {
  padding: 46px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  transform: skewX(-18deg);
}

/* dans le hero (photo sombre), le kicker et les accents restent bleu clair */
.hero .kicker {
  color: #2fb2e8;
}

.hero .kicker::before {
  background: #2fb2e8;
}

.hero h1 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.hero h1 em {
  font-style: normal;
  color: #2fb2e8;
}

.hero p.lead {
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  color: #cfdeeb;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--accent-deep);
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}

.btn.btn-ghost {
  background: var(--ghost-bg);
  border: 0;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--ghost-line);
}

.btn.btn-ghost:hover {
  background: rgba(47, 178, 232, 0.18);
  color: var(--text);
}

/* bouton fantôme posé sur le hero sombre : texte clair fixe */
.hero .btn.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(126, 190, 233, 0.4);
}

.hero .btn.btn-ghost:hover {
  background: rgba(47, 178, 232, 0.25);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, var(--alt-a), var(--alt-b));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .section-head {
  margin-inline: auto;
}

.center .kicker {
  justify-content: center;
}

/* ---------- Bandeau statistiques ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.stat {
  background: linear-gradient(160deg, var(--surface), var(--card-grad-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 46px;
  height: 4px;
  background: var(--accent);
  transform: skewX(-18deg);
}

.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Grilles de cartes ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: linear-gradient(165deg, var(--surface), var(--card-grad-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.card h3 em {
  font-style: normal;
  color: var(--accent);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 16px;
}

.card ul {
  padding-left: 20px;
  margin: 14px 0;
}

.card li {
  margin-bottom: 8px;
}

.card li::marker {
  color: var(--accent);
}

.card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(0, 146, 200, 0.14);
  border: 1px solid rgba(47, 178, 232, 0.35);
  border-radius: 12px;
  color: var(--accent);
}

.card .icon svg {
  width: 28px;
  height: 28px;
}

/* carte cliquable */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, border-color 0.22s;
}

a.card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 178, 232, 0.55);
}

a.card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Encadré média (images claires, captures, docs) ---------- */
.media-card {
  background: var(--white-card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.media-card figcaption {
  padding: 12px 6px 4px;
  color: #33475a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

figure {
  margin: 0;
}

.media-dark {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-dark img,
.media-dark video {
  display: block;
  width: 100%;
  height: auto;
}

/* vignette qui remplit toute la carte (recadrage centré) */
.media-fill {
  display: grid;
}

.media-fill img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.media-dark figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Bloc texte long ---------- */
.prose {
  max-width: 860px;
}

.prose p {
  color: var(--prose-text);
  margin: 0 0 18px;
  text-align: justify;
}

.prose strong {
  color: var(--strong);
}

/* ---------- Split 2 colonnes média / texte ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ratio vidéo ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Coordonnées (contact) ---------- */
.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(165deg, var(--surface), var(--card-grad-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(0, 146, 200, 0.14);
  border: 1px solid rgba(47, 178, 232, 0.35);
  border-radius: 11px;
  color: var(--accent);
}

.contact-item .icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

/* ============================================================
   FOOTER (toujours sombre, dans les deux thèmes)
   ============================================================ */
.site-footer {
  margin-top: 60px;
  background: #081120;
  border-top: 1px solid rgba(126, 190, 233, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.site-footer h4 {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2fb2e8;
}

.site-footer p,
.site-footer li {
  color: #a9bfd2;
  font-size: 15px;
}

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

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #a9bfd2;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand img {
  height: 55px;
  width: auto;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(126, 190, 233, 0.16);
  padding: 18px 0;
  text-align: center;
  color: #7f95a9;
  font-size: 13.5px;
}

/* ============================================================
   UTILITAIRES / DIVERS
   ============================================================ */

/* Bouton retour en haut */
#btn-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(47, 178, 232, 0.5);
  border-radius: 12px;
  background: rgba(9, 18, 30, 0.9);
  color: #2fb2e8;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

#btn-top.show {
  display: flex;
}

#btn-top:hover {
  background: #0092c8;
  color: #fff;
}

#btn-top svg {
  width: 20px;
  height: 20px;
}

/* Bandeau cookies / RGPD (toujours sombre) */
#rgpd-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(680px, calc(100% - 30px));
  background: rgba(9, 18, 30, 0.97);
  border: 1px solid rgba(47, 178, 232, 0.4);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
  display: none;
}

#rgpd-banner.show {
  display: block;
}

#rgpd-banner p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #a9bfd2;
}

#rgpd-banner .rgpd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#rgpd-banner .btn {
  padding: 10px 22px;
  font-size: 13px;
}

#rgpd-banner .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(126, 190, 233, 0.4);
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
