/* =========================================================
   APE Charles de Gaulle (Wasquehal) - feuille de style
   Couleurs et polices : modifier les variables ci-dessous.
   ========================================================= */

@font-face { font-family: "Amatic SC"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/amatic-sc-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #26304D;
  --muted: #4E5670;
  --bg: #FFFDFB;
  --white: #FFFFFF;
  --line: #EEF0F6;
  --line-2: #C9D3EA;

  --blue: #3F5F9E;        /* texte bleu (contraste AA) */
  --blue-mid: #5779B8;
  --blue-soft: #E6ECF7;
  --blue-softer: #EEF2FA;
  --pink: #A8346C;        /* couleur d'action principale */
  --pink-soft: #F8E1EC;
  --orange: #B4521F;
  --orange-soft: #FCE6D8;
  --sand: #FBF3EE;

  --display: "Amatic SC", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --wrap: 1200px;
  --header-h: 89px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
a:hover { color: #8C2A59; }
:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.bg-blue { background: var(--blue-softer); }
.bg-sand { background: var(--sand); }
.bg-pink { background: var(--pink-soft); }

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

/* ---------- Titres ---------- */
.h-section { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 5vw, 68px); line-height: 1; }
.lead { margin-top: 12px; max-width: 760px; color: var(--muted); }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.h-card { font-size: 22px; font-weight: 800; line-height: 1.3; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; font-family: inherit; font-size: inherit; cursor: pointer; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #8C2A59; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--blue-mid); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #324C7F; color: #fff; }

/* ---------- En-tête fixe ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; transition: padding 0.2s ease; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-home { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-home:hover { color: var(--ink); }
.brand-logo { width: 60px; height: 60px; transition: width 0.2s ease, height 0.2s ease; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; white-space: nowrap; }
.brand-ville { height: 40px; width: auto; transition: height 0.2s ease; }
.site-header.is-compact .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-compact .brand-logo { width: 46px; height: 46px; }
.site-header.is-compact .brand-ville { height: 32px; }

.nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--blue-softer); }
.nav a.nav-cta { background: var(--pink); color: #fff; padding-left: 16px; padding-right: 16px; }
.nav a.nav-cta:hover { background: #8C2A59; }
.menu-toggle { display: none; }

/* ---------- Accueil ---------- */
.hero { overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-text .eyebrow { color: var(--blue); margin-bottom: 8px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 8vw, 112px); line-height: 0.95; }
.hero-text > p:not(.eyebrow) { margin-top: 20px; max-width: 560px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { flex: 1 1 300px; display: flex; justify-content: center; position: relative; }
.hero-visual img { width: min(400px, 78vw); border-radius: 50%; box-shadow: 0 20px 50px rgba(87, 121, 184, 0.18); position: relative; }
.balloon { position: absolute; border-radius: 50%; }
.balloon-1 { width: 70px; height: 84px; background: var(--orange-soft); left: 4%; top: 6%; }
.balloon-2 { width: 46px; height: 56px; background: var(--pink-soft); right: 6%; bottom: 4%; }

/* ---------- Cartes génériques ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.card { border-radius: var(--radius); padding: 28px; }
.card-white { background: #fff; }
.card-blue { background: var(--blue-soft); }
.card-pink { background: var(--pink-soft); }
.card-orange { background: var(--orange-soft); }
.card-title { font-family: var(--display); font-size: 40px; line-height: 1; }
.card p { margin-top: 10px; }
.t-blue { color: var(--blue); }
.t-pink { color: var(--pink); }
.t-orange { color: var(--orange); }

/* Où va l'argent */
.money { margin-top: 24px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; }
.money-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 48px; margin-top: 10px; color: var(--muted); }
.money-cols > * { flex: 1 1 320px; }
.money ul { list-style: none; padding: 0; margin-top: 4px; }
.note { margin-top: 20px; padding: 14px 18px; background: var(--blue-softer); border-radius: 14px; font-size: 15px; }

/* ---------- Comment aider ---------- */
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step { background: #fff; border-radius: 20px; padding: 24px; }
.step-num { font-family: var(--display); font-size: 44px; line-height: 1; }
.step h3 { margin-top: 8px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.step-highlight { background: var(--pink); color: #fff; }
.step-highlight p { color: #fff; }
.step-highlight .step-num { color: var(--orange-soft); }

.bureau { margin-top: 40px; background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; }
/* Ordinateur : 2 lignes de 4, chaque binôme en colonne (poste en haut, adjoint dessous).
   Mobile : 2 colonnes, chaque binôme sur une ligne. */
.bureau-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 24px 12px; max-width: 880px; margin: 24px auto 0; }
.bureau-pair { display: contents; }
.member { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.3; }
@media (max-width: 760px) {
  .bureau-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
}
.avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.av-blue { background: var(--blue-soft); color: var(--blue); }
.av-pink { background: var(--pink-soft); color: var(--pink); }
.av-orange { background: var(--orange-soft); color: var(--orange); }
.member .role { font-size: 14px; color: var(--muted); }

.agenda { margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 32px; }
.agenda .small { margin-top: 6px; }
.agenda-frame { margin-top: 16px; }
.agenda-frame iframe { width: 100%; height: 420px; border: 0; border-radius: 14px; }

/* ---------- École ---------- */
.ecole { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.ecole-text { flex: 1 1 340px; }
.ecole-text p { margin-top: 12px; color: var(--muted); }
.ecole-stats { flex: 1 1 460px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat-big { font-family: var(--display); font-size: 72px; line-height: 1; margin-top: 4px; }
.stat-small { margin-top: 4px; font-size: 15px; color: var(--muted); }
.ecole-stats .small { grid-column: 1 / -1; font-size: 13px; }

/* ---------- Événements ---------- */
.events { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 64px; }
.events-text { flex: 1 1 420px; }
.events-text .lead { margin-bottom: 20px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; background: #fff; border-radius: 999px; font-weight: 600; }
.fb-card { flex: 1 1 340px; min-width: 0; max-width: 540px; background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 16px 40px rgba(87, 121, 184, 0.12); }
.fb-card .small { margin: 6px 0 16px; font-size: 15px; }
.fb-feed { min-height: 120px; border: 1px solid #E1E5EF; border-radius: 18px; overflow: hidden; background: #F7F8FB; display: flex; justify-content: center; }
.fb-feed .fb-page-embed { width: 100%; max-width: 100%; min-width: 0; }
.fb-feed .tac_activate, .agenda-frame .tac_activate { width: 100% !important; max-width: 100%; box-sizing: border-box; white-space: normal !important; }
.fb-card .btn { margin-top: 16px; }

/* Encadrés "autoriser" de tarteaucitron (fil Facebook, agenda) */
.tac_activate { background: #F7F8FB !important; color: var(--ink) !important; font-family: var(--body) !important; padding: 24px !important; border-radius: 14px; }
.tac_activate .tac_float { color: var(--muted) !important; font-size: 14px !important; }
.tac_activate .tac_float strong { color: var(--ink) !important; }
.tac_activate .tarteaucitronAllow { background: var(--blue) !important; color: #fff !important; border-radius: 999px !important; padding: 10px 20px !important; font-weight: 800 !important; font-family: var(--body) !important; }

/* Bandeau de consentement : aux couleurs du site, "Tout accepter" et "Tout refuser" au même niveau */
#tarteaucitronRoot #tarteaucitronAlertBig { background: #fff !important; color: var(--ink) !important; font-family: var(--body) !important; border-top: 1px solid var(--line) !important; box-shadow: 0 -10px 30px rgba(38, 48, 77, 0.10) !important; padding: 16px 20px !important; box-sizing: border-box !important; width: 100% !important; left: 0 !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert { color: var(--ink) !important; font-family: var(--body) !important; font-size: 15px !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2 { background: var(--blue) !important; color: #fff !important; border-radius: 999px !important; padding: 10px 20px !important; font-family: var(--body) !important; font-size: 15px !important; font-weight: 800 !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl { background: #fff !important; color: var(--ink) !important; border: 2px solid var(--line-2) !important; border-radius: 999px !important; padding: 8px 18px !important; font-family: var(--body) !important; font-size: 15px !important; font-weight: 600 !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.contact-grid .eyebrow { color: var(--pink); }
.contact-value { display: inline-block; margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--pink); }
address.contact-value { font-style: normal; font-weight: 600; }
.newsletter { margin-top: 16px; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-start; }
.newsletter-text { flex: 1 1 300px; }
.newsletter-text p { margin-top: 8px; color: var(--muted); }
.newsletter-form { flex: 2 1 380px; min-width: 0; }
.sender-form-field:empty::before { content: "Formulaire d'inscription bientôt disponible."; display: block; padding: 16px; border: 2px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 15px; }
.rgpd { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; }
.footer-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-partner img { height: 56px; width: auto; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.footer-legal a { color: var(--ink); font-weight: 600; }

/* ---------- Page mentions légales ---------- */
.legal { max-width: 820px; }
.legal h1 { font-family: var(--display); font-size: clamp(52px, 6vw, 76px); line-height: 1; }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 800; }
.legal p, .legal ul { margin-top: 12px; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--ink); }

/* =========================================================
   Mobile et tablette
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand, .brand-home { gap: 10px; }
  .brand-logo, .site-header.is-compact .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 24px; }
  .brand-ville, .site-header.is-compact .brand-ville { height: 30px; }
  .site-header.is-compact .header-inner { padding-top: 10px; padding-bottom: 10px; }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--blue-softer); color: var(--ink); cursor: pointer; }
  .menu-toggle svg { width: 24px; height: 24px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(38, 48, 77, 0.08); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav a.nav-cta { text-align: center; margin-top: 4px; }
}

@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand, .brand-home { gap: 8px; }
  .brand-logo, .site-header.is-compact .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 21px; }
  .brand-ville, .site-header.is-compact .brand-ville { height: 26px; }
  .card, .money, .bureau, .agenda, .newsletter, .fb-card { padding: 22px; }
}
