/* ==========================================================
   48ème Retraite Internationale des Femmes de Sion
   Fondation Évangélique Victoire
   Palette : bleu, blanc, jaune, noir + orange en accent
   ========================================================== */

:root {
  --navy: #0a2a66;
  --navy-deep: #071c47;
  --navy-line: #1d4796;
  --blue: #2b8cd8;
  --sky: #eaf2fd;
  --sky-text: #bbd3f5;
  --yellow: #ffc72c;
  --orange: #f57c00;
  --black: #000000;
  --ink: #1b1f27;
  --muted: #5b6575;
  --line: #e3eaf5;
  --white: #ffffff;
  --error: #b3261e;

  --radius-card: 20px;
  --radius-field: 12px;

  --font-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-number: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.aside :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy-deep);
}

.btn--primary:hover {
  background: var(--yellow);
}

.btn--ghost {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--ghost:hover {
  background: var(--yellow);
  color: var(--navy-deep);
}

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
  padding-block: 1rem;
  font-size: 1.05rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  width: 180px;
  height: 78px;
  object-fit: cover;
  object-position: 50% 47%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav__links a:hover {
  color: var(--blue);
}

/* ---------- Bandeau d'accueil ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Le bandeau occupe exactement la hauteur visible sous l'en-tête */
  min-height: calc(100vh - 5.8rem);
  min-height: calc(100svh - 5.8rem);
  padding: clamp(0.8rem, 2.5vh, 2rem) 0 5.5rem;
  color: var(--white);
  text-align: center;
  background-color: var(--navy);
  /* Motif d'arches discret, inspiré de l'architecture de l'affiche */
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='110' viewBox='0 0 64 110'%3E%3Cpath d='M6 110V46a26 26 0 0 1 52 0v64M18 110V48a14 14 0 0 1 28 0v62' fill='none' stroke='white' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E"); */
}

.hero__inner {
  animation: hero-in 0.8s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__patronage {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vh, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #dbe8fb;
}

.hero__edition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(0.6rem, 2.4vh, 1.5rem) 0 clamp(0.6rem, 2vh, 1.2rem);
}

.hero__number {
  font-family: var(--font-number);
  font-weight: 400;
  font-size: clamp(5rem, min(18vh, 26vw), 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--yellow);
}

.hero__edition-text {
  margin: 0;
  text-align: left;
  line-height: 1.25;
}

.hero__ordinal {
  display: block;
  font-size: clamp(1.2rem, 3vh, 1.7rem);
  font-weight: 700;
  color: var(--yellow);
}

.hero__edition-text strong {
  display: block;
  max-width: 24ch;
  font-size: clamp(1.3rem, min(4vh, 5.6vw), 2.2rem);
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 0.15rem 1.3rem;
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vh, 1.4rem);
}

.hero__title {
  margin: clamp(0.4rem, 1.4vh, 0.9rem) 0 0;
  line-height: 1;
}

.hero__script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(3.2rem, min(12.5vh, 14vw), 7rem);
  line-height: 1.05;
  color: var(--yellow);
}

.hero__strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, min(8.8vh, 9.4vw), 5.8rem);
  line-height: 1.05;
  color: var(--white);
}

.hero__verse {
  margin: clamp(0.3rem, 1vh, 0.7rem) 0 clamp(0.8rem, 2.4vh, 1.6rem);
  color: #dbe8fb;
  font-size: clamp(1.1rem, 2.8vh, 1.5rem);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* ---------- Cartes d'informations ---------- */

.infos {
  position: relative;
  z-index: 2;
  margin-top: -3.4rem;
}

.infos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card {
  padding: 1.3rem 1rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 24px -14px rgba(10, 42, 102, 0.35);
}

.info-card svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card__label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.info-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--navy);
}

.info-card__detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Compte à rebours ---------- */

.countdown {
  margin-top: 2rem;
  padding: 1.1rem 0;
  background: var(--yellow);
}

.countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.5rem;
}

.countdown__label {
  margin: 0;
  font-weight: 700;
  color: var(--black);
}

.countdown__grid {
  display: flex;
  gap: 0.6rem;
}

.tick {
  min-width: 4.1rem;
  padding: 0.45rem 0.7rem;
  text-align: center;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
}

.tick__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.tick__unit {
  display: block;
  font-size: 0.75rem;
  color: var(--yellow);
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section--tint {
  background: var(--sky);
}

.section__title {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  color: var(--navy);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.about--single {
  grid-template-columns: minmax(0, 1fr);
}

.about__text {
  max-width: 62ch;
  color: #333a46;
}

.about__quote {
  margin: 0;
  padding: 1.6rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
}

.about__quote p {
  margin: 0;
}

.about__quote-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--yellow);
}

