/* =========================================================
   Tap Rack Shooting – feuille de style du site
   v7 (MAJ 1.0.3) : mise en page soignée + administration réorganisée (même palette anthracite / orange)
   Aucune police externe : polices du système (RGPD, rapidité)
   ========================================================= */
:root {
    --fond: #f3f4f6;
    --carte: #ffffff;
    --texte: #1a1f29;
    --discret: #687080;
    --bord: #e3e6eb;
    --bord-fort: #cfd4dc;
    --sombre: #15191f;
    --sombre-2: #222831;
    --accent: #e0701f;
    --accent-fonce: #b9561a;
    --accent-pale: #fff3e8;
    --ok: #1f8a4c;
    --danger: #c0392b;
    --info: #3b74c4;
    --rayon: 12px;
    --rayon-petit: 8px;
    --ombre: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --ombre-haute: 0 6px 18px rgba(16, 24, 40, .10);
    --titres: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
    --transition: .15s ease;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* un élément masqué reste masqué, même s'il a une classe (bouton, carte…) */
html { scroll-padding-top: 5rem; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--fond);
    color: var(--texte);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-top: 1.75rem; padding-bottom: 3.5rem; width: 100%; }
a { color: var(--accent-fonce); text-underline-offset: .15em; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--titres); line-height: 1.2; letter-spacing: .01em; }
h1 { margin-top: 0; font-size: 1.85rem; font-weight: 700; }
h2 { margin-top: 2.2rem; font-size: 1.3rem; font-weight: 700; }
main > h2, .titre-section { display: flex; align-items: center; gap: .55rem; }
main > h2::before, .titre-section::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); flex: none; }
h3 { font-size: 1.08rem; }
.sans-marge { margin-top: 0; }
code { background: #eceef2; padding: .05em .35em; border-radius: 4px; word-break: break-all; font-size: .92em; }
.conteneur { max-width: 1120px; margin: 0 auto; padding-left: 1.1rem; padding-right: 1.1rem; }
.discret { color: var(--discret); font-size: .92rem; }
.obligatoire { color: var(--danger); }
.a-completer { color: var(--danger); }
:focus-visible { outline: 3px solid rgba(224, 112, 31, .55); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.entete { background: var(--sombre); color: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 3px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.entete-int { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .65rem; padding-bottom: .65rem; }
.logo { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.logo:hover { color: #fff; }
.logo strong { font-family: var(--titres); font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); line-height: 1; }
.logo span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; padding-left: .75rem; border-left: 1px solid rgba(255,255,255,.25); line-height: 1.2; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.menu a { position: relative; color: #d6d9df; text-decoration: none; padding: .5rem .75rem; border-radius: 6px; font-size: .94rem; font-weight: 500; transition: color var(--transition), background var(--transition); }
.menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.menu a.actif { color: #fff; }
.menu a.actif::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; border-radius: 1px; background: var(--accent); }
.menu .menu-connexion, .menu .menu-admin { background: var(--accent); color: #fff; font-weight: 600; margin-left: .3rem; }
.menu .menu-connexion:hover, .menu .menu-admin:hover, .menu .menu-admin.actif { background: var(--accent-fonce); color: #fff; }
.menu .menu-admin.actif::after { display: none; }
.menu-bouton { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 1.3rem; border-radius: 6px; padding: .2rem .65rem; cursor: pointer; line-height: 1.4; }

.bandeau-info { background: var(--accent-pale); border-bottom: 1px solid #f3cfae; padding: .75rem 0; font-weight: 600; }
.bandeau-info .conteneur { display: flex; gap: .6rem; }
.bandeau-info .conteneur::before { content: "!"; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; display: grid; place-items: center; margin-top: .05rem; }

.pied { background: var(--sombre); color: #9aa1ad; padding: 1.4rem 0; font-size: .9rem; border-top: 3px solid var(--accent); }
.pied a { color: #d1d5db; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-int { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.pied-sigle { font-family: var(--titres); font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-right: .5rem; }

/* ---------- Blocs ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 88% 50%, transparent 0 46px, rgba(255,255,255,.06) 47px 49px, transparent 50px 96px, rgba(255,255,255,.05) 97px 99px, transparent 100px 146px, rgba(255,255,255,.04) 147px 149px, transparent 150px),
        linear-gradient(135deg, var(--sombre) 0%, var(--sombre-2) 100%);
    color: #fff; padding: 2.8rem 2.2rem; border-radius: var(--rayon); margin-bottom: 1.5rem; box-shadow: var(--ombre-haute);
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.hero-sur-titre { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.hero h1 { font-size: 2.4rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8rem; }
.hero-texte { max-width: 42rem; color: #d7dbe2; font-size: 1.05rem; margin-bottom: 1.6rem; }
.hero .bouton-fft { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.hero .bouton-fft:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.3rem; margin-bottom: 1rem; box-shadow: var(--ombre); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.grille .carte { margin-bottom: 0; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.deux-colonnes > .carte { margin-bottom: 0; }
.centre { max-width: 440px; margin: 2rem auto; }
.centre.large { max-width: 660px; }
.centre > h1 { text-align: center; }
.titre-ligne { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.titre-ligne h1, .titre-ligne h2 { margin-bottom: 0; }
.texte-long { max-width: 760px; }
.texte-long h2 { margin-top: 1.8rem; }
.contact-ligne { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--bord); }
.contact-ligne:first-child { padding-top: 0; }
.contact-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-ligne strong { color: var(--discret); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .1rem; }

/* Accès rapide (accueil, adhérent connecté) */
.acces-rapide { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.acces { display: flex; flex-direction: column; gap: .2rem; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); border-top: 3px solid var(--accent); transition: transform var(--transition), box-shadow var(--transition); }
.acces:hover { color: var(--texte); transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.acces strong { font-family: var(--titres); font-size: 1.1rem; }
.acces span { color: var(--discret); font-size: .9rem; }

/* ---------- Alertes ---------- */
.alerte { padding: .85rem 1.1rem; border-radius: var(--rayon-petit); margin-bottom: 1rem; border: 1px solid transparent; border-left: 4px solid; background: #fff; }
.alerte-succes { background: #eaf7ef; border-color: #c7e8d4; border-left-color: var(--ok); }
.alerte-erreur { background: #fcedeb; border-color: #f2cdc8; border-left-color: var(--danger); }
.alerte-info { background: #ecf2fb; border-color: #cddcf2; border-left-color: var(--info); }
.mdp-affiche code { font-size: 1.1rem; padding: .1rem .4rem; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: .9rem; }
.formulaire label, .formulaire-ligne label, .recherche label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.formulaire-ligne { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.formulaire-ligne label { flex: 1 1 140px; }
.formulaire.etroit { max-width: 480px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.aide { font-weight: normal; color: var(--discret); font-size: .82rem; }
input, select, textarea {
    font: inherit; font-weight: normal; padding: .6rem .75rem; min-height: 44px;
    border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit); background: #fff; width: 100%; color: var(--texte);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:hover, select:hover, textarea:hover { border-color: #b7bdc7; }
textarea { min-height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 112, 31, .18); }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; min-height: 0; flex: none; accent-color: var(--accent); box-shadow: none; }
input[type="file"] { padding: .4rem; }
fieldset { border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: .7rem 1rem; margin: 0; }
fieldset legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
fieldset.jours { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
fieldset.droits { display: flex; flex-direction: column; gap: .4rem; }
.formulaire label.case, label.case { flex-direction: row; align-items: center; font-weight: normal; gap: .55rem; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 1rem; }
.recherche { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; align-items: flex-end; }
.recherche input[name="q"], .recherche input[name="adherent"] { flex: 1 1 220px; width: auto; }
.recherche select, .recherche input[type="date"] { width: auto; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: var(--rayon-petit); min-height: 44px;
    padding: .55rem 1.15rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: background var(--transition), color var(--transition), border-color var(--transition), transform .05s;
}
.bouton:hover { background: var(--accent-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton-secondaire { background: #fff; color: var(--texte); border-color: var(--bord-fort); box-shadow: none; }
.bouton-secondaire:hover { background: #f1f2f5; color: var(--texte); border-color: #b7bdc7; }
.bouton-danger { background: #fff; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.bouton-danger:hover { background: var(--danger); color: #fff; }
.bouton-petit { padding: .3rem .75rem; font-size: .86rem; min-height: 34px; }
.bouton-fft { background: #fff; color: var(--sombre); border: 2px solid var(--accent); box-shadow: none; }
.bouton-fft:hover { background: var(--accent-pale); color: var(--sombre); }
.boutons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.centre-boutons { justify-content: center; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choix form { display: flex; }
.bouton-choix { flex-direction: column; width: 100%; min-height: 104px; font-size: 1.05rem; border-radius: var(--rayon); }
.bouton-choix small { font-weight: normal; font-size: .82rem; opacity: .85; }
.bouton-desactive, .bouton-desactive:hover { background: #eef0f3; color: var(--discret); cursor: not-allowed; box-shadow: none; }
@media (max-width: 560px) { .choix { grid-template-columns: 1fr; } }

/* ---------- Tableaux ---------- */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord); margin-bottom: 1rem; box-shadow: var(--ombre); }
.tableau th, .tableau td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau th { background: #f5f6f8; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--discret); }
.tableau tbody tr:nth-child(even) td { background: #fafbfc; }
.tableau tbody tr:hover td { background: var(--accent-pale); }
.tableau tr.inactif td { color: var(--discret); }
.tableau tr.nouveau-jour td { border-top: 2px solid var(--bord-fort); }
.tableau tr.ligne-erreur td { background: #fcedeb; }
.tableau.exemple { font-size: .9rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- Pastilles et étiquettes ---------- */
.pastille { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: #e8eaee; color: var(--texte); vertical-align: middle; white-space: nowrap; }
.pastille-libre { background: #e6f0fb; color: #1d4f91; }
.pastille-encadree { background: #efe8fb; color: #5b2d9e; }
.pastille-discipline { background: #e6f6f3; color: #11695a; }
.pastille-jeunes { background: #fff1d6; color: #8a5a00; }
.pastille-competition { background: #fde7e4; color: #a23022; }
.pastille-principal { background: var(--accent); color: #fff; }
.etiquette { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e8eaee; align-self: flex-start; }
.etiquette-ok { background: #e3f4ea; color: var(--ok); }
.etiquette-complet { background: #fbe9e7; color: var(--danger); }

/* ---------- Agenda ---------- */
.evenement-date { color: var(--accent-fonce); font-weight: 700; font-size: .92rem; border-right: 2px solid var(--accent-pale); padding-right: 1rem; }
.evenement-ligne { display: grid; grid-template-columns: 170px 1fr; gap: 1.2rem; }
.evenement-ligne h3 { margin: 0 0 .2rem; }
.evenement-ligne p { margin: .5rem 0; }
@media (max-width: 600px) {
    .evenement-ligne { grid-template-columns: 1fr; gap: .5rem; }
    .evenement-date { border-right: 0; padding-right: 0; }
}

/* ---------- Créneaux ---------- */
.navigation-periode { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .6rem .8rem; box-shadow: var(--ombre); }
.periode { display: flex; align-items: center; gap: .7rem; text-align: center; }
.onglets { display: inline-flex; background: #eceef2; border-radius: var(--rayon-petit); padding: 3px; }
.onglets a { padding: .4rem .95rem; border-radius: 6px; text-decoration: none; color: var(--discret); font-weight: 600; font-size: .9rem; }
.onglets a:hover { color: var(--texte); }
.onglets a.actif { background: #fff; color: var(--texte); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
h2.jour { font-size: 1.08rem; border-bottom: 2px solid var(--bord); padding-bottom: .35rem; margin-top: 1.8rem; }
h2.jour::before { display: none; }
h2.jour a { color: inherit; text-decoration: none; }
h2.jour a:hover { color: var(--accent-fonce); }
h2.jour-actuel { border-color: var(--accent); }
h2.jour-actuel::after { content: "Aujourd'hui"; font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .12rem .5rem; border-radius: 999px; margin-left: .4rem; }
.creneau { display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid #9db8dd; transition: box-shadow var(--transition), transform var(--transition); }
.creneau:hover { box-shadow: var(--ombre-haute); }
.creneau.type-encadree { border-top-color: #a88bd6; }
.creneau.type-discipline { border-top-color: #5fb7a6; }
.creneau.type-jeunes { border-top-color: #e5b04b; }
.creneau.type-competition { border-top-color: #e0796b; }
.creneau-entete { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; }
.creneau .bouton { width: 100%; margin-top: auto; }
.creneau-heure { font-family: var(--titres); font-size: 1.3rem; font-weight: 700; }
.creneau-places { font-size: .92rem; color: var(--discret); }
.creneau-places strong { color: var(--texte); font-size: 1.05rem; }
.creneau-reserve { box-shadow: 0 0 0 2px var(--ok), var(--ombre); }
.creneau-passe { opacity: .55; }
.creneau-passe:hover { box-shadow: var(--ombre); }
.jauge { height: 7px; background: #eceef2; border-radius: 4px; overflow: hidden; }
.jauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-fonce)); border-radius: 4px; }
.resume-creneau { text-align: center; }
.liste-resas { display: flex; flex-direction: column; gap: .8rem; }
.liste-resas .carte { margin: 0; border-left: 4px solid var(--accent); }
.resa { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 2.4rem 1.4rem; box-shadow: var(--ombre-haute); }
.confirmation-icone { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; line-height: 68px; font-weight: 700; box-shadow: 0 0 0 8px #e3f4ea; }
.confirmation-date { font-family: var(--titres); font-size: 1.4rem; font-weight: 700; }

/* ---------- Page FFT ---------- */
.visionneuse-pdf { width: 100%; height: 80vh; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.image-fft { max-width: 100%; height: auto; border-radius: var(--rayon); border: 1px solid var(--bord); display: block; margin: 0 auto; box-shadow: var(--ombre); }

/* ---------- Administration ---------- */
.sous-menu { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.6rem; padding: .45rem; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.sous-menu a { padding: .42rem .8rem; border-radius: 6px; text-decoration: none; color: var(--texte); font-size: .88rem; font-weight: 600; white-space: nowrap; transition: background var(--transition); }
.sous-menu a:hover { background: #f1f2f5; color: var(--texte); }
.sous-menu a.actif { background: var(--sombre); color: #fff; }
.tuile { display: flex; flex-direction: column; gap: .2rem; border-left: 4px solid var(--accent); color: var(--discret); }
.tuile-chiffre { font-family: var(--titres); font-size: 2.3rem; line-height: 1.1; font-weight: 800; color: var(--texte); }
.admin-carte .actions { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--bord); }

/* ---------- Administration : menu à deux niveaux (rubriques + onglets) ---------- */
.admin-nav { margin-bottom: 1.6rem; }
.rubriques { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; padding: .4rem; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.rubriques a { display: flex; flex-direction: column; gap: .05rem; padding: .6rem .85rem; border-radius: var(--rayon-petit); text-decoration: none; color: var(--texte); transition: background var(--transition); }
.rubriques a strong { font-family: var(--titres); font-size: 1rem; }
.rubriques a small { color: var(--discret); font-size: .78rem; line-height: 1.3; }
.rubriques a:hover { background: #f1f2f5; color: var(--texte); }
.rubriques a.actif { background: var(--sombre); color: #fff; }
.rubriques a.actif small { color: #b8bec8; }
.rubriques a.actif strong { color: #fff; }
.onglets-admin { display: flex; gap: .15rem; border-bottom: 1px solid var(--bord-fort); margin-top: .9rem; overflow-x: auto; scrollbar-width: thin; }
.onglets-admin a { padding: .55rem .9rem; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--discret); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.onglets-admin a:hover { color: var(--texte); }
.onglets-admin a.actif { color: var(--texte); border-bottom-color: var(--accent); }
.onglets-admin .nouveau { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #fff; border-radius: 999px; padding: .05rem .4rem; margin-left: .3rem; vertical-align: 2px; }

/* Tableau de bord */
.raccourci-scan { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 72px; font-size: 1.2rem; border-radius: var(--rayon); margin-bottom: 1.2rem; box-shadow: var(--ombre-haute); }
.cartes-rubriques { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.carte-rubrique { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--texte); background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; box-shadow: var(--ombre); transition: box-shadow var(--transition), transform var(--transition); }
.carte-rubrique:hover { color: var(--texte); box-shadow: var(--ombre-haute); transform: translateY(-2px); }
.carte-rubrique strong { font-family: var(--titres); font-size: 1.12rem; }
.carte-rubrique ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--discret); font-size: .88rem; }

/* Statistiques */
.histo { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: .5rem; height: 210px; padding-top: 1.4rem; border-bottom: 1px solid var(--bord-fort); }
.histo div { position: relative; background: linear-gradient(180deg, var(--accent), var(--accent-fonce)); border-radius: 5px 5px 0 0; min-height: 3px; }
.histo div span { position: absolute; top: -1.35rem; left: 0; right: 0; text-align: center; font-size: .78rem; font-weight: 700; }
.histo-legende { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; font-size: .76rem; color: var(--discret); text-align: center; padding-top: .35rem; }
.remplissage { display: flex; align-items: center; gap: .6rem; min-width: 160px; }
.remplissage .jauge { flex: 1; }
.remplissage b { font-size: .86rem; min-width: 2.8em; text-align: right; }
.pastille-action-ajout { background: #e3f4ea; color: var(--ok); }
.pastille-action-modif { background: #e6f0fb; color: #1d4f91; }
.pastille-action-suppr { background: #fbe9e7; color: var(--danger); }
.pastille-action-export { background: #efe8fb; color: #5b2d9e; }
.pastille-action-force { background: #fff1d6; color: #8a5a00; }
.pastille-action-acces { background: #e8eaee; color: var(--texte); }
.rubriques .icone, .rubriques .court { display: none; }
@media (max-width: 900px) {
    /* Rubriques : 5 boutons icône + nom court, tout visible, sans défilement */
    .rubriques { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; padding: .3rem; }
    .rubriques a { align-items: center; text-align: center; gap: .25rem; padding: .55rem .15rem .5rem; }
    .rubriques a strong, .rubriques a small { display: none; }
    .rubriques .icone { display: block; width: 24px; height: 24px; color: var(--discret); }
    .rubriques .court { display: block; font-size: .74rem; font-weight: 700; line-height: 1.15; }
    .rubriques a.actif .icone { color: var(--accent); }
    .rubriques a .cadenas-mini { display: inline; font-size: .7em; }
    /* Onglets : pastilles qui passent à la ligne, sans barre de défilement */
    .onglets-admin { flex-wrap: wrap; gap: .4rem; border-bottom: 0; overflow: visible; margin-top: .7rem; }
    .onglets-admin a { margin: 0; border: 1px solid var(--bord-fort); border-radius: 999px; padding: .45rem .85rem; background: var(--carte); font-size: .86rem; color: var(--texte); min-height: 38px; display: inline-flex; align-items: center; }
    .onglets-admin a.actif { background: var(--sombre); border-color: var(--sombre); color: #fff; }
    .onglets-admin .nouveau { vertical-align: 0; }
}


/* Zone protégée par mot de passe (Paramètres, exports, suppression) */
.verrou { max-width: 460px; margin: 1rem auto 2rem; text-align: center; }
.verrou .carte { text-align: left; }
.verrou-icone { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: var(--sombre); color: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--accent-pale); }
.verrou-icone svg { width: 28px; height: 28px; }
.verrou-icone.bloque { background: var(--danger); color: #fff; box-shadow: 0 0 0 8px #fbe9e7; }
.acces-ouvert { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; background: #eaf7ef; border: 1px solid #c7e8d4; border-radius: var(--rayon-petit); padding: .5rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.zone-danger { border: 1px solid #f2cdc8; border-left: 4px solid var(--danger); background: #fffafa; }
.rubriques a .cadenas { font-size: .8em; margin-left: .25rem; opacity: .7; }
.cadenas-mini { display: none; }

/* ---------- Scan des badges (accueil) ---------- */
.bouton-scan { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 480px; min-height: 76px; font-size: 1.25rem; margin-bottom: .6rem; cursor: pointer; border-radius: var(--rayon); box-shadow: var(--ombre-haute); }
.bouton-scan input { display: none; }
.scan-cadre { position: relative; max-width: 640px; margin: .75rem 0; border-radius: var(--rayon); overflow: hidden; background: #000; box-shadow: var(--ombre-haute); }
.scan-cadre video { display: block; width: 100%; height: auto; }
.scan-viseur { position: absolute; left: 12%; right: 12%; top: 12%; bottom: 12%; border: 3px solid rgba(255,255,255,.85); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); }
#scan-resultat strong { display: block; font-size: 1.15rem; margin-bottom: .3rem; }
#scan-resultat p { margin: .2rem 0; }
#scan .grille-champs input { font-size: 16px; }

/* Saisie manuelle à l'accueil (MAJ 1.0.6) */
.saisie-manuelle { margin-top: 1.5rem; scroll-margin-top: 5rem; }
fieldset.types-tireur { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; }
fieldset.types-tireur legend { margin-bottom: .45rem; padding: 0; }
.formulaire .type-tireur, .type-tireur { flex: 1 1 160px; display: flex; flex-direction: row; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem .8rem; border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit); background: #fff; font-weight: 600; cursor: pointer; }
.type-tireur input { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; flex: none; accent-color: var(--accent); }
.type-tireur:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); box-shadow: 0 0 0 2px rgba(224, 112, 31, .25); }

/* Demande de tir découverte (MAJ 1.0.7) */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset.bloc-parent { border: 1px solid #f3cfae; background: var(--accent-pale); border-radius: var(--rayon-petit); padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .8rem; }
fieldset.bloc-parent[hidden] { display: none; }
.demande { border-left: 4px solid var(--accent); }
.demande-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.demande dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .6rem 0; }
.demande dt { color: var(--discret); font-size: .86rem; }
.demande dd { margin: 0; }
.demande .actions-demande { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--bord); }
.pastille-mineur { background: #fff1d6; color: #8a5a00; }

/* Cloche et notifications (MAJ 1.0.8) */
.cloche { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: #d6d9df; transition: background var(--transition), color var(--transition); }
.cloche:hover, .cloche.actif { background: rgba(255,255,255,.08); color: #fff; }
.cloche svg { width: 22px; height: 22px; }
.cloche-pastille { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--sombre); }
.entete-int { justify-content: flex-start; }
.entete-int .logo { margin-right: auto; }
.entete-int .cloche + .menu-bouton, .entete-int .cloche + .menu { margin-left: .2rem; }
.liste-notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.notif { display: flex; align-items: stretch; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.notif.non-lue { border-left: 4px solid var(--accent); background: #fffaf5; }
.notif-lien { flex: 1; display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; color: var(--texte); text-decoration: none; min-width: 0; }
.notif-lien:hover { background: #fafbfc; color: var(--texte); }
.notif-icone { font-size: 1.35rem; line-height: 1.2; flex: none; width: 1.8rem; text-align: center; }
.notif-corps { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.notif-corps strong { font-weight: 600; }
.notif.non-lue .notif-corps strong { font-weight: 800; }
.notif-texte { color: var(--discret); font-size: .92rem; overflow-wrap: anywhere; }
.notif-date { color: var(--discret); font-size: .8rem; }
.notif-date b { color: var(--accent-fonce); }
.notif-action { display: flex; align-items: center; padding: 0 .5rem; border-left: 1px solid var(--bord); }
.bouton-icone { background: none; border: 0; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 1.05rem; color: var(--discret); }
.bouton-icone:hover { background: #f1f2f5; color: var(--texte); }
.carte.vide { text-align: center; color: var(--discret); }
.message-connexion { background: #fff; border: 1px solid #f3cfae; border-left: 5px solid var(--accent); border-radius: var(--rayon); padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--ombre-haute); }
.message-connexion-entete { font-size: 1.08rem; margin-bottom: .4rem; }
.message-connexion-texte { margin-bottom: .8rem; }

/* Appli TRS (MAJ 1.0.9) */
.appli .appli-ligne { margin: .6rem 0; }
.appli .etat-ok { color: #1d7a3e; }
.appli .etat-non { color: var(--texte); font-weight: 600; }
.appli .boutons { margin-bottom: .6rem; }
.aide-install { border: 1px solid var(--bord); border-radius: 8px; padding: .55rem .8rem; margin-top: .5rem; background: #fafbfc; }
.aide-install summary { cursor: pointer; font-weight: 600; }
.aide-install ol { margin: .5rem 0 .3rem; padding-left: 1.3rem; }
.aide-install li { margin: .25rem 0; }
.appli-appareils { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--bord); }
.appli-appareils span { margin-right: auto; }
.appli-invite { margin: -.3rem 0 1rem; }
.appli-invite a { font-weight: 600; }
@media (display-mode: standalone) { .entete { padding-top: env(safe-area-inset-top); } body { padding-bottom: env(safe-area-inset-bottom); } }

/* Bandeau « Installez l'appli » (MAJ 1.0.10) */
.bandeau-appli { display: flex; gap: .85rem; align-items: flex-start; background: var(--sombre); color: #d6d9df; border-radius: var(--rayon);
    border-left: 5px solid var(--accent); padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: var(--ombre-haute); }
.bandeau-appli[hidden] { display: none; }
.bandeau-appli img { width: 48px; height: 48px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.bandeau-appli-corps { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bandeau-appli-corps > strong { color: #fff; font-size: 1.05rem; }
.bandeau-appli-corps > span { font-size: .92rem; }
.bandeau-appli-ios { margin: .45rem 0 .1rem; padding-left: 1.15rem; font-size: .92rem; }
.bandeau-appli-ios li { margin: .2rem 0; }
.bandeau-appli-ios strong { color: #fff; }
.icone-partager { width: 1.05em; height: 1.05em; vertical-align: -.15em; color: #4da3ff; }
.bandeau-appli-boutons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.bandeau-appli .bouton-secondaire { background: transparent; color: #d6d9df; border-color: rgba(255,255,255,.3); }

/* Changer le créneau d'une découverte (MAJ 1.0.11) */
.changer-creneau { margin-top: .8rem; border-top: 1px solid var(--bord); padding-top: .6rem; }
.changer-creneau summary { cursor: pointer; font-weight: 600; color: var(--accent-fonce); }
.changer-creneau form { margin-top: .6rem; }

/* Sélection de créneaux et agenda des réservations (MAJ 1.0.12) */
.tableau-selection .col-case { width: 2.2rem; text-align: center; }
.tableau-selection input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); cursor: pointer; }
.tableau-selection tr.coche td { background: #fff4ea; }
.case-jour { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 600; }
.barre-selection { position: sticky; bottom: .8rem; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
    background: var(--sombre); color: #fff; border-radius: var(--rayon); padding: .7rem 1rem; margin-top: .8rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.barre-selection[hidden] { display: none; }
.barre-selection .discret { color: #c9ccd3; }
.barre-selection input { flex: 1 1 220px; min-width: 0; margin-left: auto; }
.recap-suppression { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.grille-large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 1rem; }
.ligne-copie { display: flex; gap: .5rem; }
.ligne-copie input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

/* Page FFT à plusieurs documents (MAJ 1.0.12) */
.fft-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: .6rem; }
.fft-galerie-seule { grid-template-columns: 1fr; max-width: 900px; margin-left: auto; margin-right: auto; }
.fft-vignette { margin: 0; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.fft-vignette a { display: block; background: #eef0f3; }
.fft-vignette img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s ease; }
.fft-galerie-seule .fft-vignette img { aspect-ratio: auto; object-fit: contain; }
.fft-vignette a:hover img { transform: scale(1.03); }
.fft-vignette figcaption { padding: .55rem .8rem; font-size: .92rem; font-weight: 600; }
.centre-texte { text-align: center; }
.fft-pdfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-top: 1rem; }
.fft-pdf { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--texte); margin: 0; }
.fft-pdf-icone { display: inline-grid; place-items: center; width: 46px; height: 56px; border-radius: 6px; background: #c7372f; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .05em; flex: none; }
.visionneuse { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10,12,16,.94); color: #fff; }
.visionneuse::backdrop { background: rgba(10,12,16,.94); }
.visionneuse figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.2rem 3.6rem 2.6rem; box-sizing: border-box; gap: .6rem; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.visionneuse figcaption { font-weight: 600; text-align: center; }
.visionneuse-fermer { position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.visionneuse-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.visionneuse-nav.precedent { left: .6rem; } .visionneuse-nav.suivant { right: .6rem; }
.visionneuse.une-seule .visionneuse-nav { display: none; }
.visionneuse-compteur { position: absolute; top: 1.1rem; left: 50%; transform: translateX(-50%); font-size: .9rem; color: #c9ccd3; }
@media (max-width: 760px) {
    .fft-galerie { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .fft-galerie-seule { grid-template-columns: 1fr; }
    .visionneuse figure { padding: 3.4rem .6rem 2.4rem; }
    .visionneuse-nav { width: 40px; height: 52px; background: rgba(0,0,0,.35); }
}
.fft-admin-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.fft-admin-doc { margin: 0; padding: .7rem; display: flex; flex-direction: column; gap: .55rem; }
.fft-admin-apercu { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: #eef0f3; border-radius: 8px; overflow: hidden; }
.fft-admin-apercu img { width: 100%; height: 100%; object-fit: cover; }
.fft-admin-num { position: absolute; top: .4rem; left: .4rem; min-width: 26px; height: 26px; border-radius: 13px; background: var(--sombre); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.fft-admin-legende { display: flex; gap: .35rem; }
.fft-admin-legende input { flex: 1; min-width: 0; }
.fft-admin-actions { display: flex; gap: .35rem; }
.fft-admin-actions .bouton-danger { margin-left: auto; }

/* Aperçu des PDF de la page FFT (MAJ 1.0.14) */
.fft-vignette a, .fft-admin-apercu { position: relative; }
.fft-vignette-pdf img { object-position: top; background: #fff; }
.fft-badge-pdf { position: absolute; top: .55rem; right: .55rem; background: #c7372f; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
    padding: .2rem .5rem; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.fft-pdf-sans-apercu { display: grid; place-items: center; aspect-ratio: 3 / 4; }
.fft-vignette figcaption .fft-ouvrir { display: block; font-weight: 400; font-size: .85rem; color: var(--accent-fonce); margin-top: .15rem; }
.fft-admin-apercu img { object-position: top; background: #fff; }

/* Rôles, encadrants et points (MAJ 1.0.15) */
.etiquette-ok { background: #e3f4e8; color: #1d7a3e; }
.etiquette-bientot { background: #fff1e0; color: var(--accent-fonce); }
.roles-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.role-carte { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.role-carte .titre-ligne { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.role-principal { border-top: 4px solid var(--accent); }
.role-nouveau { border: 2px dashed var(--bord); box-shadow: none; }
.role-nom { font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; }
.role-droits summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.role-droits .droits { margin-top: .5rem; }
.roles-choix { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; border: 0; padding: 0; margin: 0 0 .4rem; }
.roles-choix legend { font-weight: 700; margin-bottom: .3rem; }
.pastille-ancien { background: #eef0f3; color: var(--discret); }
.admin-carte h3 .pastille { margin-left: .25rem; }
.encadrants-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.encadrant-carte { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.encadrant-carte .titre-ligne, .mes-points .titre-ligne { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.points-total { font-size: 1.6rem; font-weight: 800; color: var(--accent-fonce); white-space: nowrap; }
.points-total small { font-size: .8rem; font-weight: 600; }
.points-barre { height: 10px; border-radius: 5px; background: #eceef2; overflow: hidden; }
.points-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #f3a35b); border-radius: 5px; }
.recompense-ligne { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; background: #fff7ef; }
.recompense-ligne.remise { background: #f2f8f4; }
.recompense-ligne + .recompense-ligne { margin-top: .4rem; }
.mes-points { display: flex; flex-direction: column; gap: .55rem; }
.mes-offertes { display: flex; flex-direction: column; gap: .55rem; }
.mes-offertes .titre-ligne { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.mes-offertes > .bouton { align-self: flex-start; }
.compteur-offertes { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.jeton-offerte { font-size: 1.5rem; line-height: 1; filter: none; }
.jeton-offerte.utilise { filter: grayscale(1); opacity: .35; }
.recompense-ligne.annulee { background: #f4f5f7; color: var(--discret); text-decoration: line-through; }
.recompense-ligne.annulee .etiquette { text-decoration: none; }
.recompenses-titre { font-size: 1rem; margin-top: .3rem; }
.recompenses-paliers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.palier { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--rayon-petit); background: #f6f7f9; }
.palier-seuil { font-weight: 700; white-space: nowrap; }
.palier-remise { background: #eaf6ee; }
.palier-atteinte { background: #fff3e8; }
.palier-avenir { color: var(--discret); }
.palier-dispo { background: #fff; border: 1px solid #e3e6ea; }
.palier-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.points-detail { font-size: .9rem; }
.recompense-ligne.echange { background: #fff3e8; }
.case-cumulable { white-space: nowrap; font-size: .85rem; }
.aide-recompenses { margin-top: .6rem; font-size: .85rem; }
.palier-avenir .palier-seuil { color: var(--texte, #1d2330); }
@media (max-width: 520px) { .palier { grid-template-columns: 1fr auto; } .palier .etiquette { grid-column: 1 / -1; justify-self: start; } }
/* MAJ 1.0.21 : photos des adhérents */
.carte-identite { display: flex; gap: 1.1rem; align-items: flex-start; }
.identite-texte { flex: 1; min-width: 0; }
.photo-adherent { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #eef0f3; flex: none; display: block; }
.photo-adherent.petite { width: 56px; height: 56px; }
.photo-adherent.mini { width: 38px; height: 38px; }
.photo-vide { display: grid; place-items: center; font-size: 2.4rem; color: #9aa1ab; border: 2px dashed #cfd4da; }
.photo-attente { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: #fff3e8; border-radius: var(--rayon-petit); padding: .55rem .7rem; margin: .5rem 0; }
.changer-photo > summary { cursor: pointer; color: var(--accent, #c05a12); font-weight: 600; margin: .3rem 0; }
.changer-photo .photo-adherent { margin: .4rem 0; }
.carte-acces-identite { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.carte-acces-identite .photo-adherent { width: 72px; height: 72px; }
.resultat-photo { display: flex; gap: .9rem; align-items: center; }
.resultat-photo img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); flex: none; }
.resultat-photo .photo-vide { width: 110px; height: 110px; border-radius: 50%; }
@media (max-width: 520px) { .carte-identite { flex-direction: column; align-items: center; text-align: center; } .identite-texte { text-align: left; width: 100%; } }
.photos-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.photo-avant-apres { display: flex; align-items: center; gap: .8rem; margin: .7rem 0; }
.photo-avant-apres figure { margin: 0; text-align: center; }
.photo-avant-apres figcaption { font-size: .8rem; color: var(--discret); margin-top: .25rem; }
.fleche-photo { font-size: 1.6rem; color: var(--discret); }
.photo-validation details > summary { list-style: none; }
.photo-validation details > summary::-webkit-details-marker { display: none; }
.photo-ajout { margin-top: .6rem; }
.supprimer-jours { margin-top: 1.6rem; border-left: 4px solid #c8102e; }
.supprimer-jours-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: .8rem 0; }
.supprimer-jours-liste ol { padding-left: 1.2rem; margin: .5rem 0 .8rem; }
.case-jour.surbrillance { outline: 3px solid #c8102e; outline-offset: 2px; border-radius: 4px; animation: clignoter 1s ease-in-out 3; }
@keyframes clignoter { 50% { outline-color: transparent; } }
@media (max-width: 760px) { .supprimer-jours-choix { grid-template-columns: 1fr; } }
.cloche-pastille.cloche-nouvelle { animation: cloche-pop .5s ease-out; }
@keyframes cloche-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.parametres-compte { margin-top: 1.6rem; background: #fff; border: 1px solid #e3e6ea; border-radius: var(--rayon); }
.parametres-compte > summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.parametres-compte > summary::-webkit-details-marker { display: none; }
.parametres-compte > summary > span:first-child { font-family: var(--titres, inherit); font-weight: 700; font-size: 1.2rem; }
.parametres-compte > summary > span:first-child::after { content: '▾'; float: right; transition: transform .2s; }
.parametres-compte[open] > summary > span:first-child::after { transform: rotate(180deg); }
.parametres-compte-contenu { padding: 0 1.2rem 1.2rem; }
.col-actions { white-space: nowrap; }
.col-actions > * { vertical-align: middle; }
.col-actions > * + * { margin-left: .35rem; }
.ajout-agenda { display: inline-block; position: relative; }
.ajout-agenda > summary { list-style: none; cursor: pointer; }
.ajout-agenda > summary::-webkit-details-marker { display: none; }
.ajout-agenda-menu { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 20; background: #fff; border: 1px solid #e3e6ea; border-radius: var(--rayon-petit);
    box-shadow: 0 6px 20px rgba(0,0,0,.12); display: flex; flex-direction: column; min-width: 11rem; overflow: hidden; }
.ajout-agenda-menu a { padding: .55rem .8rem; text-decoration: none; color: inherit; white-space: nowrap; }
.ajout-agenda-menu a:hover { background: var(--accent-pale); }
.message-encadrant { color: #c8102e; font-weight: 700; background: #fdecee; border-left: 4px solid #c8102e; border-radius: var(--rayon-petit); padding: .55rem .75rem; }
.message-encadrant-form textarea, .encadrant-carte textarea { width: 100%; }
.pastille-offerte { background: #fde9ef; color: #a11a4a; }
.recompense-ligne form { margin: 0; }
.case-remise { font-weight: 700; color: var(--accent-fonce); }
.corriger-points summary, .points-historique summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent-fonce); }
.points-historique ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.ligne-corriger { display: flex; gap: .4rem; align-items: center; }
.ligne-corriger select { min-width: 0; max-width: 12rem; }
.ligne-recompense { display: flex; gap: .4rem; align-items: center; margin: .45rem 0; }
.ligne-recompense input[name=nom] { flex: 1; min-width: 0; }
.ligne-recompense input[name=seuil] { width: 5.5rem; }
.ligne-recompense.nouvelle { border-top: 1px solid var(--bord); padding-top: .7rem; margin-top: .7rem; }
.choix-encadrant strong { font-size: 1.05rem; }
.choix-encadrant-ligne { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.choix-encadrant-ligne select { flex: 1 1 200px; font-size: 1.05rem; padding: .6rem; }

/* ---------- Carte d'accès (Mon compte) – QR code (MAJ 1.0.5) ---------- */
.carte-acces .code-qr { width: 100%; max-width: 280px; aspect-ratio: 1; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon-petit); display: grid; place-items: center; margin: .5rem 0 .8rem; }
.carte-acces .code-qr svg { display: block; width: 100%; height: 100%; }
.carte-acces .code-barres { background: #fff; padding: .75rem; border-radius: var(--rayon-petit); max-width: 520px; border: 1px solid var(--bord); }
.carte-acces .code-barres svg { display: block; width: 100%; height: 110px; }

/* ---------- Impression ---------- */
.impression { background: #fff; padding: 1.5rem; display: block; }
.impression .tableau { border-radius: 0; box-shadow: none; }
.emargement { width: 140px; }
@media print {
    .non-imprime, .entete, .pied, .sous-menu { display: none; }
    body { background: #fff; }
    .impression { padding: 0; }
    .carte, .tableau { box-shadow: none; }
    .tableau tbody tr:nth-child(even) td, .tableau tbody tr:hover td { background: none; }
    .tableau th, .tableau td { padding: .4rem .5rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .menu-bouton { display: block; }
    .logo span { display: none; }
    .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 .3rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .4rem; }
    .menu.ouvert { display: flex; }
    .menu a { padding: .8rem .9rem; }
    .menu a.actif { background: rgba(255,255,255,.08); }
    .menu a.actif::after { left: 0; right: auto; top: .55rem; bottom: .55rem; width: 3px; height: auto; }
    .menu .menu-connexion, .menu .menu-admin { margin: .3rem 0 0; text-align: center; }
    main { padding-top: 1.25rem; }
    h1 { font-size: 1.5rem; }
    .hero { padding: 2rem 1.4rem; background: linear-gradient(135deg, var(--sombre) 0%, var(--sombre-2) 100%); }
    .hero h1 { font-size: 1.7rem; }
    .hero .boutons .bouton { flex: 1 1 100%; }
    .navigation-periode { flex-direction: column; align-items: stretch; }
    .periode { justify-content: space-between; }
    .onglets { align-self: center; }
    .grille { grid-template-columns: 1fr; }
    .tableau { display: block; overflow-x: auto; white-space: nowrap; }
    .contact-ligne { grid-template-columns: 1fr; gap: 0; }
    .resa .actions { width: 100%; }
    .sous-menu { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .pied-int { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
@media (max-width: 760px) { /* MAJ 1.0.16 : menu « 📅 Agenda » dans le tableau (sinon coupé par le défilement) */
    .ajout-agenda-menu { position: fixed; left: .8rem; right: .8rem; top: auto; bottom: 1rem; min-width: 0; z-index: 60; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
    .ajout-agenda-menu a { padding: 1rem; font-size: 1.05rem; text-align: center; border-top: 1px solid #eef0f3; }
    .ajout-agenda-menu a:first-child { border-top: 0; }
}
