/* ==========================================================================
   Espace membre et comptes — s'appuie sur base.css (charte « Tout l'Évangile »).
   ========================================================================== */

/* ---------- Bandeau Nuit (fiche activité, mon espace, liste) ---------- */
.bandeau {
  position: relative;
  background: var(--nuit);
  color: rgba(255, 255, 255, .84);
  isolation: isolate;
  overflow: hidden;
}
.bandeau::before {
  /* lumière douce venue du blason, sans dégradé décoratif sur toute la surface */
  content: ''; position: absolute; inset: -40% auto auto -10%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(35, 72, 199, .55), transparent);
  z-index: -1; pointer-events: none;
}
.bandeau h1, .bandeau h2, .bandeau h3 { color: var(--blanc); }
.bandeau a:not(.btn) { color: var(--or-clair); }
.bandeau-corps { padding-block: clamp(32px, 6vw, 72px) clamp(36px, 6vw, 64px); }
.bandeau .fil-ariane { color: rgba(255, 255, 255, .62); margin-bottom: var(--e-5); }
.bandeau .fil-ariane li + li::before { color: rgba(255, 255, 255, .3); }
.bandeau-compact .bandeau-corps { padding-block: clamp(28px, 5vw, 48px); }

/* Pastilles d'information sur fond Nuit */
.pastilles { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.pastille {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-xs);
  font-size: .82rem; font-weight: 650; font-variation-settings: 'wdth' var(--l-compact);
  background: rgba(255, 255, 255, .1); color: var(--blanc); border: 1px solid rgba(255, 255, 255, .16);
}
.pastille-or { background: var(--or); color: var(--nuit); border-color: var(--or); }
.pastille .icone { width: 15px; height: 15px; }

/* Liste d'informations avec icônes (dates, lieu, organisateur) */
.infos { display: grid; gap: var(--e-3); list-style: none; padding: 0; }
.infos li { display: grid; grid-template-columns: 22px 1fr; gap: var(--e-3); align-items: start; }
.infos .icone { margin-top: 2px; color: var(--bleu); }
.infos strong { display: block; color: var(--encre); font-weight: 650; }
.infos span { color: var(--doux); font-size: var(--t-sm); }
.bandeau .infos .icone { color: var(--or); }
.bandeau .infos strong { color: var(--blanc); }
.bandeau .infos span { color: rgba(255, 255, 255, .66); }

/* ---------- Fiche activité ---------- */
.fiche-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fiche-hero .titre-affiche { color: var(--blanc); margin-block: var(--e-4) var(--e-5); font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); }
.fiche-hero .verset { color: rgba(255, 255, 255, .9); max-width: 46ch; padding-left: var(--e-4); border-left: 3px solid var(--or); }
.fiche-slogan { margin-top: var(--e-3); color: var(--or-clair); font-weight: 650; font-variation-settings: 'wdth' var(--l-compact); }
.fiche-affiche { position: relative; }
.fiche-affiche img {
  width: auto; max-width: 100%; max-height: 600px; margin-inline: auto; object-fit: contain;
  border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .12);
}
.fiche-decompte { margin-top: var(--e-6); max-width: 520px; }
.fiche-decompte-libelle { font-size: var(--t-sm); color: rgba(255, 255, 255, .7); margin-bottom: var(--e-2); }
.fiche-cta { display: flex; flex-wrap: wrap; gap: var(--e-3); margin-top: var(--e-6); }

.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.fiche-corps > aside { position: sticky; top: calc(var(--entete-h) + 20px); }
.fiche-section + .fiche-section { margin-top: var(--e-7); }
.fiche-section h2 { font-size: var(--t-xl); margin-bottom: var(--e-4); }
.fiche-description { font-size: var(--t-md); color: var(--texte); }
.fiche-description p + p { margin-top: var(--e-3); }

