/* ==========================================================================
   Identité visuelle (§ 4.10) — palette extraite du logo de l'association :
   rouge banderole, orange doré (roue), turquoise (ballon), encre (contours),
   bois, crème. Ton : affiche de fête de village, festif et populaire.
   Budget mobile < 300 ko, WCAG AA (§ 9.3, § 9.6).
   ========================================================================== */

@font-face {
    font-family: "Lilita One";
    src: url("../fonts/lilita-one-latin.5723d8d34a74.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-latin.52d04440a9fa.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --rouge: #c1272d;
    --rouge-vif: #df2218;
    --orange: #e79126;
    --orange-doux: #f3b95f;
    --turquoise: #6fc5c3;
    --turquoise-fonce: #2e7c7a;
    --encre: #221a1e;
    --encre-doux: #4a3f3a;
    --bois: #553427;
    --creme: #fdf6e9;
    --creme-fonce: #f7e8c9;
    --blanc: #fffdf8;
    --or-pale: #fbe7af;

    --police-display: "Lilita One", "Arial Black", sans-serif;
    --police-texte: "Plus Jakarta Sans", system-ui, sans-serif;

    --rayon-l: 1.75rem;
    --rayon-m: 1.25rem;
    --ombre-douce: 0 18px 45px -18px rgba(85, 52, 39, 0.28);
    --ombre-flottante: 0 30px 70px -30px rgba(85, 52, 39, 0.38);
    --transition-fluide: 0.55s cubic-bezier(0.32, 0.72, 0, 1);

    /* Damier drapeau à carreaux */
    --damier: repeating-conic-gradient(var(--encre) 0% 25%, var(--creme) 0% 50%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--police-texte);
    background: var(--creme);
    color: var(--encre);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

a { color: var(--rouge); }
a:hover { color: var(--bois); }

:focus-visible {
    outline: 3px solid var(--turquoise-fonce);
    outline-offset: 3px;
    border-radius: 4px;
}

.lien-evitement {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    background: var(--encre);
    color: var(--creme);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    z-index: 60;
}
.lien-evitement:focus { left: 0.5rem; color: var(--creme); }

/* --- Grain discret, fixe (texture papier) ------------------------------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Bandeau d'actualité (§ 4.1) ---------------------------------------- */
.bandeau-actu {
    background: var(--rouge);
    color: var(--blanc);
    text-align: center;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* --- Bande damier -------------------------------------------------------- */
.damier {
    height: 12px;
    background: var(--damier);
    background-size: 24px 24px;
    opacity: 0.9;
}

/* --- En-tête ------------------------------------------------------------- */
.entete {
    position: relative;
    z-index: 50;
    background: var(--blanc);
    border-bottom: 1px solid rgba(85, 52, 39, 0.12);
}
.entete-inner {
    /* 80rem et non 72rem comme le reste du site : avec 14 entrées, le menu
       français ne tenait plus sur deux lignes dans les ~700 px laissés
       entre le logo et le bouton de langue (trois lignes à toutes les
       largeurs, constaté le 24/09/2026). 8rem de plus lui rendent ~130 px,
       soit deux lignes dès 1280 px, même connecté (Agenda, Suivi). */
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.entete-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--encre);
    flex-shrink: 0;
}
.entete-logo img {
    border-radius: 50%;
    box-shadow: 0 6px 18px -8px rgba(85, 52, 39, 0.55);
    transition: transform var(--transition-fluide);
}
.entete-logo:hover img { transform: scale(1.06) rotate(30deg); }
.entete-titre {
    font-family: var(--police-display);
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
}
.entete-titre small {
    display: block;
    font-family: var(--police-texte);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--turquoise-fonce);
}

/* Outils d'en-tête : sélecteur de langue + burger */
.entete-outils { display: flex; align-items: center; gap: 0.6rem; order: 3; }
.selecteur-langue {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--encre);
    border: 1.5px solid rgba(85, 52, 39, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    transition: background var(--transition-fluide), transform var(--transition-fluide);
}
.selecteur-langue:hover { background: var(--creme-fonce); color: var(--encre); transform: translateY(-1px); }
.selecteur-langue svg { width: 21px; height: 14px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(34, 26, 30, 0.15); }

.nav-principale {
    display: flex;
    gap: 0.15rem 0.2rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    order: 2;
    margin-left: auto;
}
.nav-principale a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--encre-doux);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background var(--transition-fluide), color var(--transition-fluide);
}
.nav-principale a:hover { background: var(--creme-fonce); color: var(--encre); }

/* Burger mobile → X */
.burger {
    display: none;
    background: none;
    border: 1px solid rgba(85, 52, 39, 0.18);
    border-radius: 999px;
    width: 46px;
    height: 46px;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--encre);
    transition: transform var(--transition-fluide), opacity 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 47.9rem) {
    .entete-logo { flex-shrink: 1; min-width: 0; }
    .entete-logo img { width: 56px; height: 56px; }
    .entete-titre { font-size: 1.1rem; white-space: normal; }
    .entete-titre small { letter-spacing: 0.1em; font-size: 0.6rem; white-space: normal; }
    .entete-inner { padding: 0.6rem 0.8rem; gap: 0.5rem; }
    .entete-outils { gap: 0.4rem; }
    .burger { width: 42px; height: 42px; }
    .burger span { left: 10px; right: 10px; }
    .burger span:nth-child(1) { top: 14px; }
    .burger span:nth-child(2) { top: 20px; }
    .burger span:nth-child(3) { top: 26px; }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 63.9rem) {
    .selecteur-langue { padding: 0.3rem 0.6rem; }
    .burger { display: block; }
    .nav-principale {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--blanc);
        padding: 0.8rem 1.1rem 1.4rem;
        border-bottom: 1px solid rgba(85, 52, 39, 0.12);
        box-shadow: var(--ombre-flottante);
        display: none;
    }
    .nav-principale.ouverte { display: flex; }
    .nav-principale a {
        font-size: 1.15rem;
        padding: 0.8rem 1rem;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .nav-principale.ouverte a { opacity: 1; transform: none; }
    .nav-principale.ouverte a:nth-child(1) { transition-delay: 0.05s; }
    .nav-principale.ouverte a:nth-child(2) { transition-delay: 0.1s; }
    .nav-principale.ouverte a:nth-child(3) { transition-delay: 0.15s; }
    .nav-principale.ouverte a:nth-child(4) { transition-delay: 0.2s; }
    .nav-principale.ouverte a:nth-child(5) { transition-delay: 0.25s; }
    .nav-principale.ouverte a:nth-child(6) { transition-delay: 0.3s; }
}

