/* ==================================================================
   Amicale du collège — feuille de style
   Palette reprise du logo de l'association : rouge et turquoise.
   Chaque couleur de texte a été vérifiée au contraste (WCAG AA).

   Note : les classes .badge-bleu et .badge-corail ont gardé leur nom
   d'origine pour ne pas casser les gabarits ; elles affichent
   aujourd'hui du turquoise et du rouge.
   ================================================================== */

:root {
    /* Couleurs */
    --creme: #FBF9F6;
    --creme-fonce: #F3EEE7;
    --blanc: #FFFFFF;
    --encre: #14303A;
    --texte: #39505A;
    --dim: #56676E;
    --turquoise: #1F6B70;
    --turquoise-pale: #E3F1F2;
    --rouge: #D9232B;
    --rouge-fonce: #B01A21;
    --rouge-pale: #FBE9E9;
    --vert: #0A7350;
    --vert-pale: #E4F4EE;
    --or: #8A5A0B;
    --or-pale: #FBF0DA;
    --bordure: #E7E1D8;

    /* Formes */
    --r-s: 12px;
    --r-m: 18px;
    --r-l: 24px;
    --ombre: 0 8px 26px -10px rgba(20, 48, 58, .16);
    --ombre-forte: 0 18px 44px -18px rgba(20, 48, 58, .28);

    /* Textures (aucun fichier à charger) */
    --tex-grille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M30 0H0v30' fill='none' stroke='%2314303A' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
    --tex-points: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%2314303A' fill-opacity='.10'/%3E%3C/svg%3E");
    --tex-hachures: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-2 6 L6 -2 M0 14 L14 0 M6 14 L14 6' stroke='%23FFFFFF' stroke-opacity='.10' stroke-width='1.3'/%3E%3C/svg%3E");

    --max: 1120px;
}

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

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

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

body {
    margin: 0;
    background: var(--creme);
    color: var(--texte);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--encre);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }

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

a { color: var(--turquoise); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rouge); }

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

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

.conteneur {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 20px;
}

.saut-contenu {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--encre);
    color: #fff;
    padding: 12px 20px;
    z-index: 200;
    border-radius: 0 0 var(--r-s) 0;
}
.saut-contenu:focus { left: 0; color: #fff; }

.lecteur-seul {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: 600 .95rem/1.2 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primaire {
    background: var(--rouge) var(--tex-hachures);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(217, 35, 43, .9);
}
.btn-primaire:hover { background-color: var(--rouge-fonce); color: #fff; }

.btn-secondaire {
    background: var(--blanc);
    color: var(--encre);
    border-color: var(--bordure);
    box-shadow: var(--ombre);
}
.btn-secondaire:hover { color: var(--encre); border-color: #D5CCC0; }

.btn-fantome {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
}
.btn-fantome:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn-large { min-height: 54px; padding: 15px 30px; font-size: 1.03rem; }

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

.entete {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 246, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bordure);
}
@supports not (backdrop-filter: blur(10px)) {
    .entete { background: var(--creme); }
}

.entete-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--encre);
}
.logo-marque {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--turquoise) var(--tex-hachures);
    color: #fff;
    font: 800 1.02rem/1 'Outfit', sans-serif;
    letter-spacing: .02em;
}
.logo-texte { display: flex; flex-direction: column; }
.logo-nom { font: 700 1.04rem/1.2 'Outfit', sans-serif; letter-spacing: -.01em; }
.logo-sous { font-size: .76rem; color: var(--dim); line-height: 1.3; }

/* Logo fourni par l'association : il remplace le monogramme */
.logo-image img {
    height: 48px;
    width: auto;
    max-width: min(58vw, 380px);
    object-fit: contain;
}

/* Dans le pied de page sombre, le logo est posé sur une pastille claire */
.logo-pied {
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--r-m);
    line-height: 0;
}
.logo-pied img { height: 44px; width: auto; max-width: 250px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 9px 14px;
    border-radius: 11px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--texte);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--creme-fonce); color: var(--encre); }
.nav a[aria-current="page"] { background: var(--turquoise-pale); color: var(--turquoise); font-weight: 600; }

.entete .btn { margin-left: 8px; }

.burger {
    display: none;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 13px;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 19px; height: 2px;
    background: var(--encre);
    border-radius: 2px;
    position: relative;
}
.burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0;
    width: 19px; height: 2px; background: var(--encre); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

