/* =========================================================
   PAPAGEIL — feuille de style commune
   Charte : noir / rouge / blanc. Couleurs modifiables ci-dessous.
   ========================================================= */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #fdfcf9;
  --paper-2: #f1efea;
  --ink: #0d0d0d;
  --ink-soft: #3a3a3a;
  --red: #d7141a;
  --red-dark: #a10e12;
  --white: #ffffff;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-red: 6px 6px 0 var(--red);
  --radius: 10px;
  --maxw: 1100px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Grain « papier photocopié » très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 10vw, 5.5rem); }
h2 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: 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;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  text-decoration: none;
  padding: .7em 1.3em;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: var(--shadow-red); }
.btn-dark:hover { box-shadow: 8px 8px 0 var(--red); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}
.brand-name span { color: var(--red); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--ink); color: var(--white); }
.nav a[aria-current="page"] { background: var(--red); color: var(--white); }

/* ---------- Héros ---------- */
main { flex: 1; }

.hero { padding: 32px 0 56px; text-align: center; }
.hero-logo {
  width: min(100%, 760px);
  margin: 0 auto 8px;
  mix-blend-mode: multiply;           /* le fond blanc du logo disparaît */
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero h1 { margin-bottom: .3em; font-size: clamp(2.2rem, 8vw, 4.2rem); }
.hero h1 .tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0 .2em;
  transform: rotate(-2deg);
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 32em; margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }

/* ---------- Bandeau défilant ---------- */
.marquee {
  background: var(--red);
  color: var(--white);
  border-block: var(--border);
  transform: rotate(-1.5deg);
  margin: 0 -20px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  padding: 12px 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: scroll 22s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; }
.marquee-track .icon { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .kicker { color: var(--red); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .85rem;
  color: var(--red);
  margin-bottom: 8px;
}
.lead { font-size: 1.2rem; max-width: 38em; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1.2fr 1fr; } }

.sticker {
  border: var(--border);
  border-radius: 50%;
  box-shadow: 10px 10px 0 var(--red);
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(4deg);
  transition: transform .3s ease;
}
.sticker:hover { transform: rotate(-3deg) scale(1.03); }

.card {
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.note {
  background: var(--paper-2);
  border-left: 6px solid var(--red);
  padding: 14px 18px;
  border-radius: 4px;
}

/* ---------- Agenda ---------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
@media (min-width: 700px) { .event { grid-template-columns: 96px 1fr auto; } }
.event-date {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 10px 4px;
  line-height: 1;
  font-family: var(--display);
  text-transform: uppercase;
}
.event-date .day { display: block; font-size: 2.2rem; }
.event-date .month { color: var(--red); font-size: 1rem; letter-spacing: .08em; }
.event h3 { margin: 0 0 4px; font-size: 1.4rem; }
.event p { margin: 0; color: var(--ink-soft); }
.event .btn { grid-column: 1 / -1; justify-content: center; }
@media (min-width: 700px) { .event .btn { grid-column: auto; } }

.section-dark .card { box-shadow: var(--shadow-red); }
.events-past { margin-top: 64px; }
.events-past .card { box-shadow: none; }

.empty {
  text-align: center;
  padding: 40px 24px;
}
.empty .icon { width: 48px; height: 48px; color: var(--red); margin: 0 auto 12px; }

/* ---------- Grille réseaux ---------- */
.socials { display: grid; gap: 18px; list-style: none; padding: 0; margin: 32px 0 0; }
@media (min-width: 700px) { .socials { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Boutons de réseaux (accueil + page liens) ---------- */
.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
}
.social-btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 9px 9px 0 var(--red); }
.social-btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--red); }
.social-btn > .icon { width: 30px; height: 30px; }
.social-btn .label {
  flex: 1;
  text-align: left;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.4rem;
  line-height: 1.1;
}
.social-btn .label small {
  display: block;
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-size: .8rem;
  font-weight: 500;
  opacity: .7;
}
.social-btn .cta {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .05em;
  background: var(--red);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.social-btn.light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.social-btn.light:hover { box-shadow: 9px 9px 0 var(--ink); }
.section-dark .social-btn { border-color: var(--white); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 400;
}
.form input:focus, .form textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--red); }
.form textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border: var(--border); border-radius: 8px; font-weight: 700; margin-bottom: 18px; }
.alert-error { background: var(--red); color: var(--white); }
[hidden] { display: none !important; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { opacity: .8; margin-bottom: 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 40px 0 28px;
  border-top: 6px solid var(--red);
}
.site-footer .container { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-brand { font-family: var(--display); font-size: 2.2rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-brand span { color: var(--red); }
.footer-socials { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.footer-socials a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--white);
  border-radius: 50%;
  transition: background .15s, transform .15s;
}
.footer-socials a:hover { background: var(--red); border-color: var(--red); transform: rotate(-8deg) scale(1.08); }
.footer-socials .icon { width: 22px; height: 22px; }
.footer-legal { font-size: .85rem; opacity: .6; }
.footer-legal a { color: inherit; }

/* =========================================================
   Page « liens » (cible du QR code)
   ========================================================= */
.links-page main {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  text-align: center;
}
.links-logo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 4px;
  mix-blend-mode: multiply;
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.links-title {
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  margin-bottom: 6px;
}
.links-title .tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0 .2em;
  transform: rotate(-2deg);
}
.links-sub { color: var(--ink-soft); margin-bottom: 28px; }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.links-list li { animation: rise .5s ease both; }
.links-list li:nth-child(1) { animation-delay: .15s; }
.links-list li:nth-child(2) { animation-delay: .25s; }
.links-list li:nth-child(3) { animation-delay: .35s; }
.links-list li:nth-child(4) { animation-delay: .45s; }
.links-list li:nth-child(5) { animation-delay: .55s; }
.links-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0;
  color: var(--red);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .95rem;
}
.links-divider::before, .links-divider::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
.links-foot { margin-top: 32px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Animations ---------- */
@keyframes scroll { to { transform: translateX(-50%); } }
/* Pas d'opacité à 0 : le contenu reste visible même si les animations ne tournent pas */
@keyframes pop { from { transform: scale(.85) rotate(-3deg); } }
@keyframes rise { from { transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
