:root {
  --red: #E2302B;
  --yellow: #F5D52A;
  --ink: #111;
  --paper: #fffdf5;
  --muted: #555;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

/* Logo en fond de page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("logo.svg") center / min(110vw, 110vh) no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

a { color: var(--red); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px 24px;
  background: rgba(255, 253, 245, 0.95);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: 0.95rem;
}
.brand small { color: var(--red); font-weight: 800; }

.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav a:hover, .nav a:focus-visible { background: var(--yellow); }

/* ---------- Accueil ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 16px 64px;
  text-align: center;
}

.banner {
  margin: 0;
  padding: 6px 36px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5.5rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.banner--small {
  max-width: 640px;
  padding: 10px 24px;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  letter-spacing: 0.08em;
}

.hero-logo {
  width: min(420px, 80vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* ---------- Sections ---------- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 16px;
}

.section-title {
  display: inline-block;
  margin: 0 0 20px;
  padding: 2px 22px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  font-family: "Amatic SC", cursive;
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { font-size: 1.15rem; font-weight: 600; margin: 0 0 28px; }

/* Impacts */
.impacts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.impacts li {
  position: relative;
  overflow: hidden;
  flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 22px 18px 18px;
  text-align: center;
  background: #fff;
  border-top: 6px solid var(--yellow);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Remplissage jaune qui monte au survol */
.impacts li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.impacts li > * { position: relative; z-index: 1; }
.impacts li:hover,
.impacts li:focus-within {
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(226, 48, 43, 0.22);
}
.impacts li:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.impacts li:hover::before { transform: scaleY(1); }
.impacts strong { text-transform: uppercase; font-weight: 800; line-height: 1.3; }
.tag {
  font-family: "Amatic SC", cursive;
  font-size: 1.45rem;
  color: var(--red);
  line-height: 1.1;
  transition: transform 0.25s ease;
}
.impacts li:hover .tag { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .impacts li, .impacts li::before, .tag, .contenu, .social, .social svg { transition: none; }
}

/* Cartes */
.actions-main { max-width: 460px; margin: 0 auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.card h3 { margin: 0 0 8px; text-transform: uppercase; font-weight: 900; font-size: 1.05rem; }
.card p { margin: 0 0 16px; }
.card--highlight { background: var(--yellow); }
.card--center { text-align: center; }
.big { font-size: 1.3rem; font-weight: 800; }
.card--highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qr { margin: 20px 0 0; }
.qr img {
  display: block;
  margin: 0 auto;
  width: 160px;
  height: 160px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.qr figcaption { margin-top: 6px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }

/* Contenus ajoutés via Pages CMS (tous les onglets) */
.contenus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.contenu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contenu:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(226, 48, 43, 0.22);
}
.contenu-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border: 0; }
/* Images et affiches : affichées en entier, sans être rognées */
img.contenu-media { aspect-ratio: auto; height: auto; max-height: 460px; object-fit: contain; background: #f4f1e6; }
.contenu-media--video { position: relative; }
.contenu-media--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contenu-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 18px 22px 22px; }
.contenu-meta { margin: 0; font-family: "Amatic SC", cursive; font-size: 1.35rem; color: var(--red); line-height: 1.1; }
.contenu h3 { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.contenu-texte { font-size: 0.95rem; }
.contenu-texte p { margin: 0 0 8px; }
.contenu-texte img { max-width: 100%; height: auto; border-radius: 8px; }
.contenu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.contenu-actions .btn { padding: 9px 18px; font-size: 0.8rem; }
.contenus-vide { margin: 0; font-weight: 600; }

/* Nos réseaux */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.social {
  --accent: var(--ink);
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.social--tiktok { --accent: #111; }
.social--insta  { --accent: #d62976; }
.social--fb     { --accent: #1877f2; }
.social svg {
  width: 56px;
  height: 56px;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--accent);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.social-name { font-weight: 900; text-transform: uppercase; font-size: 1.05rem; }
.social-handle { font-size: 0.85rem; color: var(--muted); word-break: break-word; transition: color 0.25s ease; }
.social:hover, .social:focus-visible {
  transform: translateY(-6px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}
.social:hover .social-handle, .social:focus-visible .social-handle { color: rgba(255, 255, 255, 0.85); }
.social:hover svg, .social:focus-visible svg { transform: rotate(-8deg) scale(1.1); background: #fff; }

/* Rejoignez-nous */
.join {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}
.join-form { display: flex; flex-direction: column; gap: 14px; }
.join-form h3 { margin-bottom: 0; }
.fee { margin: 0 !important; }
.join-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 0.85rem; }
.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="tel"],
.join-form input[type="number"] {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 10px 12px;
  border: 2px solid #e4e0d0;
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.join-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(226, 48, 43, 0.15);
}
.join-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid #e4e0d0;
  border-radius: 10px;
}
.join-form legend { padding: 0 6px; font-weight: 800; font-size: 0.85rem; }
.join-form label.choice { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.join-form .choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex-shrink: 0; }
.join-form .small-print { font-size: 0.8rem !important; font-weight: 400 !important; color: var(--muted); }
.join-form .btn { align-self: center; font: inherit; font-weight: 900; cursor: pointer; }
.hp { position: absolute; left: -9999px; }

.join-info { background: var(--yellow); }
.join-info p { font-size: 0.95rem; }
.iban { font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; word-break: break-word; }

@media (max-width: 800px) {
  .join { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .join-form .row { grid-template-columns: 1fr; }
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--red);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--red); }

.mail {
  display: inline-block;
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}
.mail:hover { background: var(--red); color: #fff; }

/* Pied de page */
.site-footer {
  padding: 24px 16px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.credit { margin-top: 8px !important; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.credit a { color: var(--yellow); font-weight: 800; text-decoration: none; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; }
.heart { display: inline-block; color: var(--red); }
.credit:hover .heart { animation: beat 0.8s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.3); } }

@media (max-width: 640px) {
  .site-header { justify-content: center; padding: 10px 12px; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 10px; font-size: 0.75rem; }
  .impacts li { flex-basis: 100%; min-height: 0; }
  html { scroll-padding-top: 130px; }
}
