/* =====================================================================
   DBZCollection v3 - FEUILLE DE STYLE UNIQUE
   Charte : fond ivoire, bande orange degradee et boutons blancs degrades (ancien site)
   ===================================================================== */
:root {
    --fond: #f9f8f4;
    --blanc: #ffffff;
    --texte: #333333;
    --texte-doux: #666666;
    --orange: #ff6600;
    --bleu: #0099ff;
    --rouge: #d9534f;
    --vert: #2e9d4f;
    --bordure: #e6e2d8;
    --largeur: 1024px;
    --rayon: 8px;
    /* polices japonaises de secours : Meiryo / Yu Gothic (Windows), Hiragino (Mac, iPhone), Noto Sans JP (Android) */
    --police: 'Segoe UI', Tahoma, Geneva, Verdana, Meiryo, 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--fond);
    color: var(--texte);
    font-family: var(--police);
    line-height: 1.5;
}
body.modal-ouverte { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
[hidden] { display: none !important; }

/* =====================================================================
   EN-TETE (charte de l'ancien site : bande orange degradee, boutons blancs degrades)
   ===================================================================== */
.entete { position: sticky; top: 0; z-index: 900; width: 100%; background: var(--fond); padding-bottom: 2px; }
.entete.defile { box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.int { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 15px; }

/* --- bande 1 : logo + espace membre --- */
.bande-haut { background: var(--fond); border-bottom: 0; }
.bande-haut .int { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo-lien { display: flex; align-items: center; }
.site-logo { display: block; height: 50px; width: auto; }
.zone-membre { display: flex; align-items: center; gap: 10px; }

.btn-connexion, .btn-inscription, .btn-messages, .compte-btn, .btn-burger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; border: 0; background: none; cursor: pointer;
    font: 600 14px var(--police); text-decoration: none;
}
.btn-burger { display: none; }
.btn-connexion { color: #1f6aa5; padding: 0 10px; }
.btn-connexion i { font-size: 18px; color: var(--orange); }
.btn-connexion:hover span { text-decoration: underline; }
.btn-inscription {
    min-height: 0; height: 36px; padding: 0 14px; border-radius: 2px 8px 8px 2px; color: #fff;
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%);
    border-bottom: 2px solid #bb540b; text-shadow: 0 1px 1px rgba(110,45,0,.45);
}
.btn-inscription:hover, .btn-inscription.actif { background: linear-gradient(#e8ad6a 0%, #e6a359 45%, #e8952e 52%, #e99229 100%); }

.btn-messages { position: relative; width: 42px; color: #1f6aa5; font-size: 20px; border-radius: 50%; }
.btn-messages:hover { color: var(--orange); background: #fff4e8; }
.pastille {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: #e0262d; color: #fff; font: 700 11px var(--police); line-height: 1;
}
.btn-messages .pastille { position: absolute; top: 1px; right: -2px; box-shadow: 0 0 0 2px #fff; }

.compte { position: relative; }
.compte-btn { padding: 3px 8px 3px 3px; border-radius: 24px; color: var(--texte); }
.compte-btn:hover, .compte-btn[aria-expanded="true"] { background: #fff4e8; }
.compte-pseudo { display: flex; flex-direction: column; align-items: flex-start; max-width: 160px; line-height: 1.15; text-align: left; }
.compte-pseudo small, .compte-tete small { font-size: 11.5px; font-weight: 400; color: var(--texte-doux); }
.compte-pseudo { overflow: hidden; } .compte-pseudo, .compte-pseudo > * { text-overflow: ellipsis; white-space: nowrap; }
.compte-fleche { font-size: 11px; color: #999; transition: transform .2s; }
.compte-btn[aria-expanded="true"] .compte-fleche { transform: rotate(180deg); }
/* avatar : carre, arrondi uniquement a droite (haut et bas), sans bordure,
   + filet orange decale qui part du haut et descend a droite, sur 3/4 de la longueur */
.avatar-cadre { position: relative; display: inline-flex; flex: none; margin: 4px 4px 0 0; }
.avatar-cadre::after {
    content: ""; position: absolute; top: -4px; right: -4px;
    width: 75%; height: 75%;
    border-top: 2px solid var(--orange); border-right: 2px solid var(--orange);
    border-top-right-radius: 10px;
    pointer-events: none;
}
.avatar { display: block; width: 36px; height: 36px; border-radius: 0 8px 8px 0; object-fit: cover; background: #f1ece2; flex: none; }
.avatar-vide { display: inline-flex; align-items: center; justify-content: center; color: var(--orange); font-size: 16px; }
.compte-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 950;
    width: 270px; padding: 8px;
    background: var(--blanc); border: 1px solid #ecdcc4; border-radius: var(--rayon);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.compte-tete { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; margin-bottom: 4px; border-bottom: 2px solid var(--orange); }
.compte-tete .avatar { width: 46px; height: 46px; border-radius: 0 10px 10px 0; }
.compte-tete small { display: block; line-height: 1.1; }
.compte-tete b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.compte-tete span { font-size: 12.5px; color: var(--texte-doux); }
.compte-lien, .compte-deco button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 5px; background: none;
    color: var(--texte); font: 14.5px var(--police); text-align: left; text-decoration: none; cursor: pointer;
}
.compte-lien i, .compte-deco i { width: 18px; text-align: center; color: var(--orange); }
.compte-lien:hover, .compte-deco button:hover { background: #fff4e8; color: #c85f05; }
.compte-lien .pastille { margin-left: auto; }
.compte-deco { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #eee; }
.compte-deco button:hover, .compte-deco button:hover i { color: var(--rouge); background: #fbeceb; }

/* --- bandes 2 et 3 : barres orange de l'ancien site (largeur du site, decalees, arrondies a droite) --- */
.bande-menu, .bande-univers { width: 100%; }
.barre {
    position: relative;
    margin: 0 -8px 0 -6px;                 /* depasse legerement la colonne du site, comme l'ancien */
    border-radius: 2px 9px 9px 2px;
    color: #fff;
}
.barre-menu {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; margin-top: 0; padding: 0 10px 0 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0) 35%, rgba(190,40,0,.13) 100%),
        linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%);
    border-bottom: 2px solid #bb540b;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
/* le menu : un seul bandeau clair et uniforme (pas des boutons), qui deborde a gauche */
.menu {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
    margin: 0 0 0 -10px; padding: 0 8px; list-style: none;
    background: linear-gradient(#ffffff 0%, #f6f6f6 45%, #e9e9e9 55%, #efefef 100%);
    border: 1px solid #b4b4b4; border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.menu > li { position: relative; display: flex; align-items: center; }
.btn-menu {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    color: #5c5c5c; font: 700 14px var(--police); text-decoration: none; white-space: nowrap;
    text-shadow: 0 1px 0 #fff;
    transition: color .15s;
}
.btn-menu:hover, .btn-menu:focus-visible, .menu > li:hover > .btn-menu { color: #d8650a; outline: none; }
.btn-menu.actif { color: #d8650a; }
.boule {
    display: inline-block; width: 15px; height: 15px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 38% 32%, #fff3b8 0, #f7c04a 28%, #e8901c 62%, #b9600a 100%);
    box-shadow: 0 0 0 1px rgba(150,80,10,.35);
}
.btn-menu .fleche { font-size: 10px; margin-left: 2px; }
.menu-ico { display: none; }
.menu-visiteur { display: none !important; }
.sous-toggle { display: none; }
.sous-menu {
    position: absolute; left: 0; top: 100%; z-index: 950; display: none;
    min-width: 200px; margin: 0; padding: 6px; list-style: none;
    background: var(--blanc); border: 1px solid #d9cdb8; border-radius: 0 0 var(--rayon) var(--rayon);
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.menu > li:hover > .sous-menu, .menu > li:focus-within > .sous-menu { display: block; }
.sous-lien { display: block; padding: 8px 10px; border-radius: 4px; color: var(--texte); font-size: 14px; text-decoration: none; text-shadow: none; }
.sous-lien:hover, .sous-lien.actif { background: #fdf2e4; color: #c85f05; }
.reseaux { display: flex; gap: 4px; }
.reseaux a {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; color: #fff; font-size: 16px; text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
.reseaux a:hover { background: rgba(255,255,255,.2); }
.reseaux svg { width: 15px; height: 15px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }

/* barre des univers : fine (environ 20 px) comme l'ancien site */
.barre-univers {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 20px; margin-top: 6px; padding: 1px 8px;
    background: linear-gradient(#cf6c14 0%, #e78a22 50%, #e2851d 100%);
    border-bottom: 1px solid #b8520c;
    text-shadow: 0 1px 1px rgba(110,45,0,.55);
}
.slogan { font: 700 12.5px var(--police); }
.univers { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.univers li { display: flex; align-items: center; }
.univers a { display: inline-flex; align-items: center; gap: 4px; height: 18px; color: #fff; font: 700 12.5px/1 var(--police); text-decoration: none; }
.univers a::after { content: "::"; margin-left: 2px; }
.univers a:hover .univers-nom { text-decoration: underline; }
.univers-img { height: 18px; width: auto; }
.univers-ico { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; flex: none; line-height: 1; }
.univers-ico i { display: block; line-height: 1; }
.univers-img { display: block; }
.univers-ico.boule { background: radial-gradient(circle at 38% 32%, #fff3b8 0, #f7c04a 28%, #e8901c 62%, #b9600a 100%); box-shadow: 0 0 0 1px #fff; }
.univers-ico.fa-ico { background: #3a3a3a; color: #fff; font-size: 9px; box-shadow: 0 0 0 1px #fff; }
.univers-ico.lettre-a { background: #fff; color: #2e9d4f; font: 900 10px var(--police); box-shadow: 0 0 0 2px #2e9d4f; text-shadow: none; }

/* --- liens pas encore construits --- */
a.bientot-vu { position: relative; }
a.bientot-vu::after {
    content: "bientôt"; position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); z-index: 960;
    padding: 2px 7px; border-radius: 4px; background: #333; color: #fff; font: 600 11px var(--police); white-space: nowrap; text-shadow: none;
}

/* --- ligne neon (pied de page) --- */
.neon-line-orange-light {
    width: 100%; height: 2px; border-radius: 2px; background-color: var(--orange);
    box-shadow: 0 0 4px rgba(255,102,0,.8), 0 0 10px rgba(255,102,0,.5), 0 0 20px rgba(255,80,0,.3);
}

/* --- tablette / smartphone --- */
@media (max-width: 860px) {
    .bande-haut .int { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 58px; padding: 0 8px; }
    .btn-burger { display: inline-flex; justify-self: start; width: 44px; font-size: 22px; color: var(--orange); border-radius: 6px; }
    .btn-burger:hover, .btn-burger[aria-expanded="true"] { background: #fff4e8; }
    .zone-membre { justify-self: end; gap: 2px; padding-right: 6px; }
    .site-logo { height: 40px; }
    .compte-pseudo, .compte-fleche, .btn-inscription, .btn-connexion span { display: none; }
    .btn-connexion { width: 44px; padding: 0; }
    .btn-connexion i { font-size: 21px; }
    .compte-btn { padding: 2px; }
    .compte-menu { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; max-height: calc(100vh - 72px); overflow-y: auto; }

    /* menu smartphone : meme style que le menu du compte (carte blanche, icones orange) */
    .bande-menu { display: none; position: fixed; left: 8px; right: 8px; top: 62px; z-index: 950; width: auto;
        max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px;
        background: var(--blanc); border: 1px solid #ecdcc4; border-radius: var(--rayon); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
    .bande-menu.ouvert { display: block; }
    .barre { margin: 0; border-radius: 0; }
    .bande-menu .int, .bande-univers .int { padding: 0; }
    .barre-menu { display: block; min-height: 0; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
    .menu { display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
    .menu > li { flex-wrap: wrap; }
    .btn-menu { flex: 1; gap: 10px; min-height: 42px; padding: 9px 10px; border-radius: 5px; color: var(--texte); font: 400 14.5px var(--police); text-shadow: none; }
    .btn-menu:hover, .menu > li:hover > .btn-menu, .btn-menu.actif { color: #c85f05; background: #fff4e8; }
    .btn-menu.actif { font-weight: 600; }
    .boule, .btn-menu .fleche { display: none; }
    .menu-visiteur { display: flex !important; margin-top: 4px; border-top: 1px solid #eee; padding-top: 4px; }
    .menu-ico { display: inline-block; width: 18px; text-align: center; color: var(--orange); }
    .sous-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-height: 42px; border: 0; border-radius: 5px; background: none; color: #999; cursor: pointer; }
    .sous-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
    .sous-menu, .menu > li:hover > .sous-menu, .menu > li:focus-within > .sous-menu { position: static; display: none; width: 100%; padding: 0 0 4px 38px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .menu > li.sous-ouvert > .sous-menu { display: block; }
    .reseaux { justify-content: center; gap: 10px; margin-top: 4px; padding-top: 8px; border-top: 1px solid #eee; }
    .reseaux a { color: var(--orange); text-shadow: none; }
    .reseaux a:hover { background: #fff4e8; }
    .reseaux svg { filter: none; }

    .barre-univers { justify-content: center; margin: 0; min-height: 28px; }
    .slogan, .univers-nom, .univers a::after { display: none; }
    .univers { gap: 22px; }
    .univers-ico, .univers-img { width: 22px; height: 22px; }
    .univers-ico.fa-ico { font-size: 11px; } .univers-ico.lettre-a { font-size: 12px; }
    a.bientot-vu::after { top: auto; bottom: calc(100% + 4px); }
}

/* ---------- Contenu ---------- */
.contenu { flex: 1; width: 100%; max-width: var(--largeur); padding: 20px 15px; }
.contenu h1 { margin: 0 0 16px; font-size: 26px; color: var(--texte); }
.contenu h1 span { color: var(--orange); }
.carte-bloc {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.carte-bloc h2 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid var(--orange);
    font-size: 17px;
}
.carte-bloc h2 i { color: var(--bleu); }
.carte-bloc.verrou { background: #f4f2ec; color: var(--texte-doux); }
.carte-bloc.verrou h2 i { color: #aaa; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grille .carte-bloc { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stats li { background: var(--fond); border-radius: 6px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 22px; color: var(--orange); }
.stats span { font-size: 13px; color: var(--texte-doux); }

.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.fiche dt { color: var(--texte-doux); }
.fiche dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; background: #fff0e6; color: var(--orange); font-size: 12px; font-weight: 700; }
.badge.team { background: #e6f5ff; color: var(--bleu); }

/* ---------- Alertes ---------- */
.alerte { margin-bottom: 14px; padding: 10px 14px; border-radius: 6px; border-left: 4px solid var(--bleu); background: #e9f6ff; font-size: 14px; }
.alerte-ok { border-left-color: var(--vert); background: #ebf7ef; }
.alerte-erreur { border-left-color: var(--rouge); background: #fbeceb; color: #8a2522; }

/* ---------- Formulaires ---------- */
.form-connexion { display: flex; flex-direction: column; gap: 6px; }
.form-connexion label { font-size: 14px; font-weight: 600; }
.form-connexion input {
    width: 100%; height: 44px; padding: 0 12px;
    border: 1px solid #ccc; border-radius: 6px;
    font: 16px var(--police);   /* 16px : evite le zoom automatique sur iPhone */
}
.form-connexion label.case { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 400; cursor: pointer; }
.form-connexion label.case input { width: 20px; height: 20px; accent-color: var(--orange); }
.form-connexion input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,102,0,.2); }
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin-top: 8px; padding: 0 18px;
    border: none; border-bottom: 2px solid #bb540b; border-radius: 6px;
    /* meme degrade que la barre du menu (moins vif qu'un orange uni) */
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff;
    text-shadow: 0 1px 1px rgba(110,45,0,.45);
    font: 600 15px var(--police); cursor: pointer; text-decoration: none;
    transition: background .2s;
}
.bouton:hover, .bouton:focus-visible { background: linear-gradient(#e8ad6a 0%, #e6a359 45%, #e8952e 52%, #e99229 100%); outline: none; }
.bouton:focus-visible { box-shadow: 0 0 0 3px rgba(229,137,28,.3); }
.page-connexion { max-width: 380px; margin: 10px auto; }

/* ---------- Pied de page ---------- */
.footer-container {
    width: 100%; max-width: var(--largeur);
    padding: 20px 15px;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    text-align: center;
}
.footer-socials { display: flex; gap: 20px; align-items: center; font-size: 22px; }
.footer-socials a { display: flex; align-items: center; color: var(--orange); transition: color .2s ease, transform .2s ease; }
.footer-socials a:hover { color: var(--bleu); transform: scale(1.1); }
.footer-text { font-size: 13px; color: var(--texte-doux); }

/* ---------- Fenetres (Menu / Compte) ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    padding: 15px;
    background-color: rgba(0,0,0,.5);
}
.modal-box {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 350px; max-height: calc(100vh - 30px); overflow-y: auto;
    padding: 20px 25px;
    border-radius: var(--rayon);
    background-color: var(--blanc);
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    animation: modalPop .2s ease-in-out;
}
@keyframes modalPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 8px; border-bottom: 2px solid var(--orange);
    font-weight: bold; font-size: 17px; color: var(--texte);
}
.modal-close { min-width: 36px; min-height: 36px; border: none; background: none; font-size: 18px; color: #777; cursor: pointer; }
.modal-close:hover { color: var(--rouge); }
.modal-statut { margin-top: -6px; font-size: 13px; color: var(--texte-doux); }
.modal-links { display: flex; flex-direction: column; gap: 4px; }
.modal-links a, .modal-links button {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px;
    border: none; border-radius: 5px; background: none;
    color: var(--texte); font: 15px var(--police); text-align: left; text-decoration: none;
    cursor: pointer; transition: background .2s, color .2s;
}
.modal-links a:hover, .modal-links button:hover { background-color: var(--fond); color: var(--orange); }
.modal-links i { width: 20px; text-align: center; color: var(--bleu); }
.modal-links hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #eee; }
.modal-links form { margin: 0; }
.modal-links .logout-link:hover, .modal-links .logout-link:hover i { color: var(--rouge); }
.modal-note { margin: 0; font-size: 12.5px; color: var(--texte-doux); }

/* ---------- Telephone ---------- */
@media (max-width: 600px) {
    .contenu { padding: 14px 12px; }
    .contenu h1 { font-size: 21px; }
    .grille { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .modal-box { padding: 16px 18px; }
}

/* =====================================================================
   PAGES DE CONTENU (titre de page facon ancien site, inscription, textes legaux)
   ===================================================================== */
.page-titre {
    display: flex; align-items: center; gap: 10px;
    margin: 0 -8px 18px -6px; padding: 4px 14px 4px 10px;
    border-radius: 2px 9px 9px 2px; border-bottom: 2px solid #bb540b;
    background:
        linear-gradient(to right, rgba(255,255,255,0) 35%, rgba(190,40,0,.13) 100%),
        linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.page-titre .boule { width: 22px; height: 22px; box-shadow: 0 0 0 2px #fff; }
.contenu .page-titre h1 { margin: 0; color: #fff; font-size: 18px; text-shadow: 0 1px 1px rgba(110,45,0,.5); }
.intro { margin: 0 0 16px; color: var(--texte-doux); }
.oblig { color: #d9534f; font-weight: 700; }
.carte-bloc h2 small { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--texte-doux); }

/* formulaire d'inscription */
.form-inscription .champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-inscription .champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-inscription .champ-large { grid-column: 1 / -1; }
.form-inscription label, .form-inscription .label { font-size: 14px; font-weight: 600; }
.form-inscription input[type=text], .form-inscription input[type=email], .form-inscription input[type=password],
.form-inscription input[type=date], .form-inscription textarea {
    width: 100%; min-height: 42px; padding: 8px 12px;
    border: 1px solid #ccc; border-radius: 6px; background: #fff;
    font: 16px var(--police); color: var(--texte);
}
.form-inscription textarea { resize: vertical; line-height: 1.45; }
.form-inscription input:focus, .form-inscription textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,102,0,.18); }
.form-inscription [aria-invalid="true"] { border-color: #d9534f; background: #fff8f7; }
.aide { margin: 0; font-size: 12.5px; color: var(--texte-doux); }
.champ-erreur { margin: 0; font-size: 13px; color: #b52b27; font-weight: 600; }
.verif { margin: 0; font-size: 13px; min-height: 0; }
.verif.ok { color: var(--vert); } .verif.ko { color: #b52b27; }
.verif.ok::before { content: "\2713  "; } .verif.ko::before { content: "\2717  "; }
.mdp-zone { position: relative; }
.mdp-zone input { padding-right: 44px !important; }
.mdp-oeil { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; border: 0; background: none; color: #888; cursor: pointer; }
.mdp-oeil:hover { color: var(--orange); }
.mdp-regles { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.mdp-regles li { padding: 1px 8px; border-radius: 99px; background: #f1ece2; color: #777; font-size: 12px; }
.mdp-regles li.ok { background: #e3f4e8; color: #237a3d; }
.mdp-regles li.ok::before { content: "\2713 "; }
.avatar-zone { display: flex; align-items: center; gap: 16px; }
.avatar-apercu {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 90px; height: 90px; border-radius: 0 12px 12px 0; overflow: hidden;
    background: #f1ece2; color: #c9b9a0; font-size: 34px;
}
.avatar-apercu img { width: 100%; height: 100%; object-fit: cover; }
.fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bouton-clair { margin: 0 0 4px; background: #fff; color: #c85f05; border: 1px solid #e3b98a; text-shadow: none; cursor: pointer; }
.bouton-clair:hover { background: #fff4e8; color: #c85f05; }
.fichier-cache:focus + .aide, .avatar-zone label:focus-within { outline: 2px solid var(--orange); }
.reseaux-bloc summary { list-style: none; cursor: pointer; }
.reseaux-bloc summary::-webkit-details-marker { display: none; }
.reseaux-bloc summary h2 { margin-bottom: 0; }
.reseaux-bloc[open] summary h2 { margin-bottom: 10px; }
.reseaux-bloc .replier { margin-left: auto; font-size: 13px; color: #999; transition: transform .2s; }
.reseaux-bloc[open] .replier { transform: rotate(180deg); }
.reseaux-bloc > .aide { margin-bottom: 12px; }
.champs-reseaux { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.reseau-ico { width: 18px; text-align: center; color: #666; }
.reseau-facebook { color: #1877f2; } .reseau-instagram { color: #d62976; } .reseau-tiktok, .reseau-x { color: #111; }
.reseau-discord { color: #5865f2; } .reseau-snapchat { color: #e6c800; } .reseau-reddit { color: #ff4500; }
.reseau-pinterest { color: #e60023; } .reseau-youtube { color: #ff0000; } .reseau-twitch { color: #9146ff; } .reseau-line { color: #06c755; }
.captcha-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.captcha-zone img { border: 1px solid #e3cfb2; border-radius: 6px; }
.captcha-zone input { width: 130px !important; text-transform: uppercase; letter-spacing: 3px; font-weight: 700 !important; }
.captcha-nouveau { width: 42px; height: 42px; border: 1px solid #e3b98a; border-radius: 6px; background: #fff; color: #c85f05; cursor: pointer; }
.captcha-nouveau:hover { background: #fff4e8; }
.case-ligne { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 2px; font-size: 14px; font-weight: 400 !important; cursor: pointer; }
.case-ligne input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.bouton-grand { width: 100%; min-height: 48px; margin-top: 16px; font-size: 16px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inscription-ok p { margin: 0 0 10px; }
.mail-debug { margin: 8px 0 0; padding: 10px; border-radius: 6px; background: #fff; font: 12.5px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-inscription { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 6px; background: #fff4e8; color: #c85f05; font-size: 14px; text-decoration: none; }
.modal-inscription:hover { background: #ffe9cf; }

/* textes legaux (charte, mentions) */
.texte-legal { line-height: 1.65; }
.texte-legal h2 { margin-top: 24px; }
.texte-legal h2:first-of-type { margin-top: 6px; }
.texte-legal h3 { margin: 16px 0 6px; font-size: 15px; color: #c85f05; }
.texte-legal ul { padding-left: 20px; }
.texte-legal li { margin-bottom: 4px; }
.texte-legal .maj { margin: 0 0 12px; font-size: 13px; color: var(--texte-doux); }
.texte-legal .signature { font-style: italic; text-align: right; }
.texte-legal [id] { scroll-margin-top: 130px; }
.sommaire { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.sommaire a { padding: 3px 10px; border-radius: 99px; background: #fff4e8; color: #c85f05; font-size: 13px; text-decoration: none; }
.sommaire a:hover { background: #ffe9cf; }
.footer-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 40px; width: 100%; padding: 0 10px; box-sizing: border-box; text-align: left; }   /* toute la largeur du site (1280 px...) */
.footer-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.footer-col h3 { margin: 0 0 4px; padding-bottom: 5px; border-bottom: 2px solid var(--orange); color: #006699; font: 700 13.5px var(--police); }
.footer-col a { color: var(--texte-doux); text-decoration: none; }
.footer-col a:hover { color: var(--orange); text-decoration: underline; }
@media (max-width: 760px) { .footer-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 700px) {
    .form-inscription .champs, .champs-reseaux { grid-template-columns: 1fr !important; }
    .page-titre { margin: 0 0 14px; border-radius: 0 8px 8px 0; }
    .avatar-zone { align-items: flex-start; }
    .avatar-apercu { width: 72px; height: 72px; }
    .texte-legal [id] { scroll-margin-top: 80px; }
}

/* =====================================================================
   MON COMPTE
   ===================================================================== */
.sommaire-compte { margin-bottom: 16px; }
.sommaire-compte a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13.5px; color: #006699; }
.sommaire-compte a:hover { color: #006699; }
.ancre { scroll-margin-top: 130px; }
.form-compte form + form { margin: 0; }
.recap { display: flex; align-items: flex-start; gap: 20px; }
.recap-avatar { flex: none; }
.recap-avatar img, .recap-avatar .avatar-vide { display: block; width: 110px; height: 110px; border-radius: 0 12px 12px 0; object-fit: cover; }
.recap-avatar .avatar-cadre { display: inline-block; }
.recap-avatar .recap-mini { width: 110px; height: 110px; font-size: 40px; }
.recap-fiche { flex: 1; gap: 7px 16px; }
.verrou-pseudo { margin-left: 6px; font-size: 12px; font-weight: 400; color: #999; white-space: nowrap; }
.etat { font-weight: 600; } .etat-ok { color: var(--vert); } .etat-non { color: var(--rouge); }
.petit-lien { margin-left: 6px; font-size: 13px; font-weight: 400; }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.boutons-ligne .bouton-clair { margin: 8px 0 0; }
.form-compte .bouton { margin-top: 12px; }
.interrupteur { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: #fff8ef; border: 1px solid #f2dcc0; cursor: pointer; font-weight: 400 !important; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur-curseur { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; background: #c9c2b5; transition: background .2s; }
.interrupteur-curseur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur input:checked + .interrupteur-curseur { background: linear-gradient(#e3a259, #e48b21); }
.interrupteur input:checked + .interrupteur-curseur::after { transform: translateX(20px); }
.interrupteur input:focus-visible + .interrupteur-curseur { box-shadow: 0 0 0 3px rgba(255,102,0,.3); }
.interrupteur b { display: block; font-size: 14.5px; }
.interrupteur small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--texte-doux); line-height: 1.45; }
.securite-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.sous-bloc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sous-bloc form { display: flex; flex-direction: column; gap: 12px; }
.sous-bloc h3 { margin: 0; font-size: 15px; color: #c85f05; }
.sous-bloc .bouton { align-self: flex-start; }
.alerte.attente { margin: 0; }
.en-ligne { display: inline; }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--bleu); font: inherit; text-decoration: underline; cursor: pointer; }
.banniere-image { margin: 12px 0 16px; overflow-x: auto; }
.banniere-image img { display: block; max-width: none; margin: 0 auto; }
.banniere-codes { display: flex; flex-direction: column; gap: 12px; }
.code-ligne { display: flex; gap: 8px; align-items: stretch; }
.code-ligne textarea { flex: 1; min-height: 42px !important; font: 13px/1.4 Consolas, monospace !important; color: #555 !important; background: #faf8f3 !important; resize: none; }
.bouton-copier { flex: none; min-width: 110px; margin: 0 !important; }
.bouton-copier.copie { background: #e3f4e8; border-color: #9fd5b0; color: #237a3d; }
.zone-danger { border-color: #f0c9c6; }
.zone-danger summary { list-style: none; cursor: pointer; }
.zone-danger summary::-webkit-details-marker { display: none; }
.zone-danger summary h2 { margin-bottom: 0; border-bottom-color: #e8a19c; }
.zone-danger summary h2 i:first-child { color: var(--rouge); }
.zone-danger details[open] summary h2 { margin-bottom: 12px; }
.zone-danger .replier { margin-left: auto; font-size: 13px; color: #999; transition: transform .2s; }
.zone-danger details[open] .replier { transform: rotate(180deg); }
.zone-danger p { margin: 0 0 10px; }
.zone-danger .champ { max-width: 360px; }
.bouton-danger { background: linear-gradient(#e07a75 0%, #d9625c 50%, #c9504a 100%); border-bottom-color: #9e3632; }
.bouton-danger:hover, .bouton-danger:focus-visible { background: linear-gradient(#e58b86 0%, #df716b 50%, #d05c56 100%); }
.bouton-danger:disabled { background: #e6c3c1; border-bottom-color: #d3a5a2; text-shadow: none; cursor: not-allowed; }

@media (max-width: 700px) {
    .recap { flex-direction: column; align-items: center; }
    .recap-fiche { width: 100%; grid-template-columns: 1fr; gap: 0; }
    .recap-fiche dt { margin-top: 8px; font-size: 12.5px; }
    .securite-grille { grid-template-columns: 1fr; }
    .code-ligne { flex-direction: column; }
    .bouton-copier { align-self: flex-start; }
    .ancre { scroll-margin-top: 80px; }
    .sommaire-compte a { font-size: 13px; }
}
.form-compte .carte-bloc > .aide { margin-bottom: 12px; }

.diag { margin: 6px 0; padding-left: 20px; }
.banniere-lien { margin: -8px 0 14px; text-align: center; }

/* =====================================================================
   MESSAGERIE
   ===================================================================== */
/* onglets : meme barre blanche que le menu principal */
.msg-onglets {
    display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; padding: 3px 6px;
    background: linear-gradient(#ffffff 0%, #f6f6f6 45%, #e9e9e9 55%, #efefef 100%);
    border: 1px solid #b4b4b4; border-radius: 2px 9px 9px 2px; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.msg-onglets a {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 6px;
    color: #5c5c5c; font: 700 14px var(--police); text-decoration: none; text-shadow: 0 1px 0 #fff;
}
.msg-onglets a i { color: #006699; }
.msg-onglets a:hover, .msg-onglets a.actif { color: #d8650a; background: rgba(255,255,255,.75); }
.msg-onglets a.actif { box-shadow: inset 0 -2px 0 #e48b21; }
.msg-onglets .msg-nouveau { margin-left: auto; }
.msg-onglets .pastille { text-shadow: none; }
.msg-compte { font-weight: 400; font-size: 12px; color: #888; }
.msg-compte.plein { color: var(--rouge); font-weight: 700; }

/* liste des messages */
.msg-boite h2 { margin-bottom: 8px; }
.msg-vide { margin: 6px 0; color: var(--texte-doux); }
.msg-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.msg-tout { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 13.5px; color: var(--texte-doux); cursor: pointer; }
.msg-tout input, .msg-case input { width: 17px; height: 17px; accent-color: #e48b21; cursor: pointer; }
.bouton-petit { min-height: 34px !important; margin: 0 !important; padding: 0 12px; font-size: 13px; }
.msg-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bordure); }
.msg-entete, .msg-ligne {
    display: grid; grid-template-columns: 28px 26px minmax(0, 1fr) 150px 110px 66px;
    align-items: center; gap: 8px; padding: 7px 6px; border-bottom: 1px solid var(--bordure);
}
.msg-entete { padding-top: 5px; padding-bottom: 5px; background: #faf8f3; color: #006699; font-size: 12.5px; font-weight: 700; }
.msg-ligne { font-size: 14px; cursor: pointer; transition: background .15s; }
.msg-ligne:hover { background: #fffaf3; }
.msg-ligne.ouvert { background: #fff4e8; }
.msg-etat { text-align: center; color: #aaa; }
.msg-ligne.non-lu .msg-etat { color: #006699; }
.msg-etat .lu { color: var(--vert); }
.msg-titre { overflow: hidden; color: #006699; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.msg-titre:hover { text-decoration: underline; }
.msg-ligne.non-lu .msg-titre, .msg-ligne.non-lu .msg-autre { font-weight: 700; color: #00507a; }
.msg-autre { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #555; }
.msg-date { color: var(--texte-doux); font-size: 13px; white-space: nowrap; }
.msg-boutons { display: flex; justify-content: flex-end; gap: 2px; }
.msg-icone { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: #999; font-size: 14px; cursor: pointer; text-decoration: none; }
.msg-icone:hover { background: #fff0df; color: #c85f05; }
.msg-icone.repondu { color: var(--vert); }
.msg-icone.suppr:hover { background: #fbeceb; color: var(--rouge); }

/* lecture d'un message */
.msg-tete { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #e48b21; }
.msg-tete .avatar-cadre { flex: none; }
.msg-tete h2 { margin: 0; padding: 0; border: 0; color: #006699; font-size: 18px; overflow-wrap: anywhere; }
.msg-infos { margin: 3px 0 0; font-size: 13px; color: var(--texte-doux); }
.etat-attente { color: #b07a1a; }
.msg-texte { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.msg-texte a { color: #006699; }
.citation { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid #006699; border-radius: 0 6px 6px 0; background: #f3f6f8; color: #555; font-style: italic; }
.citation .citation-tete { display: block; margin-bottom: 2px; font-style: normal; font-size: 13px; color: #006699; }
.citation .citation { background: #e9eef2; }
.msg-actions { margin-top: 14px; }
.msg-actions .bouton, .msg-actions .bouton-clair { margin: 0; }

/* ecrire un message */
.form-message { display: flex; flex-direction: column; gap: 14px; }
.form-message .bouton { align-self: flex-start; margin-top: 0; }
.interrupteur-annonce { margin: 0; }
.msg-dest-fixe { margin: 0; padding: 9px 12px; border-radius: 6px; background: #faf8f3; font-weight: 600; }
.msg-dest-fixe i { color: #006699; margin-right: 4px; }
.suggestion-zone { position: relative; max-width: 360px; }
.suggestion-zone input.choisi { border-color: var(--vert) !important; background: #f4fbf6 !important; }
.suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin: 2px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #e3cfb2; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.suggestions li { padding: 7px 10px; border-radius: 4px; cursor: pointer; font-size: 14.5px; }
.suggestions li:hover, .suggestions li.actif { background: #fff4e8; color: #c85f05; }
.suggestions .suggestion-vide { color: #999; cursor: default; }
.suggestions .suggestion-vide:hover { background: none; color: #999; }
.bbcode-barre { display: flex; gap: 4px; margin: 2px 0 4px; }
.bbcode-barre button { width: 36px; height: 32px; border: 1px solid #d8d2c6; border-radius: 6px; background: linear-gradient(#ffffff, #efefef); color: #5c5c5c; cursor: pointer; }
.bbcode-barre button:hover { color: #c85f05; border-color: #e3b98a; }
.msg-aide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
#texte-compteur.presque { color: var(--rouge); font-weight: 700; }

@media (max-width: 700px) {
    .msg-onglets a { padding: 7px 9px; }
    .msg-onglets .msg-nouveau { margin-left: 0; }
    .msg-entete { display: none; }
    .msg-ligne {
        grid-template-columns: 26px 22px minmax(0, 1fr) auto;
        grid-template-areas: "case etat titre boutons" "case etat infos boutons";
        row-gap: 0; padding: 9px 4px;
    }
    .msg-case { grid-area: case; } .msg-etat { grid-area: etat; } .msg-titre { grid-area: titre; } .msg-boutons { grid-area: boutons; }
    .msg-autre, .msg-date { grid-row: 2; font-size: 12.5px; }
    .msg-autre { grid-column: 3; }
    .msg-date { grid-column: 3; justify-self: end; }
    .msg-tete h2 { font-size: 16px; }
}

/* mot de passe oublie */
.ligne-oubli { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.lien-oubli { margin-top: 4px; font-size: 13px; color: #006699; }
.page-oubli { max-width: 440px; }
.oubli-intro { margin: 0 0 12px; font-size: 13.5px; }
.oubli-retour { margin: 12px 0 0; font-size: 13.5px; }
.oubli-retour a { color: #006699; text-decoration: none; }
.form-oubli { display: flex; flex-direction: column; gap: 14px; }
.form-oubli .bouton { margin-top: 0; }

/* bandeau d'information cookies (bas de l'ecran, sans voile) */
.bandeau-cookies {
    position: fixed; left: 50%; bottom: 14px; z-index: 900;
    display: flex; align-items: center; gap: 14px;
    width: calc(100% - 24px); max-width: 760px; padding: 12px 16px;
    background: #fff; border: 1px solid #e3cfb2; border-top: 3px solid #e48b21; border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    transform: translate(-50%, 20px); opacity: 0; transition: transform .25s, opacity .25s;
}
.bandeau-cookies.visible { transform: translate(-50%, 0); opacity: 1; }
.bandeau-cookies p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.45; color: #444; }
.bandeau-cookies a { color: #006699; }
.bandeau-cookies-ico { font-size: 24px; color: #e48b21; }
.bandeau-cookies .bouton { flex: none; margin: 0; min-height: 38px; }
@media (max-width: 560px) {
    .bandeau-cookies { flex-wrap: wrap; bottom: 8px; gap: 8px 12px; }
    .bandeau-cookies-ico { display: none; }
    .bandeau-cookies .bouton { width: 100%; }
}

/* =====================================================================
   PAGE PERSO
   ===================================================================== */
.pp-entete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.pp-entete .intro { flex: 1; min-width: 260px; }
.pp-entete .bouton { margin: 0 0 12px; }
.pp-brouillon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-editeur { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 14px 14px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
/* barre d'outils : meme barre blanche que le menu */
.pp-outils {
    position: sticky; top: 118px; z-index: 20;
    display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding: 5px 6px;
    background: linear-gradient(#ffffff 0%, #f6f6f6 45%, #e9e9e9 55%, #efefef 100%);
    border: 1px solid #b4b4b4; border-radius: 2px 9px 9px 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.pp-groupe { display: flex; gap: 2px; padding-right: 10px; border-right: 1px solid #d6d6d6; }
.pp-groupe:last-child { border-right: 0; padding-right: 0; }
.pp-outils button { min-width: 32px; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: none; color: #5c5c5c; font: 700 13px var(--police); cursor: pointer; }
.pp-outils button:hover, .pp-outils button[aria-expanded="true"] { background: #fff; border-color: #e3b98a; color: #c85f05; }
.pastille-couleur { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pp-fond-rouge { background: #d9342b; } .pp-fond-bleu { background: #006699; } .pp-fond-vert { background: #2e9d4f; }
.pp-fond-orange { background: #e48b21; } .pp-fond-gris { background: #888; }
.pp-emoji-zone { position: relative; }
.pp-emojis {
    position: absolute; top: 100%; right: 0; z-index: 30; margin-top: 6px;
    display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 6px;
    background: #fff; border: 1px solid #e3cfb2; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.pp-emojis[hidden] { display: none; }
.pp-emojis button { width: 34px; height: 34px; font-size: 19px; font-weight: 400; }
/* onglets smartphone */
.pp-onglets { display: none; }
/* deux colonnes : ecrire | apercu */
.pp-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pp-ecrire textarea {
    width: 100%; min-height: 520px; padding: 12px; resize: vertical;
    border: 1px solid #ccc; border-radius: 6px; background: #fff;
    font: 14.5px/1.55 Consolas, 'Courier New', monospace; color: var(--texte);
}
.pp-ecrire textarea:focus { outline: none; border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.pp-apercu-zone { display: flex; flex-direction: column; min-width: 0; }
.pp-apercu-titre { padding: 6px 10px; border-radius: 6px 6px 0 0; background: #faf8f3; border: 1px solid var(--bordure); border-bottom: 0; color: #006699; font-size: 13px; font-weight: 700; }
.pp-apercu { flex: 1; min-height: 520px; max-height: 720px; overflow: auto; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 0 0 6px 6px; background: #fff; }
.pp-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.pp-pied .bouton { margin: 0; }
.pp-modifie { font-size: 13px; color: #b07a1a; }
.pp-modifie i { font-size: 8px; vertical-align: middle; margin-right: 3px; }
/* aide */
.pp-aide summary { list-style: none; cursor: pointer; }
.pp-aide summary::-webkit-details-marker { display: none; }
.pp-aide summary h2 { margin-bottom: 0; }
.pp-aide details[open] summary h2 { margin-bottom: 10px; }
.pp-aide .replier { margin-left: auto; font-size: 13px; color: #999; transition: transform .2s; }
.pp-aide details[open] .replier { transform: rotate(180deg); }
.pp-aide-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 6px 24px; margin-top: 10px; }
.pp-aide-grille h3 { margin: 6px 0 4px; font-size: 14px; color: #c85f05; }
.pp-aide-grille ul { margin: 0; padding: 0; list-style: none; }
.pp-aide-ligne { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 5px 8px; border: 0; border-radius: 5px; background: none; text-align: left; cursor: pointer; }
.pp-aide-ligne:hover { background: #fff4e8; }
.pp-aide-ligne code, .pp-aide code { font: 12.5px Consolas, monospace; color: #006699; overflow-wrap: anywhere; }
.pp-aide-ligne span { font-size: 12.5px; color: var(--texte-doux); }

/* rendu d'une page perso (apercu et page publique) */
.pp-contenu { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.pp-contenu .pp-titre1 { margin: 10px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #e48b21; color: #d8650a; font-size: 21px; }
.pp-contenu .pp-titre2 { margin: 10px 0 6px; padding-bottom: 3px; border-bottom: 1px dotted #ccc; color: #006699; font-size: 17px; }
.pp-contenu .pp-titre3 { margin: 8px 0 4px; font-size: 15px; }
.pp-contenu > :first-child { margin-top: 0; }
.pp-gauche { text-align: left; } .pp-centre { text-align: center; } .pp-droite { text-align: right; }
.pp-rouge { color: #d9342b; } .pp-bleu { color: #006699; } .pp-vert { color: #2e9d4f; } .pp-orange { color: #e07b10; } .pp-gris { color: #888; }
.pp-petit { font-size: .82em; } .pp-grand { font-size: 1.35em; font-weight: 600; }
.pp-liste { margin: 6px 0; padding-left: 22px; }
.pp-cadre { margin: 8px 0; padding: 10px 14px; border-left: 4px solid #e48b21; border-radius: 0 8px 8px 0; background: #fff6ea; }
.pp-separateur { margin: 14px 0; border: 0; border-top: 2px dotted #e3cfb2; }
.pp-spoiler { margin: 8px 0; border: 1px dashed #c9b9a0; border-radius: 6px; background: #faf8f3; }
.pp-spoiler summary { padding: 6px 10px; cursor: pointer; color: #006699; font-weight: 600; }
.pp-spoiler summary small { font-weight: 400; color: #999; }
.pp-spoiler > div { padding: 0 12px 10px; }
.pp-image { display: block; margin: 8px 0; text-align: center; }
.pp-image img { max-width: 100%; height: auto; border-radius: 4px; }
.pp-membre { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 99px; background: #e9f3f8; color: #006699; font-weight: 600; text-decoration: none; }
.pp-membre:hover { background: #d6e8f1; }
.pp-carte { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #e3cfb2; border-radius: 5px; background: #fff8ef; color: #c85f05; font: 600 13.5px var(--police); }
.pp-contenu a { color: #006699; }
/* page publique */
.pp-page-tete { flex-wrap: wrap; }
.pp-page-tete > div:nth-child(2) { flex: 1; min-width: 200px; }
.pp-page-actions .bouton { margin: 0; }

@media (max-width: 860px) {
    .pp-outils { position: static; gap: 2px 4px; }
    .pp-groupe { padding-right: 4px; }
    .pp-outils button { min-width: 34px; height: 34px; }
    .pp-onglets { display: flex; gap: 4px; margin: 0 0 8px; }
    .pp-onglets button { flex: 1; min-height: 40px; border: 1px solid #e3cfb2; border-radius: 6px; background: #fff; color: #5c5c5c; font: 600 14px var(--police); cursor: pointer; }
    .pp-onglets button.actif { background: #fff4e8; color: #c85f05; border-color: #e48b21; }
    .pp-colonnes { grid-template-columns: 1fr; }
    .pp-colonnes[data-vue="ecrire"] .pp-apercu-zone, .pp-colonnes[data-vue="apercu"] .pp-ecrire { display: none; }
    .pp-ecrire textarea, .pp-apercu { min-height: 380px; }
    .pp-outils { position: relative; top: auto; }   /* pas de decalage sur smartphone */
    .pp-emoji-zone { position: static; }
    .pp-emojis { left: 0; right: 0; grid-template-columns: repeat(auto-fill, 34px); justify-content: center; }
}

.contenu h1.titre-test { margin-top: 24px; font-size: 19px; }

/* etiquette "En cours" dans le menu du compte */
.etiquette-menu { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #f1ece2; color: #8a7c66; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* =====================================================================
   MES STATISTIQUES
   ===================================================================== */
.stats-maj { font-size: 13px; }
.stats-maj i { color: #006699; margin-right: 4px; }
.stats-titre { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; font-size: 19px; color: #444; }
.stats-titre i { color: #e48b21; }
/* tuiles de chiffres cles */
.stats-tuiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.stats-tuiles-petites { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 1000px) { .stats-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tuile {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px;
    background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden;
}
.tuile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #e3a259, #e48b21); }
.tuile-ico { position: absolute; top: 12px; right: 12px; color: #e9d7bd; font-size: 20px; }
.tuile-libelle { font-size: 12.5px; color: var(--texte-doux); }
.tuile-valeur { font-size: 26px; line-height: 1.15; color: #333; font-variant-numeric: tabular-nums; }
.tuile-detail { font-size: 12px; color: #999; }
.stats-tuiles-petites .tuile-valeur { font-size: 22px; }
/* grille des blocs */
.stats-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats-grille .carte-bloc { margin: 0; min-width: 0; }
.stats-large { grid-column: 1 / -1; }
.stats-grille h3 { margin: 0 0 10px; font-size: 15px; color: #006699; }
.stats-grille h3 i { color: #e48b21; margin-right: 4px; }
.stats-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 4px; }
.stats-entete h3 { margin: 0; }
.stats-sous { margin: 0 0 6px; font-size: 13px; color: var(--texte-doux); }
.stats-annees { display: flex; flex-wrap: wrap; gap: 4px; }
.stats-annees button { padding: 3px 10px; border: 1px solid #e3cfb2; border-radius: 99px; background: #fff; color: #8a7c66; font: 600 12.5px var(--police); cursor: pointer; }
.stats-annees button:hover { color: #c85f05; }
.stats-annees button.actif { background: linear-gradient(#e3a259, #e48b21); border-color: #d27a17; color: #fff; }
/* graphiques SVG */
.gr { display: block; width: 100%; height: auto; overflow: visible; }
.gr-axe { font: 11px var(--police); fill: #8a8172; }
.gr-cible { cursor: default; }
.gr-calendrier { width: auto; max-width: none; }
.gr-calendrier rect.gr-actif { stroke: #333; stroke-width: 1.5; }
.gr-point.gr-actif { fill: rgba(0,102,153,.06); }
.stats-calendrier { overflow-x: auto; padding-bottom: 4px; }
.gr-legende { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: #999; }
.gr-legende svg { width: 11px; height: 11px; }
.gr-legende span:first-child { margin-right: 3px; } .gr-legende span:last-child { margin-left: 3px; }
.gr-barres { display: flex; flex-direction: column; gap: 7px; }
.gr-barre { display: grid; grid-template-columns: minmax(150px, 36%) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 2px 4px; border-radius: 4px; font-size: 13.5px; }
.gr-barre:hover, .gr-barre.gr-actif { background: #fbf6ee; }
.gr-barre-nom { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #555; }
.gr-pastille { flex: none; width: 10px; height: 10px; }
.gr-barre-trace { width: 100%; height: 10px; }
.gr-barre-val { min-width: 42px; text-align: right; font-weight: 600; color: #444; font-variant-numeric: tabular-nums; }
.gr-bulle {
    position: fixed; z-index: 1000; max-width: 260px; padding: 6px 10px; border-radius: 6px; pointer-events: none;
    background: #2f2a24; color: #fff; font-size: 12.5px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.stats-fiche { gap: 6px 16px; }
.stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-mini div { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 8px; background: #faf8f3; }
.stats-mini b { font-size: 24px; color: #333; }
.stats-mini span { font-size: 12.5px; color: var(--texte-doux); }
/* barres de progression (balise <progress> : aucune largeur ecrite dans la page, compatible CSP) */
.stats-grille progress { width: 100%; height: 10px; border: 0; border-radius: 99px; background: #f1ece2; overflow: hidden; -webkit-appearance: none; appearance: none; }
.stats-grille progress::-webkit-progress-bar { background: #f1ece2; border-radius: 99px; }
.stats-grille progress::-webkit-progress-value { background: linear-gradient(90deg, #e3a259, #e48b21); border-radius: 99px; }
.stats-grille progress::-moz-progress-bar { background: linear-gradient(90deg, #e3a259, #e48b21); border-radius: 99px; }
.complete progress::-webkit-progress-value { background: #2e9d4f; }
.complete progress::-moz-progress-bar { background: #2e9d4f; }
.stats-presque { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.stats-presque li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fbf6ee; }
.stats-presque progress { grid-column: 1 / -1; }
.sp-nom { display: flex; flex-direction: column; min-width: 0; }
.sp-nom b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.sp-nom small { color: #999; font-size: 12px; }
.sp-manque { font-size: 12.5px; color: #c85f05; white-space: nowrap; }
/* arbre pays > collections > series */
.stats-arbre { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.stats-arbre summary { list-style: none; cursor: pointer; }
.stats-arbre summary::-webkit-details-marker { display: none; }
.arbre-pays > summary, .arbre-collection > summary, .arbre-series li {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) minmax(150px, auto); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px;
}
.arbre-pays > summary { background: #faf8f3; border: 1px solid var(--bordure); }
.arbre-pays > summary:hover, .arbre-collection > summary:hover { background: #fff4e8; }
.arbre-pays[open] > summary { border-color: #e3cfb2; }
.arbre-collection { margin: 4px 0 0 18px; }
.arbre-collection > summary { border-bottom: 1px dotted #e6dfd2; border-radius: 0; }
.arbre-series { margin: 2px 0 8px 36px; padding: 0; list-style: none; }
.arbre-series li { padding: 5px 10px; font-size: 13.5px; }
.arbre-nom { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.arbre-nom small { color: #999; font-size: 12px; }
.arbre-fleche { flex: none; font-size: 11px; color: #c9b9a0; transition: transform .2s; }
details[open] > summary .arbre-fleche { transform: rotate(90deg); }
.arbre-val { text-align: right; font-size: 13px; color: #666; white-space: nowrap; font-variant-numeric: tabular-nums; }
.arbre-val b { display: inline-block; min-width: 48px; color: #333; }
.badge-complete { padding: 0 7px; border-radius: 99px; background: #e3f4e8; color: #237a3d; font-size: 11px; font-weight: 700; }

@media (max-width: 760px) {
    .stats-grille { grid-template-columns: 1fr; }
    .gr .gr-axe { font-size: 20px; }   /* le graphique est reduit : texte agrandi pour rester lisible */
    .gr-calendrier .gr-axe { font-size: 11px; }
    .stats-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tuile { padding: 12px 10px 10px; }
    .tuile-valeur { font-size: 22px; }
    .tuile-ico { font-size: 16px; }
    .arbre-pays > summary, .arbre-collection > summary, .arbre-series li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
    .arbre-pays progress, .arbre-collection progress, .arbre-series progress { grid-column: 1 / -1; grid-row: 2; }
    .arbre-nom { grid-row: 1; grid-column: 1; } .arbre-val { grid-row: 1; grid-column: 2; }
    .arbre-collection { margin-left: 8px; }
    .arbre-series { margin-left: 14px; }
    .gr-barre { grid-template-columns: minmax(96px, 40%) minmax(0, 1fr) auto; gap: 8px; }
}

.drapeau { flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.stats-mini small { font-size: 11.5px; color: #999; }

/* =====================================================================
   MA COLLECTION
   ===================================================================== */
.col-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.col-etat.publique { background: #ebf7ef; color: #1f6b35; }
.col-etat.privee { background: #fbeceb; color: #8a2522; }
.col-etat a { margin-left: auto; color: #006699; font-size: 13px; }
.col-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.col-apercus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.col-apercus .carte-bloc { margin: 0; min-width: 0; }
.col-apercus h2 i { color: #e48b21; }
.col-apercus .aide { margin-bottom: 8px; }
.col-sous { margin: 10px 0 4px; font-size: 13px; color: #006699; }
.col-liste { margin: 0; padding: 0; list-style: none; }
.col-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px dotted #e6dfd2; font-size: 13.5px; }
.col-liste li:last-child { border-bottom: 0; }
.col-liste-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; }
.col-liste-nom small { flex-basis: 100%; color: #999; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.col-rarete { flex: none; padding: 1px 8px; border-radius: 99px; background: #fff0df; color: #c85f05; font-size: 12px; font-weight: 700; white-space: nowrap; }
.col-rang { flex: none; font-size: 16px; font-weight: 700; color: #444; white-space: nowrap; }
.col-rang small { margin-left: 3px; font-size: 11.5px; font-weight: 400; color: #999; }
.col-rang.podium { color: #d8650a; }
.col-date { flex: none; font-size: 12px; color: #999; }
/* recapitulatif */
.col-recap > h2 { margin-bottom: 12px; }
.col-onglets { margin-bottom: 12px; }
.col-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.col-filtre { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 340px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #999; }
.col-filtre input { flex: 1; min-height: 38px; border: 0; outline: none; font: 15px var(--police); background: none; }
.col-filtre:focus-within { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.col-manquantes { margin: 0 !important; }
.col-pays { margin-bottom: 14px; }
.col-pays-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 10px; border-radius: 6px; background: #faf8f3; border-left: 4px solid #e48b21; font-size: 15px; }
.col-pays-titre small { margin-left: auto; font-weight: 400; font-size: 12.5px; color: #999; }
.col-collection > summary {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) minmax(150px, auto); align-items: center; gap: 12px;
    padding: 8px 10px; border-bottom: 1px dotted #e6dfd2; font-size: 14px;
}
.col-collection > summary::-webkit-details-marker { display: none; }
.col-collection > summary:hover { background: #fff4e8; }
.col-collection[open] > summary { background: #fff8ef; }
.col-recap progress { width: 100%; height: 10px; border: 0; border-radius: 99px; background: #f1ece2; overflow: hidden; -webkit-appearance: none; appearance: none; }
.col-recap progress::-webkit-progress-bar { background: #f1ece2; border-radius: 99px; }
.col-recap progress::-webkit-progress-value { background: linear-gradient(90deg, #e3a259, #e48b21); border-radius: 99px; }
.col-recap progress::-moz-progress-bar { background: linear-gradient(90deg, #e3a259, #e48b21); border-radius: 99px; }
.col-detail { padding: 6px 4px 12px 22px; }
.col-chargement { color: #999; font-size: 13px; }
.col-serie { margin: 8px 0 12px; }
.col-serie-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding-bottom: 3px; border-bottom: 1px solid #efe9df; font-size: 13.5px; }
.col-serie-tete b { color: #006699; }
.col-serie-tete span { font-size: 12.5px; color: #777; }
.col-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.col-carte { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 7px; border: 1px solid #e6dfd2; border-radius: 5px; background: #fff; font-size: 12.5px; }
.col-num { flex: none; min-width: 28px; font-weight: 700; color: #444; font-variant-numeric: tabular-nums; }
.col-nom { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #555; }
.col-carte.possede { border-color: #f0c999; background: #fff8ef; }
.col-carte.possede .col-num { color: #c85f05; }
.col-carte.manque { border-style: dashed; background: #faf8f3; }
.col-carte.manque .col-num, .col-carte.manque .col-nom { color: #b5ab9b; }
.col-carte.recherche { border-color: #b9d6e6; background: #f1f8fc; }
.col-carte.recherche .col-num { color: #006699; }
.col-carte.doubles { border-color: #f0c999; background: #fff8ef; }
.col-x { flex: none; padding: 0 6px; border-radius: 99px; background: #e48b21; color: #fff; font-size: 11px; font-weight: 700; }
.col-veut { flex: none; color: #006699; font-size: 11px; }
.sans-manquantes .col-carte.manque { display: none; }
.col-serie.complete .col-serie-tete b { color: #237a3d; }

@media (max-width: 960px) { .col-apercus { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .col-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .col-collection > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
    .col-collection progress { grid-column: 1 / -1; grid-row: 2; }
    .col-collection .arbre-nom { grid-row: 1; grid-column: 1; } .col-collection .arbre-val { grid-row: 1; grid-column: 2; }
    .col-collection > summary > span:empty { display: none; }
    .col-detail { padding-left: 4px; }
    .col-cartes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .col-filtre { max-width: none; }
}

/* Ma collection : tout replie (pays > collection > serie), liens, apercu */
details.col-pays > summary { list-style: none; cursor: pointer; }
details.col-pays > summary::-webkit-details-marker, details.col-serie > summary::-webkit-details-marker { display: none; }
details.col-pays > summary:hover { background: #fff4e8; }
details.col-pays[open] > summary { margin-bottom: 4px; }
details.col-pays { margin-bottom: 8px; }
details.col-pays > .col-collection { margin-left: 10px; }
details.col-serie { margin: 4px 0; }
details.col-serie > summary { list-style: none; cursor: pointer; margin: 0; padding: 5px 6px; border-radius: 5px; }
details.col-serie > summary:hover { background: #fff4e8; }
details.col-serie[open] > summary { margin-bottom: 6px; }
details.col-serie > .col-cartes { margin: 0 0 10px 18px; }
.col-serie-tete .arbre-nom { display: inline-flex; align-items: center; gap: 6px; }
.col-lien { color: #006699; font-weight: 600; text-decoration: none; }
.col-collection .col-lien { color: #333; }
.col-lien:hover, .col-lien:focus-visible { color: #e48b21; text-decoration: underline; }
.col-carte { padding: 0; }
.col-carte-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 4px 7px; border: 0; border-radius: 5px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.col-carte-btn:hover .col-nom, .col-carte-btn:focus-visible .col-nom { color: #e48b21; text-decoration: underline; }
.col-carte-btn:focus-visible { outline: 2px solid #006699; outline-offset: 1px; }
#col-apercu .obj-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 260px; color: #d3c6b0; font-size: 46px; }
#col-apercu .obj-sans-image[hidden] { display: none; }
.msg-onglets button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 6px; background: none;
    color: #5c5c5c; font: 700 14px var(--police); text-shadow: 0 1px 0 #fff; cursor: pointer; }
.msg-onglets button i { color: #006699; }
.msg-onglets button:hover, .msg-onglets button.actif { color: #d8650a; background: rgba(255,255,255,.75); }
.msg-onglets button.actif { box-shadow: inset 0 -2px 0 #e48b21; }
/* livres / goodies : la categorie choisie (data-objmode) filtre l'arbre */
.col-objets .si-recherche, .col-objets .si-doubles { display: none; }
.col-objets[data-objmode="recherche"] .si-possede, .col-objets[data-objmode="doubles"] .si-possede { display: none; }
.col-objets[data-objmode="recherche"] .si-recherche, .col-objets[data-objmode="doubles"] .si-doubles { display: inline; }
.col-objets[data-objmode="recherche"] .si-pas-recherche { display: none; }
.col-objets[data-objmode="possede"] [data-np="0"], .col-objets[data-objmode="recherche"] [data-nv="0"], .col-objets[data-objmode="doubles"] [data-nd="0"] { display: none; }
.col-objets[data-objmode="recherche"] .col-carte:not(.veut), .col-objets[data-objmode="doubles"] .col-carte:not(.double) { display: none; }
.col-objets[data-objmode="recherche"] .col-carte { border-color: #b9d6e6; background: #f1f8fc; border-style: solid; }
.col-objets[data-objmode="recherche"] .col-carte .col-num, .col-objets[data-objmode="recherche"] .col-carte .col-nom { color: #006699; }
.col-objets .col-carte.double .col-num { color: #c85f05; }
.col-objets-vide[hidden] { display: none; }
.col-objets .col-pays-titre small span + span { margin-left: 0; }
.col-rarete-nom { display: inline-flex; align-items: center; gap: 4px; flex-basis: 100%; font-size: 11.5px; color: #8a7c66; }

/* =====================================================================
   CATALOGUE DES CARTES
   ===================================================================== */
/* niveau 1 : outils, pays, lettres, tuiles */
.cat-outils { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cat-recherche { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; padding: 0 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #999; }
.cat-recherche input { flex: 1; min-height: 44px; border: 0; outline: none; background: none; font: 16px var(--police); }
.cat-recherche:focus-within, .cat-editeur:focus { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); outline: none; }
.cat-editeur { min-height: 46px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 15px var(--police); color: #444; max-width: 100%; }
.cat-pays {
    display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 10px; padding: 4px 6px;
    background: linear-gradient(#ffffff 0%, #f6f6f6 45%, #e9e9e9 55%, #efefef 100%);
    border: 1px solid #b4b4b4; border-radius: 2px 9px 9px 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.cat-pays button { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: #5c5c5c; font: 700 13.5px var(--police); white-space: nowrap; cursor: pointer; text-shadow: 0 1px 0 #fff; }
.cat-pays button small { font-weight: 400; color: #999; }
.cat-pays button:hover, .cat-pays button.actif { color: #d8650a; background: rgba(255,255,255,.8); }
.cat-pays button.actif { box-shadow: inset 0 -2px 0 #e48b21; }
.cat-lettres { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 14px; }
.cat-lettres a { min-width: 26px; padding: 3px 0; border-radius: 4px; color: #006699; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.cat-lettres a:hover { background: #e9f3f8; }
.cat-lettres a.inactif { color: #cfc6b6; pointer-events: none; }
.cat-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tuile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; color: #333; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s, border-color .15s; scroll-margin-top: 140px; }
.cat-tuile:hover, .cat-tuile:focus-visible { transform: translateY(-2px); border-color: #e3b98a; box-shadow: 0 6px 16px rgba(0,0,0,.1); outline: none; }
.cat-vignette { display: flex; align-items: center; justify-content: center; height: 96px; background: #faf8f3; border-bottom: 3px solid #e48b21; }
.cat-vignette img { max-height: 90px; max-width: 100%; object-fit: contain; }
.cat-vignette.avec-image { overflow: hidden; }
.cat-vignette.avec-image img { width: 100%; height: 100%; max-height: none; object-fit: cover; }   /* l'image remplit la vignette, les bords peuvent etre coupes */
.cat-vignette.vide { background: linear-gradient(135deg, #fff4e8, #fbe3c4); }
.cat-initiale { font-size: 40px; font-weight: 800; color: #e9c79d; }
.cat-nom { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px 10px; font-size: 13.5px; line-height: 1.3; }
.cat-nom .drapeau { margin-top: 2px; }
.cat-nom b { overflow-wrap: anywhere; }
/* fil d'Ariane */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font-size: 13.5px; }
.fil a { display: inline-flex; align-items: center; gap: 5px; color: #006699; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil span { color: #bbb; }
.fil b { color: #444; }
.carte-bloc h2 small { font-weight: 400; }
.carte-bloc h2 .drapeau { width: 24px; height: 16px; }
.sans-trait { border-bottom: 0 !important; margin: 0 !important; padding: 0 !important; }
/* titre de bloc + lien a droite (Voir plus, Tous...) : le trait orange passe sous toute la ligne (sans :has, pour Firefox 115 / Windows 7) */
.carte-bloc > .stats-entete, .carte-bloc .comm-entete { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--orange); }
.carte-bloc > h2.sans-trait { margin: 0 0 10px !important; padding-bottom: 6px !important; border-bottom: 2px solid var(--orange) !important; }
/* capsules */
.capsules { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.capsule { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 4px; border: 1px solid #e6dfd2; border-radius: 6px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.capsule:hover, .capsule:focus-visible { border-color: #e3b98a; box-shadow: 0 3px 10px rgba(0,0,0,.08); outline: none; }
.capsule img { max-width: 100%; max-height: 100%; }
.capsule-boom { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; opacity: 0; }
.capsule:hover .capsule-img, .capsule.boum .capsule-img { opacity: 0; }
.capsule:hover .capsule-boom, .capsule.boum .capsule-boom { opacity: 1; }
.capsule.actif { border: 2px solid #e48b21; background: #fff8ef; }
.capsule.actif .capsule-img { opacity: 1 !important; }
.capsule.actif .capsule-boom { opacity: 0 !important; }
.capsule.sans-image { padding: 6px; background: linear-gradient(#fff, #f3efe7); }
.capsule-texte { font-size: 11.5px; font-weight: 700; color: #006699; text-align: center; overflow-wrap: anywhere; line-height: 1.2; }
.serie-nav { display: flex; align-items: center; gap: 8px; padding: 10px; }
.capsules-bande { display: flex; flex: 1; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; padding: 2px; }
.capsules-bande .capsule { flex: none; width: 58px; }
.serie-fleche { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 58px; border: 1px solid #e3b98a; border-radius: 6px; background: #fff; color: #c85f05; text-decoration: none; }
.serie-fleche:hover { background: #fff4e8; }
.serie-fleche.inactif { border-color: #eee; color: #ddd; pointer-events: none; }
/* description */
.cat-description summary { list-style: none; cursor: pointer; }
.cat-description summary::-webkit-details-marker { display: none; }
.cat-description summary h2 { margin-bottom: 0; }
.cat-description details[open] summary h2 { margin-bottom: 10px; }
.cat-description .replier { margin-left: auto; font-size: 13px; color: #999; transition: transform .2s; }
.cat-description details[open] .replier { transform: rotate(180deg); }
.cat-texte { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.cat-texte img { max-width: 100%; height: auto; }
.cat-texte table { max-width: 100%; border-collapse: collapse; }
.cat-texte td, .cat-texte th { padding: 3px 6px; border: 1px solid #eee; }
/* grille des cartes et packagings */
.cartes-options { display: flex; gap: 4px; }
.taille-btn { width: 36px; height: 32px; border: 1px solid #e3cfb2; border-radius: 6px; background: #fff; color: #8a7c66; cursor: pointer; }
.taille-btn.actif { background: linear-gradient(#e3a259, #e48b21); border-color: #d27a17; color: #fff; }
.filtre-raretes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.filtre-raretes button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #e3cfb2; border-radius: 99px; background: #fff; color: #555; font: 13px var(--police); cursor: pointer; }
.filtre-raretes button small { color: #999; }
.filtre-raretes button.actif { border-color: #e48b21; background: #fff4e8; color: #c85f05; font-weight: 700; }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.grille-cartes.grand { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grille-cartes li[hidden] { display: none; }
.tuile-carte { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 1px solid #e0d8c9; border-radius: 6px; background: #fff; cursor: zoom-in; font: inherit; scroll-margin-top: 140px; transition: transform .15s, box-shadow .15s; }
.tuile-carte:hover, .tuile-carte:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); outline: none; }
.tuile-bandeau { padding: 3px 4px; overflow: hidden; color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.25);
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); }
.tuile-bandeau.neutre { background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; }
.tuile-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 7 / 10; padding: 6px; background: #faf8f3; }
.tuile-image { padding: 5px; }
.tuile-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.tuile-image img.sans-image { box-shadow: none; }
.grille-packagings { grid-template-columns: repeat(auto-fill, minmax(112px, 140px)); }
.grille-packagings .tuile-image { aspect-ratio: 1; }
/* fenetre d'apercu */
.apercu-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30,24,18,.72); }
.apercu-modal[hidden] { display: none; }
.apercu-boite { position: relative; display: flex; align-items: stretch; gap: 18px; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); padding: 18px 54px; border-radius: 10px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: auto; }
.apercu-image { display: flex; flex: none; align-items: center; justify-content: center; width: 300px; min-height: 300px; padding: 8px; border: 1px solid #e6dfd2; border-radius: 8px; background: #faf8f3; }
.apercu-image img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 6px; }
.apercu-infos { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; }
.apercu-infos h3 { margin: 0; padding: 7px 12px; border-radius: 6px; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font-size: 15px; text-align: center; text-shadow: 0 1px 1px rgba(110,45,0,.45); }
.apercu-fiche { grid-template-columns: max-content 1fr; gap: 0; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.apercu-fiche dt, .apercu-fiche dd { padding: 6px 10px; border-bottom: 1px solid #f1ece2; }
.apercu-fiche dt { background: #faf8f3; color: #006699; font-weight: 700; }
.apercu-fiche dd { color: #444; font-weight: 400; }
.apercu-infos .bouton { align-self: flex-start; margin: 4px 0 0; }
.apercu-aide { margin-top: auto; }
.apercu-fermer { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4f1ea; color: #666; font-size: 18px; cursor: pointer; }
.apercu-fermer:hover { background: #fbe3c4; color: #c85f05; }
.apercu-nav { position: absolute; top: 50%; width: 38px; height: 60px; margin-top: -30px; border: 0; border-radius: 6px; background: #f4f1ea; color: #8a7c66; font-size: 18px; cursor: pointer; }
.apercu-nav.prec { left: 8px; } .apercu-nav.suiv { right: 8px; }
.apercu-nav:hover:not(:disabled) { background: #fbe3c4; color: #c85f05; }
.apercu-nav:disabled { opacity: .3; cursor: default; }

@media (max-width: 760px) {
    .cat-grille { grid-template-columns: 1fr; gap: 6px; }
    .cat-tuile { flex-direction: row; align-items: center; }
    .cat-vignette { width: 64px; height: 52px; flex: none; border-bottom: 0; border-right: 3px solid #e48b21; }
    .cat-vignette img { max-height: 48px; }
    .cat-vignette.avec-image img { max-height: none; }
    .cat-initiale { font-size: 24px; }
    .cat-lettres { flex-wrap: nowrap; justify-content: space-between; gap: 0; touch-action: none; user-select: none; }
    .cat-lettres a { min-width: 0; flex: 1; padding: 6px 0; font-size: 11px; }
    .cat-pays .pays-code { display: none; }   /* smartphone : drapeau + nombre seulement */
    .cat-pays button { padding: 6px 7px; }
    .cat-editeur { width: 100%; }
    .capsules { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
    .grille-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .grille-cartes.grand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grille-packagings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tuile-bandeau { font-size: 11.5px; }
    .apercu-modal { padding: 0; align-items: flex-end; }
    .apercu-boite { flex-direction: column; max-height: 100vh; padding: 50px 14px 16px; border-radius: 12px 12px 0 0; }
    .apercu-image { width: 100%; min-height: 0; }
    .apercu-image img { max-height: 52vh; }
    .apercu-nav { top: 8px; margin: 0; width: 38px; height: 38px; }
    .apercu-nav.prec { left: 8px; } .apercu-nav.suiv { right: 54px; left: auto; }
    .apercu-aide { display: none; }
    .serie-nav { padding: 8px 6px; gap: 4px; }
    .serie-fleche { width: 28px; }
}

/* catalogue : pays (code court), bulle des lettres, cartes redressees */
.cat-pays .pays-code { margin-left: -1px; }
.lettre-bulle { position: fixed; z-index: 1200; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 0 -28px; transform: translateY(-100%);
    border-radius: 50%; background: linear-gradient(#e3a259, #e48b21); color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.25); pointer-events: none; }
.redresser-btn.actif { background: linear-gradient(#e3a259, #e48b21); border-color: #d27a17; color: #fff; }
.tuile-image { position: relative; overflow: hidden; }
.redresse .tuile-image.paysage img {
    position: absolute; left: 50%; top: 50%; width: calc(142.857% - 10px); height: calc(70% - 10px); max-width: none; max-height: none;
    transform: translate(-50%, -50%) rotate(90deg);
}

/* menu flottant des options de la liste de cartes (bouton rond en bas a droite) */
.outils-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px;
    border: 2px solid #fff; border-radius: 50%; background: linear-gradient(#e3a259, #e48b21); color: #fff; font-size: 21px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s; }
.outils-flottant:hover, .outils-flottant:focus-visible { transform: scale(1.07); outline: none; }
.outils-flottant.ouvert { background: linear-gradient(#d27a17, #b9650c); }
.outils-flottant[hidden], .outils-panneau[hidden] { display: none; }
.outils-panneau { position: fixed; right: 18px; bottom: 84px; z-index: 900; width: 320px; max-width: calc(100vw - 36px); max-height: calc(100vh - 200px); overflow-y: auto;
    padding: 12px 14px 14px; border: 1px solid #e3cfb2; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.outils-tete { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #e48b21; color: #333; }
.outils-tete i { color: #e48b21; }
.outils-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f4efe6; color: #777; cursor: pointer; }
.outils-ligne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.outils-choix { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px; border: 1px solid #e3cfb2; border-radius: 8px; background: #fff; color: #6d604c; font: 12px var(--police); cursor: pointer; }
.outils-choix i { font-size: 13px; }
.outils-choix.actif { background: linear-gradient(#e3a259, #e48b21); border-color: #d27a17; color: #fff; }
.outils-titre { margin: 12px 0 6px; color: #8a7c66; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.outils-raretes { margin: 0; }
.outils-haut { width: 100%; margin-top: 12px; padding: 8px; border: 1px solid #e3cfb2; border-radius: 8px; background: #faf6ef; color: #006699; font: 13px var(--police); cursor: pointer; }
@media (max-width: 760px) { .outils-flottant { right: 14px; bottom: 14px; } .outils-panneau { right: 14px; left: 14px; width: auto; max-width: none; bottom: 78px; } }
@media print { .outils-flottant, .outils-panneau { display: none !important; } }

/* ================= RECHERCHE AVANCEE ================= */
.cat-avancee { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
    border: none; border-bottom: 2px solid #bb540b; border-radius: 8px; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%);
    color: #fff; font-size: 19px; text-decoration: none; text-shadow: 0 1px 1px rgba(110,45,0,.45); }
.cat-avancee:hover, .cat-avancee:focus-visible { background: linear-gradient(#e8ad6a 0%, #e6a359 45%, #e8952e 52%, #e99229 100%); outline: none; }
[data-bulle]::after { content: attr(data-bulle); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 50; transform: translateX(-50%);
    padding: 4px 9px; border-radius: 5px; background: #333; color: #fff; font: 600 12.5px var(--police); white-space: nowrap; text-shadow: none;
    opacity: 0; pointer-events: none; transition: opacity .15s; }
[data-bulle]:hover::after, [data-bulle]:focus-visible::after { opacity: 1; }
.rech-page { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 12px; align-items: start; }
.rech-page > .carte-bloc { margin: 0; }
.rech-form-bloc { padding: 12px 14px; }
.rech-criteres > summary { list-style: none; cursor: pointer; }
.rech-criteres > summary::-webkit-details-marker { display: none; }
.rech-criteres > summary h2 { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding-bottom: 6px; font-size: 16px; white-space: nowrap; }
.rech-criteres > summary .replier { margin-left: auto; color: #999; font-size: 13px; transition: transform .2s; }
.rech-criteres[open] > summary .replier { transform: rotate(180deg); }
.rech-form fieldset { margin: 0 0 6px; padding: 0; border: 0; }
.rech-form legend { width: 100%; margin: 2px 0 6px; padding-bottom: 3px; border-bottom: 1px dashed #e3cfb2; color: #006699; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rech-champ { display: flex; flex-direction: column; gap: 2px; margin-bottom: 7px; }
.rech-champ > span, .rech-champ > label { color: #555; font-size: 12.5px; font-weight: 600; }
.rech-champ small { color: #999; font-weight: 400; }
.rech-form select, .rech-form input[type="search"] { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #444; font: 13.5px var(--police); }
.rech-form select:focus, .rech-form input:focus { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); outline: none; }
.rech-form select:disabled { background: #f5f3ef; color: #aaa; }
.rech-double { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 5px; }
.rech-double select:first-child { padding: 0 4px; background: #faf6ef; color: #6d604c; font-size: 12.5px; }
.rech-double [hidden] { display: none; }
.rech-form .aide { margin: -3px 0 6px; font-size: 11.5px; }
.rech-actions { display: flex; gap: 6px; margin-top: 4px; }
.rech-actions .bouton { flex: 1; min-height: 38px; margin: 0; padding: 0 12px; font-size: 14px; }
.rech-actions .bouton-clair { flex: 0 0 auto; }
.rech-panneau { width: 300px; top: 74px; max-height: none; }
@media (max-width: 760px) { .rech-panneau { top: 64px; width: auto; } }
.rech-panneau .rech-form { margin: 0; }
.rech-page-num { color: #999; font-size: 13px; }
.rech-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; }
.rech-etiquettes li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 10px; border: 1px solid #b9d5e3; border-radius: 99px; background: #eef6fa; font-size: 13px; }
.rech-etiquettes li span { color: #4d7a90; }
.rech-etiquettes li b { color: #006699; }
.rech-etiquettes a { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #6d8fa0; text-decoration: none; }
.rech-etiquettes a:hover { background: #fbeceb; color: var(--rouge); }
.rech-intro { margin: 0 0 6px; }
.rech-grille { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.tuile-info { display: flex; flex-direction: column; gap: 1px; padding: 5px 6px 6px; border-top: 1px solid #efe8dc; text-align: left; line-height: 1.25; }
.tuile-info .ti-col { display: flex; align-items: center; gap: 4px; overflow: hidden; color: #333; font-size: 11.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.tuile-info .ti-col .drapeau { flex: none; width: 15px; height: 10px; }
.tuile-info .ti-serie { overflow: hidden; color: #888; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 16px 0 2px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #e3cfb2; border-radius: 6px; background: #fff; color: #6d604c; font-weight: 600; text-decoration: none; }
.pagination a:hover { border-color: #e48b21; color: #c85f05; }
.pagination a.actif { border-color: #d27a17; background: linear-gradient(#e3a259, #e48b21); color: #fff; }
.pagination a.inactif { opacity: .35; pointer-events: none; }
.pag-trou { color: #aaa; }
.apercu-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.apercu-boutons .bouton { margin: 0; }
.apercu-boutons [hidden] { display: none; }
@media (max-width: 899px) {
    .rech-page { grid-template-columns: minmax(0, 1fr); }
    .rech-form select, .rech-form input[type="search"] { height: 40px; font-size: 16px; }   /* 16px : pas de zoom automatique sur iPhone */
    .rech-double select:first-child { font-size: 14px; }
}
@media (max-width: 760px) {
    .cat-outils .cat-recherche { min-width: 0; flex: 1 1 0; }
    .cat-outils .cat-editeur { flex: 1 1 100%; }
    .rech-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-avancee[data-bulle]::after { display: none; }
}

/* ascenseur discret et arrondi (panneaux flottants) - Firefox : fin + couleurs ; Chrome / Edge : barre arrondie */
.outils-panneau { scrollbar-width: thin; scrollbar-color: #e3b98a transparent; }
.outils-panneau::-webkit-scrollbar { width: 8px; }
.outils-panneau::-webkit-scrollbar-track { margin: 12px 0; background: transparent; }
.outils-panneau::-webkit-scrollbar-thumb { border: 2px solid #fff; border-radius: 99px; background: #e3b98a; }
.outils-panneau::-webkit-scrollbar-thumb:hover { background: #e48b21; }

/* menu flottant de la liste des collections : recherche, editeur, drapeaux (sans abreviation), lettres */
.cat-panneau { width: 380px; max-height: calc(100vh - 170px); }
.cat-panneau .cat-outils { gap: 6px; margin-bottom: 10px; }
.cat-panneau .cat-recherche { flex: 1 1 0; min-width: 0; }
.cat-panneau .cat-recherche input { min-height: 40px; }
.cat-panneau .cat-avancee { width: 42px; height: 42px; }
.cat-panneau .cat-avancee[data-bulle]::after { display: none; }
.cat-panneau .cat-editeur { flex: 1 1 100%; min-height: 40px; }
.cat-panneau .cat-pays { gap: 2px; padding: 4px; border-radius: 8px; }
.cat-panneau .cat-pays .pays-code { display: none; }
.cat-panneau .cat-pays button { gap: 4px; padding: 5px 6px; font-size: 13px; }
.cat-panneau .cat-lettres { flex-wrap: wrap; justify-content: flex-start; gap: 3px; margin: 0; touch-action: auto; }
.cat-panneau .cat-lettres a { flex: 0 0 auto; min-width: 30px; padding: 5px 0; border: 1px solid #e3edf2; background: #f6fafc; font-size: 13px; }
.cat-panneau .cat-lettres a.inactif { border-color: transparent; background: none; }
@media (max-width: 760px) { .cat-panneau { width: auto; } .cat-panneau .cat-recherche input, .cat-panneau .cat-editeur { font-size: 16px; } }
.cat-maison { display: flow-root; }   /* garde la meme hauteur quand son contenu part dans le menu flottant */

/* ================= ACCUEIL ================= */
.accueil-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.accueil-grille .carte-bloc { margin-bottom: 0; }
.acc-colonne { display: flex; flex-direction: column; gap: 16px; }
.acc-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-boutons .bouton { margin: 0; }
/* mosaique : 1 grande vignette a gauche, 2 petites empilees a droite */
.acc-mosaique { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 340px; }
.acc-mosaique.acc-nb1 { grid-template-columns: 1fr; }
.acc-mosaique.acc-nb2 { grid-template-rows: 1fr; }
.acc-tuile { position: relative; display: block; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #e3a259, #b9650c); color: #fff; text-decoration: none; isolation: isolate; }
.acc-tuile.grande { grid-row: span 2; }
.acc-mosaique.acc-nb2 .acc-tuile.grande { grid-row: auto; }
.acc-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
    filter: saturate(.75) brightness(.82); transform: scale(1.01); transition: transform .7s ease, filter .7s ease; }
/* voile sobre : l'image s'efface vers le bas pour faire ressortir les ecrits */
.acc-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(28,14,2,.92) 0%, rgba(28,14,2,.55) 38%, rgba(28,14,2,.08) 75%, rgba(28,14,2,.2) 100%); }
.acc-tuile:hover .acc-fond, .acc-tuile:focus-visible .acc-fond { transform: scale(1.09); filter: saturate(1.05) brightness(1.06); }
/* au survol, le voile sombre s'eclaircit : l'image ressort, le texte reste lisible (ombre portee) */
.acc-voile { transition: opacity .5s ease; }
.acc-tuile:hover .acc-voile, .acc-tuile:focus-visible .acc-voile { opacity: .55; }
.acc-tuile:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
.acc-drapeau { position: absolute; top: 9px; left: 9px; display: flex; padding: 2px; border-radius: 3px; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.acc-drapeau .drapeau { display: block; width: 21px; height: 14px; }
.acc-texte { position: absolute; right: 12px; bottom: 11px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.acc-col { max-width: 100%; overflow: hidden; padding: 2px 7px; border-radius: 3px; background: linear-gradient(#e3a259, #e48b21); color: #fff;
    font: 700 10.5px var(--police); letter-spacing: .03em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(110,45,0,.45); }
.acc-serie { display: -webkit-box; overflow: hidden; font: 800 15px/1.2 var(--police); text-shadow: 0 2px 6px rgba(0,0,0,.6); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.acc-tuile.grande .acc-serie { font-size: 23px; -webkit-line-clamp: 3; }
.acc-date { color: rgba(255,255,255,.78); font-size: 11.5px; }
.acc-tuile.grande .acc-date { font-size: 12.5px; }
.acc-plus { margin: 10px 0 0; text-align: right; font-size: 13.5px; }
.acc-plus a { color: #006699; font-weight: 600; text-decoration: none; }
.acc-plus a:hover { text-decoration: underline; }
@media (max-width: 899px) {
    .accueil-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .acc-mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; height: auto; }
    .acc-tuile.grande { grid-column: 1 / -1; grid-row: auto; }
    .acc-tuile.grande .acc-serie { font-size: 20px; }
    .acc-serie { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .acc-fond { transition: none; } }
.acc-colonne .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* accueil : les deux colonnes finissent a la meme hauteur ; 8 dernieres cartes sur toute la largeur */
.accueil-grille { align-items: stretch; margin-bottom: 16px; }
.acc-series { display: flex; flex-direction: column; }
.acc-series .acc-mosaique { flex: 1; height: auto; min-height: 340px; }
.acc-colonne .acc-chiffres { flex: 1; display: flex; flex-direction: column; }
.acc-colonne .acc-chiffres .stats { flex: 1; align-content: stretch; }
.acc-colonne .acc-chiffres .stats li { display: flex; flex-direction: column; justify-content: center; }
/* dernieres cartes : meme style que les vignettes de serie (voile sobre, drapeau en haut a gauche, zoom au survol).
   La carte entiere reste visible et centree (cartes carrees ou rondes comprises). */
.acc-grille { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
@media (max-width: 1099px) {   /* tablette : 7 cartes sur une ligne */
    .acc-grille { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .acc-grille li:nth-child(n+8) { display: none; }
}
.acc-grille .acc-carte-texte b { font-size: 13px; }
.acc-carte { position: relative; display: block; width: 100%; aspect-ratio: 7 / 10; overflow: hidden; padding: 0; border: 0; border-radius: 10px; cursor: zoom-in; isolation: isolate;
    background: radial-gradient(circle at 50% 40%, #6b4a2b 0%, #2b1a0b 75%); }
.acc-carte-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; object-position: center;
    filter: saturate(.85) brightness(.9); transition: transform .6s ease, filter .6s ease; }
.acc-carte-img.sans-image { object-fit: cover; filter: none; }
.acc-carte .acc-voile { background: linear-gradient(to top, rgba(28,14,2,.9) 0%, rgba(28,14,2,.45) 26%, rgba(28,14,2,0) 50%); }
.acc-carte:hover .acc-carte-img, .acc-carte:focus-visible .acc-carte-img { transform: scale(1.08); filter: saturate(1.05) brightness(1.06); }
.acc-carte:hover .acc-voile, .acc-carte:focus-visible .acc-voile { opacity: .5; }
.acc-carte:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
.acc-carte .acc-drapeau { top: 7px; left: 7px; }
.acc-carte .acc-drapeau .drapeau { width: 18px; height: 12px; }
.acc-carte-texte { position: absolute; right: 8px; bottom: 7px; left: 8px; display: flex; flex-direction: column; gap: 1px; color: #fff; text-align: left; }
.acc-carte-texte b { overflow: hidden; font: 800 14px/1.2 var(--police); white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 5px rgba(0,0,0,.7); }
.acc-carte-texte small { overflow: hidden; color: rgba(255,255,255,.78); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .acc-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .acc-grille li:nth-child(n+7) { display: none; }   /* smartphone : 6 cartes (2 lignes de 3) */
}
.acc-lien { color: #006699; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.acc-lien:hover { text-decoration: underline; }
@media (max-width: 899px) { .acc-series .acc-mosaique { min-height: 320px; } }
@media (max-width: 560px) { .acc-series .acc-mosaique { flex: none; } }

/* ===== accueil v2 : bienvenue en haut (pleine largeur), series 70 % + chiffres 30 %, dernieres cartes dessous ===== */
.acc-bienvenue { margin-bottom: 16px; }
.acc-bienvenue p { margin-bottom: 0; }
.acc-bienvenue .acc-boutons { margin-top: 10px; }
.accueil-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
/* 1 grande vignette + 4 petites (2 x 2) */
.acc-mosaique.acc-nb5, .acc-mosaique.acc-nb4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.acc-mosaique.acc-nb4 .acc-tuile:last-child { grid-column: span 2; }
.acc-mosaique.acc-nb5 .acc-tuile:not(.grande) .acc-serie, .acc-mosaique.acc-nb4 .acc-tuile:not(.grande) .acc-serie { font-size: 14px; }
.acc-mosaique.acc-nb5 .acc-tuile:not(.grande) .acc-col { font-size: 9.5px; }
/* 1 grande vignette + 6 petites (3 x 2) */
.acc-mosaique.acc-nb7, .acc-mosaique.acc-nb6 { grid-template-columns: 1.8fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.acc-mosaique.acc-nb6 .acc-tuile:last-child { grid-column: span 2; }
.acc-mosaique.acc-nb7 .acc-tuile:not(.grande) .acc-serie, .acc-mosaique.acc-nb6 .acc-tuile:not(.grande) .acc-serie { font-size: 13px; }
.acc-mosaique.acc-nb7 .acc-tuile:not(.grande) .acc-col, .acc-mosaique.acc-nb6 .acc-tuile:not(.grande) .acc-col { font-size: 9px; padding: 1px 5px; }
.acc-mosaique.acc-nb7 .acc-tuile:not(.grande) .acc-date, .acc-mosaique.acc-nb6 .acc-tuile:not(.grande) .acc-date { font-size: 10.5px; }
.acc-mosaique.acc-nb7 .acc-tuile:not(.grande) .acc-texte, .acc-mosaique.acc-nb6 .acc-tuile:not(.grande) .acc-texte { right: 8px; bottom: 8px; left: 8px; gap: 3px; }
/* chiffres les uns au-dessus des autres */
.acc-chiffres { display: flex; flex-direction: column; }
.acc-stats { display: flex; flex: 1; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-stats li { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-left: 3px solid #e48b21; border-radius: 6px; background: var(--fond); }
.acc-stats span { color: var(--texte-doux); font-size: 13.5px; }
.acc-stats b { color: var(--orange); font-size: 21px; white-space: nowrap; }
@media (max-width: 899px) {
    .accueil-grille { grid-template-columns: minmax(0, 1fr); }
    .acc-stats { flex-direction: row; flex-wrap: wrap; }
    .acc-stats li { flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 560px) {
    .acc-mosaique.acc-nb5, .acc-mosaique.acc-nb4 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; }
    .acc-mosaique.acc-nb4 .acc-tuile:last-child { grid-column: 1 / -1; }
    .acc-mosaique.acc-nb7, .acc-mosaique.acc-nb6 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px repeat(3, 130px); }
    .acc-mosaique.acc-nb6 .acc-tuile:last-child { grid-column: 1 / -1; }
    .acc-stats li { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* accueil : colonne de droite = chiffres (compact) + Suivez-nous */
.acc-colonne { display: flex; flex-direction: column; gap: 16px; }
.acc-colonne .acc-chiffres { flex: none; }
.acc-colonne .acc-stats { flex: none; gap: 5px; }
.acc-colonne .acc-stats li { flex: none; padding: 5px 12px; }
.acc-colonne .acc-stats b { font-size: 17px; }
.acc-colonne .acc-stats span { font-size: 13px; }
.acc-suivez { flex: 1; display: flex; flex-direction: column; }
.acc-slogan { margin: 0 0 10px; color: var(--texte-doux); font-size: 13.5px; line-height: 1.45; }
.acc-slogan b { color: #c85f05; }
.acc-reseaux { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.acc-reseau { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; transition: filter .2s, transform .2s; }
.acc-reseau:hover, .acc-reseau:focus-visible { filter: brightness(1.1); transform: translateY(-1px); outline: none; }
.acc-reseau.fb { background: linear-gradient(#3b6fd6, #1f57c3); }
.acc-reseau.x { background: linear-gradient(#333, #111); }
.acc-reseau i, .acc-reseau svg { flex: none; width: 20px; font-size: 18px; text-align: center; }
.acc-reseau svg { height: 18px; }
.acc-reseau span { display: flex; flex-direction: column; line-height: 1.2; }
.acc-reseau b { font-size: 14px; }
.acc-reseau small { opacity: .8; font-size: 11.5px; }
@media (max-width: 899px) { .acc-reseaux { flex-direction: row; } .acc-reseau { flex: 1; } }
@media (max-width: 400px) { .acc-reseaux { flex-direction: column; } }

/* fenetre d'apercu : images liees a la carte (verso, back card...) */
.apercu-vues { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.apercu-vues[hidden], .apercu-fiche [hidden] { display: none; }
.apercu-vue { display: flex; flex-direction: column; width: 96px; overflow: hidden; padding: 0; border: 1px solid #e0d8c9; border-radius: 6px; background: #faf8f3; cursor: pointer; font: inherit; transition: box-shadow .15s, border-color .15s; }
.apercu-vue:hover { box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.apercu-vue.actif { border-color: #e48b21; box-shadow: 0 0 0 2px #e48b21; }
.apercu-vue-nom { overflow: hidden; padding: 3px 4px; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font-size: 11.5px; font-weight: 700;
    text-align: center; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.apercu-vue img { display: block; width: 100%; height: 100px; padding: 5px; object-fit: contain; }
@media (max-width: 760px) { .apercu-vue { width: 76px; } .apercu-vue img { height: 80px; } }

/* ===== accueil : dernieres videos (70 %) + decouverte (30 %) ===== */
.acc-bas { margin-top: 16px; }
.acc-videos-grille { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.acc-videos { display: flex; flex-direction: column; }
.acc-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #e3a259, #b9650c); color: #fff; text-decoration: none; isolation: isolate; }
.acc-video img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.acc-video:hover img, .acc-video:focus-visible img { transform: scale(1.07); }
.acc-video:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
/* bouton lecture (rond blanc transparent) */
.video-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -30px 0 0 -23px;
    border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(228,139,33,.8); color: #fff; font-size: 16px; box-shadow: 0 3px 10px rgba(0,0,0,.3); transition: transform .2s, background .2s; }
.video-play i { margin-left: 3px; }
.acc-video:hover .video-play, .video-item:hover .video-play { transform: scale(1.1); background: rgba(228,139,33,.95); }
/* bande legerement transparente en bas, avec le titre (pas d'assombrissement de l'image) */
.acc-video-titre { position: absolute; right: 0; bottom: 0; left: 0; display: -webkit-box; overflow: hidden; padding: 7px 10px; background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #333; font: 700 13px/1.25 var(--police); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.acc-decouverte { display: flex; flex-direction: column; align-items: center; }
.acc-decouverte h2 { align-self: stretch; }
.acc-decouverte-carte { width: 100%; max-width: 230px; }
.acc-decouverte-carte .acc-carte-texte small { white-space: normal; }
.acc-decouverte-aide { margin: 10px 0 0; color: var(--texte-doux); font-size: 12.5px; text-align: center; }
@media (max-width: 899px) { .acc-bas { grid-template-columns: minmax(0, 1fr); } }

/* ===== page Videos ===== */
.video-lecteur { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; scroll-margin-top: 80px; }
.video-cadre { overflow: hidden; border-radius: 12px; background: #111; aspect-ratio: 4 / 3; }
.video-cadre video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.video-absente { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.video-absente img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-absente p { position: relative; margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.9); color: #555; font-weight: 600; }
.video-infos h2 { margin-top: 0; color: #333; font-size: 19px; }
.video-texte { font-size: 14px; line-height: 1.55; }
.video-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; scroll-margin-top: 80px; }
.video-item { display: flex; gap: 10px; height: 100%; padding: 8px; border: 1px solid #ece4d6; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.video-item:hover { border-color: #e3b98a; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.video-item.actif { border-color: #e48b21; background: #fff8ef; box-shadow: 0 0 0 2px rgba(228,139,33,.35); }
.video-vignette { position: relative; flex: none; width: 112px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #e3a259, #b9650c); }
.video-vignette img { width: 100%; height: 100%; object-fit: cover; }
.video-vignette .video-play { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 11px; }
.video-item-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.video-item-texte b { color: #006699; font-size: 14px; line-height: 1.25; }
.video-item-texte small { color: var(--texte-doux); font-size: 12.5px; line-height: 1.4; }
#liste-videos { scroll-margin-top: 80px; }
@media (max-width: 760px) { .video-lecteur { grid-template-columns: minmax(0, 1fr); } }
.video-vignette { align-self: flex-start; }

/* liste des videos : le texte ne depasse pas la hauteur de la vignette (termine par "...") */
.video-vignette { width: 120px; }
.video-item-texte { max-height: 90px; overflow: hidden; }
.video-item-texte b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-item-texte small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* page Videos : titre bleu, trait orange neon, description en paragraphes de livre */
.video-infos .video-titre { display: block; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e48b21;
    box-shadow: 0 6px 8px -6px rgba(255,140,0,.75); color: #006699; font-size: 20px; line-height: 1.3; }
.video-texte { text-align: justify; hyphens: auto; }
.video-texte p { margin: 0 0 8px; }
.video-texte, .video-texte p { text-indent: 1.6em; }
.video-texte p:first-child { margin-top: 0; }

/* apercu : liens collection / serie */
.apercu-fiche dd a { color: #006699; font-weight: 600; text-decoration: none; }
.apercu-fiche dd a:hover, .apercu-fiche dd a:focus-visible { color: #e48b21; text-decoration: underline; }

/* Decouverte : meme bande blanche transparente en bas que les vignettes video (image non assombrie) */
.acc-decouverte-carte .acc-voile { display: none; }
.acc-decouverte-carte .acc-carte-img { filter: none; }
.acc-decouverte-carte .acc-carte-texte { right: 0; bottom: 0; left: 0; gap: 1px; padding: 7px 10px; background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #333; }
.acc-decouverte-carte .acc-carte-texte b { color: #333; font-size: 14px; text-shadow: none; }
.acc-decouverte-carte .acc-carte-texte small { color: #555; font-size: 11.5px; }

/* Decouverte : texte au-dessus de la carte + bouton carre "recyclage" (nouveau tirage) */
.acc-decouverte-tete { display: flex; align-items: center; gap: 10px; align-self: stretch; margin-bottom: 10px; }
.acc-decouverte-tete .acc-decouverte-aide { flex: 1; margin: 0; text-align: left; }
.acc-tirage { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border: 1.5px solid #d9cdb8; border-radius: 8px; background: #fff; color: #8a7c66; cursor: pointer; transition: color .2s, border-color .2s, box-shadow .2s; }
.acc-tirage svg { width: 22px; height: 22px; }
.acc-tirage:hover, .acc-tirage:focus-visible { border-color: #e48b21; color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.15); outline: none; }
.acc-tirage.tourne svg { animation: tirage-tourne .8s linear infinite; }
.acc-tirage:disabled { cursor: wait; }
@keyframes tirage-tourne { to { transform: rotate(360deg); } }
.acc-decouverte-carte.apparait { animation: tirage-apparait .45s ease; }
@keyframes tirage-apparait { from { opacity: .2; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc-tirage.tourne svg, .acc-decouverte-carte.apparait { animation: none; } }

/* ===================== ACTUALITES ===================== */
.news-etiquette { position: absolute; top: 10px; left: 10px; z-index: 1; max-width: calc(100% - 20px); overflow: hidden; padding: 3px 8px; border-radius: 4px;
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font: 700 11px var(--police); letter-spacing: .03em;
    text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(110,45,0,.45); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.news-etiquette.statique { position: static; display: inline-block; margin-bottom: 8px; }
.news-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #f3dfc4, #e3a259); color: #fff; font-size: 26px; }
/* accueil : 1 grande a gauche + 4 petites a droite */
.acc-news { display: flex; flex-direction: column; }
.news-accueil-contenu { display: grid; flex: 1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; transition: opacity .2s; }
.news-accueil-contenu.chargement { opacity: .4; }
.news-accueil-contenu.apparait { animation: tirage-apparait .4s ease; }
.news-accueil-contenu > .msg-vide { grid-column: 1 / -1; }
.news-une-lien { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.news-une-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 6px; border-radius: 12px; background: #eee; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.news-une-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-une-lien:hover .news-une-image img, .news-une-lien:focus-visible .news-une-image img { transform: scale(1.05); }
.news-titre { display: -webkit-box; overflow: hidden; color: #006699; font: 800 18px/1.25 var(--police); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-une-lien:hover .news-titre { text-decoration: underline; }
.news-date { color: #999; font-size: 12px; }
.news-extrait { display: -webkit-box; overflow: hidden; color: var(--texte-doux); font-size: 13.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.news-petites { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.news-petites a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.news-petite-image { flex: none; width: 104px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 9px; background: #eee; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.news-petite-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-petites a:hover .news-petite-image img { transform: scale(1.07); }
.news-petite-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-petite-texte b { display: -webkit-box; overflow: hidden; color: #333; font-size: 14px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-petites a:hover .news-petite-texte b { color: #006699; }
.news-petite-texte small { color: #999; font-size: 11.5px; }
.news-fleches { display: flex; gap: 6px; margin-top: 14px; }
.news-fleches button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid #e48b21; border-radius: 6px;
    background: #fff; color: #e48b21; cursor: pointer; transition: background .2s, color .2s; }
.news-fleches button:hover:not(:disabled) { background: #e48b21; color: #fff; }
.news-fleches button:disabled { border-color: #ddd; color: #ccc; cursor: default; }
/* videos sur toute la largeur : 5 visibles cote a cote, les suivantes en faisant defiler (reglage videos_accueil)
   ordinateur : fleches semi-transparentes de chaque cote ; smartphone : 2 x 2, on fait glisser du doigt (pas de fleches) */
.acc-videos-piste { position: relative; }
.acc-videos-large .acc-videos-grille { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.acc-videos-large .acc-videos-grille::-webkit-scrollbar { display: none; }
.acc-videos-large .acc-videos-grille > li { scroll-snap-align: start; }
.acc-videos-fleche { display: none; }
@media (hover: hover) and (min-width: 761px) {
    .acc-videos-fleche { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -18px; padding: 0;
        border: 0; border-radius: 50%; background: rgba(255,255,255,.55); color: #e48b21; font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
        cursor: pointer; opacity: .75; transition: opacity .2s, background .2s, transform .2s; backdrop-filter: blur(2px); }
    .acc-videos-fleche.gauche { left: 8px; }
    .acc-videos-fleche.droite { right: 8px; }
    .acc-videos-fleche:hover, .acc-videos-fleche:focus-visible { opacity: 1; background: rgba(255,255,255,.85); transform: scale(1.06); }
    .acc-videos-fleche:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
    .acc-videos-fleche[hidden] { display: none; }
}
@media (max-width: 760px) {
    .news-accueil-contenu { grid-template-columns: minmax(0, 1fr); }
    .acc-videos-large .acc-videos-grille { grid-template-rows: auto auto; grid-auto-columns: calc((100% - 10px) / 2); }
}
/* page d'un article */
.news-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.news-page > .carte-bloc { margin: 0; }
.news-article { padding: 20px 24px 22px; }
.news-apercu-bandeau { margin: 0 0 14px; padding: 8px 12px; border-left: 4px solid #e48b21; border-radius: 6px; background: #fff4e5; color: #8a5a17; font-size: 14px; }
.news-hero { position: relative; margin: 0 0 16px; }
.news-hero .news-photo { aspect-ratio: auto; max-height: 470px; }
.news-hero img { max-height: 470px; }
.news-article-titre { margin: 0 0 6px; color: #006699; font: 800 27px/1.2 var(--police); }
.news-meta { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #e48b21; box-shadow: 0 6px 8px -6px rgba(255,140,0,.75); color: #999; font-size: 13px; }
.news-meta b { color: #666; }
.news-meta a { color: #006699; text-decoration: none; }
.news-accroche { margin-bottom: 16px; color: #333; font-size: 16px; font-weight: 600; line-height: 1.6; }
.news-texte { margin-bottom: 16px; font-size: 15px; line-height: 1.7; text-align: justify; }
.news-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.news-galerie.n1 { grid-template-columns: minmax(0, 1fr); }
.news-galerie.n2, .news-galerie.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-galerie figure { margin: 0; }
.news-galerie figcaption { margin-top: 4px; color: #888; font-size: 12.5px; font-style: italic; text-align: center; }
.news-photo { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #eee; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.news-galerie.n1 .news-photo { aspect-ratio: auto; }
.news-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-galerie.n1 .news-photo img, .news-hero img { height: auto; }
.news-photo:hover img { transform: scale(1.04); }
.news-photo:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
.news-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #efe7da; }
.news-pied .bouton { margin: 0; }
.news-partage { display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; }
.news-partage a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none; }
.news-partage a.fb { background: #1f57c3; }
.news-partage a.x { background: #111; }
.news-partage a svg { width: 15px; height: 15px; }
.news-partage a:hover { filter: brightness(1.15); }
.news-voisins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.news-voisins a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #ece4d6; border-radius: 10px; color: inherit; text-decoration: none; }
.news-voisins a:hover { border-color: #e48b21; }
.news-voisins a.suiv { grid-column: 2; text-align: right; }
.news-voisins small { color: #e48b21; font-size: 12px; font-weight: 700; }
.news-voisins b { color: #006699; font-size: 14px; line-height: 1.3; }
.news-cote { position: sticky; top: 80px; }
/* visionneuse */
.news-visionneuse { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px 64px; background: rgba(15,10,5,.88); }
.news-visionneuse[hidden] { display: none; }
.nv-cadre { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.nv-cadre img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); object-fit: contain; }
.nv-cadre figcaption { margin-top: 10px; color: #f3e6d2; font-size: 14px; text-align: center; }
.nv-cadre figcaption[hidden] { display: none; }
.nv-fermer, .nv-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.nv-fermer:hover, .nv-nav:hover { background: #e48b21; }
.nv-fermer { top: 14px; right: 14px; }
.nv-nav.prec { left: 12px; } .nv-nav.suiv { right: 12px; }
.nv-nav[hidden] { display: none; }
@media (max-width: 900px) { .news-page { grid-template-columns: minmax(0, 1fr); } .news-cote { position: static; } }
@media (max-width: 560px) {
    .news-article { padding: 14px; }
    .news-article-titre { font-size: 22px; }
    .news-galerie, .news-galerie.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-visionneuse { padding: 10px; }
    .nv-nav { top: auto; bottom: 16px; }
    .news-voisins { grid-template-columns: minmax(0, 1fr); } .news-voisins a.suiv { grid-column: 1; }
}
.contenu .news-article .news-article-titre { margin: 0 0 6px; color: #006699; font: 800 27px/1.2 var(--police); }
@media (max-width: 560px) { .contenu .news-article .news-article-titre { font-size: 22px; } }

/* ===================== ADMINISTRATION DES ACTUALITES ===================== */
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-actions .bouton { margin: 0; }
.adm-news-liste { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.adm-news-liste li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #ece4d6; border-radius: 10px; background: #fff; }
.adm-vignette { flex: none; width: 90px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 7px; background: #eee; }
.adm-vignette img { width: 100%; height: 100%; object-fit: cover; }
.adm-vignette .news-sans-image { font-size: 18px; }
.adm-infos { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.adm-titre { overflow: hidden; color: #006699; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.adm-titre:hover { text-decoration: underline; }
.adm-infos small { color: #888; font-size: 12.5px; }
.adm-etat { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.adm-etat.ok { background: #e3f4e8; color: #2f7d44; }
.adm-etat.prog { background: #e6f1f7; color: #006699; }
.adm-etat.brouillon { background: #f1eee8; color: #8a7c66; }
.adm-boutons { display: flex; flex: none; gap: 4px; }
.adm-boutons form { margin: 0; }
.adm-icone { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e3cfb2; border-radius: 7px; background: #fff; color: #8a7c66; cursor: pointer; text-decoration: none; }
.adm-icone:hover { border-color: #e48b21; color: #e48b21; }
.adm-icone.danger:hover { border-color: var(--rouge); color: var(--rouge); }
.adm-form .rech-champ input[type="text"], .adm-form .rech-champ input[type="url"], .adm-form input[type="datetime-local"], .adm-form input[type="date"], .adm-form input[type="number"], .adm-form select, .adm-form textarea, .adm-cats input[type="text"] {
    width: 100%; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #444; font: 14.5px var(--police); }
.adm-form textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); outline: none; }
.adm-titre-champ { font-size: 17px !important; font-weight: 700; }
.adm-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adm-form h2 small { color: #999; font-size: 12px; font-weight: 400; }
.adm-form h2 .adm-etat { margin-left: 6px; }
.adm-lien-apercu { margin-left: auto; color: #006699; font-size: 13px; font-weight: 600; text-decoration: none; }
.adm-section > summary { list-style: none; cursor: pointer; }
.adm-section > summary::-webkit-details-marker { display: none; }
.adm-section > summary h2 { display: flex; align-items: center; gap: 8px; }
.adm-section > summary .replier { margin-left: auto; color: #999; font-size: 13px; transition: transform .2s; }
.adm-section[open] > summary .replier { transform: rotate(180deg); }
.adm-outils { margin-bottom: 6px; }
.adm-emojis-groupe { position: relative; }
.adm-emojis { position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 6px; border: 1px solid #e3cfb2; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.adm-emojis[hidden] { display: none; }
.adm-emojis button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: none; font-size: 18px; cursor: pointer; }
.adm-emojis button:hover { background: #fff4e5; }
.adm-galerie-tete { margin: 0 0 8px; }
.adm-compte { color: #999; }
.adm-note { margin-left: 6px; color: #c85f05; font-size: 12.5px; }
.adm-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.adm-images li { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #ece4d6; border-radius: 9px; background: #faf8f3; }
.adm-images li.vignette { border-color: #e48b21; box-shadow: 0 0 0 1px #e48b21; }
.adm-images img { width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; }
.adm-mini { display: flex; flex-direction: column; gap: 2px; color: #888; font-size: 11.5px; }
.adm-mini input { width: 100%; min-height: 30px; padding: 3px 7px; border: 1px solid #ccc; border-radius: 5px; font: 13px var(--police); }
.adm-image-pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.adm-pos input { width: 64px; }
.adm-suppr { display: inline-flex; align-items: center; gap: 4px; color: var(--rouge); font-size: 12.5px; cursor: pointer; }
.adm-ajout { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 2px dashed #e3b98a; border-radius: 10px; background: #fffaf3; color: #c85f05; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.adm-ajout:hover, .adm-ajout:focus-within { border-color: #e48b21; background: #fff4e5; }
.adm-ajout input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.adm-choix { margin: 6px 0 0; color: #2f7d44; font-size: 13px; font-weight: 600; }
.adm-choix.trop { color: var(--rouge); }
.adm-choix[hidden], .adm-alerte[hidden] { display: none; }
/* actualites : recadrage des images (bouton "Recadrer", fenetre) */
.adm-image-vue { position: relative; display: block; }
.adm-image-vue img, .adm-image-vue canvas { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; background: #f3efe7; }
.adm-image-vue img[hidden] { display: none; }
.adm-recadrer { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 999px; background: rgba(0,0,0,.66); color: #fff; font: 600 12.5px var(--police); cursor: pointer; }
.adm-recadrer:hover, .adm-recadrer:focus-visible { background: #e48b21; }
.adm-recadrer[disabled] { opacity: .55; cursor: wait; }
.adm-recadree { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 999px; background: #2f7d44; color: #fff; font-size: 11.5px; font-weight: 600; }
.adm-nouvelles { margin-top: 10px; }
.adm-nouvelles[hidden] { display: none; }
.adm-nouvelles li.trop { opacity: .5; }
.adm-nom-fichier { overflow: hidden; color: #777; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body.rc-ouvert { overflow: hidden; }
.rc-voile { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(20,20,20,.72); }
.rc-voile[hidden] { display: none; }
.rc-fenetre { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; overflow: auto; padding: 12px 14px 14px; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.rc-tete { display: flex; align-items: center; gap: 6px; width: 100%; color: #006699; font-size: 16px; }
.rc-x { margin-left: auto; padding: 4px 9px; border: 0; border-radius: 8px; background: none; color: #555; font-size: 18px; cursor: pointer; }
.rc-x:hover { background: #f1ece3; }
.rc-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rc-format { padding: 5px 11px; border: 1px solid #e3b98a; border-radius: 999px; background: #fffaf3; color: #c85f05; font: 600 13px var(--police); cursor: pointer; }
.rc-format small { color: #9a7a55; font-weight: 400; }
.rc-format.actif { border-color: #e48b21; background: linear-gradient(#f5a54a, #e07a12); color: #fff; }
.rc-format.actif small { color: #fff3e3; }
.rc-scene { position: relative; flex: none; overflow: hidden; border-radius: 6px; background: #222; touch-action: none; user-select: none; -webkit-user-select: none; }
.rc-toile { position: absolute; left: 12px; top: 12px; display: block; }
.rc-cadre { position: absolute; box-sizing: border-box; border: 2px solid #ff9a2e; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.rc-cadre::before, .rc-cadre::after { content: ''; position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.45); }
.rc-cadre::before { inset: 0 33.33%; border-top: 0; border-bottom: 0; }
.rc-cadre::after { inset: 33.33% 0; border-left: 0; border-right: 0; }
.rc-poignee { position: absolute; z-index: 1; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #fff; border-radius: 50%; background: #e48b21; box-shadow: 0 1px 4px rgba(0,0,0,.4); touch-action: none; }
.rc-nw { left: 0; top: 0; cursor: nwse-resize; } .rc-ne { left: 100%; top: 0; cursor: nesw-resize; }
.rc-se { left: 100%; top: 100%; cursor: nwse-resize; } .rc-sw { left: 0; top: 100%; cursor: nesw-resize; }
.rc-n { left: 50%; top: 0; cursor: ns-resize; } .rc-s { left: 50%; top: 100%; cursor: ns-resize; }
.rc-e { left: 100%; top: 50%; cursor: ew-resize; } .rc-w { left: 0; top: 50%; cursor: ew-resize; }
.rc-cadre.fixe .rc-n, .rc-cadre.fixe .rc-s, .rc-cadre.fixe .rc-e, .rc-cadre.fixe .rc-w { display: none; }
.rc-info { margin: 0; color: #555; font-size: 13px; text-align: center; }
.rc-info.petite { color: #c85f05; }
.rc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rc-actions .bouton { margin: 0; }
.rc-annuler { margin-left: auto !important; }
@media (max-width: 600px) {
    .rc-fenetre { padding: 10px 8px; }
    .rc-actions .bouton { flex: 1 1 40%; justify-content: center; }
    .rc-annuler { margin-left: 0 !important; }
}
.adm-envoi { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.adm-envoi-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.adm-envoi-boutons .bouton { margin: 0; }
.adm-envoi .aide { margin: 8px 0 0; text-align: right; }
.adm-alerte { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--rouge); border-radius: 6px; background: #fbeceb; color: #8a2522; font-size: 14px; }
.adm-cats-liste { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.adm-cats-liste li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 80px 80px auto; align-items: center; gap: 10px; }
.adm-cats-liste .news-etiquette { justify-self: start; margin: 0; }
.adm-nouvelle { max-width: 420px; }
@media (max-width: 760px) {
    .adm-ligne { grid-template-columns: minmax(0, 1fr); }
    .adm-news-liste li { flex-wrap: wrap; }
    .adm-cats-liste li { grid-template-columns: minmax(0, 1fr) 80px; }
    .adm-cats-liste .news-etiquette { display: none; }
    .adm-envoi-boutons .bouton { flex: 1; }
}

/* ===================== COMMENTAIRES DES ACTUALITES ===================== */
.news-comms { margin-top: 22px; padding-top: 16px; border-top: 2px solid #e48b21; box-shadow: 0 -6px 8px -6px rgba(255,140,0,.55); scroll-margin-top: 80px; }
.news-comms-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.news-comms-tete h2 { margin: 0; padding: 0; border: 0; color: #333; font-size: 18px; }
.news-comms-tete h2 small { color: #999; font-size: 13px; font-weight: 400; }
.news-comms-tete .bouton { margin: 0; }
.comm-form { margin: 0 0 16px; padding: 12px; border: 1px solid #ece4d6; border-radius: 10px; background: #fffaf3; scroll-margin-top: 90px; }
.comm-form[hidden] { display: none; }
.comm-form-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #333; }
.comm-form-tete .avatar { width: 32px; height: 32px; }
.comm-outils { margin-bottom: 6px; }
.comm-form textarea { width: 100%; min-height: 110px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 14.5px/1.5 var(--police); resize: vertical; }
.comm-form textarea:focus { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); outline: none; }
.comm-form-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comm-form-pied .bouton { margin: 0; }
.comm-invite { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #f6f3ee; color: #666; font-size: 14px; }
.comm-liste { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.comm { display: flex; gap: 12px; padding: 12px; border: 1px solid #efe7da; border-radius: 10px; background: #fff; scroll-margin-top: 90px; }
.comm:target { border-color: #e48b21; box-shadow: 0 0 0 2px rgba(228,139,33,.25); }
.comm-avatar { flex: none; align-self: flex-start; }
.comm-avatar .avatar { width: 48px; height: 48px; }
.comm-corps { flex: 1; min-width: 0; }
.comm-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.comm-qui { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.comm-pseudo { color: #006699; text-decoration: none; }
.comm-pseudo:hover { text-decoration: underline; }
.comm-infos { flex-basis: 100%; color: #999; font-size: 12px; }
.comm-actions { display: flex; align-items: center; gap: 6px; color: #999; font-size: 12px; }
.comm-actions form { margin: 0; }
.comm-icone { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid #d9cdb8; border-radius: 7px; background: #fff; color: #8a7c66; cursor: pointer; transition: color .2s, border-color .2s; }
.comm-icone:hover, .comm-icone:focus-visible { border-color: #e48b21; color: #e48b21; outline: none; }
.comm-corbeille svg { width: 17px; height: 17px; }
.comm-corbeille:hover, .comm-corbeille:focus-visible { border-color: var(--rouge); color: var(--rouge); }
.comm-texte { font-size: 14.5px; }
.comm-vide { margin: 4px 0 0; }
.lien-membre { color: inherit; text-decoration: none; }
.lien-membre:hover { color: #006699; }
a.lien-membre b, .news-meta a b { color: #666; }
@media (max-width: 560px) { .comm { padding: 10px; gap: 9px; } .comm-avatar .avatar { width: 38px; height: 38px; } .comm-actions { width: 100%; } .comm-actions time { margin-right: auto; } }

/* accueil : nombre de commentaires sur la vignette */
.news-une-image, .news-petite-image { position: relative; }
.news-bulle { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px;
    background: rgba(255,255,255,.88); color: #006699; font: 700 12px var(--police); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.news-petite-image .news-bulle { right: 4px; bottom: 4px; padding: 1px 6px; font-size: 10.5px; }

/* ===================== ADMINISTRATION : logo, onglets, membres ===================== */
.btn-admin { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; transition: background .2s, transform .2s; }
.btn-admin:hover, .btn-admin.actif { background: #eaf2fd; }
.btn-admin:hover { transform: translateY(-1px); }
.btn-admin-logo { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.adm-onglets { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0 4px; border-bottom: 2px solid #e48b21; box-shadow: 0 6px 8px -6px rgba(255,140,0,.6); }
.adm-onglets a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid #e8dcc8; border-bottom: 0; border-radius: 9px 9px 0 0;
    background: #faf6ef; color: #6d604c; font-weight: 700; text-decoration: none; }
.adm-onglets a:hover { background: #fff; color: #c85f05; }
.adm-onglets a.actif { border-color: #d27a17; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; text-shadow: 0 1px 1px rgba(110,45,0,.4); }
.adm-compteurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.adm-compteurs li { padding: 3px 10px; border-radius: 99px; background: #f4efe6; color: #6d604c; font-size: 12.5px; }
.adm-compteurs li.ok { background: #e3f4e8; color: #2f7d44; }
.adm-compteurs li.non { background: #fbeceb; color: #a8322d; }
.adm-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.adm-filtres select, .adm-filtres input { min-height: 38px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 14px var(--police); }
.adm-filtre-q { position: relative; display: flex; flex: 1 1 220px; align-items: center; }
.adm-filtre-q i { position: absolute; left: 10px; color: #aaa; }
.adm-filtre-q input { width: 100%; padding-left: 32px; }
.adm-filtres .bouton { margin: 0; min-height: 38px; }
.adm-table-cadre { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { padding: 8px 10px; border-bottom: 2px solid #efe7da; color: #006699; font-size: 12.5px; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.adm-table td { padding: 7px 10px; border-bottom: 1px solid #f1ebe1; vertical-align: middle; }
.adm-table tr:hover td { background: #fffaf3; }
.adm-table tr.inactif td { color: #aaa; }
.adm-table tr.inactif .avatar-cadre { opacity: .5; }
.adm-membre { display: flex; align-items: center; gap: 9px; }
.adm-membre .avatar { width: 34px; height: 34px; }
.adm-membre b { color: #006699; }
.adm-vue { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.adm-vue .point { width: 11px; height: 11px; border-radius: 50%; }
.adm-vue.public .point { background: #2fa84f; box-shadow: 0 0 0 3px rgba(47,168,79,.18); }
.adm-vue.prive .point { background: #d93a32; box-shadow: 0 0 0 3px rgba(217,58,50,.18); }
.adm-bascule-form { margin: 0; }
/* curseur actif / inactif */
.adm-bascule { position: relative; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 99px; background: #cfc6b8; cursor: pointer; transition: background .2s; }
.adm-bascule span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.adm-bascule.on { background: #2fa84f; }
.adm-bascule.on span { transform: translateX(20px); }
.adm-bascule:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
.adm-bascule:disabled { opacity: .45; cursor: not-allowed; }
.adm-bascule.attente { opacity: .6; cursor: wait; }
.adm-aide { margin: 12px 0 0; }
.adm-message { position: fixed; right: 18px; bottom: 18px; z-index: 950; max-width: calc(100vw - 36px); padding: 10px 14px; border-radius: 9px; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.adm-message[hidden] { display: none; }
.adm-message.ok { background: #2f7d44; }
.adm-message.erreur { background: #b3332d; }
@media (max-width: 760px) {
    .adm-onglets a { flex: 1; justify-content: center; padding: 8px 10px; }
    .adm-table thead { display: none; }
    .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
    .adm-table tr { margin-bottom: 10px; padding: 8px; border: 1px solid #ece4d6; border-radius: 10px; }
    .adm-table td { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 2px; border: 0; }
    .adm-table td::before { content: attr(data-titre); color: #999; font-size: 12px; }
    .adm-table td[data-titre="Membre"]::before { content: none; }
    .adm-filtres select { flex: 1 1 45%; }
}

/* ===================== ADMINISTRATION DES VIDEOS ===================== */
.adm-note-info { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid #006699; border-radius: 6px; background: #eef6fa; color: #2b5d74; font-size: 13.5px; }
.adm-video-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.adm-video-grille > .carte-bloc { margin: 0; }
.adm-video-grille > .carte-bloc:first-child { grid-row: span 2; }
.adm-video-form textarea { min-height: 180px; }
.adm-video-apercu { display: block; width: 100%; max-height: 300px; margin-bottom: 10px; border-radius: 10px; background: #000; }
.adm-video-apercu[hidden] { display: none; }
.adm-formats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; padding: 0; color: #666; font-size: 13px; list-style: none; }
.adm-vignette-zone { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px; border-radius: 10px; background: #f3eee6; }
.adm-vignette-zone img { width: 100%; height: 100%; object-fit: cover; }
.adm-vignette-zone img[hidden], .adm-vignette-zone .news-sans-image[hidden] { display: none; }
.adm-vignette-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-vignette-actions .bouton { margin: 0; }
.adm-fichier-bouton { position: relative; overflow: hidden; cursor: pointer; }
.adm-fichier-bouton input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-video-form .adm-envoi { margin-top: 14px; }
.adm-progression { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.adm-progression[hidden] { display: none; }
.adm-progression > span { flex: 1; height: 10px; overflow: hidden; border-radius: 99px; background: #efe7da; }
.adm-progression > span > span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e3a259, #e48b21); transition: width .2s; }
.adm-progression small { min-width: 210px; color: #666; text-align: right; }
@media (max-width: 900px) { .adm-video-grille { grid-template-columns: minmax(0, 1fr); } .adm-video-grille > .carte-bloc:first-child { grid-row: auto; } }

/* administration : statuts et equipe (Webmaster) */
.adm-statuts { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid #cfe0ea; border-radius: 10px; background: #f5fafd; }
.adm-statuts > summary { display: flex; align-items: center; gap: 8px; color: #006699; font-weight: 700; list-style: none; cursor: pointer; }
.adm-statuts > summary::-webkit-details-marker { display: none; }
.adm-statuts > summary small { color: #7a96a5; font-weight: 400; }
.adm-statuts > summary .replier { margin-left: auto; color: #999; font-size: 13px; transition: transform .2s; }
.adm-statuts[open] > summary .replier { transform: rotate(180deg); }
.adm-table-statuts { margin-top: 8px; background: #fff; }
.adm-statut-form { margin: 0; }
.adm-statut-choix { min-height: 30px; padding: 0 6px; border: 1px solid #f1cfae; border-radius: 99px; background: #fff0e6; color: var(--orange); font: 700 12px var(--police); cursor: pointer; }
.adm-statut-choix.team { border-color: #b9d5e3; background: #e6f5ff; color: var(--bleu); }
.adm-statut-choix:disabled { opacity: .6; cursor: wait; }

/* administration : collections */
.adm-form .rech-champ input[hidden] { display: none; }
.adm-form .rech-champ select + input[type="text"] { margin-top: 6px; border-color: #e48b21; background: #fffaf3; }
.adm-interrupteur { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: #444; font-size: 14px; cursor: pointer; }
.adm-interrupteur input { width: 18px; height: 18px; accent-color: #e48b21; }
.adm-col-vignette { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.adm-col-vignette img { width: 220px; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.adm-vignette-mini { width: 64px; }

/* administration : series (capsules) */
.adm-capsule { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 3px; border: 1px solid #e6dfd2; border-radius: 8px; background: #fff; color: #c9c2b5; }
.adm-capsule img { max-width: 100%; max-height: 100%; }
.adm-capsule-grande { width: 66px; height: 66px; padding: 6px; border-radius: 12px; font-size: 22px; transition: border-color .15s, box-shadow .15s; }
.adm-capsule-grande.nouvelle { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.adm-serie-nom { display: flex; align-items: flex-end; gap: 12px; }
.adm-serie-nom .rech-champ { flex: 1; min-width: 0; margin-bottom: 0; }
.adm-note-info span { display: inline; }
.adm-zone-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-left: 4px solid #c0392b; }
.adm-zone-danger p { margin: 0; color: #555; font-size: 14px; }
.adm-zone-danger .bouton { color: #c0392b; }
.adm-serie-nom ~ .aide { margin: 6px 0 12px; }

/* fenetre de validation des suppressions (js/site.js) */
.conf-fenetre { width: min(440px, calc(100vw - 32px)); padding: 22px 22px 18px; border: none; border-top: 4px solid #c0392b; border-radius: 14px; background: #fff; color: #444; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.conf-fenetre::backdrop { background: rgba(20,20,20,.55); }
.conf-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.conf-tete h2 { margin: 0; color: #c0392b; font-size: 18px; }
.conf-icone { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fdecea; color: #c0392b; font-size: 18px; }
.conf-message { margin: 0 0 8px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.conf-details { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fff6e8; color: #8a5a12; font-size: 13.5px; line-height: 1.45; }
.conf-case { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 4px; font-size: 14px; cursor: pointer; }
.conf-case input { margin-top: 3px; accent-color: #c0392b; }
.conf-boutons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.conf-boutons .bouton { min-height: 36px; margin: 0; padding: 0 16px; font-size: 14px; gap: 6px; }
.conf-boutons .conf-oui { background: linear-gradient(#d9503f, #b03020); border-color: #a02a1c; color: #fff; }
.conf-boutons .conf-oui:disabled { opacity: .45; cursor: not-allowed; }
.conf-doux .conf-tete h2 { color: #006699; }
.conf-doux .conf-icone { background: #fff3e3; color: #e48b21; }
.conf-fenetre.conf-doux { border-top-color: #e48b21; }
.conf-doux .conf-case input { accent-color: #e48b21; }
.conf-doux .conf-boutons .conf-oui { background: linear-gradient(#e3a259, #e48b21); border-color: #d27a17; }

/* administration : cartes */
.adm-sous-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.adm-sous-onglets a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid #e8dcc8; border-radius: 999px; background: #fffdf9; color: #6b5f4d; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.adm-sous-onglets a:hover { border-color: #e48b21; color: #c85f05; }
.adm-sous-onglets a.actif { border-color: #006699; background: #006699; color: #fff; }
.adm-choix-serie { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-choix-serie .adm-ligne { flex: 1 1 420px; }
.adm-choix-serie .rech-champ { margin-bottom: 0; }
.adm-choix-serie select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 14.5px var(--police); }
.adm-choix-actions .bouton { margin: 0; }
.adm-serie-titre { display: flex; align-items: center; gap: 12px; }
.adm-serie-titre small { color: #999; font-weight: 400; }
.adm-sous-titre { font-size: 13.5px; font-weight: 600; color: #006699; text-decoration: none; }
.adm-note-alerte { border-left-color: #e48b21; background: #fff6e8; color: #8a5a12; }
.adm-mini-carte { width: 52px; }
.adm-mini-carte img { display: block; width: auto; height: 50px; max-width: 48px; border-radius: 4px; object-fit: contain; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.adm-mini-carte i { color: #c9c2b5; font-size: 20px; }
.adm-rarete { display: inline-block; max-width: 150px; padding: 2px 9px; border-radius: 999px; font-size: 12px; vertical-align: middle; }
.adm-vide { color: #aaa; font-weight: 400; }
.adm-icone-suppr:hover { border-color: #c0392b; color: #c0392b; }
.adm-boutons form { display: contents; }
.adm-table tr.doublon td { background: #fff3e0; }
.adm-table tr.nouvelle td { background: #eef8ee; }
.adm-table tr.doublon.nouvelle td { background: #fff3e0; }
.adm-tableau-cartes input[type="text"], .adm-tableau-cartes select, .adm-table-listes input[type="text"] { width: 100%; min-width: 0; min-height: 34px; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 14px var(--police); }
.adm-champ-numero { max-width: 110px; font-weight: 700; }
.adm-champ-court { width: 70px; min-height: 34px; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; }
.adm-table-listes input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; }
.adm-ligne-nouvelle td { background: #fffaf3; }
.adm-envoi-tableau { margin-top: 12px; align-items: center; }
.adm-envoi-tableau .adm-alerte { margin: 0 auto 0 0; }
.adm-aide-centre { padding: 20px; text-align: center; }
.adm-ligne-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-carte-haut { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 16px; align-items: start; }
.adm-carte-apercu { display: flex; align-items: center; justify-content: center; min-height: 220px; margin-bottom: 10px; padding: 10px; border-radius: 10px; background: #f6f2ea; color: #a99f8e; font-size: 14px; }
.adm-carte-apercu img { max-width: 100%; max-height: 360px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.adm-carte-apercu.nouvelle { outline: 3px solid rgba(228,139,33,.35); }
.adm-replier > summary { display: block; list-style: none; cursor: pointer; }
.adm-replier > summary::-webkit-details-marker { display: none; }
.adm-replier > summary h2 { display: flex; align-items: center; gap: 8px; }
.adm-replier .replier { margin-left: auto; font-size: 13px; color: #999; transition: transform .2s; }
.adm-replier[open] .replier { transform: rotate(180deg); }
.adm-replier[open] > summary { margin-bottom: 10px; }
.adm-liees { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.adm-liees li { display: flex; gap: 10px; padding: 8px; border: 1px solid #eee3d2; border-radius: 10px; background: #fffdf9; }
.adm-liee-img { display: flex; flex: none; align-items: center; justify-content: center; width: 72px; height: 100px; border-radius: 6px; background: #f6f2ea; color: #c9c2b5; }
.adm-liee-img img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.adm-liee-champs { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.adm-liee-champs input[type="text"] { width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; font: 14px var(--police); }
.adm-liee-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-lot { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.adm-lot li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px; border: 1px solid #eee3d2; border-radius: 10px; background: #fffdf9; text-align: center; transition: background .2s, border-color .2s; }
.adm-lot li img { height: 110px; max-width: 100%; border-radius: 5px; object-fit: contain; box-shadow: 0 1px 5px rgba(0,0,0,.15); }
.adm-lot label { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #006699; }
.adm-lot label input { width: 80px; min-height: 30px; padding: 3px 6px; border: 1px solid #ccc; border-radius: 6px; font: 700 14px var(--police); text-align: center; }
.adm-lot label input.erreur { border-color: #c0392b; background: #fdecea; }
.adm-lot small { max-width: 100%; overflow: hidden; color: #999; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.adm-lot .adm-icone { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; }
.lot-statut { min-height: 1em; font-size: 12px; font-weight: 600; }
.adm-lot li.envoi { border-color: #e48b21; }
.adm-lot li.ok { border-color: #7cc47c; background: #f1faf1; }
.adm-lot li.ok .lot-statut { color: #2e7d32; }
.adm-lot li.erreur { border-color: #e0a19a; background: #fdf1ef; }
.adm-lot li.erreur .lot-statut { color: #c0392b; }
.adm-lot-progression { height: 10px; margin: 14px 0 4px; overflow: hidden; border-radius: 999px; background: #f0e7da; }
.adm-lot-progression span { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e3a259, #e48b21); transition: width .25s; }
@media (max-width: 900px) {
    .adm-carte-haut { grid-template-columns: minmax(0, 1fr); }
    .adm-ligne-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .adm-champ-numero { max-width: none; }
    .adm-mini-carte { width: auto; }
}

/* livres et goodies (site) */
.cat-grille[hidden], .cat-tuile[hidden] { display: none; }
.obj-series .cat-vignette { height: 120px; }
.obj-series .cat-nom { flex-wrap: wrap; align-items: baseline; }
.obj-series .cat-nom small { color: #999; font-size: 12px; }
.cat-initiale .fa-solid { color: #e48b21; font-size: 30px; }
.grille-objets { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tuile-objet .tuile-image { border-bottom: 3px solid #e48b21; }
.tuile-objet-nom { display: block; padding: 7px 8px 9px; color: #333; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.tuile-objet-nom small { color: #006699; font-weight: 700; }
.obj-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px; color: #e3b98a; font-size: 40px; }
.obj-serie-nav { gap: 10px; }
.obj-series-bande { display: flex; flex: 1; gap: 6px; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.obj-description { max-height: 220px; padding: 10px 12px; overflow: auto; border: 1px solid #eee; border-radius: 6px; background: #fffdf9; font-size: 14px; line-height: 1.55; text-align: justify; }
.obj-description[hidden] { display: none; }
#obj-apercu .apercu-image img[hidden] { display: none; }
#obj-cartes span { overflow-wrap: anywhere; }
/* catalogue : livres et goodies lies a une serie de cartes */
.obj-lies { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.obj-lies a { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0d8c9; border-radius: 8px; background: #fff; color: #333; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.obj-lies a:hover, .obj-lies a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); outline: none; }
.obj-lies .tuile-image { border-bottom: 3px solid #e48b21; }
.obj-lies b { padding: 6px 8px 2px; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.obj-lies small { padding: 0 8px 8px; color: #888; font-size: 11.5px; }
/* livres et goodies : fenetre d'apercu (PC : la description prend la place restante) */
#obj-apercu .apercu-infos { min-height: 0; gap: 8px; }
#obj-apercu .apercu-infos > * { flex: none; }
#obj-apercu .apercu-infos > .obj-description { flex: 1 1 auto; min-height: 70px; max-height: none; }
#obj-apercu .apercu-fiche dt, #obj-apercu .apercu-fiche dd { padding: 5px 10px; }
.obj-vues-cadre { display: flex; align-items: center; gap: 4px; min-width: 0; }
.obj-vues-cadre[hidden] { display: none; }
.obj-vues { flex: 1; flex-wrap: nowrap; min-width: 0; margin: 0; padding: 3px 2px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.obj-vues::-webkit-scrollbar { display: none; }
.obj-vues .apercu-vue { flex: none; width: 84px; }
.obj-vues .apercu-vue img { height: 78px; }
.obj-vues-fleche { display: flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 60px; padding: 0; border: 0; border-radius: 6px;
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.obj-vues-fleche:hover:not(:disabled) { filter: brightness(1.06); }
.obj-vues-fleche:disabled { opacity: .35; cursor: default; }
.obj-vues-fleche[hidden] { display: none; }
.obj-boutons { flex-wrap: wrap; }
.obj-boutons .bouton { white-space: nowrap; }
@media (max-width: 760px) {
    #obj-apercu .apercu-infos > .obj-description { flex: none; max-height: 220px; }
    .obj-boutons { flex-wrap: wrap; }
}

/* ===== section Membres ===== */
.membres-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.membres-recherche .membres-q { flex: 1 1 200px; margin: 0; }
.membres-recherche select { box-sizing: border-box; height: 46px; padding: 12px 34px 12px 12px; border: 1px solid #ccc; border-radius: 6px; background-color: #fff; font: 14.5px/20px var(--police); color: #444; }
.membres-recherche .bouton { margin: 0; }
.membres-aide { flex: 1 1 100%; margin: 0; color: #666; font-size: 13px; }
.membres-aide .fa-circle-info { color: #006699; }
.membres-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.membre-fiche { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #eadfcd; border-radius: 12px; background: #fffdf9; transition: box-shadow .15s, transform .15s; }
.membre-fiche:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.membre-fiche.prive { border-style: dashed; opacity: .85; }
.membre-haut { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.membre-avatar, .profil-avatar { position: relative; flex: none; }
.membre-avatar .avatar { width: 58px; height: 58px; border-radius: 0 10px 10px 0; }   /* charte : carre arrondi a droite + filet orange (.avatar-cadre) */
.membre-avatar .avatar-vide, .profil-avatar .avatar-vide { display: flex; align-items: center; justify-content: center; background: #f1e8da; color: #c9b291; font-size: 24px; }
.point-actif { position: absolute; right: -5px; bottom: -5px; z-index: 1; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.membre-nom { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.membre-nom b { max-width: 100%; overflow: hidden; color: #006699; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.membre-haut:hover b { text-decoration: underline; }
.statut-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #eef2f5; color: #55636e; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.statut-2 { background: #fff0e2; color: #c85f05; }
.statut-3 { background: #e6f2f8; color: #006699; }
.statut-4 { background: #f1ecfb; color: #6a4bb0; }
.statut-5 { background: #fff6d6; color: #9a7300; }
.statut-prive { background: #fdecea; color: #b03a2e; }
.membre-infos { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 0; font-size: 13px; }
.membre-infos dt { color: #888; }
.membre-infos dt i { width: 15px; color: #e48b21; text-align: center; }
.membre-infos dd { margin: 0; color: #444; font-weight: 600; text-align: right; }
.membre-infos small { color: #888; font-weight: 400; }
.membre-reseaux { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 8px 0 0; border-top: 1px solid #f0e6d6; list-style: none; }
.membre-reseaux a, .membre-reseaux .sans-lien { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #ece3d4; border-radius: 50%; background: #fff; font-size: 15px; text-decoration: none; transition: transform .15s; }
.membre-reseaux a:hover { transform: scale(1.12); }
.membre-reseaux .reseau-ico { width: auto; }
.reseau-line { color: #06c755; } .reseau-discord { color: #5865f2; } .reseau-snapchat { color: #e8c400; } .reseau-reddit { color: #ff4500; }
.reseau-pinterest { color: #e60023; } .reseau-youtube { color: #ff0000; } .reseau-twitch { color: #9146ff; }
/* profil */
.profil-tete { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.profil-avatar .avatar { width: 110px; height: 110px; border-radius: 0 16px 16px 0; }
.profil-avatar .avatar-cadre { margin: 6px 6px 0 0; }
.profil-avatar .avatar-cadre::after { top: -6px; right: -6px; border-width: 3px; border-top-right-radius: 16px; }
.profil-avatar .avatar-vide { font-size: 44px; }
.profil-avatar .point-actif { right: -6px; bottom: -6px; width: 20px; height: 20px; border-width: 3px; }
.profil-identite h2 { margin: 0 0 6px; color: #006699; font-size: 26px; overflow-wrap: anywhere; }
.profil-identite p { margin: 0; }
.profil-fiche { max-width: 560px; }
.profil-sous-titre { margin: 18px 0 8px; color: #006699; font-size: 16px; }
.profil-reseaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.profil-reseaux a, .profil-reseaux .sans-lien { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #ece3d4; border-radius: 10px; background: #fffdf9; color: #444; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.profil-reseaux a:hover { border-color: #e48b21; }
.profil-reseaux .reseau-ico { flex: none; font-size: 20px; }
.profil-reseaux b { display: block; color: #333; font-size: 12px; }
.profil-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0e6d6; }
.profil-boutons .bouton { min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; gap: 6px; }
.bouton.desactive { opacity: .55; cursor: not-allowed; }
.bouton.desactive small { margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: #f0e6d6; color: #8a7a62; font-size: 10.5px; }
@media (max-width: 700px) {
    .membres-recherche select { flex: 1 1 140px; }
    .profil-tete { flex-direction: column; text-align: center; }
    .profil-identite p { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
    .profil-boutons .bouton { flex: 1 1 100%; justify-content: center; }
}

/* ===== accueil : derniers livres / goodies + Shootbox ===== */
.acc-objets-shoot.sans-shootbox { grid-template-columns: minmax(0, 1fr); }
.acc-objets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.acc-objets .carte-bloc { margin: 0; }
.acc-objet-image { width: 64px; aspect-ratio: 3 / 4; background: #f6f2ea; }
.acc-objet-image img { object-fit: contain; }
.acc-objet-image .news-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #e3b98a; font-size: 22px; }
.acc-objets-liste .news-petite-texte b { -webkit-line-clamp: 2; }
.acc-objet-collection { display: flex; align-items: center; gap: 4px; color: #006699 !important; font-weight: 600; }
.acc-objet-collection .drapeau { width: 16px; height: auto; }
/* Shootbox */
.acc-shootbox { display: flex; flex-direction: column; }
.shoot-liste { height: 360px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #e3b98a transparent; scroll-behavior: smooth; }
.shoot-liste::-webkit-scrollbar { width: 6px; }
.shoot-liste::-webkit-scrollbar-thumb { border-radius: 99px; background: #e3b98a; }
.shoot-msg { display: flex; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #f1e8da; }
.shoot-msg:last-child { border-bottom: 0; }
.shoot-avatar { flex: none; }
.shoot-avatar .avatar { width: 34px; height: 34px; }
.shoot-corps { flex: 1; min-width: 0; }
.shoot-tete { display: flex; align-items: baseline; gap: 6px; }
.shoot-auteur { overflow: hidden; color: #006699; font-size: 13px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.shoot-auteur:hover { text-decoration: underline; }
.shoot-tete time { flex: none; color: #aaa; font-size: 11px; }
.shoot-suppr { flex: none; width: 20px; height: 18px; margin-left: auto; padding: 0; border: 0; background: none; color: #c9b9a2; font-size: 12px; cursor: pointer; }
.shoot-suppr:hover { color: #c0392b; }
.shoot-texte { color: #444; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.shoot-vide { padding: 20px 6px; font-size: 13px; }
.shoot-outils { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e6d6; }
.shoot-fleche { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid #e48b21; border-radius: 6px; background: #fff; color: #e48b21; cursor: pointer; transition: background .2s, color .2s; }
.shoot-fleche:hover:not(:disabled) { background: #e48b21; color: #fff; }
.shoot-fleche:disabled { opacity: .35; cursor: default; }
.shoot-fleche.tourne i { animation: shoot-tourne .5s linear; }
@keyframes shoot-tourne { to { transform: rotate(360deg); } }
.shoot-bouton { flex: 1; justify-content: center; min-height: 30px; margin: 0; padding: 4px 12px; font-size: 13.5px; }
.shoot-interdit { flex: 1; color: #b03a2e; font-size: 12px; font-weight: 700; text-align: right; }
.shoot-alerte { margin: 8px 0 0; padding: 6px 10px; border-radius: 6px; background: #eef8ee; color: #2e7d32; font-size: 12.5px; }
.shoot-alerte[hidden] { display: none; }
.shoot-fenetre { width: min(520px, calc(100vw - 32px)); padding: 0; border: none; border-top: 4px solid #e48b21; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.shoot-fenetre::backdrop { background: rgba(20,20,20,.55); }
.shoot-fenetre form { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.shoot-fenetre-tete { display: flex; align-items: center; justify-content: space-between; }
.shoot-fenetre-tete h3 { margin: 0; color: #006699; font-size: 17px; }
.shoot-fermer { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3eee6; color: #777; cursor: pointer; }
.shoot-fermer:hover { background: #e48b21; color: #fff; }
.shoot-fenetre textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font: 15px/1.45 var(--police); resize: vertical; }
.shoot-fenetre textarea:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.shoot-emojis { flex-wrap: wrap; }
.shoot-emojis button { font-size: 16px; }
.shoot-fenetre-pied { display: flex; flex-direction: column; gap: 8px; }
.shoot-erreur { margin: 0; padding: 7px 10px; border-radius: 6px; background: #fdecea; color: #b03a2e; font-size: 13px; }
.shoot-erreur[hidden] { display: none; }
.shoot-fenetre-boutons { display: flex; justify-content: flex-end; gap: 8px; }
.shoot-fenetre-boutons .bouton { margin: 0; }
#shoot-form.attente button[type="submit"] { opacity: .6; pointer-events: none; }
@media (max-width: 900px) {
    .acc-objets { grid-template-columns: minmax(0, 1fr); }
}
/* administration : Shootbox */
.adm-shoot-texte { max-width: 460px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.adm-interdits { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.adm-interdits li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px; border: 1px solid #f2d3cf; border-radius: 10px; background: #fff8f7; }
.adm-interdits small { flex: 1; color: #888; }
.adm-interdits form { margin: 0; }
.adm-interdits .bouton { margin: 0; min-height: 30px; padding: 4px 12px; font-size: 13px; }
/* Shootbox : dans la fenetre, la barre de balises reste a sa place (pas "collante" comme sur les grandes pages) */
.shoot-fenetre .pp-outils { position: static; top: auto; margin: 0; }
.shoot-fenetre .pp-groupe:first-child { border-right: 0; }
.shoot-fenetre .shoot-emojis { flex: 1 1 100%; padding: 4px 0 0; border-top: 1px solid #d6d6d6; border-right: 0; }

/* accueil : Qui est en ligne ? (au-dessus des livres / goodies, Shootbox a droite sur toute la hauteur) */
.acc-gauche { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-gauche > .carte-bloc, .acc-gauche .acc-objets .carte-bloc { margin: 0; }
.acc-objets-shoot { align-items: stretch; }
.acc-objets-shoot .acc-shootbox { margin: 0; }
.acc-objets-shoot .shoot-liste { flex: 1 1 0; height: auto; min-height: 320px; }
.en-ligne-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 0; line-height: 1.5; }
.en-ligne-pseudo { position: relative; color: #006699; font-weight: 700; text-decoration: none; }
.en-ligne-pseudo:hover, .en-ligne-pseudo:focus-visible { text-decoration: underline; }
.en-ligne-sep { color: #006699; font-weight: 700; }
.en-ligne-bulle { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.en-ligne-pseudo:hover .en-ligne-bulle, .en-ligne-pseudo:focus-visible .en-ligne-bulle { opacity: 1; transform: translate(-50%, 0); }
.en-ligne-vide { color: #888; font-size: 14px; }
/* accueil : "Quel Saiyan s'est teleporte aujourd'hui ?" (pleine largeur, en bas) */
.acc-teleport { margin-top: 16px; }
.acc-teleport .en-ligne-pseudo.sans-lien { color: #006699; }
.acc-teleport .en-ligne-total .fa-bolt { color: #e48b21; }
.acc-teleport-plus { margin-top: 6px; }
.acc-teleport-plus summary { display: inline-block; color: #c85f05; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.acc-teleport-plus[open] summary { margin-bottom: 4px; }
.acc-teleport-plus .tp-fermer, .acc-teleport-plus[open] .tp-ouvrir { display: none; }
.acc-teleport-plus[open] .tp-fermer { display: inline; }
.acc-teleport-plus summary::-webkit-details-marker { display: none; }
.en-ligne-total { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #f0e6d6; color: #888; font-size: 12.5px; }
.point-actif-mini { width: 8px; height: 8px; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 3px rgba(47,179,68,.15); }
@media (max-width: 900px) {
    .acc-objets-shoot .shoot-liste { flex: none; height: 360px; }
}
.acc-gauche .acc-objets { flex: 1 1 auto; }
/* "Qui est en ligne ?" : pseudos avec la police et la couleur de la Shootbox */
.en-ligne-pseudo { font-size: 13px; font-weight: 700; color: #006699; }
.en-ligne-sep { font-size: 13px; color: #006699; }
/* onglets de l'administration plus compacts (place pour de nouveaux onglets sur la meme ligne) */
.adm-onglets { gap: 3px; }
.adm-onglets a { gap: 6px; padding: 6px 11px; font-size: 13.5px; border-radius: 8px 8px 0 0; }
.adm-onglets a i { font-size: 12.5px; }
.adm-sous-onglets a { padding: 5px 11px; font-size: 12.5px; }
@media (max-width: 700px) { .adm-onglets a { padding: 6px 8px; font-size: 13px; } }
/* ascenseurs horizontaux (bande des series) : orange, comme celui de la Shootbox */
.capsules-bande, .obj-series-bande { scrollbar-width: thin; scrollbar-color: #e3b98a transparent; }
.capsules-bande::-webkit-scrollbar, .obj-series-bande::-webkit-scrollbar { height: 6px; }
.capsules-bande::-webkit-scrollbar-thumb, .obj-series-bande::-webkit-scrollbar-thumb { border-radius: 99px; background: #e3b98a; }
.capsules-bande::-webkit-scrollbar-track, .obj-series-bande::-webkit-scrollbar-track { background: transparent; }

/* catalogue : Composition de la collection (series x raretes) */
.compo-cadre { overflow-x: auto; margin-top: 4px; border: 1px solid #eadfcd; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #e3b98a transparent; }
.compo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compo-table th, .compo-table td { padding: 6px 10px; border-bottom: 1px solid #f1e8da; text-align: center; white-space: nowrap; }
.compo-table thead th { position: sticky; top: 0; background: #fbf6ee; color: #006699; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; border-bottom: 2px solid #e48b21; }
.compo-rarete { display: inline-flex; align-items: center; gap: 5px; }
.compo-table .compo-serie { position: sticky; left: 0; z-index: 1; text-align: left; background: #fff; font-weight: 600; }
.compo-table thead .compo-serie { z-index: 2; background: #fbf6ee; }
.compo-table .compo-serie a { display: inline-flex; align-items: center; gap: 8px; color: #006699; text-decoration: none; }
.compo-table .compo-serie a:hover { text-decoration: underline; }
.compo-table .compo-serie img { width: 22px; height: 22px; object-fit: contain; }
.compo-table tbody tr:nth-child(even) td, .compo-table tbody tr:nth-child(even) .compo-serie { background: #fffaf3; }
.compo-table tbody tr:hover td, .compo-table tbody tr:hover .compo-serie { background: #fff1de; }
.compo-table td { color: #444; }
.compo-table .compo-zero { color: #cfc4b2; }
.compo-table .compo-total { font-weight: 700; color: #333; border-left: 1px solid #f1e8da; }
.compo-table tfoot th, .compo-table tfoot td { border-top: 2px solid #e48b21; border-bottom: 0; background: #fbf6ee; color: #006699; font-weight: 700; }
.compo-table tfoot .compo-total { color: #c85f05; }
.compo-sans-capsule { display: inline-block; width: 22px; }
/* Composition : en-tete qui reste visible (le tableau defile dans son cadre), chiffres cliquables, smartphone = pastilles */
.compo-cadre { max-height: min(70vh, 640px); overflow: auto; }
.compo-table thead th { z-index: 2; box-shadow: 0 2px 0 #e48b21; }
.compo-table thead .compo-serie { z-index: 3; }
.compo-table td a { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 6px; color: #444; font-weight: 600; text-decoration: none; }
.compo-table td a:hover, .compo-table td a:focus-visible { background: #e48b21; color: #fff; outline: none; }
.compo-rarete { position: relative; outline: none; }
@media (max-width: 700px) {
    .compo-table th, .compo-table td { padding: 6px 7px; }
    .compo-rarete-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* lu par les lecteurs d'ecran */
    .compo-rarete .gr-pastille { width: 14px; height: 14px; }
    .compo-rarete::after { content: attr(data-nom); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 5; padding: 3px 9px; border-radius: 999px;
        background: #006699; color: #fff; font-size: 11px; font-weight: 700; text-transform: none; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s; }
    .compo-rarete:hover::after, .compo-rarete:focus::after { opacity: 1; }
    .compo-table thead th:nth-child(2) .compo-rarete::after { left: 0; transform: none; }
    .compo-table thead th:last-child .compo-rarete::after, .compo-table thead th:nth-last-child(2) .compo-rarete::after { left: auto; right: 0; transform: none; }
}
.compo-table tfoot th, .compo-table tfoot td { position: sticky; bottom: 0; z-index: 2; }
.compo-table tfoot .compo-serie { z-index: 3; }

/* ===== GESTIONNAIRE DE COLLECTION (page d'une serie, membres connectes) ===== */
.avec-gestion > li { position: relative; }
/* carte non possedee : voilee de blanc ; possedee : devoilee (seule la barre d'outils garde son voile) */
.avec-gestion > li .tuile-image::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.62); transition: opacity .2s; pointer-events: none; }
.avec-gestion > li.possede .tuile-image::after { opacity: 0; }
/* au survol (ordinateur) : le voile disparait pour bien voir la carte, le livre, le goodie ou le packaging */
@media (hover: hover) {
    .avec-gestion > li:hover .tuile-image::after, .avec-gestion > li:focus-within .tuile-image::after { opacity: 0; }
    .grille-objets.avec-gestion > li:hover .tuile-objet-nom, .grille-objets.avec-gestion > li:focus-within .tuile-objet-nom { opacity: 1; }
}
.avec-gestion > li .tuile-carte { padding-bottom: 0; }
.ma-outils { position: absolute; right: 1px; bottom: 1px; left: 1px; display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 34px; padding: 0 5px;
    border-top: 1px solid rgba(228,139,33,.35); border-radius: 0 0 6px 6px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ma-outils button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid #d9cdb8; border-radius: 6px;
    background: #fff; color: #c9bfae; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.ma-outils button:hover { border-color: #e48b21; color: #e48b21; }
.ma-outils button:active { transform: scale(.92); }
.ma-outils button:focus-visible { outline: 2px solid #006699; outline-offset: 1px; }
.ma-possede[aria-pressed="true"] { border-color: #26a03a; background: #2fb344; color: #fff; }
.ma-possede[aria-pressed="true"]:hover { border-color: #1f8a31; background: #26a03a; color: #fff; }
.ma-veut[aria-pressed="true"] { border-color: #e0a300; background: #fff6d6; color: #f5b301; }
.ma-doubles { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.ma-outils .ma-double-btn { width: auto; min-width: 26px; padding: 0 4px; gap: 2px; }
.ma-nb { color: #c85f05; font-size: 12.5px; font-weight: 800; }
.avec-gestion > li.double .ma-double-btn { border-color: #e48b21; background: #fff3e3; color: #e48b21; }
.avec-gestion > li.envoi .ma-outils { opacity: .75; }
/* filtres "Ma collection" */
.avec-gestion[data-etat="possede"] > li:not(.possede), .avec-gestion[data-etat="manque"] > li:not(.manque),
.avec-gestion[data-etat="veut"] > li:not(.veut), .avec-gestion[data-etat="double"] > li:not(.double) { display: none; }
.ma-progression { margin: 6px 0 12px; padding: 10px 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffaf3; }
.ma-prog-texte { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #555; font-size: 13.5px; }
.ma-prog-texte > b { color: #006699; }
.ma-prog-texte .fa-star { color: #f5b301; }
.ma-prog-texte .fa-clone { color: #e48b21; }
.ma-prog-sep { color: #ccc; }
.ma-prog-barre { height: 8px; margin: 8px 0 10px; overflow: hidden; border-radius: 99px; background: #f0e6d6; }
.ma-prog-barre span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e3a259, #e48b21); transition: width .3s; }
.ma-progression.complete .ma-prog-barre span { background: linear-gradient(90deg, #4cc35e, #2fb344); }
.ma-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-filtres button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid #e8dcc8; border-radius: 999px; background: #fff; color: #6b5f4d; font: 600 12.5px var(--police); cursor: pointer; }
.ma-filtres button:hover { border-color: #e48b21; color: #c85f05; }
.ma-filtres button.actif { border-color: #006699; background: #006699; color: #fff; }
.ma-filtres button small { color: #9a8b74; font-size: 11px; font-weight: 600; }
.ma-filtres button.actif small { color: rgba(255,255,255,.8); }
/* "tout cocher" (cartes affichees) */
.ma-lot { display: inline-flex; flex-wrap: wrap; gap: 6px; padding-left: 8px; border-left: 1px solid #e8dcc8; }
.ma-lot .ma-lot-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid #d27a17; border-radius: 999px; background: linear-gradient(#e3a259, #e48b21);
    color: #fff; font: 600 12.5px var(--police); cursor: pointer; transition: filter .15s, opacity .15s; }
.ma-lot .ma-lot-btn:hover:not(:disabled) { filter: brightness(1.06); }
.ma-lot .ma-lot-btn.decocher { border-color: #e3b98a; background: #fff; color: #c85f05; }
.ma-lot .ma-lot-btn.decocher:hover:not(:disabled) { border-color: #e48b21; filter: none; }
.ma-lot .ma-lot-btn:disabled { opacity: .45; cursor: default; }
.ma-lot .ma-lot-btn:focus-visible { outline: 2px solid #006699; outline-offset: 1px; }
@media (max-width: 700px) { .ma-lot { padding-left: 0; border-left: 0; } }
/* livres / goodies : gestionnaire de collection */
.grille-objets.avec-gestion > li { position: relative; }
.grille-objets.avec-gestion > li .tuile-objet { height: 100%; padding-bottom: 28px; }
.grille-objets.avec-gestion > li.possede .tuile-image::after { opacity: 0; }
.grille-objets.avec-gestion > li:not(.possede) .tuile-objet-nom { opacity: .6; }
/* page d'une collection : progression du membre sur chaque serie */
.obj-ma-prog { display: flex; align-items: center; gap: 8px; margin: -4px 10px 10px; color: #6b5f4d; font-size: 12px; font-weight: 600; }
.obj-ma-texte { flex: none; }
.obj-ma-texte i { color: #006699; }
.obj-ma-barre { flex: 1; min-width: 0; height: 6px; overflow: hidden; border: 0; border-radius: 99px; background: #f0e6d6; -webkit-appearance: none; appearance: none; }
.obj-ma-barre::-webkit-progress-bar { border-radius: 99px; background: #f0e6d6; }
.obj-ma-barre::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, #e3a259, #e48b21); }
.obj-ma-barre::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, #e3a259, #e48b21); }
.obj-ma-prog.complete .obj-ma-barre::-webkit-progress-value { background: linear-gradient(90deg, #4cc35e, #2fb344); }
.obj-ma-prog.complete .obj-ma-barre::-moz-progress-bar { background: linear-gradient(90deg, #4cc35e, #2fb344); }
/* fenetres d'apercu (cartes, livres, goodies) : version compacte ; boutons cote a cote : Version HD, En lien avec, Ma collection */
.apercu-infos h3 { padding: 4px 12px; font-size: 14px; }
.apercu-fiche dt, .apercu-fiche dd, #obj-apercu .apercu-fiche dt, #obj-apercu .apercu-fiche dd { padding: 3px 10px; font-size: 13.5px; line-height: 1.35; }
.apercu-fiche dd.apercu-divers, #apercu-rarete { white-space: pre-line; }
.apercu-boutons { align-items: center; gap: 8px; }
.apercu-infos .apercu-boutons .bouton { min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; gap: 6px; }
.ma-outils.ma-outils-apercu { position: static; display: inline-flex; align-items: center; gap: 4px; height: 34px; margin: 0; padding: 0 8px;
    border: 1px solid #eadfcd; border-radius: 8px; background: #fffaf3; }
.ma-outils-apercu[hidden] { display: none; }
.ma-apercu-titre { margin-right: 2px; color: #006699; font-size: 14px; }
.ma-outils.ma-outils-apercu .ma-possede, .ma-outils.ma-outils-apercu .ma-veut { width: 26px; height: 26px; font-size: 13px; }
.ma-outils-apercu .ma-doubles { margin-left: 2px; }
.ma-outils.ma-outils-apercu .ma-fl { width: 15px; height: 26px; font-size: 13px; }
.ma-outils-apercu.double .ma-fl { display: inline-flex; }
.ma-outils.ma-outils-apercu .ma-double-btn { height: 26px; padding: 4px 4px 0 0; }
.ma-outils-apercu .ma-nb { height: 19px; min-width: 18px; font-size: 11.5px; }
.ma-outils-apercu.double .ma-nb { border-color: #006699; background: #006699; color: #fff; }
.ma-outils-apercu.double .ma-nb::before { border-color: #006699; background: #fff; }
.ma-outils-apercu.envoi { opacity: .75; }

/* packagings : petite progression "Ma collection" (page d'une serie) */
.ma-prog-pk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 6px 0 12px; padding: 8px 12px; border: 1px solid #f1e4cf; border-radius: 10px; background: #fffaf3; font-size: 13.5px; }
.ma-prog-pk .ma-prog-texte { margin: 0; }
.ma-prog-pk .ma-prog-barre { flex: 1 1 160px; min-width: 120px; margin: 0; }
.ma-prog-pk.complete .ma-prog-barre span { background: linear-gradient(90deg, #4cc35e, #2fb344); }
.grille-packagings.avec-gestion > li { position: relative; }
/* administration : packagings */
.adm-liens-titre { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.adm-liens-titre .adm-lien-apercu { margin-left: 0; }
.adm-pk-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.adm-pk-grille > li { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; }
.adm-pk-tuile { display: flex; flex: 1; flex-direction: column; color: #333; text-decoration: none; }
.adm-pk-tuile:hover .adm-pk-image img { transform: scale(1.03); }
.adm-pk-image { display: flex; align-items: center; justify-content: center; height: 150px; padding: 6px; background: #faf8f3; color: #c9bba4; font-size: 28px; }
.adm-pk-image img { max-width: 100%; max-height: 100%; transition: transform .2s; }
.adm-pk-infos { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; font-size: 13px; }
.adm-pk-infos small { color: #8a7c66; font-size: 12px; }
.adm-pk-boutons { justify-content: flex-end; padding: 0 8px 8px; }
/* etat de mes doubles (compte/mes_doubles.php) */
.dbl-legende { margin-top: 8px; border: 1px solid #ecdcc6; border-radius: 10px; background: #fffaf3; }
.dbl-legende > summary { padding: 9px 14px; color: #006699; font-weight: 700; cursor: pointer; }
.dbl-legende h3 { margin: 6px 14px; color: #006699; font-size: 15px; }
.dbl-legende-table { width: calc(100% - 28px); margin: 0 14px 14px; border-collapse: collapse; font-size: 13.5px; }
.dbl-legende-table th, .dbl-legende-table td { padding: 7px 9px; border-bottom: 1px solid #f0e6d6; vertical-align: top; text-align: left; }
.dbl-legende-table td:first-child { width: 150px; }
.dbl-legende-table ul { margin: 4px 0 0; padding-left: 18px; }
.dbl-sigle { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 6px; background: var(--c, #888); color: #fff; font-weight: 800; text-align: center; }
.dbl-lot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #ecdcc6; border-radius: 10px; background: #fffaf3; }
.dbl-tout { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.dbl-lot-texte { color: #6b5f4d; font-size: 13px; }
.dbl-lot .bouton { min-height: 32px; margin: 0; padding: 0 12px; font-size: 13.5px; }
.dbl-appliquer.secoue { animation: dbl-secoue .4s; }
@keyframes dbl-secoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dbl-liste { margin: 0; padding: 0; list-style: none; }
.dbl-ligne { display: grid; grid-template-columns: 26px 46px minmax(140px, 230px) 1fr; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #f3eadf; }
.dbl-ligne.choisie { background: #fff4e6; }
.dbl-coche input { width: 17px; height: 17px; accent-color: #e48b21; }
.dbl-img { display: flex; align-items: center; justify-content: center; width: 46px; height: 62px; }
.dbl-img img { max-width: 100%; max-height: 100%; border-radius: 3px; }
.dbl-nom { font-size: 13.5px; line-height: 1.3; }
.dbl-nom b { color: #006699; }
.dbl-nom small { display: block; color: #9a8b74; font-size: 11.5px; }
.dbl-champs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dbl-etats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dbl-etat { position: relative; cursor: pointer; }
.dbl-etat input { position: absolute; opacity: 0; pointer-events: none; }
.dbl-etat span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 8px; border: 2px solid var(--c, #c9bba4);
    border-radius: 7px; background: #fff; color: var(--c, #9a8b74); font-size: 12.5px; font-weight: 800; transition: background .15s, color .15s; }
.dbl-etat:hover span { background: #fbf6ee; }
.dbl-etat input:checked + span { background: var(--c, #9a8b74); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.dbl-etat input:focus-visible + span { outline: 2px solid #006699; outline-offset: 2px; }
.dbl-etat-vide span { min-width: 28px; border-style: dashed; }
.dbl-grade { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dbl-grade-case { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: #006699; }
.dbl-grade-case input { accent-color: #006699; }
.dbl-grade-champs { display: inline-flex; align-items: center; gap: 6px; }
.dbl-grade-champs[hidden] { display: none; }
.dbl-form .dbl-grade select, .dbl-form .dbl-peel { width: auto; max-width: 100%; flex: none; min-height: 30px; padding: 2px 8px; border: 1px solid #ccc; border-radius: 7px; background: #fff; font: 600 13px var(--police); }
.dbl-note { display: inline-flex; align-items: center; gap: 2px; }
.dbl-note input { width: 52px; height: 30px; padding: 0 4px; border: 1px solid #b9d6e5; border-radius: 6px; color: #006699; font: 700 14px var(--police); text-align: center; }
.dbl-note .ma-fl { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 30px; padding: 0; border: 1px solid #b9d6e5; border-radius: 4px; background: #eef6fa; color: #006699; cursor: pointer; }
.dbl-note .ma-fl:hover { background: #006699; color: #fff; }
@media (max-width: 700px) {
    .dbl-ligne { grid-template-columns: 22px 40px 1fr; }
    .dbl-champs { grid-column: 1 / -1; }
}
/* Sa collection : en-tete du membre, echanges possibles */
.col-membre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.col-membre-avatar .avatar { width: 64px; height: 64px; }
.col-membre-nom { flex: 1 1 200px; }
.col-membre-nom h2 { margin: 0 0 4px; color: #006699; }
.col-membre-nom p { margin: 0; }
.col-membre-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.col-membre-boutons .bouton, .ech-actions .bouton { min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; gap: 6px; }
.col-autre[data-objmode="possede"] .col-carte.manque { display: none; }
.col-onglets .col-onglet-echanges { margin-left: auto; }
.col-onglets .col-onglet-echanges i { color: #2e8b57; }
.ech-intro { margin-bottom: 12px; }
.ech-liste { display: grid; gap: 8px; }
.ech-serie { border: 1px solid #ecdcc6; border-radius: 10px; background: #fff; }
.ech-serie > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; list-style: none; cursor: pointer; }
.ech-serie > summary::-webkit-details-marker { display: none; }
.ech-serie > summary:hover { background: #fff4e8; }
.ech-serie[open] > summary { border-bottom: 1px solid #f0e6d6; }
.ech-serie[open] > summary .arbre-fleche { transform: rotate(90deg); }
.ech-titre { flex: 1 1 200px; font-size: 14px; }
.ech-titre b { color: #006699; }
.ech-compte { display: inline-flex; gap: 10px; font-weight: 700; font-size: 13.5px; }
.ech-compte span:first-child { color: #2e8b57; }
.ech-compte span:last-child { color: #c85f05; }
.ech-form { padding: 10px 12px 12px; }
.ech-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ech-col h4 { margin: 0 0 8px; font-size: 14px; }
.ech-col h4 small { display: block; color: #9a8b74; font-size: 12px; font-weight: 400; }
.ech-recoit h4 { color: #2e8b57; }
.ech-donne h4 { color: #c85f05; }
.ech-col ul { margin: 0; padding: 0; list-style: none; }
.ech-col li + li { margin-top: 4px; }
.ech-el { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 8px; border: 1px solid #f0e6d6; border-radius: 7px; background: #fffdf9; font-size: 13.5px; cursor: pointer; }
.ech-el:has(input:checked) { border-color: #e3b98a; background: #fff4e6; }
.ech-el input { accent-color: #e48b21; }
.ech-nom b { color: #006699; }
.ech-etats { flex-basis: 100%; padding-left: 22px; color: #6b5f4d; font-size: 12px; }
.ech-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.membre-col { margin-left: 4px; color: #006699; }
.membre-col:hover { color: #e48b21; }
@media (max-width: 700px) {
    .ech-colonnes { grid-template-columns: 1fr; }
    .col-onglets .col-onglet-echanges { margin-left: 0; }
}
/* administration : etats des doubles */
.adm-etats { display: grid; gap: 12px; }
.adm-etat { margin: 0; padding: 6px 14px 10px; border: 1px solid #ecdcc6; border-radius: 10px; background: #fff; }
.adm-etat legend { padding: 0 6px; font-weight: 700; color: #333; }
.adm-etat legend small { margin-left: 6px; color: #9a8b74; font-weight: 400; }
.adm-etat-nouveau { border-style: dashed; background: #fffaf3; }
.adm-etat-nouveau legend { color: #006699; }
.adm-etat-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-etat-ligne .rech-champ { flex: 1 1 200px; margin-bottom: 8px; }
.adm-etat-ligne .adm-etat-court { flex: 0 0 90px; }
.adm-etat-ligne .adm-icone-suppr { margin-bottom: 14px; }
.adm-etat .rech-champ { margin-bottom: 8px; }
.adm-form .adm-etat input[type="color"] { width: 90px; height: 38px; padding: 2px; }
.adm-form .adm-etat textarea { min-height: 70px; }
/* gestionnaire de collection : quel double retirer ? */
.ma-question .conf-boutons.ma-choix { flex-direction: column; align-items: stretch; }
.ma-question .ma-choix-btn { justify-content: flex-start; }
.ma-etat-lien { margin-left: 6px; font-weight: 600; color: #006699; text-decoration: none; }
.ma-etat-lien:hover { color: #e48b21; text-decoration: underline; }
.col-dbl-lien { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px 18px; color: #006699; font-size: 13px; font-weight: 600; text-decoration: none; }
.col-dbl-lien:hover { color: #e48b21; text-decoration: underline; }
.col-etats { display: inline-flex; gap: 3px; margin-left: 4px; }
.col-etats b { padding: 0 4px; border-radius: 4px; background: var(--c, #9a8b74); color: #fff; font-size: 10.5px; line-height: 16px; }
/* pagination des cartes d'une serie (js/catalogue.js) */
.grille-cartes > li.hors-page { display: none; }
.cartes-pages[hidden], .outils-pages[hidden] { display: none; }
.cartes-pages { margin: 4px 0 12px; }
.cartes-pages[data-pages="bas"] { margin: 14px 0 2px; }
.cartes-pages a { min-width: 34px; height: 34px; }
.cartes-pages .pages-ellipse { padding: 0 2px; color: #b0a38d; }
.cartes-pages .pages-info { flex-basis: 100%; margin-top: 2px; color: #8a7c66; font-size: 12.5px; text-align: center; }
.outils-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.outils-pages a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 32px; border: 1px solid #d27a17; border-radius: 8px;
    background: linear-gradient(#e3a259, #e48b21); color: #fff; text-decoration: none; }
.outils-pages a.inactif { opacity: .35; pointer-events: none; }
.outils-pages .pages-texte { color: #006699; font-size: 13px; font-weight: 700; }
/* menu flottant "Affichage" : section Ma collection */
.outils-ma-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
/* titre "Ma collection" du menu : meme style que la barre du haut (bleu, meme police) */
.outils-ma-titre > span:first-child { color: #006699; font-size: 13.5px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.outils-ma-titre .outils-ma-prog { font-size: 13px; }
/* memes couleurs que la barre du haut : etoile (recherche) jaune, doubles orange */
.ma-filtres button:not(.actif) .fa-star { color: #f5b301; }
.ma-filtres button:not(.actif) .fa-clone { color: #e48b21; }
.outils-dbl-lien { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 6px; border: 1px solid #b9d6e5; border-radius: 8px;
    background: #f1f8fc; color: #006699; font-size: 13px; font-weight: 600; text-decoration: none; }
.outils-dbl-lien:hover { background: #006699; color: #fff; }
.outils-ma-titre i { color: #006699; }
.outils-ma-prog { color: #6b5f4d; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.outils-ma-prog b { color: #006699; }
.ma-prog-barre.outils-barre { height: 5px; margin: 0 0 8px; }
.outils-barre.complete span { background: linear-gradient(90deg, #4cc35e, #2fb344); }
.outils-ma-filtres { gap: 5px; }
.outils-ma-filtres button { padding: 3px 9px; font-size: 12px; }
.outils-ma-lot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding-left: 0; border-left: 0; }
.outils-ma-lot .ma-lot-btn { justify-content: center; gap: 5px; min-width: 0; padding: 6px 4px; border-radius: 8px; font-size: 12px; white-space: nowrap; }   /* une seule ligne, meme taille pour cartes, livres et goodies */
.ma-invite { margin: 6px 0 12px; padding: 9px 12px; border-radius: 8px; background: #eef6fa; color: #44606e; font-size: 13.5px; }
.ma-toast { position: fixed; bottom: 20px; left: 50%; z-index: 100; max-width: calc(100vw - 32px); margin: 0; padding: 10px 16px; border-radius: 10px; background: #b03a2e; color: #fff;
    font-size: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.ma-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.ma-toast.ok { background: #006699; }
@media (max-width: 700px) {
    .ma-outils { height: 30px; padding: 0 3px; gap: 2px; }
    .ma-outils button { width: 23px; height: 23px; font-size: 12px; }
}
.avec-gestion > li .tuile-carte:hover, .avec-gestion > li .tuile-carte:focus-visible { transform: none; }
/* gestionnaire : boutons plus petits ; fond de la barre = meme voile blanc que la carte non possedee */
.ma-outils { height: 28px; padding: 0 4px; gap: 3px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: none; backdrop-filter: none; border-top-color: rgba(228,139,33,.25); }
.ma-outils button { width: 21px; height: 21px; border-radius: 5px; font-size: 11px; }
.ma-outils .ma-double-btn { min-width: 21px; padding: 0 3px; }
.ma-nb { font-size: 11px; }
@media (max-width: 700px) {
    .ma-outils { height: 25px; padding: 0 3px; gap: 2px; }
    .ma-outils button { width: 19px; height: 19px; font-size: 10px; }
}
/* intensite du voile reglable (v3_parametres.voile_cartes, appliquee par js/ma_collection_cartes.js) */
.avec-gestion > li .tuile-image::after { background: rgba(255,255,255,var(--voile, .62)); }
.avec-gestion .ma-outils { background: rgba(255,255,255,var(--voile, .62)); }
/* doubles : [▼] [cartes +N] [▲] en bleu charte ; le logo = 2 cartes empilees, le nombre ecrit dans la carte de devant
   (fleches seulement quand il y a des doubles) */
.ma-doubles { gap: 2px; }
.ma-outils .ma-fl { display: none; width: 14px; height: 21px; border-color: #b9d6e5; border-radius: 4px; background: #eef6fa; color: #006699; font-size: 12px; }
.avec-gestion > li.double .ma-outils .ma-fl { display: inline-flex; }
.ma-outils .ma-fl:hover { border-color: #006699; background: #006699; color: #fff; }
.ma-outils .ma-double-btn { position: relative; isolation: isolate; width: auto; min-width: 0; height: 21px; padding: 4px 4px 0 0; border: 0; background: transparent; }
.ma-outils .ma-double-btn:hover { background: transparent; }
.ma-nb { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 15px; height: 16px; padding: 0 2px; border: 1.5px solid #7fb0cc;
    border-radius: 3px; background: #fff; color: #7fb0cc; font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: -.3px; }
.ma-nb::before { content: ""; position: absolute; top: -5.5px; right: -5.5px; bottom: 2.5px; left: 2.5px; z-index: -1; border: 1.5px solid #7fb0cc; border-radius: 3px; background: #eef6fa; }
.ma-outils .ma-double-btn:hover .ma-nb { border-color: #006699; color: #006699; }
.avec-gestion > li.double .ma-double-btn { background: transparent; }
.avec-gestion > li.double .ma-nb { border-color: #006699; background: #006699; color: #fff; }
.avec-gestion > li.double .ma-nb::before { border-color: #006699; background: #fff; }
@media (max-width: 700px) {
    .ma-outils .ma-fl { width: 12px; height: 19px; font-size: 11px; }
    .ma-outils .ma-double-btn { height: 19px; padding: 3px 3px 0 0; }
    .ma-nb { height: 15px; min-width: 13px; font-size: 9.5px; }
    .ma-nb::before { top: -4.5px; right: -4.5px; }
}
/* administration : Parametres (Webmaster) */
.param-section { margin: 0 0 16px; padding: 4px 16px 6px; border: 1px solid #ecdcc6; border-radius: 12px; background: #fff; }
.param-section legend { padding: 0 8px; color: #006699; font-size: 15px; font-weight: 700; }
.param-section legend i { color: #e48b21; }
.param-ligne { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid #f3eadf; }
.param-ligne:last-child { border-bottom: 0; }
.param-libelle { font-weight: 600; font-size: 14px; color: #333; }
.param-champ { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.param-champ select, .param-champ input[type="number"], .param-champ input[type="text"] { min-height: 34px; padding: 4px 10px; border: 1px solid #ccc; border-radius: 8px; font: 600 14px var(--police); background: #fff; }
.param-champ select { width: auto; min-width: 110px; max-width: 100%; flex: none; }
.param-champ input[type="number"], .param-champ input[type="text"] { flex: none; }
.param-champ input[type="number"] { width: 110px; }
.param-champ input[type="text"] { width: 240px; max-width: 100%; }
.param-champ small { color: #888; font-size: 12.5px; }
.param-info { grid-column: 1 / -1; margin: 0; color: #999; font-size: 12px; }
.param-info code { color: #006699; font-weight: 700; font-size: 11.5px; }
.param-defaut { color: #b9650c; }
.param-nouveau { color: #2e8b57; }
.param-interrupteur { align-items: center; margin: 0; padding: 6px 12px; }
.param-interrupteur b { font-size: 13.5px; }
.param-interrupteur .param-si-oui, .param-interrupteur input:checked ~ span .param-si-non { display: none; }
.param-interrupteur input:checked ~ span .param-si-oui { display: block; }
@media (max-width: 700px) {
    .param-section { padding: 4px 10px 6px; }
    .param-ligne { grid-template-columns: 1fr; }
}

/* ============ MA COMMUNAUTE : favoris (compte/communaute.php, etoile sur profil / sa collection / membres) ============ */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.favori-form { display: inline-flex; margin: 0; }
.favori-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid #e3b98a; border-radius: 6px; background: #fff; color: #c85f05; font: 600 14px var(--police); cursor: pointer; transition: background .15s, color .15s; }
.favori-btn i { color: #c9b291; transition: color .15s, transform .15s; }
.favori-btn:hover { background: #fff4e8; }
.favori-btn:hover i { transform: scale(1.15); }
.favori-btn.actif { border-color: #e48b21; background: #fff4e8; }
.favori-btn.actif i { color: #f0a020; }
.favori-form.envoi .favori-btn { opacity: .6; pointer-events: none; }
.favori-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229,137,28,.3); }
/* petite etoile ronde, en haut a droite d'une fiche membre */
.membre-fiche { position: relative; }
.favori-petit { position: absolute; top: 10px; right: 10px; }
.favori-petit .favori-btn { justify-content: center; width: 32px; min-height: 32px; padding: 0; border-color: #ece3d4; border-radius: 50%; font-size: 15px; }
.membre-fiche .membre-haut { padding-right: 34px; }
.col-membre-boutons .favori-btn, .profil-boutons .favori-btn { margin: 0; }

.comm-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.comm-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.comm-entete h2 { margin: 0; }
.comm-tri { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comm-tri .comm-filtre { flex: 0 1 220px; min-width: 160px; }
.comm-tri .comm-filtre input { min-height: 36px; font-size: 14px; }
.comm-tri select { min-height: 38px; padding: 0 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font: 14px var(--police); color: #444; }
.comm-bloc .aide { margin: 10px 0 0; font-size: 13px; color: var(--texte-doux); }
.comm-etoile { color: #f0a020; }
.comm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.comm-fiche { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid #eadfcd; border-radius: 12px; background: #fffdf9; }
.comm-fiche[hidden] { display: none; }
.comm-fiche.prive { border-style: dashed; }
.comm-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.comm-haut .membre-haut { min-width: 0; }
.comm-fiche.prive .membre-nom b { color: #777; }
.comm-retirer { flex: none; margin: 0; }
.comm-echanges { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 10px; border-radius: 8px; background: #eef6fa; color: #006699; font-size: 13px; text-decoration: none; }
.comm-echanges span { display: inline-flex; align-items: center; gap: 5px; }
.comm-echanges > i:last-child { margin-left: auto; font-size: 11px; }
a.comm-echanges:hover { background: #dfeef5; }
.comm-echanges.vide { background: #f6f1e8; color: #8a7a62; }
.comm-note { display: flex; align-items: center; gap: 6px; margin: 0; }
.comm-note label { flex: 1; min-width: 0; }
.comm-note input { width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid #e2d6c3; border-radius: 6px; background: #fff; font: italic 13.5px var(--police); color: #555; }
.comm-note input:focus { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); outline: none; font-style: normal; }
.comm-note .bouton { flex: none; width: 34px; padding: 0; }
.comm-note.modifie .bouton { border-color: #e48b21; background: #fff4e8; }
.comm-note-etat { flex: none; min-width: 0; font-size: 12px; color: var(--vert); }
.comm-note-etat:empty { display: none; }
.comm-boutons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0e6d6; }
.comm-boutons .bouton { gap: 6px; }
@media (max-width: 760px) {
    .comm-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .comm-tuiles .tuile-detail { display: none; }
    .comm-tri, .comm-tri .comm-filtre { flex: 1 1 100%; }
    .comm-grille { grid-template-columns: 1fr; }
}

/* ============ MEMBRE INACTIF : petite alerte rouge discrete (reglage inactif_jours) ============ */
.alerte-inactif { display: flex; align-items: center; gap: 5px; margin: 0; color: #c0392b; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.alerte-inactif[hidden] { display: none; }
.alerte-inactif i { font-size: 12px; opacity: .85; }
.profil .alerte-inactif { margin-top: 10px; }
.col-membre-nom .alerte-inactif { margin-top: 6px; }
#zone-dest .alerte-inactif { margin-top: 6px; }

/* ============ MA COMMUNAUTE : onglets + Nouveautes (doubles / recherches ajoutes par mes favoris) ============ */
.comm-onglets { margin: 0 0 12px; }
.comm-nv .aide { margin: 6px 0 4px; font-size: 13px; color: var(--texte-doux); }
.nv-jour { margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #f0e6d6; color: #006699; font-size: 15px; }
.nv-liste { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nv-membre { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 10px 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.nv-qui { display: flex; align-items: center; gap: 10px; min-width: 0; color: #006699; text-decoration: none; }
.nv-qui b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.nv-qui:hover b { text-decoration: underline; }
.nv-qui .avatar { width: 38px; height: 38px; border-radius: 0 8px 8px 0; }
.nv-qui .avatar-vide { font-size: 16px; }
.nv-lignes { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #555; }
.nv-lignes li { line-height: 1.45; }
.nv-lignes i { width: 16px; text-align: center; }
.nv-double i { color: #e48b21; }
.nv-recherche i { color: #006699; }
.nv-lignes b { color: #333; }
.nv-lignes a { color: #006699; font-weight: 600; text-decoration: none; }
.nv-lignes a:hover { text-decoration: underline; }
.nv-lignes small { color: #999; }
.nv-sep { color: #c9b291; }
.nv-echanges { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 3px 10px; border-radius: 99px; background: #eef6fa; color: #006699; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.nv-echanges:hover { background: #dfeef5; }
@media (max-width: 760px) {
    .nv-membre { grid-template-columns: 1fr; }
    .nv-echanges { grid-column: 1; }
}

/* ============ GESTIONNAIRE : barre de boutons SOUS la carte / le packaging (plus par-dessus l'image) ============ */
.grille-cartes.avec-gestion > li .tuile-carte { padding-bottom: 28px; }
.avec-gestion .ma-outils, .grille-cartes.avec-gestion .ma-outils { background: #fff; border-top: 1px solid #efe5d5; }
.grille-cartes.avec-gestion > li.possede .ma-outils { background: #fbfdf9; }
@media (max-width: 700px) {
    .grille-cartes.avec-gestion > li .tuile-carte { padding-bottom: 25px; }
}

/* ============ ECHANGES POSSIBLES : titre par famille (cartes et packagings / livres / goodies) ============ */
.ech-famille { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; color: #006699; font-size: 15px; }
.ech-famille:first-child { margin-top: 0; }
.ech-famille .msg-compte { font-size: 12px; font-weight: 600; }
.ech-famille, .ech-ancre { scroll-margin-top: 130px; }
.ech-ancre { display: block; height: 0; }

/* ============ MESSAGERIE : barre de mise en forme (balises de la page perso), apercu, image en lien ============ */
.msg-outils { margin: 2px 0 6px; }
.msg-aide #msg-apercu-btn { display: inline-flex; align-items: center; gap: 5px; color: #006699; font-weight: 600; }
.msg-apercu { margin: 6px 0 0; padding: 12px 14px; border: 1px dashed #e3b98a; border-radius: 8px; background: #fffdf9; }
.msg-apercu[hidden] { display: none; }
.pp-image-lien { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid #d6e6ef; border-radius: 6px; background: #eef6fa; color: #006699; font-size: 13px; text-decoration: none; }
.pp-image-lien:hover { background: #dfeef5; }
.msg-texte.pp-contenu { font-size: 15px; }
/* nouveau message : ecrire a gauche, apercu en direct a droite (comme Ma page perso ; onglets sur smartphone) */
.msg-colonnes .pp-ecrire textarea, .msg-colonnes .pp-apercu { min-height: 380px; }
.msg-colonnes .pp-apercu { max-height: 620px; }
.msg-colonnes .msg-aide { margin-top: 4px; }
@media (max-width: 860px) {
    .msg-colonnes .pp-ecrire textarea, .msg-colonnes .pp-apercu { min-height: 300px; }
    .msg-colonnes .pp-apercu { max-height: 70vh; }
}
/* brouillons : onglet a gauche de "Nouveau message", boutons Envoyer / Enregistrer en brouillon */
.msg-onglets .msg-brouillons { margin-left: auto; }
.msg-onglets .msg-brouillons + .msg-nouveau { margin-left: 0; }
.msg-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.form-message .msg-pied .bouton { margin: 0; }
.msg-brouillon-date { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--texte-doux); }
@media (max-width: 700px) {
    .msg-onglets .msg-brouillons { margin-left: 0; }
    .msg-pied .bouton { flex: 1 1 auto; justify-content: center; }
}
/* echanges possibles : filtre par type (onglet d'ou l'on vient) */
.ech-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ech-filtres a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #e2d6c3; border-radius: 99px; background: #fff; color: #555; font-size: 13px; font-weight: 600; text-decoration: none; }
.ech-filtres a span { color: #999; font-size: 12px; font-weight: 600; }
.ech-filtres a i { color: #006699; }
.ech-filtres a:hover { border-color: #e48b21; color: #c85f05; }
.ech-filtres a.actif { border-color: #006699; background: #006699; color: #fff; }
.ech-filtres a.actif i, .ech-filtres a.actif span { color: #fff; }
#echanges { scroll-margin-top: 130px; }

/* ============ APERCU : "Qui l'a en double ?" sous l'image (l'image se reduit un peu, la fenetre ne s'allonge pas) ============ */
.apercu-image { flex-direction: column; gap: 8px; }
.apercu-image:has(.apercu-qui:not([hidden])) img { max-height: min(calc(100vh - 190px), 325px); }   /* ~ la hauteur prise par les lignes : l'apercu garde sa taille */
.apercu-qui { width: 100%; padding: 6px 8px; border-top: 1px dashed #e3cfb2; font-size: 12.5px; line-height: 1.45; color: #555; text-align: left; }
.apercu-qui[hidden] { display: none; }
.apercu-qui.charge { min-height: 26px; opacity: .5; }
.apercu-qui-ligne { margin: 0; overflow-wrap: anywhere; }
.apercu-qui-ligne + .apercu-qui-ligne { margin-top: 3px; }
.apercu-qui-ligne i { width: 14px; margin-right: 3px; color: #006699; font-size: 11px; }
.apercu-qui-ligne b { color: #333; font-weight: 700; }
.apercu-qui-ligne a { color: #006699; font-weight: 600; text-decoration: none; }
.apercu-qui-ligne a:hover { text-decoration: underline; }
.apercu-qui-ligne.vide { color: #999; font-style: italic; }
.apercu-qui .qui-plus { margin-left: 4px; color: #c85f05; font-size: 12.5px; font-weight: 600; }
@media (max-width: 760px) {
    .apercu-image:has(.apercu-qui:not([hidden])) img { max-height: 44vh; }
    .apercu-image { gap: 4px; }
    .apercu-qui { font-size: 12px; }
}
/* "N membres l'ont en double · Voir" : liste deroulante de hauteur fixe */
.apercu-qui-liste { display: flex; flex-wrap: wrap; gap: 4px 6px; max-height: 76px; margin: 4px 0 2px; padding: 6px; overflow-y: auto; border: 1px solid #ece3d4; border-radius: 6px; background: #fff; list-style: none; }
.apercu-qui-liste[hidden] { display: none; }
.apercu-qui-liste li { padding: 1px 7px; border-radius: 99px; background: #eef6fa; font-size: 12px; }
.apercu-qui-liste a { color: #006699; font-weight: 600; text-decoration: none; }
.apercu-qui-liste a:hover { text-decoration: underline; }

/* ============ COLLECTIONS SUIVIES : curseur (vert = suivie), entete de Ma collection, page d'une collection ============ */
.suivre-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 2px; border: 0; background: none; cursor: pointer; font: inherit; color: #555; }
.suivre-piste { position: relative; display: inline-block; flex: none; width: 34px; height: 18px; border-radius: 99px; background: #d9d2c5; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); transition: background .18s; }
.suivre-rond { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .18s; }
.suivre-btn[aria-checked="true"] .suivre-piste { background: #2e9e4f; }
.suivre-btn[aria-checked="true"] .suivre-rond { transform: translateX(16px); }
.suivre-btn:hover .suivre-piste { box-shadow: inset 0 1px 2px rgba(0,0,0,.15), 0 0 0 3px rgba(46,158,79,.15); }
.suivre-btn:focus-visible { outline: none; } .suivre-btn:focus-visible .suivre-piste { box-shadow: 0 0 0 3px rgba(0,102,153,.35); }
.suivre-btn.envoi { opacity: .6; }
.suivre-lib { font-size: 13.5px; font-weight: 600; color: #006699; white-space: nowrap; }
.suivre-btn[aria-checked="true"] .suivre-lib { color: #237a3d; }
.suivre-exemple { display: inline-block; vertical-align: -3px; }
.suivre-exemple .suivre-piste { background: #2e9e4f; } .suivre-exemple .suivre-rond { transform: translateX(16px); }
/* Ma collection : colonne du curseur a droite, barre de progression plus courte */
.col-arbre.avec-suivi .col-collection > summary { grid-template-columns: minmax(0, 1.7fr) minmax(70px, .8fr) minmax(150px, auto) 40px; }
.col-arbre.avec-suivi .suivre-btn { justify-self: end; }
.suivi-entete { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; }
.suivi-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eaf6ee; color: #2e9e4f; font-size: 18px; }
.suivi-texte h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.suivi-texte p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #555; }
/* page d'une collection : curseur au bout de la ligne du nom */
.col-titre-suivi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.col-titre-suivi > span { min-width: 0; }
@media (max-width: 760px) {
    .col-arbre.avec-suivi .col-collection > summary { grid-template-columns: minmax(0, 1fr) auto 40px; }
    .col-arbre.avec-suivi .col-collection progress { grid-column: 1 / -1; grid-row: 2; }
    .col-arbre.avec-suivi .suivre-btn { grid-row: 1; grid-column: 3; }
    .suivi-entete { padding: 12px; gap: 10px; }
    .suivi-ico { width: 32px; height: 32px; font-size: 15px; }
}

/* ============ QUI PEUT M'AIDER ? (Ma communaute) ============ */
.suivi-aide { margin-left: auto; }
.suivi-texte { flex: 1; min-width: 0; }
.suivi-texte h2 { flex-wrap: wrap; }
.comm-suit, .comm-suit-ex { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 99px; background: #eaf6ee; color: #237a3d; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.aide-liste { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.aide-membre { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.aide-membre:nth-child(-n+3) { border-color: #f0c999; }
.aide-rang { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f6f1e8; color: #8a7a62; font-weight: 700; font-size: 13px; }
.aide-membre:nth-child(-n+3) .aide-rang { background: linear-gradient(#f5b25a, #e48b21); color: #fff; }
.aide-qui { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.aide-qui .avatar { width: 40px; height: 40px; border-radius: 0 8px 8px 0; }
.aide-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.aide-nom b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #006699; font-size: 15px; }
.aide-qui:hover b { text-decoration: underline; }
.aide-chiffres { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: #555; }
.aide-n { color: #237a3d; } .aide-n b { font-size: 15px; }
.aide-detail { font-size: 12px; color: #999; }
.aide-lui { color: #c85f05; font-size: 12.5px; } .aide-lui.vide { color: #b5ab9b; }
.aide-boutons { display: flex; align-items: center; gap: 6px; }
.aide-boutons .favori-petit { position: static; }
.aide-maj { margin: 12px 0 0; font-size: 12px; color: #999; }
@media (max-width: 760px) {
    .aide-membre { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 10px; }
    .aide-chiffres, .aide-boutons { grid-column: 2; }
    .suivi-aide { margin-left: 0; }
}
/* Ma communaute : listes deroulantes (tri, filtre "Qui peut m'aider ?") : texte centre verticalement (Firefox compris) */
.comm-tri select { box-sizing: border-box; height: 38px; min-height: 0; max-width: 100%; padding: 0 34px 0 12px; line-height: 36px; vertical-align: middle;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; border: 1px solid #d6cdbd; border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23006699' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: 14px var(--police); color: #444; cursor: pointer; text-overflow: ellipsis; }
.comm-tri select:focus { outline: none; border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.comm-aide .comm-tri { flex: 0 1 420px; } .comm-aide .comm-tri select { width: 100%; }

/* ============ ACCUEIL : module "Rechercher une carte" a droite du bloc Bonjour (largeur du module "DBZCollection en chiffres") ============ */
.acc-haut { margin-bottom: 16px; }
.acc-haut .acc-bienvenue { margin-bottom: 0; }
.acc-recherche h2 { margin-bottom: 12px; }
.acc-recherche-form { display: flex; align-items: center; margin: 0; height: 40px; border: 1px solid #e2d6c3; border-radius: 99px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.acc-recherche-form:focus-within { border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.acc-recherche-form label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 0 4px 0 14px; color: #a8987f; }
.acc-recherche-form input { flex: 1; min-width: 0; height: 38px; padding: 0; border: 0; background: none; font: 14px var(--police); color: #333; outline: none; }
.acc-recherche-form button { flex: none; display: grid; place-items: center; width: 34px; height: 32px; margin-right: 3px; border: 0; border-radius: 99px; background: linear-gradient(#f5a649, #e07f12); color: #fff; font-size: 13px; cursor: pointer; }
.acc-recherche-form button:hover { background: linear-gradient(#f7b05a, #d97409); }
.acc-recherche-avancee { display: inline-block; margin-top: 8px; font-size: 12.5px; color: #006699; font-weight: 600; text-decoration: none; }
.acc-recherche-avancee:hover { text-decoration: underline; }

/* ============ RECHERCHE AVANCEE : options des membres ============ */
.rech-membre { padding: 10px 12px 12px; border: 1px solid #d6e6ef; border-radius: 8px; background: #f4f9fc; }
.rech-membre legend { padding: 0 6px; color: #006699; }
.rech-case { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 600; color: #444; cursor: pointer; }
.rech-case input { width: 16px; height: 16px; margin: 0; accent-color: #2e9e4f; }
.rech-case small { color: #999; font-weight: 400; }
.rech-membre .aide { margin: 4px 0 0; font-size: 12px; }
.rech-alerte { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fff6e8; color: #8a5a12; font-size: 13px; }
.rech-grille .tuile-carte { position: relative; }
.rech-pastilles { position: absolute; top: 28px; right: 6px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; pointer-events: none; }
.rech-pastilles > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; color: #fff; font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.rp-double { background: #2e9e4f; }
.rp-veut { background: #006699; }

/* ============ ADMINISTRATION : mode completiste (liste des cartes) ============ */
.adm-ligne-3 { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); }
.adm-compl-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid #eadfcd; border-radius: 8px; background: #fffaf2; }
.adm-compl-filtre { margin: 0; } .adm-compl-filtre label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #555; }
.adm-compl-filtre select { box-sizing: border-box; height: 36px; min-height: 0; padding: 0 34px 0 12px; line-height: 34px; vertical-align: middle;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; border: 1px solid #d6cdbd; border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23006699' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: 14px var(--police); color: #444; cursor: pointer; }
.adm-compl-filtre select:focus { outline: none; border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.adm-compl-lot { display: flex; align-items: center; gap: 12px; margin: 0; }
.adm-compl-compte { font-size: 13px; color: #777; }
.adm-compl-compte b { color: #2e9e4f; }
.adm-table .adm-compl { margin: 0 auto; }
@media (max-width: 760px) { .adm-ligne-3 { grid-template-columns: minmax(0, 1fr); } }
/* badge "Complétiste" des membres, et rappel du mode dans Ma collection */
.badge-completiste { background: #f3ecff; color: #6a3fb5; }
.badge-completiste i { font-size: 10px; }
.col-etat.col-mode { margin-top: -8px; }
.col-etat.col-mode.completiste { border-color: #dccbf5; background: #f7f2ff; color: #5b3596; }
.col-etat.col-mode.normal { border-color: #e6dfd3; background: #faf8f4; color: #6d6455; }

/* ============ TROPHEES des series : Bronze, Argent, Or, Platine (coupes grisees qui s'allument) ============ */
.trophee { color: #d9d2c5; font-size: 15px; transition: color .25s, transform .25s, filter .25s; }
.trophee.on.t-bronze { color: #c47a3a; }
.trophee.on.t-argent { color: #9aa3ad; }
.trophee.on.t-or { color: #f0b20f; }
.trophee.on.t-platine { color: #5fc4dc; filter: drop-shadow(0 0 3px rgba(95,196,220,.55)); }
.trophee.on { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.trophee.gagne { animation: trophee-gagne .9s ease; }
@keyframes trophee-gagne { 0% { transform: scale(1); } 35% { transform: scale(1.6) rotate(-8deg); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .trophee.gagne { animation: none; } }
.trophees { display: inline-flex; align-items: center; gap: 5px; flex: none; }
/* page d'une serie : au bout de la barre de progression */
.ma-prog-ligne { display: flex; align-items: center; gap: 12px; }
.ma-prog-ligne .ma-prog-barre { flex: 1; min-width: 0; }
.ma-prog-ligne .trophees { gap: 6px; }
.ma-prog-ligne .trophee { font-size: 17px; }
/* Ma collection : series (petites coupes) et collections (une coupe) */
.col-serie-droite { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; }
.trophees-petit { gap: 3px; } .trophees-petit .trophee { font-size: 12px; }
.trophee-seul { margin-left: 4px; font-size: 13px; }
.trophee-seul.t-aucun { color: #e6e0d6; }
/* palmares */
.palmares { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.palmares-titre { margin-right: 4px; color: #006699; font-weight: 700; font-size: 16px; }
.palmares-item { display: inline-flex; align-items: baseline; gap: 5px; }
.palmares-item .trophee { font-size: 18px; align-self: center; }
.palmares-item b { font-size: 17px; color: #333; }
.palmares-item small { color: #888; font-size: 12.5px; }
.palmares-item.vide b { color: #bbb; }
.palmares-bloc { padding: 12px 18px; }
.palmares-bloc .aide { margin: 6px 0 0; font-size: 12px; color: #999; }
.profil .palmares { margin-top: 8px; }
.profil .palmares-item .trophee { font-size: 15px; } .profil .palmares-item b { font-size: 14.5px; }
@media (max-width: 760px) {
    .palmares { gap: 6px 12px; }
    .palmares-titre { flex-basis: 100%; }
}
/* tailles des coupes : Bronze = taille de base, Argent +25 %, Or +50 %, Platine +100 % (alignees par le bas) */
.trophees { align-items: flex-end; --tr: 15px; }
.trophees .trophee { font-size: var(--tr); line-height: 1; }
.trophees .trophee.t-argent { font-size: calc(var(--tr) * 1.25); }
.trophees .trophee.t-or { font-size: calc(var(--tr) * 1.5); }
.trophees .trophee.t-platine { font-size: calc(var(--tr) * 2); }
.ma-prog-ligne .trophees { --tr: 15px; }
.ma-prog-ligne .trophees .trophee { font-size: var(--tr); }
.ma-prog-ligne .trophees .trophee.t-argent { font-size: calc(var(--tr) * 1.25); }
.ma-prog-ligne .trophees .trophee.t-or { font-size: calc(var(--tr) * 1.5); }
.ma-prog-ligne .trophees .trophee.t-platine { font-size: calc(var(--tr) * 2); }
.trophees-petit { --tr: 10px; }
.palmares-item .trophee.t-bronze { font-size: 15px; }
.palmares-item .trophee.t-argent { font-size: 18.75px; }
.palmares-item .trophee.t-or { font-size: 22.5px; }
.palmares-item .trophee.t-platine { font-size: 30px; }
.palmares-item { align-items: center; }
/* coupes : pas de liseré ; legere ombre pour les coupes obtenues, halo bleu clair pour le platine */
.trophees .trophee, .palmares-item .trophee { filter: none; }
.trophees .trophee.on, .palmares-item .trophee.on { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.trophees .trophee.on.t-platine, .palmares-item .trophee.on.t-platine { filter: drop-shadow(0 0 4px rgba(95,196,220,.75)); }
/* page de serie : le pied des coupes pose sur le bas de la barre de progression */
.ma-prog-ligne { align-items: flex-end; margin: 8px 0 10px; }
.ma-prog-ligne .ma-prog-barre { margin: 0; }
/* bloc "Mes trophees" (Ma collection / Sa collection) : 4 coupes reparties sur toute la largeur, le nombre et le nom sous chaque coupe */
.palmares-bloc .palmares { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px 12px; }
.palmares-bloc .palmares-titre { grid-column: 1 / -1; margin: 0 0 4px; }
.palmares-bloc .palmares-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.palmares-bloc .palmares-item .trophee { align-self: center; line-height: 1; }
.palmares-bloc .palmares-item .trophee.t-bronze { font-size: 22px; }
.palmares-bloc .palmares-item .trophee.t-argent { font-size: 27.5px; }
.palmares-bloc .palmares-item .trophee.t-or { font-size: 33px; }
.palmares-bloc .palmares-item .trophee.t-platine { font-size: 44px; }
.palmares-n { white-space: nowrap; }
.palmares-bloc .palmares-n { display: flex; align-items: baseline; gap: 5px; }
.palmares-bloc .palmares-n b { font-size: 18px; }
.palmares-bloc .aide { margin-top: 10px; text-align: center; }
@media (max-width: 560px) {
    .palmares-bloc .palmares-n { flex-direction: column; align-items: center; gap: 0; }
    .palmares-bloc .palmares-item .trophee.t-platine { font-size: 36px; }
}
/* Nouveautes : trophee obtenu par un favori */
.nv-trophee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.nv-trophee .trophee { width: 20px; font-size: 15px; line-height: 1; text-align: center; position: relative; top: -.125em; }
.nv-trophee { gap: 0 4px; }
.nv-trophee .trophee.t-platine { font-size: 17px; }
.nv-t-bronze { color: #b06a2c; } .nv-t-argent { color: #7d8893; } .nv-t-or { color: #c98f00; } .nv-t-platine { color: #2f9fbd; }
/* profil (palmares en ligne) : coupe, nombre et nom poses sur la meme ligne de base */
.palmares { align-items: baseline; }
.palmares-item { align-items: baseline; }
.palmares-item .trophee { align-self: baseline; line-height: 1; position: relative; top: -.125em; }   /* le pied de la coupe (bas du glyphe, .125em sous la ligne de base) remonte sur la ligne */
.palmares-bloc .palmares-item .trophee { top: 0; }

/* =================================================================
   MES DEALS D'ECHANGE (compte/deals.php, deal.php, deal_proposer.php, admin/deals.php)
   ================================================================= */
.compte-btn { position: relative; }
.compte-pastille { position: absolute; top: -3px; left: 30px; box-shadow: 0 0 0 2px #fff; }
.badge-reussis { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #e3f4e8; color: #237a3d; font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.profil-note { color: #999; font-weight: 400; }
.deal-st { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.deal-st-tour { background: #fff0e0; color: #d8650a; }
.deal-st-attente { background: #eef3f7; color: #4d5b6a; }
.deal-st-ok { background: #e3f4e8; color: #237a3d; }
.deal-st-fin { background: #f3eeee; color: #a55; }
.bouton.deal-vert { border-color: #2a9a3c; background: linear-gradient(#5fcf6f, #2fb344); color: #fff; }
.bouton.deal-vert:hover { background: linear-gradient(#55c465, #279a39); }
/* liste */
.deal-liste { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.deal-ligne-lien { display: grid; grid-template-columns: 42px 190px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; color: #444; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.deal-ligne-lien:hover { border-color: #e4b47c; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.deal-ligne.a-faire .deal-ligne-lien { border-left: 4px solid #e48b21; }
.deal-ligne-lien .avatar { width: 38px; height: 38px; border-radius: 0 8px 8px 0; }
.deal-ligne-qui { display: flex; flex-direction: column; min-width: 0; }
.deal-ligne-qui b { overflow: hidden; color: #006699; text-overflow: ellipsis; white-space: nowrap; }
.deal-ligne-qui small, .deal-ligne-det small { color: #999; font-size: 12px; }
.deal-ligne-det { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; }
.deal-ligne-det small { flex-basis: 100%; }
.deal-ligne-st { display: flex; align-items: center; gap: 8px; }
.deal-nouveau { color: #e48b21; font-size: 16px; }
.deal-bilan-r, .deal-bilan-e { white-space: nowrap; }
.deal-bilan-r i { color: #2fb344; } .deal-bilan-e i { color: #e48b21; }
/* entete d'un deal */
.deal-qui { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.deal-qui .nv-qui b { font-size: 17px; }
.deal-etapes { display: flex; margin: 10px 0 14px; padding: 0; list-style: none; }
.deal-etapes li { position: relative; flex: 1; padding-top: 26px; color: #aaa; font-size: 12.5px; text-align: center; }
.deal-etapes li::before { content: ""; position: absolute; z-index: 1; top: 4px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #e5ddd0; }
.deal-etapes li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #e5ddd0; }
.deal-etapes li:first-child::after { display: none; }
.deal-etapes li.ok { color: #237a3d; font-weight: 700; }
.deal-etapes li.ok::before, .deal-etapes li.ok::after { background: #2fb344; }
.deal-etapes li.cours { color: #d8650a; font-weight: 700; }
.deal-etapes li.cours::before { background: #e48b21; box-shadow: 0 0 0 4px #fde7cc; }
.deal-etapes li.cours::after { background: #2fb344; }
/* colonnes et vignettes */
.deal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deal-col { min-width: 0; padding: 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.deal-col > h3 { margin: 0 0 6px; color: #006699; font-size: 15px; }
.deal-col > h3 small { color: #999; font-size: 12px; font-weight: 400; }
.deal-recoit > h3 i { color: #2fb344; } .deal-donne > h3 i { color: #e48b21; }
.deal-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; font-size: 13px; color: #999; }
.deal-compte { margin-left: auto; color: #555; }
.deal-serie { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; color: #555; font-size: 13px; font-weight: 400; }
.deal-serie b { color: #006699; }
.deal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.deal-carte { display: flex; flex-direction: column; min-width: 0; font-size: 12px; text-align: center; }
.deal-vignette { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0d8c9; border-radius: 6px; background: #fff; }
label.deal-vignette { cursor: pointer; }
label.deal-vignette input { position: absolute; opacity: 0; pointer-events: none; }
.deal-vignette .tuile-image { padding: 4px; }
.deal-form .deal-carte:not(.coche) .deal-vignette { opacity: .5; filter: grayscale(.4); }
.deal-form .deal-carte.coche .deal-vignette { border-color: #2fb344; box-shadow: 0 0 0 2px #2fb344; }
.deal-donne .deal-form .deal-carte.coche .deal-vignette, .deal-form .deal-donne .deal-carte.coche .deal-vignette { border-color: #e48b21; box-shadow: 0 0 0 2px #e48b21; }
label.deal-vignette:focus-within { outline: 2px solid #006699; outline-offset: 2px; }
.deal-coche { position: absolute; top: 24px; right: 4px; display: none; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #2fb344; color: #fff; font-size: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.deal-donne .deal-coche { background: #e48b21; }
.deal-carte.coche .deal-coche { display: flex; }
.deal-nom { margin-top: 3px; overflow: hidden; color: #555; text-overflow: ellipsis; white-space: nowrap; }
.deal-etat { width: 100%; margin-top: 3px; padding: 2px 4px; border: 1px solid #dccfb9; border-radius: 6px; background: #fff; font-size: 11.5px; }
.deal-etat-txt { margin-top: 2px; color: #888; }
.deal-carte.reservee .deal-vignette { opacity: .45; }
.deal-reserve { margin-top: 2px; color: #a55; }
.deal-carte.probleme .deal-vignette { border-color: #d9534f; box-shadow: 0 0 0 2px #f4c7c5; }
.deal-pb { margin-top: 2px; color: #c0392b; font-weight: 700; }
.deal-bilan { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 14px 0 8px; font-size: 15px; }
.deal-alerte { margin: 0 0 10px; color: #c0392b; font-weight: 700; text-align: center; }
.deal-message { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; font-size: 14px; }
.deal-message small { color: #999; }
.deal-message textarea, .deal-message-form textarea, .deal-adresse-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #dccfb9; border-radius: 8px; font: inherit; resize: vertical; }
.deal-charte { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff7ec; font-size: 14px; }
.deal-charte input { margin-top: 3px; }
.deal-envoi, .deal-actions { justify-content: center; margin-top: 12px; }
.deal-action-form { display: inline; margin: 0; }
.deal-actions .bouton-clair { margin: 0; }
/* scelle */
.deal-adresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deal-adresse-form { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.deal-adr { margin: 4px 0; padding: 10px 12px; border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.5; }
.deal-adr-info { margin: 0; color: #888; font-size: 12.5px; }
.deal-fait { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: #e3f4e8; color: #237a3d; font-weight: 700; font-size: 14px; }
.deal-suivi { margin: 10px 0 0; color: #777; font-size: 13px; text-align: center; }
.deal-avis h2 { text-align: center; }
.deal-avis .aide { text-align: center; }
/* discussion */
.deal-versions { margin: 0 0 10px; font-size: 13.5px; color: #555; }
.deal-versions summary { cursor: pointer; color: #006699; }
.deal-versions ul { margin: 6px 0 0; padding-left: 20px; }
.deal-fil { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; }
.deal-fil li { padding: 8px 12px; border-radius: 10px; background: #f3f0ea; }
.deal-fil li.moi { margin-left: 60px; background: #e9f3f9; }
.deal-fil li.lui { margin-right: 60px; }
.deal-fil li.systeme { padding: 4px 10px; background: none; color: #888; font-size: 12.5px; text-align: center; }
.deal-fil small { color: #999; }
.deal-texte { margin-top: 3px; overflow-wrap: anywhere; }
.deal-message-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.deal-bas { margin: 0 0 20px; text-align: center; font-size: 13px; }
.deal-bas .lien-bouton { color: #999; }
/* Echanges possibles */
.ech-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #cfe6d4; border-radius: 10px; background: #f3faf4; font-size: 14px; }
.ech-deal p { margin: 0; }
.ech-deal p i { color: #2fb344; }
/* administration */
.adm-cle { margin: 8px 0; padding: 8px 10px; overflow-x: auto; border-radius: 6px; background: #fff; color: #333; font-size: 13px; user-select: all; }
.adm-deals-chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.adm-deals-chiffres li { padding: 6px 12px; border-radius: 8px; background: #f6f1e8; font-size: 13.5px; }
.adm-deals-chiffres li.ok { background: #e3f4e8; } .adm-deals-chiffres li.non { background: #fbeceb; }
.adm-deals-membres { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
@media (max-width: 760px) {
    .deal-cols, .deal-adresses { grid-template-columns: 1fr; }
    .deal-ligne-lien { grid-template-columns: 38px minmax(0, 1fr); }
    .deal-ligne-det, .deal-ligne-st { grid-column: 1 / -1; }
    .deal-etapes li { font-size: 10.5px; }
    .deal-fil li.moi { margin-left: 24px; } .deal-fil li.lui { margin-right: 24px; }
    .deal-grille { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
.deal-actions { align-items: center; }
.deal-action-form { display: flex; }
.deal-actions .bouton, .deal-actions .bouton-clair { margin: 0; }

/* ================================================================= ADMINISTRATION : onglets compacts ; s'ils ne tiennent pas, ils passent a la ligne */
@media (min-width: 701px) {
    .adm-onglets { flex-wrap: wrap; gap: 4px 1px; padding: 0; }
    .adm-onglets a { gap: 3px; padding: 6px 4px; font-size: 11.5px; white-space: nowrap; }
    .adm-onglets a i { font-size: 11px; }
}
.adm-onglets .pastille { margin-left: 2px; }

/* ================================================================= SIGNALER UNE ERREUR (inc/footer.php, js/signaler.js) */
.page-titre-ligne { display: flex; align-items: stretch; gap: 8px; margin: 0 -8px 18px -6px; }
.page-titre-ligne .page-titre { flex: 1; min-width: 0; margin: 0; }
.sig-bouton { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; max-width: 120px; padding: 3px 12px; border: 0; border-bottom: 2px solid #bb540b; border-radius: 9px;
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font: 700 12.5px/1.15 var(--police); text-align: center; text-shadow: 0 1px 1px rgba(110,45,0,.45); cursor: pointer; }
.sig-bouton i { display: none; }
.sig-bouton:hover { background: linear-gradient(#e9ac66 0%, #e59f55 45%, #ea9330 52%, #e98f25 100%); }
.sig-bouton:focus-visible { outline: 2px solid #006699; outline-offset: 2px; }
.sig-fenetre { width: min(480px, calc(100vw - 32px)); padding: 20px 22px 16px; border: none; border-top: 4px solid #e48b21; border-radius: 14px; background: #fff; color: #444; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.sig-fenetre::backdrop { background: rgba(20,20,20,.55); }
.sig-form h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #006699; font-size: 18px; }
.sig-aide { margin: 0 0 10px; color: #777; font-size: 13.5px; }
.sig-form textarea { display: block; width: 100%; padding: 9px 11px; border: 1px solid #dccfb9; border-radius: 8px; font: 14px/1.45 var(--police); resize: vertical; }
.sig-form textarea:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.sig-compte { margin: 3px 0 0; color: #aaa; font-size: 12px; text-align: right; }
.sig-message { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: #fbeceb; color: #a8322d; font-size: 13.5px; }
.sig-message.ok { background: #e3f4e8; color: #237a3d; }
.sig-boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.sig-boutons .bouton, .sig-boutons .bouton-clair { margin: 0; }
@media (max-width: 600px) {
    .sig-bouton { padding: 3px 11px; }
    .sig-bouton i { display: inline; font-size: 15px; }
    .sig-bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* administration : erreurs signalees */
.err-liste { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.err-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.err-case { padding-top: 3px; }
.err-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 4px; font-size: 13.5px; }
.err-tete a i { font-size: 11px; }
.err-section { padding: 1px 9px; border-radius: 99px; background: #eef3f7; color: #4d5b6a; font-size: 11.5px; font-weight: 700; }
.err-cartes { background: #fff0e0; color: #c85f05; } .err-livres { background: #e9f3f9; color: #006699; } .err-goodies { background: #f1ebfa; color: #6b46a8; }
.err-texte { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 14.5px; white-space: normal; }
.err-pied { margin: 0; color: #999; font-size: 12.5px; }
.err-suppr { margin: 0; }
.err-lot-ligne { margin: 12px 0 0; text-align: right; }
@media (max-width: 600px) { .err-item { grid-template-columns: auto minmax(0, 1fr); } .err-suppr { grid-column: 2; } }
.apercu-signaler { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 0; border: 0; background: none; color: #999; font: 12.5px var(--police); cursor: pointer; }
.apercu-signaler:hover { color: #c85f05; text-decoration: underline; }
.err-aide { margin-bottom: 12px; }

/* ================================================================= INSCRIPTION : Mes collections suivies */
.ins-explication { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cfe6d4; border-radius: 10px; background: #f3faf4; }
.ins-explication > i { margin-top: 2px; color: #2fb344; font-size: 22px; }
.ins-explication p { margin: 0; font-size: 14px; line-height: 1.5; }
.ins-titre { display: flex; align-items: center; gap: 7px; margin: 14px 0 8px; color: #006699; font-size: 15px; }
.ins-titre small { color: #999; font-weight: 400; }
.ins-titre i { color: #e48b21; }
.ins-choisies { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 10px; border: 1px dashed #e4b47c; border-radius: 10px; background: #fffaf2; }
.ins-etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: 99px; background: linear-gradient(#e3a259, #e5891c); color: #fff; font: 700 12.5px var(--police); cursor: pointer; }
.ins-etiquette:hover { filter: brightness(1.06); }
.ins-populaires { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-pastille { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #e3d6c1; border-radius: 99px; background: #fffdf9; color: #555; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.ins-pastille:hover { border-color: #e48b21; }
.ins-pastille input, .ins-col input { accent-color: #e48b21; }
.ins-pastille.coche { border-color: #e48b21; background: #fff0e0; color: #b85407; font-weight: 700; }
.ins-pastille .drapeau, .ins-col .drapeau { flex: none; }
.ins-outils { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ins-filtre { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #dccfb9; border-radius: 8px; font: 14px var(--police); }
.ins-filtre:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.ins-pays { display: flex; flex-wrap: wrap; gap: 4px; }
.ins-pays button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #e8dcc8; border-radius: 6px; background: #fffdf9; color: #5c5c5c; font: 700 12.5px var(--police); cursor: pointer; }
.ins-pays button small { color: #999; font-weight: 400; }
.ins-pays button.actif { border-color: #e48b21; background: #fff0e0; color: #c85f05; }
.ins-liste { display: flex; flex-direction: column; gap: 6px; }
.ins-groupe { border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.ins-groupe > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 14px; }
.ins-groupe > summary::-webkit-details-marker { display: none; }
.ins-groupe > summary small { color: #999; }
.ins-groupe > summary .replier { margin-left: auto; color: #bbb; transition: transform .2s; }
.ins-groupe[open] > summary .replier { transform: rotate(180deg); }
.ins-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 12px; padding: 4px 12px 12px; }
.ins-col { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 6px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.ins-col span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-col small { flex: none; color: #aaa; font-size: 11.5px; }
.ins-col:hover { background: #fff3e4; }
.ins-col.coche { background: #fff0e0; color: #b85407; font-weight: 700; }
.ins-col.bloquee, .ins-pastille.bloquee { opacity: .45; cursor: not-allowed; }
.ins-aucune { margin: 6px 0; color: #999; font-size: 13.5px; }
.ins-compte { margin: 10px 0 0; color: #777; font-size: 13px; text-align: right; }
.ins-compte b { color: #e48b21; font-size: 15px; }
.ins-toutes { margin-top: 14px; border: 1px solid #e3d6c1; border-radius: 10px; background: #fff; }
.ins-toutes > summary.ins-titre { margin: 0; padding: 11px 14px; cursor: pointer; list-style: none; }
.ins-toutes > summary::-webkit-details-marker { display: none; }
.ins-toutes > summary .replier { margin-left: auto; color: #bbb; transition: transform .2s; }
.ins-toutes[open] > summary .replier { transform: rotate(180deg); }
.ins-toutes-aide { color: #999; font-size: 12.5px; font-weight: 400; }
.ins-toutes > .ins-outils, .ins-toutes > .ins-liste { margin-left: 12px; margin-right: 12px; }
.ins-toutes > .ins-liste { padding-bottom: 12px; }
.adm-case-peel { width: 18px; height: 18px; accent-color: #e48b21; cursor: pointer; }
/* administration > cartes : changer la rarete de toute la liste filtree */
.adm-rarete-lot { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding-top: 8px; border-top: 1px dashed #ead9bf; }
.adm-rarete-lot label { display: inline-flex; align-items: center; gap: 8px; color: #6d604c; font-size: 13.5px; font-weight: 600; }
.adm-rarete-lot label i { color: #e48b21; }
.adm-rarete-lot select { box-sizing: border-box; height: 36px; min-height: 0; padding: 0 34px 0 12px; line-height: 34px; -webkit-appearance: none; -moz-appearance: none; appearance: none;
    border: 1px solid #d6cdbd; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23006699' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: 14px var(--police); color: #444; cursor: pointer; }
.adm-rarete-lot select:focus { outline: none; border-color: #e48b21; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.adm-rarete-lot .bouton { margin: 0; }

/* ================================================================= ADMINISTRATION : tableaux plus compacts, sous-onglets sur une ligne */
.adm-table { font-size: 13px; }
.adm-table th { padding: 7px 7px; font-size: 11.5px; letter-spacing: .02em; }
.adm-table td { padding: 6px 7px; }
.adm-table .tuile-bandeau, .adm-table .adm-rarete { font-size: 11.5px; }
.adm-tableau-cartes input[type="text"], .adm-tableau-cartes select, .adm-table-listes input[type="text"] { font-size: 13px; }
@media (min-width: 701px) {
    .adm-sous-onglets { flex-wrap: nowrap; gap: 4px; }
    .adm-sous-onglets a { gap: 5px; padding: 5px 8px; font-size: 12px; white-space: nowrap; }
    .adm-sous-onglets a i { font-size: 11px; }
}
.adm-code-pays { margin-left: 4px; color: #999; }
.adm-table-listes input[type="number"] { width: 90px; min-height: 34px; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; font: 13px var(--police); }
/* Ma collection : "Mes chiffres" (deplaces depuis Mes statistiques) */
.col-stats .stats-grille { margin-top: 4px; }
.col-stats .stats-grille .carte-bloc { border: 1px solid #efe6d6; box-shadow: none; }
.col-stats-replie > summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.col-stats-replie > summary::-webkit-details-marker { display: none; }
.col-stats-replie > summary h3 { margin: 0; }
.col-stats-replie > summary h3 small { color: #999; font-size: 12px; font-weight: 400; }
.col-stats-replie > summary .replier { margin-left: auto; color: #bbb; transition: transform .2s; }
.col-stats-replie[open] > summary { margin-bottom: 10px; }
.col-stats-replie[open] > summary .replier { transform: rotate(180deg); }

/* =================================================================
   MES FAVORIS : "Mon top cartes" (coeur des apercus, page Mes favoris, profil)
   ================================================================= */
.ma-toast.top-toast { z-index: 1200; }
.apercu-image { position: relative; }
.apercu-coeur { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
    border: 2px solid #fff; border-radius: 50%; background: rgba(255,255,255,.92); color: #c9c2b6; font-size: 19px; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .15s, color .15s, background .15s; }
.apercu-coeur[hidden] { display: none; }
.apercu-coeur:hover, .apercu-coeur:focus-visible { color: #006699; transform: scale(1.08); }
.apercu-coeur:focus-visible { outline: 3px solid rgba(228,139,33,.55); outline-offset: 2px; }
.apercu-coeur.actif { background: linear-gradient(135deg, #2a9fd6, #006699); color: #fff; animation: top-battement .35s ease; }
.apercu-coeur-rang { position: absolute; right: -6px; bottom: -6px; min-width: 20px; height: 20px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px;
    background: linear-gradient(180deg, #f5a54a, #e07a12); color: #fff; font: 800 11px/16px var(--police); text-align: center; }
.apercu-coeur-rang[hidden] { display: none; }
@keyframes top-battement { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }
.apercu-top-n { margin: 4px 0 8px; color: #006699; font-size: 13px; font-weight: 600; }
.apercu-top-n[hidden] { display: none; }
/* choix de la carte a remplacer (top complet) */
.top-choix { position: absolute; inset: 8px; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px;
    border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.top-choix-titre { margin: 0 0 4px; color: #006699; font-weight: 700; font-size: 14px; text-align: center; }
.top-choix-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.top-choix-liste button { position: relative; display: block; width: 62px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.top-choix-liste button:hover, .top-choix-liste button:focus-visible { border-color: #e48b21; outline: none; }
.top-choix-liste img { display: block; width: 100%; max-height: none !important; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; background: #f3efe8; }
.top-choix-rang { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #006699; color: #fff; font: 800 11px/20px var(--police); text-align: center; }
.top-choix-annuler { margin-top: 2px; }

/* page Mes favoris : onglet "Mon top" */
.top-aide-coeur { color: #006699; }
.top-etat { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #f6f3ee; color: #777; font-size: 13.5px; }
.top-etat.ok { background: #ebf7ef; color: #2b6e40; }
.top-liste { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.top-liste.envoi { opacity: .7; }
.top-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #ece4d6; border-radius: 10px; background: #fff; transition: box-shadow .15s, background .15s; }
.top-ligne[data-carte] { cursor: grab; }
.top-ligne[data-carte]:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.top-ligne.premiere { border-color: #f0c27a; background: linear-gradient(90deg, #fff8ec, #fff); }
.top-ligne.tiree { opacity: .45; background: #fff3e2; }
.top-ligne.libre { border-style: dashed; background: #fbfaf7; color: #bbb; }
.top-poignee { flex: none; width: 14px; color: #c8bba6; }
.top-rang { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eef4f8; color: #006699; font-weight: 800; }
.top-ligne.premiere .top-rang { background: linear-gradient(180deg, #f5a54a, #e07a12); color: #fff; }
.top-ligne.libre .top-rang { background: #f1eee8; color: #bbb; }
.top-image { flex: none; display: flex; align-items: center; justify-content: center; width: 54px; height: 75px; overflow: hidden; border-radius: 5px; background: #f3efe8; }
.top-image img { width: 100%; height: 100%; object-fit: contain; }
.top-image.vide { border: 1px dashed #ddd; color: #ddd; }
.top-texte { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.top-texte b { overflow: hidden; color: #333; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.top-texte small { overflow: hidden; color: #888; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.top-texte .top-rarete { color: #b77b2c; }
.top-actions { display: flex; flex: none; align-items: center; gap: 2px; }
.top-actions form { margin: 0; }
.top-actions .msg-icone:disabled { opacity: .3; cursor: default; background: none; }
.top-statut { min-height: 1.2em; margin: 8px 0 0; color: #2b6e40; font-size: 13px; }
/* page Mes favoris : onglet "Mes membres favoris" (version simple en lignes) */
.fav-lignes { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid #f0e9dd; }
.fav-ligne { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f0e9dd; }
.fav-ligne.prive .fav-qui b { color: #999; }
.fav-qui { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.fav-qui a { color: #006699; text-decoration: none; }
.fav-qui a:hover b { text-decoration: underline; }
.fav-retirer { margin: 0; }
/* profil : "Son top" (comme les actualites de l'accueil : la n° 1 en grand, les suivantes en petit) */
.ptop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; margin-top: 8px; }
.ptop.seule { grid-template-columns: minmax(0, 340px); }
.ptop button { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ptop-une { display: flex; gap: 14px; align-items: flex-start; width: 100%; color: inherit; }
.ptop-une-image { position: relative; flex: none; display: block; width: 46%; max-width: 210px; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 10px; background: #f3efe8; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.ptop-une-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.ptop-une:hover .ptop-une-image img, .ptop-une:focus-visible .ptop-une-image img { transform: scale(1.04); }
.ptop-une-texte { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 4px; }
.ptop-titre { color: #006699; font: 800 18px/1.25 var(--police); }
.ptop-une:hover .ptop-titre { text-decoration: underline; }
.ptop-serie { color: #444; font-size: 14px; font-weight: 600; }
.ptop-une-texte small { color: #999; font-size: 12.5px; }
.ptop-rang { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
    background: #006699; color: #fff; font: 800 12px/1 var(--police); }
.ptop-rang-1 { position: absolute; top: 8px; left: 8px; height: 28px; padding: 0 10px; border: 2px solid #fff; background: linear-gradient(180deg, #f5a54a, #e07a12); font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ptop-suite { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ptop-petite { display: flex; align-items: center; gap: 12px; width: 100%; color: inherit; }
.ptop-petite-image { flex: none; display: block; width: 58px; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 6px; background: #f3efe8; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.ptop-petite-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.ptop-petite:hover .ptop-petite-image img { transform: scale(1.07); }
.ptop-petite .ptop-rang { flex: none; }
.ptop-petite-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptop-petite-texte b { overflow: hidden; color: #333; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ptop-petite:hover .ptop-petite-texte b { color: #006699; }
.ptop-petite-texte small { overflow: hidden; color: #999; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
    .ptop { grid-template-columns: 1fr; }
    .ptop-une-image { width: 42%; }
    .fav-ligne { grid-template-columns: minmax(0, 1fr) auto; }
    .fav-ligne .fav-note { grid-column: 1 / -1; grid-row: 2; }
    .top-ligne { gap: 8px; }
    .top-poignee { display: none; }
}
/* Mon top : familles (Mes favoris), onglets du profil, coeur fixe apres le nom d'une collection */
.top-familles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.top-familles a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #e9dcc6; border-radius: 18px; background: #fff; color: #666; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.top-familles a i { color: #006699; }
.top-familles a:hover { border-color: #e48b21; color: #d8650a; }
.top-familles a.actif { border-color: transparent; background: linear-gradient(180deg, #f5a54a, #e07a12); color: #fff; }
.top-familles a.actif i { color: #fff; }
.top-familles-n { color: inherit; font-size: 11.5px; font-weight: 400; opacity: .8; }
.top-image > i { color: #c9bfae; font-size: 22px; }
.top-collections .top-image { height: 54px; }
.ptop-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ptop-onglets[hidden] { display: none; }
.ptop-onglets button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #e9dcc6; border-radius: 18px; background: #fff; color: #666; font: 600 13.5px var(--police); cursor: pointer; }
.ptop-onglets button i { color: #006699; }
.ptop-onglets button:hover { border-color: #e48b21; color: #d8650a; }
.ptop-onglets button.actif { border-color: transparent; background: linear-gradient(180deg, #f5a54a, #e07a12); color: #fff; }
.ptop-onglets button.actif i { color: #fff; }
.ptop[hidden] { display: none; }
.ptop + .ptop { margin-top: 18px; }
.ptop-famille { grid-column: 1 / -1; margin: 0; color: #006699; font-size: 15px; }
.ptop-bloc.avec-onglets .ptop-famille { display: none; }
.ptop a { text-decoration: none; }
.ptop-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #cfc4b2; font-size: 30px; }
.ptop-collection .ptop-une-image, .ptop-collection .ptop-petite-image { aspect-ratio: 1; background: #faf8f3; }
.ptop-collection .ptop-une-image { max-width: 160px; }
.ptop-collection img { object-fit: contain; padding: 8%; }
.top-coeur-cadre { position: relative; display: inline-flex; vertical-align: middle; margin-left: 8px; }
.top-coeur-fixe { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid #eadfcd;
    border-radius: 50%; background: #fff; color: #c9c2b6; font-size: 14px; cursor: pointer; transition: transform .15s, color .15s; }
.top-coeur-fixe:hover, .top-coeur-fixe:focus-visible { color: #006699; transform: scale(1.08); }
.top-coeur-fixe.actif { border-color: transparent; background: linear-gradient(135deg, #2a9fd6, #006699); color: #fff; animation: top-battement .35s ease; }
.top-coeur-fixe .apercu-coeur-rang { right: -8px; bottom: -6px; min-width: 17px; height: 17px; font-size: 10px; line-height: 13px; }
.top-choix.flottant { position: absolute; inset: auto; top: calc(100% + 8px); left: 0; z-index: 50; width: min(340px, calc(100vw - 32px)); font-size: 14px; font-weight: 400; }
.top-choix-liste.capsules button { width: 56px; height: 56px; background: #faf8f3; }
.top-choix-liste.capsules img { aspect-ratio: 1; object-fit: contain; }
.top-choix-vide { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 5 / 7; overflow: hidden; padding: 2px; border-radius: 4px; background: #f3efe8; color: #777; font-size: 9px; line-height: 1.1; }
.top-coeur-fixe i, .apercu-coeur i { color: inherit !important; margin: 0; }

/* =================================================================
   GUIDE DU COLLECTIONNEUR (infos/guide.php) : page d'information
   ================================================================= */
.guide-intro p { margin: 0 0 12px; line-height: 1.6; }
.guide-sommaire { margin: 0; }
.guide-bloc { line-height: 1.6; }
.guide-bloc [id] { scroll-margin-top: 130px; }
.guide-bloc h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guide-bloc h2 > i { color: #006699; }
.guide-num { color: #e48b21; }
.guide-bloc h3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: #006699; font-size: 15.5px; }
.guide-bloc p { margin: 0 0 10px; }
.guide-membres { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #eef4f8; color: #006699; font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.guide-bloc h2 + .guide-membres { margin: -6px 0 10px; }
.guide-liste { margin: 0 0 6px; padding-left: 20px; }
.guide-liste li { margin-bottom: 6px; }
.guide-liste li::marker { color: #e48b21; }
.guide-note { padding: 8px 12px; border-left: 3px solid #e48b21; border-radius: 0 8px 8px 0; background: #fff8ef; font-size: 14px; }
.guide-note i { color: #e48b21; }
/* raretes */
.guide-raretes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }
.guide-raretes .tuile-bandeau { display: block; padding: 7px 8px; border-radius: 7px; font-size: 13px; white-space: normal; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
/* etats */
.guide-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-etats { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide-etats li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border: 1px solid #f0e8da; border-radius: 9px; background: #fffdf9; }
.guide-sigle { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 7px;
    background: var(--c, #888); color: var(--t, #fff); font-size: 13px; font-weight: 800; box-shadow: 0 2px 5px rgba(0,0,0,.12); }
.guide-etat-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-etat-texte b { color: #333; font-size: 14.5px; }
.guide-etat-texte span { color: #555; font-size: 13.5px; }
.guide-etat-texte small { color: #888; font-size: 12.5px; line-height: 1.5; }
/* grades */
.guide-organismes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.guide-organismes li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #e9dcc6; border-radius: 99px; background: #fff; font-weight: 600; font-size: 14px; }
.guide-organismes i { color: #006699; }
/* boutons de collection (images, sans action) */
.guide-boutons { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }
.guide-boutons li { display: flex; align-items: center; gap: 12px; }
.guide-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid; border-radius: 7px; font-size: 14px; font-weight: 800; }
.guide-btn.possede { border-color: #26a03a; background: #2fb344; color: #fff; }
.guide-btn.veut { border-color: #e0a300; background: #fff6d6; color: #f5b301; }
.guide-btn.double { border-color: #e48b21; background: #fff3e3; color: #e48b21; font-size: 13px; }
.guide-curseur { position: relative; display: inline-block; width: 34px; height: 18px; border-radius: 9px; background: #2e9d4f; vertical-align: middle; }
.guide-curseur::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.guide-ico { color: #006699; }
.guide-ico-or { color: #f5b301; }
.guide-coeur { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #2a9fd6, #006699); color: #fff; font-size: 11px; vertical-align: middle; }
.guide-etapes { max-width: 640px; margin: 6px 0 14px; }
/* trophees */
.guide-trophees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; padding: 0; list-style: none; }
.guide-trophees li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border: 1px solid #f0e8da; border-radius: 10px; background: #fffdf9; text-align: center; }
.guide-trophees .trophee { font-size: 30px; }
.guide-trophees span { color: #888; font-size: 12.5px; }
.guide-inscription { margin: 14px 0 0; text-align: center; }
@media (max-width: 700px) {
    .guide-deux { grid-template-columns: 1fr; gap: 14px; }
    .guide-trophees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-raretes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-bloc h2 { font-size: 17px; }
}

/* ONGLETS DE PAGE (charte d'utilisation) : js/onglets_page.js */
.onglets-page.onglets-actifs { position: relative; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 2px solid #f0e3cf; }
.onglets-page.onglets-actifs a { border: 1.5px solid transparent; transition: background .15s, color .15s; }
.onglets-page.onglets-actifs a.actif { background: linear-gradient(180deg, #f5a54a, #e07a12); color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(224,122,18,.3); }
.onglets-page.onglets-actifs a:focus-visible { outline: none; border-color: #006699; }
.onglet-panneau[hidden] { display: none; }
.onglet-panneau:focus { outline: none; }
.onglet-panneau > h2:first-child { margin-top: 4px; }
.onglets-bas { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #f0e3cf; }
.onglets-nav { display: inline-flex; align-items: center; gap: 8px; max-width: 48%; padding: 7px 14px; border: 1.5px solid #e9dcc6; border-radius: 99px; color: #006699; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.onglets-nav:hover { border-color: #e48b21; color: #d8650a; }
.onglets-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
    .onglets-page.onglets-actifs { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; margin-right: -4px; padding: 0 4px 12px; scrollbar-width: thin; }
    .onglets-page.onglets-actifs a { flex: none; white-space: nowrap; }
}
/* actualite : boutons "Voir les cartes", "Lien site officiel", "Lien site amateur" */
.news-pied-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-pied-boutons:empty { display: none; }
.news-lien-ext-ico { margin-left: 2px; font-size: .75em; opacity: .7; }
@media (max-width: 700px) { .news-pied-boutons { width: 100%; } .news-pied-boutons .bouton { flex: 1 1 auto; justify-content: center; } }
/* actualite : boutons du pied d'article et "Poser un commentaire" un peu plus petits */
.news-pied .bouton, .news-comms-tete .bouton { min-height: 36px; padding: 0 14px; gap: 7px; font-size: 14px; }


/* ADMINISTRATION > SYNONYMES */
.syn-etat { border-left: 4px solid #c9bfae; }
.syn-etat.actif { border-left-color: #2e9d4f; }
.syn-curseur-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.syn-curseur-ligne > div { flex: 1 1 380px; }
.syn-curseur-ligne .aide { margin: 4px 0 0; }
.syn-curseur-form { margin: 0; }
.syn-curseur, .syn-curseur-lecture { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1.5px solid #e9dcc6; border-radius: 99px; background: #fff; color: #555; font: 700 14px var(--police); cursor: pointer; }
.syn-curseur-lecture { cursor: default; }
.syn-curseur:hover { border-color: #e48b21; }
.syn-curseur:focus-visible { outline: 3px solid rgba(0,102,153,.35); outline-offset: 2px; }
.syn-curseur-piste { position: relative; display: inline-block; width: 44px; height: 24px; border-radius: 12px; background: #c9c2b6; transition: background .2s; }
.syn-curseur-piste span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.syn-etat.actif .syn-curseur-piste { background: #2e9d4f; }
.syn-etat.actif .syn-curseur-piste span { left: 23px; }
.syn-etat.actif .syn-curseur, .syn-etat.actif .syn-curseur-lecture { color: #2b6e40; }
.syn-test, .syn-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.syn-test input, .syn-filtre input { flex: 1 1 240px; min-height: 36px; padding: 6px 12px; border: 1px solid #d8cdb9; border-radius: 8px; font: 15px var(--police); }
.syn-test .bouton, .syn-filtre .bouton { margin: 0; }
.syn-test-res { padding: 10px 14px; border-radius: 9px; background: #f4f9fc; font-size: 14px; }
.syn-test-res p { margin: 0 0 6px; }
.syn-test-res ul { margin: 0 0 8px; padding-left: 20px; }
.syn-test-res a { color: #006699; font-weight: 600; }
.syn-ajout > summary, .syn-import > summary { list-style: none; cursor: pointer; }
.syn-ajout > summary::-webkit-details-marker, .syn-import > summary::-webkit-details-marker { display: none; }
.syn-ajout > summary h2, .syn-import > summary h2 { display: flex; align-items: center; gap: 8px; }
.syn-ajout > summary .replier, .syn-import > summary .replier { margin-left: auto; color: #999; font-size: 14px; transition: transform .2s; }
.syn-ajout[open] > summary .replier, .syn-import[open] > summary .replier { transform: rotate(180deg); }
.syn-form textarea, .syn-import textarea { width: 100%; padding: 8px 12px; border: 1px solid #d8cdb9; border-radius: 8px; font: 15px/1.5 var(--police); resize: vertical; }
.syn-champ[hidden] { display: none; }
.syn-table td { vertical-align: middle; }
.syn-termes { line-height: 1.9; }
.syn-terme { display: inline-block; padding: 1px 8px; border: 1px solid #e3d6c0; border-radius: 6px; background: #fffaf2; font-weight: 600; }
.syn-egal { margin: 0 5px; color: #e48b21; font-weight: 800; }
.syn-introuvable td { background: #fff4f4; }
.syn-rouge { color: #c62828; }
.syn-ok td:last-child { color: #2b6e40; }
.syn-table .adm-col-actions { white-space: nowrap; }
.syn-table .adm-col-actions form { display: inline-block; margin: 0; }
.syn-table .adm-col-actions .bouton { margin: 0 4px 0 0; }
/* recherche : ligne de l'equipe et lien "chercher exactement" */
.rech-syn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; }
.rech-syn-equipe { padding: 4px 10px; border-radius: 8px; background: #eef4f8; color: #006699; }
.rech-syn-exact { margin-left: auto; color: #888; text-decoration: none; }
.rech-syn-exact:hover { color: #006699; text-decoration: underline; }
.syn-table td:nth-child(2) { white-space: nowrap; }
.adm-sous-onglets.syn-types { margin: 12px 0 14px; }

/* ACCUEIL : message du jour (bloc "Bonjour ...") */
.acc-msg { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 2px 0 0; padding: 12px 40px 12px 14px; border-left: 4px solid #e48b21; border-radius: 10px; background: #fff8ef; }
.acc-msg-u { border-left-color: #006699; background: #eef6fb; }
.acc-msg-f { border-left-color: #d9a400; background: #fffbea; }
.acc-msg-a { border-left-color: #2e9d4f; background: #f0f9f3; }
.acc-msg-texte { flex: 1 1 260px; margin: 0; line-height: 1.55; }
.acc-msg-icone { margin-right: 4px; color: #006699; font-size: 1.1em; }
.acc-msg-f .acc-msg-icone { color: #c08a00; }
.acc-msg-a .acc-msg-icone { color: #2e9d4f; }
.acc-msg-texte b { color: #006699; }
.acc-msg-bouton { margin: 0 !important; }
.acc-msg-fermer { position: absolute; top: 6px; right: 6px; margin: 0; }
.acc-msg-fermer button { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #b5a993; cursor: pointer; }
.acc-msg-fermer button:hover, .acc-msg-fermer button:focus-visible { background: rgba(0,0,0,.06); color: #c62828; }
.acc-astuce { margin: 10px 0 0; color: #666; font-size: 13.5px; line-height: 1.5; }
.acc-astuce i { color: #e0a300; }
.acc-astuce b { color: #555; }
/* ADMINISTRATION > MESSAGES (accueil) */
.syn-curseur.on .syn-curseur-piste { background: #2e9d4f; }
.syn-curseur.on .syn-curseur-piste span { left: 23px; }
.syn-curseur.on { color: #2b6e40; }
.acc-adm-curseurs { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.acc-adm-vues { margin: 0 0 14px; }
.acc-adm-famille { margin: 18px 0 8px; color: #e48b21; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.acc-adm-auto { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #efe5d4; border-radius: 10px; background: #fffdf9; }
.acc-adm-auto.eteint { opacity: .6; }
.acc-adm-auto-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.acc-adm-case { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.acc-adm-case i { color: #006699; }
.acc-adm-code { padding: 1px 7px; border-radius: 6px; background: #006699; color: #fff; font-size: 12px; font-weight: 700; }
.acc-adm-bouton { color: #888; }
.acc-adm-perso { padding: 1px 7px; border-radius: 99px; background: #fff3e2; color: #c8650a; }
.acc-adm-auto textarea, .acc-adm-form textarea { width: 100%; padding: 7px 10px; border: 1px solid #d8cdb9; border-radius: 8px; font: 14.5px/1.5 var(--police); resize: vertical; }
.acc-adm-auto-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.acc-adm-auto-pied .bouton { margin: 0 0 0 6px; }
.acc-adm-auto-pied code, .acc-adm-form code { font-size: 12px; }
.acc-adm-apercu { max-width: 640px; padding: 12px; border: 1px dashed #e0d3bd; border-radius: 10px; }
.acc-adm-inactif td { opacity: .55; }
@media (max-width: 700px) { .acc-adm-curseurs { align-items: flex-start; } }
/* message du jour : texte a la taille de "Le savais-tu ?", bouton plus petit */
.acc-msg { padding: 10px 36px 10px 12px; }
.acc-msg-texte { font-size: 13.5px; line-height: 1.5; }
.acc-msg-icone { font-size: 1em; }
.acc-msg .acc-msg-bouton { min-height: 28px !important; padding: 0 10px; gap: 5px; border-bottom-width: 1px; font-size: 12.5px; }
.acc-msg .acc-msg-bouton i { font-size: 11px; }

/* ===== ARCHIVES DES NEWS (infos/archives.php) - ancien site, lecture seule ===== */
.archives-tete p { margin: 0 0 10px; color: var(--texte-doux); font-size: 13.5px; }
.archives-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.archives-choix label { color: #006699; font-weight: 700; }
.archives-choix select { min-width: 200px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; font: inherit; }
.archives-fleche { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1.5px solid #e48b21; border-radius: 8px; color: #e48b21; text-decoration: none; }
.archives-fleche:hover { background: #e48b21; color: #fff; }
.archives-fleche.inactif { border-color: #ddd; color: #ccc; pointer-events: none; }
.archive-news h2 { color: #006699; }
.archive-date { margin: -4px 0 8px; color: #999; font-size: 12px; }
.archive-extrait { margin: 0 0 10px; color: var(--texte-doux); font-size: 13.5px; line-height: 1.55; }
.archive-news.ouverte .archive-extrait { display: none; }
.archive-suite > summary { display: inline-block; list-style: none; cursor: pointer; }
.archive-suite > summary::-webkit-details-marker { display: none; }
.archive-suite > summary .bouton { margin: 0; pointer-events: none; }
.archive-masquer, .archive-suite[open] .archive-lire { display: none; }
.archive-suite[open] .archive-masquer { display: inline; }
.archive-suite[open] > .archive-texte { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e8c79d; }
.archive-texte { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.archive-accroche { margin-bottom: 10px; }
.archive-texte p { margin: 0 0 10px; }
.archive-texte a { color: #006699; }
.archive-texte img { max-width: 100%; max-height: 480px; width: auto; height: auto; vertical-align: middle; border-radius: 6px; }
.archive-texte a img { transition: transform .2s, box-shadow .2s; }
.archive-texte a:hover img { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.archive-cellules { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; margin: 10px 0; }
.archive-cellule { flex: 1 1 220px; min-width: 0; }
.archive-cellule.img { flex: 0 0 auto; text-align: center; }
.archive-cellule.img img { max-height: 160px; width: auto; }
.archives-bas { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 640px) {
    .archives-choix select { flex: 1 1 160px; min-width: 0; }
    .archive-cellule.img img { max-height: 120px; }
}
.archive-cellules + br { display: none; }

/* ===== TRAITS ORANGE NEON : meme effet que la ligne du pied de page (.neon-line-orange-light) =====
   Le trait d'origine (bordure 2 px) devient transparent : la place est gardee, la ligne neon est dessinee par-dessus. */
.carte-bloc h2:not(.sans-trait), .carte-bloc > h2.sans-trait, .carte-bloc > .stats-entete, .carte-bloc .comm-entete,
.compte-tete, .modal-header, .footer-col h3, .msg-tete, .pp-contenu .pp-titre1, .outils-tete, .video-infos .video-titre, .news-meta, .adm-onglets {
    position: relative; border-bottom-color: transparent !important; box-shadow: none;
}
.carte-bloc h2:not(.sans-trait)::after, .carte-bloc > h2.sans-trait::after, .carte-bloc > .stats-entete::after, .carte-bloc .comm-entete::after,
.compte-tete::after, .modal-header::after, .footer-col h3::after, .msg-tete::after, .pp-contenu .pp-titre1::after, .outils-tete::after,
.video-infos .video-titre::after, .news-meta::after, .adm-onglets::after, .news-comms::before {
    content: ""; position: absolute; right: 0; bottom: -2px; left: 0; height: 2px; border-radius: 2px; background-color: var(--orange); pointer-events: none;
    box-shadow: 0 0 4px rgba(255,102,0,.8), 0 0 10px rgba(255,102,0,.5), 0 0 20px rgba(255,80,0,.3);
}
.news-comms { position: relative; border-top-color: transparent; box-shadow: none; }
.news-comms::before { top: -2px; bottom: auto; }
.msg-tete h2::after, .news-comms-tete h2::after, .carte-bloc .stats-entete h2::after, .carte-bloc .comm-entete h2::after { content: none; }

/* ===== MA COLLECTION : fenetre orange "Liste PDF" (inc/export_recherche_fn.php) ===== */
.modal-box.modal-pdf { max-width: 560px; padding: 0 0 16px; overflow: hidden; border: 2px solid #e48b21; }
.modal-pdf .modal-header { margin: 0; padding: 12px 16px; border: 0 !important; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; text-shadow: 0 1px 1px rgba(110,45,0,.45); }
.modal-pdf .modal-header::after { content: none; }
.modal-pdf .modal-header i { margin-right: 6px; }
.modal-pdf .modal-close { color: #fff; }
.modal-pdf .modal-close:hover { color: #fff4e8; }
.pdf-form { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 0 18px; }
.pdf-aide { margin: 0; font-size: 13px; color: var(--texte-doux); }
.pdf-tout { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pdf-lien { padding: 0; border: 0; background: none; color: #006699; font: inherit; font-size: 13px; cursor: pointer; }
.pdf-lien:hover { color: var(--orange); text-decoration: underline; }
.pdf-liste { max-height: min(50vh, 420px); overflow-y: auto; padding: 8px 10px; border: 1px solid #f0d8b8; border-radius: 10px; background: #fffaf3; }
.pdf-pays { margin: 0 0 8px; padding: 0 0 6px 4px; border: 0; border-bottom: 1px dashed #f0d8b8; }
.pdf-pays:last-child { margin-bottom: 0; border-bottom: 0; }
.pdf-pays legend { padding: 0; }
.pdf-case { display: flex; align-items: center; gap: 8px; padding: 4px 2px 4px 24px; font-size: 13.5px; cursor: pointer; }
.pdf-case:hover { color: #c85f05; }
.pdf-case-pays { padding-left: 0; font-size: 14px; }
.pdf-case small { margin-left: auto; color: #999; font-size: 12px; }
.pdf-case input { width: 17px; height: 17px; flex: none; accent-color: #e48b21; }
.pdf-erreur { margin: 0; color: var(--rouge); font-size: 13px; }
.pdf-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pdf-actions .bouton { margin: 0; }
.col-objets .col-pdf { display: none; }
.col-objets[data-objmode="recherche"] .col-pdf { display: inline-flex; }

/* ===== PAGE SERIE : bouton orange "pages de classeur" + fenetre (inc/classeur_fenetre.php) ===== */
.taille-btn.classeur-btn, .taille-btn.classeur-btn:hover { border-color: #bb540b; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; }
.taille-btn.classeur-btn:hover { filter: brightness(1.06); }
.taille-btn.classeur-btn i { color: #fff; }
.classeur-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.classeur-choix legend { margin-bottom: 6px; padding: 0; color: #006699; font-weight: 700; font-size: 13.5px; }
.classeur-choix label { cursor: pointer; }
.classeur-choix input { position: absolute; opacity: 0; pointer-events: none; }
.classeur-choix label > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border: 1.5px solid #f0d8b8; border-radius: 10px; background: #fffaf3; color: #5c5c5c; font-size: 13px; text-align: center; transition: border-color .15s, background .15s; }
.classeur-choix label > span b { color: #c85f05; font-size: 22px; line-height: 1.1; }
.classeur-choix small { color: #999; font-size: 11.5px; }
.classeur-choix input:checked + span { border-color: #e48b21; background: #fff1de; box-shadow: 0 2px 6px rgba(224,122,18,.25); }
.classeur-choix input:focus-visible + span { outline: 2px solid #006699; outline-offset: 1px; }

/* ===== RECONNAITRE UNE CARTE (compte/reconnaitre.php, js/reconnaitre.js) ===== */
.reco-aide, .reco-consigne { margin: 0 0 12px; color: var(--texte-doux); font-size: 13.5px; }
.reco-auto { margin: -4px 0 12px; padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.reco-auto.trouve { background: #eef7ee; color: #2e6b2e; }
.reco-proches { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fff4e5; color: #9a5a00; font-size: 13.5px; }
.reco-auto.manque { background: #fff4e5; color: #9a5a00; }
.reco-test-info { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #eef6fb; color: #006699; font-size: 13px; }
.reco-filtre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: #006699; font-weight: 700; font-size: 13.5px; }
.reco-filtre select { flex: 1 1 220px; max-width: 420px; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; font: inherit; font-weight: 400; }
.reco-etape { display: flex; flex-wrap: wrap; gap: 10px; }
.reco-etape[hidden] { display: none; }
#recoCadrage { flex-direction: column; }
.reco-photo, .reco-etape label.bouton { margin: 0; cursor: pointer; }
.reco-zone { position: relative; max-width: 100%; margin: 0 auto; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.reco-glisse { -webkit-user-select: none; user-select: none; }
.reco-zone canvas { display: block; max-width: 100%; border-radius: 8px; }
.reco-quad { position: absolute; top: 0; left: 0; overflow: visible; touch-action: none; }
.reco-voile { fill: rgba(0,0,0,.45); pointer-events: none; }
.reco-bord { fill: rgba(255,255,255,0); stroke: #e48b21; stroke-width: 2.5; stroke-linejoin: round; cursor: move; pointer-events: all; filter: drop-shadow(0 0 4px rgba(255,102,0,.7)); }
.reco-poignee { position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid #fff; border-radius: 50%; background: #e48b21; box-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: crosshair; touch-action: none; }
.reco-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.reco-actions .bouton { margin: 0; }
.reco-mode-test { display: flex; align-items: center; justify-content: center; gap: 6px; color: #006699; font-size: 12.5px; }
.reco-patience { margin: 10px 0; color: #006699; font-weight: 600; }
.reco-liste .reco-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.reco-carte { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border: 1px solid var(--bordure); border-radius: 12px; background: #fff; text-align: center; }
.reco-carte.conf-tres { border: 2px solid #2e9d4f; box-shadow: 0 2px 10px rgba(46,157,79,.18); }
.reco-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 170px; }
.reco-img img { max-width: 100%; max-height: 170px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.reco-sans { color: #999; font-size: 12px; }
.reco-conf { margin-top: 4px; padding: 2px 9px; border-radius: 10px; background: #eee; color: #777; font-size: 11.5px; font-weight: 700; }
.conf-tres .reco-conf { background: #e3f4e8; color: #2e7d45; } .conf-possible .reco-conf { background: #fff1de; color: #c25f05; }
.reco-num { color: #222; font-size: 15px; } .reco-col { color: #006699; font-size: 12.5px; font-weight: 600; } .reco-serie { color: #777; font-size: 12px; }
.reco-detail { color: #999; font-size: 10.5px; }
.reco-carte .bouton { margin: 6px 0 0; }
.reco-vide { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fffaf3; color: #5c5c5c; font-size: 13.5px; }
.reco-vide p { margin: 0 0 6px; font-weight: 600; } .reco-vide ul { margin: 0 0 6px; padding-left: 20px; } .reco-vide a { color: #006699; }
.reco-test-ligne { margin: 0 0 10px; color: #888; font-size: 12px; overflow-wrap: anywhere; }
.reco-restantes { margin: 10px 0 0; color: #999; font-size: 12px; text-align: center; }
@media (max-width: 520px) { .reco-liste .reco-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reco-img { height: 140px; } .reco-img img { max-height: 140px; } }
/* Administration > Empreintes */
.emp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 10px; }
.emp-stats div { display: flex; flex-direction: column; padding: 10px 12px; border-left: 3px solid #e48b21; border-radius: 8px; background: #fffaf3; }
.emp-stats b { color: #c85f05; font-size: 19px; } .emp-stats span { color: #777; font-size: 12px; }
.emp-boutons, .emp-cible { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.emp-boutons .bouton, .emp-cible .bouton { margin: 0; }
.emp-cible select { flex: 1 1 200px; max-width: 320px; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; font: inherit; }
.emp-progression { margin-top: 14px; }
.emp-barre { height: 12px; overflow: hidden; border-radius: 6px; background: #f1e6d6; }
.emp-barre span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #e3a259, #e5891c); transition: width .3s; }
.emp-prov { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.emp-prov li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--bordure); border-radius: 10px; font-size: 13px; }
.emp-prov img { height: 70px; border-radius: 4px; } .emp-prov small { color: #888; }
.emp-reglages { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.emp-reglages label { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px; align-items: center; gap: 8px; font-size: 13.5px; }
.emp-reglages input { width: 90px; padding: 5px 8px; border: 1px solid var(--bordure); border-radius: 8px; font: inherit; }
@media (max-width: 520px) { .emp-reglages label { grid-template-columns: minmax(0, 1fr) 80px; } .emp-reglages label small { display: none; } }
.emp-reglages .bouton { align-self: flex-start; margin: 4px 0 0; }
/* liens "Reconnaitre une carte" (accueil : bouton "Scanner" comme Facebook / X ; recherche avancee) */
.acc-reseau.scan { margin-top: 10px; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); text-shadow: 0 1px 1px rgba(110,45,0,.35); }
.rech-reco { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 12px; padding: 10px; border-radius: 12px; background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 2px 6px rgba(224,122,18,.3); }
.rech-reco small { font-weight: 400; opacity: .9; }
.rech-reco:hover { filter: brightness(1.07); }
/* Administration : 2e ligne d'onglets = outils du Webmaster (Messages, Parametres, Empreintes) */
.adm-onglets.adm-onglets-suivi { margin-bottom: 6px; }
.adm-onglets-webmaster { justify-content: flex-start; }
/* Empreintes : tableau "Series sans image" */
.emp-sans-table { max-height: 480px; overflow: auto; border: 1px solid var(--bordure); border-radius: 10px; }
.emp-sans-table table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.emp-sans-table th { position: sticky; top: 0; z-index: 1; padding: 7px 10px; background: #fff4e6; color: #006699; text-align: left; }
.emp-sans-table td { padding: 6px 10px; border-top: 1px solid #f1e6d6; }
.emp-sans-table .nb { text-align: right; white-space: nowrap; }
.emp-sans-table a { color: #006699; }
.emp-sans-tout td { background: #fff8f0; }
.emp-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: #e48b21; color: #fff; font-size: 11px; font-weight: 700; }

/* ===== BANNIERES DECORATIVES DES SECTIONS (inc/bannieres_fn.php) : bords fondus, sans cadre ===== */
.banniere { margin: 0 0 14px; line-height: 0; }
.banniere picture { display: block; }
.banniere img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; object-position: center; }
/* bords fondus : seulement sur les navigateurs recents (Chrome, Edge, Firefox, Safari 16+). Les anciens Safari (iPad iOS 15)
   masquaient toute l'image avec ce double masque : ils l'affichent maintenant sans fondu. */
@supports (container-type: inline-size) {
    .banniere img {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
        mask-composite: intersect;
    }
}
@media (min-width: 768px) { .banniere.sans-ordi { display: none; } }
@media (max-width: 767px) {
    .banniere.sans-mobile { display: none; }
    .banniere img { height: 110px; max-height: none; }   /* smartphone : hauteur fixe, centre de l'image garde */
}
/* Administration > Bannieres */
.ban-apercus { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; margin: 0 0 14px; }
.ban-apercus small { display: block; margin-bottom: 4px; color: #888; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; }
.ban-telephone { width: 240px; padding: 14px 8px; border: 2px solid #ddd; border-radius: 22px; background: var(--fond, #f6f3ee); }
.banniere.ban-apercu-ordi, .banniere.ban-apercu-mobile { margin: 0; }
.ban-apercu-mobile img { height: 70px; max-height: none; }
.ban-form { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.ban-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.ban-form label > span { color: #006699; font-weight: 700; }
.ban-form label small { color: #888; font-weight: 400; }
.ban-form select, .ban-form input[type="text"], .ban-form input[type="date"] { padding: 7px 10px; border: 1px solid var(--bordure); border-radius: 8px; font: inherit; }
.ban-dates { display: flex; flex-wrap: wrap; gap: 12px; } .ban-dates label { flex: 1 1 180px; }
.ban-form .ban-actif { flex-direction: row; align-items: center; gap: 6px; }
.ban-actions { display: flex; gap: 8px; } .ban-actions .bouton { margin: 0; }
.ban-section { padding: 10px 0; border-bottom: 1px dashed #ecdcc6; } .ban-section:last-child { border-bottom: 0; }
.ban-section h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; color: #006699; font-size: 15px; }
.ban-section h3 small { color: #999; font-weight: 400; font-size: 12px; }
.ban-ajout { margin-left: auto; color: #c85f05; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.ban-section .msg-vide { margin: 0; font-size: 12.5px; }
.ban-ligne { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 0; }
.ban-mini .banniere img { max-height: 60px; }
.ban-infos { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; } .ban-infos small { color: #888; }
.ban-etat { align-self: flex-start; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: #eee; color: #777; }
.ban-etat.en-ligne { background: #e3f4e8; color: #2e7d45; } .ban-etat.programmee { background: #eef6fb; color: #006699; } .ban-etat.attente { background: #fff1de; color: #c25f05; }
.ban-boutons { display: flex; gap: 6px; } .ban-boutons form { margin: 0; } .ban-boutons .bouton { margin: 0; }
@media (max-width: 760px) {
    .ban-apercus { grid-template-columns: 1fr; }
    .ban-ligne { grid-template-columns: 1fr; }
    .ban-mini .banniere img { max-height: 80px; }
}

/* smartphone : apercu (cartes, livres, goodies, collections) en plein ecran, hauteur de l'ecran VISIBLE (100dvh : sans la barre
   d'adresse, sinon le haut de la fenetre passait dessous) ; la croix et les fleches restent fixes en haut meme quand on fait defiler */
@media (max-width: 760px) {
    .apercu-modal { align-items: stretch; padding: 0; }
    .apercu-boite { height: 100vh; height: 100dvh; max-height: none; padding-top: 58px; border-radius: 0; }
    .apercu-fermer, .apercu-nav { position: fixed; top: 10px; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .apercu-fermer { right: 10px; }
    .apercu-nav.prec { left: 10px; } .apercu-nav.suiv { right: 58px; left: auto; }
}

/* actualites : recherche (colonne de droite sur ordinateur ; en haut et repliee sur smartphone) */
.news-page { grid-template-areas: "art cherche" "art cote"; grid-template-rows: auto 1fr; }
.news-page > .news-article { grid-area: art; }
.news-page > .news-chercher { grid-area: cherche; }
.news-page > .news-cote { grid-area: cote; }
.news-chercher { padding: 14px 16px; }
.news-chercher summary { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid #e48b21; box-shadow: 0 6px 8px -6px rgba(255,140,0,.75);
    color: #333; font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.news-chercher summary::-webkit-details-marker { display: none; }
.news-chercher summary i, .news-barre-titre i { color: #006699; }
.news-chercher-form { display: flex; flex-direction: column; gap: 9px; }
.news-chercher .news-chercher-form, .news-panneau .news-chercher-form { margin-top: 12px; }
.news-panneau .news-chercher-form { margin-top: 0; }
.news-chercher-form label { display: flex; flex-direction: column; gap: 3px; color: #006699; font-size: 13px; font-weight: 700; }
.news-chercher-form input, .news-chercher-form select { width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font: 400 14px var(--police); color: #333; }
.news-chercher-form input:focus, .news-chercher-form select:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.news-chercher-form select:disabled { opacity: .55; }
.news-chercher-date { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.news-chercher-form .bouton { justify-content: center; margin: 4px 0 0; }
.news-chercher-effacer { align-self: center; color: #006699; font-size: 13px; }
.news-toutes-lien { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e8db; color: #006699; font-size: 14px; font-weight: 700; text-decoration: none; }
.news-toutes-lien:hover { color: #e48b21; }
a.news-etiquette { color: #fff; text-decoration: none; }
a.news-etiquette:hover, a.news-etiquette:focus-visible { filter: brightness(1.1); text-decoration: underline; }
/* page de toutes les actualites : barre de recherche en haut, vignettes */
.news-barre { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 14px 18px 16px; }
.news-barre-titre { flex: 1 1 100%; margin: 0 0 2px; padding-bottom: 8px; border-bottom: 2px solid #e48b21; box-shadow: 0 6px 8px -6px rgba(255,140,0,.75); font-size: 17px; }
.news-barre .nr-q { flex: 2 1 240px; }
.news-barre .nr-c { flex: 1 1 170px; }
.news-barre .news-chercher-date { flex: 1 1 230px; }
.news-barre .bouton { flex: none; min-height: 38px; margin: 0; }
.news-barre .news-chercher-effacer { align-self: center; }
.news-toutes-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.news-toutes-tete h2 { flex: 1 1 auto; }
.news-res-nombre { margin: 0 0 12px; color: #777; font-size: 14px; }
.news-res-nombre b { color: #e48b21; }
.news-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.news-tuiles li { position: relative; min-width: 0; }
.news-tuile-lien { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.news-tuile-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: #f3efe7; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.news-tuile-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-tuile-lien:hover img { transform: scale(1.05); }
.news-tuile-image .news-sans-image { display: flex; align-items: center; justify-content: center; height: 100%; color: #d8c9b0; font-size: 34px; }
.news-tuile-titre { margin-top: 4px; color: #006699; font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.news-tuile-lien:hover .news-tuile-titre { color: #e48b21; }
.news-tuiles .news-date { color: #999; font-size: 12.5px; }
.news-tuiles .news-etiquette { top: 9px; left: 9px; max-width: calc(100% - 18px); }
.news-tuiles mark { padding: 0 2px; border-radius: 3px; background: #ffe2b8; color: inherit; }
.news-panneau .outils-tete b i { color: #e48b21; }
@media (min-width: 901px) { .news-chercher summary { pointer-events: none; cursor: default; } }
@media (max-width: 900px) {
    .news-page { grid-template-areas: "cherche" "art" "cote"; grid-template-rows: auto; }
    .news-chercher:not([open]) summary { padding-bottom: 0; border-bottom: 0; box-shadow: none; }
    .news-chercher summary::after { content: "\25BE"; margin-left: auto; color: #e48b21; font-size: 18px; transition: transform .2s; }
    .news-chercher[open] summary::after { transform: rotate(180deg); }
}
@media (max-width: 560px) {
    .news-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .news-tuile-titre { font-size: 13.5px; }
    .news-barre .bouton { flex: 1 1 100%; }
}

/* page de desinscription (lien des e-mails) */
.desinscription { max-width: 640px; margin: 0 auto 20px; }
.desinscription h2 i.fa-circle-check { color: #2e8b57; }
.desinscription h2 i.fa-circle-exclamation { color: #c0392b; }
.desinscription-aide { color: #777; font-size: 14px; }
.desinscription form { margin: 14px 0; }

/* Administration > Mailing */
.mailing-info { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #006699; border-radius: 8px; background: #eef6fa; color: #33505f; font-size: 14px; line-height: 1.55; }
.mailing-info i { color: #006699; }
.mailing-form textarea { width: 100%; min-height: 220px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font: 400 14px/1.55 var(--police); resize: vertical; }
.mailing-form input[type="text"] { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 10px; font: 400 15px var(--police); }
.mailing-form input[type="text"]:focus, .mailing-form textarea:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.mailing-form .champ { margin-bottom: 12px; }
.mailing-form .champ > label { display: block; margin-bottom: 4px; color: #006699; font-weight: 700; }
.mailing-compte small { color: #999; font-size: 12.5px; }
.mailing-aide { display: block; margin-top: 4px; color: #888; font-size: 12.5px; }
.mailing-filtres { margin: 14px 0; padding: 12px 14px 8px; border: 1px solid #f0dcc0; border-radius: 12px; background: #fffaf3; }
.mailing-filtres legend { padding: 0 6px; color: #006699; font-weight: 700; }
.mailing-ligne { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.mailing-ligne label { display: flex; flex-direction: column; gap: 3px; color: #006699; font-size: 13px; font-weight: 700; }
.mailing-ligne select, .mailing-ligne input { min-height: 38px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font: 400 14px var(--police); }
.mailing-ligne input:disabled { opacity: .5; }
.mailing-jours input { width: 90px; }
.mailing-compte { margin: 12px 0 4px; font-size: 16px; color: #555; }
.mailing-compte b { color: #e48b21; font-size: 20px; }
.mailing-compte i { color: #e48b21; }
.mailing-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.mailing-apercu { margin-top: 16px; padding: 12px 14px; border: 1px dashed #e3cfb2; border-radius: 10px; background: #fff; }
.mailing-apercu h3 { margin: 0 0 8px; font-size: 15px; color: #006699; }
.mailing-apercu pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13.5px/1.55 var(--police); color: #333; }
.mailing-envoi { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #faf6ef; font-size: 14px; }
.mailing-envoi p { margin: 4px 0 8px; }
.mailing-etat { color: #006699; font-weight: 600; }
.mailing-objet { font-weight: 700; color: #333; }
.mailing-prog { min-width: 170px; }
.mailing-barre { display: block; height: 8px; margin: 2px 0 4px; overflow: hidden; border-radius: 6px; background: #eee3d2; }
.mailing-barre span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #e3a259, #e48b21); transition: width .4s; }
.mailing-statut { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mailing-statut.st-en_cours { background: #fff1de; color: #c46b06; }
.mailing-statut.st-pause { background: #eef0f3; color: #5d6670; }
.mailing-statut.st-termine { background: #e6f4ea; color: #2e7d32; }
.mailing-statut.st-annule { background: #fbe9e7; color: #b03a2e; }
.mailing-boutons { white-space: nowrap; }
.mailing-boutons form { display: inline; }

/* accueil : derniers livres (1 grande couverture a gauche, les suivantes a droite) */
.acc-livres { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-livres.seul { grid-template-columns: minmax(0, 60%); }
.acc-livre-une { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.acc-livre-une-image { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px; background: #f6f2ea; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.acc-livre-une-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.acc-livre-une:hover .acc-livre-une-image img { transform: scale(1.04); }
.acc-livre-une-image .news-sans-image { display: flex; align-items: center; justify-content: center; height: 100%; color: #e3b98a; font-size: 34px; }
.acc-livre-une b { margin-top: 6px; color: #333; font-size: 15px; line-height: 1.3; }
.acc-livre-une:hover b { color: #006699; }
.acc-livre-une small { font-size: 12px; }
.acc-livre-num { color: #e48b21; font-size: .8em; font-weight: 700; white-space: nowrap; }
.acc-livre-sortie { color: #999; }
.acc-livre-sortie i { margin-right: 2px; }
.acc-livres .acc-objet-image { width: 66px; }
.acc-livres .acc-objets-liste a { align-items: flex-start; }   /* 1re petite couverture alignee en haut sur la grande */
@media (max-width: 400px) { .acc-livres { grid-template-columns: minmax(0, 1fr); } .acc-livre-une-image { max-width: 220px; } }

/* smartphone : livres / goodies
   - page d'une collection : series en lignes compactes (comme la liste des collections) : vignette, nom, progression
   - page d'une serie : 3 par ligne en vignettes normales, 2 en grandes (la regle .grille-objets ecrasait celle des cartes) */
@media (max-width: 760px) {
    .obj-series { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .obj-series .cat-tuile { flex-direction: row; align-items: center; }
    .obj-series .cat-vignette { width: 64px; height: 52px; flex: none; border-bottom: 0; border-right: 3px solid #e48b21; }
    .obj-series .cat-nom { flex: 1 1 auto; min-width: 0; padding: 6px 10px; }
    .obj-series .obj-ma-prog { flex: 0 0 104px; flex-direction: column; align-items: stretch; gap: 3px; margin: 0 10px 0 0; font-size: 11.5px; text-align: right; }
    .obj-series .obj-ma-barre { flex: none; width: 100%; height: 5px; }
    .grille-objets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .grille-objets.grand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grille-objets .tuile-objet-nom { padding: 5px 4px 7px; font-size: 12px; }
}

/* pages d'erreur (404, 403, 500) */
.erreur-page { max-width: 720px; margin: 10px auto 24px; padding: 28px 24px; text-align: center; }
.erreur-code { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.erreur-code span { font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: 2px;
    background: linear-gradient(#f0b46a, #e48b21 55%, #c96d0e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(150,70,0,.15)); }
.erreur-code i { color: #006699; font-size: 46px; }
.erreur-page h2 { justify-content: center; margin: 4px 0 8px; color: #006699; font-size: 24px; }
.erreur-texte { max-width: 520px; margin: 0 auto 18px; color: #666; font-size: 15px; line-height: 1.6; }
.erreur-recherche { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.erreur-recherche label { position: relative; flex: 1 1 240px; }
.erreur-recherche label i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #aaa; }
.erreur-recherche input { width: 100%; min-height: 44px; padding: 8px 14px 8px 40px; border: 1px solid #ddd; border-radius: 999px; font: 400 15px var(--police); }
.erreur-recherche input:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.erreur-recherche .bouton { margin: 0; border-radius: 999px; }
.erreur-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.erreur-liens a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #e8dcc8; border-radius: 999px; background: #fffdf9; color: #006699; font-size: 14px; font-weight: 600; text-decoration: none; }
.erreur-liens a:hover { border-color: #e48b21; color: #c85f05; }
body.erreur-seule { padding: 16px; }
.erreur-logo { margin: 10px 0 18px; text-align: center; }
.erreur-logo img { max-width: 260px; height: auto; }
@media (max-width: 560px) { .erreur-code span { font-size: 64px; } .erreur-code i { font-size: 34px; } .erreur-page { padding: 22px 14px; } }

/* soutenir le site : bouton de l'accueil (sous Decouverte) et page */
.acc-dec-colonne { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acc-dec-colonne > .acc-decouverte { flex: 1 1 auto; margin: 0; }
.acc-soutenir { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 44px; border: 1px solid #d9902a; border-radius: 10px;
    background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%); box-shadow: 0 3px 10px rgba(228,139,33,.3), inset 0 1px 0 rgba(255,255,255,.6);
    color: #5a2a00; text-align: center; text-decoration: none; transition: filter .2s, transform .2s; }
.acc-soutenir:hover, .acc-soutenir:focus-visible { filter: brightness(1.06); transform: translateY(-1px); outline: none; }
.acc-soutenir i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #b3261e; font-size: 20px; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.acc-soutenir span { display: flex; flex-direction: column; line-height: 1.25; }
.acc-soutenir b { font-size: 15px; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.acc-soutenir small { color: #6e3a06; font-size: 12px; font-weight: 600; }
.soutenir { max-width: 780px; margin: 0 auto 20px; line-height: 1.65; }
.soutenir-tete { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.soutenir-tete > i { flex: none; margin-top: 6px; color: #d63a55; font-size: 40px; }
.soutenir-tete h2 { margin: 0 0 6px; }
.soutenir-action { margin: 18px 0 8px; text-align: center; }
.soutenir-bouton { font-size: 17px; padding: 12px 26px; }
.soutenir-bouton i { font-size: 20px; }
.soutenir-note { color: #777; font-size: 13.5px; text-align: center; }
.soutenir h3 { margin-top: 22px; color: #006699; }
.soutenir h3 i { color: #d63a55; }
.soutenir-merci { margin-top: 18px; color: #e48b21; font-weight: 700; text-align: center; }

/* en-tete : pastilles de couleur (remplacent l'enveloppe) - visibles seulement s'il y a du nouveau */
.notifs { display: flex; align-items: center; gap: 6px; }
.notif { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 10px; border-radius: 999px; color: #fff; font: 700 13px var(--police);
    text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.35); transition: filter .2s, transform .2s; }
.notif i { font-size: 14px; }
.notif:hover, .notif:focus-visible { filter: brightness(1.08); transform: translateY(-1px); outline: none; }
.notif-messages { background: linear-gradient(#2e8fc8, #006699); }
.notif-alertes { background: linear-gradient(#f2a248, #e07b10); }
.notif-deals { background: linear-gradient(#45b86b, #2e8b57); }
.pastille-messages { background: #006699; }
.pastille-alertes { background: #e07b10; }
.pastille-deals { background: #2e8b57; }
@media (max-width: 760px) {
    .notifs { gap: 3px; }
    .notif { gap: 3px; height: 26px; padding: 0 7px; font-size: 12px; }
    .notif i { font-size: 12px; }
}
/* Ma communaute : barre coupee en deux (suivre des membres | trouver des cartes) */
.comm-onglets { flex-wrap: wrap; justify-content: space-between; }
.comm-onglets-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.comm-onglets .pastille { margin-left: 2px; }
@media (max-width: 760px) { .comm-onglets-groupe.droite { width: 100%; padding-top: 4px; border-top: 1px solid rgba(0,0,0,.06); } }
/* Mes alertes */
.alertes-titre { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; color: #006699; font-size: 16px; }
.alertes-titre i { color: #e07b10; }
.alertes-liste { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alerte-membre { padding: 10px 12px; border: 1px solid #eadfcd; border-radius: 10px; background: #fffdf9; }
.alerte-membre.nouveau { border-color: #f0b46a; background: #fff8ee; box-shadow: 0 0 0 2px rgba(240,180,106,.18); }
.alerte-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; }
.alerte-phrase { margin: 0; color: #555; font-size: 13.5px; }
.alerte-phrase b { color: #e07b10; }
.alerte-phrase small { display: block; color: #999; font-size: 12px; }
.alerte-nouveau { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e07b10; color: #fff; font-size: 11px; font-weight: 700; }
.alerte-effacer { display: inline; }
.alerte-vignettes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #efe3cf; }
.alerte-vignettes a { display: block; height: 64px; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.alerte-vignettes img { display: block; height: 100%; width: auto; }
.alerte-sans-image { display: flex; align-items: center; justify-content: center; width: 46px; height: 100%; background: #f6f2ea; color: #e3b98a; }
.alerte-plus { color: #888; font-size: 13px; font-weight: 700; }
@media (max-width: 760px) {
    .alerte-tete { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .alerte-tete .aide-boutons { grid-column: auto; }
    .alerte-vignettes a { height: 54px; }
}
a.alerte-plus { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px dashed #e3c49a; border-radius: 8px; background: #fff; color: #e07b10; text-decoration: none; }
a.alerte-plus:hover { border-color: #e07b10; background: #fff4e8; }
.alertes-tout { margin: 10px 0 0; text-align: center; }

/* ---------- Habillage des blocs (rappel du site d'origine) : liseré bleu/gris + dégradé en haut ---------- */
:root { --bloc-bord: #b9c6d3; --bloc-haut: #e6edf4; }
.carte-bloc, .pp-editeur {
    border-color: var(--bloc-bord);
    background: linear-gradient(180deg, var(--bloc-haut) 0, #f6f9fb 34px, #fff 64px) no-repeat, #fff;
    box-shadow: 0 1px 3px rgba(40, 70, 100, .10);
}
.carte-bloc.verrou { background: linear-gradient(180deg, #e9ebee 0, #f4f2ec 64px) no-repeat, #f4f2ec; }
.col-stats .stats-grille .carte-bloc { border-color: var(--bloc-bord); }

/* ---------- Livres / goodies : bande des series en vignettes carrees (comme les capsules des cartes) ---------- */
.obj-series-bande { gap: 6px; }
.obj-capsule { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 66px; aspect-ratio: 1; overflow: hidden; padding: 0;
    border: 1px solid #e6dfd2; border-radius: 6px; background: #fff; color: #b9a98d; font-size: 22px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.obj-capsule img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .2s; }
.obj-capsule.sans-image { align-items: flex-start; padding-top: 12px; background: linear-gradient(#fff, #f3efe7); }
.obj-capsule-nom { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 3px; overflow: hidden; background: rgba(35,25,15,.72); color: #fff; font-size: 10px; font-weight: 700;
    line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.obj-capsule:hover, .obj-capsule:focus-visible { border-color: #e3b98a; box-shadow: 0 3px 10px rgba(0,0,0,.12); outline: none; }
.obj-capsule:hover img, .obj-capsule:focus-visible img { transform: scale(1.06); }
.obj-capsule.actif { border: 2px solid #e48b21; }
.obj-capsule.actif .obj-capsule-nom { background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); }

/* ---------- Fenetres d'apercu (cartes, livres, goodies, packaging) : meme habillage que les blocs ---------- */
.apercu-image, .obj-description {
    border-color: var(--bloc-bord);
    background: linear-gradient(180deg, var(--bloc-haut) 0, #f6f9fb 34px, #fff 64px) no-repeat, #fff;
}
.apercu-fiche { border-color: var(--bloc-bord); }
.apercu-fiche dt { background: linear-gradient(90deg, #edf2f7, #f6f9fb); }
.apercu-fiche dt, .apercu-fiche dd { border-bottom-color: #e3e9ef; }
.apercu-boite { border: 1px solid var(--bloc-bord); }

/* ---------- Bouton "Signaler une erreur" : meme couleur que "Soutenir le site" ---------- */
.sig-bouton { position: relative; gap: 7px; max-width: 150px; padding: 3px 12px 3px 10px; border: 1px solid #d9902a; border-radius: 9px;
    background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%); box-shadow: 0 2px 6px rgba(228,139,33,.3), inset 0 1px 0 rgba(255,255,255,.6);
    color: #5a2a00; text-shadow: 0 1px 0 rgba(255,255,255,.45); transition: filter .2s, transform .2s; }
.sig-bouton:hover { background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%); filter: brightness(1.06); transform: translateY(-1px); }
.sig-bouton i { display: inline; flex: none; color: #b3261e; font-size: 17px; text-shadow: 0 1px 0 rgba(255,255,255,.5); }

/* ---------- Fleches et ascenseurs en bleu (charte) : bandes des series (cartes, livres, goodies) et Shootbox ---------- */
.serie-fleche { border-color: #8fb8cf; color: #006699; }
.serie-fleche:hover { border-color: #006699; background: #eaf4fa; }
.serie-fleche.inactif { border-color: #eee; color: #ddd; }
.capsules-bande, .obj-series-bande, .shoot-liste { scrollbar-color: #006699 transparent; }
.capsules-bande::-webkit-scrollbar-thumb, .obj-series-bande::-webkit-scrollbar-thumb, .shoot-liste::-webkit-scrollbar-thumb { background: #006699; }
.acc-livre-une .acc-livre-sortie { display: block; }

/* ---------- Accueil, Derniers livres : les petites couvertures se repartissent sur toute la hauteur de la grande (1/3 chacune) ---------- */
.acc-livres { align-items: stretch; }
.acc-livres .acc-objets-liste { height: 100%; gap: 0; }
.acc-livres .acc-objets-liste li { display: flex; flex: 1 1 0; min-height: 0; }
.acc-livres .acc-objets-liste li + li { padding-top: 10px; }
.acc-livres .acc-objets-liste a { flex: 1; }

/* ---------- Ascenseur des panneaux flottants (menu Affichage...) en bleu ---------- */
.outils-panneau { scrollbar-color: #006699 transparent; }
.outils-panneau::-webkit-scrollbar-thumb { background: #006699; }

/* ---------- Petits blocs (fiches membres, favoris, tuiles de statistiques, alertes, deals...) : meme degrade que les blocs ---------- */
:root { --mini-bord: #c9d4df; }
.tuile, .membre-fiche, .comm-fiche, .nv-membre, .aide-membre, .deal-ligne-lien, .deal-col, .err-item, .alerte-membre, .ins-groupe {
    border-color: var(--mini-bord);
    background: linear-gradient(180deg, var(--bloc-haut) 0, #f6f9fb 26px, #fff 52px) no-repeat, #fff;
}
.outils-panneau::-webkit-scrollbar-thumb:hover { background: #00557f; }

/* ---------- Accueil : visuels des series et des dernieres cartes en couleurs reelles (plus d'assombrissement) ---------- */
.acc-fond, .acc-carte-img { filter: none; }
.acc-tuile:hover .acc-fond, .acc-tuile:focus-visible .acc-fond, .acc-carte:hover .acc-carte-img, .acc-carte:focus-visible .acc-carte-img { filter: none; }
/* seul un leger fondu reste sous les ecrits (nom, date), pour qu'ils restent lisibles */
.acc-tuile .acc-voile { background: linear-gradient(to top, rgba(28,14,2,.82) 0%, rgba(28,14,2,.4) 22%, rgba(28,14,2,0) 40%); }
.acc-carte .acc-voile { background: linear-gradient(to top, rgba(28,14,2,.78) 0%, rgba(28,14,2,.3) 16%, rgba(28,14,2,0) 30%); }

/* ---------- Accueil : bouton "Scanner" de la meme couleur que "Soutenir le site" ---------- */
.acc-reseau.scan { border: 1px solid #d9902a; background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%);
    box-shadow: 0 3px 10px rgba(228,139,33,.3), inset 0 1px 0 rgba(255,255,255,.6); color: #5a2a00; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.acc-reseau.scan i { color: #006699; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.acc-reseau.scan small { color: #6e3a06; opacity: 1; font-weight: 600; }
.acc-reseau.scan:hover, .acc-reseau.scan:focus-visible { filter: brightness(1.06); }

/* ---------- Videos : recherche (mots-cles + collection) entre le lecteur et la liste, lien vers la serie de la video ---------- */
.video-recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
.video-chercher { display: flex; flex: 1 1 520px; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.video-chercher-mots { position: relative; display: flex; flex: 1 1 240px; min-width: 0; }
.video-chercher-mots i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #999; pointer-events: none; }
.video-chercher-mots input { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border: 1px solid #d6dee6; border-radius: 99px; background: #fff; font: 14px var(--police); }
.video-chercher-col { display: flex; flex: 0 1 260px; min-width: 0; }
.video-chercher-col select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #d6dee6; border-radius: 99px; background: #fff; font: 14px var(--police); color: #444; }
.video-chercher-mots input:focus, .video-chercher-col select:focus { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.video-chercher .bouton { min-height: 40px; margin: 0; }
.video-chercher-effacer { color: #888; font-size: 13px; text-decoration: none; white-space: nowrap; }
.video-chercher-effacer:hover { color: #c85f05; text-decoration: underline; }
.video-cible { display: inline-flex; flex: none; align-items: center; gap: 10px; max-width: 280px; margin-left: auto; padding: 6px 14px; border: 1px solid #8fb8cf; border-radius: 10px;
    background: linear-gradient(#f4f9fc, #e3eff6); color: #006699; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.video-cible:hover, .video-cible:focus-visible { border-color: #006699; box-shadow: 0 3px 10px rgba(0,102,153,.15); transform: translateY(-1px); outline: none; }
.video-cible > i { flex: none; font-size: 20px; }
.video-cible span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.video-cible b { font-size: 14px; }
.video-cible small { overflow: hidden; color: #4d6b7d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
    .video-recherche { padding: 10px; }
    .video-chercher-col { flex: 1 1 100%; }
    .video-cible { width: 100%; max-width: none; margin-left: 0; }
}
.adm-video-lien { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d6dee6; }
.adm-video-lien h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #006699; font-size: 15px; }
.adm-video-lien h3 small { color: #999; font-size: 12px; font-weight: 400; }
.adm-video-lien select:disabled { opacity: .6; }

/* Videos : bouton loupe carre, liste des collections avec drapeaux */
.video-chercher .video-chercher-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; padding: 0; border-radius: 10px; font-size: 16px; }
.video-col { position: relative; flex: 0 1 280px; min-width: 0; }
.video-col[hidden] { display: none; }
.video-col-choix { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 6px 14px; border: 1px solid #d6dee6; border-radius: 99px;
    background: #fff; color: #444; font: 13px var(--police); text-align: left; cursor: pointer; }
.video-col-choix:focus-visible, .video-col-choix[aria-expanded="true"] { border-color: #e48b21; outline: none; box-shadow: 0 0 0 3px rgba(228,139,33,.18); }
.video-col-choix > i { flex: none; color: #888; font-size: 11px; }
.video-col-actuel { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-col-actuel span { overflow: hidden; text-overflow: ellipsis; }
.video-col-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50; max-height: 300px; padding: 4px; overflow-y: auto; border: 1px solid var(--bloc-bord, #b9c6d3); border-radius: 10px;
    background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.16); scrollbar-width: thin; scrollbar-color: #006699 transparent; }
.video-col-menu[hidden] { display: none; }
.video-col-groupe { display: block; padding: 6px 8px 2px; color: #006699; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.video-col-menu [role=option] { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 8px 5px 14px; border: 0; border-radius: 6px; background: none; color: #444;
    font: 12.5px/1.3 var(--police); text-align: left; cursor: pointer; }
.video-col-menu [role=option]:first-child { padding-left: 8px; }
.video-col-menu [role=option]:hover, .video-col-menu [role=option]:focus-visible { background: #eef5fa; color: #006699; outline: none; }
.video-col-menu [role=option][aria-selected="true"] { background: #fff3e6; color: #c85f05; font-weight: 600; }
.video-col-menu .drapeau, .video-col-actuel .drapeau { flex: none; }
@media (max-width: 700px) { .video-col { flex: 1 1 100%; } }
.video-cible { min-height: 40px; padding: 4px 14px; }

/* ---------- Bannieres : toute l'image reste visible, elle se reduit avec la largeur de l'ecran (plus de recadrage au centre) ---------- */
.banniere img { height: auto; max-height: none; object-fit: fill; }
@media (max-width: 767px) { .banniere img { height: auto; } }

/* ---------- Mode maintenance : bandeau de l'equipe, page "Maintenance", administration ---------- */
.maint-bandeau { position: relative; z-index: 60; padding: 7px 16px; background: linear-gradient(#d9534f, #b52b27); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; }
.maint-bandeau a { margin-left: 6px; color: #fff; text-decoration: underline; }
.page-maintenance { min-height: 100vh; margin: 0; background: var(--fond); }
.maint { max-width: 1000px; margin: 0 auto; padding: 24px 16px 40px; }
.maint-logo { margin: 0 0 18px; text-align: center; }
.maint-logo img { width: auto; height: 60px; }
.maint-image { margin: 0 0 18px; line-height: 0; }
.maint-image img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.maint-bloc { padding: 26px 30px; text-align: center; }
.maint-bloc h1 { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #006699; font-size: 26px; }
.maint-message { margin: 0 auto 18px; max-width: 680px; color: #444; font-size: 16.5px; line-height: 1.6; }
.maint-suivre { margin: 0 0 10px; color: #777; font-size: 14px; }
.maint-reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.maint-reseaux .acc-reseau { flex: 0 1 240px; }
.maint-reseaux svg { width: 18px; height: 18px; flex: none; }
.maint-equipe { margin: 18px 0 0; text-align: center; font-size: 12px; }
.maint-equipe a { color: #999; }
.maint-apercu-bandeau { padding: 8px 16px; background: #006699; color: #fff; font-size: 13px; text-align: center; }
.maint-apercu-bandeau a { color: #fff; text-decoration: underline; }
.maint-admin-etat.actif { border-color: #d9534f; }
.maint-admin-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.maint-admin-statut { flex: 1 1 380px; margin: 0; }
.maint-pastille { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border-radius: 50%; vertical-align: middle; }
.maint-pastille.rouge { background: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.2); }
.maint-pastille.verte { background: #2fb344; box-shadow: 0 0 0 3px rgba(47,179,68,.2); }
.maint-bouton-couper { background: linear-gradient(#5cb85c, #449d44); border-bottom-color: #2f7a2f; }
.maint-admin-form { display: flex; flex-direction: column; gap: 8px; }
.maint-admin-form small { color: #888; font-weight: 400; }
.maint-admin-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d6dee6; border-radius: 10px; font: 14px/1.5 var(--police); }
.maint-admin-boutons { margin-top: 6px; }
.maint-admin-image { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.maint-admin-image img { max-width: 100%; max-height: 160px; border: 1px solid var(--bloc-bord); border-radius: 8px; }
@media (max-width: 600px) { .maint-bloc { padding: 18px 14px; } .maint-bloc h1 { font-size: 21px; } .maint-message { font-size: 15px; } }

/* ---------- Administration > Sauvegarde ---------- */
.sauv-curseur { margin: 6px 0 10px; }
.sauv-etat { margin: 0 0 10px; color: #555; }
.sauv-etat i { color: #006699; }
.sauv-resultat { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #2fb344; border-radius: 6px; background: #f1faf2; font-size: 13.5px; }
.sauv-resultat.echec { border-left-color: #d9534f; background: #fdf1f0; }
.sauv-liste { margin: 0; padding: 0; list-style: none; }
.sauv-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.sauv-liste li > i { color: #006699; font-size: 20px; }
.sauv-nom { display: flex; flex: 1 1 260px; flex-direction: column; min-width: 0; }
.sauv-nom small { overflow: hidden; color: #888; text-overflow: ellipsis; white-space: nowrap; }
.sauv-liste form { margin: 0; }
.acc-rappel-sauv { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid #e48b21; border-radius: 6px; background: #fff7ee; font-size: 14px; }

/* ---------- LIVRE D'OR (infos/livre_or.php, bandeau de l'accueil, Administration) : touche vintage, papier creme ---------- */
.livre-bandeau { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px;
    background: linear-gradient(180deg, var(--bloc-haut) 0, #f6f9fb 26px, #fffdf6 60px) no-repeat, #fffdf6; }
.livre-bandeau-titre { display: flex; align-items: center; gap: 10px; }
.livre-bandeau-titre > i { color: #c9962c; font-size: 30px; }
.livre-bandeau-titre h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #006699; font-size: 21px; }
.livre-bandeau-titre small { color: #888; font-size: 12.5px; }
.livre-bandeau-mot { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 8px 14px; border: 1px dashed #e2cfa3; border-radius: 10px;
    background: #fdf8ec; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.livre-bandeau-mot:hover, a.livre-bandeau-mot:focus-visible { border-color: #c9962c; box-shadow: 0 3px 10px rgba(201,150,44,.18); outline: none; }
.livre-bandeau-mot.vide { color: #6b5a33; font-family: Georgia, serif; font-style: italic; }
.livre-bandeau-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.livre-bandeau-qui { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.livre-bandeau-qui b { color: #006699; }
.livre-bandeau-qui time { color: #999; font-size: 12px; }
.livre-bandeau-texte { overflow: hidden; color: #4a3d22; font-family: Georgia, 'Times New Roman', serif; font-size: 14.5px; font-style: italic; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.livre-bandeau-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.livre-bandeau-actions .bouton { margin: 0; }
.livre-bandeau-lire { color: #006699; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.livre-bandeau-lire:hover { text-decoration: underline; }
.livre-deja-petit { color: #2f8a3c; font-size: 13px; font-weight: 600; }
.livre-avatar { flex: none; line-height: 0; }
.livre-avatar .avatar { width: 46px; height: 46px; }
.livre-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: #fbf0d4; color: #946a12; font-size: 11px; font-weight: 700; white-space: nowrap; }
.livre-badge i { color: #c9962c; }

.livre-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.livre-tete-texte { flex: 1 1 420px; }
.livre-tete-texte h2 { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #006699; }
.livre-tete-texte h2 i { color: #c9962c; }
.livre-compteur { margin: 6px 0 0; color: #6b5a33; font-family: Georgia, serif; font-style: italic; }
.livre-compteur b { color: #c85f05; font-size: 20px; font-style: normal; }
.livre-tete-action { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.livre-bouton { min-width: 220px; }
.livre-une-fois { color: #888; font-size: 12px; }
.livre-deja { margin: 0; color: #2f8a3c; font-weight: 600; }
.livre-deja small { color: #888; font-weight: 400; }
.livre-regle { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #c9962c; border-radius: 6px; background: #fdf8ec; color: #5b4a22; font-size: 13.5px; }
.livre-regle i { color: #c9962c; }

.livre-pages { padding-top: 6px; }
.livre-signature { position: relative; margin: 14px 0 0; padding: 14px 18px 12px; border: 1px solid #e8dcc0; border-radius: 12px;
    background: linear-gradient(180deg, #fffaf0, #fdf6e6); box-shadow: 0 1px 3px rgba(120,90,30,.08); scroll-margin-top: 120px; }
.livre-signature:target { border-color: #c9962c; box-shadow: 0 0 0 3px rgba(201,150,44,.25); }
.livre-signature.masquee { opacity: .6; border-style: dashed; }
.livre-auteur { display: flex; align-items: center; gap: 12px; }
.livre-qui { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.livre-pseudo { color: #006699; font-weight: 700; text-decoration: none; }
a.livre-pseudo:hover { text-decoration: underline; }
.livre-qui time { width: 100%; color: #999; font-size: 12.5px; }
.livre-texte { margin: 10px 0 0; padding: 0 0 0 16px; border-left: 3px solid #e2cfa3; color: #3f3420; font-family: Georgia, 'Times New Roman', serif; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.livre-reponse { margin: 10px 0 0 16px; padding: 8px 12px; border-radius: 8px; background: #eef5fa; color: #34495e; font-size: 14px; }
.livre-reponse b { color: #006699; font-size: 13px; }
.livre-reponse p { margin: 4px 0 0; }
.livre-actions { display: flex; flex: none; align-items: center; gap: 4px; margin-left: auto; }
.livre-actions form { margin: 0; }
.livre-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #b9a98d; cursor: pointer; font-size: 14px; text-decoration: none; }
.livre-action:hover, .livre-action:focus-visible { background: #f3ead6; color: #c85f05; outline: none; }
.livre-fenetre .sig-aide { margin-bottom: 8px; }

/* administration */
.livre-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.livre-filtres a { padding: 5px 12px; border: 1px solid #e3d6bd; border-radius: 99px; color: #555; font-size: 13px; text-decoration: none; }
.livre-filtres a.actif { border-color: #e48b21; background: #fff3e6; color: #c85f05; font-weight: 600; }
.livre-admin-ligne { margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid #edf1f5; }
.livre-admin-outils { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; }
.livre-admin-outils form { margin: 0; }
.livre-etat { padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.livre-etat.en-ligne { background: #e5f4e4; color: #2f7a2f; }
.livre-etat.masque { background: #eee; color: #777; }
.livre-etat.signale { background: #fbebeb; color: #b52b27; }
.livre-repondre { flex: 1 1 100%; }
.livre-repondre summary { cursor: pointer; color: #006699; font-size: 13.5px; font-weight: 600; }
.livre-repondre textarea { width: 100%; margin: 6px 0; padding: 8px 10px; border: 1px solid #d6dee6; border-radius: 8px; font: 14px/1.5 var(--police); }
.livre-repondre-boutons { display: flex; gap: 8px; }

@media (max-width: 800px) {
    .livre-bandeau { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .livre-bandeau-actions { flex-direction: row; align-items: center; justify-content: space-between; }
    .livre-signature { padding: 12px; }
    .livre-texte { padding-left: 10px; font-size: 15px; }
}

/* Livre d'or : boutons "Signer" de la meme couleur que "Soutenir le site" (or -> orange) */
.livre-or-bouton { border: 1px solid #d9902a; background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%);
    box-shadow: 0 3px 10px rgba(228,139,33,.3), inset 0 1px 0 rgba(255,255,255,.6); color: #5a2a00; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.livre-or-bouton:hover, .livre-or-bouton:focus-visible { background: linear-gradient(#ffe08a 0%, #f7c04a 45%, #f0a030 55%, #e48b21 100%); color: #5a2a00; filter: brightness(1.06); }
.livre-or-bouton i { color: #8a4b00; }
/* "Signaler une erreur" coupe (Administration > Parametres) : liens des apercus masques */
.sig-off .apercu-signaler, .sig-off .sig-bouton { display: none !important; }

/* Administration > Parametres : chaque rubrique avec l'habillage des blocs (liseré bleu/gris + dégradé), titre en pastille */
.param-section { padding: 6px 18px 8px; border-color: var(--bloc-bord); background: linear-gradient(180deg, var(--bloc-haut) 0, #f6f9fb 40px, #fff 80px) no-repeat, #fff;
    box-shadow: 0 1px 3px rgba(40,70,100,.10); }
.param-section legend { padding: 3px 12px; border: 1px solid var(--bloc-bord); border-radius: 99px; background: linear-gradient(#fff, #eef3f8); box-shadow: 0 1px 2px rgba(40,70,100,.08); }
.param-section + .param-section { margin-top: 22px; }
.param-ligne { border-bottom-color: #e6ecf2; }
.param-ligne:hover { background: rgba(0,102,153,.03); }
.param-aide { grid-column: 1 / -1; margin: 2px 0 0; color: #4d6b7d; font-size: 13px; line-height: 1.45; }
.param-aide i { margin-right: 3px; color: #8fb8cf; }

/* Accueil : pages des Derniers livres / goodies + fleches bleues sous le bloc */
.acc-obj-pages { display: flex; flex: 1; flex-direction: column; }
.acc-obj-page { flex: 1; }
.acc-obj-page[hidden] { display: none !important; }
.acc-obj-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e3e9ef; }
.acc-obj-fleche { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #8fb8cf; border-radius: 50%; background: #fff; color: #006699; cursor: pointer; }
.acc-obj-fleche:hover:not(:disabled), .acc-obj-fleche:focus-visible { border-color: #006699; background: #eaf4fa; outline: none; }
.acc-obj-fleche:disabled { border-color: #e6e6e6; color: #ccc; cursor: default; }
.acc-obj-num { color: #777; font-size: 13px; }
.acc-obj-num b { color: #006699; }

/* ---------- VIP / premium ---------- */
.param-choix-texte { min-width: 260px; }
.param-vip { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 3px 4px 3px 10px; border: 1px dashed #e2c46b; border-radius: 99px; background: #fffbea; opacity: .65; }
.param-vip.actif { border-style: solid; opacity: 1; }
.param-vip label { color: #9a7300; font-size: 12px; font-weight: 700; white-space: nowrap; }
.param-vip label i { color: #d4a514; }
.param-vip select, .param-vip input { min-width: 80px; }
.vip-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; background: linear-gradient(#ffe08a, #f0b33a); color: #6b4a00; font-size: 10.5px; font-weight: 800; line-height: 1.5; vertical-align: middle; }
.vip-badge i { font-size: 9.5px; }
.vip-mot { color: #9a7300; white-space: nowrap; }
.vip-mot i { color: #d4a514; }
.statut-5 { background: linear-gradient(#fff3c4, #ffe08a); color: #7a5600; }
.statut-5::before { content: "\f521"; margin-right: 3px; font: 900 10px "Font Awesome 6 Free"; color: #c99400; }
@media (max-width: 700px) { .param-vip { margin: 6px 0 0; } }

/* reglage reserve aux VIP / desactive (Mon compte) */
.interrupteur.reserve { opacity: .72; cursor: not-allowed; }
.interrupteur.reserve .interrupteur-curseur { filter: grayscale(1); }
.reserve-note { display: inline-block; margin-left: 6px; font-style: normal; font-size: .78rem; font-weight: 700; color: #a87a00; background: #fff6d6; border: 1px solid #e8cf7a; border-radius: 10px; padding: 1px 8px; }

/* Administration > VIP */
.vip-mode { margin: 0 0 12px; }
.vip-ajout { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px; margin-bottom: 14px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 10px; background: linear-gradient(#fff8e1, #fff); }
.vip-ajout label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.vip-ajout .vip-note { flex: 1 1 200px; }
.vip-ajout input { padding: 6px 8px; border: 1px solid #c9d4df; border-radius: 8px; font: inherit; }
.vip-ligne { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vip-ligne input { padding: 4px 6px; border: 1px solid #c9d4df; border-radius: 7px; font: inherit; font-size: 13px; }
.vip-ligne input[type=text] { flex: 1 1 120px; min-width: 100px; }
.vip-ligne input.vip-proche { border-color: #e07b00; background: #fff3e0; }
.vip-actions { white-space: nowrap; }
.vip-actions form { display: inline-block; margin: 2px; }
@media (max-width: 700px) { .vip-table thead { display: none; } .vip-table tr, .vip-table td { display: block; } .vip-table td { border: 0; padding: 4px 6px; } .vip-table tr { border-bottom: 1px solid #f1ebe1; padding: 6px 0; } }

/* Mon compte : frequence de l'e-mail des alertes */
.alertes-frequence { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: -4px 0 12px 58px; font-size: 14px; }
.alertes-frequence label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.alertes-frequence.reserve { opacity: .72; }
.alertes-frequence.reserve label { cursor: not-allowed; }
@media (max-width: 600px) { .alertes-frequence { margin-left: 8px; } }

/* Administration > Bannieres : modeles des bannieres des membres */
.ban-modeles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ban-modele { padding: 12px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 10px; background: linear-gradient(var(--bloc-haut, #e6edf4), #fff 60px); }
.ban-modele h3 { margin: 0 0 8px; font-size: 15px; color: #006699; }
.ban-modele h3 .fa-crown { color: #d4a017; }
.ban-modele img { display: block; max-width: 100%; height: auto; margin: 0 0 10px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ban-modele-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.ban-modele-form input[type=file] { flex: 1 1 180px; min-width: 0; font-size: 13px; }

.param-diag { margin: 4px 0 10px; padding: 7px 10px; border-radius: 8px; background: #fff6e5; border: 1px solid #f0d9a8; font-size: 13.5px; }
.param-diag.ok { background: #eef8ee; border-color: #bfe0bf; }
.param-diag .fa-circle-check { color: #2e8b3d; } .param-diag .fa-circle-info { color: #c27c00; }

/* Mes statistiques : statistiques detaillees */
.stats-titre .vip-badge { font-size: .7em; vertical-align: middle; }
.stats-collections { flex-wrap: wrap; justify-content: flex-end; }
.stats-collections button { display: inline-flex; align-items: center; gap: 5px; }
.stats-collections button svg { width: 16px; height: 11px; flex: none; }
.stats-manques { display: grid; gap: 7px; }
.stats-manque { display: grid; grid-template-columns: minmax(90px, 32%) 1fr 96px; gap: 8px; align-items: center; font-size: 13.5px; }
.stats-manque-nom { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-manque .gr-barre-trace { width: 100%; height: 10px; }
.stats-manque-val { font-size: 12.5px; color: #555; white-space: nowrap; text-align: right; }
.stats-manque-val .fa-check { color: #2e8b3d; }
.stats-presque { margin: 0; padding: 0; list-style: none; counter-reset: pq; }
.stats-presque li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid #f1ebe1; font-size: 14px; }
.stats-presque li:last-child { border-bottom: 0; }
.stats-presque a { display: inline-flex; align-items: center; gap: 6px; color: #006699; text-decoration: none; min-width: 0; }
.stats-presque a svg { width: 18px; height: 12px; flex: none; }
.stats-presque a small { color: #888; }
.stats-presque-reste { font-size: 12.5px; color: #666; }
.stats-vip-invite ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.stats-vip-invite li { display: flex; gap: 8px; align-items: center; }
.stats-vip-invite li i { color: #d4a017; width: 18px; text-align: center; }

/* avatar en haut a droite (anime s'il y a droit) un peu plus grand ; page perso : grand avatar */
.compte-btn .avatar { width: 42px; height: 42px; border-radius: 0 9px 9px 0; }
.pp-page-tete { align-items: center; gap: 18px; }
.pp-page-tete .avatar { width: 110px; height: 110px; border-radius: 0 16px 16px 0; }
.pp-page-tete .avatar-cadre { margin: 6px 6px 0 0; }
.pp-page-tete .avatar-cadre::after { top: -6px; right: -6px; border-width: 3px; border-top-right-radius: 16px; }
.pp-page-tete .avatar-vide { font-size: 30px; }
@media (max-width: 600px) { .pp-page-tete .avatar { width: 80px; height: 80px; } .compte-btn .avatar { width: 38px; height: 38px; } }

/* boules : le picto images/pictos/dbzcollection.png (menu, titres de page, titres de blocs...) */
.boule { background: url("../images/pictos/dbzcollection.png") center / contain no-repeat; box-shadow: none; border-radius: 0; }
.page-titre .boule { box-shadow: none; }
.univers-img { width: 18px; height: 18px; object-fit: contain; }

/* One Piece : le rond fait la taille des autres pictos, les os depassent un peu de la barre (comme l'ancien site) */
.univers-img.univers-onepiececollection { width: 28px; height: 28px; margin: -5px -3px; position: relative; z-index: 1; }

/* accueil, bloc Decouverte : carte horizontale redressee (quart de tour) pour remplir le cadre */
.acc-decouverte-carte.paysage .acc-carte-img { inset: auto; left: 50%; top: 50%; width: 142.857%; height: 70%; max-width: none; max-height: none; transform: translate(-50%, -50%) rotate(90deg); }
.acc-decouverte-carte.paysage:hover .acc-carte-img, .acc-decouverte-carte.paysage:focus-visible .acc-carte-img { transform: translate(-50%, -50%) rotate(90deg) scale(1.08); }

/* fenetre de bienvenue (premiere connexion) */
.bienvenue-fenetre { width: min(560px, calc(100vw - 32px)); padding: 18px 24px 16px; }
.bienvenue-etiquette { margin: 0 0 6px; color: #e48b21; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bienvenue-page h2 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #f57c00; color: #006699; font-size: 20px; }
.bienvenue-page h2 i { color: #e48b21; margin-right: 4px; }
.bienvenue-texte { min-height: 150px; font-size: 15px; line-height: 1.55; }
.bienvenue-texte p { margin: 0 0 10px; }
.bienvenue-texte ul { margin: 0; padding-left: 20px; }
.bienvenue-texte li { margin-bottom: 6px; }
.bienvenue-texte a { color: #006699; font-weight: 700; }
.bienvenue-pied { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eee; }
.bienvenue-points { display: flex; gap: 6px; }
.bienvenue-points span { width: 9px; height: 9px; border-radius: 50%; background: #e2d6c4; }
.bienvenue-points span.actif { background: #e48b21; }
.bienvenue-boutons { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 480px) { .bienvenue-fenetre { padding: 14px 16px; } .bienvenue-texte { min-height: 0; font-size: 14.5px; } }

/* Ma collection : liste des collections suivies (visible meme sans carte cochee) */
.suivi-entete { flex-wrap: wrap; }
.suivi-liste { flex: 1 1 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1ebe1; }
.suivi-famille { margin-bottom: 8px; }
.suivi-famille-nom { display: inline-block; margin-bottom: 5px; color: #006699; font-weight: 700; font-size: 14px; }
.suivi-famille ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.suivi-famille li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px 3px 10px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 20px; background: linear-gradient(var(--bloc-haut, #e6edf4), #fff); font-size: 13.5px; }
.suivi-famille li a { display: inline-flex; align-items: center; gap: 5px; color: #333; text-decoration: none; }
.suivi-famille li a:hover { color: #006699; }
.suivi-famille li a svg { width: 16px; height: 11px; flex: none; }
.suivi-ajouter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.suivi-ajouter small { color: #777; }

.suivi-repliable.replie { max-height: var(--suivi-max, 400px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.suivi-tout { margin-top: 4px; padding: 2px 4px; border: 0; background: none; color: #006699; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.suivi-tout:hover { text-decoration: underline; }
.suivi-tout .fa-chevron-down { transition: transform .2s; }
.suivi-tout.ouvert .fa-chevron-down { transform: rotate(180deg); }

/* Ma collection : ligne "collections suivies" (comme le mode completiste) */
.col-etat.col-suivis { margin-top: -8px; border: 1px solid #cfe3d3; background: #f1f9f2; color: #2d6a3a; }
.col-etat.col-suivis .fa-flag-checkered { color: #2e8b3d; }
/* Mes favoris > Mes collections suivies */
.fav-suivies .suivi-famille { margin-top: 12px; }
.fav-suivies h3.suivi-famille-nom { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid #f1ebe1; font-size: 15px; }
.fav-suivies h3.suivi-famille-nom small { color: #999; font-weight: 400; }
.suivi-pays { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-start; padding: 4px 0; }
.suivi-pays-nom { flex: 0 0 150px; display: inline-flex; align-items: center; gap: 6px; padding-top: 5px; color: #555; font-size: 13px; font-weight: 700; }
.suivi-pays-nom svg { width: 18px; height: 12px; flex: none; }
.suivi-pays ul, .suivi-nouvelles ul, .suivi-choix { display: flex; flex: 1 1 300px; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.suivi-pays li, .suivi-nouvelles li, .suivi-choix li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px 3px 10px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 20px; background: linear-gradient(var(--bloc-haut, #e6edf4), #fff); font-size: 13.5px; }
.suivi-choix li[hidden], .suivi-nouvelles[hidden] { display: none; }
.suivi-pays li a, .suivi-nouvelles li a, .suivi-choix li a { display: inline-flex; align-items: center; gap: 5px; color: #333; text-decoration: none; }
.suivi-pays li a:hover, .suivi-choix li a:hover { color: #006699; }
.suivi-pays li a svg, .suivi-nouvelles li a svg, .suivi-choix li a svg { width: 16px; height: 11px; flex: none; }
.suivi-nouvelles { margin-top: 12px; }
.suivi-filtres { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.suivi-filtres label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; color: #555; }
.suivi-filtres select, .suivi-filtres input { padding: 7px 10px; border: 1px solid #c9d4df; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.suivi-filtres .suivi-recherche { flex: 1 1 220px; }
.suivi-choix { max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #006699 #f1ece2; padding: 2px; }
@media (max-width: 600px) { .suivi-pays-nom { flex-basis: 100%; padding-top: 0; } }

/* Administration > Synonymes sur smartphone : les textes longs passent a la ligne */
@media (max-width: 760px) {
    .syn-table td, .syn-table td * { white-space: normal; }
    .syn-table td.syn-termes, .syn-table td.syn-cible { display: block; text-align: left; overflow-wrap: anywhere; }
    .syn-table td.syn-termes { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 6px; }
    .syn-table td.syn-cible b { overflow-wrap: anywhere; }
    .syn-table td.adm-col-actions { justify-content: flex-end; gap: 18px; }
}
.deal-charte span { flex: 1; min-width: 0; }

/* Administration > Messages > Salutations (une ligne par heure) */
.sal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 6px 14px; }
.sal-ligne { display: grid; grid-template-columns: 74px 1fr 120px; gap: 8px; align-items: start; padding: 6px 8px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 9px; background: linear-gradient(var(--bloc-haut, #e6edf4), #fff 40px); }
.sal-ligne.maintenant { border-color: #e48b21; box-shadow: 0 0 0 2px rgba(228,139,33,.2); }
.sal-heure { padding-top: 7px; color: #006699; font-weight: 700; font-size: 14px; }
.sal-heure small { display: block; color: #e48b21; font-size: 11px; font-weight: 700; }
.sal-ligne textarea, .sal-ligne select { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #c9d4df; border-radius: 7px; font: 14px var(--police); background: #fff; resize: vertical; }
.sal-boutons { margin-top: 12px; }
.sal-origine { margin-top: 8px; text-align: right; }
@media (max-width: 600px) { .sal-grille { grid-template-columns: 1fr; } .sal-ligne { grid-template-columns: 1fr 110px; } .sal-heure { grid-column: 1 / -1; padding-top: 0; } }

/* Administration > Cartes : boutons de la serie plus compacts (une seule ligne) */
.adm-actions-serie { flex-wrap: nowrap; gap: 6px; }
.adm-actions-serie .bouton { padding: 7px 11px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 1100px) { .adm-actions-serie { flex-wrap: wrap; } }
/* Administration > Remplacer les images d'une serie */
.rmp-table { display: grid; gap: 6px; }
.rmp-tete, .rmp-ligne { display: grid; grid-template-columns: 70px minmax(120px, 1fr) 110px 150px minmax(170px, 220px); gap: 10px; align-items: center; }
.rmp-tete { padding: 0 8px 4px; border-bottom: 2px solid #efe7da; color: #006699; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.rmp-ligne { padding: 6px 8px; border: 1px solid #f1ebe1; border-radius: 9px; background: #fff; }
.rmp-ligne.change { border-color: #f0c98f; background: #fffaf2; }
.rmp-ligne.fait { border-color: #bfe0bf; background: #f1f9f2; }
.rmp-ligne.erreur { border-color: #e7b3b0; background: #fbeceb; }
.rmp-num { font-weight: 700; }
.rmp-nom { display: flex; flex-direction: column; min-width: 0; }
.rmp-nom b { color: #006699; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmp-nom small { color: #888; }
.rmp-img { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; justify-content: center; color: #bbb; font-size: 12px; text-align: center; }
.rmp-img img { max-width: 100%; max-height: 120px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.rmp-img small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; }
.rmp-ligne.change .rmp-apres img { outline: 2px solid #e48b21; outline-offset: 1px; }
.rmp-choix select { width: 100%; padding: 6px 8px; border: 1px solid #c9d4df; border-radius: 7px; font: 13px var(--police); background: #fff; }
.rmp-seuls { margin-top: 14px; padding: 10px 12px; border: 1px dashed #e0b56a; border-radius: 9px; background: #fffaf0; }
.rmp-seuls h3 { margin: 0 0 8px; font-size: 14px; color: #a86500; }
.rmp-seuls h3 small { color: #8a7a5c; font-weight: 400; }
.rmp-seuls ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rmp-seuls li { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 90px; font-size: 12px; }
.rmp-seuls img { max-width: 90px; max-height: 110px; border-radius: 5px; }
@media (max-width: 760px) {
    .rmp-tete { display: none; }
    .rmp-ligne { grid-template-columns: 1fr 1fr; }
    .rmp-num, .rmp-nom, .rmp-choix { grid-column: 1 / -1; }
}

/* Administration > Journal de l'equipe */
.jrn-filtres { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 14px; }
.jrn-filtres label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; color: #555; }
.jrn-filtres select, .jrn-filtres input { padding: 7px 10px; border: 1px solid #c9d4df; border-radius: 8px; font: 14px var(--police); background: #fff; }
.jrn-filtres .jrn-texte { flex: 1 1 220px; }
.jrn-liste { margin: 0; padding: 0; list-style: none; }
.jrn-jour { margin: 12px 0 4px; padding-bottom: 3px; border-bottom: 1px solid #efe7da; color: #006699; font-weight: 700; font-size: 14px; }
.jrn-ligne { display: grid; grid-template-columns: 48px 170px 130px 1fr; gap: 10px; align-items: center; padding: 5px 4px; border-bottom: 1px solid #f6f1e8; font-size: 13.5px; }
.jrn-ligne time { color: #888; font-variant-numeric: tabular-nums; }
.jrn-qui { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; }
.jrn-qui .avatar-cadre, .jrn-qui .avatar { width: 24px; height: 24px; }
.jrn-page { display: inline-block; justify-self: start; padding: 1px 8px; border-radius: 10px; background: #eef4f9; color: #006699; font-size: 12px; font-weight: 700; }
.jrn-msg small { color: #999; }
@media (max-width: 700px) { .jrn-ligne { grid-template-columns: 44px 1fr; } .jrn-page, .jrn-msg { grid-column: 2; } }

/* Administration > Tableau de bord */
.tb-tuiles .tb-lien { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tb-tuiles .tb-lien:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.tb-maj { margin: -6px 0 14px; color: #999; font-size: 12.5px; text-align: right; }
.tb-alertes, .tb-journal { margin: 0; padding: 0; list-style: none; }
.tb-alertes li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; padding: 9px 12px; border-left: 4px solid #c9bfae; border-radius: 8px; background: #faf8f4; font-size: 14px; }
.tb-alertes li span { flex: 1; }
.tb-alertes li a { color: #006699; font-weight: 700; font-size: 13px; white-space: nowrap; }
.tb-alertes .tb-rouge { border-left-color: #c0392b; background: #fbeceb; } .tb-alertes .tb-rouge > i { color: #c0392b; }
.tb-alertes .tb-orange { border-left-color: #e48b21; background: #fff6ea; } .tb-alertes .tb-orange > i { color: #e48b21; }
.tb-alertes .tb-bleu { border-left-color: #006699; background: #eef5fa; } .tb-alertes .tb-bleu > i { color: #006699; }
.tb-ok .fa-circle-check { color: #2e8b3d; }
.tb-journal li { padding: 6px 0; border-bottom: 1px solid #f3eee5; font-size: 13.5px; }
.tb-journal time { color: #999; font-size: 12px; margin-right: 4px; }
.tb-plus { margin: 10px 0 0; text-align: right; }
.tb-plus a { color: #006699; font-weight: 700; }

/* Administration > Fiche d'un membre */
.adm-fiche { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; border: 1px solid #d8cdb9; border-radius: 7px; color: #006699; background: #fff; font-size: 13px; }
.adm-fiche:hover { border-color: #e48b21; color: #e48b21; }
.fm-tete { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.fm-avatar .avatar { width: 96px; height: 96px; }
.fm-id { flex: 1 1 300px; min-width: 0; }
.fm-id h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.fm-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.fm-puce { padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: #eee; color: #555; }
.fm-puce.vert { background: #e5f4e4; color: #2d6a3a; } .fm-puce.rouge { background: #fbebeb; color: #a3302a; } .fm-puce.or { background: #fff3cf; color: #8a6300; }
.fm-infos { margin: 0 0 8px; color: #666; font-size: 13.5px; }
.fm-liens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fm-liste { margin: 0; padding: 0; list-style: none; }
.fm-liste li { padding: 6px 0; border-bottom: 1px solid #f3eee5; font-size: 13.5px; }
.fm-liste li:last-child { border-bottom: 0; }
.fm-liste time { color: #999; font-size: 12px; margin-right: 6px; }
.fm-liste a { color: #006699; font-weight: 700; margin-left: 6px; }
.fm-vert { color: #2e8b3d; } .fm-rouge { color: #b3332d; }

/* Administration > Empreintes : liste des cartes pas encore calculees */
.emp-stats a { color: #006699; font-weight: 700; }
.emp-manquantes { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--mini-bord, #c9d4df); border-radius: 9px; background: #fff; }
.emp-manquantes summary { cursor: pointer; color: #006699; font-weight: 700; }
.emp-manquantes ul { max-height: 360px; overflow-y: auto; margin: 6px 0 0; padding: 0; list-style: none; scrollbar-width: thin; }
.emp-manquantes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f3eee5; font-size: 13.5px; }
.emp-manquantes li a { color: #333; text-decoration: none; } .emp-manquantes li a:hover { color: #006699; }
.emp-manquantes li small { color: #888; display: inline-flex; gap: 4px; align-items: center; } .emp-manquantes li small svg { width: 16px; height: 11px; }
.emp-raison { margin-left: auto; padding: 1px 8px; border-radius: 10px; background: #eef4f9; color: #006699; font-size: 12px; font-weight: 700; }
.emp-raison.alerte { background: #fbebeb; color: #a3302a; }

details[id] { scroll-margin-top: 130px; }
@media (max-width: 760px) { details[id] { scroll-margin-top: 80px; } }

/* ---------- Largeur du site (Administration > Parametres > Affichage) : classe du <body>, ordinateur seulement ---------- */
body.larg-1280 { --largeur: 1280px; }
body.larg-1440 { --largeur: 1440px; }
body.larg-1600 { --largeur: 1600px; }
body.larg-pleine { --largeur: var(--larg-max, 100%); }
@media (min-width: 1100px) { body.larg-pleine .int, body.larg-pleine .contenu, body.larg-pleine .footer-container { padding-left: 28px; padding-right: 28px; } }
/* pages de lecture (actualite, charte, mentions, guide...) : lignes de texte confortables meme sur un site large */
body.page-lecture .contenu { max-width: min(var(--largeur), 1100px); }

/* ---------- Anciens Safari (iPad iOS 15) : bandeau de rarete sur toute la largeur de la carte ----------
   (le <button> de la tuile n'y est pas toujours mis en page en flex : le bandeau, simple <span>, prenait la largeur du numero) */
.tuile-bandeau:not(.adm-rarete) { display: block; }

/* ---------- Bouton "Grand ecran" (js/grand_ecran.js) : toute la largeur de l'ecran, au choix du visiteur, ordinateur seulement ---------- */
.ge-bouton { display: none; }
@media (min-width: 1100px) {
    .ge-bouton { display: inline-flex; }
    .ge-bouton i { display: inline; font-size: 13px; }
    html.grand-ecran body { --largeur: var(--larg-max, 100%); }
    html.grand-ecran .int, html.grand-ecran .contenu, html.grand-ecran .footer-container { padding-left: 28px; padding-right: 28px; }
}

/* ---------- Largeur maximum en "Grand ecran" / "Pleine largeur" (Administration > Parametres > Affichage) : classe gemax-N du <body> ---------- */
body.gemax-1600 { --larg-max: 1600px; }
body.gemax-1800 { --larg-max: 1800px; }
body.gemax-1920 { --larg-max: 1920px; }
body.gemax-2200 { --larg-max: 2200px; }
body.gemax-2560 { --larg-max: 2560px; }

/* ===== Actualites : rubriques (Actualites, Dossiers...) ===== */
.adm-rub-filtre { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.adm-rub-filtre a { padding: 5px 12px; border: 1px solid #e3b98a; border-radius: 999px; background: #fffaf3; color: #c85f05; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.adm-rub-filtre a.actif { border-color: #e48b21; background: linear-gradient(#f5a54a, #e07a12); color: #fff; }
.adm-rub-filtre small { font-weight: 400; opacity: .8; }
.adm-rub-nom { color: #006699; font-weight: 600; }
.adm-cats-rub { display: flex; align-items: center; gap: 7px; margin: 16px 0 6px; color: #006699; font-size: 15px; }
.adm-cats-rub small { color: #888; font-weight: 400; }
.adm-maj { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 10px; padding: 9px 12px; border: 1px dashed #e3b98a; border-radius: 10px; background: #fffaf3; cursor: pointer; }
.adm-maj input { margin-top: 3px; }
.adm-maj small { display: block; color: #777; font-weight: 400; }
.adm-rubs-liste { display: grid; gap: 12px; margin: 10px 0 16px; padding: 0; list-style: none; }
.adm-rubs-liste > li { padding: 12px 14px; border: 1px solid #d9e2ea; border-radius: 12px; background: linear-gradient(#f4f8fb, #fff 60px); }
.adm-rub-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.adm-rub-tete > i { color: #006699; }
.adm-rub-tete > a { color: #006699; font-size: 16px; font-weight: 700; }
.adm-rub-tete small { color: #888; }
.adm-rub-champs { align-items: flex-end; }
.adm-rub-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; font-size: 14px; }
.adm-rub-options small { color: #888; }
.adm-rub-nouvelle { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed #e3b98a; border-radius: 12px; }
.adm-rub-nouvelle legend { padding: 0 6px; color: #c85f05; font-weight: 700; }
.news-maj { color: #2f7d44; font-weight: 600; }
.adm-rub-champs .adm-pos input { max-width: 90px; }

/* ===== accueil, bas de page :
   ligne A : [Qui est en ligne ? + Dossiers] (70 %) | [Soutenir + Decouverte] (30 %)
   ligne B : Derniers livres | [Derniers goodies (une rangee de 6) + Quel Saiyan s'est teleporte aujourd'hui ?]
   chaque ligne : colonnes a la meme hauteur ===== */
.acc-bas-a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.acc-bas-a.sans-droite { grid-template-columns: minmax(0, 1fr); }
.acc-bas-b { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.acc-pile { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-pile > .carte-bloc, .acc-bas-b > .carte-bloc { margin: 0; }
.acc-pile > .carte-bloc:last-child { flex: 1 1 auto; }   /* le dernier bloc de la pile s'etire jusqu'en bas de la ligne */
.acc-pile > .acc-en-ligne { display: flex; flex-direction: column; }
.acc-pile .en-ligne-total { margin-top: auto; }
.acc-pile .en-ligne-liste { margin-bottom: 10px; }
.acc-pile .acc-teleport { margin-top: 0; }
/* colonne de droite (25 %) : Soutenir en haut, Decouverte dessous. Posee "par-dessus" sa case : c'est la colonne de gauche
   (Qui est en ligne + Dossiers) qui donne la hauteur de la ligne ; la carte Decouverte se reduit pour tout faire tenir */
.acc-bas-droite { position: relative; min-width: 0; min-height: 320px; }
.acc-bas-droite > .acc-dec-colonne { position: absolute; inset: 0; }
.acc-bas-droite .acc-soutenir { order: -1; flex: none; }
.acc-bas-droite .acc-decouverte { flex: 1 1 0; min-height: 0; overflow: hidden; justify-content: flex-start; }
.acc-bas-droite .acc-decouverte-carte { flex: 1 1 0; width: auto; max-width: 100%; min-height: 0; aspect-ratio: 7 / 10; }
.acc-ferme { color: #888; font-size: 12px; font-weight: 400; }
.acc-dossiers-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-dossiers-grille .news-tuile-titre { font-size: 14px; }
/* Derniers goodies : une rangee de 6 petites vignettes */
.acc-goodies-rang { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.acc-goodies-rang[hidden] { display: none; }
.acc-goodies-rang a { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.acc-goodie-image { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 8px; background: #f6f2ea; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.acc-goodie-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.acc-goodies-rang a:hover .acc-goodie-image img { transform: scale(1.05); }
.acc-goodie-image .news-sans-image { display: flex; align-items: center; justify-content: center; height: 100%; color: #e3b98a; font-size: 26px; }
.acc-goodies-rang b { display: -webkit-box; overflow: hidden; margin-top: 4px; color: #333; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.acc-goodies-rang a:hover b { color: #006699; }
.acc-goodies-rang .acc-objet-collection { overflow: hidden; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 899px) {
    .acc-bas-a, .acc-bas-b { grid-template-columns: minmax(0, 1fr); }
    .acc-bas-droite { min-height: 0; }
    .acc-bas-droite > .acc-dec-colonne { position: static; }
    .acc-bas-droite .acc-decouverte, .acc-bas-droite .acc-decouverte-carte { flex: none; }
    .acc-bas-droite .acc-decouverte-carte { width: 100%; max-width: 230px; }
}
@media (max-width: 760px) {
    .acc-dossiers-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-goodies-rang { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* petits ecrans (400 px et moins) : livres et goodies sur une colonne, la liste des petites couvertures reprend sa hauteur naturelle */
@media (max-width: 400px) {
    .acc-livres .acc-objets-liste { height: auto; gap: 10px; }
    .acc-livres .acc-objets-liste li { flex: none; }
    .acc-livres .acc-objets-liste li + li { padding-top: 0; }
}

/* Decouverte : bouton de tirage a droite du titre (le texte d'aide est retire : la carte a plus de place) */
.acc-decouverte .acc-decouverte-tete { align-self: stretch; justify-content: space-between; gap: 10px; }
.acc-decouverte .acc-tirage { width: 34px; height: 34px; }
.acc-decouverte .acc-tirage svg { width: 19px; height: 19px; }

/* catalogue : images des series +20 % (58 -> 70 px), drapeaux des pays +50 % (21x14 -> 32x21), options d'affichage de la recherche avancee */
.capsules-bande .capsule { width: 70px; }
.serie-fleche { height: 70px; }
.cat-pays button .drapeau { width: 32px; height: 21px; }
.rech-entete-droite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* ---------- Fenetres d'apercu (cartes, packagings, livres, goodies, Ma collection) : image sur fond blanc sans cadre, fleches orange
   sur les bords de l'image, barre orange avec la croix au bout ; plus de bouton "Version HD" : loupe au survol de l'image (membres) ---------- */
.apercu-image { padding: 0; border: 0; border-radius: 0; background: none; }
.apercu-visuel { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.apercu-zoom { position: relative; display: flex; justify-content: center; min-width: 0; max-width: 100%; border-radius: 6px; cursor: zoom-in; }
.apercu-zoom:not([href]) { cursor: default; }
.apercu-zoom:focus-visible { outline: 3px solid rgba(228,139,33,.55); outline-offset: 2px; }
.apercu-loupe { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%; background: rgba(255,255,255,.93); color: #006699; font-size: 23px; box-shadow: 0 3px 12px rgba(0,0,0,.3);
    opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; pointer-events: none; }
.apercu-zoom[href]:hover .apercu-loupe, .apercu-zoom[href]:focus-visible .apercu-loupe { opacity: 1; transform: none; }
@media (hover: none) {   /* ecran tactile : petite loupe toujours visible en bas a droite de l'image */
    .apercu-zoom[href] .apercu-loupe { top: auto; left: auto; right: 8px; bottom: 8px; width: 36px; height: 36px; margin: 0; font-size: 15px; opacity: .92; transform: none; }
}
.apercu-visuel .obj-sans-image { width: 100%; min-height: 260px; }
.apercu-tete { display: flex; align-items: center; gap: 10px; }
.apercu-tete h3 { flex: 1; min-width: 0; }
.apercu-boutons { justify-content: center; }
@media (min-width: 761px) {
    .apercu-boite { padding: 18px 22px; }
    .apercu-tete .apercu-fermer { position: static; flex: none; width: 34px; height: 34px; font-size: 16px; }
    .apercu-visuel .apercu-nav { z-index: 4; top: 50%; width: 22px; height: 48px; margin-top: -24px; padding: 0; border-radius: 5px;
        background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
    .apercu-visuel .apercu-nav.prec { left: -11px; }
    .apercu-visuel .apercu-nav.suiv { right: -11px; left: auto; }
    .apercu-visuel .apercu-nav:hover:not(:disabled) { background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; filter: brightness(1.08); }
    .apercu-visuel .apercu-nav:disabled { opacity: .3; }
}

/* Administration > Synonymes : titres de colonnes cliquables pour trier (A-Z, utilise, modifie) */
.syn-table th .syn-tri { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; white-space: nowrap; }
.syn-table th .syn-tri i { font-size: 11px; opacity: .4; }
.syn-table th .syn-tri:hover i, .syn-table th .syn-tri.actif i { opacity: 1; color: #e48b21; }
.syn-table th .syn-tri.actif { text-decoration: underline; text-underline-offset: 3px; }

/* Actualites / Dossiers (article, liste et recherche) : contenu a 90 % de la largeur du site, centre (ordinateur) */
@media (min-width: 901px) {
    .news-page, .news-barre, .news-toutes { width: 90%; margin-left: auto; margin-right: auto; }
}

/* Actualites / Dossiers, ordinateur et tablette (hors smartphone) :
   - images de l'article (hors image d'en-tete) : lignes de 3 vignettes de meme taille ; une derniere ligne incomplete est centree
   - liste "Toutes les actualites / Tous les dossiers" : 6 vignettes par ligne */
@media (min-width: 561px) {
    .news-galerie, .news-galerie.n1, .news-galerie.n2, .news-galerie.n4 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .news-galerie figure { flex: 0 0 calc((100% - 20px) / 3); min-width: 0; }
    .news-galerie.n1 .news-photo { aspect-ratio: 4 / 3; }
    .news-galerie.n1 .news-photo img { height: 100%; }
}
@media (min-width: 761px) {
    .news-toutes .news-tuiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
    .news-toutes .news-tuile-titre { font-size: 13.5px; }
    .news-toutes .news-tuiles .news-date { font-size: 12px; }
    .news-toutes .news-tuiles .news-etiquette { top: 6px; left: 6px; max-width: calc(100% - 12px); font-size: 10px; }
}

/* Administration : collection / serie : bouton "Generer un debut de description" et encadre "Controle" (nombres de cartes) */
.adm-desc-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.adm-desc-auto .bouton { margin: 0; }
.adm-desc-auto .aide { margin: 0; }
.adm-desc-auto-msg { color: #2e8b57; font-size: 13px; font-weight: 600; }
.adm-controle { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #d6e2ec; border-radius: 8px; background: #f6f9fb; font-size: 13.5px; }
.adm-controle-titre { display: block; margin-bottom: 4px; color: #006699; }
.adm-controle-titre small { color: #888; font-weight: 400; }
.adm-controle ul { margin: 0; padding: 0; list-style: none; }
.adm-controle li { margin: 3px 0; color: #444; line-height: 1.45; }
.adm-controle li i { width: 16px; margin-right: 4px; color: #6f8ba0; text-align: center; }
.adm-controle li.ok i { color: #2e8b57; }
.adm-controle li.ecart i { color: #e07b10; }
.adm-controle li.ecart b { color: #c85f05; }
.adm-controle a { color: #006699; }

/* Administration > Cartes : recherche libre "contient" (+ collection) et note de la barre des actions en lot */
.adm-recherche-libre { margin-bottom: 4px; }
.adm-recherche-libre select { flex: 0 1 300px; min-width: 0; max-width: 340px; }
.adm-recherche-aide { margin: 0 0 4px; font-size: 12.5px; }
.adm-recherche-aide i { color: #6f8ba0; }
.adm-lot-note { flex-basis: 100%; color: #7a6d58; font-size: 12.5px; }
.adm-lot-note i { color: #e48b21; }
@media (max-width: 760px) { .adm-recherche-libre select { flex-basis: 100%; max-width: none; } }

/* Publications (actualites + dossiers) : onglets Tout / Actualites / Dossiers, repere "Dossier" sur les vignettes de l'onglet Tout */
.news-onglets { margin: 0 0 14px; }
.news-onglet-ferme { margin-left: 2px; font-size: 11px; opacity: .6; }
.news-tuile-image { position: relative; }
.news-rubrique-badge { position: absolute; left: 6px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px;
    background: rgba(0, 102, 153, .92); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* Maintenance : compte a rebours de l'ouverture automatique (page Maintenance) et reglage (Administration > Maintenance) */
.maint-compte { margin: 4px auto 22px; max-width: 620px; padding: 16px 18px; border: 1px solid #f0d9bb; border-radius: 12px; background: linear-gradient(#fffaf2, #fff3e3); }
.maint-compte-titre { margin: 0 0 10px; color: #c85f05; font-size: 15px; font-weight: 700; }
.maint-compte-cases { display: flex; justify-content: center; gap: 10px; }
.maint-case { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 6px 6px; border-bottom: 3px solid #bb540b; border-radius: 10px;
    background: linear-gradient(#e3a259 0%, #e2994c 45%, #e48b21 52%, #e5891c 100%); color: #fff; box-shadow: 0 3px 8px rgba(187,84,11,.25); }
.maint-case b { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(110,45,0,.45); }
.maint-case small { font-size: 11.5px; letter-spacing: .03em; opacity: .95; }
.maint-compte-fini { margin: 10px 0 0; color: #2e8b57; font-weight: 700; }
.maint-heures { display: flex; flex-direction: column; gap: 5px; margin: 14px auto 0; padding: 0; list-style: none; text-align: left; width: fit-content; max-width: 100%; }
.maint-heures li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #555; font-size: 14px; }
.maint-heures li span { min-width: 165px; color: #777; }
.maint-heures li b { color: #006699; }
.maint-heures .drapeau { width: 21px; height: 14px; }
.maint-ouverture { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px dashed #e3d3bb; }
.maint-ouverture small { color: #888; font-weight: 400; }
.maint-ouverture-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.maint-ouverture input[type="datetime-local"] { min-height: 40px; padding: 0 10px; border: 1px solid #d6dee6; border-radius: 8px; font: 14px var(--police); }
.maint-heures-admin { margin: 6px 0 0; }
@media (max-width: 560px) {
    .maint-case { min-width: 62px; } .maint-case b { font-size: 24px; }
    .maint-heures li span { min-width: 0; }
}

/* Administration > Membres (Webmaster) : filtres des comptes abandonnes, selection et actions en lot */
.adm-filtres-wm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex-basis: 100%; padding: 8px 10px; border: 1px dashed #e3c9a6; border-radius: 8px; background: #fffaf3; }
.adm-filtres-wm-titre { color: #c85f05; font-size: 13px; font-weight: 700; }
.adm-filtres-wm-titre small { color: #999; font-weight: 400; }
.adm-filtres-wm label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.adm-periode[hidden] { display: none; }
.adm-lot-membres { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #f0d9bb; border-radius: 10px; background: #fff8ee; }
.adm-lot-choix, .adm-lot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.adm-lot-nb { color: #006699; font-size: 13px; font-weight: 600; }
.adm-lot-garder { font-size: 13px; }
.adm-col-case { width: 34px; text-align: center; }
.adm-col-case input { width: 17px; height: 17px; cursor: pointer; }
.adm-protege { color: #b9b9b9; font-size: 12px; }
td.adm-a-cartes { color: #2e7d44; font-weight: 700; }
.lot-fenetre .lot-exclus, .lot-fenetre .lot-apercu { margin: 0 0 8px; font-size: 13px; color: #777; }
.lot-fenetre .lot-confirme { margin: 6px 0 10px; font-weight: 600; color: #b3332d; }
.lot-progression { height: 10px; margin: 8px 0 4px; border-radius: 6px; background: #f1e7da; overflow: hidden; }
.lot-progression span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #e3a259, #e5891c); transition: width .3s; }
.lot-etat { margin: 0 0 8px; color: #555; font-size: 13px; font-weight: 600; }

/* =================================================================
   DEALS : packagings, livres et goodies (filtre par famille, vignettes sans rarete)
   ================================================================= */
.deal-carte[hidden], .deal-groupe[hidden], .deal-vide-filtre[hidden] { display: none; }
.deal-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.deal-filtres button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #e2d6c3; border-radius: 99px; background: #fff; color: #555; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.deal-filtres button span { color: #999; font-size: 12px; }
.deal-filtres button i { color: #006699; }
.deal-filtres button:hover { border-color: #e48b21; color: #c85f05; }
.deal-filtres button.actif { border-color: #006699; background: #006699; color: #fff; }
.deal-filtres button.actif i, .deal-filtres button.actif span { color: #fff; }
.deal-bandeau-objet i { margin-right: 2px; font-size: 11px; }
.deal-sans-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #e3b98a; font-size: 30px; }
.deal-image-objet { background: #fff; }
.deal-serie-ico { color: #006699; }
.deal-bilan-detail { margin-left: 4px; color: #888; font-size: 13px; }
.deal-vide-filtre { margin: 10px 0 4px; font-size: 13px; }
.adm-deals-familles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.adm-deals-fam { padding: 2px 10px; border-radius: 99px; background: #f3eeee; color: #a55; font-size: 13px; }
.adm-deals-fam.ok { background: #e3f4e8; color: #237a3d; }

/* =================================================================
   ADMINISTRATION > PARAMETRES : rubriques repliables (details / summary)
   ================================================================= */
.param-plis-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; font-size: 13.5px; color: #777; }
.param-plis-outils span { margin-right: auto; }
.param-plis-outils .lien-bouton { color: #006699; font-weight: 600; }
.param-pli { padding: 0; }
.param-pli + .param-pli { margin-top: 10px; }
.param-titre { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; cursor: pointer; list-style: none; user-select: none; }
.param-titre::-webkit-details-marker { display: none; }
.param-titre::marker { content: ""; }
.param-titre:hover { background: rgba(0,102,153,.04); }
.param-titre:focus-visible { outline: 2px solid #006699; outline-offset: 2px; }
.param-titre-nom { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border: 1px solid var(--bloc-bord, #d7e2ec); border-radius: 99px; background: linear-gradient(#fff, #eef3f8);
    box-shadow: 0 1px 2px rgba(40,70,100,.08); color: #006699; font-size: 15px; font-weight: 700; }
.param-titre-nom i { color: #e48b21; }
.param-titre small { color: #999; font-size: 12.5px; }
.param-titre-erreur { color: #c0392b; font-size: 13px; font-weight: 700; }
.param-chevron { margin-left: auto; color: #e48b21; transition: transform .2s; }
.param-pli[open] > .param-titre .param-chevron { transform: rotate(180deg); }
.param-pli[open] > .param-titre { border-bottom: 1px solid #e6ecf2; border-radius: 12px 12px 0 0; }
.param-contenu { padding: 2px 18px 8px; }
@media (max-width: 700px) {
    .param-titre { padding: 9px 10px; gap: 8px; }
    .param-contenu { padding: 2px 10px 6px; }
}

/* =================================================================
   RECONNAISSANCE : NOUVELLE VERSION "CAMERA EN DIRECT" (compte/reconnaitre_camera.php) + choix de version (Administration > Empreintes)
   ================================================================= */
.reco-secours { margin: 10px 0 0; color: #777; font-size: 14px; text-align: center; }
.reco-secours .lien-bouton { color: #006699; font-weight: 600; cursor: pointer; }
.reco-secours .lien-bouton:hover { text-decoration: underline; }
.reco-direct-zone { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #111; line-height: 0; }
.reco-direct-zone video { display: block; max-width: 100%; max-height: 65vh; width: auto; height: auto; }
.reco-viseur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.reco-viseur .reco-viseur-carte { fill: rgba(228, 139, 33, .14); stroke: #e48b21; stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.reco-viseur.vu .reco-viseur-carte { opacity: 1; }
.reco-viseur.pret .reco-viseur-carte { fill: rgba(46, 158, 79, .2); stroke: #2e9e4f; }
.reco-viseur .reco-viseur-gabarit { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2px; stroke-dasharray: 10 7; vector-effect: non-scaling-stroke; transition: opacity .2s; }
.reco-viseur.vu .reco-viseur-gabarit { opacity: .35; }
.reco-formes { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.reco-formes button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border: 1px solid #e2d6c3; border-radius: 99px; background: #fff; color: #555; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.reco-formes button.actif { border-color: #006699; background: #006699; color: #fff; }
.reco-forme-ico { display: inline-block; border: 2px solid currentColor; border-radius: 2px; }
.reco-forme-ico.rect { width: 10px; height: 14px; }
.reco-forme-ico.carre { width: 13px; height: 13px; }
.reco-direct-etat { margin: 10px 0 4px; color: #006699; font-weight: 700; text-align: center; }
.emp-versions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.emp-version { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #d7e2ec; border-radius: 10px; background: #fff; color: #333; text-decoration: none; }
.emp-version i { color: #e48b21; font-size: 18px; }
.emp-version b { display: block; color: #006699; font-size: 13.5px; }
.emp-version small { color: #888; font-size: 12px; }
.emp-version.active { border-color: #2e9e4f; background: #eef8ee; }
.emp-version.active small { color: #2e8b3d; font-weight: 600; }
.emp-version:hover { border-color: #e48b21; }
.reco-v2 #recoChoix, .reco-v2 #recoDirect { flex-direction: column; align-items: center; }
.reco-v2 #recoDirect .reco-actions { justify-content: center; }

.reco-direct-barre { width: min(420px, 90%); height: 6px; margin: 10px auto 0; border-radius: 99px; background: #e6ecf2; overflow: hidden; }
.reco-direct-barre span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0a541, #e48b21); transition: width .12s linear; }
.reco-direct-barre.attente span { background: linear-gradient(90deg, #6bbf7d, #2e9e4f); animation: reco-attente 1s ease-in-out infinite alternate; }
@keyframes reco-attente { from { opacity: .55; } to { opacity: 1; } }

.reco-beta { margin: 0 0 12px; padding: 9px 12px; border: 1px dashed #e48b21; border-radius: 10px; background: #fff8ec; color: #6b4a1a; font-size: 13.5px; line-height: 1.5; }
.reco-beta a { color: #006699; font-weight: 700; }
.reco-beta-badge { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; padding: 1px 9px; border-radius: 99px; background: linear-gradient(#f0a541, #e48b21); color: #fff; font-size: 12px; font-weight: 700; }
.reco-conseils { margin: 16px 0 8px; padding: 0; list-style: none; font-size: 13.5px; color: #555; }
.reco-conseils li { display: flex; gap: 9px; align-items: baseline; padding: 4px 0; }
.reco-conseils li i { flex: none; width: 16px; color: #e48b21; text-align: center; }
.reco-prive { color: #888; font-size: 12.5px; }
/* accueil, Derniers goodies : pages de 8 ; ordinateur = une rangee de 7 (le 8e masque), smartphone = 2 rangees de 4 */
@media (min-width: 761px) { .acc-goodies-rang li:nth-child(n+8) { display: none; } }

/* accueil : livre d'or sous "Derniere mise en ligne de serie" (colonne de gauche) ; 3e lien "Suivez-nous" (Animecollection, vert) */
.acc-gauche > .acc-series { flex: 1; }
.acc-gauche > .livre-bandeau { margin: 0; }
.acc-reseau.anime { background: linear-gradient(#3fae5a, #23893d); }
@media (max-width: 899px) { .acc-reseaux { flex-wrap: wrap; } .acc-reseau { flex: 1 1 180px; } }

/* ================================================================ FETE DE L'ACCUEIL : confettis (js/fete.js, inc/fete_fn.php) */
.fete-toile{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:10000}
.fete-bandeau{position:fixed;top:12px;left:50%;z-index:10001;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;
  padding:10px 10px 10px 16px;background:#fff;color:#006699;border:2px solid #ff8c00;border-radius:16px;
  box-shadow:0 0 10px rgba(255,140,0,.6),0 8px 24px rgba(0,0,0,.18);opacity:0;transform:translate(-50%,-140%);
  transition:transform .55s cubic-bezier(.2,1.25,.4,1),opacity .4s ease}
.fete-bandeau.visible{opacity:1;transform:translate(-50%,0)}
.fete-bandeau > i{flex:none;font-size:1.7em;color:#ff7a00}
.fete-bandeau-texte{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.fete-bandeau-texte b{font-size:1.08em}
.fete-bandeau-texte span{color:#4a5560;font-size:.9em}
.fete-fermer{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff;background:linear-gradient(#ffa62b,#ff7a00);box-shadow:0 2px 6px rgba(255,122,0,.45)}
.fete-fermer:hover,.fete-fermer:focus-visible{background:linear-gradient(#ffb547,#ff6a00);outline:none}
@media (max-width:600px){.fete-bandeau{top:8px;gap:9px;padding:8px 8px 8px 12px;font-size:.9em;border-radius:14px}.fete-bandeau > i{font-size:1.4em}}
@media (prefers-reduced-motion:reduce){.fete-bandeau{transition:opacity .3s}.fete-bandeau,.fete-bandeau.visible{transform:translate(-50%,0)}}
/* Administration > Messages : essai des confettis */
.fete-adm-tests{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}

/* ---------- Cadrage des vignettes d'actualite (inc/news_fn.php > news_cadrage_classes, admin : cadre "Vignette") ---------- */
img.cadre { object-position: var(--cx, 50%) var(--cy, 50%) !important; }
.cx-0{--cx:0%} .cx-5{--cx:5%} .cx-10{--cx:10%} .cx-15{--cx:15%} .cx-20{--cx:20%} .cx-25{--cx:25%} .cx-30{--cx:30%} .cx-35{--cx:35%} .cx-40{--cx:40%} .cx-45{--cx:45%} .cx-50{--cx:50%} .cx-55{--cx:55%} .cx-60{--cx:60%} .cx-65{--cx:65%} .cx-70{--cx:70%} .cx-75{--cx:75%} .cx-80{--cx:80%} .cx-85{--cx:85%} .cx-90{--cx:90%} .cx-95{--cx:95%} .cx-100{--cx:100%}
.cy-0{--cy:0%} .cy-5{--cy:5%} .cy-10{--cy:10%} .cy-15{--cy:15%} .cy-20{--cy:20%} .cy-25{--cy:25%} .cy-30{--cy:30%} .cy-35{--cy:35%} .cy-40{--cy:40%} .cy-45{--cy:45%} .cy-50{--cy:50%} .cy-55{--cy:55%} .cy-60{--cy:60%} .cy-65{--cy:65%} .cy-70{--cy:70%} .cy-75{--cy:75%} .cy-80{--cy:80%} .cy-85{--cy:85%} .cy-90{--cy:90%} .cy-95{--cy:95%} .cy-100{--cy:100%}
.adm-cadrage { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed #e48b21; border-radius: 10px; background: #fffaf3; }
.adm-cadrage-tete { margin: 0 0 8px; } .adm-cadrage-tete small { display: block; color: #777; }
.adm-cadrage-vues { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.adm-cadrage-vue { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #eee; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.adm-cadrage-une { width: min(320px, 100%); aspect-ratio: 16 / 10; cursor: grab; touch-action: none; }
.adm-cadrage-une.glisse { cursor: grabbing; } .adm-cadrage-une:focus-visible { outline: 3px solid #e48b21; outline-offset: 2px; }
.adm-cadrage-petite { width: 104px; aspect-ratio: 3 / 2; }
.adm-cadrage-vue img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.adm-cadrage-vue small { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.adm-cadrage-mini { margin: 6px 0 4px; padding: 0; border: 0; background: none; }
.adm-cadrage-galerie { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; cursor: grab; touch-action: none; box-shadow: none; outline: 1px dashed #e48b21; outline-offset: 1px; }
.adm-cadrage-galerie.glisse { cursor: grabbing; } .adm-cadrage-galerie:focus-visible { outline: 3px solid #e48b21; }
.adm-cadrage-centrer-mini { margin-top: 3px; padding: 0; border: 0; background: none; color: #c46a0c; font: 600 11.5px var(--police); cursor: pointer; }
.adm-cadrage-centrer-mini:hover, .adm-cadrage-centrer-mini:focus-visible { text-decoration: underline; }
