/* =========================================================
   UCAG Givry — feuille de style de la maquette
   Couleurs reprises du logo : marine, turquoise, vert.
   ========================================================= */

:root {
  --navy: #1B2A55;
  --navy-dark: #121D40;
  --ink: #0F1A36;
  --teal: #0E7C86;
  --teal-light: #7FD0D4;
  --teal-tint: #DDF0F1;
  --green: #17684F;
  --green-tint: #DDF1E8;
  --bg: #F3F6F5;
  --card: #FFFFFF;
  --line: #DCE4E2;
  --muted: #4B5963;
  --soft: #E3EDEB;

  --radius: 24px;
  --shadow: 0 22px 44px -28px rgba(15, 26, 54, .45);
  --font-title: 'Outfit', system-ui, sans-serif;
  --font-text: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.lead { font-size: 19px; color: var(--muted); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-light); color: var(--navy-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 60px; height: 60px; }
.brand-name { font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--soft); color: var(--navy); font-weight: 600; }
.main-nav .nav-cta { display: none; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Accueil : hero ---------- */

.hero { padding: 72px 0 96px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero .lead { margin: 24px 0 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  max-width: 580px;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 134, .15); }

.hero-visual { position: relative; }
.hero-logo {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7%;
  position: relative;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 2px dashed var(--teal-light);
}
.next-event {
  position: absolute;
  left: -48px;
  bottom: -36px;
  max-width: 340px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.next-event:hover { color: var(--ink); transform: translateY(-2px); }
.next-event small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.next-event strong { font-family: var(--font-title); font-size: 19px; font-weight: 500; line-height: 1.2; }

.date-badge {
  width: 64px; height: 68px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.date-badge b { font-family: var(--font-title); font-size: 26px; font-weight: 600; }
.date-badge span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-tight { padding: 0 0 104px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(34px, 4vw, 48px); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Catégories */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); color: var(--ink); }
.cat small { display: block; font-weight: 500; color: var(--muted); margin-top: 4px; }
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bloc association */
.panel {
  background: var(--card);
  border-radius: 32px;
  padding: 80px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
}
.panel h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 20px; }
.panel .lead { font-size: 18px; margin-bottom: 28px; }
.missions { list-style: none; margin: 0; padding: 0; }
.missions li {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.missions li:first-child { padding-top: 0; }
.missions li:last-child { border-bottom: 0; padding-bottom: 0; }
.missions .num { font-family: var(--font-title); font-size: 40px; line-height: 1; color: var(--teal); width: 60px; flex-shrink: 0; }
.missions h3 { font-size: 26px; margin-bottom: 6px; }
.missions p { color: var(--muted); }

/* Cartes adhérents */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-logo {
  height: 170px;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-logo img { max-height: 120px; width: auto; object-fit: contain; }
.member-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.member h3 { font-size: 23px; }
.member-activity { font-weight: 600; font-size: 15px; }
.member-text { font-size: 15px; color: var(--muted); flex: 1; }
.member-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Agenda (bande foncée d'accueil) */
.band-dark { background: var(--navy-dark); color: #fff; }
.band-dark .eyebrow { color: var(--teal-light); }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s;
}
.event-card:hover { transform: translateY(-3px); color: var(--ink); }
.event-visual {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--teal-tint), var(--soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-visual .date-badge { position: absolute; top: 16px; left: 16px; }
.event-visual img { width: 110px; opacity: .9; }
.badge-example {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
}
.event-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.event-type { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.event-body h3 { font-size: 24px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }

/* Agenda vide */
.events-empty {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1.5px dashed #C5D3D0;
  color: var(--ink);
}
.events-empty > div { flex: 1; }
.events-empty h3 { font-size: 26px; margin-bottom: 6px; }
.events-empty p { color: var(--muted); }
.events-empty.is-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.events-empty.is-dark p { color: #D5DEEE; }
.events-empty.is-dark .cat-icon { background: rgba(127, 208, 212, .15); color: var(--teal-light); }

/* Appel à adhérer */
.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.join h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 20px; }
.join .lead { font-size: 18px; margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.check {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pages intérieures ---------- */

.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero .lead { max-width: 720px; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.page-hero-row .search { margin-top: 0; width: 420px; flex-shrink: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.chip span { font-weight: 500; opacity: .65; margin-left: 4px; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.results-count { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.empty {
  display: none;
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}
.empty.is-visible { display: block; }
.empty h2 { font-size: 26px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* Agenda */
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.event-row .big-date {
  height: 150px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.big-date small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.big-date b { font-family: var(--font-title); font-size: 54px; font-weight: 500; }
.big-date span { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.event-row h2 { font-size: 30px; margin: 10px 0; }
.event-row p { color: var(--muted); margin-bottom: 12px; }
.event-row .metas { display: flex; flex-wrap: wrap; gap: 24px; }
.event-row .actions { display: flex; flex-direction: column; gap: 10px; }
.tags { display: flex; gap: 8px; }
.tag-teal { color: var(--teal); background: var(--teal-tint); }
.tag-ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }

.note {
  margin-top: 40px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.note h2 { font-size: 30px; margin-bottom: 8px; }
.note p { color: var(--muted); }

/* Association */
.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
}
.about p + p { margin-top: 16px; }
.about-logo { background: #fff; border-radius: 32px; padding: 48px; box-shadow: var(--shadow); }

.missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.missions-grid > div { border-top: 2px solid var(--teal); padding-top: 24px; }
.missions-grid .num { font-family: var(--font-title); font-size: 40px; color: var(--teal); line-height: 1; }
.missions-grid h3 { font-size: 26px; margin: 12px 0 8px; }
.missions-grid p { color: var(--muted); }

.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.initials { font-family: var(--font-title); font-size: 56px; color: var(--navy); }
.person h3 { font-size: 22px; }
.person .role { font-weight: 600; color: var(--teal); font-size: 15px; }
.person .company { color: var(--muted); font-size: 15px; }

.join-box {
  background: var(--navy-dark);
  color: #fff;
  border-radius: 32px;
  padding: 72px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.join-box .eyebrow { color: var(--teal-light); }
.join-box h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }
.join-box .lead { color: #D5DEEE; font-size: 18px; margin-bottom: 20px; }
.join-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.join-box li { display: flex; gap: 12px; align-items: center; }
.join-box li .icon { color: var(--teal-light); }
.price-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card .price { font-family: var(--font-title); font-size: 52px; line-height: 1; }
.price-card small { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.info {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.info small { display: block; font-size: 13px; color: var(--muted); }
.info strong { font-size: 17px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 48px; }
.form-card h2 { font-size: 30px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #C5D3D0;
  border-radius: 14px;
  padding: 14px 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, .15);
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 20px 0 24px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--green-tint); color: var(--green); font-weight: 600; }
.form-msg.is-visible { display: block; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink); color: #C9D2E0; padding: 72px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 3fr 2fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; }
.footer-brand span { font-family: var(--font-title); font-size: 28px; color: #fff; }
.site-footer h2 { font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8C98AE; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #C9D2E0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #26314F;
  font-size: 14px;
  color: #8C98AE;
}
.footer-bottom nav { display: flex; gap: 24px; }

/* ---------- Tablette ---------- */

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .members-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 56px; }
}

/* ---------- Menu mobile ---------- */

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--navy-dark);
    padding: 24px 24px 32px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
  }
  .menu-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    font-family: var(--font-title);
    font-size: 30px;
    color: #fff;
    border-radius: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; color: var(--teal-light); }
  .main-nav .nav-cta { display: flex; margin-top: 32px; }
  .menu-open { overflow: hidden; }

  .hero .container, .panel, .join, .about, .contact-grid, .join-box { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 420px; margin: 24px auto 0; }
  .next-event { left: 0; }
  .event-row { grid-template-columns: 110px 1fr; }
  .event-row .actions { grid-column: 1 / -1; flex-direction: row; }
  .page-hero-row { flex-direction: column; align-items: stretch; }
  .page-hero-row .search { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .note { flex-direction: column; align-items: flex-start; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-header .container { height: 72px; }
  .main-nav { inset: 72px 0 0 0; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }

  .hero { padding: 40px 0 64px; }
  .hero-visual { max-width: 300px; }
  .next-event { position: relative; left: auto; bottom: auto; max-width: none; margin-top: 20px; }
  .search { padding-left: 16px; }
  .search .btn { padding: 0 14px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-tight { padding-bottom: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { min-height: 120px; padding: 16px; font-size: 15px; }
  .members-grid, .events-grid, .missions-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .panel, .join-box, .form-card { padding: 32px 22px; border-radius: 24px; }
  .price-card { padding: 28px; }

  .event-row { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .event-row .big-date { height: auto; flex-direction: row; gap: 10px; padding: 14px; justify-content: flex-start; }
  .big-date b { font-size: 32px; }
  .event-row h2 { font-size: 24px; }
  .event-row .actions { flex-direction: column; }
  .events-empty { flex-direction: column; align-items: flex-start; padding: 28px 22px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================
   AMBIANCE « FUN »
   Couleurs du logo + jaune soleil, formes, stickers, mouvement.
   ========================================================= */

:root {
  --sun: #FFC94D;
  --sun-tint: #FFF1C7;
  --sun-ink: #7A5200;
  --coral: #B23A12;
  --coral-tint: #FFE1D6;
  --lilac: #6B3FA0;
  --lilac-tint: #EEE4FA;
  --navy-tint: #E1E7F7;
  --font-script: 'Caveat', 'Comic Sans MS', cursive;
}

body { background: #F6F8F4; }
main { overflow-x: clip; }

/* Couleurs par catégorie */
.c-sun   { --c: var(--sun-ink); --c-bg: var(--sun-tint); }
.c-coral { --c: var(--coral);   --c-bg: var(--coral-tint); }
.c-green { --c: var(--green);   --c-bg: var(--green-tint); }
.c-teal  { --c: var(--teal);    --c-bg: var(--teal-tint); }
.c-navy  { --c: var(--navy);    --c-bg: var(--navy-tint); }
.c-lilac { --c: var(--lilac);   --c-bg: var(--lilac-tint); }

/* Titres de section façon étiquette */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sun-tint);
  color: var(--sun-ink);
  letter-spacing: .1em;
  transform: rotate(-2deg);
}
.band-dark .eyebrow, .join-box .eyebrow { background: var(--sun); color: var(--navy-dark); }

/* Boutons qui « sautent » */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .2s, color .2s; }
.btn-primary { box-shadow: 0 5px 0 #0A1330; }
.btn-primary:hover { background: var(--teal); box-shadow: 0 7px 0 #075158; transform: translateY(-2px); }
.btn-outline { background: #fff; box-shadow: 0 5px 0 var(--navy); }
.btn-outline:hover { background: var(--sun); color: var(--navy-dark); border-color: var(--navy); box-shadow: 0 7px 0 var(--navy); transform: translateY(-2px); }
.btn-light { box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.btn-light:hover { background: var(--sun); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #0A1330; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 120px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; }
.script {
  position: relative;
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.3em;
  line-height: .8;
  color: var(--teal);
  letter-spacing: 0;
  transform: rotate(-4deg);
}
.scribble {
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  width: 100%; height: .28em;
  fill: none;
  stroke: var(--sun);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.1s .5s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.pill { background: #fff; border: 1px solid var(--line); }

.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-sun  { width: 420px; height: 420px; right: -120px; top: -140px; background: var(--sun-tint); }
.blob-teal { width: 260px; height: 260px; left: -110px; bottom: 40px; background: var(--teal-tint); }
.blob-ring { width: 120px; height: 120px; left: 46%; top: 60px; border: 3px dashed var(--teal-light); animation: spin 30s linear infinite; }

/* Collage de photos */
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.collage .photo-main {
  position: absolute;
  inset: 0 10% 18% 6%;
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.polaroid {
  background: #fff;
  padding: 10px 10px 0;
  border-radius: 6px;
  box-shadow: 0 18px 36px -18px rgba(15, 26, 54, .5);
}
.polaroid img { aspect-ratio: 4 / 3; border-radius: 2px; }
.polaroid figcaption {
  font-family: var(--font-script);
  font-size: 22px;
  text-align: center;
  color: var(--ink);
  padding: 4px 0 8px;
}
.collage .polaroid {
  position: absolute;
  width: 46%;
  right: 0;
  bottom: 2%;
  transform: rotate(5deg);
  transition: transform .3s ease;
}
.collage .polaroid:hover { transform: rotate(0deg) scale(1.04); }
.sticker-logo {
  position: absolute;
  left: 0; bottom: 4%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  padding: 3%;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
  animation: bob 5s ease-in-out infinite;
}
.spin-badge {
  position: absolute;
  top: -2%;
  right: 4%;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -12px rgba(15, 26, 54, .5);
}
.spin-badge svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.spin-badge text { font-family: var(--font-title); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; fill: var(--navy-dark); }
.spin-badge span { font-family: var(--font-title); font-weight: 800; font-size: 30px; line-height: 1; text-align: center; }
.spin-badge small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }

.next-event { left: auto; right: -8px; bottom: -40px; z-index: 2; }

/* ---------- Bandeau défilant ---------- */
.marquee {
  position: relative;
  z-index: 2;
  margin: -40px -20px 72px;
  padding: 18px 0;
  background: var(--navy);
  transform: rotate(-1.6deg);
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(15, 26, 54, .6);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: scroll 70s linear infinite;
}
.marquee-track span { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: #fff; }
.marquee-track i { font-style: normal; color: var(--sun); font-size: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Catégories colorées ---------- */
.cat {
  background: var(--c-bg);
  border: 0;
  color: var(--ink);
}
.cat .cat-icon { background: #fff; color: var(--c); width: 52px; height: 52px; border-radius: 16px; }
.cat .cat-icon .icon { width: 24px; height: 24px; }
.cat:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 16px 0 -8px var(--c); color: var(--ink); }
.cat:nth-child(even):hover { transform: translateY(-5px) rotate(1.5deg); }
.cat:hover .cat-icon { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }

/* ---------- Missions en cartes colorées ---------- */
.panel { position: relative; overflow: hidden; }
.panel::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; bottom: -70px;
  border-radius: 50%;
  background: var(--sun-tint);
}
.missions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.missions li,
.missions li:first-child,
.missions li:last-child {
  padding: 24px 26px;
  border: 0;
  border-radius: 22px;
  align-items: center;
  transition: transform .2s ease;
}
.missions li:nth-child(1) { background: var(--teal-tint); }
.missions li:nth-child(2) { background: var(--green-tint); transform: translateX(24px); }
.missions li:nth-child(3) { background: var(--sun-tint); }
.missions li:hover { transform: translateX(8px) rotate(-.6deg); }
.missions .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.missions-grid > div { border: 0; padding: 32px; border-radius: 24px; }
.missions-grid > div:nth-child(1) { background: var(--teal-tint); transform: rotate(-1deg); }
.missions-grid > div:nth-child(2) { background: var(--green-tint); transform: rotate(1deg) translateY(12px); }
.missions-grid > div:nth-child(3) { background: var(--sun-tint); transform: rotate(-1deg); }

/* ---------- Cartes adhérents ---------- */
.member { border: 0; border-radius: 28px; box-shadow: 0 1px 0 var(--line); }
.member-logo { background: var(--c-bg); border: 0; height: 180px; position: relative; }
.member-logo img {
  max-height: 130px;
  max-width: 78%;
  background: #fff;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 10px 22px -14px rgba(15, 26, 54, .5);
  transition: transform .3s ease;
}
.member .tag { background: var(--c-bg); color: var(--c); }
.member:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 18px 0 -8px var(--c); }
.members-grid .member:nth-child(even):hover { transform: translateY(-6px) rotate(.8deg); }
.member:hover .member-logo img { transform: scale(1.06) rotate(-3deg); }

/* ---------- Agenda (bande foncée ondulée) ---------- */
.wave { line-height: 0; margin-top: 40px; margin-bottom: -2px; position: relative; z-index: 1; }
.wave svg { width: 100%; height: 70px; display: block; fill: var(--navy-dark); }
.wave-bottom { margin-top: -2px; margin-bottom: 0; transform: scaleY(-1); }
.band-dark {
  position: relative;
  background-color: var(--navy-dark);
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 201, 77, .9) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 30%, rgba(127, 208, 212, .8) 0 7px, transparent 8px),
    radial-gradient(circle at 72% 84%, rgba(255, 201, 77, .7) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 78%, rgba(127, 208, 212, .6) 0 5px, transparent 6px),
    radial-gradient(circle at 52% 12%, rgba(255, 255, 255, .5) 0 3px, transparent 4px);
}
.events-empty.is-dark { border-style: dashed; border-width: 2px; }

/* ---------- Rejoindre ---------- */
.join { grid-template-columns: .9fr 1.1fr; }
.join-photo { position: relative; padding: 20px 30px 30px 10px; }
.polaroid-big { transform: rotate(-3deg); transition: transform .3s ease; }
.polaroid-big:hover { transform: rotate(0); }
.sticker {
  position: absolute;
  right: 0; top: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy-dark);
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(8deg);
  box-shadow: 0 10px 22px -12px rgba(15, 26, 54, .5);
  animation: bob 5s ease-in-out infinite;
}
.checklist li { border: 0; transition: transform .2s; }
.checklist li:hover { transform: translateX(6px); }
.checklist li:nth-child(1) .check { background: var(--teal-tint); color: var(--teal); }
.checklist li:nth-child(3) .check { background: var(--sun-tint); color: var(--sun-ink); }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -100px; top: -160px;
  border-radius: 50%;
  background: var(--sun-tint);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  right: 18%; top: 40px;
  border-radius: 50%;
  border: 3px dashed var(--teal-light);
  animation: spin 30s linear infinite;
}
.page-hero h1 { font-weight: 800; }
.chip { transition: transform .15s ease; }
.chip:hover { transform: translateY(-2px) rotate(-1deg); }
.chip[aria-pressed="true"] { background: var(--navy); box-shadow: 0 4px 0 #0A1330; }

.collage-about { max-width: 520px; margin-left: auto; width: 100%; }
.collage-about .photo-main { border-radius: 32px; inset: 0 12% 16% 0; transform: rotate(2deg); }

.person-photo { border-radius: 50% 50% 28px 28px; transition: transform .25s ease; }
.person:nth-child(4n+1) .person-photo { background: var(--teal-tint); }
.person:nth-child(4n+2) .person-photo { background: var(--sun-tint); }
.person:nth-child(4n+3) .person-photo { background: var(--green-tint); }
.person:hover .person-photo { transform: rotate(-2deg) scale(1.03); }

.event-row .big-date { background: var(--sun); color: var(--navy-dark); }
.info .cat-icon { background: var(--sun-tint); color: var(--sun-ink); }
.form-card { border: 0; box-shadow: 0 24px 50px -34px rgba(15, 26, 54, .45); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; }
.footer-script { font-family: var(--font-script); font-size: 34px; color: var(--sun); margin: -4px 0 14px; transform: rotate(-3deg); transform-origin: left; }
.credits { font-size: 12px; max-width: 560px; }
.credits a { text-decoration: underline; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.missions li.reveal.is-in:nth-child(2) { transform: translateX(24px); }

/* ---------- Adaptations écrans ---------- */
@media (max-width: 960px) {
  .hero-visual { width: 100%; max-width: 460px; }
  .join { grid-template-columns: minmax(0, 1fr); }
  .missions li:nth-child(2), .missions li.reveal.is-in:nth-child(2) { transform: none; }
  .collage-about { margin: 24px auto 0; }
}
@media (max-width: 640px) {
  .hero-visual { max-width: 340px; }
  .spin-badge { width: 92px; height: 92px; }
  .spin-badge span { font-size: 24px; }
  .spin-badge text { font-size: 10px; }
  .marquee { margin: -24px -20px 48px; padding: 14px 0; }
  .marquee-track span { font-size: 18px; }
  .blob-sun { width: 260px; height: 260px; }
  .blob-ring { display: none; }
  .sticker { font-size: 26px; padding: 10px 16px; }
  .polaroid figcaption { font-size: 19px; }
  .missions-grid > div:nth-child(2) { transform: rotate(1deg); }
  .next-event { right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   PAGES LÉGALES, CRÉDIT AIGIS WEB, BANDEAU COOKIES
   ========================================================= */

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.site-footer .link-btn { color: #C9D2E0; text-decoration: none; }
.site-footer .link-btn:hover { color: #fff; }
.heart { color: var(--sun); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
.site-footer .made-by { color: #fff; font-weight: 600; border-bottom: 2px solid var(--sun); }
.site-footer .made-by:hover { color: var(--sun); }

/* Mise en page légale */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: 22px;
  background: var(--sun-tint);
}
.legal-toc > p { font-family: var(--font-title); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--teal); text-decoration: underline; }

.legal { max-width: 780px; display: flex; flex-direction: column; gap: 20px; }
.legal section {
  background: var(--card);
  border-radius: 24px;
  padding: 32px 36px;
  scroll-margin-top: 110px;
}
.legal h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
  margin-bottom: 16px;
}
.legal h2 span {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.legal section:nth-of-type(3n+2) h2 span { background: var(--sun-tint); color: var(--sun-ink); }
.legal section:nth-of-type(3n) h2 span { background: var(--green-tint); color: var(--green); }
.legal p { color: var(--muted); }
.legal p + p, .legal p + ul, .legal ul + p, .legal .hero-actions + p, .legal p + .hero-actions { margin-top: 12px; }
.legal strong { color: var(--ink); }
.legal-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.legal mark { background: var(--sun-tint); color: var(--sun-ink); padding: 0 6px; border-radius: 6px; }
.legal-update { font-size: 14px; font-style: italic; }

.credits-list { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.credits-list li { padding: 12px 16px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 15px; }

.made-by-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--navy-dark);
  color: #fff;
}
.made-by-card p { color: #D5DEEE; }
.made-by-title { font-family: var(--font-title); font-weight: 800; font-size: 24px; color: #fff !important; margin-bottom: 4px; }
.made-by-card .btn-primary { background: var(--sun); color: var(--navy-dark); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.made-by-card .btn-primary:hover { background: #fff; color: var(--navy-dark); }

.legal-summary { padding: 28px 32px; border-radius: 24px; background: var(--teal-tint); }
.legal-summary .made-by-title { color: var(--navy) !important; }
.legal-summary ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.cookie-table { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { padding: 20px 22px; border-radius: 18px; background: var(--c-bg); }
.cookie-row p { color: var(--ink); }
.cookie-row .cookie-name { font-family: var(--font-title); font-weight: 700; font-size: 19px; color: var(--c); margin-bottom: 4px; }
.cookie-row .cookie-meta { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(440px, calc(100% - 32px));
  padding: 26px 26px 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(15, 26, 54, .45), 0 0 0 1px var(--line);
  animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.cookie-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cookie-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  animation: wiggle 2.4s ease-in-out 1s 2;
}
.cookie-icon svg { width: 28px; height: 28px; }
.cookie-banner h2 { font-size: 22px; }
.cookie-banner p { font-size: 15px; color: var(--muted); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { min-height: 46px; font-size: 15px; padding: 0 14px; }
.cookie-actions .cookie-custom { grid-column: 1 / -1; background: none; box-shadow: none; border: 0; min-height: 36px; text-decoration: underline; color: var(--navy); }
.cookie-actions .cookie-custom:hover { transform: none; background: none; color: var(--teal); box-shadow: none; }
.cookie-links { margin-top: 8px; font-size: 13px; text-align: center; }
.cookie-links a { color: var(--muted); }

.cookie-prefs { display: none; flex-direction: column; gap: 10px; margin-top: 14px; }
.cookie-banner.is-custom .cookie-prefs { display: flex; }
.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.cookie-pref small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #C5D3D0; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { background: var(--green); opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 101;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy-dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 16px 30px -14px rgba(15, 26, 54, .6);
  animation: pop-in .35s ease both;
}

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .legal section { padding: 24px 20px; }
  .legal h2 { font-size: 21px; }
  .made-by-card { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 16px; bottom: 16px; padding: 22px 20px 18px; }
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Ajustements pied de page et boutons */
.btn { white-space: nowrap; }
.footer-bottom { align-items: center; }
.footer-bottom .credits { order: 3; flex-basis: 100%; margin: 0; }
.footer-bottom nav { flex-wrap: wrap; gap: 8px 24px; }

/* =========================================================
   SPÉCIFIQUE WORDPRESS
   ========================================================= */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--sun);
  color: var(--navy-dark);
  font-weight: 600;
}

/* Barre d'administration WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 960px) { .admin-bar .main-nav { inset: calc(88px + 32px) 0 0 0; } }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .main-nav { inset: calc(88px + 46px) 0 0 0; }
}
@media (max-width: 640px) { .admin-bar .main-nav { inset: calc(72px + 46px) 0 0 0; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Logo personnalisé (Apparence > Personnaliser) */
.brand .custom-logo { width: 60px; height: 60px; object-fit: contain; }
.brand img { object-fit: contain; }

/* Menu WordPress : lien actif */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: var(--soft); color: var(--navy); font-weight: 600; }

/* Cartes adhérents : logo absent */
.member-initials {
  width: 110px; height: 110px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 38px;
  color: var(--c, var(--navy));
}
.member h3 a { color: inherit; text-decoration: none; }
.member h3 a:hover { color: var(--c, var(--teal)); }
.member-actions .btn-outline { box-shadow: 0 4px 0 var(--navy); }

/* Événement : visuel réel */
.event-visual img.event-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.event-row .event-thumb { width: 100%; height: 150px; object-fit: cover; border-radius: 18px; }
.event-row.has-thumb { grid-template-columns: 140px 220px 1fr auto; }
.events-past { margin-top: 56px; }
.events-past h2 { font-size: 30px; margin-bottom: 20px; }
.events-past .event-row { opacity: .75; }

/* Fiches (adhérent / événement / page simple) */
.single-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.single-card { background: var(--card); border-radius: 28px; padding: 40px; }
.single-logo { background: var(--c-bg, var(--soft)); border-radius: 28px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.single-logo img { max-height: 220px; width: auto; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.single-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.back-link .icon { transform: rotate(180deg); }

.entry-content { font-size: 18px; color: var(--muted); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { color: var(--ink); margin-top: 1.6em; }
.entry-content img { border-radius: 18px; height: auto; }
.entry-content a { color: var(--teal); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

/* Contact Form 7 aux couleurs du site */
.form-card .wpcf7 p { margin: 0 0 16px; }
.form-card .wpcf7 label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.form-card .wpcf7 input[type="text"],
.form-card .wpcf7 input[type="email"],
.form-card .wpcf7 input[type="tel"],
.form-card .wpcf7 input[type="url"],
.form-card .wpcf7 select,
.form-card .wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #C5D3D0;
  border-radius: 14px;
  padding: 14px 16px;
}
.form-card .wpcf7 textarea { min-height: 160px; }
.form-card .wpcf7 input:focus, .form-card .wpcf7 select:focus, .form-card .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, .15);
}
.form-card .wpcf7-acceptance label, .form-card .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.form-card .wpcf7-list-item { margin: 0; }
.form-card .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 0 #0A1330;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.form-card .wpcf7-submit:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 7px 0 #075158; }
.form-card .wpcf7-not-valid-tip { font-size: 13px; color: var(--coral); margin-top: 6px; }
.form-card .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; border: 0; background: var(--green-tint); color: var(--green); font-weight: 600; }
.form-card .wpcf7 form.invalid .wpcf7-response-output,
.form-card .wpcf7 form.failed .wpcf7-response-output { background: var(--coral-tint); color: var(--coral); }

/* Complianz aux couleurs du site */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  border-radius: 26px !important;
  font-family: var(--font-text) !important;
  box-shadow: 0 30px 60px -20px rgba(15, 26, 54, .45) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title { font-family: var(--font-title) !important; font-weight: 700 !important; }
#cmplz-cookiebanner-container .cmplz-btn { border-radius: 999px !important; font-weight: 600 !important; }
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
#cmplz-cookiebanner-container .cmplz-btn.cmplz-deny { background: #fff !important; border: 1.5px solid var(--navy) !important; color: var(--navy) !important; }

/* Pagination / 404 */
.error-404 { text-align: center; padding: 96px 0; }
.error-404 .script { font-size: 96px; }
.error-404 h1 { font-size: clamp(34px, 5vw, 56px); margin: 24px 0 12px; }

@media (max-width: 960px) {
  .single-grid { grid-template-columns: minmax(0, 1fr); }
  .single-aside { position: static; }
  .event-row.has-thumb { grid-template-columns: 110px 1fr; }
  .event-row.has-thumb .event-thumb { display: none; }
}
@media (max-width: 640px) {
  .single-card, .single-logo { padding: 24px; border-radius: 22px; }
  .event-row.has-thumb { grid-template-columns: minmax(0, 1fr); }
}
/* Les éléments masqués par les filtres restent masqués malgré leur display. */
[hidden] { display: none !important; }


/* Images du logo : jamais déformées (attributs width/height HTML) */
.sticker-logo img, .hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.event-visual > img:not(.event-photo) { width: 110px; height: auto; }
.footer-brand img { object-fit: contain; }

/* =========================================================
   v1.0.1 — corrections après mise en ligne
   ========================================================= */

/* Ancien en-tête ajouté par un extrait de code (WPCode / Snippets) : masqué,
   le thème a déjà son propre menu. */
.ucag-global-menu { display: none !important; }

/* Logos : taille fixe quelle que soit l'image envoyée */
.brand img { width: 60px !important; height: 60px !important; max-width: none; object-fit: contain; }
.footer-brand img { width: 56px !important; height: 56px !important; }
@media (max-width: 640px) { .brand img { width: 46px !important; height: 46px !important; } }

/* Bandeau Complianz : texte plus compact, titre qui ne chevauche plus le texte sur mobile */
#cmplz-cookiebanner-container .cmplz-cookiebanner { font-size: 15px !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title { font-size: 20px !important; line-height: 1.2 !important; margin: 0 !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { font-size: 14px !important; line-height: 1.55 !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body { margin-top: 8px !important; }

/* Neutralise l'ancien CSS global injecté par un extrait de code (body en Arial, fond crème, liens sans soulignement).
   Sélecteurs plus précis que « body » et « a » : le thème l'emporte quel que soit l'ordre de chargement. */
html body {
  font-family: var(--font-text);
  background: #F6F8F4;
  color: var(--ink);
}
body a { color: var(--navy); }
body .entry-content a, body .legal a, body .consent a, body .cookie-links a, body .credits a { text-decoration: underline; text-underline-offset: 2px; }

/* v1.0.3 — Menu mobile : le flou de l'en-tête (backdrop-filter) enfermait le menu
   dans la hauteur de l'en-tête. On le retire sur mobile pour que le menu occupe tout l'écran. */
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { z-index: 60; }
  .main-nav .nav-cta {
    font-family: var(--font-text);
    font-size: 16px;
    color: var(--navy);
    border-bottom: 0;
    border-radius: 999px;
    padding: 0 26px;
    min-height: 52px;
  }
  .main-nav .nav-cta:hover { color: var(--navy-dark); }
}
/* Page 404 : garder les marges latérales sur mobile */
.page-hero .container.error-404 { padding-top: 96px; padding-bottom: 96px; padding-left: 20px; padding-right: 20px; }

/* =========================================================
   v1.1 — ADHÉRENTS MIS EN AVANT
   ========================================================= */

/* Coup de projecteur */
.spotlight-section { margin-top: -8px; }
.spotlights .spotlight { display: none; }
.spotlights:not(.is-ready) .spotlight:first-child,
.spotlights .spotlight.is-active { display: grid; }
.spotlight {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--card);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(15, 26, 54, .5);
  position: relative;
}
.spotlight.is-active { animation: pop-in .5s cubic-bezier(.2, 1.2, .4, 1) both; }
.spotlight-logo {
  position: relative;
  min-height: 340px;
  padding: 48px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.spotlight-logo::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -90px; bottom: -90px;
  border-radius: 50%;
  border: 3px dashed var(--c);
  opacity: .35;
  animation: spin 40s linear infinite;
}
.spotlight-logo img {
  position: relative;
  max-width: 78%;
  max-height: 220px;
  width: auto;
  background: #fff;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 18px 36px -20px rgba(15, 26, 54, .5);
  transform: rotate(-3deg);
  transition: transform .3s ease;
}
.spotlight:hover .spotlight-logo img { transform: rotate(0) scale(1.04); }
.spotlight-logo .member-initials { position: relative; width: 160px; height: 160px; font-size: 56px; }
.spotlight-body { padding: 48px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.spotlight-label {
  font-family: var(--font-script);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-dark);
  background: var(--sun);
  padding: 8px 18px;
  border-radius: 999px;
  transform: rotate(-3deg);
  margin-bottom: 6px;
}
.spotlight .tag { background: var(--c-bg); color: var(--c); }
.spotlight h2 { font-size: clamp(32px, 4vw, 46px); }
.spotlight-text { color: var(--muted); font-size: 18px; margin-bottom: 12px; }

/* Grille tirée au sort : les cartes en trop sont masquées par le script */
[data-shuffle] .member.is-extra { display: none; }

/* Mur de logos */
.logo-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.logo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 18px;
  background: #fff;
  border-radius: 22px;
  border: 2px solid transparent;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; transition: transform .25s ease; }
.logo-tile-initials { font-family: var(--font-title); font-weight: 800; font-size: 34px; color: var(--c); }
.logo-tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: var(--c-bg);
  color: var(--c);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: translateY(100%);
  transition: transform .2s ease;
}
.logo-tile:hover, .logo-tile:focus-visible { transform: translateY(-4px) rotate(-1.5deg); border-color: var(--c); box-shadow: 0 14px 0 -8px var(--c); }
.logo-wall li:nth-child(even) .logo-tile:hover { transform: translateY(-4px) rotate(1.5deg); }
.logo-tile:hover .logo-tile-name, .logo-tile:focus-visible .logo-tile-name { transform: none; }
.logo-tile:hover img { transform: scale(.9) translateY(-8px); }

@media (max-width: 960px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .spotlight-logo { min-height: 220px; padding: 32px; }
  .spotlight-logo img { max-height: 150px; }
  .spotlight-body { padding: 32px; }
}
@media (max-width: 640px) {
  .spotlight { border-radius: 26px; }
  .spotlight-body { padding: 26px 22px 28px; }
  .spotlight-label { font-size: 26px; }
  .spotlight-text { font-size: 16px; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logo-tile { padding: 12px; border-radius: 16px; }
  /* Sur téléphone (pas de survol) : le nom reste visible sous le logo */
  .logo-tile { aspect-ratio: auto; flex-direction: column; gap: 8px; padding: 12px 8px 0; }
  .logo-tile img { height: 56px; }
  .logo-tile-name { position: static; transform: none; width: calc(100% + 16px); margin: 0 -8px; font-size: 11px; padding: 6px 4px; }
  .logo-tile:hover img { transform: none; }
}
@media (max-width: 640px) {
  .logo-wall li { display: flex; }
  .logo-tile { flex: 1; justify-content: flex-start; }
  .logo-tile-name { margin-top: auto; }
}
