/* ==========================================================================
   Refonte du 26/11/2026
   1. Agenda par journée (accueil)
   2. Bloc « Participer » (accueil) et carte d'inscription (contact)
   3. Page Édition 1, version corporate
   Couleurs de la marque : marine #1e3a8a, encre #1e293b, accent #2563eb
   ========================================================================== */

:root {
  --gon-navy: #1e3a8a;
  --gon-ink: #1e293b;
  --gon-accent: #2563eb;
  --gon-tone-1: #f3f5f9;
  --gon-tone-2: #e6ebf4;
  --gon-muted: #475569;
  --gon-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. Agenda
   -------------------------------------------------------------------------- */

#programme.section--gray { background: var(--gon-tone-1); }
#programme.section--gray::before { display: none; }

.programme { max-width: 1120px; margin: 0 auto; }

.agenda-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}

.agenda-tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  text-align: start;
  background: var(--gon-tone-2);
  color: var(--gon-ink);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s var(--gon-ease), color 0.2s var(--gon-ease);
}
.agenda-tab:hover { background: #d7dfee; }
.agenda-tab:active { transform: scale(0.99); }
.agenda-tab:focus-visible { outline: 3px solid var(--gon-accent); outline-offset: 2px; }
.agenda-tab[aria-selected="true"] { background: var(--gon-navy); color: #fff; }

.agenda-tab__day { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.agenda-tab__theme { font-size: 0.95rem; line-height: 1.35; opacity: 0.85; }

.agenda-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}
.agenda-panel[hidden] { display: none; }

.agenda-panel__head {
  padding: 32px 24px 8px;
}
.agenda-panel__date { font-size: 1rem; font-weight: 700; color: var(--gon-accent); margin: 0 0 8px; }
.agenda-panel__theme {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--gon-navy);
  margin: 0;
}
.agenda-panel__sub { font-size: 1.05rem; line-height: 1.55; color: var(--gon-ink); margin: 16px 0 0; max-width: 60ch; }

.agenda-list { list-style: none; margin: 0; padding: 16px 24px 32px; display: grid; gap: 4px; }

.agenda-slot {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 20px;
  background: var(--gon-tone-1);
}
.agenda-slot__time {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gon-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.agenda-slot__title { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 700; color: var(--gon-ink); }
.agenda-slot__desc { margin: 6px 0 0; font-size: 1rem; line-height: 1.55; color: var(--gon-ink); }

/* accueil, déjeuner, cocktail : plus discrets */
.agenda-slot--pause { background: transparent; padding-top: 12px; padding-bottom: 12px; }
.agenda-slot--pause .agenda-slot__title { font-weight: 500; color: var(--gon-muted); font-size: 1rem; }
.agenda-slot--pause .agenda-slot__time { color: var(--gon-muted); font-weight: 600; }

/* temps forts : remise des prix, signature des conventions */
.agenda-slot--key { background: var(--gon-navy); }
.agenda-slot--key .agenda-slot__time,
.agenda-slot--key .agenda-slot__title,
.agenda-slot--key .agenda-slot__desc { color: #fff; }

@media (min-width: 1024px) {
  .agenda-panel { grid-template-columns: 340px minmax(0, 1fr); }
  .agenda-panel__head { padding: 40px 32px; background: var(--gon-tone-2); }
  .agenda-list { padding: 32px; }
}

@media (max-width: 640px) {
  .agenda-tab { padding: 14px 12px; }
  .agenda-tab__day { font-size: 1rem; }
  .agenda-tab__theme { display: none; }
  .agenda-panel__head { padding: 24px 16px 4px; }
  .agenda-list { padding: 12px 8px 24px; }
  .agenda-slot { grid-template-columns: 1fr; gap: 4px; padding: 14px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .agenda-panel:not([hidden]) .agenda-slot { animation: gonRise 0.45s var(--gon-ease) both; }
  .agenda-panel:not([hidden]) .agenda-slot:nth-child(2) { animation-delay: 40ms; }
  .agenda-panel:not([hidden]) .agenda-slot:nth-child(3) { animation-delay: 80ms; }
  .agenda-panel:not([hidden]) .agenda-slot:nth-child(4) { animation-delay: 120ms; }
  .agenda-panel:not([hidden]) .agenda-slot:nth-child(5) { animation-delay: 160ms; }
  .agenda-panel:not([hidden]) .agenda-slot:nth-child(n+6) { animation-delay: 200ms; }
}
@keyframes gonRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   2. Participer
   -------------------------------------------------------------------------- */

.participate { background: var(--gon-navy); color: #fff; padding: 72px 0; }
.participate__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.participate__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
}
.participate__lead { font-size: 1.125rem; line-height: 1.55; margin: 0; max-width: 52ch; color: #fff; }
.participate__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.participate__btn,
.participate-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  background: #fff;
  color: var(--gon-navy);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transition: background-color 0.2s var(--gon-ease), transform 0.15s var(--gon-ease);
}
.participate__btn:hover { background: var(--gon-tone-2); }
.participate__btn:active, .participate-card .btn:active { transform: scale(0.98); }
.participate__btn:focus-visible,
.participate__link:focus-visible,
.participate-card .btn:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }
.participate__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.participate__link:hover { text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .participate { padding: 96px 0; }
  .participate__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .participate__actions { align-items: flex-end; }
  html[dir="rtl"] .participate__actions { align-items: flex-start; }
}

.footer-form-link { font-weight: 700; }

/* Contact : la carte d'inscription restait invisible */
.participate-card.inscription-card {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  background: var(--gon-navy);
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 32px;
  margin-top: 32px;
  max-width: 900px;
}
.participate-card.inscription-card:hover { transform: none; box-shadow: none; }
.participate-card.inscription-card h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.participate-card.inscription-card p { color: #fff; font-size: 1.0625rem; }
.participate-card .btn:hover { background: var(--gon-tone-2); color: var(--gon-navy); }

/* --------------------------------------------------------------------------
   3. Édition 1
   -------------------------------------------------------------------------- */

.page-edition1 .section-title {
  text-align: start;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 800;
  color: var(--gon-navy);
  padding: 0;
  margin-bottom: 32px;
}
.page-edition1 .section-title::after { display: none; }
.page-edition1 .section { padding: 80px 0; }
@media (max-width: 767px) { .page-edition1 .section { padding: 56px 0; } }

/* En-tête : photo de la 1re édition sous un voile marine */
.page-edition1 .page-header--photo {
  position: relative;
  background: var(--gon-navy) url("../../images/edition%201/WhatsApp%20Image%202025-10-09%20at%2014.13.08.jpeg") center 35% / cover no-repeat;
  padding: 120px 24px 96px;
  text-align: start;
  overflow: hidden;
}
.page-edition1 .page-header--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 75, 0.78);
}
.page-edition1 .page-header--photo > .container { position: relative; }
.page-edition1 .page-header__title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: none;
  margin-bottom: 20px;
}
.page-edition1 .page-header__subtitle { font-size: clamp(1.1rem, 1.6vw, 1.375rem); opacity: 1; max-width: 40ch; }

/* Intro : texte et grande photo */
.e1-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.e1-intro .text-lead { text-align: start; font-size: 1.1875rem; line-height: 1.65; color: var(--gon-ink); max-width: 58ch; margin: 0; }
.e1-intro__media { margin: 0; }
.e1-intro__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 960px) { .e1-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

/* Chiffres clés : bandeau marine, chiffres en grand */
.e1-stats { background: var(--gon-navy); }
.e1-stats .section-title { color: #fff; }
.e1-stats .stats-grid { max-width: none; gap: 4px; }
.e1-stats .stat-card {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border-radius: 0;
  text-align: start;
  padding: 32px 28px;
}
.e1-stats .stat-card:hover { transform: none; box-shadow: none; }
.e1-stats .stat-card__number {
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.e1-stats .stat-card__label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

/* Réalisations : photo + texte, sans icône */
.page-edition1 .achievements-grid { gap: 48px 40px; }
.page-edition1 .achievement-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.page-edition1 .achievement-card:hover { transform: none; box-shadow: none; }
.page-edition1 .achievement-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform 0.6s var(--gon-ease);
}
.page-edition1 .achievement-card:hover .achievement-card__media { transform: scale(1.02); }
.page-edition1 .achievement-card__title { font-size: 1.375rem; color: var(--gon-navy); margin-bottom: 8px; }
.page-edition1 .achievement-card__text { color: var(--gon-ink); font-size: 1.0625rem; line-height: 1.6; }

/* Citations */
.e1-quotes { background: var(--gon-tone-1); }
.e1-quotes .testimonials-grid { max-width: none; gap: 4px; }
.e1-quotes .testimonial-card { background: #fff; box-shadow: none; border-radius: 0; padding: 40px 36px; }
.e1-quotes .testimonial-card::before { display: none; }
.e1-quotes .testimonial-card__quote { font-style: normal; font-size: 1.25rem; line-height: 1.55; color: var(--gon-ink); }
.e1-quotes .testimonial-card__author { border-top: 0; padding-top: 0; color: var(--gon-muted); font-size: 1rem; }
.e1-quotes .testimonial-card__author strong { color: var(--gon-navy); }

/* Bandeaux d'appel */
.page-edition1 .section--cta { background: var(--gon-navy); }
.page-edition1 .cta-card { text-align: start; max-width: 1120px; display: grid; gap: 24px; }
.page-edition1 .cta-card__title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.page-edition1 .cta-card__text { margin: 0; max-width: 56ch; }
.page-edition1 .cta-card__buttons { justify-content: flex-start; }
.page-edition1 .cta-card .btn--primary,
.page-edition1 .cta-card .btn--secondary {
  background: #fff;
  color: var(--gon-navy);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 16px 32px;
  font-weight: 800;
}
.page-edition1 .cta-card .btn--secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.page-edition1 .cta-card .btn:hover { transform: none; background: var(--gon-tone-2); color: var(--gon-navy); }
.page-edition1 .cta-card .btn:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }

/* Galerie : grille régulière, première photo en grand */
.e1-gallery { background: #fff; }
.e1-gallery .text-center { text-align: start !important; color: var(--gon-ink) !important; }
.e1-gallery .text-center em { font-style: normal; }
.e1-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 768px) { .e1-gallery .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.e1-gallery .gallery-item { overflow: hidden; border-radius: 0; box-shadow: none; }
.e1-gallery .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.e1-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s var(--gon-ease);
}
.e1-gallery .gallery-item:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .page-edition1 .achievement-card__media,
  .e1-gallery .gallery-item img { transition: none; }
  .page-edition1 .achievement-card:hover .achievement-card__media,
  .e1-gallery .gallery-item:hover img { transform: none; }
}

/* Corrections après contrôle visuel */
.e1-intro .text-lead { padding: 0; border: 0; }
@media (min-width: 900px) {
  .page-edition1 .cta-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "title buttons" "text buttons";
    column-gap: 64px;
    align-items: center;
  }
  .page-edition1 .cta-card__title { grid-area: title; }
  .page-edition1 .cta-card__text { grid-area: text; }
  .page-edition1 .cta-card__buttons { grid-area: buttons; justify-content: flex-end; flex-wrap: wrap; }
}