@media (max-width: 900px) {
    .burger { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 20px;
        background: var(--creme);
        border-bottom: 1px solid var(--bordure);
        box-shadow: var(--ombre);
    }
    .nav.ouvert { display: flex; }
    .nav a { padding: 13px 14px; font-size: 1rem; }
    .entete .btn { margin: 8px 0 0; width: 100%; }
    .logo-sous { display: none; }
    .logo-image img { height: 40px; }
}

@media (max-width: 480px) {
    .logo-image img { height: 32px; }
}

/* ---------- Héros ---------- */

.heros {
    position: relative;
    overflow: hidden;
    background:
        var(--tex-grille),
        radial-gradient(70% 120% at 15% 0%, #23757B 0%, #175C62 45%, #0F444A 100%);
    color: #fff;
    padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 108px);
}
/* Variante avec photo d'ambiance : le voile sombre garde le texte lisible
   (contraste mesuré au pire cas : blanc sur #2A3E5F, soit 8,4:1). */
.heros-photo {
    background-image:
        linear-gradient(155deg, rgba(12, 58, 63, .94) 0%, rgba(16, 74, 80, .80) 50%, rgba(12, 58, 63, .92) 100%),
        var(--photo);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.heros-photo::after { opacity: .55; }

.heros::after {
    content: "";
    position: absolute;
    right: -120px; top: -90px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 35, 43, .55), transparent 68%);
    filter: blur(22px);
    pointer-events: none;
}
.heros > * { position: relative; z-index: 1; }
.heros h1 { color: #fff; max-width: 15ch; }
.heros-texte { font-size: 1.1rem; color: rgba(255, 255, 255, .84); max-width: 56ch; margin-bottom: 28px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Le montant vit sous les boutons : un bouton doit rester court */
.heros-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .86);
}

.etiquette {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.etiquette .point {
    width: 8px; height: 8px; border-radius: 50%;
    background: #7BE3B4;
    box-shadow: 0 0 0 0 rgba(123, 227, 180, .7);
    animation: pulsation 2.4s infinite;
}
@keyframes pulsation {
    0%   { box-shadow: 0 0 0 0 rgba(123, 227, 180, .6); }
    70%  { box-shadow: 0 0 0 9px rgba(123, 227, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 227, 180, 0); }
}

/* Bandeau de chiffres sous le héros */
.chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 40px;
}
.chiffre {
    padding: 18px 20px;
    border-radius: var(--r-m);
    background: rgba(255, 255, 255, .1) var(--tex-hachures);
    border: 1px solid rgba(255, 255, 255, .2);
}
.chiffre-valeur { font: 800 1.6rem/1.1 'Outfit', sans-serif; color: #fff; }
.chiffre-label { font-size: .86rem; color: rgba(255, 255, 255, .8); margin-top: 4px; }

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

.section { padding: clamp(52px, 7vw, 84px) 0; }
.section-creme { background: var(--creme-fonce); }

.section-entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.section-entete p { color: var(--dim); max-width: 60ch; margin: 0; }
.section-entete h2 { margin-bottom: .25em; }

.sur-titre {
    display: block;
    font: 600 .78rem/1 'Inter', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rouge-fonce);
    margin-bottom: 12px;
}

.prose { max-width: 68ch; }
.prose-intro { color: var(--dim); }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--rouge);
    color: var(--encre);
    font-style: italic;
}

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

.grille {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.carte {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-l);
    box-shadow: var(--ombre);
    transition: transform .2s ease, box-shadow .2s ease;
}
.carte > * { position: relative; z-index: 1; }
a.carte, .carte-lien { text-decoration: none; color: inherit; }
a.carte:hover, .carte-cliquable:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }

.carte-corps { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte-corps h3 { margin: 0; }
.carte-texte { color: var(--dim); font-size: .95rem; margin: 0; }
.carte-pied {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.carte-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--creme-fonce) var(--tex-points);
    overflow: hidden;
}
.carte-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
a.carte:hover .carte-image img { transform: scale(1.04); }

.carte-vide {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--dim);
}

/* Carte d'événement : pastille de date */
.date-pastille {
    flex: 0 0 68px;
    width: 68px;
    padding: 10px 0;
    border-radius: var(--r-s);
    background: var(--turquoise-pale);
    text-align: center;
    line-height: 1.05;
}
.date-jour { display: block; font: 800 1.5rem/1 'Outfit', sans-serif; color: var(--turquoise); }
.date-mois {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--turquoise);
    margin-top: 3px;
}
.date-annee { display: block; font-size: .68rem; color: var(--dim); margin-top: 2px; }

