/* ==========================================================================
   OpenVista — site des webinaires mensuels
   Feuille de style unique, sans dépendance externe (aucune police distante,
   aucun CDN). Palette sobre : bleu nuit institutionnel + accent turquoise.
   ========================================================================== */

/* ------------------------------------------------------------- Variables */
:root {
  /* Couleurs */
  --nuit:        #0b2e52;  /* bleu nuit — en-tête, pied de page */
  --nuit-fonce:  #08213b;  /* survols sur fond sombre */
  --accent:      #1a6fdd;  /* liens et éléments actifs (4,8:1 sur blanc — AA) */
  --accent-fonce:#1355b0;  /* survols, fonds de bouton (blanc dessus : 7,1:1) */
  --accent-clair:#e8f1fe;  /* fonds très clairs teintés */
  --texte:       #1d2f3d;  /* texte courant */
  --texte-doux:  #4d5f6d;  /* texte secondaire */
  --fond:        #f5f8fa;  /* fond de page */
  --carte:       #ffffff;
  --bord:        #d5dfe6;
  --bord-fort:   #b9c7d1;
  --succes:      #1c6b47;

  /* Typographie — pile système, aucune police téléchargée */
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
  --police-titre: var(--police);

  /* Rythme */
  --largeur: 1120px;
  --rayon: 10px;
  --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(11, 46, 82, .06), 0 8px 24px rgba(11, 46, 82, .06);
  --ombre-forte: 0 2px 4px rgba(11, 46, 82, .08), 0 16px 40px rgba(11, 46, 82, .12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  color: var(--nuit);
  line-height: 1.22;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); letter-spacing: -.01em; }
h3 { font-size: 1.14rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { margin: 0; }

img, svg { max-width: 100%; height: auto; }

/* L'attribut hidden doit primer sur les display:grid/flex des composants */
[hidden] { display: none !important; }

strong { color: var(--nuit); }

sup { font-size: .62em; vertical-align: super; line-height: 0; }

/* --------------------------------------------------------------- Liens */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: .08em;
}

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

/* Focus toujours visible, y compris sur fond sombre */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.entete :focus-visible,
.pied :focus-visible,
.appel :focus-visible {
  outline-color: #8fc0ff;
}

/* ----------------------------------------------------------- Utilitaires */
.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--carte);
  color: var(--nuit);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--rayon-petit) 0;
  font-weight: 600;
}

.lien-evitement:focus {
  left: 0;
}

/* --------------------------------------------------------------- Boutons */
.bouton {
  display: inline-block;
  padding: .8rem 1.35rem;
  border-radius: var(--rayon-petit);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bouton--principal {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
  color: #fff;
}

.bouton--principal:hover,
.bouton--principal:focus {
  background: var(--nuit);
  border-color: var(--nuit);
  color: #fff;
}

.bouton--secondaire {
  background: var(--carte);
  border-color: var(--bord-fort);
  color: var(--nuit);
}

.bouton--secondaire:hover,
.bouton--secondaire:focus {
  border-color: var(--accent);
  color: var(--accent-fonce);
}

.bouton--petit { padding: .5rem 1rem; font-size: .94rem; }
.bouton--large { display: block; width: 100%; }

/* --------------------------------------------------------------- En-tête */
.entete {
  background: var(--carte);
  border-bottom: 1px solid var(--bord);
  position: sticky;
  top: 0;
  z-index: 20;
}

.entete__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: .85rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--nuit);
}

.marque__pastille {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--nuit);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}

.marque__logo { display: block; height: 2.5rem; width: auto; }

.marque__texte { display: flex; flex-direction: column; line-height: 1.2; }
.marque__texte strong { font-size: 1.05rem; }
.marque__texte span { font-size: .82rem; color: var(--texte-doux); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.15rem;
  list-style: none;
}

.nav a {
  color: var(--texte);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--accent-fonce);
  border-bottom-color: var(--accent);
}

.nav a.bouton { color: #fff; border-bottom: none; }
.nav a.bouton:hover { color: #fff; }

/* ------------------------------------------------------------------ Hero */
.hero {
  background:
    radial-gradient(1100px 420px at 15% -10%, var(--accent-clair) 0%, rgba(232, 241, 254, 0) 65%),
    var(--carte);
  border-bottom: 1px solid var(--bord);
  padding-block: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
}

.hero__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.hero__texte { min-width: 0; }

.etiquette {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--accent-clair);
  color: var(--accent-fonce);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.chapo {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem);
  color: var(--texte-doux);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.faits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bord);
}