/* Tarifs en liste nette */
.tarifs { list-style: none; padding: 0; border: 1px solid var(--filet); border-radius: var(--r-md); background: var(--blanc); }
.tarifs li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4); padding: var(--e-4) var(--e-5); }
.tarifs li + li { border-top: 1px solid var(--filet); }
.tarifs strong { color: var(--encre); font-weight: 650; }
.tarifs small { display: block; color: var(--doux); font-size: var(--t-sm); }
.tarifs .montant { font-weight: 800; font-size: 1.15rem; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 75; }

.places { display: grid; gap: var(--e-2); }
.places-texte { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--doux); }
.places-texte strong { color: var(--encre); }

/* Panneau d'inscription (colonne latérale) */
.panneau { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r-lg); overflow: hidden; }
.panneau-corps { padding: var(--e-5); display: grid; gap: var(--e-4); }
.panneau h2 { font-size: var(--t-lg); }
.panneau .bande-wax { height: 10px; background-size: 20px 20px; }
.prix-depart { display: flex; align-items: baseline; gap: var(--e-2); }
.prix-depart strong { font-size: 2rem; font-weight: 850; color: var(--encre); font-variation-settings: 'wdth' 68; line-height: 1; font-variant-numeric: tabular-nums; }
.prix-depart span { color: var(--doux); font-size: var(--t-sm); }

/* Inscriptions existantes du membre sur une activité */
.mes-places { display: grid; gap: var(--e-2); }
.mes-places-ligne { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-3); border: 1px solid var(--filet); border-radius: var(--r-sm); }
.mes-places-ligne .nom { flex: 1; min-width: 0; font-weight: 600; color: var(--encre); }
.mes-places-ligne .nom small { display: block; font-weight: 500; color: var(--doux); }

/* Articles liés */
.articles-mini { display: grid; gap: var(--e-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.article-mini { display: grid; gap: var(--e-2); text-decoration: none; color: var(--encre); }
.article-mini-visuel { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--nuit); display: grid; place-items: center; color: var(--or); }
.article-mini-visuel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--nuit) var(--motif-wax) repeat-x left center / 20px 20px; }
.article-mini-visuel img { width: 100%; height: 100%; object-fit: cover; }
.article-mini-visuel .icone { stroke-width: 1.4; }
.article-mini-visuel:not(:has(img)) { background: var(--brume-2) var(--motif-wax-clair) repeat center / 40px 40px; color: var(--bleu); }
.article-mini-pastille { width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; }
.article-mini-pastille .icone { width: 46%; height: 46%; }
.article-mini strong { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.article-mini small { color: var(--doux); font-variant-numeric: tabular-nums; }
.article-mini:hover strong { color: var(--bleu); }

/* ---------- Agenda (liste des activités) ---------- */
.filtres-barre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-4) var(--e-6); padding-block: var(--e-5); border-bottom: 1px solid var(--filet); margin-bottom: var(--e-6); }
.filtres-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); }
.filtres-groupe > span { font-size: var(--t-sm); font-weight: 650; color: var(--doux); margin-right: var(--e-1); white-space: nowrap; }
.puce {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--filet-fort); background: var(--blanc); color: var(--texte); text-decoration: none;
  font-weight: 600; font-size: .9rem; font-variation-settings: 'wdth' var(--l-compact);
}
.puce:hover { border-color: var(--bleu); color: var(--bleu); }
.puce[aria-current="true"] { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }

