/* =====================================================================
   AUC Saint-Cyr — feuille de style principale
   Palette tirée du logo : bleu nuit du blason, vert du pré, rouge du
   ruban, blond du labrador et du chalet.
   ===================================================================== */

@font-face { font-family: "Bitter"; src: url("../fonts/bitter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --night: #14304e;
    --night-deep: #0d2238;
    --grass: #3d6b35;
    --ribbon: #b3262e;
    --blond: #d4a24c;
    --mist: #f2f5f0;
    --paper: #ffffff;
    --ink: #1c2733;
    --ink-soft: #4a5866;
    --line: #d6ddd3;

    --act-ecole: #b07716;
    --act-education: #3d6b35;
    --act-obeissance: #2b5c8a;
    --act-pistage: #8a5a2b;
    --act-agility: #b3262e;
    --act-concours: #6b3f8f;
    --act-vacances: #66717c;
    --act-autre: #2a7f7a;

    --font-head: "Bitter", Georgia, "Times New Roman", serif;
    --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.5rem;
    --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

    --radius: 10px;
    --radius-small: 6px;
    --wrap: 72rem;
    --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--blond);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--mist);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--night); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ribbon); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--night); margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p, ul, ol, dl { margin: 0 0 1em; }
code { font-size: 0.95em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-small); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 46rem; }
.wrap.wide { width: min(100% - 2rem, 84rem); }
.section { padding-block: clamp(2rem, 5vw, 4rem); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 2.75rem; padding: 0.55rem 1.15rem;
    font: 700 1rem/1.2 var(--font-body);
    border: 2px solid transparent; border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ribbon); color: #fff; }
.btn-primary:hover { background: #8f1c23; color: #fff; }
.btn-light { background: rgb(255 255 255 / 0.92); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--ribbon); }
.btn-ghost { background: transparent; color: var(--night); border-color: currentColor; }
.btn-ghost:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn-danger { background: transparent; color: var(--ribbon); border-color: var(--ribbon); }
.btn-danger:hover { background: var(--ribbon); color: #fff; }
.btn-small { min-height: 2.25rem; padding: 0.35rem 0.8rem; font-size: var(--step--1); }
.btn-icon { padding: 0; width: 2.75rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--night);
    color: #fff;
    border-bottom: 4px solid var(--blond);
}
.bar { display: flex; align-items: center; gap: 1rem; width: min(100% - 2rem, 84rem); margin-inline: auto; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; }
.brand-text span { font-size: 0.8rem; opacity: 0.8; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.main-nav a, .main-nav summary {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.7rem; border-radius: var(--radius-small);
    color: #fff; text-decoration: none; font-weight: 700; font-size: 0.97rem; cursor: pointer;
}
.main-nav a:hover, .main-nav summary:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.main-nav a[aria-current="page"], .main-nav details.is-current > summary { box-shadow: inset 0 -3px 0 var(--blond); }
.main-nav summary { list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: 0.15rem; }
.main-nav details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.has-sub { position: relative; }
.has-sub ul {
    position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 14rem;
    background: var(--paper); border-radius: var(--radius); padding: 0.4rem;
    box-shadow: 0 12px 30px rgb(13 34 56 / 0.25);
}
.has-sub ul a { color: var(--ink); font-weight: 400; }
.has-sub ul a:hover { background: var(--mist); color: var(--night); }
.has-sub ul a[aria-current="page"] { box-shadow: none; background: var(--mist); font-weight: 700; }
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--c, var(--ink-soft)); flex: none; }

