/* ============================================================
   PAPOTES CLUB — Feuille de style
   Univers inspiré de Pocket Towns : pastels, nuages dessinés
   à la main, typographies rondes et chaleureuses.
   Mobile first : les media queries élargissent vers le desktop.
   ============================================================ */

:root {
    /* Palette du brief client (Papotes Coffee Club) */
    --creme:       #f4f0e7;   /* fond principal */
    --papier:      #f4eddb;   /* cartes postales, post-it */
    --rose:        #ec8bb0;   /* rose principal : boutons, liens, dates actives */
    --rose-fonce:  #d9709c;
    --rose-clair:  #ecbfc6;   /* rose poudré : accents secondaires */
    --rose-pale:   #fbeef1;
    --tampon:      #d65d7a;   /* détails "machine à écrire" */
    --ligne:       #e3dacb;   /* filets */
    --encre:       #2b2620;
    --gris:        #7a7168;
    --blanc:       #ffffff;
    --vert:        #4caf7d;
    /* Compatibilité : anciens noms encore utilisés par l'admin */
    --bleu:        #d9709c;
    --bleu-fonce:  #b95983;
    --bleu-pale:   #f4eddb;
    --corail:      #ec8bb0;
    --police-script: 'Caveat', cursive;        /* signature manuscrite */
    --police-titres: 'Archivo Black', sans-serif; /* titres d'impact */
    --police-sous-titre: 'Playfair Display', serif; /* italiques élégants */
    --police-machine: 'Special Elite', monospace;   /* détails machine à écrire */
    --police-manuscrite: 'Caveat', cursive;
    --police-texte: 'Work Sans', sans-serif;
    --police-menu: 'Playfair Display', serif;
    --ombre: 0 6px 24px rgba(43, 38, 32, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--police-texte);
    color: var(--encre);
    background-color: var(--creme);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--bleu); }
code { background: var(--bleu-pale); padding: 0.1em 0.4em; border-radius: 6px; }

/* ---------- Boutons nuage ---------- */
.btn {
    display: inline-block;
    font-family: var(--police-titres);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.05) rotate(-1deg); }

/* Boutons du brief : pastilles roses arrondies, sobres */
.btn { font-family: var(--police-texte); font-weight: 600; }
.btn-nuage {
    padding: 0.7em 1.6em;
    border-radius: 30px;
    color: var(--blanc);
    box-shadow: 0 3px 12px rgba(43, 38, 32, 0.12);
}
.btn-nuage:hover { transform: scale(1.04); }
.btn-bleu {
    background: var(--rose-fonce);
    border: none;
}
.btn-corail {
    background: var(--rose);
    border: none;
}
.btn-blanc {
    background: var(--blanc);
    border: 1.5px solid var(--rose);
    color: var(--rose-fonce);
}
.btn-grand { font-size: 1.15rem; padding: 1em 2.4em; }

/* Petits boutons rectangulaires (admin, actions secondaires) */
.btn-petit {
    display: inline-block;
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    border: 2px solid var(--bleu);
    background: var(--blanc);
    color: var(--bleu);
    text-decoration: none;
    cursor: pointer;
}
.btn-petit:hover { background: var(--bleu-pale); }
.btn-danger { border-color: var(--corail); color: var(--corail); }
.btn-danger:hover { background: var(--rose-pale); }
.btn-valide { border-color: var(--vert); color: var(--vert); }
.btn-valide:hover { background: #eaf6f0; }

.btn-rond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--blanc);
    box-shadow: var(--ombre);
    color: var(--corail);
    font-size: 1.6rem;
    text-decoration: none;
    font-family: var(--police-titres);
}
.btn-rond:hover { background: var(--rose-pale); }

/* ---------- En-tête ---------- */
.entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--blanc);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid var(--rose-clair);
}

.logo { text-decoration: none; text-align: center; line-height: 1; }
.logo-haut {
    /* Signature manuscrite Caveat (logo officiel en attendant le SVG) */
    display: block;
    font-family: var(--police-script);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--rose);
}
.logo-bas {
    display: block;
    font-family: var(--police-titres);
    font-weight: 700;
    font-size: 0.78rem;
    color: #ec8bb0;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav { display: none; }
.nav a {
    font-family: var(--police-menu);
    font-style: italic;
    font-weight: 400;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: var(--encre);
    text-decoration: none;
    padding: 0.3em 0.7em;
    border-radius: 999px;
}
.nav a:hover, .nav a.actif { background: var(--rose-pale); color: var(--corail); }

.entete-actions { display: flex; align-items: center; gap: 0.8rem; }
.entete-actions .btn-nuage { padding: 0.6em 1.4em; font-size: 0.9rem; }
.lien-admin {
    font-family: var(--police-titres);
    font-weight: 600;
    color: var(--gris);
    text-decoration: none;
}
.lien-admin:hover { color: var(--bleu); }
.bouton-deconnexion {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
}

/* Burger (mobile) */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.burger span {
    width: 26px; height: 3px;
    background: var(--encre);
    border-radius: 3px;
    transition: all 0.2s;
}
body.menu-ouvert .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blanc);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--ombre);
    gap: 0.3rem;
}

/* Sélecteur de langue */
.langues { display: inline-flex; gap: 0.2rem; align-items: center; margin-left: 0.4rem; }
.langues a {
    font-family: var(--police-titres);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gris);
    text-decoration: none;
    padding: 0.2em 0.45em;
    border-radius: 8px;
}
.langues a:hover, .langues a.actif { background: var(--rose-pale); color: var(--corail); }