/* --- Héros --------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.1rem 4rem;
    background:
        radial-gradient(38rem 24rem at 85% -10%, rgba(111, 197, 195, 0.22), transparent 65%),
        radial-gradient(30rem 20rem at -10% 30%, rgba(231, 145, 38, 0.16), transparent 60%),
        linear-gradient(180deg, var(--blanc), var(--creme));
}
.hero-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 48rem) {
    .hero { padding: 5.5rem 1.5rem 6rem; }
    .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.pastille {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.5rem;
    border: 1px solid rgba(85, 52, 39, 0.22);
    background: rgba(255, 253, 248, 0.75);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bois);
}
.pastille::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rouge);
}

.hero h1 {
    font-family: var(--police-display);
    font-weight: 400;
    font-size: clamp(2.15rem, 8.5vw, 4.6rem);
    line-height: 0.98;
    margin: 1rem 0 0.5rem;
    letter-spacing: 0.01em;
    text-wrap: balance;
}
.hero h1 .accent { color: var(--rouge); }
.hero h1 .millesime { color: var(--turquoise-fonce); }

.hero-lede {
    font-size: clamp(1.02rem, 2.5vw, 1.18rem);
    color: var(--encre-doux);
    max-width: 34rem;
    margin: 0.75rem 0 1.5rem;
}
.hero-lede p + p { margin-top: 0.5rem; }   /* 05/10/2026 : l'appel à photos sur sa propre ligne */

.hero-visuel { text-align: center; position: relative; }
.hero-carte {
    display: inline-block;
    background: rgba(255, 253, 248, 0.7);
    border: 1px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-l);
    padding: 0.55rem;
    box-shadow: var(--ombre-flottante);
    transform: rotate(2deg);
    transition: transform var(--transition-fluide);
}
.hero-carte:hover { transform: rotate(0.5deg) scale(1.015); }
.hero-carte img {
    display: block;
    border-radius: calc(var(--rayon-l) - 0.55rem);
    /* +20 % le 10/09/2026 (demande de Jacques) ; sur téléphone c'est la
       largeur d'écran qui borne, l'affiche y était déjà au maximum utile */
    max-width: min(25.2rem, 78vw);
    height: auto;
}

/* Compte à rebours */
.compte-a-rebours {
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.compte-a-rebours li {
    background: var(--blanc);
    border: 1px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-m);
    box-shadow: var(--ombre-douce);
    padding: 0.55rem 0.4rem 0.5rem;
    min-width: 4.3rem;
    text-align: center;
}
.compte-a-rebours .valeur {
    display: block;
    font-family: var(--police-display);
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--rouge);
    font-variant-numeric: tabular-nums;
}
.compte-a-rebours .unite {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--encre-doux);
}

