/* =========================================================
   SavoRun — feuille de style du site
   Couleurs et polices reprises du flyer et des présentations
   ========================================================= */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0D2E4F;      /* bleu marine (titres, fond du hero) */
  --blue: #035B9B;      /* bleu du bandeau date / lieu */
  --brick: #BA4E20;     /* orange brique (accent principal) */
  --orange: #D07B2B;    /* orange clair (devise, détails) */
  --sand: #FAF4EA;      /* sable très clair (sections alternées) */
  --sand-2: #F1E4CC;
  --ink: #0D2E4F;
  --text: #22364B;
  --muted: #56677A;
  --line: #DCE3EA;
  --white: #FFFFFF;
  --ok: #1E6B3A;
  --radius: 10px;
  --wrap: 1120px;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #E6EDF4; }
.section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: .6em; }
.section--navy .eyebrow { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--brick); background: var(--brick); color: #fff; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: #9E3F16; border-color: #9E3F16; color: #fff; }
.btn--ghost { background: transparent; color: var(--brick); }
.btn--ghost:hover { background: var(--brick); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand-2); border-color: var(--sand-2); color: var(--navy); }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 3px solid var(--brick); backdrop-filter: blur(6px); }
.site-header .wrap { max-width: 1360px; display: flex; align-items: center; gap: 16px; min-height: 76px; }
.site-header .brand { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 54px; height: 54px; }
.brand-name { font-family: var(--display); font-size: 1.4rem; line-height: 1; letter-spacing: .02em; }
.brand-tag { display: block; white-space: nowrap; font-size: .78rem; font-style: italic; color: var(--brick); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 10px 11px; border-radius: 8px; }
.nav a:hover { color: var(--brick); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--brick); box-shadow: inset 0 -3px 0 var(--brick); border-radius: 0; }
.nav .btn { color: #fff; padding: 10px 18px; min-height: 44px; margin-left: 6px; border-radius: 999px; box-shadow: none; }
.nav .btn:hover { color: #fff; background: #9E3F16; }
.nav .btn--ghost { color: var(--brick); }
.nav .btn--ghost:hover { color: #fff; }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--sand-2); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 3px solid var(--brick); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(13,46,79,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brick); padding-left: 14px; }
  .nav .btn { margin: 12px 0 0; border-bottom: 2px solid var(--brick); }
}

/* ---------- Hero accueil (repris du flyer) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border-bottom: 8px solid var(--brick); }
.hero-visual { position: relative; min-height: 560px; background: var(--navy) url("../img/illustration-crescendo.jpg") center bottom / cover no-repeat; }
.hero-visual blockquote { position: absolute; inset: 0 0 auto 0; margin: 0; padding: 44px 32px 0; text-align: center; color: #fff; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
.hero-text { padding: 48px clamp(20px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 6px; }
.hero-logo { width: 170px; height: 170px; margin-bottom: 8px; }
.assoc-mark { color: var(--brick); line-height: 1.1; margin-bottom: 14px; }
.assoc-mark span { display: block; font-weight: 700; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; }
.assoc-mark strong { display: block; color: var(--brick); font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .02em; }
.hero-text h1 { margin-bottom: .3em; }
.hero-text .lead { max-width: 30em; }
.hero-date { font-family: var(--display); color: var(--blue); font-size: 1.25rem; margin: 4px 0 18px; }
.hero .btn-row { justify-content: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; order: 2; }
  .hero-text { padding-top: 36px; padding-bottom: 36px; }
}

/* ---------- Bandeau événement (bleu, 3 cases comme le flyer) ---------- */
.event-band { background: var(--blue); color: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 4px; overflow: hidden; }
.event-band > div { padding: 22px 18px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid #3A84BD; }
.event-band > div:last-child { border-right: 0; }
.event-band .big { font-family: var(--display); font-size: 1.4rem; line-height: 1.15; }
.event-band .huge { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.event-band small { font-size: 1rem; font-weight: 600; }
@media (max-width: 640px) {
  .event-band { grid-template-columns: 1fr; }
  .event-band > div { border-right: 0; border-bottom: 1px solid #3A84BD; }
}

.programme { border: 2px solid var(--brick); border-radius: 8px; padding: 22px 26px; margin-top: 22px; }
.programme h3 { font-family: var(--display); font-weight: 400; text-align: center; font-size: 1.4rem; }
.programme ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.programme li { display: flex; gap: 10px; }
.programme li b { color: var(--brick); }
@media (max-width: 640px) { .programme ol { grid-template-columns: 1fr; } }

/* ---------- Bandeau de page (pages intérieures) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0B2747 0%, #123E6E 100%); color: #DCE6F0; padding: 64px 0 56px; border-bottom: 8px solid var(--brick); }
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero p { max-width: 38em; font-size: 1.15rem; margin: 0; }
.page-hero .eyebrow { color: var(--orange); }
.page-hero .wrap { position: relative; z-index: 1; }
.bars { position: absolute; right: 0; bottom: 0; height: 100%; width: min(46%, 520px); opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .bars { opacity: .28; width: 80%; } .page-hero { padding: 40px 0 36px; } .section { padding: 52px 0; } }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.card .num { font-family: var(--display); color: var(--brick); font-size: 1.1rem; }
.card h3 { margin-bottom: .2em; }
.card p { margin: 0; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.card--top { border-top: 5px solid var(--brick); }

.fact { border-top: 4px solid var(--brick); padding-top: 14px; }
.fact .label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact .value { font-family: var(--display); color: var(--navy); font-size: 1.3rem; line-height: 1.2; margin: 4px 0; }
.fact p { margin: 0; font-size: .98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: .88rem; color: var(--muted); padding-top: 8px; }
figure { margin: 0; }

.callout { background: var(--sand); border-radius: var(--radius); padding: 22px 26px; }
.callout--blue { background: #E8F1F8; }
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--brick); }

/* ---------- Crescendo : les manches ---------- */
.stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 28px; }
.step { display: grid; grid-template-rows: 230px auto auto; gap: 10px; }
.step .bar { align-self: end; }
.step .bar { background: var(--brick); border-radius: 4px 4px 0 0; position: relative; }
.step:nth-child(1) .bar { height: 70px; background: #DDA27A; }
.step:nth-child(2) .bar { height: 110px; background: #D07B2B; }
.step:nth-child(3) .bar { height: 150px; background: #C4622A; }
.step:nth-child(4) .bar { height: 190px; background: #BA4E20; }
.step:nth-child(5) .bar { height: 230px; background: #8F3713; }
.step .bar span { position: absolute; left: 0; right: 0; top: 12px; text-align: center; color: #fff; font-family: var(--display); font-size: 1.05rem; padding: 0 4px; }
.step:nth-child(1) .bar span { color: var(--navy); }
.step h3 { font-size: 1.02rem; margin: 0; }
.step p { font-size: .94rem; margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .stairs { grid-template-columns: 1fr; gap: 10px; }
  .step { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; }
  .step .bar { grid-row: 1 / 3; align-self: center; }
  .step h3 { align-self: end; }
  .step p { align-self: start; }
  .step .bar { flex: 0 0 auto; height: 52px !important; border-radius: 4px; }
  .step:nth-child(1) .bar { width: 48px; } .step:nth-child(2) .bar { width: 60px; } .step:nth-child(3) .bar { width: 72px; } .step:nth-child(4) .bar { width: 84px; } .step:nth-child(5) .bar { width: 96px; }
  .step .bar span { top: 50%; transform: translateY(-50%); font-size: .95rem; }
}

/* ---------- Agenda ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; background: var(--sand-2); }
.timeline li { position: relative; padding: 0 0 34px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 8px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--brick); }
.timeline li.done .dot { background: var(--brick); }
.timeline li.done .dot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.timeline li.highlight .dot { border-color: var(--blue); box-shadow: 0 0 0 6px #D6E6F3; }
.timeline .when { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.timeline li.highlight .when { color: var(--blue); }
.timeline h3 { margin: 2px 0 4px; font-size: 1.25rem; }
.timeline p { margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); margin-left: 6px; vertical-align: middle; letter-spacing: 0; text-transform: none; }
.tag--done { background: #E3F0E6; color: var(--ok); }
.tag--next { background: #D6E6F3; color: var(--blue); }

/* ---------- Charte ---------- */
.charter-intro { border-left: 0; background: var(--sand); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.charter-intro p:last-child { margin: 0; }
.charter-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.charter-toc a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); }
.charter-toc a:hover { border-color: var(--brick); color: var(--brick); }
.article { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.article h2 { font-size: 1.45rem; display: flex; gap: 14px; align-items: baseline; }
.article h2 .n { color: var(--brick); font-size: 1.05rem; flex: 0 0 auto; }
.article p:last-child { margin-bottom: 0; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.req { color: var(--brick); }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #C6D1DC; border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px #CFE2F2; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 10px; }
.choice, .field .choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid #C6D1DC; border-radius: 8px; cursor: pointer; background: #fff; font-weight: 400 !important; color: var(--text) !important; margin: 0 !important; }
.choice:hover { border-color: var(--orange); }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brick); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--brick); background: #FFF8F2; }
.choice b { display: block; color: var(--navy); }
.choice small { display: block; color: var(--muted); font-size: .9rem; }
.choices--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .choices--compact { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brick); flex: 0 0 auto; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brick); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: 0 10px 30px rgba(13,46,79,.06); }
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert--ok { background: #E3F0E6; color: var(--ok); border: 1px solid #B8D8C1; }
.alert--err { background: #FBE9E3; color: #8F3713; border: 1px solid #EFC3B2; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.success { text-align: center; padding: 20px 0; }
.success svg { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 12px; }

/* ---------- Bandeau « Ouvert à toutes et à tous » ---------- */
.open-band { background: var(--brick); color: #fff; padding: 34px 0; }
.open-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.open-band strong { display: block; color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.open-band span { font-size: 1.08rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D6E3; padding: 54px 0 28px; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand b { font-family: var(--display); font-weight: 400; color: #fff; font-size: 1.4rem; display: block; }
.footer-brand i { color: var(--orange); }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A4B6E; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: #9FB3C8; }

/* ---------- Mentions légales / texte long ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }

/* ---------- Admin ---------- */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.admin { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
table.admin th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; white-space: nowrap; }
table.admin td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.admin tr:nth-child(even) td { background: #F7F9FB; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tabs a { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }
.tabs a.active { border-color: var(--brick); background: var(--brick); color: #fff; }
.link-btn { background: none; border: 0; color: #8F3713; font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 0; }

@media print {
  .site-header, .site-footer, .open-band, .nav-toggle { display: none; }
  .page-hero { background: #fff; color: #000; border: 0; padding: 0 0 20px; }
  .page-hero h1 { color: var(--navy); }
  .bars { display: none; }
}