.fait { display: flex; flex-direction: column; gap: .15rem; }

.fait__valeur {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--nuit);
  line-height: 1.2;
}

.fait__libelle { font-size: .9rem; color: var(--texte-doux); }

/* Carte « prochaine séance » */
.carte-prochaine {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-top: 4px solid var(--accent);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.6rem;
}

.carte-prochaine__etiquette {
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-fonce);
}

.carte-prochaine h2 { font-size: 1.28rem; }

.carte-prochaine__date {
  color: var(--texte-doux);
  font-size: .95rem;
  margin-bottom: .9rem;
}

.carte-prochaine__note {
  margin-top: .85rem;
  font-size: .86rem;
  color: var(--texte-doux);
}

/* -------------------------------------------------------------- Sections */
.section { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); }

.section--alternee {
  background: var(--carte);
  border-block: 1px solid var(--bord);
}

.section__intro {
  max-width: 68ch;
  color: var(--texte-doux);
  margin-bottom: 2rem;
}

.note-bas-de-section {
  margin-top: 1.75rem;
  font-size: .92rem;
  color: var(--texte-doux);
}

/* ------------------------------------------------------- Grille de cartes */
.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.carte {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--ombre);
}

.carte h3 { margin-bottom: .45rem; }
.carte p { color: var(--texte-doux); font-size: .97rem; }

.carte--accent {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-clair), var(--carte) 55%);
}

.carte__note { font-size: .88rem; }

.grille-deux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.liste-coches {
  list-style: none;
  display: grid;
  gap: .55rem;
}

.liste-coches li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--texte-doux);
  font-size: .97rem;
}

.liste-coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .95rem;
  height: .5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------ Programme */
.programme {
  list-style: none;
  counter-reset: seance;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.seance {
  counter-increment: seance;
  position: relative;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.seance::before {
  content: "Séance " counter(seance, decimal-leading-zero);
  position: absolute;
  top: -.75rem;
  left: 1.5rem;
  background: var(--nuit);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18rem .6rem;
  border-radius: 999px;
}

.seance__date {
  margin: .35rem 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-fonce);
}

.seance__titre { margin: 0; font-size: 1.1rem; }

.seance__resume { color: var(--texte-doux); font-size: .96rem; margin: 0; }

.seance__points {
  list-style: none;
  display: grid;
  gap: .4rem;
  font-size: .93rem;
  color: var(--texte);
  margin: .15rem 0 0;
}

.seance__points li {
  position: relative;
  padding-left: 1.25rem;
}

.seance__points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.seance__action {
  margin: auto 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--bord);
  font-size: .95rem;
  font-weight: 600;
}

.seance__action a { text-decoration-thickness: .1em; }

/* -------------------------------------------------------------- Étapes */
.etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.etape {
  counter-increment: etape;
  position: relative;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.4rem 1.45rem 1.4rem 1.45rem;
  box-shadow: var(--ombre);
}

.etape::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .8rem;
  border-radius: 50%;
  background: var(--accent-clair);
  color: var(--accent-fonce);
  font-weight: 700;
}

.etape h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.etape p { color: var(--texte-doux); font-size: .96rem; }

.encart {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  background: var(--accent-clair);
  border: 1px solid #bcd7f7;
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon-petit);
  font-size: .98rem;
}

/* ------------------------------------------------------------ Questions */
.question {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-petit);
  padding: .35rem 1.15rem;
  margin-bottom: .7rem;
}

.question summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--nuit);
  padding: .8rem 0;
  list-style-position: outside;
}

.question summary:hover { color: var(--accent-fonce); }

.question p {
  color: var(--texte-doux);
  font-size: .97rem;
  padding-bottom: 1rem;
  max-width: 78ch;
}

/* ----------------------------------------------------------- Appel final */
.appel {
  background: var(--nuit);
  color: #e8f1fe;
}

.appel__boite {
  text-align: center;
  max-width: 780px;
}