/* Pastille (compteur de messages non lus) */
.pastille {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--corail);
    color: var(--blanc);
    font-size: 0.75rem;
    text-align: center;
}

/* ---------- Messages flash ---------- */
.flash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem auto;
    max-width: 640px;
    padding: 0.9rem 1.3rem;
    border-radius: 18px;
    font-weight: 600;
    box-shadow: var(--ombre);
}
.flash-succes { background: #e3f4ea; color: #1e6b43; }
.flash-erreur { background: var(--rose-pale); color: var(--corail); }
.flash-info   { background: var(--bleu-pale); color: var(--bleu-fonce); }
.flash button {
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer;
    color: inherit; line-height: 1;
}

/* ---------- Sections ---------- */
.section { padding: 3rem 1.2rem; position: relative; }
.section-interieur { max-width: 1080px; margin: 0 auto; }
.section-etroite { max-width: 640px; }
.texte-centre { text-align: center; }

.section-bleue {
    background: var(--papier);
    color: var(--encre);
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    margin: 2.5rem 0;
}
.section-rose { background: var(--rose-pale); }

.vague {
    position: absolute;
    left: 0; right: 0;
    width: 100%; height: 40px;
    pointer-events: none;
}
.vague-haut { top: -38px; transform: rotate(180deg); }
.vague-bas  { bottom: -38px; transform: rotate(180deg); }
.section-bleue .vague-haut path, .section-bleue .vague-bas path { fill: var(--bleu); }
.pied .vague path { fill: var(--bleu); }

/* ---------- Titres ---------- */
.titre-page {
    font-family: var(--police-titres);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.9rem;
    color: var(--encre);
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.sous-titre-page {
    text-align: center;
    color: var(--gris);
    font-family: var(--police-sous-titre);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}
.titre-section {
    font-family: var(--police-titres);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.45rem;
    color: var(--encre);
    text-align: center;
    margin-bottom: 1.6rem;
}
.titre-blanc { color: var(--encre); }

/* ---------- Héro ---------- */
.hero {
    position: relative;
    padding: 3.5rem 1.2rem 3rem;
    text-align: center;
    overflow: hidden;
}
.hero-sur-titre {
    font-family: var(--police-manuscrite);
    font-size: 1.7rem;
    color: var(--corail);
    transform: rotate(-3deg);
}
.hero-titre {
    /* Grand titre manuscrit en Beth Ellen (choix de Robin) */
    font-family: 'Beth Ellen', cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.35;
    margin: 0.3rem 0 1.2rem;
    transform: rotate(-2deg);
}
.hero-titre-rose { color: #ec8bb0; }
.hero-titre-bleu { color: #ecbfc6; }

/* Autocollants décoratifs (ovale rose « Bienvenue au club », étoiles) */
.sticker {
    display: inline-block;
    font-family: var(--police-manuscrite);
    font-weight: 700;
    font-size: 1.15rem;
    background: var(--rose-clair);
    color: var(--bleu);
    border: 2px solid var(--blanc);
    border-radius: 50% / 45%;
    padding: 0.7em 1.5em;
    transform: rotate(-6deg);
    box-shadow: 0 4px 12px rgba(126, 33, 64, 0.15);
}
.etoile-deco {
    position: absolute;
    font-size: 1.6rem;
    color: var(--corail);
    pointer-events: none;
}
.hero-texte { max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.08rem; }

/* Héro avec photo de fond (définie dans Admin → Contenus) */
.hero-photo {
    background-size: cover;
    background-position: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.hero-photo::before {
    /* Voile crème pour garder le titre lisible sur la photo */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 240, 231, 0.2) 0%, rgba(244, 240, 231, 0.7) 100%);
}
.hero-photo .hero-contenu,
.hero-photo .etoile-deco { position: relative; z-index: 1; }
.hero-photo .hero-texte { font-weight: 700; }
.hero-image {
    max-width: min(720px, 100%);
    margin: 2.2rem auto 0;
    border-radius: 24px;
    border: 3px solid var(--rose-clair);
    box-shadow: var(--ombre);
}
.bandeau-image {
    max-width: 100%;
    border-radius: 20px;
    border: 3px solid var(--rose-clair);
}
.hero-boutons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.nuage-deco { position: absolute; width: 110px; opacity: 0.9; }
.nuage-deco-gauche { left: -20px; top: 30px; transform: rotate(-8deg); }
.nuage-deco-droite { right: -15px; bottom: 20px; transform: rotate(6deg); }

/* ---------- Galerie « polaroids » (accueil) ---------- */
.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
}
.polaroid {
    background: var(--blanc);
    padding: 10px 10px 26px;
    box-shadow: 0 8px 24px rgba(126, 33, 64, 0.18);
    border-radius: 6px;
    max-width: 240px;
    transition: transform 0.2s ease;
}
.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
}
.polaroid-0 { transform: rotate(-4deg); }
.polaroid-1 { transform: rotate(3deg); }
.polaroid-2 { transform: rotate(-2deg); }
.polaroid-3 { transform: rotate(5deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.06); z-index: 2; }

/* ---------- Étapes (comment ça marche) ---------- */
.etapes { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.etape {
    background: var(--blanc);
    border: 1px solid var(--ligne);
    border-radius: 16px;
    padding: 1.6rem;
    text-align: center;
}
.etape-emoji { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.etape-photo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--blanc);
    margin: 0 auto 0.7rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.etape h3 { font-family: var(--police-titres); font-size: 1.2rem; margin-bottom: 0.4rem; }

/* ---------- Cartes d'événements ---------- */
.grille-evenements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2rem 1.8rem;
}
.carte-evenement {
    background: var(--blanc);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: var(--encre);
    box-shadow: var(--ombre);
    border: 3px solid var(--rose-clair);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
}
.carte-evenement:hover { transform: translateY(-4px) rotate(-0.5deg); }

.carte-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-pale);
    overflow: hidden;
}
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-emoji { font-size: 3.6rem; }