/* Édition 1 : icônes au trait à la place des photos */
.e1-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gon-tone-2);
  color: var(--gon-navy);
  margin-bottom: 20px;
}
.e1-stats .e1-icon { background: rgba(255, 255, 255, 0.12); color: #fff; width: 48px; height: 48px; margin-bottom: 20px; }
.page-edition1 .achievement-card { background: var(--gon-tone-1); padding: 36px 32px; }
.e1-icon svg { width: 28px; height: 28px; flex: none; }
.e1-stats .e1-icon svg { width: 24px; height: 24px; }
.page-edition1 .cta-card__title, .participate__title { text-wrap: balance; }

/* --------------------------------------------------------------------------
   4. Compte à rebours
   -------------------------------------------------------------------------- */
.countdown-section { background: var(--gon-navy); color: #fff; padding: 72px 0; }
.countdown-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 64px;
  align-items: center;
}
.countdown-section .section-title {
  color: #fff;
  text-align: start;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
  padding: 0;
}
.countdown-section .section-title::after { display: none; }
.countdown-subtitle { color: #c7d5f5; text-align: start; font-size: 1.125rem; font-weight: 600; margin: 0 0 24px; }
.countdown { max-width: none; margin: 0; gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.countdown-item {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 0;
  padding: 28px 12px 22px;
  overflow: hidden;
}
.countdown-item:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.12); }
.countdown-value {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.countdown-label {
  color: #c7d5f5;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
}
.countdown-live__text { color: #fff; }
@media (min-width: 1024px) {
  .countdown-section { padding: 96px 0; }
  .countdown-section .container { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
  .countdown-section .section-title { grid-column: 1; grid-row: 1; align-self: end; }
  .countdown-subtitle { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .countdown, .countdown-live { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 639px) {
  .countdown-section { padding: 56px 0; }
  .countdown-item { padding: 18px 4px 14px; }
  .countdown-label { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .countdown-value.is-tick { animation: gonTick 0.45s var(--gon-ease); }
}
@keyframes gonTick { from { opacity: 0; transform: translateY(-35%); } to { opacity: 1; transform: none; } }
