/* WEBSITE-01 — page « Demande d'invitation » (/fr/invitation/, /en/invitation/, /es/invitacion/), charte de la maquette E. */
:root {
  --navy: #0E1A2B; --navy-700: #16263D; --navy-600: #22344F; --lime: #B6E534; --lime-doux: #EEF8D3; --cream: #F5F3EE; --blanc: #FFFFFF;
  --ink: #0E1A2B; --muted: #5A6372; --vert: #4A6600; --line: #D6D2C8; --line-soft: #E6E2D9; --fond-ui: #F8F7F3; --erreur: #A3341F;
  --creme-72: rgba(245,243,238,.72);
  --display: Sora, "Segoe UI", system-ui, sans-serif; --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --max: 1160px; --gutter: clamp(16px, 4vw, 40px);
  --ombre: 0 1px 2px rgba(14,26,43,.06), 0 24px 60px -24px rgba(14,26,43,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
.largeur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.icone { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 6px; }
.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--blanc); padding: 8px 12px; border-radius: 8px; z-index: 60; }
.lien-evitement:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.entete { background: var(--navy); color: var(--cream); }
.entete .largeur { display: flex; align-items: center; gap: 16px 24px; min-height: 68px; flex-wrap: wrap; }
.entete .marque img { width: 118px; height: auto; display: block; }
.entete .retour { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--creme-72); }
.entete .retour:hover { color: var(--cream); }
.entete .retour .icone { width: 16px; height: 16px; }
.langues { display: flex; gap: 4px; font-size: 13px; }
.langues a { text-decoration: none; padding: 3px 9px; border-radius: 999px; color: var(--creme-72); }
.langues a[aria-current="page"] { background: rgba(245,243,238,.12); color: var(--cream); }

/* Page */
.page { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.intro { position: sticky; top: 28px; }
.surtitre { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--vert); }
.intro h1 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; text-wrap: balance; }
.intro h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(182,229,52,.55) 62%); }
.intro > p { color: var(--muted); font-size: 17px; max-width: 460px; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 10px; font-size: 15px; }
.points .icone { width: 18px; height: 18px; color: var(--vert); margin-top: 3px; }
.moteurs { margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--navy); color: var(--cream); }
.moteurs p { font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(245,243,238,.6); }
.moteurs ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.moteurs li { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(245,243,238,.18); font: 600 13px var(--display); }

/* Formulaire */
.carte { background: var(--blanc); border: 1px solid var(--line-soft); border-radius: 22px; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--ombre); }
.carte h2 { font-size: 22px; }
.carte .obligatoire-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
form { margin-top: 22px; display: grid; gap: 18px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label, .champ legend { font-weight: 600; font-size: 14px; }
.champ label span[aria-hidden], .champ legend span[aria-hidden] { color: var(--vert); }
.champ input, .champ textarea { width: 100%; font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: var(--fond-ui); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.champ textarea { resize: vertical; min-height: 76px; }
.champ input:hover, .champ textarea:hover { border-color: #B9B4A8; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--navy); background: var(--blanc); box-shadow: 0 0 0 3px rgba(182,229,52,.45); }
.champ .aide { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.champ .erreur { font-size: 13px; color: var(--erreur); font-weight: 600; min-height: 0; }
.champ .erreur:empty { display: none; }
.champ.invalide input, .champ.invalide textarea { border-color: var(--erreur); background: #FFF7F5; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.formule { position: relative; display: block; cursor: pointer; }
.formule input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.formule span { display: block; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--fond-ui); transition: border-color .2s, background .2s, box-shadow .2s; }
.formule b { display: block; font: 600 15px var(--display); }
.formule small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.formule input:checked + span { border-color: var(--navy); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--navy), 0 0 0 3px rgba(182,229,52,.45); }
.formule input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 2px; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi { display: grid; gap: 12px; margin-top: 4px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 12px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.bouton-principal { background: var(--lime); color: var(--navy); box-shadow: inset 0 -2px 0 rgba(14,26,43,.12); }
.bouton-principal:hover { background: #C4EE52; }
.bouton-contour { border-color: var(--line); background: transparent; color: var(--ink); }
.bouton-contour:hover { border-color: var(--ink); }
.bouton[aria-busy="true"] { opacity: .7; cursor: progress; }
.envoi .bouton { width: 100%; }
.sous-bouton { font-size: 14px; color: var(--muted); text-align: center; }
.confidentialite { font-size: 12.5px; color: var(--muted); text-align: center; }
.erreurs-resume { padding: 12px 14px; border-radius: 12px; background: #FFF7F5; border: 1px solid rgba(163,52,31,.35); color: var(--erreur); font-weight: 600; font-size: 14px; }
.erreurs-resume[hidden] { display: none; }

/* Confirmation */
.confirmation[hidden] { display: none; }
.confirmation { text-align: center; padding: clamp(10px, 2vw, 20px) 0; }
.confirmation .rond { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--navy); }
.confirmation .rond .icone { width: 30px; height: 30px; stroke-width: 2.2; }
.confirmation h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.confirmation h2:focus { outline: none; }
.confirmation > p { color: var(--muted); margin: 10px auto 0; max-width: 440px; }
.recap { margin: 22px auto 0; max-width: 420px; text-align: left; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--fond-ui); border: 1px solid var(--line-soft); font-size: 14px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.confirmation .actions { margin-top: 24px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
/* Page de confirmation de l'adresse (/confirmation/), mêmes composants que l'écran de confirmation ci-dessus. */
.carte-etroite { max-width: 560px; margin: 0 auto; }
.confirmation h1 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.confirmation h1:focus { outline: none; }
.bouton[hidden], .confirmation .rond[hidden] { display: none; }
.acceptation { border: 0; padding: 0; margin: 20px auto 0; max-width: 460px; display: grid; gap: 10px; text-align: left; }
.acceptation[hidden] { display: none; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); cursor: pointer; }
.case a { text-decoration: underline; }
.acceptation .mention { margin: 2px 0 0 28px; font-size: 13px; color: var(--muted); }
.acceptation .mention a { text-decoration: underline; }
.bouton:disabled { opacity: .55; cursor: not-allowed; }
.note-maquette { margin: 18px auto 0; max-width: 440px; font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); }

.pied { background: var(--navy); color: var(--creme-72); font-size: 13.5px; }
.pied .largeur { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.pied a { text-decoration: none; } .pied a:hover { color: var(--cream); }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }
.maquette { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: calc(100vw - 24px); background: var(--navy); color: var(--cream); font: 600 11px/1.35 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(245,243,238,.15); }

@media (max-width: 900px) { .grille { grid-template-columns: 1fr; } .intro { position: static; } .moteurs { display: none; } }
@media (max-width: 520px) { .duo, .formules { grid-template-columns: 1fr; } .entete .retour span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .entete .retour { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