.agenda { list-style: none; padding: 0; display: grid; gap: var(--e-3); }
.agenda-ligne {
  display: grid; grid-template-columns: 92px 112px minmax(0, 1fr) auto; gap: var(--e-5); align-items: center;
  padding: var(--e-4); background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r-md);
  transition: border-color .15s ease;
}
.agenda-ligne:hover { border-color: var(--filet-fort); }
.agenda-date { display: grid; justify-items: center; align-content: center; height: 100%; min-height: 92px; border-radius: var(--r-sm); background: var(--nuit); color: var(--blanc); text-align: center; padding: var(--e-2); }
.agenda-date .jour { font-size: 2.3rem; font-weight: 850; line-height: .95; font-variation-settings: 'wdth' 62; font-variant-numeric: tabular-nums; }
.agenda-date .mois { font-size: .82rem; font-weight: 600; color: var(--or-clair); }
.agenda-date .annee { font-size: .72rem; color: rgba(255, 255, 255, .6); }
.agenda-visuel { width: 112px; height: 92px; border-radius: var(--r-sm); overflow: hidden; background: var(--bleu-pale); }
.agenda-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.agenda-texte { display: grid; gap: 6px; min-width: 0; }
.agenda-texte h3 { font-size: 1.25rem; }
.agenda-texte h3 a { color: var(--encre); text-decoration: none; }
.agenda-texte h3 a::after { content: ''; position: absolute; inset: 0; } /* toute la ligne est cliquable */
.agenda-ligne { position: relative; }
.agenda-ligne:focus-within { outline: 3px solid var(--or); outline-offset: 2px; }
.agenda-texte h3 a:focus-visible { outline: none; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-4); font-size: var(--t-sm); color: var(--doux); }
.agenda-meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-meta .icone { width: 16px; height: 16px; }
.agenda-fin { display: grid; justify-items: end; gap: var(--e-2); text-align: right; position: relative; z-index: 1; }
.agenda-prix { font-weight: 800; color: var(--encre); font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 75; font-size: 1.1rem; white-space: nowrap; }
.agenda-prix small { display: block; font-weight: 500; font-size: .78rem; color: var(--doux); font-variation-settings: 'wdth' 100; }

@media (max-width: 860px) {
  .agenda-ligne { grid-template-columns: 72px minmax(0, 1fr); gap: var(--e-3) var(--e-4); }
  .agenda-date { min-height: 80px; }
  .agenda-date .jour { font-size: 1.9rem; }
  .agenda-visuel { display: none; }
  .agenda-fin { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: var(--e-3); border-top: 1px solid var(--filet); text-align: left; }
  .agenda-prix small { display: inline; margin-left: 4px; }
}

/* ---------- Parcours d'inscription ---------- */
.parcours { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 40px); align-items: start; }
.parcours > aside { position: sticky; top: calc(var(--entete-h) + 20px); }
.etapes { display: flex; gap: var(--e-2); list-style: none; padding: 0; margin-bottom: var(--e-6); counter-reset: etape; }
.etapes li { flex: 1; display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-sm); font-weight: 650; color: var(--doux); padding-top: var(--e-3); border-top: 3px solid var(--filet); font-variation-settings: 'wdth' var(--l-compact); }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--filet); color: var(--doux); font-size: .78rem; font-weight: 800;
}
.etapes li[aria-current="step"] { color: var(--bleu); border-top-color: var(--bleu); }
.etapes li[aria-current="step"]::before { background: var(--bleu); color: var(--blanc); }
.etapes li.fait { color: var(--encre); border-top-color: var(--bleu); }
.etapes li.fait::before { content: '✓'; background: var(--bleu-pale); color: var(--bleu); }

.bloc-etape { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); }
.bloc-etape + .bloc-etape { margin-top: var(--e-5); }
.bloc-etape-titre { display: flex; align-items: baseline; gap: var(--e-3); margin-bottom: var(--e-2); }
.bloc-etape-titre .rang { font-weight: 850; color: var(--bleu); font-variation-settings: 'wdth' 62; font-size: 1.5rem; line-height: 1; }
.bloc-etape-titre h2 { font-size: var(--t-xl); }
.bloc-etape > p { color: var(--doux); margin-bottom: var(--e-5); }
.choix-option .choix-texte { display: grid; gap: 2px; min-width: 0; }
.choix-option .choix-texte strong { color: var(--encre); font-weight: 650; }
.choix-option .choix-texte small { color: var(--doux); font-size: var(--t-sm); }
.choix-option .statut { margin-left: auto; }
.choix-2col { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.bloc-proche { margin-top: var(--e-5); padding: var(--e-5); border-radius: var(--r-md); background: var(--brume-2); border: 1px dashed var(--filet-fort); display: grid; gap: var(--e-4); }

.recap-panneau { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r-lg); overflow: hidden; }
.recap-panneau .bande-wax { height: 10px; background-size: 20px 20px; }
.recap-panneau-corps { padding: var(--e-5); display: grid; gap: var(--e-4); }
.recap-panneau h2 { font-size: var(--t-lg); }
.recap-activite { display: grid; gap: 2px; }
.recap-activite strong { color: var(--encre); font-weight: 750; font-size: 1.05rem; font-variation-settings: 'wdth' var(--l-compact); line-height: 1.25; }
.recap-activite span { color: var(--doux); font-size: var(--t-sm); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--e-4); border-top: 1px solid var(--filet); }
.total span { font-weight: 650; color: var(--encre); }
.total strong.a-choisir { font-size: 1rem; font-weight: 600; color: var(--doux); font-variation-settings: 'wdth' 100; }
.total strong { font-size: 1.9rem; font-weight: 850; color: var(--encre); font-variation-settings: 'wdth' 68; font-variant-numeric: tabular-nums; line-height: 1; }
.note-securite { display: flex; gap: var(--e-2); align-items: flex-start; font-size: var(--t-sm); color: var(--doux); }
.note-securite .icone { width: 18px; height: 18px; color: var(--vert); margin-top: 1px; }