.hero-date-texte {
    font-weight: 700;
    color: var(--turquoise-fonce);
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
}
/* 06/10/2026 : hors saison, le rendez-vous de l'an prochain en grand */
.hero-date-texte.hero-rendez-vous {
    font-family: var(--police-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0.2rem 0 1.4rem;
}

/* Boutons */
.groupe-boutons { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--rouge);
    color: var(--blanc);
    padding: 0.55rem 0.55rem 0.55rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 28px -12px rgba(193, 39, 45, 0.55);
    transition: transform var(--transition-fluide), box-shadow var(--transition-fluide), background var(--transition-fluide);
}
.bouton .fleche {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fluide);
}
.bouton .fleche svg { width: 1rem; height: 1rem; }
.bouton:hover { background: #a91f25; color: var(--blanc); transform: translateY(-1px); }
.bouton:hover .fleche { transform: translate(3px, -1px); }
.bouton:active { transform: scale(0.98); }

.bouton-secondaire {
    background: transparent;
    color: var(--encre);
    border: 1.5px solid rgba(85, 52, 39, 0.3);
    box-shadow: none;
    padding: 0.55rem 1.4rem;
}
.bouton-secondaire:hover { background: var(--creme-fonce); color: var(--encre); transform: translateY(-1px); }

/* 05/10/2026 : « Envoyez vos photos » — second bouton du héros hors saison,
   plein et turquoise pour se voir à côté des résultats */
.bouton-photos {
    background: var(--turquoise-fonce);
    color: var(--blanc);
    box-shadow: 0 12px 28px -12px rgba(46, 124, 122, 0.65);
}
.bouton-photos:hover { background: #246664; color: var(--blanc); }

/* 03/10/2026 : « Voir les résultats » — bouton principal du héros dès la
   publication des résultats (halo pulsé, coupé si l'utilisateur le demande) */
.bouton-resultats {
    background: linear-gradient(135deg, var(--orange) 0%, var(--rouge-vif) 100%);
    font-size: 1.1rem;
    padding: 0.65rem 0.65rem 0.65rem 1.5rem;
    animation: halo-resultats 2.4s ease-out infinite;
}
.bouton-resultats:hover { background: linear-gradient(135deg, var(--rouge-vif) 0%, #a91f25 100%); }
.bouton-resultats .trophee { font-size: 1.25em; line-height: 1; }
@keyframes halo-resultats {
    0% { box-shadow: 0 14px 32px -12px rgba(223, 34, 24, 0.7), 0 0 0 0 rgba(231, 145, 38, 0.55); }
    100% { box-shadow: 0 14px 32px -12px rgba(223, 34, 24, 0.7), 0 0 0 16px rgba(231, 145, 38, 0); }
}
@media (prefers-reduced-motion: reduce) { .bouton-resultats { animation: none; } }

/* --- Sections communes --------------------------------------------------- */
.conteneur { max-width: 44rem; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; }
.conteneur-large { max-width: 72rem; margin: 0 auto; padding: 0 1.1rem; }

.section { padding: 3.5rem 0; }
@media (min-width: 48rem) { .section { padding: 5rem 0; } }

.section-titre {
    font-family: var(--police-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    line-height: 1.1;
    margin: 0.6rem 0 0.4rem;
}
.section-sous-titre { color: var(--encre-doux); max-width: 38rem; margin: 0 0 2rem; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-family: var(--police-display); font-weight: 400; color: var(--bois); font-size: 1.6rem; }
.chapeau { font-size: 1.15rem; color: var(--encre-doux); }

/* --- Accès rapides (§ 4.1) ----------------------------------------------- */
.acces-rapides {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 48rem) { .acces-rapides { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }

.carte-acces {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--blanc);
    border: 1px solid rgba(85, 52, 39, 0.12);
    border-radius: var(--rayon-m);
    padding: 1.1rem 1rem 1rem;
    text-decoration: none;
    color: var(--encre);
    box-shadow: var(--ombre-douce);
    transition: transform var(--transition-fluide), box-shadow var(--transition-fluide);
    min-height: 7.2rem;
}
a.carte-acces:hover { transform: translateY(-4px); box-shadow: var(--ombre-flottante); color: var(--encre); }
.carte-acces .icone {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme-fonce);
    color: var(--bois);
}
.carte-acces .icone svg { width: 1.35rem; height: 1.35rem; }
.carte-acces strong { font-size: 1rem; line-height: 1.25; }
.carte-acces small { color: var(--encre-doux); font-size: 0.82rem; line-height: 1.4; }
.carte-acces.a-venir { opacity: 0.78; }
.carte-acces .badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: var(--or-pale);
    color: var(--bois);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
.carte-acces.jour-j .badge { background: var(--rouge); color: var(--blanc); }

/* --- Bande chiffres (parcours) ------------------------------------------- */
.bande-chiffres {
    background: var(--encre);
    color: var(--creme);
    position: relative;
}
.bande-chiffres::before {
    content: "";
    display: block;
    height: 12px;
    background: var(--damier);
    background-size: 24px 24px;
}
.bande-chiffres-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.6rem 1.1rem 2.8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem 1rem;
    text-align: center;
}
@media (min-width: 48rem) {
    .bande-chiffres-inner { grid-template-columns: repeat(4, 1fr); padding: 3.2rem 1.5rem; }
}
.chiffre .valeur {
    display: block;
    font-family: var(--police-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.05;
    color: var(--orange-doux);
}
.chiffre .legende {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(253, 246, 233, 0.75);
}

/* --- Blocs de contenu (éditeur § 8.2) ------------------------------------ */
.bloc-paragraphe { max-width: 44rem; }
.bloc-image { margin: 1.8rem 0; text-align: center; }
.bloc-image img { border-radius: var(--rayon-m); box-shadow: var(--ombre-douce); }
.bloc-image figcaption { font-size: 0.9rem; color: var(--bois); margin-top: 0.5rem; }
.bloc-image a { position: relative; display: inline-block; max-width: 100%; }
.bloc-image-loupe {
    position: absolute; right: 0.6rem; bottom: 0.6rem;
    background: rgba(34, 26, 30, 0.82); color: var(--creme);
    font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.3rem 0.7rem; border-radius: 999px;
}
.bloc-image a:hover .bloc-image-loupe { background: var(--rouge); }
.bloc-deux-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.8rem 0;
}
.bloc-deux-images figure { margin: 0; text-align: center; }
.bloc-deux-images img { border-radius: var(--rayon-m); box-shadow: var(--ombre-douce); max-width: 100%; height: auto; }
.bloc-deux-images figcaption { font-size: 0.9rem; color: var(--bois); margin-top: 0.5rem; }
.bloc-deux-images a { position: relative; display: inline-block; max-width: 100%; }
.bloc-deux-images a:hover .bloc-image-loupe { background: var(--rouge); }
@media (max-width: 700px) {
    .bloc-deux-images { grid-template-columns: 1fr; gap: 1.8rem; }
}
.bloc-encadre {
    background: var(--creme-fonce);
    border-left: 5px solid var(--orange);
    border-radius: 0 var(--rayon-m) var(--rayon-m) 0;
    padding: 1.1rem 1.3rem;
    margin: 1.8rem 0;
}
.bloc-encadre h3 { margin-top: 0; color: var(--bois); }
.bloc-tableau { overflow-x: auto; margin: 1.8rem 0; }
.bloc-tableau table { border-collapse: collapse; width: 100%; background: var(--blanc); border-radius: var(--rayon-m); }
.bloc-tableau th, .bloc-tableau td { border: 1px solid rgba(85, 52, 39, 0.18); padding: 0.5rem 0.7rem; }
.bloc-tableau th { background: var(--creme-fonce); }

/* --- Apparition au défilement --------------------------------------------
   Uniquement quand JS est là (classe js-anim sur <html>) : sans JavaScript,
   tout le contenu reste visible (§ 9.6). */
html.js-anim .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}
html.js-anim .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .hero-carte, .bouton, .carte-acces { transition: none; }
}

/* --- Pied de page --------------------------------------------------------- */
.pied { background: var(--encre); color: var(--creme); margin-top: 4rem; position: relative; }
.pied::before {
    content: "";
    display: block;
    height: 12px;
    background: var(--damier);
    background-size: 24px 24px;
}
.pied a { color: var(--or-pale); }
.pied a:hover { color: var(--blanc); }
.pied-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.4rem 1.1rem 2.6rem;
    display: flex;
    gap: 2rem 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.pied-edition img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: var(--rayon-m);
}
@media (max-width: 760px) { .pied-edition img { width: 120px; } }
.pied-bloc strong { font-family: var(--police-display); font-weight: 400; letter-spacing: 0.03em; font-size: 1.05rem; }
.pied-reseaux a, .pied-langues a { margin-right: 1rem; }
.icone-reseau {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: rgba(253, 246, 233, 0.12);
    border: 1px solid rgba(253, 246, 233, 0.25);
    color: var(--creme) !important;
    transition: background var(--transition-fluide), transform var(--transition-fluide);
}
.icone-reseau:hover { background: var(--rouge); transform: translateY(-2px); }
.icone-reseau svg { width: 1.35rem; height: 1.35rem; }
.pied small { color: rgba(253, 246, 233, 0.6); }