.evenement { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.evenement-contenu { flex: 1; min-width: 0; }
.evenement-contenu h3 { margin: 0 0 6px; font-size: 1.1rem; }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .88rem;
    color: var(--dim);
    margin: 0;
}
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { flex: 0 0 15px; opacity: .75; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--creme-fonce);
    color: var(--texte);
}
.badge-vert  { background: var(--vert-pale); color: var(--vert); }
.badge-or    { background: var(--or-pale); color: var(--or); }
.badge-corail{ background: var(--rouge-pale); color: var(--rouge-fonce); }
.badge-bleu  { background: var(--turquoise-pale); color: var(--turquoise); }

.prix { font: 800 1.3rem/1 'Outfit', sans-serif; color: var(--encre); }

/* ---------- Bloc en vedette (cotisation) ---------- */

.bloc-vedette {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 48px);
    border-radius: var(--r-l);
    background: var(--tex-grille), linear-gradient(150deg, #FFFFFF 0%, #F6F1EA 100%);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre);
}
.bloc-vedette > * { position: relative; z-index: 1; }
.bloc-vedette::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -110px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 143, 99, .2), transparent 70%);
    filter: blur(14px);
}

.duo {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: center;
}

.liste-avantages { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-avantages li { display: flex; gap: 12px; align-items: flex-start; }
.liste-avantages .puce {
    flex: 0 0 26px;
    display: grid; place-items: center;
    width: 26px; height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--vert-pale);
    color: var(--vert);
}

/* ---------- Galerie ---------- */

.galerie-grille {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.galerie-vignette {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    padding: 0;
    border-radius: var(--r-m);
    overflow: hidden;
    background: var(--creme-fonce);
    cursor: zoom-in;
    box-shadow: var(--ombre);
}
.galerie-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galerie-vignette:hover img { transform: scale(1.05); }

.visionneuse {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    background: rgba(15, 20, 32, .93);
    padding: 24px;
}
.visionneuse[data-ouvert="1"] { display: grid; }
.visionneuse img {
    max-width: min(100%, 1200px);
    max-height: 82vh;
    border-radius: var(--r-m);
    object-fit: contain;
}
.visionneuse-legende {
    color: rgba(255, 255, 255, .88);
    text-align: center;
    margin-top: 14px;
    font-size: .94rem;
}
.visionneuse-btn {
    position: absolute;
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.visionneuse-btn:hover { background: rgba(255, 255, 255, .25); }
.visionneuse-fermer { top: 20px; right: 20px; }
.visionneuse-prec { left: 20px; top: 50%; transform: translateY(-50%); }
.visionneuse-suiv { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
    .visionneuse-prec { left: 10px; }
    .visionneuse-suiv { right: 10px; }
}

/* ---------- État vide ---------- */

.etat-vide {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 52px 24px;
    border: 1px dashed var(--bordure);
    border-radius: var(--r-l);
    background: var(--blanc) var(--tex-points);
    color: var(--dim);
}
.etat-vide-medaillon {
    display: grid; place-items: center;
    width: 78px; height: 78px;
    border-radius: 50%;
    background: var(--creme-fonce);
    border: 2px dashed #D9D0C4;
    color: var(--turquoise);
}
.etat-vide h3 { margin: 0; }
.etat-vide p { margin: 0; max-width: 46ch; }

/* ---------- Formulaire public (inscription à un événement) ---------- */

.form-public p { margin: 0 0 14px; }
.form-public label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--encre);
    margin-bottom: 6px;
}
.form-public label .option { font-weight: 400; color: var(--dim); }

.form-public input[type="text"],
.form-public input[type="email"],
.form-public input[type="number"],
.form-public textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bordure);
    border-radius: 12px;
    background: var(--blanc);
    color: var(--texte);
    font: inherit;
    font-size: 1rem;
}
.form-public input:focus, .form-public textarea:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(31, 107, 112, .16);
}
.form-public textarea { resize: vertical; line-height: 1.55; }

/* Champ piège à robots : hors écran, jamais rempli par un humain */
.champ-piege { position: absolute; left: -9999px; }

/* ---------- Encart HelloAsso ---------- */

