/* ============================================================
   Neurovia Formations — Feuille de style commune des tunnels
   Accent par tunnel : défini dans chaque page via la variable
   --accent : bleu Neurovia (#2456C7) sur tous les tunnels
   ============================================================ */

:root {
  --navy: #1e3350;
  --navy-dark: #16263c;
  --ink: #2a3342;
  --muted: #5c6878;
  --bg: #f7f6f2;
  --card: #ffffff;
  --accent: #2456C7;          /* bleu Neurovia */
  --accent-dark: #1B3F94;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 38, 60, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- En-tête ---------- */
header.site {
  padding: 18px 0;
  background: transparent;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 800; font-size: 1.25rem; color: var(--navy);
  letter-spacing: .5px; text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.brand img { height: 44px; width: auto; display: block; }
.brand span { color: var(--accent); }
.brand-note { font-size: .85rem; color: var(--muted); }

/* ---------- Héros ---------- */
.hero { padding: 40px 0 60px; text-align: center; }
.eyebrow {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-dark);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.2; color: var(--navy);
  font-weight: 800; margin-bottom: 18px;
}
h1 .souligne {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 30%, white) 62%);
}
.sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted); max-width: 640px; margin: 0 auto 30px;
}

/* ---------- Cartes / sections ---------- */
section { padding: 48px 0; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy); font-weight: 800;
  margin-bottom: 16px; line-height: 1.25;
}
h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 30px;
}
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.pill-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}

/* ---------- Listes ---------- */
ul.check { list-style: none; margin: 18px 0; }
ul.check li {
  padding-left: 34px; position: relative; margin-bottom: 12px;
}
ul.check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, white);
  color: var(--accent-dark); font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Formulaire opt-in ---------- */
.optin-box {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
  max-width: 460px; margin: 0 auto; text-align: left;
}
.optin-box h3 { text-align: center; margin-bottom: 18px; font-size: 1.2rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 13px 15px; font-size: 1rem;
  border: 1.5px solid #d7dbe2; border-radius: 10px;
  background: #fbfbfd; transition: border-color .15s;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--accent); color: #fff;
  font-size: 1.08rem; font-weight: 700;
  padding: 15px 28px; border: none; border-radius: 12px;
  cursor: pointer; text-decoration: none;
  transition: transform .12s, filter .12s;
  font-family: inherit;
}
.btn:hover { filter: brightness(.93); transform: translateY(-1px); }
.btn-auto { width: auto; padding-left: 44px; padding-right: 44px; }

.rgpd {
  font-size: .78rem; color: var(--muted);
  margin-top: 14px; line-height: 1.5; text-align: center;
}
.rgpd a { color: var(--muted); }

/* Honeypot anti-spam : ne pas supprimer */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Vidéo ---------- */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--navy-dark);
  margin: 26px 0;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Témoignages ---------- */
.temoignage {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 18px 0;
  font-style: italic; color: var(--ink);
}
.temoignage .auteur {
  display: block; margin-top: 10px; font-style: normal;
  font-weight: 700; color: var(--navy); font-size: .92rem;
}

/* ---------- Bandeau sombre ---------- */
.bandeau {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #eef1f6; border-radius: var(--radius);
  padding: 40px 36px; text-align: center;
}
.bandeau h2 { color: #fff; }
.bandeau p { color: #c8d0dd; }

/* ---------- Pied de page ---------- */
footer.site {
  padding: 34px 0 44px; text-align: center;
  color: var(--muted); font-size: .85rem;
}
footer.site a { color: var(--muted); }

/* ---------- Divers ---------- */
.notice {
  background: #fff8e8; border: 1px solid #f0dfae;
  border-radius: 10px; padding: 14px 18px;
  font-size: .92rem; color: #7a6420; margin: 18px 0;
}
.small { font-size: .9rem; }
@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  .bandeau { padding: 30px 22px; }
  section { padding: 34px 0; }
}
