/* ==========================================================================
   Destination Orientation — feuille de style unique
   Identité : turquoise #0097A7, épuré, moderne, responsive, accessible
   ========================================================================== */

:root {
  --teal: #0097A7;
  --teal-dark: #00727E;
  --teal-darker: #005560;
  --teal-tint: #E6F5F7;
  --teal-tint-2: #F4FBFC;
  --ink: #14343A;
  --ink-soft: #4A6169;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --line: #E4E7E8;
  --focus: #FF8A5B;

  /* surfaces contextuelles (thémables) */
  --header-bg: rgba(255, 255, 255, .9);
  --footer-bg: #14343A;   /* toujours sombre */
  --zone-bg: #005560;     /* toujours sombre */
  --shadow-alpha: 0, 86, 96;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 86, 96, .10);
  --shadow-lg: 0 20px 50px rgba(0, 86, 96, .16);
  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --header-h: 132px;
  --logo-h: 112px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Thèmes : jour (défaut) / nuit / système ===== */
/* jetons du mode nuit */
@media (prefers-color-scheme: dark) {
  :root {
    --teal-dark: #4bc4d3;
    --teal-darker: #7fd9e4;
    --teal-tint: #16292e;
    --teal-tint-2: #101e22;
    --ink: #e7eff1;
    --ink-soft: #9fb4b9;
    --paper: #0d1517;
    --white: #15242a;
    --line: #26383d;
    --header-bg: rgba(13, 21, 23, .9);
  }
}
/* forçage explicite (prioritaire sur la préférence système) */
:root[data-theme="light"] {
  --teal-dark: #00727E;
  --teal-darker: #005560;
  --teal-tint: #E6F5F7;
  --teal-tint-2: #F4FBFC;
  --ink: #14343A;
  --ink-soft: #4A6169;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --line: #E4E7E8;
  --header-bg: rgba(255, 255, 255, .9);
}
:root[data-theme="dark"] {
  --teal-dark: #4bc4d3;
  --teal-darker: #7fd9e4;
  --teal-tint: #16292e;
  --teal-tint-2: #101e22;
  --ink: #e7eff1;
  --ink-soft: #9fb4b9;
  --paper: #0d1517;
  --white: #15242a;
  --line: #26383d;
  --header-bg: rgba(13, 21, 23, .9);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .95rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: .2em 0 .6em; }
h3 { font-size: 1.3rem; }

/* ---------- Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--teal); margin: 0 0 .3rem;
}
.section-intro, .mission-text { max-width: 62ch; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--teal); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  font-size: 1rem; line-height: 1;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(0,151,167,.28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand-logo { height: var(--logo-h); width: auto; }
.header-right { display: flex; align-items: center; gap: .45rem; }

/* Sélecteur de thème jour / nuit / système */
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--teal-tint); color: var(--teal-dark); border-color: var(--teal); }
.theme-toggle .ic { display: none; width: 21px; height: 21px; }
.theme-toggle[data-mode="system"] .ic-system,
.theme-toggle[data-mode="light"] .ic-light,
.theme-toggle[data-mode="dark"] .ic-dark { display: block; }
/* état par défaut avant init JS : montrer l'icône système */
.theme-toggle:not([data-mode]) .ic-system { display: block; }
.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: .55rem .8rem; border-radius: 8px; transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.site-nav .nav-cta { background: var(--teal); color: #fff; }
.site-nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle-bar { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; display: grid; align-items: center; min-height: clamp(460px, 78vh, 720px); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,85,96,.86) 0%, rgba(0,114,126,.72) 45%, rgba(0,151,167,.55) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 3rem; max-width: 760px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .82rem; margin: 0 0 1rem; color: #d6f4f7; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem); margin: 0 0 1rem; letter-spacing: -.01em; }
.hero-sub { display: block; font-weight: 400; font-size: clamp(1.1rem, .8rem + 1.4vw, 1.7rem); color: #eafafc; margin-top: .35rem; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 60ch; color: #f0fbfc; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Mission ---------- */
.section-mission { background: var(--white); text-align: center; }
.section-mission .kicker { color: var(--teal); }
.mission-quote {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); font-weight: 600; line-height: 1.35;
  color: var(--ink); max-width: 24ch; margin: .3em auto .8em; border: 0; position: relative;
}
.mission-text { margin-inline: auto; }

/* ---------- Étapes ---------- */
.section-etapes { background: var(--teal-tint-2); }
.etapes-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: none; }
.etape {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.7rem 1.7rem; box-shadow: var(--shadow);
}
.etape-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(0,151,167,.3);
}
.etape h3 { margin: 0 0 .5rem; color: var(--teal-darker); }
.etape p { margin: 0; color: var(--ink-soft); }
abbr { text-decoration: underline dotted; cursor: help; }

