/* MNA Events — feuille de style du site
   Jetons repris de la charte graphique MNA Events (mode Plateau par défaut, bandes Jour). */

/* ---------- Polices (hébergées sur le site, aucun appel à Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* Mode Plateau (supports de communication) */
  --surface: #121116;
  --surface-raised: #1D1C22;
  --line: #34323A;
  --ink: #F4EFE7;
  --ink-muted: #ABA49B;
  --ambre: #FAB100;
  --on-ambre: #141318;
  --ambre-text: #FAB100;
  --ambre-soft: #3B2B0D;
  --tally: #FF6B4E;
  --on-tally: #141318;
  --plateau: #26242B;
  --craie: #F4EFE7;
  --focus: var(--ambre-text);
  --link: var(--ambre-text);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 16px;
  --espace-4: 24px;
  --espace-5: 40px;
  --espace-6: 64px;

  --rayon-0: 0px;
  --rayon-1: 4px;
  --rayon-pilule: 999px;

  --page: 1200px;
  --gouttiere: var(--espace-3);
  --entete: 80px;

  color-scheme: dark;
}

/* Bande « Jour » : craie, lisible en plein jour */
.jour {
  --surface: #F4EFE7;
  --surface-raised: #FBF8F3;
  --line: #DCD3C5;
  --ink: #141318;
  --ink-muted: #5F5850;
  --ambre: #FAB100;
  --ambre-text: #875A00;
  --ambre-soft: #FFEDBF;
  --tally: #B8311C;
  --on-tally: #FFFFFF;
  --plateau: #121116;
  --focus: #875A00;
  --link: #875A00;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gouttiere: var(--espace-5); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + var(--espace-3));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection { background: var(--ambre); color: var(--on-ambre); }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.evitement {
  position: absolute;
  left: var(--espace-3);
  top: -100px;
  z-index: 100;
  background: var(--ambre);
  color: var(--on-ambre);
  padding: var(--espace-2) var(--espace-3);
  border-radius: var(--rayon-1);
  font-weight: 700;
  text-decoration: none;
}
.evitement:focus { top: var(--espace-2); }