.encart-paiement {
    border: 1px solid var(--bordure);
    border-radius: var(--r-l);
    background: var(--blanc);
    box-shadow: var(--ombre);
    overflow: hidden;
}
.encart-paiement iframe {
    display: block;
    width: 100%;
    min-height: 750px; /* hauteur de départ ; le script l'ajuste au contenu réel */
    border: 0;
}
.encart-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 18px;
    font-size: .88rem;
    color: var(--dim);
    background: var(--creme-fonce);
    border-top: 1px solid var(--bordure);
}

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

.pied {
    background: var(--tex-grille), linear-gradient(180deg, #1A5A60 0%, #12444A 100%);
    color: rgba(255, 255, 255, .76);
    padding: 56px 0 26px;
    margin-top: 0;
}
.pied a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.pied-grille {
    display: grid;
    gap: 34px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    margin-bottom: 36px;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.pied-bas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .85rem;
}
.pied .logo-nom, .pied .logo { color: #fff; }
.pied .logo-sous { color: rgba(255, 255, 255, .66); display: block; }
.reseaux { display: flex; gap: 10px; margin-top: 16px; }
.reseaux a {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}
.reseaux a:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Messages ---------- */

.message {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: var(--r-m);
    border: 1px solid;
    font-size: .95rem;
}
.message-success { background: var(--vert-pale); border-color: #B9E2D2; color: #0A6B4B; }
.message-error   { background: var(--rouge-pale); border-color: #F5C7BA; color: #96341D; }
.message-info    { background: var(--turquoise-pale); border-color: #C8D8F0; color: var(--turquoise); }

/* ---------- Page interne (titre) ---------- */

.entete-page {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 68px) 0 clamp(34px, 5vw, 54px);
    background: var(--tex-grille), linear-gradient(160deg, #FFFFFF 0%, var(--creme-fonce) 100%);
    border-bottom: 1px solid var(--bordure);
}
.entete-page > * { position: relative; z-index: 1; }
.entete-page::after {
    content: "";
    position: absolute;
    right: -60px; top: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 107, 112, .16), transparent 70%);
    filter: blur(16px);
}
.entete-page p { color: var(--dim); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.entete-page h1 { margin-bottom: .2em; }

.montant-cotisation {
    font: 800 clamp(1.25rem, 3vw, 1.65rem)/1.25 'Outfit', sans-serif;
    color: var(--rouge-fonce);
    margin: 0 0 .35em;
}
.entete-page.avec-photo .montant-cotisation { color: #FFD0C4; }

/* Variante avec bandeau photo. Voile sombre à 78 % minimum : au pire cas
   (photo entièrement blanche) le blanc reste à 11,4:1 et le texte
   secondaire à 8,6:1. */
.entete-page.avec-photo {
    background-image:
        linear-gradient(150deg, rgba(12, 58, 63, .92) 0%, rgba(16, 74, 80, .78) 55%, rgba(12, 58, 63, .92) 100%),
        var(--photo);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border-bottom: 0;
}
.entete-page.avec-photo h1 { color: #fff; }
.entete-page.avec-photo p,
.entete-page.avec-photo .fil,
.entete-page.avec-photo .fil a,

.entete-page.avec-photo .prose-intro { color: rgba(255, 255, 255, .86); }
.entete-page.avec-photo .sur-titre { color: #FFC9B8; }
.entete-page.avec-photo .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.entete-page.avec-photo .badge-vert { background: rgba(123, 227, 180, .22); color: #C8F5E2; }
.entete-page.avec-photo .badge-bleu { background: rgba(255, 255, 255, .16); color: #DCE7FA; }
.entete-page.avec-photo::after { opacity: .45; }

.fil { font-size: .86rem; color: var(--dim); margin-bottom: 16px; }
.fil a { color: var(--dim); }

/* ---------- Animation d'entrée ---------- */

.apparition { animation: monteeDouce .38s ease both; }
.apparition:nth-child(2) { animation-delay: .05s; }
.apparition:nth-child(3) { animation-delay: .1s; }
.apparition:nth-child(4) { animation-delay: .15s; }
@keyframes monteeDouce {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

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

/* ---------- Impression ---------- */

@media print {
    .entete, .pied, .heros-actions, .burger { display: none !important; }
    body { background: #fff; }
    .carte { box-shadow: none; border-color: #ccc; }
}