/* Couleur de fond selon le type (quand il n'y a pas de photo) */
.carte-photo-art        { background: var(--rose-pale); }
.carte-photo-randonnee  { background: #e6f2e4; }
.carte-photo-atelier    { background: #fdf1dc; }
.carte-photo-kids       { background: var(--bleu-pale); }
.carte-photo-soiree     { background: #f3eafd; }
.carte-photo-sport      { background: #e2f4f4; }
.carte-photo-culture    { background: #fdeede; }

.etiquette-type {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--blanc);
    color: var(--corail);
    font-family: var(--police-titres);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2em 0.9em;
    border-radius: 999px;
    border: 2px solid var(--rose-clair);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-photo .carte-emoji { font-size: 5rem; }

.carte-infos { padding: 1.1rem 1.3rem 1.3rem; }
.carte-date { font-size: 0.9rem; color: var(--gris); font-weight: 700; }
.carte-titre {
    font-family: var(--police-titres);
    font-size: 1.25rem;
    color: var(--bleu);
    margin: 0.25rem 0;
    line-height: 1.25;
}
.carte-lieu { font-size: 0.92rem; color: var(--encre); }

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15em 0.8em;
    border-radius: 999px;
}
.badge-complet { background: var(--rose-pale); color: var(--corail); }
.badge-places  { background: var(--bleu-pale); color: var(--bleu); }
.badge-present { background: #e3f4ea; color: #1e6b43; }

/* ---------- Fil d'étapes de l'inscription ---------- */
.etapes-fil {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto 2rem;
    max-width: 480px;
}
.etapes-fil li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}
/* Trait entre les étapes */
.etapes-fil li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 3px;
    border-radius: 3px;
    background: var(--rose-clair);
}
.etapes-fil .etape-rond {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--police-titres);
    font-weight: 700;
    background: var(--blanc);
    border: 3px solid var(--rose-clair);
    color: var(--gris);
}
.etapes-fil .etape-libelle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gris);
    text-align: center;
}
.etapes-fil .etape-active .etape-rond {
    background: var(--corail);
    border-color: var(--corail);
    color: var(--blanc);
}
.etapes-fil .etape-active .etape-libelle { color: var(--corail); }
.etapes-fil .etape-faite .etape-rond {
    background: var(--rose-clair);
    border-color: var(--rose-clair);
    color: var(--blanc);
}

/* ---------- Carte teaser (visiteurs) et popup ---------- */
.carte-teaser {
    font: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
    width: 100%;
}
.carte-teaser .carte-photo,
.carte-teaser .carte-infos,
.carte-teaser .carte-titre { display: block; }
.carte-teaser .carte-photo { display: flex; }
.carte-verrou {
    display: block;
    margin-top: 0.5rem;
    color: var(--gris);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Indispensable : l'attribut hidden doit gagner sur le display:flex ci-dessous */
.popup-fond[hidden] { display: none; }
.popup-fond {
    position: fixed;
    inset: 0;
    background: rgba(44, 58, 107, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}
.popup {
    position: relative;
    background: var(--creme);
    border: 3px solid var(--rose-clair);
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(44, 58, 107, 0.35);
}
.popup-fermer {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--corail);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--ombre);
    z-index: 2;
}
.popup-photo {
    height: 210px;
    border-radius: 24px 24px 0 0;
    background-color: var(--bleu-pale);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-photo .carte-emoji { font-size: 4.2rem; }
.popup-corps {
    padding: 1.5rem 1.8rem 2rem;
    display: grid;
    gap: 0.9rem;
    justify-items: start;
}
.popup-corps .etiquette-type { position: static; }
.popup-titre {
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bleu);
    line-height: 1.2;
}
.popup-description {
    white-space: pre-line;
    max-height: 180px;
    overflow-y: auto;
}
.popup-tarif {
    font-weight: 800;
    color: var(--corail);
}
.popup-verrou {
    background: var(--rose-pale);
    color: var(--corail);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6em 1em;
    border-radius: 14px;
}

/* ---------- Filtres et bascule liste/calendrier ---------- */
.bascule-vues {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--blanc);
    border-radius: 20px;
    padding: 1.1rem 1.3rem;
    box-shadow: var(--ombre);
    margin-bottom: 2rem;
}
.filtres label { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 140px; }
.filtres label span { font-weight: 700; font-size: 0.85rem; color: var(--gris); }
.filtres select, .filtres input {
    font-family: var(--police-texte);
    font-size: 1rem;
    padding: 0.55em 0.9em;
    border: 2px solid var(--rose-clair);
    border-radius: 14px;
    background: var(--blanc);
    color: var(--encre);
}

