/* =========================================================================
   5e Groupe scout de Coaticook — feuille de style principale
   Palette tirée du logo : bleu marine, vert forêt, vert tendre, bleu rivière
   ========================================================================= */

:root {
    /* Couleurs de marque */
    --navy:        #1B1B8F;
    --navy-dark:   #12125F;
    --navy-soft:   #2E2EB4;
    --green:       #4CAE6A;
    --green-dark:  #35864F;
    --green-light: #8CC26B;
    --sky:         #5BC2E7;
    --sky-dark:    #2A9BC4;
    --sand:        #FFD466;

    /* Neutres */
    --ink:         #16202B;
    --ink-soft:    #4A5867;
    --line:        #DDE4EC;
    --bg:          #FFFFFF;
    --bg-tint:     #F4F8FB;
    --bg-tint-2:   #EDF4F8;

    /* Typographie */
    --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --font-body:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Mesures */
    --wrap:   1180px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow:    0 2px 10px rgba(18, 18, 95, .07);
    --shadow-md: 0 10px 30px rgba(18, 18, 95, .12);
    --shadow-lg: 0 22px 50px rgba(18, 18, 95, .18);
    --header-h: 92px;
}

/* ------------------------------- Base ---------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: rgba(27, 27, 143, .35); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.2em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
    outline: 3px solid var(--sky-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

.muted { color: var(--ink-soft); font-weight: 400; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: .8rem 1.2rem;
    border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-title); font-weight: 700; font-size: .98rem;
    padding: .78em 1.5em; border-radius: 999px; border: 2px solid transparent;
    background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .10);
    line-height: 1.25;
}
.btn:hover { color: #fff; background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(18, 18, 95, .28); }
.btn:active { transform: translateY(0); }

.btn--green { background: var(--green); }
.btn--green:hover { background: var(--green-dark); }
.btn--sky   { background: var(--sky-dark); }
.btn--sky:hover { background: #1F86AB; }
.btn--ghost { background: transparent; color: var(--navy); border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #fff; color: var(--green-dark); }
.btn--sm { font-size: .88rem; padding: .55em 1.1em; }
.btn--lg { font-size: 1.08rem; padding: .9em 1.9em; }
.btn--block { display: flex; width: 100%; }

/* Pastille clignotante du bouton « Inscription » */
.btn__dot {
    width: .55em; height: .55em; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .8);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
    70%  { box-shadow: 0 0 0 .55em rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ------------------------- Bandeau d'annonce --------------------------- */

.alert-banner {
    background: var(--sand);
    color: #4A3600;
    font-weight: 600;
    font-size: .95rem;
}
.alert-banner__inner { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; }
.alert-banner p { margin: 0; }
.alert-banner a { color: #4A3600; }
.alert-banner__icon {
    flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: #4A3600; color: var(--sand);
    display: grid; place-items: center; font-family: var(--font-title); font-weight: 800;
}

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

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(18, 18, 95, .04);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: var(--header-h);
    width: min(100% - 2.5rem, 1640px); margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand__logo { width: 66px; height: 66px; object-fit: contain; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--font-title); font-weight: 800; color: var(--navy);
    font-size: 1.06rem; line-height: 1.15; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tagline {
    font-size: .82rem; color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Navigation */
.nav__list {
    list-style: none; display: flex; align-items: center; gap: .15rem;
    margin: 0; padding: 0;
}
.nav__item { position: relative; }
.nav__link {
    display: block; padding: .6rem .78rem; border-radius: 10px;
    font-family: var(--font-title); font-weight: 700; font-size: .93rem;
    color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__item:hover > .nav__link { background: var(--bg-tint); color: var(--navy); }
.nav__link.is-active { color: var(--green-dark); }
.nav__link.is-active::after {
    content: ""; display: block; height: 3px; border-radius: 2px;
    background: var(--green); margin-top: .28rem;
}

.nav__item--has-children > .nav__link { padding-right: 1.5rem; }
.nav__item--has-children > .nav__link::before {
    content: ""; position: absolute; right: .72rem; top: 1.25rem;
    width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity: .65;
}

.nav__expand { display: none; }

.nav__sub {
    position: absolute; top: calc(100% + .4rem); left: 0; z-index: 20;
    min-width: 260px; list-style: none; margin: 0; padding: .45rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item--has-children:hover .nav__sub,
.nav__item--has-children:focus-within .nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a {
    display: block; padding: .55rem .8rem; border-radius: 9px;
    font-size: .93rem; font-weight: 600; color: var(--navy); text-decoration: none;
}
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--bg-tint); color: var(--green-dark); }

.nav__item--cta { margin-left: .5rem; }

.nav-toggle {
    display: none; align-items: center; gap: .55rem;
    background: var(--navy); color: #fff; border: 0; border-radius: 999px;
    padding: .6rem 1.05rem; font-family: var(--font-title); font-weight: 700; cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------- Hero ---------------------------------- */

.hero { position: relative; background: var(--navy-dark); color: #fff; overflow: hidden; }

.carousel { position: relative; }
.carousel__viewport { position: relative; height: clamp(380px, 58vh, 620px); }

.carousel__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}
.carousel__slide.is-current { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(18, 18, 95, .88) 0%, rgba(18, 18, 95, .62) 42%, rgba(18, 18, 95, .18) 100%);
}

.carousel__caption {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; justify-content: center;
    width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
    max-width: min(100% - 2.5rem, 640px);
    padding-bottom: 3rem;
}
.carousel__slide.is-current .carousel__caption > * { animation: slide-in .7s .1s both ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.carousel__caption h2 {
    color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.15rem);
    margin-bottom: .45em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.carousel__caption p {
    font-size: clamp(1rem, .95rem + .35vw, 1.2rem); color: rgba(255, 255, 255, .93);
    margin-bottom: 1.6em; max-width: 46ch;
}
.carousel__eyebrow {
    display: inline-flex; align-items: center; gap: .5em; align-self: flex-start;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
    color: #fff; padding: .35em .95em; border-radius: 999px;
    font-family: var(--font-title); font-weight: 700; font-size: .78rem;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.carousel__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.carousel__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
    color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background-color .15s ease;
}
.carousel__nav:hover { background: rgba(255, 255, 255, .32); }
.carousel__nav--prev { left: 1rem; }
.carousel__nav--next { right: 1rem; }
.carousel__nav svg { width: 18px; height: 18px; }

.carousel__dots {
    position: absolute; bottom: 1.4rem; left: 0; right: 0; z-index: 4;
    display: flex; justify-content: center; gap: .5rem; padding: 0; margin: 0; list-style: none;
}
.carousel__dot {
    width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .45); border: 0; transition: all .2s ease;
}
.carousel__dot.is-current { background: #fff; width: 30px; border-radius: 999px; }

/* Bandeau « période d'inscription » sous le hero */
.reg-strip {
    background: linear-gradient(100deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
}
.reg-strip__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 1.6rem 0;
}
.reg-strip h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
.reg-strip p { margin: 0; color: rgba(255, 255, 255, .95); max-width: 62ch; }
.reg-strip__deadline {
    display: inline-block; margin-top: .6rem; font-weight: 700;
    background: rgba(0, 0, 0, .18); padding: .25em .8em; border-radius: 999px; font-size: .9rem;
}

/* Bandeau « événement à la une », même gabarit que .reg-strip mais teinte navy
   pour rester distinct visuellement quand les deux sont affichés ensemble. */
.event-strip {
    background: linear-gradient(100deg, var(--navy) 0%, var(--navy-dark) 100%);
}

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

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, .88); }

.section__head { margin-bottom: 2.5rem; max-width: 68ch; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }
.section--navy .section__head p { color: rgba(255, 255, 255, .82); }

.eyebrow {
    display: block; font-family: var(--font-title); font-weight: 700;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--sky); }

.section__more { margin-top: 2.4rem; display: flex; justify-content: center; }

/* Grilles */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ------------------------------- Cartes --------------------------------- */

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-tint-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body > h3 { margin-bottom: .5rem; }
.card__body > p { color: var(--ink-soft); }
.card__foot { margin-top: auto; padding-top: 1.2rem; }

.card__badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    background: #fff; color: var(--navy); border-radius: 999px;
    padding: .3em .9em; font-family: var(--font-title); font-weight: 700; font-size: .8rem;
    box-shadow: var(--shadow);
}

