/* ===========================================================
   ENFANTS UKRAINE 01 — association humanitaire
   Saint-Didier-de-Formans (Ain) — pour les enfants de Bérezné
   =========================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* Couleurs (reprises du logo et des kakemonos) */
  --blue: #005CA9;
  --blue-deep: #0B3F7E;
  --blue-ink: #0A2547;
  --blue-soft: #EAF2FB;
  --yellow: #FFD500;
  --yellow-deep: #E6BE00;
  --yellow-soft: #FFF6C7;
  --ink: #0A2547;
  --ink-soft: #33475F;
  --muted: #5A6A7E;
  --paper: #FFFFFF;
  --paper-soft: #F5F8FC;
  --line: #DDE5EF;

  /* Typo */
  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Espacements (base 8px) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow: 0 10px 30px rgba(10, 37, 71, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--sp-2) 0;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3, h2.sub { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 var(--sp-2) 0; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.hl { color: var(--blue); }
.hl-yellow { color: var(--yellow); }

/* Surlignage "feutre" jaune, comme un dessin d'enfant */
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%);
  padding: 0 2px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.container--narrow { max-width: 780px; }

section { padding: var(--sp-6) 0; }
section.tight { padding: var(--sp-5) 0; }
section.soft { background: var(--paper-soft); }

.section-head { max-width: 64ch; margin-bottom: var(--sp-4); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}
.kicker::before {
  content: "";
  width: 22px; height: 14px;
  border-radius: 3px;
  background: linear-gradient(var(--blue) 50%, var(--yellow) 50%);
  flex-shrink: 0;
}

/* Focus visible pour l'accessibilite */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--blue); color: var(--paper); }
.btn--primary:hover { background: var(--blue-deep); }

.btn--accent { background: var(--yellow); color: var(--blue-ink); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn--accent:hover { background: #FFDD33; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--light { background: var(--paper); color: var(--blue-ink); }
.btn--light:hover { background: var(--yellow-soft); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); }

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.ext::after {
  content: "";
  display: inline-block;
  width: 0.8em; height: 0.8em;
  margin-left: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Bandeau d'annonce ---------- */
.topbar {
  background: var(--yellow);
  color: var(--blue-ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
  text-align: center;
  flex-wrap: wrap;
}
.topbar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: var(--sp-3); }
.nav__panel { display: flex; align-items: center; gap: var(--sp-3); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: var(--sp-1) 0;
  position: relative;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--blue); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-1);
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
  padding: var(--sp-6) 0 var(--sp-7);
}
.hero::after {
  /* bande jaune du drapeau en bas du hero */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: var(--yellow);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-5);
  align-items: center;
}
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero .lede { color: rgba(255,255,255,0.88); }
.hero .kicker { color: var(--yellow); }
.hero .kicker::before { background: linear-gradient(var(--paper) 50%, var(--yellow) 50%); }

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.hero__note { margin-top: var(--sp-2); font-size: 0.9rem; color: rgba(255,255,255,0.75); }

.hero__visual { position: relative; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  transform: rotate(1.5deg);
}
.hero__polaroid {
  position: absolute;
  left: -28px;
  bottom: -36px;
  width: 42%;
  background: var(--paper);
  padding: 8px 8px 30px;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  transform: rotate(-5deg);
}
.hero__polaroid img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.hero__polaroid span {
  position: absolute; left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 0.82rem; color: var(--blue);
}

/* Hero des pages interieures */
.page-hero {
  background: var(--blue);
  color: var(--paper);
  padding: var(--sp-6) 0 var(--sp-5);
  position: relative;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--yellow);
}
.page-hero h1 { color: var(--paper); max-width: 22ch; }
.page-hero h1 em { color: var(--yellow); }
.page-hero .lede { color: rgba(255,255,255,0.88); }
.page-hero .kicker { color: var(--yellow); }
.page-hero .kicker::before { background: linear-gradient(var(--paper) 50%, var(--yellow) 50%); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: var(--sp-2); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trois facons d'aider (CTA HelloAsso) ---------- */
.help {
  position: relative;
  margin-top: calc(-1 * var(--sp-5));
  z-index: 2;
  padding: 0 0 var(--sp-5);
}
.help__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.help-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow);
  border-top: 8px solid var(--blue);
  display: flex;
  flex-direction: column;
}
.help-card--don { border-top-color: var(--yellow); }
.help-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
}
.help-card--don .help-card__icon { background: var(--yellow-soft); color: var(--blue-ink); }
.help-card__icon svg { width: 28px; height: 28px; }
.help-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.help-card p { color: var(--ink-soft); flex-grow: 1; }
.help-card__price {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue);
  font-size: 0.95rem;
  margin-bottom: var(--sp-2);
}
.help-card__badge {
  position: absolute;
  top: -14px; right: 20px;
  background: var(--blue-ink); color: var(--yellow);
  font-family: var(--font-head); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px;
}
.help-card .btn { align-self: flex-start; }