/* ---------- Pastilles de public (PAPOTES / KIDS / POTES) ---------- */
.pill-public {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--police-texte);
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 0.3em 1.1em;
    border-radius: 999px;
    border: 1.5px solid;
    text-transform: uppercase;
    white-space: nowrap;
}
.pill-papotes { background: #e75d94; border-color: #a63e69; color: #fff; }
.pill-kids    { background: #f3bcc9; border-color: #cf8ba0; color: #7e2140; }
.pill-potes   { background: #d9b8f5; border-color: #9c6cc9; color: #4d2470; }

.calendrier-legende {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 0.8rem;
}

/* ---------- Calendrier ---------- */
.calendrier-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.calendrier-mois {
    font-family: var(--police-menu);
    font-weight: 400;
    font-size: 2rem;
    color: var(--encre);
    min-width: 220px;
    text-align: center;
}
/* Grille défilante horizontalement sur petit écran */
.calendrier-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calendrier { min-width: 640px; }

/* Grille façon agenda papier (référence graphique de Robin) */
.calendrier { border: 1px solid #d8d2c6; border-top: none; }
.calendrier-grille {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.calendrier-entete {
    text-align: center;
    font-family: var(--police-texte);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a7267;
    font-size: 0.7rem;
    padding: 0.7em 0;
    border: 1px solid #d8d2c6;
    border-width: 1px 0 0 1px;
    background: #efebe1;
}
.calendrier-grille > :nth-child(7n+1) { border-left: none; }
.calendrier-case {
    background: transparent;
    border: 1px solid #d8d2c6;
    border-width: 1px 0 0 1px;
    border-radius: 0;
    min-height: 112px;
    padding: 8px;
    box-shadow: none;
}
.calendrier-case-vide { background: rgba(255, 255, 255, 0.35); }
.calendrier-aujourdhui { outline: 2px solid var(--corail); outline-offset: -2px; }
.calendrier-numero {
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: 0.8rem;
    color: #8a8378;
}
.calendrier-evenement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    margin-top: 8px;
}
.calendrier-evenement-titre {
    font-family: var(--police-manuscrite);
    font-size: 1.05rem;
    line-height: 1.1;
    color: #3d3830;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendrier-evenement:hover .calendrier-evenement-titre { color: var(--corail); }
.liste-mois-mobile { margin-top: 0.4rem; }
.liste-mois-mobile .pill-public { margin-right: 0.4rem; }
.liste-mois { list-style: none; }
.liste-mois li { margin-bottom: 0.6rem; }
.liste-mois a {
    display: block;
    background: var(--blanc);
    border-radius: 14px;
    padding: 0.8rem 1.1rem;
    text-decoration: none;
    color: var(--encre);
    box-shadow: var(--ombre);
}
.liste-mois a:hover { background: var(--rose-pale); }
.liste-mois strong { color: var(--corail); }
.liste-mois-ville { color: var(--gris); font-size: 0.9rem; }

/* ---------- Détail événement ---------- */
.detail-evenement { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.detail-photo {
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid var(--rose-clair);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { list-style: none; margin: 1.2rem 0; display: grid; gap: 0.5rem; }
.detail-description { white-space: pre-line; margin-bottom: 1.6rem; }
.detail-actions { display: grid; gap: 0.8rem; justify-items: start; }
.note { color: var(--gris); font-size: 0.92rem; }
.note-succes { color: #1e6b43; font-weight: 700; }

/* ---------- Formulaires ---------- */
.formulaire {
    background: var(--blanc);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--ombre);
    display: grid;
    gap: 1.2rem;
}
.champ { display: grid; gap: 0.35rem; align-content: start; }

/* Date de naissance : les trois listes Jour / Mois / Année côte à côte */
.date-naissance { display: flex; gap: 0.6rem; }
.date-naissance select { flex: 1; min-width: 0; width: auto; }
.champ label, .champ legend {
    font-weight: 700;
    font-size: 0.95rem;
}
.champ small { color: var(--gris); font-weight: 400; }
.champ input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.champ select, .champ textarea {
    font-family: var(--police-texte);
    font-size: 1rem;
    padding: 0.65em 1em;
    border: 2px solid var(--rose-clair);
    border-radius: 14px;
    width: 100%;
    background: var(--blanc);
    color: var(--encre);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none;
    border-color: var(--bleu);
}
.champ input[disabled] { background: var(--creme); color: var(--gris); }
.champ-duo { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.champ-radios { border: none; }
.champ-radios label {
    font-weight: 400;
    margin-right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.erreur { color: var(--corail); font-size: 0.87rem; font-weight: 700; }

.champ-cases { border: none; }
.cases-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.case-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--creme);
    border: 2px solid var(--rose-clair);
    border-radius: 999px;
    padding: 0.4em 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}
.case-type:has(input:checked) {
    background: var(--rose-pale);
    border-color: var(--rose);
    color: var(--corail);
}
.case-type input { accent-color: var(--corail); }

.champ-photo { display: flex; gap: 1.2rem; align-items: center; }
.champ-mdp summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--bleu);
}
.champ-mdp[open] summary { margin-bottom: 1rem; }
.champ-miel { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Avatars ---------- */
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rose-clair);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--police-titres);
    font-weight: 700;
    color: var(--blanc);
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-grand { width: 84px; height: 84px; font-size: 1.6rem; border: 3px solid var(--rose-clair); }

/* ---------- Espace membre ---------- */
.profil-entete {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.tuiles {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
    margin: 1.5rem 0 2.5rem;
}
.tuile {
    border-radius: 22px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: var(--ombre);
}
.tuile-rose  { background: var(--rose-pale); }
.tuile-bleue { background: var(--bleu-pale); }
.tuile-creme { background: var(--blanc); border: 3px dashed var(--rose-clair); }
.tuile-solo  { max-width: 320px; margin: 0 auto 2rem; }
.tuile-valeur {
    display: block;
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--corail);
    line-height: 1;
}
.tuile-bleue .tuile-valeur { color: var(--bleu); }
.tuile-libelle { display: block; font-weight: 700; margin-top: 0.3rem; }
.tuile-lien { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; }

.liste-participations { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 2.5rem; }
.liste-participations a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--blanc);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--encre);
    box-shadow: var(--ombre);
}
.liste-participations a:hover { background: var(--rose-pale); }
.liste-emoji { font-size: 1.6rem; }
.liste-texte { flex: 1; }
.liste-historique a { opacity: 0.85; }

/* ---------- Participants d'un événement ---------- */
.participants { margin: 1.6rem 0; }
.participants-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0.8rem 0;
}
.participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--encre);
    font-size: 0.85rem;
    font-weight: 700;
    width: 64px;
}
.participant .avatar { width: 52px; height: 52px; }
.participant:hover { color: var(--corail); }