/* Cartes d'unité */
.unit-card { border: 0; box-shadow: var(--shadow-md); }
.unit-card__media { aspect-ratio: 4 / 3; }
.unit-card__age {
    position: absolute; bottom: 0; left: 0; z-index: 2;
    background: var(--unit-color, var(--navy)); color: #fff;
    padding: .45em 1.1em; border-radius: 0 var(--radius) 0 0;
    font-family: var(--font-title); font-weight: 800; font-size: .92rem;
}
.unit-card__body { border-top: 5px solid var(--unit-color, var(--navy)); }
.unit-card h3 { color: var(--navy); }
.unit-card__tagline { font-size: .95rem; color: var(--ink-soft); font-style: italic; margin-bottom: .9rem; }
.unit-card__meta {
    list-style: none; padding: 0; margin: 0 0 1.2rem;
    font-size: .93rem; color: var(--ink-soft); display: grid; gap: .35rem;
}
.unit-card__meta strong { color: var(--ink); font-weight: 600; }

/* Cartes d'actualité */
.news-card__date {
    font-family: var(--font-title); font-weight: 700; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark);
    margin-bottom: .5rem; display: block;
}
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; }
.stat {
    text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.section:not(.section--navy) .stat { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.stat__value {
    display: block; font-family: var(--font-title); font-weight: 800;
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; color: var(--sky);
}
.section:not(.section--navy) .stat__value { color: var(--green); }
.stat__label { font-size: .95rem; letter-spacing: .02em; }

/* Encadrés d'information */
.callout {
    background: var(--bg-tint); border-left: 5px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem;
    margin: 1.8rem 0;
}
.callout--navy { border-left-color: var(--navy); }
.callout--sky  { border-left-color: var(--sky); }
.callout h3 { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }

/* --------------------------- En-tête de page ---------------------------- */

.page-hero {
    background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
    color: #fff; padding: clamp(2.6rem, 2rem + 3vw, 4.5rem) 0;
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; right: -8%; bottom: -55%;
    width: 46rem; height: 46rem; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(91, 194, 231, .30), transparent 62%);
    pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 58rem; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { font-size: clamp(1.02rem, .98rem + .35vw, 1.22rem); color: rgba(255, 255, 255, .88); margin-bottom: 0; max-width: 62ch; }
.page-hero--unit { background: linear-gradient(115deg, var(--navy-dark) 0%, var(--unit-color, var(--navy)) 130%); }

/* En-tête de page accompagné d'une photo */
.page-hero--photo .page-hero__inner {
    max-width: none; display: grid; align-items: center;
    gap: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
}
@media (min-width: 860px) {
    .page-hero--photo .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.page-hero--photo .page-hero__photo { justify-self: center; max-width: 22rem; }

/* Photo encadrée, réutilisable dans les pages */
.photo-frame { margin: 0; }
.photo-frame img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.photo-frame figcaption {
    margin-top: .75rem; font-size: .88rem; line-height: 1.45; color: var(--ink-soft);
}
.photo-frame--light img { box-shadow: var(--shadow-lg); }
.photo-frame--light figcaption { color: rgba(255, 255, 255, .78); }

/* Bande photo + texte au fil d'une page */
.photo-band { display: grid; align-items: center; gap: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); }
@media (min-width: 860px) {
    .photo-band { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
.photo-band .photo-frame { justify-self: center; max-width: 21rem; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; }
.breadcrumb li { color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .92); }

/* ------------------------------ Contenu --------------------------------- */

.prose { font-size: 1.08rem; }
.prose > p { margin-bottom: 1.3em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.8em 0; padding: 1.2rem 1.6rem;
    border-left: 5px solid var(--green); background: var(--bg-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.1rem; font-style: italic; color: var(--navy);
}

.quote-block {
    background: var(--navy); color: #fff; border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 1.4rem + 1.6vw, 3rem);
    font-family: var(--font-title); font-weight: 600;
    font-size: clamp(1.15rem, 1.05rem + .7vw, 1.6rem); line-height: 1.45;
    position: relative; overflow: hidden;
}
.quote-block::before {
    content: "“"; position: absolute; top: -1.4rem; left: 1rem;
    font-size: 9rem; opacity: .12; font-family: var(--font-title); line-height: 1;
}
.quote-block p { position: relative; z-index: 2; margin: 0; }

/* ---------------------------- Chronologie ------------------------------- */

.timeline { position: relative; margin: 2.5rem 0 0; padding-left: 2.2rem; }
.timeline::before {
    content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem;
    width: 3px; border-radius: 2px;
    background: linear-gradient(180deg, var(--sky), var(--green), var(--navy));
}
.timeline__item { position: relative; padding-bottom: 1.6rem; }
.timeline__item::before {
    content: ""; position: absolute; left: -2.2rem; top: .55rem;
    width: 13px; height: 13px; border-radius: 50%;
    background: #fff; border: 3px solid var(--green);
}
.timeline__item:last-child { padding-bottom: 0; }

/* ----------------------------- Calendrier ------------------------------- */

.cal-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem;
    padding: 1.2rem 1.4rem; background: var(--bg-tint);
    border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 2.5rem;
}
.cal-filters__group { display: flex; flex-direction: column; gap: .35rem; }
.cal-filters label { font-family: var(--font-title); font-weight: 700; font-size: .82rem; color: var(--navy); }
.cal-filters__spacer { margin-left: auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4em;
    padding: .42em 1em; border-radius: 999px; font-size: .88rem; font-weight: 600;
    background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); text-decoration: none;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__dot { width: .6em; height: .6em; border-radius: 50%; background: currentColor; }

.month { margin-bottom: 3rem; }
.month__title {
    display: flex; align-items: baseline; gap: .9rem;
    font-size: 1.35rem; padding-bottom: .7rem; margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--line);
}
.month__count { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }

.event {
    display: grid; grid-template-columns: 82px 1fr; gap: 1.3rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    border-left: 5px solid var(--event-color, var(--navy));
    transition: box-shadow .18s ease, transform .18s ease;
}
.event:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.event--highlight { background: linear-gradient(100deg, #fff 60%, rgba(140, 194, 107, .12) 100%); }
.event--cancelled, .event--conge { background: linear-gradient(100deg, #fff 55%, rgba(196, 60, 60, .09) 100%); }
.event--cancelled .event__title, .event--conge .event__title { color: #A32020; }
.event--cancelled .event__title { text-decoration: line-through; }

.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; }
.event__day { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.85rem; line-height: 1; color: var(--navy); }
.event__weekday { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-top: .25rem; }
.event__month { display: block; font-size: .76rem; color: var(--ink-soft); }

.event__title { font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; color: var(--navy); margin: 0 0 .3rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .88rem; color: var(--ink-soft); margin-bottom: .45rem; }
.event__desc { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.tag {
    display: inline-flex; align-items: center; gap: .35em;
    font-family: var(--font-title); font-weight: 700; font-size: .74rem;
    letter-spacing: .05em; text-transform: uppercase;
    padding: .22em .7em; border-radius: 999px;
    background: var(--tag-bg, var(--bg-tint-2)); color: var(--tag-fg, var(--navy));
}
.tag--unit { background: var(--unit-color, var(--navy)); color: #fff; }
.tag--cancelled { background: #FBE4E4; color: #A32020; }

.empty-state {
    text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--line);
    border-radius: var(--radius-lg); color: var(--ink-soft); background: var(--bg-tint);
}
.empty-state h3 { color: var(--ink-soft); }

/* ------------------------------- Équipe ---------------------------------- */

.team-group { margin-bottom: 3.5rem; }
.team-group__title {
    display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem;
}
.team-group__title::before {
    content: ""; width: 1.1rem; height: 1.1rem; border-radius: 5px;
    background: var(--group-color, var(--navy)); flex: 0 0 auto;
}

.member {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.8rem 1.3rem; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member__photo {
    width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 1.1rem; border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--group-color, var(--navy));
}
.member__name { font-family: var(--font-title); font-weight: 800; color: var(--navy); font-size: 1.12rem; margin: 0 0 .15rem; }
.member__totem { font-style: italic; color: var(--green-dark); font-size: .92rem; margin: 0 0 .5rem; }
.member__role {
    display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .78rem;
    letter-spacing: .05em; text-transform: uppercase; color: #fff;
    background: var(--group-color, var(--navy)); padding: .25em .85em; border-radius: 999px;
    margin-bottom: .9rem;
}
.member__desc { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.member__email { display: inline-block; margin-top: .8rem; font-size: .9rem; }

/* ---------------------------- Inscriptions ------------------------------ */

.fee-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; }
.fee-table th, .fee-table td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th {
    background: var(--navy); color: #fff; font-family: var(--font-title); font-size: .85rem;
    letter-spacing: .05em; text-transform: uppercase;
}
.fee-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.fee-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.fee-table tbody tr:hover { background: var(--bg-tint); }
.fee-table .fee-amount { font-family: var(--font-title); font-weight: 800; color: var(--green-dark); font-size: 1.15rem; white-space: nowrap; }
.fee-table .fee-unit { font-weight: 700; color: var(--navy); }

.reg-box {
    background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem);
    text-align: center; box-shadow: var(--shadow-lg);
}
.reg-box h2 { color: #fff; }
.reg-box p { color: rgba(255, 255, 255, .93); max-width: 55ch; margin-inline: auto; }
.reg-box--closed { background: var(--bg-tint); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.reg-box--closed h2 { color: var(--navy); }
.reg-box--closed p { color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.steps li {
    counter-increment: step; position: relative; padding-left: 3.6rem;
    min-height: 2.6rem; display: flex; flex-direction: column; justify-content: center;
}
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--navy); color: #fff; display: grid; place-items: center;
    font-family: var(--font-title); font-weight: 800; font-size: 1.1rem;
}
.steps strong { color: var(--navy); font-family: var(--font-title); }

/* --------------------------------- FAQ ---------------------------------- */

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .8rem; overflow: hidden; }
.faq summary {
    padding: 1.1rem 3rem 1.1rem 1.4rem; cursor: pointer; position: relative;
    font-family: var(--font-title); font-weight: 700; color: var(--navy); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 1.4rem; top: 1.45rem;
    width: .55rem; height: .55rem; border-right: 2.5px solid var(--green);
    border-bottom: 2.5px solid var(--green); transform: rotate(45deg);
    transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq summary:hover { background: var(--bg-tint); }
.faq__answer { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ----------------------------- Formulaires ------------------------------ */

.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > label { font-family: var(--font-title); font-weight: 700; font-size: .9rem; color: var(--navy); }
.field__hint { font-size: .85rem; color: var(--ink-soft); }
.field__error { font-size: .87rem; color: #B02A2A; font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="date"], input[type="time"],
input[type="search"], select, textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 27, 143, .14);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B02A2A; }
textarea { min-height: 9rem; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%231B1B8F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px; padding-right: 2.4rem; }

.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .96rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .28rem; accent-color: var(--green); flex: 0 0 auto; }

.honeypot { position: absolute; left: -9999px; }

.flash {
    padding: 1rem 1.3rem; border-radius: var(--radius); margin: 1.5rem 0 0;
    font-weight: 600; border-left: 5px solid;
}
.flash--success { background: #E9F7EE; border-color: var(--green); color: #1E5B33; }
.flash--error   { background: #FCEDED; border-color: #C43C3C; color: #8A1F1F; }
.flash--info    { background: #E9F4FB; border-color: var(--sky-dark); color: #12506B; }

/* --------------------------- Bande d'appel ------------------------------ */

.cta-strip {
    background: linear-gradient(100deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff; padding: 2.6rem 0;
}
.cta-strip--volunteer { background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 100%); }
.cta-strip__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
}
.cta-strip h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.3rem, 1.15rem + .9vw, 1.9rem); }
.cta-strip p { margin: 0; color: rgba(255, 255, 255, .86); max-width: 60ch; }

/* ------------------------- Bande des commanditaires ---------------------- */

.sponsors-strip { background: var(--bg-tint); padding: 2.2rem 0; border-top: 1px solid var(--line); }
.sponsors-strip__label {
    display: block; text-align: center; font-family: var(--font-title); font-weight: 700;
    font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 1.3rem;
}
.sponsors-strip__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.2rem 2.8rem;
}
.sponsors-strip__list img {
    max-height: 56px; max-width: 160px; width: auto; height: auto;
    filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease;
}
.sponsors-strip__list a:hover img,
.sponsors-strip__list a:focus-visible img { filter: none; opacity: 1; }

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

.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .82); padding: 3.5rem 0 0; font-size: .96rem; }
.site-footer__grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(170px, 1fr));
    padding-bottom: 3rem;
}
.site-footer h2 {
    color: #fff; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid rgba(255, 255, 255, .14);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.site-footer__brand img { background: #fff; border-radius: 14px; padding: .5rem; margin-bottom: 1rem; }
.site-footer__name { font-family: var(--font-title); font-weight: 800; color: #fff; margin-bottom: .4rem; }
.site-footer__note { font-size: .88rem; color: rgba(255, 255, 255, .6); }

.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem !important; }
.social a {
    display: inline-block; padding: .4em .95em; border-radius: 999px;
    background: rgba(255, 255, 255, .1); font-size: .88rem; font-weight: 600;
}
.social a:hover { background: var(--sky); color: var(--navy-dark); text-decoration: none; }

.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .86rem; color: rgba(255, 255, 255, .55);
}
.site-footer__bottom p { margin: 0; }

/* ------------------------------ Réactivité ------------------------------ */

@media (max-width: 1700px) {
    :root { --header-h: 76px; }

    .nav-toggle { display: inline-flex; }

    .nav {
        position: fixed; inset: var(--header-h) 0 0 auto;
        width: min(360px, 88vw); background: #fff;
        border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform .25s ease;
        overflow-y: auto; padding: 1rem 1rem 3rem;
    }
    .nav.is-open { transform: translateX(0); }

    .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__link { padding: .9rem .6rem; font-size: 1rem; }
    .nav__link.is-active::after { display: none; }
    .nav__link.is-active { color: var(--green-dark); }
    .nav__item--has-children > .nav__link::before { display: none; }

    .nav__expand {
        display: block; position: absolute; right: .3rem; top: .45rem;
        width: 2.6rem; height: 2.6rem; border: 0; background: transparent; cursor: pointer;
    }
    .nav__expand::before {
        content: ""; position: absolute; left: 50%; top: 50%;
        width: .5rem; height: .5rem; margin: -.35rem 0 0 -.25rem;
        border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
        transform: rotate(45deg); transition: transform .2s ease;
    }
    .nav__expand[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: -.1rem; }

    .nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; box-shadow: none; padding: 0 0 .6rem .8rem; min-width: 0;
        display: none;
    }
    .nav__sub.is-open { display: block; }

    .nav__item--cta { border-bottom: 0; margin: 1.2rem 0 0; }
    .nav__item--cta .btn { width: 100%; font-size: 1rem; padding: .8em 1.2em; }

    .carousel__nav { display: none; }
    .carousel__caption { padding-bottom: 4rem; }
    .event { grid-template-columns: 64px 1fr; gap: .9rem; padding: 1rem; }
    .event__date { padding-right: .7rem; }
    .event__day { font-size: 1.5rem; }
}

@media (max-width: 560px) {
    body { font-size: 1rem; }
    .brand__logo { width: 52px; height: 52px; }
    .brand__name { font-size: .92rem; max-width: 12ch; }
    .cal-filters { flex-direction: column; align-items: stretch; }
    .cal-filters__spacer { margin-left: 0; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-strip__inner { flex-direction: column; align-items: flex-start; }
    .cta-strip .btn { width: 100%; }
}

/* -------------------------- Préférences système -------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .carousel__slide { transition: none; }
}

@media print {
    .site-header, .site-footer, .cta-strip, .nav-toggle, .carousel__nav,
    .carousel__dots, .cal-filters, .alert-banner, .skip-link { display: none !important; }
    body { font-size: 11pt; color: #000; }
    .page-hero { background: none !important; color: #000; padding: 0 0 1rem; }
    .page-hero h1, .page-hero p { color: #000; }
    .event { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
