/* Feuille unique du site. Pas de build, pas de CDN : WhiteNoise sert ce
   fichier avec empreinte (CompressedManifestStaticFilesStorage). */

:root {
  --encre:        #12202f;
  --encre-douce:  #46596c;
  --papier:       #f7f5f0;
  --papier-carte: #ffffff;
  --trait:        #ded8cd;
  --accent:       #b4462a;
  --accent-clair: #f3e6e1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre:        #ecebe6;
    --encre-douce:  #a3aeb9;
    --papier:       #101820;
    --papier-carte: #17222d;
    --trait:        #2a3745;
    --accent:       #e97b5c;
    --accent-clair: #24211f;
  }
}

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.saut {
  position: absolute; left: -9999px;
  background: var(--encre); color: var(--papier); padding: 10px 16px;
}
.saut:focus { left: 8px; top: 8px; z-index: 10; }

/* --- Bandeau --------------------------------------------------------------- */
.bandeau {
  border-bottom: 1px solid var(--trait);
  background: var(--papier-carte);
  position: sticky; top: 0; z-index: 5;
}
.bandeau__interieur {
  max-width: 1020px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.marque { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--encre); }
.marque__sigle {
  font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .06em;
}
.marque__suite { color: var(--encre-douce); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.menu a {
  color: var(--encre-douce); text-decoration: none; font-size: 15px;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--encre); }
.menu a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--accent); }
.menu__cle {
  border: 1px solid var(--trait); border-radius: 6px; padding: 6px 14px !important;
  border-bottom-width: 1px !important;
}
.menu__cle:hover { border-color: var(--accent); color: var(--accent) !important; }
.menu__deco { margin: 0; }
.menu__deco button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--encre-douce); font: inherit; font-size: 15px; text-decoration: underline;
}
.menu__deco button:hover { color: var(--accent); }

/* --- Structure ------------------------------------------------------------- */
.bande { padding: 0 24px; }
.bande > * { max-width: 1020px; margin-inline: auto; }
.bande--serre > * { max-width: 720px; }

.chapeau { padding: 76px 24px 60px; border-bottom: 1px solid var(--trait); }
.chapeau__interieur { max-width: 1020px; margin: 0 auto; }
.surtitre {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.1; margin: 0 0 20px; letter-spacing: -.01em;
}
.accroche { font-size: 20px; color: var(--encre-douce); max-width: 620px; margin: 0; }

h2 {
  font-family: var(--serif); font-weight: 600; font-size: 27px;
  margin: 56px 0 16px; letter-spacing: -.005em;
}
h3 { font-size: 17px; margin: 32px 0 6px; }
p { margin: 0 0 16px; }
section { padding-bottom: 8px; }
main > section:last-child { padding-bottom: 72px; }

/* --- Repères de contenu à compléter --------------------------------------- */
.repere {
  display: inline-block; background: var(--accent-clair); color: var(--accent);
  border: 1px dashed var(--accent); border-radius: 4px;
  padding: 1px 8px; font-size: 13px; letter-spacing: .04em; font-family: var(--sans);
}