/* ---------- Messagerie ---------- */
.conversations { list-style: none; display: grid; gap: 0.7rem; }
.conversations a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--blanc);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--encre);
    box-shadow: var(--ombre);
}
.conversations a:hover { background: var(--rose-pale); }
.conversation-non-lue { border-left: 5px solid var(--corail); }
.conversation-texte { flex: 1; min-width: 0; }
.conversation-texte small {
    color: var(--gris);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-meta { text-align: right; display: grid; gap: 0.3rem; justify-items: end; }

.fil-messages {
    display: grid;
    gap: 0.7rem;
    margin: 1.5rem 0;
}
.bulle {
    max-width: 80%;
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    box-shadow: var(--ombre);
}
.bulle p { white-space: pre-line; }
.bulle small { color: var(--gris); font-size: 0.75rem; }
.bulle-moi {
    justify-self: end;
    background: var(--rose-pale);
    border-bottom-right-radius: 4px;
}
.bulle-autre {
    justify-self: start;
    background: var(--blanc);
    border-bottom-left-radius: 4px;
}
.envoi-message {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}
.envoi-message textarea {
    flex: 1;
    font-family: var(--police-texte);
    font-size: 1rem;
    padding: 0.65em 1em;
    border: 2px solid var(--rose-clair);
    border-radius: 14px;
    resize: vertical;
}
.envoi-message textarea:focus { outline: none; border-color: var(--bleu); }

/* ---------- Gamification : récompenses et jauge ---------- */
.recompenses-grille {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
    .recompenses-grille { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.recompense {
    background: var(--blanc);
    border: 3px dashed var(--rose-clair);
    border-radius: 20px;
    padding: 1.3rem;
    text-align: center;
    display: grid;
    gap: 0.6rem;
    justify-items: center;
}
.recompense-ok { border-style: solid; border-color: var(--rose); }
.recompense-nom { font-weight: 700; }
.recompense-cout {
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--corail);
}
.jauge {
    width: 100%;
    max-width: 220px;
    height: 12px;
    background: var(--rose-pale);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.3rem auto;
}
.jauge-barre {
    height: 100%;
    background: linear-gradient(90deg, var(--rose) 0%, var(--corail) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ---------- Classement ---------- */
.classement { list-style: none; display: grid; gap: 0.7rem; }
.classement-ligne {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--blanc);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    box-shadow: var(--ombre);
}
.classement-podium { border: 3px solid var(--rose-clair); background: var(--rose-pale); }
.classement-rang {
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 1.3rem;
    min-width: 2.2rem;
    text-align: center;
}
.classement-nom { flex: 1; display: grid; }
.classement-nom small { color: var(--gris); }
.classement-solde {
    font-family: var(--police-titres);
    font-weight: 800;
    color: var(--corail);
    font-size: 1.1rem;
}

/* ---------- Cotisation ---------- */
.carte-cotisation {
    background: var(--blanc);
    border-radius: 28px;
    border: 3px solid var(--rose-clair);
    box-shadow: var(--ombre);
    padding: 2.2rem 1.8rem;
    display: grid;
    gap: 1rem;
    justify-items: center;
}
.cotisation-emoji { font-size: 3rem; }
.carte-cotisation h2 { font-family: var(--police-titres); color: var(--bleu); }
.cotisation-montant {
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 3rem;
    color: var(--corail);
    line-height: 1;
}

/* ---------- Tableaux ---------- */
.tableau-defilant { overflow-x: auto; }
.tableau {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanc);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ombre);
}
.tableau th, .tableau td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
}
.tableau thead th {
    background: var(--bleu-pale);
    font-family: var(--police-titres);
    color: var(--bleu);
    font-size: 0.9rem;
    white-space: nowrap;
}
.tableau tbody tr { border-top: 1px solid var(--creme); }
.tableau tbody tr:hover { background: var(--creme); }
.ligne-passee { opacity: 0.55; }
.colonne-droite { text-align: right; }
.colonne-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gain { color: #1e6b43; }
.perte { color: var(--corail); }

/* ---------- États vides ---------- */
.vide {
    text-align: center;
    padding: 2.5rem 1rem;
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    color: var(--gris);
}
.vide span { font-size: 3rem; }

/* ---------- Bandeau adhésion ---------- */
.bandeau-adhesion {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    grid-template-columns: 1fr;
}
.bandeau-adhesion p { margin: 0.8rem 0 1.4rem; }
.bandeau-emoji { font-size: 5rem; text-align: center; }

/* ---------- Pied de page ---------- */
.pied {
    position: relative;
    background: var(--papier);
    color: var(--encre);
    border-top: 1px solid var(--ligne);
    margin-top: 4rem;
    padding: 2.5rem 1.2rem 2rem;
    text-align: center;
}
.vague-pied { position: absolute; top: -38px; left: 0; height: 40px; width: 100%; }
.pied-copyright { font-family: var(--police-titres); font-weight: 700; }
.pied-slogan { font-family: var(--police-manuscrite); font-weight: 700; font-size: 1.7rem; color: var(--rose); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: 1rem; }
.pied-liens a { color: var(--encre); text-decoration: none; font-weight: 500; }
.pied-liens a:hover { color: var(--rose-fonce); }

/* ---------- Admin ---------- */
.corps-admin { background: #f6f4ee; }
.entete-admin { border-bottom-color: var(--bleu-pale); }
.admin-main { max-width: 1150px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.admin-main .titre-page { text-align: left; font-size: 1.7rem; }
.admin-entete-page {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}
.admin-colonnes { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.panneau {
    background: var(--blanc);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--ombre);
}
.panneau h2 {
    font-family: var(--police-titres);
    font-size: 1.15rem;
    color: var(--bleu);
    margin-bottom: 0.9rem;
    margin-top: 1.2rem;
}
.panneau h2:first-child { margin-top: 0; }
.liste-simple { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.liste-simple a { text-decoration: none; color: var(--encre); }
.liste-simple a:hover strong { color: var(--corail); }

/* Graphique en barres (statistiques) */
.graphique-barres {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    min-height: 160px;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}
.barre-groupe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 44px;
}
.barre {
    width: 28px;
    background: linear-gradient(180deg, var(--rose) 0%, var(--rose-clair) 100%);
    border-radius: 8px 8px 0 0;
}
.barre-valeur { font-size: 0.8rem; font-weight: 700; color: var(--gris); }
.barre-libelle { font-size: 0.78rem; color: var(--gris); }

/* Messages de contact (admin) */
.liste-messages { display: grid; gap: 1.2rem; }
.message-nouveau { border-left: 5px solid var(--corail); }
.message-entete {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}
.message-corps {
    background: var(--creme);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.9rem;
}

/* ============================================================
   Desktop (à partir de 720 px)
   ============================================================ */
@media (min-width: 720px) {
    .burger { display: none; }
    .nav { display: flex; gap: 0.4rem; }

    .etapes { grid-template-columns: repeat(3, 1fr); }
    .champ-duo { grid-template-columns: 1fr 1fr; }
    .tuiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .admin-colonnes { grid-template-columns: 1fr 1fr; }
    .detail-evenement { grid-template-columns: 5fr 6fr; align-items: start; }
    .bandeau-adhesion { grid-template-columns: 2fr 1fr; }


}

@media (min-width: 720px) {
    .liste-mois-mobile { display: none; }
}






/* ============================================================
   Scrapbook : cartes polaroid et page détail d'un événement
   ============================================================ */
.scotch {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    width: 92px;
    height: 26px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.carte-polaroid {
    position: relative;
    display: block;
    width: 250px;
    background: var(--blanc);
    padding: 10px 10px 18px;
    box-shadow: 0 8px 24px rgba(126, 33, 64, 0.18);
    text-decoration: none;
    color: var(--encre);
    font: inherit;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}
.carte-polaroid:nth-child(4n+1) { transform: rotate(-3deg); }
.carte-polaroid:nth-child(4n+2) { transform: rotate(2deg); }
.carte-polaroid:nth-child(4n+3) { transform: rotate(-1.5deg); }
.carte-polaroid:nth-child(4n)   { transform: rotate(3deg); }
.carte-polaroid:hover { transform: rotate(0deg) scale(1.05); z-index: 2; }
.carte-polaroid img,
.carte-polaroid .polaroid-vide {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.carte-polaroid .pill-public {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}
.carte-polaroid-titre {
    display: block;
    font-family: var(--police-manuscrite);
    font-size: 1.5rem;
    line-height: 1.1;
    color: #2f2a24;
    padding-top: 0.7rem;
}
.carte-polaroid-infos {
    display: block;
    font-family: var(--police-machine);
    font-size: 0.76rem;
    color: #6b625a;
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* Page détail : volet polaroid + fiche épinglée */
.detail-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .detail-split { grid-template-columns: 1fr 1fr; min-height: 76vh; }
}
.detail-gauche {
    background: var(--creme);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
}
.polaroid-detail {
    position: relative;
    max-width: 340px;
    width: 100%;
    transform: rotate(-3deg);
}
.polaroid-vide { display: block; width: 100%; aspect-ratio: 1 / 1; }
.polaroid-titre {
    font-family: var(--police-manuscrite);
    font-size: 1.8rem;
    line-height: 1.15;
    text-align: center;
    color: #2f2a24;
    padding: 0.9rem 0.4rem 0.3rem;
}
.detail-droite {
    position: relative;
    background: var(--bleu);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}
.detail-droite::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--fond);
    background-size: cover;
    background-position: center;
    filter: grayscale(1) contrast(0.95);
}
.detail-droite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(40, 25, 30, 0.35);
}
.note-epinglee {
    position: relative;
    z-index: 1;
    background: #f8f3e2;
    max-width: 440px;
    width: 100%;
    padding: 2.4rem 2.1rem 2rem;
    transform: rotate(1.5deg);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    font-family: var(--police-machine);
    color: #2c2620;
}
.scotch-note { top: -15px; }
.note-etiquettes { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.4rem; }
.note-epinglee .etiquette-type { position: static; }
.note-section { margin-bottom: 1.25rem; }
.note-section h3 {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.note-section p { font-size: 0.92rem; line-height: 1.55; }
.note-verrou { background: rgba(126, 33, 64, 0.08); padding: 0.6em 0.8em; font-size: 0.85rem; }
.note-actions { margin-top: 1.5rem; display: grid; gap: 0.7rem; justify-items: start; }
.note-actions .note { font-family: var(--police-texte); }


/* ============================================================
   Direction artistique du brief client : festons, hero impact,
   cartes photo, box postale, avis, FAQ
   ============================================================ */

/* Séparateur festonné (papier découpé) */
.feston {
    height: 26px;
    width: 100%;
    margin-top: 3.5rem;
    background: radial-gradient(circle at 12px 0, transparent 12px, var(--papier) 13px) 0 -1px/24px 26px repeat-x;
}

/* Hero impact */
.hero-impact {
    font-family: var(--police-titres);
    font-size: clamp(3.2rem, 11vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--encre);
    margin: 0.4rem 0 0.6rem;
}
.hero-signature {
    font-family: var(--police-script);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--rose);
}
.hero-signature span { color: var(--rose-clair); }
.hero-baseline {
    font-family: var(--police-sous-titre);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gris);
    margin-bottom: 1.6rem;
}

/* Cartes événement : photo arrondie, nom manuscrit en surimpression */
.carte-event {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 270px;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    background: linear-gradient(135deg, var(--rose-clair), var(--rose));
    box-shadow: var(--ombre);
    transition: transform 0.35s ease;
}
.carte-event:hover { transform: scale(1.03); }
.carte-event > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carte-event::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 38, 32, 0) 45%, rgba(43, 38, 32, 0.55) 100%);
}
.carte-event .pill-public {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.carte-event-label {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 0 16px 12px;
}
.carte-event-titre {
    display: block;
    font-family: var(--police-script);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--blanc);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.carte-event-meta {
    display: block;
    font-family: var(--police-machine);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    text-transform: uppercase;
}

/* Box mensuelle : mise en scène carte postale */
.carte-postale {
    position: relative;
    background: var(--papier);
    border: 1px solid var(--ligne);
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--ombre);
}
.carte-postale::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 52px;
    height: 62px;
    border: 1.5px dashed var(--rose);
    border-radius: 6px;
    opacity: 0.7;
}
.carte-postale-prix {
    font-family: var(--police-machine);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tampon);
    margin-bottom: 0.6rem;
}
.carte-postale h2 {
    font-family: var(--police-titres);
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.carte-postale p { color: var(--encre); max-width: 520px; }
.carte-postale .btn { margin-top: 1.2rem; }
.carte-postale-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 1.4rem;
}