.conteneur {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* ---------- Typographie ---------- */
.affiche, .titre-1, .titre-2 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.affiche {
  font-size: clamp(44px, 9vw, 72px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.titre-1 {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.titre-2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.chapeau {
  font-size: 18px;
  line-height: 28px;
  margin: 0;
  color: var(--ink);
  max-width: 60ch;
  text-wrap: pretty;
}
.corps { font-size: 16px; line-height: 24px; margin: 0; }
.legende {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
  margin: 0;
}
.etiquette {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.etiquette--ambre { color: var(--ambre-text); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--espace-2);
  min-height: 48px;
  padding: 12px var(--espace-4);
  border-radius: var(--rayon-1);
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton--principal { background: var(--ambre); color: var(--on-ambre); }
.bouton--principal:hover { background: var(--ink); color: var(--surface); }
.bouton--secondaire { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.bouton--secondaire:hover { border-color: var(--ink); }
.bouton svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-4);
  height: var(--entete);
}
.entete__logo { display: block; flex: none; }
.entete__logo img { width: 120px; height: auto; }

.nav { display: flex; align-items: center; gap: var(--espace-4); }
.nav__liste {
  display: flex;
  gap: var(--espace-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__lien {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: var(--espace-2) 0;
  border-bottom: 2px solid transparent;
}
.nav__lien:hover { border-bottom-color: var(--ambre); }
.nav .bouton { min-height: 40px; padding: 8px var(--espace-3); font-size: 15px; }

.nav__bascule {
  display: none;
  align-items: center;
  gap: var(--espace-2);
  min-height: 44px;
  padding: 0 var(--espace-3);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-muted);
  border-radius: var(--rayon-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__bascule-traits { display: grid; gap: 4px; width: 16px; }
.nav__bascule-traits span { display: block; height: 2px; background: currentColor; }

@media (max-width: 899px) {
  .nav__bascule { display: inline-flex; }
  .nav__panneau {
    display: none;
    position: absolute;
    top: var(--entete);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--espace-3) var(--gouttiere) var(--espace-4);
  }
  .nav__panneau[data-ouvert="true"] { display: block; }
  .nav__liste { flex-direction: column; gap: 0; margin-bottom: var(--espace-3); }
  .nav__lien {
    display: block;
    padding: var(--espace-3) 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav__panneau .bouton { width: 100%; min-height: 48px; }
}
@media (min-width: 900px) {
  .nav__panneau { display: flex; align-items: center; gap: var(--espace-5); }
}

/* ---------- Ouverture (hero) ---------- */
.ouverture {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.ouverture__grille {
  display: grid;
  gap: var(--espace-5);
  padding-top: var(--espace-6);
  padding-bottom: var(--espace-6);
}
@media (min-width: 960px) {
  .ouverture__grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    min-height: min(78vh, 720px);
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
.ouverture__texte { display: grid; gap: var(--espace-4); }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: var(--espace-3); margin-top: var(--espace-2); }
.ouverture__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-2) var(--espace-4);
  margin: var(--espace-4) 0 0;
  padding: var(--espace-4) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

/* Scène : faisceau + séquence */
.scene {
  position: relative;
  min-height: 360px;
}
.scene .faisceau { fill: var(--ambre); }
.scene .cone { fill: var(--surface); opacity: .32; }
.scene .flaque { fill: var(--surface); }
.scene .socle { fill: var(--ambre-soft); }
.scene .pupitre { fill: var(--surface-raised); }
.scene .point { fill: var(--line); transition: fill .25s ease; }
.scene .point.allume { fill: var(--ambre); }
.scene .rec { fill: var(--tally); }
.scene__etiquette { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink-muted); }

.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 959px) {
  .scene {
    min-height: 0;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 480 / 400;
    margin-bottom: calc(-1 * var(--espace-6));
  }
}
@media (min-width: 960px) {
  .scene {
    align-self: stretch;
    min-height: 0;
    margin: -96px 0;
  }
}

/* ---------- Sections ---------- */
.section { padding: var(--espace-6) 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section + .section:not(.jour):not(.bandeau) { border-top: 1px solid var(--line); }

.section__tete {
  display: grid;
  gap: var(--espace-3);
  margin-bottom: var(--espace-5);
  max-width: 760px;
}
@media (min-width: 960px) {
  .section__tete--large {
    max-width: none;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--espace-5);
    align-items: end;
  }
  .section__tete--large .etiquette { grid-column: 1 / -1; }
}

/* ---------- Pôles ---------- */
.poles {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .poles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .poles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pole {
  display: flex;
  flex-direction: column;
  gap: var(--espace-3);
  padding: var(--espace-4);
  background: var(--surface-raised);
}
@media (min-width: 960px) { .pole { padding: var(--espace-5) var(--espace-4); } }
.pole__liste {
  list-style: none;
  margin: auto 0 0;
  padding: var(--espace-3) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--espace-2);
}
.pole__liste li {
  position: relative;
  padding-left: var(--espace-4);
  font-size: 15px;
  line-height: 22px;
}
.pole__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--rayon-pilule);
  background: var(--ambre);
}

/* Carte d'appel dans la grille des pôles */
.pole--appel {
  background: var(--ambre);
  color: var(--on-ambre);
  justify-content: space-between;
}
.pole--appel .titre-2, .pole--appel .etiquette { color: var(--on-ambre); }
.pole--appel .bouton {
  align-self: flex-start;
  background: var(--on-ambre);
  color: var(--ambre);
}
.pole--appel .bouton:hover { background: var(--surface); color: var(--ink); }
.pole--appel :focus-visible { outline-color: var(--on-ambre); }

/* ---------- Méthode : la conduite ---------- */
.conduite {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.cue {
  display: grid;
  gap: var(--espace-2) var(--espace-4);
  padding: var(--espace-4) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .cue {
    grid-template-columns: 96px minmax(0, 4fr) minmax(0, 7fr);
    align-items: baseline;
  }
}
.cue__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ambre-text);
}
.cue__titre {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cue p { margin: 0; color: var(--ink-muted); }

/* ---------- Bande Jour : location ---------- */
.jour { background: var(--surface); color: var(--ink); }
.location {
  display: grid;
  gap: var(--espace-5);
}
@media (min-width: 960px) {
  .location { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--espace-6); align-items: start; }
}
.location__texte { display: grid; gap: var(--espace-4); }
.fiches {
  display: grid;
  gap: var(--espace-3);
}
@media (min-width: 640px) { .fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fiche {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: var(--espace-4);
  display: grid;
  gap: var(--espace-2);
  align-content: start;
}
.fiche h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.fiche p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.fiche--mise-en-avant { background: var(--ambre-soft); border-color: transparent; }
.fiche--mise-en-avant p { color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 10px;
  border-radius: var(--rayon-pilule);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--surface);
}

/* ---------- À propos ---------- */
.apropos {
  display: grid;
  gap: var(--espace-5);
}
@media (min-width: 960px) {
  .apropos { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--espace-6); }
}
.apropos__texte { display: grid; gap: var(--espace-3); align-content: start; }
.apropos__texte p { margin: 0; max-width: 62ch; }
.valeurs {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.valeur {
  display: grid;
  gap: var(--espace-2);
  padding: var(--espace-4) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .valeur { grid-template-columns: 200px minmax(0, 1fr); gap: var(--espace-4); }
}
.valeur dt { font-weight: 700; font-size: 18px; line-height: 24px; }
.valeur dd { margin: 0; color: var(--ink-muted); }

.motif {
  display: grid;
  grid-template-columns: repeat(7, 24px);
  gap: 16px;
  margin-top: var(--espace-4);
}
.motif span { width: 24px; height: 24px; border-radius: var(--rayon-pilule); background: var(--line); }
.motif span.allume { background: var(--ambre); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: var(--espace-5);
}
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--espace-6); }
}
.contact__infos { display: grid; gap: var(--espace-4); align-content: start; }
.coordonnees { margin: 0; display: grid; gap: var(--espace-3); }
.coordonnees div { display: grid; gap: var(--espace-1); }
.coordonnees dd { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.coordonnees a { color: var(--ink); }

.formulaire {
  display: grid;
  gap: var(--espace-4);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: var(--espace-4);
}
@media (min-width: 720px) { .formulaire { padding: var(--espace-5); } }
.formulaire__rangee { display: grid; gap: var(--espace-4); }
@media (min-width: 720px) { .formulaire__rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.formulaire__rangee--3 { }
@media (min-width: 720px) { .formulaire__rangee--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.champ { display: grid; gap: var(--espace-2); }
.champ label, .champ legend {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.champ .facultatif { color: var(--ink-muted); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink-muted);
  border-radius: var(--rayon-1);
  appearance: none;
}
.champ textarea { min-height: 160px; resize: vertical; line-height: 24px; }
.champ select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ABA49B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.champ input[type="date"] { color-scheme: dark; }

.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consentement {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--espace-3);
  align-items: start;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.consentement input {
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--ambre);
}
.formulaire__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-3);
}