/* Paiement */
.moyen { display: flex; align-items: center; gap: var(--e-4); padding: var(--e-4) var(--e-5); border: 1.5px solid var(--bleu); border-radius: var(--r-md); background: var(--brume-2); box-shadow: inset 0 0 0 1px var(--bleu); }
.moyen-marque { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bleu); color: var(--blanc); font-weight: 850; font-size: .95rem; font-variation-settings: 'wdth' 75; }
.moyen div strong { display: block; color: var(--encre); font-weight: 700; }
.moyen div span { font-size: var(--t-sm); color: var(--doux); }
.alerte { display: flex; gap: var(--e-3); align-items: flex-start; padding: var(--e-4); border-radius: var(--r-sm); background: var(--rouge-pale); color: var(--rouge); border: 1px solid #f4c1bb; font-weight: 550; }
.alerte .icone { margin-top: 2px; }
.especes { display: flex; gap: var(--e-4); align-items: flex-start; }
.especes .icone { width: 26px; height: 26px; color: var(--or-texte); flex: none; margin-top: 2px; }
.especes strong { color: var(--encre); display: block; margin-bottom: 2px; }

/* Confirmation */
.reussite { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 56px); align-items: center; }
.reussite-signe { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); margin-bottom: var(--e-5); }
.reussite-signe .icone { width: 34px; height: 34px; stroke-width: 2.2; }
.reussite-signe path:last-child { stroke-dasharray: 20; stroke-dashoffset: 20; animation: trace .5s .2s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.reussite-attente { background: var(--ambre-pale); color: var(--ambre); }
.reussite h1 { margin-bottom: var(--e-3); }
.reussite .recap { margin-block: var(--e-5); max-width: 460px; }
.numero-carte { font-weight: 850; font-size: 1.5rem; letter-spacing: .02em; color: var(--bleu); font-variation-settings: 'wdth' 70; font-variant-numeric: tabular-nums; }

/* Aperçu de carte de participant (miniature) */
.apercu-carte { border-radius: var(--r-lg); overflow: hidden; background: var(--blanc); box-shadow: var(--elevation); max-width: 340px; width: 100%; justify-self: center; }
.apercu-tete { background: var(--nuit); color: var(--blanc); padding: var(--e-5) var(--e-5) var(--e-4); display: grid; gap: var(--e-2); }
.apercu-tete .marque-mini { display: flex; align-items: center; gap: var(--e-2); font-size: .78rem; color: rgba(255, 255, 255, .75); }
.apercu-tete .marque-mini img { width: 26px; height: 28px; background: var(--blanc); border-radius: 6px; padding: 2px; }
.apercu-tete strong { font-size: 1.55rem; font-weight: 850; line-height: .95; text-transform: uppercase; font-variation-settings: 'wdth' 62; }
.apercu-tete span { font-size: .8rem; color: var(--or-clair); font-weight: 600; }
.apercu-corps { padding: var(--e-5); display: grid; grid-template-columns: 76px 1fr; gap: var(--e-4); align-items: center; }
.apercu-photo { width: 76px; height: 92px; border-radius: var(--r-sm); background: var(--bleu-pale); display: grid; place-items: center; color: var(--bleu); font-weight: 800; font-size: 1.4rem; overflow: hidden; }
.apercu-photo img { width: 100%; height: 100%; object-fit: cover; }
.apercu-nom { display: grid; gap: 2px; }
.apercu-nom strong { color: var(--encre); font-weight: 800; text-transform: uppercase; font-variation-settings: 'wdth' 75; line-height: 1.1; }
.apercu-nom span { color: var(--doux); font-size: var(--t-sm); }
.apercu-role { margin: 0 var(--e-5) var(--e-5); padding: var(--e-2); border-radius: var(--r-sm); background: var(--nuit); color: var(--blanc); text-align: center; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; font-variation-settings: 'wdth' 70; }
.apercu-numero { display: block; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .72); margin-top: 6px; font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- Mon espace ---------- */
.accueil-membre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-5); }
.accueil-membre .avatar { width: 72px; height: 72px; font-size: 1.5rem; background: var(--blanc); color: var(--bleu); box-shadow: 0 0 0 4px rgba(242, 183, 5, .9); }
.accueil-membre h1 { font-size: var(--t-3xl); }
.accueil-membre p { color: rgba(255, 255, 255, .72); margin-top: var(--e-2); }