.etapes-intro { max-width: 60ch; margin-inline: auto; text-align: center; }

/* ---------- Vidéos ---------- */
.videos-grid { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.video-title { text-align: center; font-size: 1.1rem; color: var(--teal-darker); margin: 0 0 .7rem; }
.video-embed {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.video-embed:hover img { transform: scale(1.04); opacity: .9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; background: #ff0000; border-radius: 14px; transition: background .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.video-play::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.video-embed:hover .video-play, .video-embed:focus-visible .video-play { background: #ff2020; transform: translate(-50%, -50%) scale(1.08); }
.videos-note { text-align: center; margin: 1.4rem 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Équipe ---------- */
.section-equipe { background: var(--white); }
.equipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.membre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.membre img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.membre-body { padding: 1.4rem 1.6rem 1.7rem; }
.membre-body h3 { margin: 0 0 .1rem; }
.membre-role { color: var(--teal-dark); font-weight: 600; margin: 0 0 .6rem; }
.membre-body p:last-child { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.certifs { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 70ch; display: grid; gap: .9rem; }
.certifs li { background: var(--teal-tint-2); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: var(--ink-soft); }
.certifs strong { color: var(--teal-darker); }

/* ---------- Offres ---------- */
.section-offres { background: var(--teal-tint-2); }
.offres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; align-items: start; }
.offre { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow); }
.offre h3 { color: var(--teal-darker); margin: 0 0 .4rem; }
.offre-desc { color: var(--ink-soft); margin: 0 0 1rem; }
.offre-price { font-size: 2rem; font-weight: 800; color: var(--teal); margin: .2rem 0 1rem; }
.offre-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.offre-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.offre-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .4rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.offre-foot { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.offre-featured { border-color: var(--teal); box-shadow: var(--shadow-lg); grid-column: 1 / -1; }
.offre-featured .offre-list { grid-template-columns: repeat(2, 1fr); }
.offre-badge { position: absolute; top: -12px; right: 18px; background: var(--focus); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .35rem .8rem; border-radius: 999px; }
.offres-note { margin-top: 1.8rem; text-align: center; color: var(--ink-soft); }

/* ---------- Zone ---------- */
.section-zone { background: var(--zone-bg); color: #eafafc; }
.section-zone h2 { color: #fff; }
.section-zone .kicker { color: #7fd6e0; }
.zone-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.zone-inner > div { max-width: 55ch; }
.zone-inner strong { color: #fff; }
.zone-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; padding: 0; }
.zone-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .6rem 1.2rem; font-weight: 600; }

/* ---------- Contact ---------- */
.section-contact { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 12px); }
.contact-intro p { color: var(--ink-soft); max-width: 40ch; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.field-consent { display: flex; align-items: flex-start; gap: .6rem; }
.field-consent input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--teal); }
.field-consent label { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile-field { margin-bottom: 1.1rem; }
.cf-turnstile-box { min-height: 65px; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #c0392b; }
.form-required { font-size: .82rem; color: var(--ink-soft); margin: .8rem 0 0; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #cfdde0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: center; padding-block: 2.6rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { margin: 0; line-height: 1.4; font-size: .95rem; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.footer-nav a { color: #cfdde0; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding-block: 1.1rem; }
.footer-legal p { margin: 0; font-size: .85rem; color: #9fb3b7; }

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--white); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 .3em; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; color: var(--teal-darker); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--teal-dark); }
.legal .back { display: inline-block; margin-top: 2.5rem; font-weight: 600; text-decoration: none; }
.legal .back:hover { text-decoration: underline; }
.todo { background: #FFF4E5; border-left: 4px solid var(--focus); padding: .2rem .6rem; border-radius: 4px; font-style: italic; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav, .footer-social { justify-content: center; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  :root { --header-h: 96px; --logo-h: 74px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { max-height: 80vh; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem; }
  .site-nav a { padding: .9rem 1rem; border-radius: 8px; }
  .site-nav .nav-cta { text-align: center; margin-top: .3rem; }
  .etapes-grid, .equipe-grid, .offres-grid, .videos-grid { grid-template-columns: 1fr; }
  .offre-featured .offre-list { grid-template-columns: 1fr; }
}