.about__quote-ref {
  margin-top: 0.4rem !important;
  color: var(--sky-text);
}

/* ---------- Programme : les trois jours ---------- */

.days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.day {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.4rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card); /* bords arrondis */
}

.day::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--blue));
}

.day--1 {
  --accent: var(--blue);
}

.day--2 {
  --accent: var(--yellow);
}

.day--3 {
  --accent: var(--orange);
}

.day__title {
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.day__date {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--ink);
}

.day__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Appel à l'inscription ---------- */

.cta {
  margin: 0 0 3.5rem;
}

.cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.8rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
}

.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.cta__text {
  margin: 0.2rem 0 0;
  color: var(--sky-text);
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 1.6rem 0;
  background: var(--black);
  color: #d9d9d9;
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer__title {
  margin: 0;
  font-weight: 700;
  color: var(--white);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--yellow);
}

/* ==========================================================
   Page d'inscription
   ========================================================== */

.signup {
  padding: 2.5rem 0 4rem;
  background: var(--sky);
}

.signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  overflow: hidden;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 18px 40px -22px rgba(10, 42, 102, 0.5);
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.7rem;
  background-color: var(--navy);
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='110' viewBox='0 0 64 110'%3E%3Cpath d='M6 110V46a26 26 0 0 1 52 0v64M18 110V48a14 14 0 0 1 28 0v62' fill='none' stroke='white' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E"); */
  color: var(--white);
}

.aside__number {
  font-family: var(--font-number);
  font-weight: 400;
  font-size: 4.2rem;
  line-height: 0.95;
  color: var(--yellow);
}

.aside__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

.aside__theme {
  margin: 0;
  font-family: var(--font-script);
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--yellow);
}

.aside__theme span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.aside__list {
  margin: auto 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--navy-line);
  list-style: none;
  color: #d6e4fa;
  font-size: 0.95rem;
}

.aside__list li + li {
  margin-top: 0.3rem;
}

.form-panel {
  padding: 2rem 2rem 2.2rem;
}

.form-panel__title {
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy);
}

.form-panel__intro {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #b9c6db;
  border-radius: var(--radius-field);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a2a66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 140, 216, 0.25);
}

.field input::placeholder {
  color: #8a94a6;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select {
  border-color: var(--error);
}

.field__error {
  display: none;
  margin: 0;
  font-size: 0.88rem;
  color: var(--error);
}

.field[data-invalid="true"] .field__error {
  display: block;
}

.field__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Champ piège anti-robots : invisible pour les personnes */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__alert {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-field);
  background: #fdecea;
  color: var(--error);
  font-size: 0.95rem;
}

.form__alert.is-visible {
  display: block;
}

.form__note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Confirmation */

.success {
  display: none;
  padding: 2.5rem 2rem;
  text-align: center;
}

.success.is-visible {
  display: block;
}

.success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--yellow);
}

.success__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success__title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy);
}

.success__text {
  max-width: 44ch;
  margin: 0 auto 1.4rem;
  color: var(--muted);
}

.success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.form-panel.is-done .form-panel__head,
.form-panel.is-done .form {
  display: none;
}

/* Le sigle est plus court que le nom de l'église */
.form__row--church {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

/* Les champs « Précisez… » restent cachés tant que « Autre » n'est pas choisi */
.field[hidden] {
  display: none;
}

/* ---------- Bandeau défilant (carrousel) ---------- */

.hero--carousel {
  position: relative;
  padding-bottom: 6.2rem;
}

.hero__slides {
  display: grid;
}

/* Toutes les diapositives sont superposées : la hauteur du bandeau reste stable. */
.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement les diapositives plus courtes */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.hero__arrow {
  position: absolute;
  top: calc(50% - 1.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__arrow--prev {
  left: clamp(0.5rem, 2vw, 1.75rem);
}

.hero__arrow--next {
  right: clamp(0.5rem, 2vw, 1.75rem);
}

.hero__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.hero__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s, transform 0.2s;
}

.hero__dot.is-active::before {
  background: var(--yellow);
  transform: scale(1.25);
}

.hero__toggle {
  margin-left: 0.6rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: none;
  color: var(--white);
  font: 600 0.8rem/1.4 var(--font-body);
  cursor: pointer;
}

.hero__toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero--empty {
  min-height: auto;
  padding-bottom: 4rem;
}

.hero__title + .hero__actions {
  margin-top: clamp(1rem, 3vh, 1.8rem);
}

/* ---------- Pages « Événements » ---------- */

.page-head {
  padding: 2.8rem 0 2.4rem;
  background-color: var(--navy);
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='110' viewBox='0 0 64 110'%3E%3Cpath d='M6 110V46a26 26 0 0 1 52 0v64M18 110V48a14 14 0 0 1 28 0v62' fill='none' stroke='white' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E"); */
  color: var(--white);
}

.page-head h1 {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.page-head p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--sky-text);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover,
.event-card:focus-within {
  box-shadow: 0 14px 28px -16px rgba(10, 42, 102, 0.45);
  transform: translateY(-2px);
}

.event-card--past {
  opacity: 0.88;
}

.event-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__media--date {
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.event-card__media--date .event-card__day {
  font-size: 3.4rem;
}

.event-card__media .badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.badge--open {
  background: var(--blue);
  color: var(--white);
}

.badge--date {
  background: var(--white);
  color: var(--navy);
}

.event-card__day {
  font-family: var(--font-number);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--yellow);
}

.event-card__month {
  flex: 1;
  font-weight: 600;
}

.badge {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge--past {
  background: #d9deea;
  color: #333a46;
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem 1.3rem;
}

.event-card__type {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

.event-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--navy);
}

.event-card__theme {
  margin: 0;
  font-style: italic;
  color: #333a46;
}

.event-card__meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.event-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 3px;
}

/* La carte entière devient cliquable */
.event-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.empty {
  margin: 1.4rem 0 0;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #b9c6db;
  border-radius: var(--radius-card);
}

.notice-bar {
  padding: 0.7rem 1.25rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  text-align: center;
}

.more-events {
  padding: 0 0 3.5rem;
}

.more-events__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
}

