/* Grandir à Couternon — charte reprise de l'affiche du programme (crème, violet, jaune) */
:root {
    --creme: #f8f7f2;
    --blanc: #ffffff;
    --violet: #973a98;
    --violet-fonce: #6f2471;
    --violet-clair: #f1e3f1;
    --jaune: #ffd062;
    --jaune-clair: #fff3d2;
    --texte: #2b292a;
    --texte-2: #6b6670;
    --gris-logo: #3d3d3d;
    --bord: rgba(43, 41, 42, .1);
    --ombre: 0 8px 24px rgba(111, 36, 113, .12);
    --titre: "Poppins", "Segoe UI", sans-serif;
    --corps: "Nunito", "Segoe UI", sans-serif;
    --rayon: 22px;
    --largeur: 560px;
    --onglets: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--corps); color: var(--texte); background: var(--creme);
    min-height: 100vh; min-height: 100dvh; line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---------- Barre du haut ---------- */
.barre {
    position: sticky; top: 0; z-index: 800;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    max-width: var(--largeur); margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: linear-gradient(var(--creme) 70%, rgba(248, 247, 242, 0));
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 1.05rem; color: var(--violet); }
.marque img { width: 40px; height: 40px; }
.barre-btn {
    width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
    border: 0; border-radius: 14px; background: var(--blanc); box-shadow: var(--ombre); font-size: 1.2rem; color: var(--violet);
}

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 2000; background: rgba(43, 41, 42, .45); backdrop-filter: blur(3px); }
.menu-panneau {
    margin-left: auto; width: min(310px, 86vw); height: 100%; overflow-y: auto;
    background: var(--creme); padding: calc(16px + env(safe-area-inset-top)) 12px 16px;
    display: flex; flex-direction: column; gap: 4px; animation: glisse .2s ease-out;
}
@keyframes glisse { from { transform: translateX(100%); } }
.menu-tete { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; font-family: var(--titre); font-weight: 800; color: var(--violet); line-height: 1.15; }
.menu-tete span { flex: 1; }
.menu-panneau a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 14px; text-decoration: none; font-weight: 800; }
.menu-panneau a i { width: 22px; text-align: center; color: var(--violet); }
.menu-panneau a.actif, .menu-panneau a:hover { background: var(--violet-clair); }
.menu-section { margin: 14px 12px 4px; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }
.menu-pied { margin-top: auto; padding: 12px; color: var(--texte-2); font-size: .85rem; }

/* ---------- Onglets du bas ---------- */
.onglets {
    position: fixed; z-index: 800; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: var(--largeur);
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--bord); box-shadow: 0 -6px 20px rgba(0, 0, 0, .05);
}
.onglets a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; font-size: .72rem; font-weight: 800; color: var(--texte-2); }
.onglets a i { font-size: 1.2rem; }
.onglets a.actif { color: var(--violet); }

/* ---------- Mise en page ---------- */
.page { max-width: var(--largeur); margin: 0 auto; padding: 4px 16px calc(var(--onglets) + 28px + env(safe-area-inset-bottom)); }
.titre-section {
    font-family: var(--titre); font-weight: 800; font-size: 1.3rem; color: var(--violet);
    margin: 30px 0 12px; display: flex; align-items: center; gap: 10px;
}
.titre-section i { font-size: 1rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--jaune); color: var(--violet-fonce); }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 14px; }
.texte-2 { color: var(--texte-2); }

/* ---------- Héros d'accueil ---------- */
.heros {
    position: relative; overflow: hidden; text-align: center;
    padding: 22px 18px 24px; border-radius: 28px;
    background: var(--blanc); box-shadow: var(--ombre);
}
.heros::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 92px;
    background: linear-gradient(135deg, var(--violet), #b54fb6);
}
.heros > * { position: relative; }
.heros img { width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.heros h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(1.6rem, 7vw, 2rem); color: var(--violet); margin-top: 10px; line-height: 1.15; }
.heros p { color: var(--texte-2); font-weight: 700; margin-top: 6px; }
.badge-saison {
    display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 99px;
    background: var(--jaune); color: var(--violet-fonce); font-family: var(--titre); font-weight: 800; font-size: .85rem;
}