/* ---------- Chiffres ---------- */
.stats { background: var(--paper); }
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.stat {
  text-align: center;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}
.stat__value {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.stat__value small { font-size: 0.55em; font-weight: 800; }
.stat__label { color: var(--ink-soft); font-size: 0.93rem; margin-top: 6px; }

/* ---------- Split (texte + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.split__media--duo img { aspect-ratio: 3 / 4; }

.photo-frame { position: relative; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: var(--yellow);
  z-index: -1;
}
.photo-frame--blue::before { background: var(--blue); }

.check-list {
  list-style: none;
  margin: var(--sp-3) 0 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  color: var(--blue);
  background: var(--yellow);
  border-radius: 50%;
  padding: 3px;
}

/* ---------- Cartes actions ---------- */
.actions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.action-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.action-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.action-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.action-card__body { padding: var(--sp-3); display: flex; flex-direction: column; flex-grow: 1; }
.action-card__tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue-ink); background: var(--yellow);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.action-card h3 { margin-bottom: 8px; }
.action-card p { color: var(--ink-soft); margin-bottom: 0; flex-grow: 1; }
.card-link {
  margin-top: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
a:hover .card-link svg, .card-link:hover svg { transform: translateX(3px); }

/* ---------- Bloc action detaille (page Nos actions) ---------- */
.action-block { padding: var(--sp-6) 0; border-bottom: 1px solid var(--line); }
.action-block:last-of-type { border-bottom: 0; }
.action-block__num {
  font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1;
  color: var(--yellow); -webkit-text-stroke: 2px var(--blue);
  margin-bottom: var(--sp-1);
}

/* ---------- Bande tombola ---------- */
.raffle {
  background: var(--blue-ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.raffle::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 213, 0, 0.12);
}
.raffle h2 { color: var(--paper); margin-bottom: 8px; }
.raffle h2 em { color: var(--yellow); font-style: italic; }
.raffle p { color: rgba(255,255,255,0.82); margin-bottom: 6px; }
.raffle__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.raffle__meta span {
  font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px; border-radius: 999px;
}
.raffle__ticket {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head);
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.raffle__ticket strong { font-size: 2.3rem; font-weight: 900; line-height: 1; }
.raffle__ticket span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.raffle__ticket svg { width: 54px; height: 34px; margin-bottom: 2px; }
.raffle .btn { position: relative; z-index: 1; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* ---------- Citation ---------- */
.quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--blue);
}
.quote cite { display: block; margin-top: var(--sp-2); color: var(--muted); font-style: normal; font-size: 0.95rem; }

/* ---------- Actualites ---------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__img { position: relative; }
.news-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card__body { padding: var(--sp-3); display: flex; flex-direction: column; flex-grow: 1; }
.news-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.news-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.news-card p { color: var(--ink-soft); margin-bottom: 0; flex-grow: 1; font-size: 0.96rem; }

.pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
}
.pill--event { background: var(--yellow); color: var(--blue-ink); }
.pill--past { background: var(--paper-soft); color: var(--muted); border: 1px solid var(--line); }

/* Agenda (evenements a venir) */
.agenda { display: grid; gap: var(--sp-2); }
.agenda-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  background: var(--paper);
}
.agenda-item__date {
  text-align: center;
  background: var(--blue);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-family: var(--font-head);
}
.agenda-item__date strong { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1; }
.agenda-item__date span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--yellow); }
.agenda-item h3 { margin-bottom: 4px; }
.agenda-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Article */
.article__meta { color: rgba(255,255,255,0.85); font-size: 0.95rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-body { font-size: 1.05rem; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body h2 { margin-top: var(--sp-5); font-size: 1.6rem; }
.article-body ul { padding-left: 1.2em; margin-bottom: var(--sp-3); }
.article-body li { margin-bottom: 8px; }
.article-body figure { margin: var(--sp-4) 0; }
.article-body figure img { border-radius: var(--radius-md); width: 100%; height: auto; }
.article-body figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article-body a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.poster { max-width: 520px; margin-left: auto; margin-right: auto; }
.poster img { box-shadow: var(--shadow); }

.info-box {
  background: var(--blue-soft);
  border-left: 6px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.info-box dt { font-weight: 700; color: var(--ink); }
.info-box dd { margin: 0; color: var(--ink-soft); }

.cta-inline {
  margin-top: var(--sp-5);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  background: var(--yellow-soft);
  border: 2px dashed var(--yellow-deep);
}
.cta-inline h2 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-inline .btn-row { margin-top: var(--sp-2); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Partenaires ---------- */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-2);
}
.partner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.partner img { max-height: 100%; max-width: 100%; object-fit: contain; width: auto; height: auto; }
.partners__grid--compact { grid-template-columns: repeat(8, 1fr); }

/* ---------- Timeline (histoire) ---------- */
.timeline {
  border-left: 4px solid var(--blue-soft);
  margin-left: 8px;
  padding-left: var(--sp-4);
  display: grid;
  gap: var(--sp-4);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-4) - 12px);
  top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--blue);
}
.timeline__period { font-family: var(--font-head); color: var(--blue); font-size: 0.95rem; font-weight: 800; margin-bottom: 2px; }
.timeline__item h3 { margin-bottom: 6px; }
.timeline__item p { color: var(--ink-soft); margin: 0; }