.more-events__text {
  margin: 0;
  color: var(--muted);
}

/* ---------- Adaptation mobile ---------- */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .signup__grid {
    grid-template-columns: 1fr;
  }

  .aside {
    padding: 1.5rem;
  }

  .aside__number {
    font-size: 3.4rem;
  }
}

@media (max-width: 720px) {
  .hero__arrow {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .brand img {
    width: 140px;
    height: 62px;
  }

  .hero {
    min-height: calc(100vh - 4.8rem);
    min-height: calc(100svh - 4.8rem);
  }

  .infos__grid,
  .days {
    grid-template-columns: 1fr;
  }

  .info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1rem 1.2rem;
  }

  .info-card svg {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .hero__edition {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero__edition-text {
    text-align: center;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 1.5rem 1.2rem 1.8rem;
  }

  .cta__box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__inner {
    animation: none;
  }

  .hero__slide,
  .hero__slide.is-active {
    transition: none;
  }

  .btn,
  .field input,
  .field select {
    transition: none;
  }
}


/* ---------- Flyer, photo de l'orateur, comité ---------- */
.flyer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.flyer__open {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  cursor: zoom-in;
  box-shadow: 0 14px 28px -18px rgba(10, 42, 102, 0.5);
}

.flyer__open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.flyer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.lightbox {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(7, 28, 71, 0.85);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox__close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.info-card__photo {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.6rem;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  object-fit: cover;
}

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  text-align: center;
}

.member__photo {
  width: 96px;
  height: 96px;
  margin-bottom: 0.4rem;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  object-fit: cover;
}

.member__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-number);
  font-size: 1.8rem;
}

.member__name {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.member__role {
  margin: 0;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.member__phone {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.member__phone:hover {
  text-decoration: underline;
}


/* Saisie en majuscules (la valeur est aussi mise en majuscules par le script et le serveur) */
input[data-uppercase] {
  text-transform: uppercase;
}

input[data-uppercase]::placeholder {
  text-transform: none;
}


/* ---------- Choix du type d'inscription ---------- */
.form-panel.is-done .mode,
.form-panel.is-done .quick {
  display: none;
}

.form[hidden],
.quick[hidden],
.field[hidden] {
  display: none;
}

.mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.mode__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-height: 3.6rem;
  padding: 0.7rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mode__btn strong {
  font-size: 1rem;
}

.mode__btn span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mode__btn:hover {
  border-color: var(--blue);
}

.mode__btn.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.mode__btn.is-active span {
  color: var(--yellow);
}

.mode__btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Inscription rapide ---------- */
.quick {
  display: grid;
  gap: 1rem;
}

.quick__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quick__error {
  display: none;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-field);
  background: #fdecea;
  color: var(--error);
  font-size: 0.93rem;
}

.quick__error.is-visible {
  display: block;
}

@media (max-width: 420px) {
  .mode__btn span {
    display: none;
  }
}


/* Traits fins plus épais : meilleure lisibilité des chiffres et des lettres */
.section__title,
.info-card__value,
.day__title,
.cta__title,
.event-card__title,
.form-panel__title,
.success__title,
.page-head h1,
.stat__num span {
  font-weight: 900;
  font-optical-sizing: none;
  /* font-variation-settings: "opsz" 14; */
  font-variant-numeric: lining-nums;
}