.espace-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 32px); align-items: start; margin-top: calc(-1 * var(--e-7)); position: relative; }
.prochaine { background: var(--blanc); border-radius: var(--r-lg); box-shadow: var(--elevation); overflow: hidden; }
.prochaine-corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-5); padding: clamp(20px, 3vw, 32px); align-items: center; }
.prochaine-corps h2 { font-size: var(--t-2xl); margin-block: var(--e-2) var(--e-3); }
.prochaine-corps h2 a { color: var(--encre); text-decoration: none; }
.prochaine-corps h2 a:hover { color: var(--bleu); }
.prochaine-libelle { font-size: var(--t-sm); font-weight: 650; color: var(--bleu); }
.prochaine .decompte { margin-top: var(--e-5); max-width: 440px; }
.prochaine .decompte-valeur { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.prochaine-actions { display: grid; gap: var(--e-2); align-self: start; }

.lignes { list-style: none; padding: 0; }
.ligne-inscription { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--e-4); align-items: center; padding-block: var(--e-4); border-top: 1px solid var(--filet); }
.lignes > li:first-child { border-top: 0; padding-top: 0; }
.ligne-inscription h3 { font-size: 1.05rem; font-variation-settings: 'wdth' var(--l-compact); line-height: 1.25; }
.ligne-inscription h3 a { color: var(--encre); text-decoration: none; }
.ligne-inscription h3 a:hover { color: var(--bleu); }
.ligne-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1) var(--e-3); font-size: var(--t-sm); color: var(--doux); margin-top: 4px; }
.ligne-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--e-2); }

.rattachement { list-style: none; padding: 0; display: grid; gap: 0; }
.rattachement li { display: flex; justify-content: space-between; gap: var(--e-3); padding-block: var(--e-3); border-top: 1px solid var(--filet); font-size: .95rem; }
.rattachement li:first-child { border-top: 0; padding-top: 0; }
.rattachement span { color: var(--doux); }
.rattachement strong { color: var(--encre); font-weight: 650; text-align: right; }
.raccourcis { list-style: none; padding: 0; display: grid; gap: var(--e-1); }
.raccourcis a { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-3); border-radius: var(--r-sm); text-decoration: none; color: var(--encre); font-weight: 600; }
.raccourcis a:hover { background: var(--brume-2); color: var(--bleu); }
.raccourcis .icone { color: var(--bleu); }
.raccourcis small { margin-left: auto; color: var(--doux); font-weight: 500; font-variant-numeric: tabular-nums; }
.colonne > * + * { margin-top: var(--e-5); }
.surface h2 { font-size: var(--t-lg); }