/* ---------- Soutenir : grandes cartes ---------- */
.support__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.support-card--feature { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.support-card--feature h3, .support-card--feature h2.sub { color: var(--paper); }
.support-card.support-card--feature p { color: rgba(255,255,255,0.9); }
.support-card p { color: var(--ink-soft); flex-grow: 1; }
.support-card .btn { align-self: flex-start; }
.support-card ul { color: var(--ink-soft); padding-left: 1.2em; margin: 0 0 var(--sp-3); }

.needs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--sp-2) 0 0; }
.needs li {
  font-size: 0.9rem; font-weight: 600; color: var(--blue-ink);
  background: var(--yellow-soft); border: 1px solid #F3E08A;
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Bande CTA finale ---------- */
.cta-band {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--yellow);
}
.cta-band h2 { color: var(--paper); margin-bottom: 8px; }
.cta-band h2 em { color: var(--yellow); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--sp-5);
  align-items: start;
}
.contact-info-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
.contact-info-card h2.sub { margin-bottom: var(--sp-2); }
.contact-info-card__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.contact-info-card__row + .contact-info-card__row { border-top: 1px solid var(--line); }
.contact-info-card__row svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); }
.contact-info-card__row a, .contact-info-card__row span.value { font-weight: 600; font-size: 0.97rem; word-break: break-word; }

.contact-form { max-width: 560px; margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.contact-form[hidden] { display: none; }
.contact-form__hp { position: absolute; left: -9999px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--blue); }
.contact-form .btn { justify-self: start; margin-top: var(--sp-1); }
.form-rgpd { font-size: 0.82rem; color: var(--muted); margin: 0; }

.form-banner { border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); font-size: 0.95rem; }
.form-banner--success { background: #EAF7EF; color: #1E6B3C; border: 1px solid #BFE6CC; }
.form-banner--error { background: #FBEAEA; color: #A32626; border: 1px solid #F1C6C6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-6) 0 var(--sp-4);
  margin-top: var(--sp-6);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg, var(--blue) 50%, var(--yellow) 50%);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-4);
}
.site-footer__brand img { height: 84px; width: auto; border-radius: 8px; margin-bottom: var(--sp-2); }
.site-footer__brand p { max-width: 36ch; font-size: 0.95rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.site-footer__col h3 { font-size: 0.8rem; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: var(--sp-2); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.site-footer__col a:hover { color: var(--yellow); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--sp-3);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.site-footer__bottom a { text-decoration: underline; }
.site-footer__bottom { align-items: center; }
.site-footer__bottom a:hover { color: var(--yellow); }
.social { display: flex; gap: 10px; margin-top: var(--sp-2); }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--yellow); color: var(--blue-ink); }
.social svg { width: 20px; height: 20px; }

/* ---------- Bouton don flottant (mobile) ---------- */
.float-don {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  display: none;
  box-shadow: 0 10px 30px rgba(10,37,71,0.3);
}