/* Avis « nos potes » */
.avis-liste { display: grid; gap: 2.4rem; max-width: 680px; margin: 0 auto; }
.avis blockquote {
    font-family: var(--police-sous-titre);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--rose-fonce);
    margin: 0 0 0.6rem;
}
.avis .avis-auteur {
    font-family: var(--police-machine);
    font-size: 0.85rem;
    color: var(--gris);
}

/* FAQ accordéon */
.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.2rem;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    color: var(--rose-fonce);
    font-size: 1.5rem;
    line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--gris); padding: 0 0.2rem 1.1rem; margin: 0; }

/* ============================================================
   Angles droits partout : suppression de tous les arrondis
   (décision finale de Robin — prime sur les règles du brief)
   ============================================================ */
*, *::before, *::after { border-radius: 0 !important; }

/* ============================================================
   Calendrier épuré : le titre n'apparaît qu'au survol de la
   pastille, en étiquette manuscrite (demande de Robin)
   ============================================================ */
.calendrier-evenement { position: relative; }
.calendrier-evenement-titre {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--encre);
    color: var(--creme);
    font-family: var(--police-manuscrite);
    font-size: 1.1rem;
    line-height: 1.15;
    padding: 0.3em 0.9em;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    box-shadow: 0 6px 18px rgba(43, 38, 32, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}