/* --- Cartes et grilles ---------------------------------------------------- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.carte {
  background: var(--papier-carte); border: 1px solid var(--trait);
  border-radius: 10px; padding: 24px;
}
.carte h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }

/* --- Programme ------------------------------------------------------------ */
.creneaux { list-style: none; margin: 0; padding: 0; }
.creneau {
  display: grid; grid-template-columns: 130px 1fr; gap: 4px 28px;
  padding: 22px 0; border-top: 1px solid var(--trait);
}
.creneau:last-child { border-bottom: 1px solid var(--trait); }
.creneau__heure {
  font-variant-numeric: tabular-nums; color: var(--encre-douce); font-size: 15px;
  letter-spacing: .04em; padding-top: 2px;
}
.creneau__titre { font-weight: 600; margin: 0 0 4px; }
.creneau__detail { color: var(--encre-douce); margin: 0; font-size: 16px; }
@media (max-width: 600px) {
  .creneau { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Encadré ------------------------------------------------------------- */
.encadre {
  border-left: 3px solid var(--accent); background: var(--papier-carte);
  padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 32px 0;
}
.encadre p:last-child { margin-bottom: 0; }

/* --- Formulaire de connexion --------------------------------------------- */
.connexion { max-width: 400px; margin: 84px auto; padding: 0 24px; }
.connexion h1 { font-size: 30px; margin-bottom: 10px; }
.connexion__intro { color: var(--encre-douce); margin-bottom: 30px; }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-size: 14px; color: var(--encre-douce); margin-bottom: 6px; }
.champ input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 16px;
  color: var(--encre); background: var(--papier-carte);
  border: 1px solid var(--trait); border-radius: 7px;
}
.champ input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.bouton {
  width: 100%; padding: 12px; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--papier-carte); background: var(--encre);
  border: 0; border-radius: 7px; cursor: pointer;
}
.bouton:hover { background: var(--accent); }
.erreurs {
  background: var(--accent-clair); border: 1px solid var(--accent); color: var(--accent);
  border-radius: 7px; padding: 12px 14px; margin-bottom: 22px; font-size: 15px;
}
.erreurs p:last-child { margin-bottom: 0; }

/* --- Pied ---------------------------------------------------------------- */
.pied { border-top: 1px solid var(--trait); background: var(--papier-carte); }
.pied__interieur {
  max-width: 1020px; margin: 0 auto; padding: 32px 24px;
  color: var(--encre-douce); font-size: 15px;
}
.pied p { margin: 0 0 4px; }
.pied__note { font-size: 14px; }

/* --- Selecteur de langue -------------------------------------------------- */
.langues {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--trait); border-radius: 6px; overflow: hidden;
  font-size: 13px; letter-spacing: .06em;
}
.langues__active, .langues__lien {
  padding: 5px 9px; line-height: 1; font-weight: 600;
}
.langues__active { background: var(--encre); color: var(--papier); }
.langues__lien { color: var(--encre-douce); text-decoration: none; }
.langues__lien:hover { background: var(--accent-clair); color: var(--accent); }

/* --- Avis (programme provisoire) ----------------------------------------- */
.avis {
  background: var(--accent-clair); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 40px 0 24px;
  font-size: 16px; color: var(--encre);
}

/* --- Grille horaire ------------------------------------------------------ */
.grille-horaire { overflow-x: auto; margin-bottom: 24px; }

.horaire {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: var(--papier-carte);
  border: 1px solid var(--trait); border-radius: 10px;
}
.horaire__legende {
  caption-side: top; text-align: left; padding: 0 0 12px;
  color: var(--encre-douce); font-size: 14px;
}
.horaire th, .horaire td {
  border-top: 1px solid var(--trait); padding: 10px 14px;
  text-align: left; vertical-align: middle;
}
.horaire thead th {
  border-top: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--encre-douce); font-weight: 600; padding-bottom: 12px;
}
.horaire thead th .jour { color: var(--encre); }
.horaire thead th .jour__date { color: var(--encre-douce); font-weight: 400; }
.horaire tbody th {
  font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--encre-douce); font-size: 15px; width: 1%;
}
.horaire .vide { background: transparent; }
.horaire .coupure td {
  text-align: center; color: var(--encre-douce); font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; background: var(--papier);
}

.seance {
  font-weight: 600; border-left: 3px solid transparent;
}
.seance--pleniere { border-left-color: var(--accent); background: var(--accent-clair); }
.seance--recherche { border-left-color: #4a7fa5; }
.seance--atelier { border-left-color: #5f9068; }

.legende-couleurs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  color: var(--encre-douce); font-size: 14px; margin-bottom: 8px;
}
.pastille {
  display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  margin-right: 2px; vertical-align: -1px;
}
.pastille--pleniere { background: var(--accent); }
.pastille--recherche { background: #4a7fa5; }
.pastille--atelier { background: #5f9068; }

/* --- Liste de ce qui manque --------------------------------------------- */
.liste-manques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.apres-grille { margin-top: 32px; }