/* ---------- Mentions legales ---------- */
.legal-block { margin-bottom: var(--sp-4); }
.legal-block h2 { font-size: 1.15rem; }
.legal-block p, .legal-block li { color: var(--ink-soft); }
.todo { background: var(--yellow-soft); padding: 0 4px; border-radius: 3px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound img { width: 220px; margin: 0 auto var(--sp-3); border-radius: var(--radius-md); }
.notfound .btn-row { justify-content: center; margin-top: var(--sp-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 0.88rem; }
  .partners__grid { grid-template-columns: repeat(4, 1fr); }
  .partners__grid--compact { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid, .split, .contact-layout, .site-footer__top { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero { padding-top: var(--sp-5); }
  .hero__visual { max-width: 520px; margin: var(--sp-2) auto 0; }
  .hero__polaroid { left: -8px; bottom: -24px; }
  .help { margin-top: calc(-1 * var(--sp-4)); }
  .help__grid, .actions__grid, .news__grid { grid-template-columns: 1fr; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .support__grid { grid-template-columns: 1fr; }
  .raffle { grid-template-columns: 1fr; text-align: left; }
  .raffle__ticket { width: 110px; height: 110px; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }

  .nav__panel { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3);
    box-shadow: 0 12px 24px rgba(10, 37, 71, 0.1);
  }
  body.nav-open .nav__panel .nav__links { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  body.nav-open .nav__panel .nav__links a { font-size: 1.05rem; }

  .float-don { display: flex; }
  body { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  section { padding: var(--sp-5) 0; }
  .container { padding: 0 var(--sp-2); }
  .brand img { height: 46px; }
  .partners__grid, .partners__grid--compact { grid-template-columns: repeat(3, 1fr); }
  .agenda-item { grid-template-columns: 72px 1fr; }
  .agenda-item .btn { grid-column: 1 / -1; }
  .agenda-item__date strong { font-size: 1.5rem; }
  .raffle, .cta-band { padding: var(--sp-4) var(--sp-3); }
  .site-footer__cols { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .news-card, .action-card { transition: none; }
}

.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;
}

/* Logo horizontal (en-tete) : dessin + nom */
.brand { gap: 12px; }
.brand__mark { width: 54px; height: 54px; border-radius: 12px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.brand__name span {
  display: block;
  color: var(--blue-ink);
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  width: fit-content;
}
@media (max-width: 600px) {
  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 1.05rem; }
}

/* Evite tout debordement horizontal (cadres decoratifs, photos inclinees) */
main { overflow-x: clip; }

@media (max-width: 900px) {
  .hero__visual { order: -1; max-width: 440px; margin: 0 auto var(--sp-2); }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__polaroid { width: 34%; bottom: -18px; }
  .topbar__more { display: none; }
}

/* Credit agence (discret) */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none !important;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.credit:hover { opacity: 1; color: rgba(255,255,255,0.75) !important; }
.credit img { height: 16px; width: auto; }

/* En-tete : pas de retour a la ligne, menu burger plus tot */
.brand__name, .brand__name span, .nav__panel .btn { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav__panel { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav__panel {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-3);
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-3); box-shadow: 0 12px 24px rgba(10, 37, 71, 0.1);
  }
  body.nav-open .nav__panel .nav__links { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  body.nav-open .nav__panel .nav__links a { font-size: 1.05rem; }
}

/* ---------- Convois ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-2); align-items: start; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--blue-ink);
  font-family: var(--font-head); font-weight: 900; font-size: 1.2rem;
}
.steps h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.steps--grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4) var(--sp-3); }

.trip-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }
.trip-stats { margin-top: var(--sp-3); }
.trip-stats .stat { padding: var(--sp-2); }
.trip-stats .stat__value { font-size: 1.6rem; }
.trip-stats .stat__label { font-size: 0.85rem; }
.gallery--trip { margin: var(--sp-4) 0; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
.gallery--trip img { border-radius: var(--radius-md); }
.timeline__item .card-link { margin-top: 8px; }

.trip-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-5); }
.trip-nav a {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-2) var(--sp-3);
  text-decoration: none !important; color: var(--ink) !important;
}
.trip-nav a:hover { border-color: var(--blue); }
.trip-nav span { display: block; font-size: 0.85rem; color: var(--muted); }
.trip-nav strong { font-family: var(--font-head); color: var(--blue); }
.trip-nav__next { text-align: right; }

@media (max-width: 1180px) {
  .nav__panel { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav__panel {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-3);
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-3); box-shadow: 0 12px 24px rgba(10, 37, 71, 0.1);
  }
  body.nav-open .nav__panel .nav__links { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  body.nav-open .nav__panel .nav__links a { font-size: 1.05rem; }
}
@media (max-width: 900px) {
  .steps--grid { grid-template-columns: 1fr; }
  .trip-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery--trip { grid-auto-rows: 150px; }
  .gallery--trip .g-wide { grid-column: span 2; }
  .trip-nav { grid-template-columns: 1fr; }
  .trip-nav__next { text-align: left; }
}

.route-map { margin: var(--sp-5) auto 0; max-width: 820px; }
.route-map img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.route-map figcaption { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