/* ---------- Comptes : se connecter, créer un compte ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - var(--entete-h)); }
.auth-panneau { position: relative; background: var(--nuit); color: rgba(255, 255, 255, .82); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: var(--e-6); overflow: hidden; isolation: isolate; }
.auth-panneau::before { content: ''; position: absolute; inset: auto -30% -30% auto; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(35, 72, 199, .6), transparent); z-index: -1; }
.auth-panneau::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 14px; background: var(--nuit) var(--motif-wax) repeat-y center top / 28px 28px; }
.auth-panneau h2 { color: var(--blanc); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.auth-panneau .logo { width: 64px; height: 70px; background: var(--blanc); border-radius: var(--r-sm); padding: 6px; object-fit: contain; }
.auth-points { list-style: none; padding: 0; display: grid; gap: var(--e-5); max-width: 40ch; }
.auth-points li { display: grid; grid-template-columns: 40px 1fr; gap: var(--e-4); align-items: start; }
.auth-points .rond { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--or); }
.auth-points strong { display: block; color: var(--blanc); font-weight: 650; margin-bottom: 2px; }
.auth-points span { font-size: var(--t-sm); color: rgba(255, 255, 255, .7); }
.auth-panneau .verset { color: rgba(255, 255, 255, .78); font-size: 1rem; margin-top: auto; }
.auth-formulaire { display: flex; justify-content: center; padding: clamp(28px, 5vw, 64px) var(--gouttiere); }
.auth-boite { width: 100%; max-width: 480px; }
.auth-boite-large { max-width: 640px; }
.auth-boite h1 { font-size: var(--t-3xl); margin-bottom: var(--e-3); }
.auth-boite > p { color: var(--doux); }
.auth-boite form { margin-top: var(--e-6); }
.auth-bascule { margin-top: var(--e-5); color: var(--doux); }
.groupe-champs { border-top: 1px solid var(--filet); padding-top: var(--e-5); display: grid; gap: var(--e-4); }
.groupe-champs > legend, .groupe-titre { font-weight: 750; color: var(--encre); font-size: 1.05rem; font-variation-settings: 'wdth' var(--l-compact); margin-bottom: var(--e-1); }

.demo { margin-top: var(--e-6); border: 1px dashed var(--filet-fort); border-radius: var(--r-md); padding: var(--e-4); background: var(--brume-2); }
.demo summary { cursor: pointer; font-weight: 650; color: var(--encre); font-size: .95rem; }
.demo summary::marker { color: var(--bleu); }
.demo ul { list-style: none; padding: 0; display: grid; gap: var(--e-2); margin-top: var(--e-3); }
.demo button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px var(--e-3); text-align: left; padding: var(--e-3) var(--e-4); border-radius: var(--r-sm); border: 1px solid var(--filet); background: var(--blanc); }
.demo button span:last-child { grid-column: 1 / -1; }
.demo button:hover { border-color: var(--bleu); }
.demo button strong { color: var(--encre); font-weight: 650; }
.demo button span { color: var(--doux); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.demo p { margin-top: var(--e-3); font-size: var(--t-sm); color: var(--doux); }

/* Champs radio en ligne (sexe) et cases (départements) */
.radios-ligne > div, .radios-ligne ul { display: flex; flex-wrap: wrap; gap: var(--e-2); list-style: none; padding: 0; }
.radios-ligne label:not(:first-child), .cases-puces label:not(:first-child) { font-weight: 600; }
.radios-ligne > div > div label, .radios-ligne li label, .cases-puces > div > div label, .cases-puces li label {
  display: inline-flex; align-items: center; gap: var(--e-2); min-height: 44px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--filet-fort); background: var(--blanc); cursor: pointer; font-weight: 600; color: var(--encre);
}
.radios-ligne input, .cases-puces input { accent-color: var(--bleu); width: 17px; height: 17px; }
.radios-ligne label:has(input:checked), .cases-puces label:has(input:checked) { border-color: var(--bleu); background: var(--brume-2); box-shadow: inset 0 0 0 1px var(--bleu); }
.cases-puces > div, .cases-puces ul { display: flex; flex-wrap: wrap; gap: var(--e-2); list-style: none; padding: 0; }
.cases-puces label small { color: var(--doux); font-weight: 500; }

