/* LIQAsol — page publique d'un événement (liqasol.site). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --navy: #123B63; --navy-2: #1E4C7A; --petrole: #007C91; --petrole-fonce: #006475; --orange: #F47A38;
  --fond: #F5F7FA; --blanc: #FFFFFF; --texte: #263445; --texte-2: #4A5A6C; --texte-3: #5B6B7D; --bordure: #D8E0E8;
  --ok-fond: #E3F2EA; --ok-texte: #17603B; --info-fond: #E0F1F4; --info-texte: #005766; --ko-fond: #FBE4E2; --ko-texte: #8F1C13; --ko: #B42318;
  --police: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--petrole-fonce); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* --- Bandeau ---------------------------------------------------------- */
.bandeau { background: var(--navy); color: var(--blanc); padding: 40px 16px 72px; position: relative; overflow: hidden; }
.bandeau::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.07); box-shadow: -90px 0 0 -2px rgba(244,122,56,.10); pointer-events: none; }
.bandeau__int { max-width: 1120px; margin: 0 auto; position: relative; }
.bandeau__orga { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8FD3DD; margin-bottom: 10px; }
.bandeau h1 { font-size: clamp(26px, 4.5vw, 42px); letter-spacing: -0.01em; max-width: 820px; }
.bandeau__infos { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #DCE5EE; font-size: 15px; }
.bandeau__infos li { display: inline-flex; align-items: center; gap: 8px; }
.bandeau__infos svg { width: 18px; height: 18px; flex: none; color: var(--orange); }

/* --- Mise en page ----------------------------------------------------- */
.page { max-width: 1120px; margin: -44px auto 0; padding: 0 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; position: relative; }
.presentation { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.description { width: 100%; min-height: 160px; border: 0; display: block; }
.presentation .bouton { align-self: flex-start; margin: 0 12px 12px; }
.vide { padding: 28px 16px; color: var(--texte-3); text-align: center; }
.inscription { position: sticky; top: 16px; }
@media (max-width: 920px) {
  .page { grid-template-columns: 1fr; }
  .inscription { position: static; }
  /* Arrivée par le QR code (inscription sur place) : le formulaire d'abord. */
  .page--qr .inscription { order: -1; }
}

/* --- Carte d'inscription ---------------------------------------------- */
.carte { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 16px; padding: 22px; box-shadow: 0 18px 40px rgba(13,44,74,.10); }
.carte h2 { font-size: 21px; color: var(--navy); margin-bottom: 16px; }
form { display: flex; flex-direction: column; gap: 16px; }
.formules { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.formules legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
#liste-formules { display: flex; flex-direction: column; gap: 8px; }
.formule { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--bordure); border-radius: 12px; cursor: pointer; background: var(--blanc); }
.formule:hover { border-color: #A9B7C6; }
.formule:has(input:checked) { border-color: var(--navy); background: #F3F7FB; box-shadow: 0 0 0 1px var(--navy); }
.formule input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.formule--complete { opacity: .55; cursor: not-allowed; }
.formule__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.formule__tete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.formule__nom { font-weight: 600; color: var(--navy); }
.formule__prix { font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--navy); }
.formule__desc { font-size: 14px; color: var(--texte-2); }
.formule__notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.note { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fond); color: var(--texte-2); }
.note--att { background: #FBEFD9; color: #7A4700; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .duo { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label { font-weight: 600; font-size: 14px; }
.champ input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #A9B7C6; border-radius: 10px; font: 16px var(--police); color: var(--texte); background: var(--blanc); }
.champ input:focus { outline: none; border-color: var(--petrole); box-shadow: 0 0 0 3px rgba(0,124,145,.18); }
.champ--erreur input { border-color: var(--ko); }
.erreur-champ { font-size: 13px; color: var(--ko); font-weight: 500; }
.aide { font-size: 13px; color: var(--texte-3); }
.facultatif { font-weight: 400; color: var(--texte-3); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha__image { width: 200px; height: 64px; border-radius: 10px; border: 1px solid var(--bordure); background: var(--fond); }
.captcha__nouveau { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--bordure); background: var(--blanc); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.captcha__nouveau svg { width: 22px; height: 22px; }
.champ input.captcha__saisie { width: 130px; font-family: var(--mono); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; }

.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texte-2); cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.case--erreur span { color: var(--ko); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 0; font: 600 15px var(--police); cursor: pointer; text-decoration: none; }
.bouton--plein { background: var(--navy); color: var(--blanc); }
.bouton--plein:hover { background: var(--navy-2); }
.bouton--contour { background: var(--blanc); color: var(--navy); border: 1.5px solid var(--bordure); }
.bouton--contour:hover { border-color: var(--navy); }
.bouton--large { width: 100%; min-height: 50px; font-size: 16px; }
.bouton[disabled] { opacity: .6; cursor: wait; }

.message { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.message--erreur { background: var(--ko-fond); color: var(--ko-texte); }
.message--info { background: var(--info-fond); color: var(--info-texte); }

/* --- Confirmation ------------------------------------------------------ */
.succes { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; outline: none; }
.succes__icone { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-fond); color: var(--ok-texte); display: flex; align-items: center; justify-content: center; }
.succes__icone svg { width: 32px; height: 32px; }
.succes h3 { font-size: 20px; color: var(--navy); }
.succes p { color: var(--texte-2); }
.succes__ref-libelle { margin-top: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.succes__ref { font-family: var(--mono); font-size: 26px; color: var(--navy) !important; letter-spacing: .06em; padding: 8px 16px; background: var(--fond); border-radius: 10px; margin-bottom: 8px; }

/* --- Introuvable et pied ---------------------------------------------- */
.introuvable { max-width: 560px; margin: -30px auto 40px; padding: 32px 22px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 16px; text-align: center; position: relative; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.introuvable h1 { color: var(--navy); font-size: 24px; }
.introuvable p { color: var(--texte-2); }
.pied { text-align: center; padding: 8px 16px 32px; font-size: 13px; }
.pied__marque { display: inline-flex; align-items: center; gap: 8px; color: var(--texte-3); text-decoration: none; }
.pied__marque b { color: var(--navy); margin-left: 2px; }
.pied__marque i { font-style: normal; color: var(--petrole); }

.contact { margin: 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--fond); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 15px; }
.contact__titre { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.contact a { font-weight: 600; word-break: break-all; }
