@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --nuit: #0C1E33; --nuit-2: #14304F; --jaune: #FFC93C; --bleu: #2847E0; --bleu-fonce: #1E36B0;
  --creme: #F7F4EC; --blanc: #FFFFFF; --texte: #0C1E33; --doux: #4E5A6B; --trait: #DDD7C9;
  --erreur: #B3261E; --erreur-fond: #FCEDEC; --ok: #146C43;
  --rayon: 14px; --titre: 'Bricolage', 'Arial Narrow', Arial, sans-serif; --corps: 'Manrope', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 400 16px/1.55 var(--corps); }
img { max-width: 100%; }
a { color: var(--bleu); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.conteneur { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau congrès */
.bandeau { background: var(--jaune); color: var(--nuit); font-weight: 800; text-align: center; padding: 10px 16px; font-size: 15px; }

/* En-tête sombre */
.hero { background: var(--nuit); color: var(--blanc); padding: 20px 0 36px; }
.hero .logo { display: block; width: 180px; height: auto; margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 8.4vw, 46px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--jaune); }
.hero p.sous-titre { margin: 14px 0 0; font-size: 18px; color: #D6DEE8; }
.hero .bouton { margin-top: 20px; width: auto; padding: 12px 22px; }

/* Bloc offre */
.offre { margin-top: -18px; background: var(--blanc); border-radius: var(--rayon); padding: 20px; box-shadow: 0 6px 24px rgba(12, 30, 51, .12); border-top: 6px solid var(--jaune); }
.offre h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.offre ul { list-style: none; margin: 0; padding: 0; }
.offre li { position: relative; padding: 8px 0 8px 40px; font-weight: 700; font-size: 17px; }
.offre li::before { content: '★'; position: absolute; left: 0; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--jaune); color: var(--nuit); display: grid; place-items: center; font-size: 15px; }
.offre .mention { margin: 10px 0 0; font-size: 13px; color: var(--doux); }

/* Avantages */
.avantages { padding: 28px 0 8px; }
.avantages h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.avantage { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.avantage .pastille { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--nuit); color: var(--jaune); display: grid; place-items: center; font-weight: 800; font-family: var(--titre); font-size: 19px; }
.avantage h3 { font-size: 18px; font-weight: 700; }
.avantage p { margin: 4px 0 0; color: var(--doux); font-size: 15px; }

/* Formulaire */
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 22px 18px; margin: 20px 0 28px; border: 1px solid var(--trait); }
.carte h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.carte .intro { margin: 0 0 18px; color: var(--doux); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, label.titre { display: block; font-weight: 700; margin-bottom: 6px; }
.champ { margin-bottom: 16px; }
.champ .aide { display: block; font-size: 13px; color: var(--doux); margin-top: 4px; }
.optionnel { font-weight: 400; color: var(--doux); font-size: 14px; }
input[type=text], input[type=email], input[type=search], select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--texte);
  border: 1.5px solid #B9B2A3; border-radius: 10px; background: var(--blanc);
}
input:focus-visible, select:focus-visible, button:focus-visible, .choix input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.types { display: grid; gap: 8px; }
.choix { position: relative; display: block; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid #B9B2A3; border-radius: 12px; font-weight: 700; cursor: pointer; }
.choix span::before { content: ''; flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #8D8678; background: var(--blanc); }
.choix input:checked + span { border-color: var(--bleu); background: #EEF1FD; }
.choix input:checked + span::before { border: 6px solid var(--bleu); }
.choix .accroche { flex-basis: 100%; padding-left: 30px; font-size: 13px; font-weight: 800; color: var(--nuit); }
.choix .accroche b { display: inline-block; background: var(--jaune); padding: 3px 10px; border-radius: 8px; font-weight: 800; line-height: 1.35; }
.case { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.case input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--bleu); }
.groupe[hidden] { display: none; }
.erreur { display: block; color: var(--erreur); font-size: 14px; font-weight: 700; margin-top: 4px; }
.erreur:empty { display: none; }
[aria-invalid=true] { border-color: var(--erreur) !important; background: var(--erreur-fond) !important; }
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bouton { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--bleu); color: var(--blanc); font: 800 18px/1.2 var(--corps); text-decoration: none; cursor: pointer; }
.bouton:hover { background: var(--bleu-fonce); }
.bouton[disabled] { opacity: .65; cursor: progress; }
.bouton.secondaire { background: var(--blanc); color: var(--nuit); border: 1.5px solid var(--nuit); }
.bouton.jaune { background: var(--jaune); color: var(--nuit); }
.message-global { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--erreur-fond); color: var(--erreur); font-weight: 700; }
.message-global[hidden] { display: none; }
.message-global.ok { background: #E7F4EC; color: var(--ok); }

/* Confirmation */
.merci { background: var(--blanc); border-radius: var(--rayon); padding: 26px 20px; margin: 20px 0 28px; border: 2px solid var(--ok); text-align: left; }
.merci .coche { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: var(--blanc); display: grid; place-items: center; font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.merci.info { border-color: var(--bleu); }
.merci.info .coche { background: var(--bleu); }
.merci p { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.merci .petit { font-size: 15px; font-weight: 400; color: var(--doux); }

/* Pied */
.pied { padding-top: 20px; padding-bottom: 32px; color: var(--doux); font-size: 14px; }
.pied a { color: var(--doux); }

/* Page d'attente */
.attente { min-height: 100vh; background: var(--nuit); color: var(--blanc); }
.attente .conteneur { padding-top: 28px; padding-bottom: 40px; }
.attente .logo { width: 200px; height: auto; display: block; margin-bottom: 40px; }
.attente .badge { display: inline-block; background: var(--jaune); color: var(--nuit); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 14px; margin-bottom: 16px; }
.attente h1 { font-size: clamp(34px, 9vw, 52px); font-weight: 800; }
.attente .sous-titre { color: #D6DEE8; font-size: 18px; margin: 14px 0 24px; }
.attente .avantage h3 { color: var(--blanc); }
.attente .avantage p { color: #B8C4D3; }
.attente .avantage .pastille { background: var(--jaune); color: var(--nuit); }
.attente .bouton { margin-top: 24px; }
.attente .pied, .attente .pied a { color: #B8C4D3; }

/* Pages de texte */
.texte-page { background: var(--blanc); }
.texte-page header { background: var(--nuit); padding: 18px 0; }
.texte-page header img { width: 160px; height: auto; display: block; }
.texte-page main { padding: 24px 0 40px; }
.texte-page h1 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.texte-page h2 { font-size: 20px; font-weight: 800; margin: 24px 0 8px; }
.texte-page p, .texte-page li { color: #263445; }

/* Administration */
.admin { background: var(--creme); }
.admin header { background: var(--nuit); color: var(--blanc); padding: 14px 0; }
.admin header .conteneur, .admin main.conteneur { max-width: 1200px; }
.admin header .ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin header img { width: 150px; height: auto; display: block; }
.admin header button { background: transparent; color: var(--blanc); border: 1px solid #5B6F88; border-radius: 10px; min-height: 40px; padding: 6px 12px; font: inherit; cursor: pointer; }
.admin main { padding: 20px 16px 40px; }
.admin h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.rappel { background: #FFF4D2; border: 1px solid var(--jaune); border-left: 6px solid var(--jaune); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.rappel p { margin: 0 0 4px; }
.compteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.compteur { background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; padding: 12px; }
.compteur b { display: block; font-family: var(--titre); font-size: 28px; line-height: 1.1; }
.compteur span { color: var(--doux); font-size: 14px; }
.outils { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.outils input, .outils select { width: auto; flex: 1 1 180px; min-height: 44px; }
.outils .bouton { width: auto; flex: 1 1 200px; min-height: 44px; font-size: 16px; }
.tableau { overflow-x: auto; background: var(--blanc); border: 1px solid var(--trait); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #EEE9DD; vertical-align: top; white-space: nowrap; }
th { background: #F1EDE3; font-weight: 800; position: sticky; top: 0; }
td.vide { color: var(--doux); text-align: center; padding: 24px; white-space: normal; }
.etiquette { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #EEF1FD; color: var(--bleu-fonce); font-weight: 700; font-size: 12px; }
.etiquette.alerte { background: var(--erreur-fond); color: var(--erreur); }
.connexion { max-width: 440px; }
.par-source { margin: 0 0 16px; color: var(--doux); font-size: 14px; }

@media (min-width: 720px) {
  .hero { padding: 28px 0 48px; }
  .types { grid-template-columns: 1fr; }
  .compteurs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .carte { padding: 28px; }
}
