/* =====================================================================
   AFICo — Feuille de style principale
   ===================================================================== */

/* ----- Surcharge du formulaire Brevo (newsletter) ----- */
:where(.sib-form-message-panel) { display: none; }
:where(.sib-form-message-panel .sib-notification__icon) { width: 20px; height: 20px; }
#sib-container input::placeholder {
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  color: #6d6d68;
}
#sib-container a { color: var(--red); text-decoration: underline; }
#sib-container .input {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  color: #1d1d1b !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  padding: .5rem 1.1rem !important;
}
#sib-container .sib-form-block__button { margin: 1rem 0 !important; }
#sib-container .input:focus,
#sib-container .input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
  border: 1.5px solid #6d6d68 !important;
}
#sib-container .entry__error--primary { border-radius: 6px; }
.sib-form,
.sib-form-container,
#sib-container,
#sib-container .sib-form-block,
#sib-container .sib-input,
#sib-container .sib-form__declaration {
  padding: 0 !important;
  margin: 0 !important;
}
#sib-container .entry__field { padding: 0 !important; }
#sib-container .entry__label { margin-bottom: .35rem !important; }

/* ----- Variables et base ----- */
:root {
  --red: #e30613;
  --ink: #1d1d1b;
  --muted: #6d6d68;
  --bg: #ffffff;        /* fond blanc */
  --card: #e9e6e0;      /* gris actuel, réutilisé pour les cartes */
  --line: #e9e6e0;
}
* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- En-tête ----- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.brand { text-align: left; }
.logo { width: 140px; max-width: 50vw; height: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--red); text-decoration: none; }
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ----- Hero ----- */
.hero {
  text-align: center;
  background: var(--red);
  color: #fff;
  border-radius: 28px;
  padding: 84px 32px 72px;
  margin: 48px 0 24px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 29, 27, .28), transparent 70%);
  pointer-events: none;
}
.hero::before { top: -180px; left: -140px; }
.hero::after { bottom: -200px; right: -140px; }
.hero h1 { color: #fff; margin: 1.4rem auto 1rem; }
.hero h1 em { color: #ffe9ea; }
.hero .badge { border-color: rgba(255, 255, 255, .75); color: #fff; }
.hero .badge::before { background: #fff; }
.hero :focus-visible { outline-color: #fff; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.75); }
}
h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 22ch;
  margin: 1.4rem auto .9rem;
}
h1 em { font-style: normal; color: var(--red); }
.hero .lead {
  font-size: 1.12rem;
  color: #fff;
  max-width: 58ch;
  margin: 0 auto;
}

/* ----- Qui sommes-nous ----- */
.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
  margin-top: .6rem;
}
.about p { margin: 0; color: var(--muted); }
.about p strong { color: var(--ink); }
.about-illu { margin: 0; }
.about-illu img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ----- Axes d'action ----- */
.axes { padding: 24px 0; }
.newsletter { padding: 24px 0; }
.newsletter > p { color: var(--muted); max-width: 52ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
}
.contact-grid .newsletter-col { text-align: left; }
.contact-grid .contact-col { text-align: left; display: flex; flex-direction: column; gap: 56px; }
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  font-size: .98rem;
}
.contact-list a { font-weight: 600; }
.social-col > p { color: var(--muted); margin: 0; max-width: 40ch; }
.social-col .social-links { justify-content: flex-start; margin-top: 1.4rem; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

/* ----- Activités (affiches cliquables) ----- */
.activities { padding: 24px 0; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.activity {
  margin: 0;
  text-align: left;
}
.activity-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.thumb-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: .25rem .4rem;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 6px;
}
.activity-thumb:hover,
.activity-thumb:focus-visible {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(227, 6, 19, .10);
}
.activity-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.activity figcaption {
  margin-top: .6rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 27, .88);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease;
}
.lightbox-close:hover { background: var(--red); }
.lightbox-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ----- Cartes ----- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(227, 6, 19, .10);
}
.card-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: .6rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; }
.card-tag { margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; color: var(--red); }
.card p:not(.card-tag) { margin: 0; font-size: .93rem; color: var(--muted); }

/* ----- Réseaux sociaux ----- */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 1.8rem 0 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-4px);
  text-decoration: none;
}
.social-links svg { width: 22px; height: 22px; fill: currentColor; }

/* ----- Pied de page ----- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 36px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: left;
}
.footer-info { min-width: 260px; }
.footer-name { font-weight: 700; color: var(--ink); margin: 0 0 .4rem; }
.site-footer address { font-style: normal; margin: 0 0 .4rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--red); }
.copy { margin: 0; font-size: .82rem; }
.footer-support { text-align: right; }
.footer-support p { margin: 0; font-size: .82rem; font-weight: 600; }
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.footer-logos img { height: 64px; width: auto; }

/* ----- Responsive ----- */
@media (max-width: 820px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-support { text-align: left; }
  .footer-logos { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .site-header { justify-content: center; }
  .site-nav { display: none; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 20px; margin: 32px 0 24px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
  .card, .social-links a, .activity-thumb { transition: none; }
}