.filtre-eglise { width: 100%; min-height: 44px; padding: 8px 14px 8px 40px; border: 1.5px solid var(--filet); border-radius: var(--r-sm); background: var(--brume-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a6684' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center; }
.filtre-eglise:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(26, 58, 168, .14); background-color: var(--blanc); }

/* Profil */
.profil-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 32px); align-items: start; }
.proches { list-style: none; padding: 0; }
.proches li { display: flex; align-items: center; gap: var(--e-3); padding-block: var(--e-3); border-top: 1px solid var(--filet); }
.proches li:first-child { border-top: 0; padding-top: 0; }
.proches strong { display: block; color: var(--encre); font-weight: 650; }
.proches small { color: var(--doux); }

/* Divers */
.retour { display: inline-flex; align-items: center; gap: var(--e-2); font-size: var(--t-sm); font-weight: 600; text-decoration: none; margin-bottom: var(--e-4); }
.retour .icone { width: 16px; height: 16px; }
.entete-page { padding-block: clamp(28px, 5vw, 48px) 0; }
.entete-page h1 { margin-bottom: var(--e-2); }
.entete-page p { color: var(--doux); }

/* Barre fixe d'inscription sur mobile (total + bouton toujours visibles) */
.barre-mobile { display: none; }
.avec-barre-mobile { padding-bottom: var(--e-8); }
@media (max-width: 1020px) {
  .barre-mobile {
    display: flex; align-items: center; gap: var(--e-4); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--e-3) var(--gouttiere) calc(var(--e-3) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--filet); box-shadow: 0 -8px 24px -12px rgba(10, 26, 68, .25);
  }
  .barre-mobile > span { display: grid; line-height: 1.15; }
  .barre-mobile small { color: var(--doux); font-size: .78rem; }
  .barre-mobile strong { font-size: 1.25rem; font-weight: 850; color: var(--encre); font-variation-settings: 'wdth' 70; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .barre-mobile .btn { flex: 1; }
  .avec-barre-mobile { padding-bottom: 112px; }
}

/* ---------- Réactif ---------- */
@media (max-width: 1020px) {
  .fiche-hero { grid-template-columns: 1fr; }
  .fiche-affiche { max-width: 420px; }
  .fiche-corps, .parcours, .espace-grille, .profil-grille, .reussite { grid-template-columns: 1fr; }
  .fiche-corps > aside, .parcours > aside { position: static; }
  .espace-grille { margin-top: calc(-1 * var(--e-6)); }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-panneau { padding: var(--e-6) var(--gouttiere); gap: var(--e-4); }
  .auth-panneau::after { top: auto; left: 0; width: auto; height: 12px; background-repeat: repeat-x; background-size: 24px 24px; }
  .auth-points, .auth-panneau .verset { display: none; }
  .auth-panneau h2 { font-size: 1.9rem; }
  .auth-panneau .logo { width: 48px; height: 52px; }
}
@media (max-width: 640px) {
  .filtres-barre { gap: var(--e-3); }
  .filtres-groupe { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); width: calc(100% + 2 * var(--gouttiere)); }
  .puce { flex: none; }
  .fiche-affiche img { max-height: 420px; }
  .etapes li { font-size: .8rem; }
  .etapes li span { display: none; }
  .etapes li[aria-current="step"] span { display: inline; }
  .prochaine-corps { grid-template-columns: 1fr; }
  .ligne-inscription { grid-template-columns: 40px minmax(0, 1fr); }
  .ligne-actions { grid-column: 2; justify-content: flex-start; }
  .fiche-cta .btn { flex: 1 1 100%; }
  .decompte { gap: 6px; }
  .decompte-unite { padding: var(--e-2) 4px; }
}