/* ---------- Pastille de date (style « réveil » de l'affiche) ---------- */
.pastille {
    position: relative; flex-shrink: 0; width: 80px; padding: 16px 4px 9px;
    border-radius: 18px 18px 26px 26px; text-align: center; line-height: 1;
    font-family: var(--titre); font-weight: 900;
}
.pastille::before {
    content: "\f017"; font-family: "Font Awesome 6 Free"; font-weight: 400;
    position: absolute; top: -11px; left: -9px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: .78rem;
    background: var(--jaune); color: var(--violet); border: 2px solid var(--violet);
}
.pastille.violet { background: var(--violet); color: var(--jaune); }
.pastille.jaune { background: var(--jaune); color: var(--violet); }
.pastille.jaune::before { background: var(--violet); color: var(--jaune); border-color: var(--jaune); }
.pastille-jour { display: block; font-size: .56rem; text-transform: uppercase; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.pastille.jaune .pastille-jour { color: var(--violet); }
.pastille-num { display: block; font-size: 2rem; margin: 2px 0; }
.pastille-mot { font-size: 1.05rem; margin: 8px 0 4px; }
.pastille-mois { display: block; font-size: .72rem; text-transform: uppercase; }

/* ---------- Prochain rendez-vous ---------- */
.prochain { display: flex; gap: 16px; align-items: center; margin-top: 18px; text-decoration: none; color: inherit; }
.prochain-etiquette { font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.prochain h2 { font-family: var(--titre); font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin: 2px 0; }
.rebours { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: var(--jaune-clair); color: var(--violet-fonce); font-weight: 900; font-size: .8rem; }

/* ---------- Tuiles ---------- */
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.tuile {
    position: relative; overflow: hidden; min-height: 132px; padding: 16px 14px;
    border-radius: var(--rayon); text-decoration: none; box-shadow: var(--ombre);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    transition: transform .15s;
}
.tuile:active { transform: scale(.97); }
.tuile i.fond { position: absolute; top: 14px; right: 14px; font-size: 2rem; opacity: .9; }
.tuile b { font-family: var(--titre); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.tuile small { font-weight: 700; font-size: .78rem; opacity: .85; }
.tuile.violet { background: var(--violet); color: #fff; }
.tuile.violet i.fond { color: var(--jaune); }
.tuile.jaune { background: var(--jaune); color: var(--violet-fonce); }
.tuile.blanc { background: var(--blanc); color: var(--texte); }
.tuile.blanc i.fond { color: var(--violet); }
.tuile.appli { background: var(--c, var(--violet)); color: #fff; }
.tuile .etiquette {
    position: absolute; top: 12px; left: 12px; padding: 2px 9px; border-radius: 99px;
    background: rgba(255, 255, 255, .9); color: var(--texte); font-size: .66rem; font-weight: 900; text-transform: uppercase;
}

/* ---------- Affiche ---------- */
.affiche { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.affiche img { width: 86px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.affiche b { font-family: var(--titre); font-weight: 800; color: var(--violet); display: block; }

/* ---------- Boutons ---------- */
.bouton {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px 18px; border: 0; border-radius: 99px; text-decoration: none;
    background: var(--violet); color: #fff; font-family: var(--titre); font-weight: 700; font-size: .95rem;
}
.bouton.discret { background: var(--violet-clair); color: var(--violet-fonce); }
.bouton.appli { background: var(--c, var(--violet)); }
.bouton.helloasso { background: #4c40cf; }
.bouton.jaune { background: var(--jaune); color: var(--violet-fonce); }
.evt-boutons { display: grid; gap: 8px; margin-top: 14px; }

/* ---------- Agenda ---------- */
.evt { display: flex; gap: 16px; align-items: flex-start; }
.evt-corps { flex: 1; min-width: 0; }
.evt h3 { font-family: var(--titre); font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-transform: uppercase; }
.evt h3 i { color: var(--violet); margin-right: 6px; font-size: .95rem; }
.evt-ligne { display: flex; gap: 8px; align-items: baseline; font-weight: 800; color: var(--violet); font-size: .9rem; margin-top: 4px; }
.evt-ligne i { width: 14px; text-align: center; }
.evt p { margin-top: 6px; }
.evt .plus { font-weight: 800; color: var(--violet-fonce); font-size: .9rem; }
.carte.evt.passe { opacity: .55; box-shadow: none; border: 1px dashed var(--bord); }
.carte.evt.prochain-evt { outline: 3px solid var(--jaune); }
.etat-evt { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 900; background: var(--jaune-clair); color: var(--violet-fonce); }
details.passes summary { cursor: pointer; font-weight: 800; color: var(--texte-2); margin: 24px 0 12px; }

/* ---------- Association ---------- */
.mission { display: flex; gap: 14px; align-items: flex-start; }
.mission i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--violet); color: var(--jaune); font-size: 1.2rem; }
.mission b { font-family: var(--titre); font-weight: 800; display: block; }
.mission + .mission { margin-top: 16px; }
.membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.membre { text-align: center; }
.membre .avatar {
    width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--jaune); color: var(--violet); font-family: var(--titre); font-weight: 900; font-size: 1.6rem;
}
.membre .avatar img { width: 100%; height: 100%; object-fit: cover; }
.membre b { display: block; font-weight: 900; }
.membre small { color: var(--violet); font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.partenaires { display: flex; flex-wrap: wrap; gap: 8px; }
.partenaires span { padding: 6px 12px; border-radius: 99px; background: var(--violet-clair); color: var(--violet-fonce); font-weight: 800; font-size: .85rem; }

/* ---------- Visionneuse de l'affiche ---------- */
.visionneuse { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 16, 24, .92); display: grid; place-items: center; padding: 16px; }
.visionneuse img { max-height: 88vh; border-radius: 8px; }
.visionneuse button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