.page-erreur { text-align: center; padding: 4rem 1rem; }

/* --- Vote « Coup de cœur » (§ 5.1) ---------------------------------------- */
.vote-choix-courant {
    background: var(--or-pale);
    border-radius: var(--rayon-m);
    padding: 0.8rem 1.1rem;
    font-size: 1.02rem;
}
.vote-grille {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 1.5rem 0;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.vote-carte {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font: inherit;
    text-align: left;
    background: var(--blanc);
    border: 2px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-m);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--ombre-douce);
    transition: transform var(--transition-fluide), border-color var(--transition-fluide), box-shadow var(--transition-fluide);
}
.vote-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-flottante); }
.vote-carte:active { transform: scale(0.985); }
.vote-carte img { width: 100%; display: block; }
.vote-sans-photo { font-size: 3rem; text-align: center; padding: 2rem 0 0.5rem; }
.vote-carte .vote-numero {
    font-family: var(--police-display);
    color: var(--rouge);
    padding: 0.5rem 0.9rem 0;
}
.vote-carte strong { padding: 0 0.9rem; font-size: 1.05rem; line-height: 1.25; }
.vote-carte small { padding: 0 0.9rem; color: var(--encre-doux); }
.vote-carte .vote-action {
    margin: 0.6rem 0.9rem 0.9rem;
    align-self: flex-start;
    background: var(--rouge);
    color: var(--blanc);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.vote-carte.choisie { border-color: var(--turquoise-fonce); }
.vote-carte.choisie .vote-action { background: var(--turquoise-fonce); }
.podium { font-size: 1.1rem; line-height: 2; }

/* 03/10/2026 : une carte par prix, la lauréate encadrée, coupe personnalisée */
.carte-prix {
    display: flex; gap: 1rem; align-items: flex-start;
    background: rgba(255, 253, 248, 0.75);
    border: 1px solid rgba(85, 52, 39, 0.14);
    border-left: 6px solid var(--orange);
    border-radius: var(--rayon-m);
    padding: 1.1rem 1.2rem 1rem 1rem;
    margin: 0 0 1.2rem;
    box-shadow: 0 10px 24px -18px rgba(85, 52, 39, 0.5);
}
.carte-prix-course { border-left-color: var(--turquoise-fonce); }
.carte-prix-creativite { border-left-color: var(--orange); }
.carte-prix-coup_de_coeur { border-left-color: var(--rouge); }
.carte-prix-jeune_pilote { border-left-color: #d9a400; }
.carte-prix h2 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.carte-prix-icone { position: relative; flex: 0 0 3.6rem; line-height: 1; padding-top: 0.1rem; }
.carte-prix-icone .coupe { font-size: 3rem; display: block; }
.carte-prix-icone .coupe-detail {
    position: absolute; right: -0.2rem; bottom: -0.35rem;
    font-size: 1.45rem; background: var(--blanc); border-radius: 50%;
    padding: 0.15rem; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.carte-prix-corps { flex: 1 1 auto; min-width: 0; }
.laureat {
    display: flex; gap: 0.7rem; align-items: center;
    background: var(--or-pale); border: 2px solid var(--orange);
    border-radius: 0.8rem; padding: 0.6rem 0.9rem; margin: 0 0 0.6rem;
    font-size: 1.15rem; line-height: 1.4;
}
.laureat-rang {
    flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--rouge); color: var(--blanc); font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.podium-suivants { list-style: none; margin: 0 0 0.4rem; padding: 0 0 0 0.3rem; display: grid; gap: 0.3rem; }
.podium-suivants .suivant { display: flex; align-items: center; gap: 0.55rem; color: var(--encre-doux); line-height: 1.45; padding: 0.15rem 0.5rem; }
.suivant-rang {
    flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: rgba(85, 52, 39, 0.12); color: var(--encre-doux);
    font-weight: 700; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
/* 05/10/2026 : 2ᵉ et 3ᵉ mis en évidence — coupe argent, coupe bronze */
.suivant-2, .suivant-3 {
    color: var(--encre); font-weight: 600;
    background: rgba(255, 253, 248, 0.9); border: 1.5px solid; border-radius: 0.6rem;
    padding: 0.4rem 0.7rem;
}
.suivant-2 { border-color: #b9bdc5; }
.suivant-2 .suivant-rang { background: linear-gradient(135deg, #eceef1, #aab0b8); color: #2b2f36; }
.suivant-3 { border-color: #c99a6e; }
.suivant-3 .suivant-rang { background: linear-gradient(135deg, #e5b78d, #a9703f); color: #3b2410; }
.coupe-petite { flex: 0 0 auto; font-size: 1.15rem; line-height: 1; }
.suivant-2 .coupe-petite { filter: grayscale(1) brightness(1.15); }
.suivant-3 .coupe-petite { filter: sepia(1) saturate(1.4) hue-rotate(-18deg) brightness(0.82); }
.pire-temps { color: var(--encre-doux); font-style: italic; font-size: 0.95rem; margin: 0.3rem 0 0; display: flex; gap: 0.6rem; align-items: center; line-height: 1.4; }
.pire-temps .escargot { font-size: 2.1rem; line-height: 1; font-style: normal; }
.note-prix { font-size: 0.9rem; color: var(--encre-doux); margin: 0.5rem 0 0; line-height: 1.5; }
.record-vitesse { color: var(--turquoise-fonce); margin: 0.4rem 0 0; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.record-vitesse .fusee { font-size: 1.6rem; line-height: 1; padding-top: 0.1rem; }
.record-vitesse em { font-style: italic; font-weight: 400; }
.record-vitesse .record-caisses { color: var(--encre); }
.record-vitesse small { color: var(--encre-doux); }
.palmares-radar { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.9rem 0 0.4rem; line-height: 1.45; color: var(--turquoise-fonce); }
.palmares-radar .fusee { font-size: 1.2rem; line-height: 1.3; }
.palmares-radar em { font-weight: 400; }
.palmares-radar small { color: var(--encre-doux); }

/* 06/10/2026 : vitesses du radar sur « Les temps » */
.bloc-tableau small.vitesse { color: var(--turquoise-fonce); font-weight: 600; white-space: nowrap; }
/* 06/10/2026 : neuf colonnes — page élargie, chiffres sur une ligne, seul le nom se replie */
.conteneur-temps { max-width: 64rem; }
.tableau-temps th, .tableau-temps td { white-space: nowrap; }
.tableau-temps .col-caisse { white-space: normal; min-width: 9rem; }
.radar {
    margin: 1.5rem 0 0; padding: 1.1rem 1.2rem;
    background: rgba(255, 253, 248, 0.75); border: 1px solid rgba(85, 52, 39, 0.14);
    border-left: 6px solid var(--turquoise-fonce); border-radius: var(--rayon-m);
}
.radar h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.radar-record { font-size: 1.1rem; font-weight: 700; color: var(--turquoise-fonce); margin: 0 0 0.5rem; }
.radar-top { margin: 0 0 0.5rem; padding-left: 1.4rem; line-height: 1.7; }
.radar-moyenne { margin: 0; color: var(--encre-doux); font-size: 0.95rem; }
@media (max-width: 30rem) {
    .carte-prix { gap: 0.7rem; padding: 0.9rem 0.8rem 0.8rem 0.7rem; }
    .carte-prix-icone { flex-basis: 2.9rem; }
    .carte-prix-icone .coupe { font-size: 2.4rem; }
    .laureat { font-size: 1.05rem; }
}

/* 03/10/2026 : bandeau d'aperçu des résultats (organisateurs connectés) */
.bandeau-apercu {
    position: sticky; top: 0; z-index: 50;
    background: #2b2340; color: var(--blanc);
    border-bottom: 4px solid var(--orange);
    padding: 0.7rem 1.1rem;
    display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; justify-content: center;
}
.bandeau-apercu-texte { margin: 0; font-size: 0.95rem; max-width: 44rem; }
.bandeau-apercu-texte b { color: var(--or-pale); }
.bandeau-apercu-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.bandeau-apercu .bouton { padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.bandeau-apercu .bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.bandeau-apercu .bouton-secondaire { color: var(--blanc); border-color: rgba(255, 253, 248, 0.5); }
.bandeau-apercu .bouton-secondaire:hover { background: rgba(255, 253, 248, 0.12); color: var(--blanc); }

/* --- Partenaires (§ 4.5) et galeries (§ 4.6) ------------------------------ */
.grille-partenaires, .grille-galeries, .grille-photos {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 2rem 0;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.grille-galeries { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.grille-photos { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.carte-partenaire {
    background: var(--blanc);
    border: 1px solid rgba(85, 52, 39, 0.12);
    border-radius: var(--rayon-m);
    box-shadow: var(--ombre-douce);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carte-partenaire.en-avant { grid-column: span 2; }
.carte-partenaire a { text-decoration: none; color: var(--encre); }
.carte-partenaire img { max-height: 7rem; width: auto; margin: 0 auto; object-fit: contain; }
.nom-partenaire { display: block; margin-top: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.carte-galerie a, .grille-photos a { display: block; border-radius: var(--rayon-m); overflow: hidden; text-decoration: none; color: var(--encre); }
.carte-galerie img, .grille-photos img { display: block; width: 100%; border-radius: var(--rayon-m); box-shadow: var(--ombre-douce); transition: transform var(--transition-fluide); }
.carte-galerie a:hover img, .grille-photos a:hover img { transform: scale(1.03); }
.carte-galerie strong { display: block; padding: 0.7rem 0.3rem; font-size: 1.05rem; }
/* Liste des caisses (30/09/2026) : une vraie carte même sans photo — fond blanc,
   bordure, bandeau avec le numéro tant que la photo manque — et des marges
   intérieures : le lien coupe ce qui dépasse de ses coins arrondis, la
   première lettre du nom d'équipage collée au bord était rognée. */
.carte-caisse a { background: var(--blanc); border: 1px solid rgba(85, 52, 39, 0.12); box-shadow: var(--ombre-douce); padding-bottom: 0.5rem; height: 100%; }
.carte-caisse img { border-radius: var(--rayon-m) var(--rayon-m) 0 0; box-shadow: none; }
.carte-caisse strong { padding: 0.75rem 0.9rem 0.15rem; }
.carte-caisse small { display: block; padding: 0 0.9rem 0.3rem; font-size: 0.85rem; color: var(--bois); }
/* forfait (03/10/2026) : bandeau rouge sur la carte et la fiche, photo passée en gris */
.bandeau-annulee { display: block; background: var(--rouge); color: var(--blanc); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; padding: 0.4rem 0.6rem; }
.carte-caisse.annulee .bandeau-annulee { border-radius: var(--rayon-m) var(--rayon-m) 0 0; }
.carte-caisse.annulee img, .carte-caisse.annulee .caisse-sans-photo { border-radius: 0; filter: grayscale(1); opacity: 0.7; }
.bandeau-annulee-fiche { display: inline-block; border-radius: 0.6rem; font-size: 0.95rem; margin: 0.2rem 0 1rem; }
.caisse-sans-photo {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--creme), var(--creme-fonce));
    font-family: var(--police-display); font-size: 3rem; line-height: 1; color: var(--turquoise-fonce);
    border-radius: var(--rayon-m) var(--rayon-m) 0 0;
}
.caisse-sans-photo::before { content: "n° "; font-size: 1.1rem; margin-right: 0.35rem; align-self: center; color: var(--bois); }
/* Lots de la tombola (01/10/2026) : une carte par lot, numérotée dans l'ordre du tirage */
.carte-lot { display: flex; flex-direction: column; gap: 0.15rem; background: var(--blanc); border: 1px solid rgba(85, 52, 39, 0.12); border-radius: var(--rayon-m); box-shadow: var(--ombre-douce); padding: 0.9rem 1rem 1rem; }
.carte-lot img { border-radius: var(--rayon-m); margin: -0.5rem -0.6rem 0.4rem; width: calc(100% + 1.2rem); max-width: none; }
.carte-lot .lot-numero { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-fonce); }
.carte-lot strong { padding: 0.1rem 0 0.2rem; }
.carte-lot small { display: block; font-size: 0.85rem; color: var(--encre-doux); }
.carte-lot .lot-donateur { margin-top: auto; padding-top: 0.5rem; color: var(--bois); font-weight: 600; }
/* résultat du tirage (01/10/2026) : bandeau rouge bien visible ; « Non attribué » reste discret */
.carte-lot .lot-gagnant { margin-top: 0.5rem; padding: 0.5rem 0.7rem; border-radius: 0.6rem; background: var(--rouge); color: var(--blanc); font-size: 1rem; line-height: 1.3; box-shadow: 0 6px 16px -8px rgba(193, 39, 45, 0.6); }
.carte-lot .lot-gagnant.lot-en-attente { background: var(--creme-fonce); color: var(--encre-doux); font-weight: 600; box-shadow: none; }
.legende-photo { display: block; font-size: 0.85rem; color: var(--bois); padding: 0.3rem 0.2rem; }
/* Carrousel (galeries § 4.6) — défilement natif scroll-snap */
.carrousel { margin: 2rem 0; }
.carrousel-piste {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: var(--rayon-l);
    box-shadow: var(--ombre-flottante);
    background: var(--encre);
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste { scrollbar-width: none; }
.carrousel-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carrousel-slide img {
    width: 100%;
    max-height: min(70vh, 40rem);
    object-fit: contain;
    display: block;
}
.carrousel-slide figcaption {
    color: var(--creme);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem 1rem 0.9rem;
}
.carrousel-commandes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.9rem;
}
.carrousel-bouton {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1.5px solid rgba(85, 52, 39, 0.3);
    background: var(--blanc);
    color: var(--encre);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ombre-douce);
    transition: background var(--transition-fluide), transform var(--transition-fluide);
}
.carrousel-bouton:hover { background: var(--creme-fonce); transform: translateY(-1px); }
.carrousel-bouton:active { transform: scale(0.95); }
.carrousel-bouton svg { width: 1.3rem; height: 1.3rem; }
.carrousel-compteur {
    font-family: var(--police-display);
    font-size: 1.05rem;
    color: var(--bois);
    min-width: 4.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) { .carrousel-piste { scroll-behavior: auto; } }

/* Façade Instagram — rien n'est chargé avant le clic (§ 10.3) */
.insta-facade { margin: 1.5rem 0 2rem; }
.insta-note { font-size: 0.85rem; color: var(--encre-doux); max-width: 34rem; }
.insta-cadre {
    border: 1px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-m);
    width: min(540px, 100%);
    height: 760px;
    box-shadow: var(--ombre-douce);
    background: var(--blanc);
}

.sans-contenu {
    grid-column: 1 / -1;
    background: var(--creme-fonce);
    border-radius: var(--rayon-m);
    padding: 2rem;
    text-align: center;
    color: var(--bois);
    font-weight: 600;
}

/* --- Formulaires (bénévoles § 7.5) --------------------------------------- */
.formulaire { max-width: 30rem; margin: 2rem 0; }
.champ { margin-bottom: 1.2rem; }
.champ label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.champ input[type="text"], .champ input[type="tel"] {
    width: 100%;
    font: inherit;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid rgba(85, 52, 39, 0.3);
    border-radius: var(--rayon-m);
    background: var(--blanc);
    color: var(--encre);
}
.champ input:focus-visible { outline: 3px solid var(--turquoise-fonce); outline-offset: 1px; }
.champ-case { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.champ-case input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--rouge); }
.champ-case label { font-weight: 500; font-size: 0.92rem; }
.formulaire .errorlist { color: var(--rouge); margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.form-erreurs { background: #fbe4e4; border-left: 5px solid var(--rouge); border-radius: 0 var(--rayon-m) var(--rayon-m) 0; padding: 0.8rem 1.1rem; margin-bottom: 1.2rem; }
.champ-pot-de-miel { position: absolute; left: -6000px; top: auto; }

/* --- Mini-lecteur radio du jour J (§ 6) ----------------------------------- */
.mini-radio { background: var(--encre); padding: 0.8rem 0; }
.mini-radio-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mini-radio-libelle {
    color: var(--creme);
    font-family: var(--police-display);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mini-radio-point {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--rouge-vif);
    animation: mini-radio-pulse 1.6s ease-in-out infinite;
}
@keyframes mini-radio-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .mini-radio-point { animation: none; } }
.mini-radio .lecteur-audio { max-width: 20rem; margin: 0; }
.mini-radio-lien { color: var(--or-pale); margin-left: auto; }
.mini-radio .lecteur-secours { margin: 0; padding: 0.3rem 0.8rem; }

/* --- FAQ (§ 4.7) ---------------------------------------------------------- */
.faq-liste { margin: 2rem 0; }
.faq-item {
    background: var(--blanc);
    border: 1px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-m);
    margin-bottom: 0.8rem;
    box-shadow: var(--ombre-douce);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 1.2rem;
    list-style: none;
    position: relative;
    padding-right: 2.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--police-display);
    font-size: 1.3rem;
    color: var(--rouge);
    transition: transform var(--transition-fluide);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--encre-doux); }

/* --- Lecteur radio (§ 6) -------------------------------------------------- */
.lecteur-radio { margin: 2rem 0; }
.lecteur-audio { width: 100%; max-width: 30rem; margin-top: 0.5rem; }
.lecteur-note { color: var(--encre-doux); font-size: 0.95rem; }
.lecteur-secours {
    background: var(--creme-fonce);
    border-left: 5px solid var(--orange);
    border-radius: 0 var(--rayon-m) var(--rayon-m) 0;
    padding: 0.8rem 1.1rem;
}
.est-cache { display: none !important; }

/* ---------- Agenda partagé (M4, § 7) ---------- */
.agenda-onglets { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; margin: 1.4rem 0 1.8rem; }
.agenda-onglets a:not(.bouton) { font-weight: 700; color: var(--bois); text-decoration: none; padding-bottom: 0.15rem; border-bottom: 3px solid transparent; }
.agenda-onglets a[aria-current="page"] { color: var(--rouge); border-bottom-color: var(--rouge); }
.agenda-onglets .bouton { margin-left: auto; }
.agenda-mois { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.agenda-defilement { overflow-x: auto; }
.agenda-cal { width: 100%; min-width: 44rem; border-collapse: collapse; background: var(--blanc); border-radius: var(--rayon-m); overflow: hidden; }
.agenda-cal th { background: var(--encre); color: var(--creme); padding: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.agenda-cal td { vertical-align: top; width: 14.28%; height: 5.5rem; padding: 0.35rem; border: 1px solid rgba(85, 52, 39, 0.15); }
.agenda-num { font-weight: 800; font-size: 0.85rem; color: var(--bois); }
.agenda-aujourdhui { background: var(--jaune-pale, #fbe7af); }
.agenda-aujourdhui .agenda-num { color: var(--rouge); }
.agenda-evt { display: block; margin-top: 0.25rem; padding: 0.15rem 0.4rem; border-radius: 0.4rem; background: var(--turquoise); color: var(--encre); font-size: 0.78rem; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11rem; }
.agenda-evt-global { background: var(--orange); }
.agenda-evt:hover, .agenda-evt:focus-visible { outline: 2px solid var(--encre); }
.agenda-legende { margin-top: 0.8rem; display: flex; gap: 0.8rem; }
.agenda-legende .agenda-evt { display: inline-block; margin: 0; }
.agenda-liste { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.agenda-liste > li { background: var(--blanc); border-radius: var(--rayon-m); border: 1.5px solid rgba(85, 52, 39, 0.15); }
.agenda-liste > li > a { display: grid; gap: 0.15rem; padding: 0.9rem 1.1rem; color: inherit; text-decoration: none; }
.agenda-liste > li > a small { color: var(--bois); }
.agenda-reponse { display: flex; gap: 0.6rem; padding: 0 1.1rem 0.9rem; }
.agenda-statut { font-weight: 700; }
.agenda-statut-confirmee { color: #1d7a34; }
.agenda-statut-declinee { color: var(--rouge); }
/* orange assombri : AA sur fond blanc (axe color-contrast) */
.agenda-statut-proposee { color: #9c5f0e; }
.agenda-affectations { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.agenda-affectations li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.agenda-affectations form { display: inline; }
.bouton-lien { background: none; border: 0; padding: 0; font: inherit; color: var(--rouge); text-decoration: underline; cursor: pointer; }
.agenda-ical { display: inline-block; word-break: break-all; background: var(--blanc); border: 1.5px dashed rgba(85, 52, 39, 0.4); border-radius: var(--rayon-m); padding: 0.6rem 0.9rem; font-size: 0.85rem; }
.agenda-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.agenda-actions form { display: inline; }
.champ select, .champ textarea, .champ input[type="datetime-local"], .champ input[type="number"], .agenda-affecter select {
    width: 100%; font: inherit; padding: 0.65rem 0.9rem;
    border: 1.5px solid rgba(85, 52, 39, 0.3); border-radius: var(--rayon-m);
    background: var(--blanc); color: var(--encre);
}
.pied-deconnexion { display: inline; }
.pied-deconnexion .bouton-lien { color: inherit; }

/* ---------- Mode hors saison (§ 4.1) ---------- */
.hors-saison-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.hors-saison-carte { background: var(--blanc); border-radius: var(--rayon-l); border: 1.5px solid rgba(85, 52, 39, 0.14); box-shadow: var(--ombre-douce); padding: 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.hors-saison-carte h3 { font-family: var(--police-display); font-size: 1.35rem; margin: 0; color: var(--bois); }
.hors-saison-carte .bouton-secondaire { align-self: flex-start; margin-top: auto; }
.hors-saison-palmares { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.hors-saison-palmares li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.45; }
.hors-saison-palmares .trophee { font-size: 1.2rem; }
.hors-saison-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hors-saison-photos img { width: 100%; height: auto; border-radius: var(--rayon-m); object-fit: cover; }
/* Films de l'édition (23/10/2026) : teaser en grand, version longue à côté */
.films-grille { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 64rem) { .films-grille { grid-template-columns: 1.6fr 1fr; } }
.film { margin: 0; background: var(--blanc); border-radius: var(--rayon-l); border: 1.5px solid rgba(85, 52, 39, 0.14); box-shadow: var(--ombre-douce); overflow: hidden; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--encre); }
.film figcaption { padding: 1rem 1.3rem 1.2rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: baseline; }
.film figcaption strong { font-family: var(--police-display); font-weight: 400; font-size: 1.3rem; color: var(--bois); }
.film-duree { color: var(--encre-doux); }
.film-telecharger { flex-basis: 100%; font-size: 0.92rem; color: var(--encre-doux); }
.film-telecharger a { color: var(--rouge); font-weight: 700; }
.agenda-point { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: baseline; background: var(--turquoise); }
.agenda-point-global { background: var(--orange); }
.champ-dateheure { position: relative; display: flex; gap: 0.5rem; align-items: stretch; }
.champ-dateheure input[data-selecteur-dateheure] { flex: 1; min-width: 0; }
.bouton-calendrier {
    flex-shrink: 0; width: 3rem; cursor: pointer;
    border: 1.5px solid rgba(85, 52, 39, 0.3); border-radius: var(--rayon-m);
    background: var(--blanc); color: var(--bois);
    display: inline-flex; align-items: center; justify-content: center;
}
.bouton-calendrier svg { width: 1.35rem; height: 1.35rem; }
.bouton-calendrier:hover { background: var(--creme-fonce); }
.selecteur-natif { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0.01; border: 0; padding: 0; }
.selecteur-natif.visible { position: static; width: auto; height: auto; opacity: 1; font: inherit; padding: 0.4rem; }

/* ---------------------------------------------------- Suivi des actions */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.suivi-filtres {
    display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: flex-end;
    background: var(--blanc); border: 1px solid rgba(85, 52, 39, 0.15);
    border-radius: var(--rayon-m); padding: 1rem 1.2rem; margin-bottom: 1.6rem;
}
.suivi-filtre { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 11rem; min-width: 0; }
.suivi-filtre span { font-size: 0.82rem; font-weight: 700; color: var(--bois); }
.suivi-filtre select, .suivi-filtre input {
    font: inherit; padding: 0.4rem 0.5rem; border-radius: 0.6rem; width: 100%; max-width: 100%;
    border: 1.5px solid rgba(85, 52, 39, 0.3); background: var(--blanc); color: var(--encre);
}
.suivi-filtre-recherche { flex: 2 1 13rem; }
.suivi-raz { align-self: center; font-size: 0.9rem; }
.suivi-tableau { overflow-x: auto; }
.suivi-tableau table {
    border-collapse: collapse; width: 100%; background: var(--blanc);
    border-radius: var(--rayon-m); overflow: hidden;
}
.suivi-tableau th, .suivi-tableau td {
    border: 1px solid rgba(85, 52, 39, 0.18); padding: 0.55rem 0.7rem;
    vertical-align: top; text-align: left; overflow-wrap: anywhere;
}
.suivi-tableau th { background: var(--creme-fonce); font-size: 0.9rem; white-space: nowrap; }
.suivi-tableau code { font-size: 0.85rem; white-space: nowrap; }
.suivi-section { display: block; font-size: 0.78rem; font-weight: 700; color: var(--turquoise-fonce); }
.suivi-commentaire { display: block; margin-top: 0.3rem; color: var(--encre-doux); }
.suivi-statut-form { display: flex; gap: 0.35rem; align-items: center; }
.suivi-statut-form select {
    font: inherit; font-size: 0.9rem; padding: 0.3rem; border-radius: 0.5rem;
    border: 1.5px solid rgba(85, 52, 39, 0.3); background: var(--blanc); color: var(--encre);
}
.suivi-statut-form .bouton { padding: 0.3rem 0.6rem; font-size: 0.8rem; white-space: nowrap; }
.suivi-actions { font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; }
.suivi-actions a { white-space: nowrap; }
.suivi-supprimer { color: var(--rouge); }
.suivi-total { margin-top: 1rem; color: var(--encre-doux); font-size: 0.9rem; }
/* Repère visuel du statut, doublé par le texte du sélecteur (jamais la couleur seule) */
.suivi-ligne td:first-child { border-left: 5px solid transparent; }
.suivi-statut-en_cours td:first-child { border-left-color: var(--orange); }
.suivi-statut-en_attente td:first-child { border-left-color: var(--turquoise); }
.suivi-statut-terminee td:first-child { border-left-color: #6aa84f; }
.suivi-statut-terminee { opacity: 0.72; }
.suivi-statut-impossible td:first-child { border-left-color: rgba(85, 52, 39, 0.35); }
.suivi-statut-impossible { opacity: 0.72; }

/* Mobile : chaque ligne devient une fiche, l'en-tête passe en étiquette */
@media (max-width: 760px) {
    .suivi-tableau table, .suivi-tableau tbody, .suivi-tableau tr, .suivi-tableau td { display: block; width: 100%; }
    .suivi-tableau thead { display: none; }
    .suivi-tableau tr {
        border: 1px solid rgba(85, 52, 39, 0.2); border-radius: var(--rayon-m);
        margin-bottom: 1rem; padding: 0.3rem 0.2rem; background: var(--blanc);
    }
    .suivi-tableau td { border: 0; padding: 0.35rem 0.7rem; }
    .suivi-tableau td[data-libelle]::before {
        content: attr(data-libelle) " : "; font-weight: 700; font-size: 0.78rem;
        color: var(--bois); display: block;
    }
    .suivi-ligne td:first-child { border-left: 0; }
    .suivi-statut-en_cours { border-left: 5px solid var(--orange); }
    .suivi-statut-en_attente { border-left: 5px solid var(--turquoise); }
    .suivi-statut-terminee { border-left: 5px solid #6aa84f; }
    .suivi-statut-impossible { border-left: 5px solid rgba(85, 52, 39, 0.35); }
    .suivi-actions a { display: inline-block; margin-right: 1rem; }
}

/* Résultats : la gagnante du Coup de cœur, en tête du tableau des scores */
.suivi-tableau .ligne-gagnante, .bloc-tableau .ligne-gagnante { background: var(--or-pale); font-weight: 700; }
.mention-gagnante { font-weight: 400; color: var(--bois); white-space: nowrap; }


/* L'édition précédente en chiffres (accueil) */
.chiffres-edition { padding-top: 1rem; }
.grille-chiffres {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    margin-top: 2rem;
}
.grille-chiffres .chiffre {
    background: var(--blanc); border: 1px solid rgba(85, 52, 39, 0.14);
    border-radius: var(--rayon-m); padding: 1.2rem 1rem; text-align: center;
    display: flex; flex-direction: column; gap: 0.3rem;
    box-shadow: var(--ombre-douce);
}
.grille-chiffres .valeur {
    font-family: var(--police-display); font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--rouge); line-height: 1;
}
.grille-chiffres .legende {
    font-size: 0.86rem; color: var(--encre-doux); letter-spacing: 0.02em;
}
/* Partenaire annoncé avant l'arrivée de son logo */
.nom-partenaire-seul {
    font-family: var(--police-display); font-size: 1.15rem; color: var(--bois);
    display: flex; align-items: center; justify-content: center; min-height: 4.5rem;
    text-align: center; padding: 0.5rem;
}
/* Deux catégories de partenaires (29/09/2026) : la commune ou le matériel prêté, sous le nom */
.precision-partenaire { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--encre-doux); }
.categorie-partenaires + .categorie-partenaires { margin-top: 2.5rem; }
.categorie-partenaires h2 { margin-bottom: 0.2rem; }
.categorie-partenaires .section-sous-titre { margin-top: 0; }
/* Merci aux donateurs de lots (30/09/2026), en bas de la page partenaires */
.merci-tombola { margin-top: 3rem; }
.merci-tombola h2 { margin-top: 0; color: var(--bois); }
.merci-tombola p:last-child { margin-bottom: 0; }
.affiche-partenaires { max-width: 44rem; margin: 3rem auto 0; }
/* Fiche caisse (30/09/2026) : équipage nominatif, expérience, thème musical */
.equipage-caisse { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.6rem 1.2rem; margin: 1.2rem 0 1.6rem; padding: 0.9rem 1.1rem; background: var(--blanc); border: 1px solid rgba(85, 52, 39, 0.12); border-radius: var(--rayon-m); }
.equipage-caisse div { margin: 0; }
.equipage-caisse dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-fonce); }
.equipage-caisse dd { margin: 0.1rem 0 0; font-weight: 600; }
.equipage-caisse-suite { grid-template-columns: 1fr; }