.nav-toggle { display: none; align-items: center; gap: 0.4rem; background: none; border: 2px solid rgb(255 255 255 / 0.5); color: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; font: 700 0.95rem var(--font-body); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
    .js .nav-toggle { display: inline-flex; }
    .js .main-nav { display: none; }
    .js .main-nav.is-open { display: block; }
    .bar { flex-wrap: wrap; }
    .main-nav { flex-basis: 100%; padding-bottom: 1rem; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .main-nav a, .main-nav summary { padding: 0.75rem 0.6rem; font-size: 1.05rem; }
    .has-sub ul { position: static; box-shadow: none; background: rgb(255 255 255 / 0.06); margin: 0.2rem 0 0.4rem; }
    .has-sub ul a { color: #fff; }
    .has-sub ul a:hover, .has-sub ul a[aria-current="page"] { background: rgb(255 255 255 / 0.12); color: #fff; }
    .brand-text span { display: none; }
}

/* ---------- Accueil : photo du chalet ---------- */
.hero { position: relative; min-height: min(78vh, 44rem); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero picture, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(13 34 56 / 0) 30%, rgb(13 34 56 / 0.82) 100%), linear-gradient(90deg, rgb(13 34 56 / 0.55), rgb(13 34 56 / 0) 60%); }
.hero-inner { width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto; padding-block: 3rem; display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 2.5rem); }
.hero-badge { width: clamp(110px, 16vw, 200px); filter: drop-shadow(0 10px 22px rgb(0 0 0 / 0.45)); }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 0.3em; text-shadow: 0 2px 18px rgb(0 0 0 / 0.35); }
.hero-motto { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; color: var(--blond); margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
@media (max-width: 640px) {
    .hero { min-height: 34rem; }
    .hero-inner { flex-direction: column; align-items: flex-start; padding-block: 2rem; }
}

/* ---------- Accueil : présentation ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.intro-text { max-width: 40rem; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--night); }
.pledge {
    display: flex; gap: 0.8rem; align-items: flex-start;
    margin: 0; padding: 1.25rem 1.4rem;
    background: var(--paper); border-left: 6px solid var(--grass); border-radius: var(--radius-small);
    font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); line-height: 1.35; color: var(--night);
}
.pledge .icon { color: var(--grass); width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; }
.prose .pledge { font-size: var(--step-0); margin-block: 1.5rem; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* ---------- La semaine au club (élément signature) ---------- */
.week { background: var(--night); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.week-head h2 { color: #fff; margin: 0; }
.week-head p { margin: 0; color: rgb(255 255 255 / 0.8); }
.week-head a { color: var(--blond); }
.week-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.week-day { border-top: 3px solid var(--blond); padding-top: 0.9rem; }
.week-day h3 { color: var(--blond); font-size: var(--step-2); margin-bottom: 0.8rem; }
.week-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.slot {
    display: grid; grid-template-columns: 5.6rem 1fr; align-items: baseline; gap: 0.5rem;
    padding: 0.65rem 0.8rem; border-radius: var(--radius-small);
    background: var(--paper); color: var(--ink); text-decoration: none;
    border-left: 6px solid var(--c);
}
.slot:hover { color: var(--ink); background: color-mix(in srgb, var(--c) 12%, #fff); }
.slot time { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--c) 85%, #000); font-size: 0.95rem; }
.slot span { font-weight: 700; }
@media (max-width: 960px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } }
@media (max-width: 520px) { .week-grid { grid-template-columns: 1fr; } }

/* Couleurs d'activité */
.act-ecole { --c: var(--act-ecole); }
.act-education { --c: var(--act-education); }
.act-obeissance { --c: var(--act-obeissance); }
.act-pistage { --c: var(--act-pistage); }
.act-agility { --c: var(--act-agility); }
.act-concours { --c: var(--act-concours); }
.act-vacances { --c: var(--act-vacances); }
.act-autre { --c: var(--act-autre); }

/* ---------- Actualités ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.news-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.news-card a:hover { border-color: var(--night); color: var(--ink); }
.news-card a:hover strong { color: var(--ribbon); }
.news-media { aspect-ratio: 4 / 3; background: var(--mist); display: grid; place-items: center; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-media.is-doc { color: var(--night); gap: 0.3rem; align-content: center; font-weight: 700; }
.news-media .icon-doc { width: 3rem; height: 3rem; }
.news-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.15rem 1.25rem; }
.news-body time { font-size: var(--step--1); color: var(--ink-soft); }
.news-body strong { font-family: var(--font-head); font-size: var(--step-1); line-height: 1.25; color: var(--night); }
.news-excerpt { color: var(--ink-soft); font-size: 0.97rem; }
.empty { padding: 1.5rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* ---------- En-tête de page ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); position: relative; }
.page-head[class*="act-"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.page-head h1 { margin-bottom: 0.25em; }
.page-head p { margin: 0; font-size: var(--step-1); color: var(--ink-soft); max-width: 46rem; }
.page-head .back { font-size: var(--step-0); margin-bottom: 1rem; }
.back a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }

/* ---------- Contenu ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.with-toc { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose { max-width: 44rem; }
.wrap.prose, .wrap.narrow.prose { padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: 0.35em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--grass); }
.note { color: var(--ink-soft); font-size: var(--step--1); }
.pts { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); margin-left: 0.4rem; }
.figure { border-radius: var(--radius); margin-block: 1.5rem; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.5rem; }
.figure-pair img { width: 100%; height: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.levels dt, .roles dt { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); color: var(--night); margin-top: 1.1rem; }
.levels dt span { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); margin-left: 0.4rem; }
.levels dd, .roles dd { margin: 0.2rem 0 0; }
.table-simple { width: 100%; border-collapse: collapse; margin-block: 1rem 1.5rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.table-simple caption { text-align: left; color: var(--ink-soft); font-size: var(--step--1); padding-bottom: 0.4rem; }
.table-simple th, .table-simple td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
.table-simple thead th { background: var(--night); color: #fff; font-weight: 700; }
.table-simple tbody th { font-family: var(--font-head); color: var(--night); }
@media (max-width: 900px) {
    .with-aside, .with-toc { grid-template-columns: 1fr; }
    .toc { position: static; }
}
@media (max-width: 520px) { .figure-pair { grid-template-columns: 1fr; } }

/* Sommaire */
.toc { position: sticky; top: 6rem; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -3px; border-left: 3px solid transparent; text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--night); border-left-color: var(--blond); }

/* Horaires (encart des activités) */
.hours { position: sticky; top: 6rem; background: var(--paper); border-radius: var(--radius); padding: 1.4rem; border-top: 6px solid var(--c, var(--night)); border: 1px solid var(--line); border-top-width: 6px; border-top-color: var(--c, var(--night)); }
.hours h2 { font-size: var(--step-2); }
.hours-season { font-weight: 700; color: var(--night); margin-bottom: 0.4rem; font-size: 0.97rem; }
.hours-block { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.hours-block:not(.is-now) { color: var(--ink-soft); }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0 0 0.6rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-family: var(--font-head); font-weight: 600; }
.hours .btn { width: 100%; margin-top: 0.8rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--grass) 15%, #fff); color: var(--grass); vertical-align: 0.1em; margin-left: 0.3rem; }
@media (max-width: 900px) { .hours { position: static; } }

/* Trombinoscope */
.people { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.people li { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--paper); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line); margin-bottom: 0.6rem; }
.people strong { font-family: var(--font-head); color: var(--night); line-height: 1.25; }
.people span { color: var(--ink-soft); font-size: var(--step--1); }

/* Adhésion */
.price-card { position: sticky; top: 6rem; background: var(--night); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.price-card h2 { color: var(--blond); font-size: var(--step-2); }
.price { margin: 1rem 0 0; font-size: 1rem; }
.price strong { font-family: var(--font-head); font-size: 2.2rem; color: #fff; display: block; line-height: 1.1; }
.price span { display: block; color: rgb(255 255 255 / 0.85); }
.price-sub { font-weight: 700; color: var(--blond); padding-bottom: 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.2); }
.price-card .note { color: rgb(255 255 255 / 0.75); margin-top: 1rem; margin-bottom: 0; }
@media (max-width: 900px) { .price-card { position: static; } }
.downloads { list-style: none; padding: 0 !important; display: grid; gap: 0.5rem; }
.downloads a { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); text-decoration: none; color: var(--ink); }
.downloads a:hover { border-color: var(--night); color: var(--night); }
.downloads .icon { color: var(--ribbon); }
.downloads span:first-of-type { font-weight: 700; flex: 1; }
.downloads small { color: var(--ink-soft); }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); margin-bottom: 0.6rem; }
.faq summary { padding: 0.9rem 1.1rem; font-weight: 700; cursor: pointer; color: var(--night); }
.faq > :not(summary) { padding: 0 1.1rem; }
.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.8rem; }