.calendrier-evenement:hover .calendrier-evenement-titre,
.calendrier-evenement:focus-visible .calendrier-evenement-titre {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* ============================================================
   Cartes événements en mode « story » : grandes photos verticales
   dans un carrousel horizontal (glisser vers la droite)
   ============================================================ */
.grille-evenements {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.2rem 1.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rose-clair) transparent;
}
.grille-evenements::-webkit-scrollbar { height: 6px; }
.grille-evenements::-webkit-scrollbar-thumb { background: var(--rose-clair); }
.grille-evenements::-webkit-scrollbar-track { background: transparent; }

.carte-event {
    flex: 0 0 auto;
    width: min(320px, 78vw);
    height: auto;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
}
.carte-event-titre { font-size: 2rem; }
.carte-event-meta { font-size: 0.74rem; }

/* Flèches du carrousel (ordinateur) */
.carrousel { position: relative; }
.carrousel-fleche {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: var(--blanc);
    border: 1px solid var(--ligne);
    box-shadow: var(--ombre);
    color: var(--rose-fonce);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}
.carrousel-fleche:hover { background: var(--rose-pale); }
.carrousel-fleche-prec { left: -10px; }
.carrousel-fleche-suiv { right: -10px; }
.carrousel-fleche[hidden] { display: none !important; }
@media (min-width: 720px) {
    .carrousel-fleche { display: flex; }
}

/* ============================================================
   Héro pleine hauteur : la photo occupe tout l'écran d'arrivée
   ============================================================ */