.alerte {
  display: none;
  gap: var(--espace-2);
  padding: var(--espace-3) var(--espace-4);
  border-radius: var(--rayon-0);
  font-weight: 500;
}
.alerte[data-visible="true"] { display: grid; }
.alerte--ok { background: var(--ambre-soft); color: var(--ink); border-left: 0; }
.alerte--erreur { background: transparent; color: var(--tally); border: 1px solid var(--tally); }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--plateau);
  color: var(--craie);
  padding: var(--espace-6) 0 var(--espace-5);
}
.pied .legende, .pied .etiquette { color: #ABA49B; }
.pied a { color: var(--craie); }
.pied__grille {
  display: grid;
  gap: var(--espace-5);
}
@media (min-width: 900px) {
  .pied__grille { grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); }
}
.pied__logo img { width: 180px; height: auto; }
.pied__promesse { margin: var(--espace-3) 0 0; color: #ABA49B; }
.pied__liste { list-style: none; margin: var(--espace-3) 0 0; padding: 0; display: grid; gap: var(--espace-2); }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--espace-3);
  margin-top: var(--espace-6);
  padding-top: var(--espace-4);
  border-top: 1px solid #34323A;
}

/* ---------- Pages texte (mentions légales, 404) ---------- */
.page-texte { padding: var(--espace-6) 0 96px; }
.page-texte__corps { max-width: 760px; display: grid; gap: var(--espace-5); }
.page-texte__corps h2 { margin: 0 0 var(--espace-3); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.page-texte__corps p, .page-texte__corps ul { margin: 0 0 var(--espace-3); }
.page-texte__corps p:last-child, .page-texte__corps ul:last-child { margin-bottom: 0; }
.page-texte__corps ul { padding-left: 20px; }
.page-texte__corps li { margin-bottom: var(--espace-1); }
.page-texte__corps section { padding-top: var(--espace-4); border-top: 1px solid var(--line); }
.a-completer { background: var(--tally); color: var(--on-tally); padding: 0 6px; font-family: var(--font-mono); font-size: 13px; }

.introuvable {
  min-height: calc(100vh - var(--entete) - 1px);
  display: grid;
  align-items: center;
  padding: var(--espace-6) 0;
}
.introuvable__corps { display: grid; gap: var(--espace-4); max-width: 640px; }

/* ---------- Apparition douce ---------- */
@media (prefers-reduced-motion: no-preference) {
  .revele { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .revele.est-visible { opacity: 1; transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .nav, .scene, .formulaire, .pied__bas { display: none !important; }
  body { background: #fff; color: #000; }
}