/* Croquettes */
.prose-wide { padding-block: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2rem; align-items: center; background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.partner-logo img { max-height: 13rem; margin-inline: auto; object-fit: contain; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 720px) { .partner { grid-template-columns: 1fr; } .partner-logo { order: -1; } }

/* Article */
.article-image img { border-radius: var(--radius); margin-bottom: 1.5rem; max-height: 70vh; width: auto; }

/* ---------- Agenda ---------- */
.cal-nav { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.cal-title { margin: 0; min-width: 11ch; text-align: center; font-size: var(--step-3); }
.cal-today { margin-left: auto; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-bottom: 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.calendar { background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; gap: 1px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-head div { background: var(--night); color: #fff; padding: 0.55rem; text-align: center; font-weight: 700; }
.cal-head abbr { text-decoration: none; }
.cal-cell { background: var(--paper); min-height: 5.75rem; padding: 0.45rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cal-cell.is-out { background: var(--mist); }
.cal-cell.is-past { background: #fafbf9; }
.cal-cell.is-past .cal-event { opacity: 0.6; }
.cal-cell.is-today { box-shadow: inset 0 0 0 3px var(--blond); }
.cal-date { display: flex; align-items: center; gap: 0.3rem; }
.cal-day-name { display: none; }
.cal-num { font-family: var(--font-head); font-weight: 700; color: var(--night); }
.is-today .cal-num { background: var(--blond); color: var(--night); border-radius: 999px; padding: 0 0.45rem; }
.cal-add { margin-left: auto; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--ink-soft); }
.cal-add:hover { background: var(--mist); color: var(--ribbon); }
.cal-event { display: flex; flex-direction: column; padding: 0.3rem 0.45rem; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 0.82rem; line-height: 1.3; }
.cal-event:hover { background: color-mix(in srgb, var(--c) 20%, #fff); color: var(--ink); }
.cal-event strong { color: color-mix(in srgb, var(--c) 78%, #000); }
.cal-event .count { color: var(--ink-soft); }
@media (max-width: 820px) {
    /* Sur mobile : liste des jours qui ont des séances */
    .calendar { background: none; border: 0; gap: 0.6rem; }
    .cal-head { display: none !important; }
    .cal-row { display: contents; }
    .cal-cell.is-out, .cal-cell.is-empty:not(.is-today) { display: none; }
    .cal-cell { min-height: 0; border-radius: var(--radius-small); border: 1px solid var(--line); padding: 0.75rem; }
    .cal-day-name { display: inline; font-weight: 700; color: var(--ink-soft); }
    .cal-event { font-size: 0.95rem; padding: 0.5rem 0.7rem; }
    .cal-today { display: none; }
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.form > .btn { justify-self: start; }
.form > .btn-block { justify-self: stretch; }
.field { display: grid; gap: 0.35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; color: var(--night); padding: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.1rem; }
.field-small { max-width: 11rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input:not([type="radio"], [type="checkbox"], [type="hidden"], [type="file"]), select, textarea {
    width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem;
    font: inherit; color: var(--ink); background: var(--paper);
    border: 2px solid #b5c0b2; border-radius: var(--radius-small);
}
input:focus, select:focus, textarea:focus { border-color: var(--night); box-shadow: var(--focus); outline: none; }
input[type="file"] { font: inherit; padding: 0.5rem 0; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.input-suffix { display: flex; align-items: center; gap: 0.5rem; }
.input-suffix input { max-width: 6rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.count-line { font-weight: 700; color: var(--grass); }

/* Messages */
.notice { padding: 0.9rem 1.1rem; border-radius: var(--radius-small); border-left: 6px solid; background: var(--paper); margin: 1rem 0; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { padding-left: 1.2rem; margin-top: 0.3rem; }
.notice-success { border-color: var(--grass); background: #edf5ea; }
.notice-error { border-color: var(--ribbon); background: #fbeceb; }
.notice-info { border-color: var(--night); background: #eaf0f6; }
.notice-warning { border-color: var(--blond); background: #fbf3e2; }

/* Erreur */
.error-page { text-align: center; }
.error-code { font-family: var(--font-head); font-size: 5rem; font-weight: 700; color: var(--blond); line-height: 1; margin-bottom: 0.5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night-deep); color: rgb(255 255 255 / 0.85); padding-top: 2.5rem; margin-top: clamp(2rem, 6vw, 4rem); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blond); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 2rem; }
.footer-grid p a { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 1.2rem; }
.footer-name { font-family: var(--font-head); font-size: var(--step-2); color: #fff; font-weight: 700; margin-bottom: 0.4rem; }
.footer-title { font-weight: 700; color: var(--blond); }
.partners { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.partners img { height: 56px; width: auto; border-radius: 4px; background: #fff; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; font-size: var(--step--1); }
.footer-legal p { margin: 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Accessibilité / impression ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .site-header, .site-footer, .nav-toggle, .hero-actions, .btn, .cal-nav a { display: none !important; }
    body { background: #fff; }
    .week { background: #fff; color: #000; }
}