.appel h2 { color: #fff; }
.appel p { color: #c9dcf5; max-width: 62ch; margin-inline: auto; }
.appel .bouton {
  display: inline-block;
  width: auto;
  margin-top: .5rem;
  background: #fff;
  border-color: #fff;
  color: var(--nuit);
}

.appel .bouton:hover,
.appel .bouton:focus {
  background: var(--accent-clair);
  border-color: var(--accent-clair);
  color: var(--nuit-fonce);
}

/* ---------------------------------------------------------------- Pied */
.pied {
  background: var(--nuit-fonce);
  color: #c9dcf5;
  padding-block: 2.5rem 1.5rem;
  font-size: .94rem;
}

.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  align-items: start;
}

.pied__marque {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: .4rem;
}

.pied a { color: #9cc4ff; }
.pied a:hover { color: #fff; }

.pied__liens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .45rem 1.25rem;
}

.pied__bas {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .87rem;
  color: #a9bddb;
}

.pied__bas p { margin: 0; }

/* ----------------------------------------------------- Formulaire (inscription) */
.formulaire {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: clamp(1.35rem, 1rem + 1.4vw, 2.25rem);
  max-width: 720px;
}

.champ { margin-bottom: 1.35rem; }

.champ label,
.champ legend {
  display: block;
  font-weight: 600;
  color: var(--nuit);
  margin-bottom: .35rem;
  padding: 0;
}

.champ .aide {
  display: block;
  font-weight: 400;
  font-size: .88rem;
  color: var(--texte-doux);
  margin-bottom: .45rem;
}

.champ .aide--en-ligne {
  display: inline;
  margin-bottom: 0;
}

.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--texte);
  background: #fff;
  border: 1px solid var(--bord-fort);
  border-radius: var(--rayon-petit);
}

.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: var(--accent); }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 111, 221, .20);
  outline: none;
}

.champ input:user-invalid,
.champ select:user-invalid {
  border-color: #a4262c;
  box-shadow: 0 0 0 3px rgba(164, 38, 44, .14);
}

.champ--case {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.champ--case input { margin-top: .35rem; }
.champ--case label { font-weight: 400; color: var(--texte); margin: 0; font-size: .95rem; }

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.35rem;
}

.obligatoire { color: #a4262c; font-weight: 700; }

.formulaire__actions { margin-top: 1.5rem; }

.formulaire__mention {
  font-size: .88rem;
  color: var(--texte-doux);
  margin-top: .9rem;
}

.message-statut {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: var(--rayon-petit);
  font-size: .95rem;
}

.message-statut--succes {
  background: #e7f4ec;
  border: 1px solid #a9d6bd;
  color: var(--succes);
}

.message-statut--erreur {
  background: #fdeaea;
  border: 1px solid #efb6b6;
  color: #8c1f24;
}

/* Bandeau de page secondaire */
.bandeau {
  background: var(--nuit);
  color: #e8f1fe;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.bandeau h1 { color: #fff; margin-bottom: .35rem; }
.bandeau p { color: #c9dcf5; max-width: 60ch; margin: 0; }

.fil-ariane {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  font-size: .9rem;
  margin-top: 1rem;
}

/* Séparateur « › » entre les étapes du fil d'Ariane */
.fil-ariane li + li::before {
  content: "›";
  margin-right: .5rem;
  color: #8fb0e0;
}

.fil-ariane a { color: #9cc4ff; }

/* Recapitulatif (merci.html) */
.recapitulatif {
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 1.25rem 0 0;
}

.recapitulatif li {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: .5rem 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--bord);
  font-size: .97rem;
}

.recapitulatif dt,
.recapitulatif .cle {
  font-weight: 600;
  color: var(--nuit);
}

.recapitulatif .valeur { color: var(--texte-doux); }

.centre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------ Réactivité */
@media (max-width: 900px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .chapo { max-width: none; }
}

@media (max-width: 640px) {
  .entete { position: static; }
  .entete__interieur { justify-content: center; }
  .nav ul { justify-content: center; }
  .pied__grille { grid-template-columns: minmax(0, 1fr); }
  .recapitulatif li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .hero__actions .bouton { width: 100%; }
}

/* -------------------------------------------------- Préférences système */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .entete, .appel, .pied__liens { display: none; }
  body { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
