/* =====================================================================
   Page « Inscription baptême / mariage » (inscription.html)
   S'appuie sur refonte.css (couleurs, polices, boutons, champs du site).
   Couleur d'accent : bleu de l'eau du baptême, or des alliances du mariage.
   ===================================================================== */
.insc-page { --acc: #3D7C9C; --acc-soft: rgba(61,124,156,.12); --acc-glow: rgba(120,190,220,.55); }
.insc-page.is-mariage { --acc: #B0823A; --acc-soft: rgba(176,130,58,.13); --acc-glow: rgba(240,205,130,.55); }
.insc-page [hidden] { display: none !important; }

/* ---------- Barre du haut ---------- */
.insc-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,.9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.insc-top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.insc-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.insc-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(0,0,0,.4); }
.insc-brand span { display: grid; line-height: 1.05; }
.insc-brand strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.insc-brand em { font-family: var(--serif); font-size: .95rem; color: var(--ink-3); }
.insc-back { min-height: 40px; padding: 0 16px; }
@media (max-width: 420px) { .insc-back span { display: none; } .insc-back { padding: 0 12px; } }

/* ---------- Bandeau : photo de l'église Saint-Vincent ---------- */
.insc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #FBF6EC; text-align: center;
  padding: clamp(44px, 7vw, 84px) 0 clamp(110px, 12vw, 150px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(27,24,19,.35), rgba(27,24,19,.82) 70%),
    linear-gradient(180deg, rgba(90,52,24,.35), rgba(27,24,19,.6)),
    url("../photo/web/Salies de bearn.jpg") center 40% / cover no-repeat;
}
.insc-hero::after { /* lueur douce de la couleur d'accent */
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 80%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, var(--acc-glow), transparent 70%); opacity: .35;
}
.insc-hero-in { display: grid; justify-items: center; }
.insc-medal {
  width: clamp(104px, 14vw, 132px); aspect-ratio: 1; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 210deg, #F3DCA2, #B0823A, #F7E7BD, #9C6F2C, #F3DCA2);
  box-shadow: 0 0 0 6px rgba(255,248,232,.12), 0 18px 44px -14px rgba(0,0,0,.7), 0 0 60px -6px var(--acc-glow);
  margin-bottom: 22px;
}
.insc-medal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; transform: scale(1.0); }
.insc-eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft);
}
.insc-eyebrow::before, .insc-eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.insc-hero h1 {
  font-family: var(--serif); font-weight: 500; color: #FFF9EE;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: .3em 0 .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.insc-lead { max-width: 60ch; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(251,246,236,.88); }

.insc-switch {
  display: inline-flex; gap: 4px; margin-top: 28px; padding: 5px;
  border-radius: 999px; background: rgba(255,248,235,.12); border: 1px solid rgba(255,248,235,.22);
  backdrop-filter: blur(6px);
}
.insc-switch a {
  min-width: 124px; padding: 10px 22px; border-radius: 999px;
  color: #FBF6EC; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .25s, color .25s, box-shadow .25s;
}
.insc-switch a:hover { background: rgba(255,248,235,.12); }
.insc-switch a[aria-selected="true"] { background: #FBF6EC; color: var(--tile-deep); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }

/* ---------- Mise en page : formulaire + colonne d'aide ---------- */
.insc-layout {
  position: relative; z-index: 2;
  display: grid; gap: 24px; align-items: start;
  margin-top: clamp(-96px, -9vw, -72px); padding-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 1000px) {
  .insc-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .insc-aside { position: sticky; top: 92px; }
}
.insc-form { display: grid; gap: 20px; min-width: 0; }
.insc-fiche { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }

.insc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 32px);
}
.insc-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.insc-num {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff;
  background: linear-gradient(145deg, var(--acc), color-mix(in srgb, var(--acc) 70%, #000));
  box-shadow: 0 0 0 4px var(--acc-soft);
}
.insc-card-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.1; margin: 2px 0 4px; }
.insc-card-head p { margin: 0; font-size: .9rem; color: var(--ink-3); }

.insc-grid { display: grid; gap: 16px 18px; }
@media (min-width: 640px) { .insc-grid { grid-template-columns: 1fr 1fr; } .insc-wide { grid-column: 1 / -1; } }
.insc-page .field label, .insc-group legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.insc-page .req::after { content: " *"; color: #A3292A; }
.insc-star { color: #A3292A; font-weight: 600; }
.insc-page .field input, .insc-page .field select, .insc-page .field textarea { min-height: 48px; }
.insc-page .field textarea { min-height: 110px; }
.insc-page .field input:focus, .insc-page .field select:focus, .insc-page .field textarea:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.insc-page .field.is-invalid input, .insc-page .field.is-invalid select { border-color: #A3292A; box-shadow: 0 0 0 3px rgba(163,41,42,.1); }

/* Choix sous forme de pastilles */
.insc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.insc-group legend { padding: 0; margin-bottom: 8px; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.insc-num, .insc-steps li::before { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.insc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.insc-choices label { position: relative; cursor: pointer; }
.insc-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.insc-choices span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFDF9;
  font-size: .93rem; color: var(--ink); transition: background .2s, border-color .2s, color .2s;
}
.insc-choices span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.insc-choices label:hover span { border-color: var(--acc); }
.insc-choices input:checked + span { background: var(--acc-soft); border-color: var(--acc); color: var(--ink); font-weight: 600; }
.insc-choices input:checked + span::before { border-color: var(--acc); box-shadow: inset 0 0 0 4px #fff; background: var(--acc); }
.insc-choices input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.insc-group.is-invalid .insc-choices span { border-color: #A3292A; }

/* Envoi */
.insc-send { display: grid; gap: 14px; justify-items: start; }
.insc-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .86rem; color: var(--ink-3); }
.insc-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.insc-submit { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.insc-submit[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 520px) { .insc-submit { width: 100%; white-space: normal; text-align: center; } }

/* Merci */
.insc-done {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(32px, 6vw, 60px) clamp(22px, 5vw, 56px); text-align: center; outline: none;
}
.insc-done-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #4F8A5A, #2F5C39); box-shadow: 0 0 0 8px rgba(79,138,90,.14);
}
.insc-done-icon svg { width: 38px; height: 38px; }
.insc-done h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .4em; }
.insc-done p { max-width: 52ch; margin: 0 auto 1em; color: var(--ink-2); }
.insc-done-verse { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--tile) !important; }
.insc-done-actions { margin-top: 22px; }

/* Colonne d'aide */
.insc-aside { display: grid; gap: 20px; }
.insc-aside-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}
.insc-aside h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 14px; }
.insc-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.insc-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.insc-steps li::before {
  content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; color: var(--acc); background: var(--acc-soft);
}
.insc-steps strong { font-size: .93rem; }
.insc-steps span { font-size: .85rem; color: var(--ink-3); }
.insc-help p { margin: 0 0 12px; font-size: .92rem; color: var(--ink-2); }
.insc-contact {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line);
  color: var(--tile); text-decoration: none; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere;
}
.insc-contact svg { width: 20px; height: 20px; flex: none; }
.insc-contact:hover { color: var(--tile-deep); }
.insc-verse {
  margin: 0; padding: 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--night-2), var(--night)); color: #EADFC9;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45;
}
.insc-verse cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

/* Pied de page */
.insc-foot { background: var(--night); color: #B9AD98; text-align: center; padding: 40px 0 46px; font-size: .9rem; }
.insc-foot-cross { width: 18px; height: 18px; color: var(--gold); margin: 0 auto 10px; display: block; }
.insc-foot p { margin: 0 0 8px; }
.insc-foot strong { color: #EADFC9; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.insc-foot a { color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) { .insc-page * { transition: none !important; } }
@media print {
  .insc-top, .insc-switch, .insc-aside, .insc-foot, .insc-send { display: none !important; }
  .insc-hero { background: none; color: var(--ink); padding: 0 0 20px; }
  .insc-hero h1, .insc-lead { color: var(--ink); text-shadow: none; }
  .insc-layout { margin-top: 0; }
}