.hero-photo {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px); /* hauteur réelle sur mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ============================================================
   Page À propos : grille des avantages de l'adhésion
   ============================================================ */
.avantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    max-width: 920px;
    margin: 0 auto;
}
@media (min-width: 720px) {
    .avantages { grid-template-columns: 1fr 1fr; }
}
.avantage {
    background: var(--blanc);
    border: 1px solid var(--ligne);
    padding: 1.6rem 1.5rem;
}
.avantage-numero {
    font-family: var(--police-machine);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--tampon);
}
.avantage h3 {
    font-family: var(--police-titres);
    text-transform: uppercase;
    font-size: 1rem;
    margin: 0.4rem 0 0.5rem;
}
.avantage p { color: var(--gris); font-size: 0.95rem; margin: 0; }

/* ============================================================
   Admin : page Photos du site + logo image dans l'en-tête
   ============================================================ */
.logo-img { display: block; height: 52px; width: auto; max-width: 200px; object-fit: contain; }
.photos-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}
.photo-slot {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}
.photo-slot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--ligne);
    background: var(--blanc);
}
.photo-slot-vide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border: 1.5px dashed var(--ligne);
    color: var(--gris);
    font-size: 0.85rem;
    background: var(--blanc);
}
.photo-slot label { font-weight: 600; font-size: 0.85rem; }
.photo-slot-supprimer { font-weight: 400 !important; color: var(--gris); }

/* ============================================================
   À propos : avantages en zigzag pleine largeur, grands numéros,
   photo alternée droite / gauche
   ============================================================ */
.avantages-zigzag {
    display: grid;
    gap: 3rem;
    max-width: 1080px;
    margin: 0 auto;
}
.avantage-ligne {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: center;
}
.avantage-texte { max-width: 520px; }
.avantage-grand-numero {
    display: block;
    font-family: var(--police-machine);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--tampon);
    margin-bottom: 0.6rem;
}
.avantage-texte h3 {
    font-family: var(--police-titres);
    text-transform: uppercase;
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}
.avantage-texte p { color: var(--gris); font-size: 1rem; margin: 0; }
.avantage-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--ligne);
    background: var(--papier);
}
.avantage-photo-vide {
    background:
        radial-gradient(circle at 30% 40%, var(--rose-pale) 0 22%, transparent 23%),
        radial-gradient(circle at 70% 65%, var(--rose-clair) 0 16%, transparent 17%),
        var(--papier);
}
@media (min-width: 760px) {
    .avantage-ligne { grid-template-columns: 1fr 1fr; gap: 3rem; }
    /* Alternance : photo à droite, puis à gauche, etc. */
    .avantage-inverse .avantage-texte { order: 2; justify-self: start; }
    .avantage-inverse .avantage-photo { order: 1; }
}

/* ============================================================
   Box mensuelle : bande pleine largeur façon carte postale
   ============================================================ */
.bande-box {
    background: var(--papier);
    border-top: 1px solid var(--ligne);
    border-bottom: 1px solid var(--ligne);
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.bande-box::before {
    /* Timbre en pointillés, comme sur une enveloppe */
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 66px;
    border: 1.5px dashed var(--rose);
    opacity: 0.7;
}
.bande-box h2 {
    font-family: var(--police-titres);
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}
.bande-box-texte { max-width: 560px; }

/* ============================================================
   Pied de page : réseaux sociaux (configurés dans l'admin)
   ============================================================ */
.pied-reseaux {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.2rem;
    font-family: var(--police-machine);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pied-reseaux-titre { color: var(--gris); }
.pied-reseaux a {
    color: var(--rose-fonce);
    text-decoration: none;
    border-bottom: 1.5px solid var(--rose-clair);
}
.pied-reseaux a:hover { color: var(--tampon); border-bottom-color: var(--tampon); }

/* Bande box : contenu centré */
.bande-box .section-interieur { text-align: center; }
.bande-box-texte { margin-left: auto; margin-right: auto; }

/* ============================================================
   À propos : texte à gauche, photo ovale à droite
   ============================================================ */
.apropos-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}
@media (min-width: 760px) {
    .apropos-intro { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.photo-ovale {
    width: min(320px, 80vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    justify-self: center;
    border: 6px solid var(--blanc);
    box-shadow: 0 14px 40px rgba(43, 38, 32, 0.18);
    /* L'ovale est une exception assumée aux angles droits du site :
       la classe est plus spécifique que la règle globale */
    border-radius: 50% !important;
}

/* ============================================================
   Encart « comprendre le club » sur l'inscription → À propos
   ============================================================ */
.encart-apropos {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--papier);
    border: 1px solid var(--ligne);
    border-left: 4px solid var(--rose);
    padding: 1rem 1.2rem;
    margin-bottom: 1.6rem;
    text-decoration: none;
    color: var(--encre);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.encart-apropos:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre);
}
.encart-apropos-eyebrow {
    font-family: var(--police-machine);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tampon);
    white-space: nowrap;
}
.encart-apropos-texte { flex: 1; font-size: 0.95rem; font-weight: 500; }
.encart-apropos-fleche { color: var(--rose-fonce); font-size: 1.3rem; }

/* ============ Paiement embarqué (Stripe dans le site) ============ */
.paiement-achat {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}
.paiement-stripe {
    min-height: 480px;
    margin: 0 auto 1.5rem;
    max-width: 640px;
    background: #F4EDDB;
    border: 1px solid #E3DACB;
    padding: 12px;
}
.paiement-stripe iframe { border-radius: 0 !important; }
.paiement-attente { padding-top: 200px; }
