/* ==========================================================================
   Mytripbook — système de design (refonte du 24/10/2026)
   Une seule feuille (remplace les 9 CSS hérités du --NEW). Bootstrap 5 reste chargé
   pour la grille, les utilitaires et les composants JS (menu, carrousel, fenêtres).
   Sommaire : 1. Variables  2. Base  3. Boutons  4. En-tête  5. Pied de page
   6. Titres & en-têtes de page  7. Cartes  8. Pagination  9. Accueil  10. Voyage
   11. Billet & visionneuse  12. Membre  13. Stop'it  14. Connexion & erreurs  15. Mouvement réduit
   16. Formulaires (placée avant les règles responsives communes)
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
    --rouge: #c00019;
    --rouge-vif: #e0283f;
    --rouge-fonce: #98000f;
    --orange: #ee8b1e;
    --orange-clair: #ffc062;
    --turquoise: #1f9e98;
    --turquoise-clair: #5ddbd5;
    --vert: #16a34a;

    --encre: #18181b;
    --texte: #34343a;
    --texte-doux: #6b6b73;
    --texte-pale: #9a9aa3;
    --ligne: #ebe8e3;
    --fond: #f7f5f2;
    --fond-chaud: #fbf7f2;
    --carte: #ffffff;
    --nuit: #121419;

    --police-titre: Poppins, system-ui, sans-serif;
    --police-texte: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;

    --rayon: 16px;
    --rayon-petit: 10px;
    --ombre: 0 1px 2px rgba(20, 20, 30, .05), 0 0 0 1px rgba(20, 20, 30, .05);
    --ombre-survol: 0 18px 36px -14px rgba(20, 20, 40, .28), 0 0 0 1px rgba(20, 20, 30, .04);
    --ombre-forte: 0 24px 50px -12px rgba(20, 20, 40, .25), 0 0 0 1px rgba(0, 0, 0, .04);
    --hauteur-entete: 76px;
    --transition: .25s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + 16px); }
body {
    font-family: var(--police-texte);
    font-size: 16px;
    line-height: 1.6;
    color: var(--texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--encre); letter-spacing: -.02em; }
a { color: var(--rouge); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rouge-fonce); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(192, 0, 25, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(238, 139, 30, .25); }
.container { max-width: 1240px; }
main { display: block; min-height: 50vh; }

.lien_evitement {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    padding: 10px 16px; border-radius: 10px; background: var(--encre); color: #fff;
}
.lien_evitement:focus { top: 12px; color: #fff; }

.avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #e9e6e1; }
.avatar_24 { width: 24px; height: 24px; }
.avatar_32 { width: 32px; height: 32px; }
.avatar_40 { width: 40px; height: 40px; }
.drapeau { display: inline-block; height: 14px; width: auto; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Lien qui rend toute la carte cliquable (les liens/boutons internes restent cliquables au-dessus) */
.lien_etendu::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Pastilles / badges génériques */
.badge_mtb {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.3;
    background: #f1eee9; color: var(--texte);
}
.badge_mtb i { font-size: 12px; opacity: .8; }

/* main_2025.css (ancien) forçait b/strong en noir : on n'impose plus rien */
b, strong { font-weight: 700; }

/* ---------- 3. Boutons ---------- */
.btn_mtb, .btn_mtb_clair, .btn_mtb_contour, .btn_action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; font-family: var(--police-texte); font-weight: 700; line-height: 1.2;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn_mtb, .btn_mtb_clair, .btn_mtb_contour { padding: 12px 24px; font-size: 16px; }
.btn_mtb { background: var(--rouge); color: #fff; border: 2px solid var(--rouge); box-shadow: 0 8px 20px -6px rgba(192, 0, 25, .55); }
.btn_mtb:hover, .btn_mtb:focus-visible { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #fff; transform: translateY(-1px); }
.btn_mtb i { font-size: 13px; transition: transform .2s; }
.btn_mtb:hover .fa-arrow-right { transform: translateX(3px); }
.btn_mtb_clair { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.btn_mtb_clair:hover, .btn_mtb_clair:focus-visible { background: #fff; color: var(--encre); }
.btn_mtb_contour { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.btn_mtb_contour:hover, .btn_mtb_contour:focus-visible { background: var(--encre); color: #fff; }
.btn_petit { padding: 8px 16px !important; font-size: 14px !important; }
.btn_icone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: transparent; color: inherit; font-size: 17px; cursor: pointer; transition: background-color .2s;
}
.btn_icone:hover { background: rgba(0,0,0,.06); color: inherit; }

/* Boutons j'aime / enregistrer / favori / partager */
.btn_action {
    padding: 9px 16px; font-size: 14px; font-weight: 700;
    background: #fff; color: var(--texte); border: 1px solid var(--ligne);
}
.btn_action:hover { border-color: #d8d3cc; color: var(--encre); transform: translateY(-1px); }
.btn_action:active { transform: scale(.95); }
.btn_action.en_cours { opacity: .55; pointer-events: none; }
.btn_like.actif { color: #dc2626; border-color: rgba(220, 38, 38, .35); background: #fef2f2; }
.btn_save.actif { color: #2563eb; border-color: rgba(37, 99, 235, .3); background: #eff6ff; }
.btn_favori.actif { color: #d97706; border-color: rgba(217, 119, 6, .35); background: #fffbeb; }

/* ---------- 4. En-tête ---------- */
/* Blanc et léger (choix d'Aymeric), mais plus net que l'ancien : logo 46 px, menu Poppins encre, actif souligné rouge */
.entete_site {
    position: sticky; top: 0; z-index: 1030;
    height: var(--hauteur-entete);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid rgba(20, 20, 30, .07);
    color: var(--encre);
    transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.entete_site::after {   /* fin filet aux couleurs de la marque */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--rouge), var(--orange) 55%, var(--turquoise)); opacity: .85; transition: opacity .3s;
}
.entete_interieur { display: flex; align-items: center; gap: 20px; height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.entete_logo { display: inline-flex; flex: 0 0 auto; }
.entete_logo img { height: 46px; width: auto; }
.entete_logo .logo_clair { display: none; }
.entete_nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; min-width: 0; }
.entete_nav a {
    position: relative; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
    font-family: var(--police-titre); font-weight: 500; font-size: 15px; letter-spacing: -.005em; color: inherit;
    transition: color .2s;
}
.entete_nav a i { display: none; }
.entete_nav a:hover { color: var(--rouge); }
.entete_nav a.actif { color: var(--rouge); font-weight: 600; }
.entete_nav a.actif::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: currentColor; }
.entete_actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.entete_lien { font-weight: 700; font-size: 15px; color: inherit; padding: 8px 10px; white-space: nowrap; }
.entete_lien:hover { color: var(--rouge); }
.menu_membre {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
    border: 1px solid rgba(0,0,0,.1); border-radius: 999px; background: rgba(255,255,255,.6);
    font-weight: 700; font-size: 14px; color: inherit; cursor: pointer;
}
.menu_membre i { font-size: 11px; opacity: .6; }
.menu_deroulant { border: 0; border-radius: 14px; padding: 8px; min-width: 230px; box-shadow: var(--ombre-forte); }
.menu_deroulant .dropdown-item { border-radius: 9px; padding: 9px 12px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.menu_deroulant .dropdown-item i { width: 18px; text-align: center; color: var(--texte-doux); }
.menu_deroulant .dropdown-item:active { background: var(--rouge); }
.entete_burger { display: none; }
/* Écrans moyens : le menu ne déborde jamais (pseudo puis libellé « Publier » masqués) */
@media (max-width: 1439px) { .menu_membre span, .menu_membre i { display: none; } .menu_membre { padding: 3px; } }
@media (max-width: 1365px) { .entete_actions .btn_publier span { display: none; } .entete_nav a { padding: 8px 10px; } .entete_nav a.actif::after { left: 10px; right: 10px; } }

/* Accueil : en-tête transparent posé sur la bannière, puis blanc au défilement */
.entete_transparente { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.entete_transparente::after { opacity: 0; }
.entete_transparente::before {
    content: ""; position: absolute; inset: 0 0 -30px; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); transition: opacity .3s;
}
.entete_transparente .logo_sombre { display: none; }
.entete_transparente .logo_clair { display: block; }
.entete_transparente .entete_nav a:hover, .entete_transparente .entete_nav a.actif { color: #fff; }
.entete_transparente .menu_membre { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }
.entete_transparente .btn_icone:hover { background: rgba(255,255,255,.15); }
.entete_transparente.entete_pleine {
    background: rgba(255,255,255,.92); border-color: rgba(20,20,30,.07); color: var(--encre);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 6px 20px -12px rgba(0,0,0,.25);
}
.entete_transparente.entete_pleine::before { opacity: 0; }
.entete_transparente.entete_pleine::after { opacity: .85; }
.entete_transparente.entete_pleine .logo_sombre { display: block; }
.entete_transparente.entete_pleine .logo_clair { display: none; }
.entete_transparente.entete_pleine .entete_nav a:hover, .entete_transparente.entete_pleine .entete_nav a.actif { color: var(--rouge); }
.entete_transparente.entete_pleine .menu_membre { background: #fff; border-color: rgba(0,0,0,.1); }
.entete_transparente.entete_pleine .btn_icone:hover { background: rgba(0,0,0,.06); }
.entete_transparente .entete_interieur { position: relative; }

/* Menu mobile */
.menu_mobile { width: min(340px, 88vw) !important; border: 0; }
.menu_mobile .offcanvas-header { padding: 18px 20px; border-bottom: 1px solid var(--ligne); }
.menu_mobile .offcanvas-body { padding: 14px 14px 24px; }
.menu_mobile nav a {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px;
    font-weight: 700; font-size: 17px; color: var(--encre);
}
.menu_mobile nav a i { width: 22px; text-align: center; color: var(--rouge); }
.menu_mobile nav a.actif, .menu_mobile nav a:hover { background: var(--fond); }
.menu_mobile hr { margin: 12px 6px; opacity: .1; }

/* ---------- 5. Pied de page ---------- */
.pied_site { position: relative; isolation: isolate; margin-top: 80px; background: var(--nuit); color: rgba(255,255,255,.72); font-size: 15px; }
.pied_site::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: -1; pointer-events: none; background: url("../img/fond_monuments_clair.png") center bottom / auto 100% repeat-x; opacity: .07; }
.pied_grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 40px; }
.pied_site h3 { font-family: var(--police-texte); font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.pied_site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pied_site a { color: rgba(255,255,255,.72); }
.pied_site a:hover { color: #fff; }
.pied_marque img { height: 46px; width: auto; margin-bottom: 16px; }
.pied_marque p { max-width: 340px; line-height: 1.6; }
.pied_coeur .fa-heart { color: var(--rouge-vif); }
.pied_contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff !important; font-weight: 700; }
.pied_contact:hover { background: #fff; color: var(--encre) !important; }
.pied_bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.5); }
.pied_liens { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; }

/* Bouton retour en haut */
.retour_haut {
    position: fixed; right: 20px; bottom: 20px; z-index: 1020;
    width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--encre); color: #fff; box-shadow: var(--ombre-forte);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.retour_haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.retour_haut:hover { color: #fff; background: var(--rouge); }

/* Message flash */
.message_flash { margin: 18px auto 0; max-width: 1240px; padding: 0 12px; }
.message_flash div { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #ecfdf3; color: #166534; font-weight: 600; box-shadow: var(--ombre); }

/* ---------- 6. Titres de section & en-têtes de page ---------- */
.section_entete { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.titre_section {
    flex: 1; min-width: 0; margin: 0;
    font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.15; letter-spacing: -.03em;
}
.titre_section::before {   /* signature : trait dégradé rouge → orange au-dessus du titre */
    content: ""; display: block; width: 46px; height: 5px; margin-bottom: 12px; border-radius: 999px;
    background: linear-gradient(90deg, var(--rouge), var(--orange));
}
.titre_section small { font-family: var(--police-texte); font-weight: 600; font-size: .6em; color: var(--texte-pale); letter-spacing: 0; margin-left: 4px; }
.section_liens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; font-size: 15px; }
.section_liens > a { white-space: nowrap; }
.section_liens a:not([class*="btn_"]) { color: var(--texte-doux); font-weight: 600; }
.section_liens a:not([class*="btn_"]):hover { color: var(--rouge); }
.section_bloc { padding-top: 64px; }

.entete_page {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 64px 0 42px; color: #fff;
    background:
        radial-gradient(640px 280px at 4% 0%, rgba(238, 139, 30, .38), transparent 68%),
        radial-gradient(560px 300px at 100% 0%, rgba(31, 158, 152, .32), transparent 68%),
        radial-gradient(900px 320px at 58% 135%, rgba(192, 0, 25, .5), transparent 70%),
        linear-gradient(180deg, #1a1d25, var(--nuit));
}
.entete_page::before {   /* silhouette des monuments du monde (ancien site), en clair sur le fond sombre */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; pointer-events: none;
    background: url("../img/fond_monuments_clair.png") center bottom / cover no-repeat; opacity: .17;
}
.entete_page .container { position: relative; z-index: 1; }
.entete_page_sur { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rouge); }
.entete_page .entete_page_sur { color: var(--orange-clair); }
.entete_page h1 { margin: 0; color: #fff; font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; }
.entete_page_sous { margin: 12px 0 0; font-size: 17.5px; color: var(--texte-doux); max-width: 700px; }
.entete_page .entete_page_sous { color: rgba(255, 255, 255, .78); }
.entete_page_image::before {   /* photo à la place de la hachure */
    width: auto; left: 0; -webkit-mask-image: none; mask-image: none; background-size: cover;
    background: var(--img) center / cover no-repeat; opacity: .5;
}
.entete_page_image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,20,25,.92) 0%, rgba(18,20,25,.55) 55%, rgba(18,20,25,.25) 100%), linear-gradient(0deg, rgba(18,20,25,.6), transparent 60%); }
.entete_page .btn_mtb_contour { color: #fff; border-color: rgba(255,255,255,.7); }
.entete_page .btn_mtb_contour:hover, .entete_page .btn_mtb_contour:focus-visible { background: #fff; color: var(--encre); border-color: #fff; }
.entete_page a:not([class]) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Onglets (filtres de liste, navigation de profil) */
.onglets { display: flex; gap: 8px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.onglets::-webkit-scrollbar { display: none; }
.onglet {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    padding: 9px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--ligne);
    font-weight: 700; font-size: 14.5px; color: var(--texte);
    transition: background-color .2s, color .2s, border-color .2s;
}
.onglet i { font-size: 13px; opacity: .7; }
.onglet:hover { border-color: #d6d0c8; color: var(--encre); }
.onglet.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.onglet.actif i { opacity: 1; }
.onglet .fa-external-link-alt { font-size: 10px; opacity: .45; }
.entete_page .onglet { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.entete_page .onglet:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
.entete_page .onglet.actif { background: #fff; border-color: #fff; color: var(--encre); }

/* ---------- 7. Cartes ---------- */
.grille_cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.grille_4 { grid-template-columns: repeat(4, 1fr); }
.grille_3 { grid-template-columns: repeat(3, 1fr); }
.grille_2 { grid-template-columns: repeat(2, 1fr); }
.liste_vide { padding: 60px 20px; text-align: center; color: var(--texte-doux); background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); }
.liste_vide i { display: block; font-size: 34px; margin-bottom: 12px; color: var(--texte-pale); }
.liste_vide h2, .liste_vide h3 { font-size: 20px; margin: 0 0 6px; }

.carte {
    position: relative; display: flex; flex-direction: column;
    background: var(--carte); border-radius: var(--rayon); overflow: hidden;
    box-shadow: var(--ombre); transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-survol); }
.carte_media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6e1; }
.carte_media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.carte:hover .carte_media > img { transform: scale(1.06); }
.carte_media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); pointer-events: none; }
.pastille_media {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
    padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3;
    background: rgba(255,255,255,.94); color: var(--encre); box-shadow: 0 4px 12px -4px rgba(0,0,0,.25);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pastille_haut { top: 12px; left: 12px; }
.pastille_bas { bottom: 12px; left: 12px; }
.pastille_droite { left: auto; right: 12px; }
.pastille_plongee { background: #1b8bb4; color: #fff; }
.pastille_sombre { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.carte_drapeaux { position: absolute; z-index: 2; bottom: 12px; right: 12px; display: flex; gap: 4px; }
.carte_drapeaux img { height: 15px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.carte_fav { position: absolute; z-index: 3; top: 10px; right: 10px; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; color: var(--texte); box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.carte_fav.actif { color: #d97706; background: #fff; }
.carte_corps { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; }
.carte_sur { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--orange); }
.carte_titre {
    margin: 0; font-family: var(--police-titre); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.02em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.carte_titre a { color: var(--encre); }
.carte:hover .carte_titre a { color: var(--rouge); }
.carte_lieu { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--texte-doux); }
.carte_lieu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte_extrait { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: #4a4a52; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte_stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0; padding: 6px 0 0; list-style: none; font-size: 13.5px; color: var(--texte-doux); }
.carte_stats li { display: inline-flex; align-items: center; gap: 6px; }
.carte_stats i { font-size: 12px; color: var(--texte-pale); }
.carte_pied { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid #f1eee9; }
.auteur { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--texte); }
.auteur span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.auteur strong { font-size: 14px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auteur small { font-size: 12.5px; color: var(--texte-pale); }
.auteur:hover strong { color: var(--rouge); }
.carte_infos { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texte-pale); white-space: nowrap; }
.carte_infos i { font-size: 12px; }
.carte_infos .fa-heart { color: #e11d48; }

/* ---------- 8. Pagination ---------- */
.pagination_mtb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination_mtb a, .pagination_mtb span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 15px; color: var(--texte); background: #fff; border: 1px solid var(--ligne);
}
.pagination_mtb a:hover { border-color: #cfc8bf; color: var(--encre); }
.pagination_mtb .actuelle { background: var(--encre); border-color: var(--encre); color: #fff; }
.pagination_mtb .desactive { opacity: .4; pointer-events: none; }
.pagination_mtb .ellipse { border: 0; background: transparent; min-width: 20px; padding: 0; }
.pagination_resume { width: 100%; text-align: center; margin-top: 4px; font-size: 13.5px; color: var(--texte-pale); }

/* ---------- 9. Accueil ---------- */
.section_accueil { padding-top: 64px; }

/* Bannière (mêmes photos que le --NEW) — l'en-tête transparent est posé dessus */
.hero_accueil { position: relative; height: clamp(560px, 86vh, 780px); background: var(--nuit); }
.hero_accueil .carousel-inner, .hero_accueil .carousel-item { height: 100%; }
.hero_accueil .carousel-item { background: #1f2d36 center / cover no-repeat; }
.hero_accueil .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.16) 34%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.66) 100%);
}
.hero_contenu {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: calc(var(--hauteur-entete) + 40px) 20px 130px; color: #fff;
}
.hero_etiquette {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px;
    border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
    font-size: 14px; font-weight: 700;
}
/* Titres h1/h2 : typographie du --NEW (Poppins 700, -3 px à 90 px, interligne 80/90), 2 lignes max sur bureau (+ site.js) */
.hero_titre {
    font-family: var(--police-titre); font-weight: 700;
    font-size: clamp(2.6rem, 5.6vw, 5.625rem); line-height: .92; letter-spacing: -.033em;
    max-width: min(100%, 1180px); margin: 0 0 22px; color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,.35); text-wrap: balance;
}
.hero_texte { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 620px; margin: 0 0 30px; opacity: .95; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero_actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero_accueil .carousel-control-prev, .hero_accueil .carousel-control-next { width: 8%; opacity: 0; transition: opacity .3s; z-index: 3; }
.hero_accueil:hover .carousel-control-prev, .hero_accueil:hover .carousel-control-next { opacity: .8; }
.hero_accueil .carousel-indicators { bottom: 84px; z-index: 3; }
.hero_accueil .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; }

/* Chiffres clés (carte posée sur le bas de la bannière) */
.chiffres_cles_conteneur { position: relative; z-index: 5; margin-top: -64px; }
.chiffres_cles {
    position: relative; display: grid; grid-template-columns: repeat(var(--nb-chiffres, 6), 1fr);
    background: #fff url("../img/fond_monuments.jpg") center bottom / cover no-repeat; border-radius: 22px; padding: 12px; overflow: hidden; box-shadow: var(--ombre-forte);
}
.chiffres_cles::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--rouge), var(--orange) 50%, #2bb5b0); }
.chiffre {
    --accent-a: var(--rouge-vif); --accent-b: var(--rouge); --accent-voile: rgba(192, 0, 25, .06);
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 22px 10px 18px; border-radius: 16px; transition: background-color .25s, transform .25s;
}
.chiffre_orange { --accent-a: var(--orange-clair); --accent-b: var(--orange); --accent-voile: rgba(248, 177, 71, .13); }
.chiffre_turquoise { --accent-a: var(--turquoise-clair); --accent-b: var(--turquoise); --accent-voile: rgba(63, 208, 212, .13); }
.chiffre + .chiffre::before { content: ""; position: absolute; left: 0; top: 22%; width: 1px; height: 56%; background: linear-gradient(transparent, rgba(0,0,0,.1), transparent); }
.chiffre:hover { background: var(--accent-voile); transform: translateY(-3px); }
.chiffre:hover::before, .chiffre:hover + .chiffre::before { opacity: 0; }
.chiffre_icone {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 14px;
    border-radius: 17px; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 10px 20px -6px var(--accent-b); transform: rotate(-7deg); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.chiffre:hover .chiffre_icone { transform: rotate(0) scale(1.08); }
.chiffre_valeur { display: block; font-family: var(--police-titre); font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -1px; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffre_libelle { display: block; margin-top: 7px; font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--texte-pale); }

/* Points pulsés */
.point_pulse { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.point_pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: mtb-pulse 1.8s ease-out infinite; }
.point_vert { background: #22c55e; }
.point_blanc { background: #fff; }
@keyframes mtb-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* « En ce moment » : voyages en cours / retours + fil d'activité */
.bloc_moment_titre { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--police-titre); font-size: 17px; font-weight: 700; color: var(--encre); }
.bloc_moment_titre .fa-plane-arrival { color: var(--turquoise); }
.bloc_moment_compteur { padding: 1px 9px; border-radius: 999px; background: #ece8e2; font-family: var(--police-texte); font-size: 13px; font-weight: 800; color: var(--texte-doux); }
.voyageurs_defile { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.voyageurs_defile > .carte_en_voyage { flex: 0 0 min(290px, 82%); scroll-snap-align: start; }
.carte_en_voyage {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
    height: 340px; padding: 14px; border-radius: 18px; overflow: hidden; color: #fff; box-shadow: 0 12px 28px -14px rgba(0,0,0,.45);
}
.carte_en_voyage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #2a3440 var(--img) center / cover no-repeat; transition: transform .7s ease; }
.carte_en_voyage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.84) 100%); }
.carte_en_voyage:hover { color: #fff; }
.carte_en_voyage:hover::before { transform: scale(1.07); }
.carte_en_voyage_haut { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.carte_en_voyage_haut img { width: 30px; height: 30px; object-fit: cover; border: 2px solid #fff; }
.pastille_en_voyage {
    display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); font-size: 12px; font-weight: 800;
}
.pastille_de_retour { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.25); }
.carte_en_voyage_bas { display: flex; flex-direction: column; gap: 8px; }
.carte_en_voyage_pays { display: flex; gap: 5px; }
.carte_en_voyage_pays img { height: 16px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.carte_en_voyage_titre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--police-titre); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.progression { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.progression > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--orange-clair), #ff5a4e); }
.progression_terminee > span { background: rgba(255,255,255,.65); }
.progression_texte { font-size: 13px; opacity: .92; }
.progression_texte span { opacity: .8; }

.direct_carte {
    position: relative; display: flex; flex-direction: column; height: 100%; max-height: 384px;
    padding: 18px 18px 6px; border-radius: 18px; color: #fff;
    background: radial-gradient(120% 80% at 100% 0%, rgba(225, 29, 46, .35), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(43, 181, 176, .22), transparent 60%), #14171c;
    box-shadow: 0 18px 36px -16px rgba(0,0,0,.55);
}
.direct_large { max-height: none; height: auto; }
.direct_entete { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--police-titre); font-size: 16px; font-weight: 700; }
.direct_entete_compte { margin-left: auto; font-family: var(--police-texte); font-size: 13px; font-weight: 500; opacity: .6; }
.badge_live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: #e11d2e; font-family: var(--police-texte); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; box-shadow: 0 0 0 4px rgba(225, 29, 46, .2); }
.badge_fil { background: var(--orange); box-shadow: 0 0 0 4px rgba(238, 139, 30, .2); }
.direct_flux { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.direct_large .direct_flux { -webkit-mask-image: none; mask-image: none; }
.direct_flux li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); break-inside: avoid; }
.direct_flux li:first-child { border-top: 0; }
.direct_flux li img { width: 34px; height: 34px; object-fit: cover; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; }
.direct_texte { display: block; color: #fff; font-size: 15px; line-height: 1.4; }
a.direct_texte:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.direct_meta { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.direct_meta strong { color: rgba(255,255,255,.9); }
.tag_fil { display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.14); }
.tag_live { background: #e11d2e; }
.tag_billet { background: var(--orange); }
.tag_plongee { background: #1b8bb4; }
.tag_voyage { background: var(--turquoise); }

/* Mes abonnements : avatars façon « stories » */
.stories { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.story { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--texte); scroll-snap-align: start; }
.story_anneau { display: block; width: 84px; height: 84px; padding: 3px; border-radius: 50%; background: #e3e1de; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.story_active .story_anneau { background: conic-gradient(from 210deg, var(--rouge), var(--orange), var(--orange-clair), var(--orange), var(--rouge)); }
.story_voyage .story_anneau { background: conic-gradient(from 210deg, var(--vert), #22c55e, var(--turquoise-clair), #22c55e, var(--vert)); }
.story_anneau img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--fond); background: #fff; }
.story:hover { color: var(--encre); }
.story:hover .story_anneau { transform: scale(1.07); }
.story_attente .story_anneau img { filter: grayscale(.8); opacity: .75; }
.story_pseudo { margin-top: 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.story_statut { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 12px; color: var(--texte-pale); white-space: nowrap; }
.story_voyage .story_statut { color: #15803d; font-weight: 700; }
.story_statut .point_pulse { width: 7px; height: 7px; }

/* Bandeaux photo (slogan, explorer) */
.bandeau_photo { position: relative; margin-top: 72px; padding: 96px 0; color: #fff; background: var(--nuit) var(--img) center / cover no-repeat; overflow: hidden; }
.bandeau_photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.42)); }
.bandeau_photo .container { position: relative; max-width: 780px; text-align: center; }
.bandeau_photo h2 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; margin-bottom: 14px; }
.bandeau_photo p { font-size: 18px; line-height: 1.65; opacity: .95; margin-bottom: 30px; }
.bandeau_fixe { background-attachment: fixed; }
main > .bandeau_photo:last-child { margin-bottom: -80px; }   /* colle au pied de page sombre */

/* Fonctionnalités (visiteurs) */
.fonctionnalites_accueil { margin-top: 72px; padding: 80px 0; background: var(--fond-chaud); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.fonctionnalite { height: 100%; background: #fff; border-radius: var(--rayon); padding: 28px 26px; box-shadow: var(--ombre); transition: transform var(--transition), box-shadow var(--transition); }
.fonctionnalite:hover { transform: translateY(-4px); box-shadow: var(--ombre-survol); }
.fonctionnalite_icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge)); box-shadow: 0 8px 18px rgba(192,0,25,.25); }
.fonctionnalite h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.fonctionnalite p { font-size: 15.5px; line-height: 1.55; color: var(--texte-doux); margin: 0; }

/* ---------- 10. Page voyage ---------- */
.voyage_hero {
    position: relative; isolation: isolate; display: flex; align-items: flex-end;
    min-height: clamp(460px, 68vh, 640px); padding: 60px 0 48px; color: #fff; background: var(--nuit);
}
.voyage_hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.voyage_hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.78) 100%); }
.fil_ariane { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; min-width: 0; }
.fil_ariane a, .fil_ariane span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* un titre de voyage long se tronque au lieu de casser le fil */
.fil_ariane a:first-child, .fil_ariane span:last-child { flex: 0 0 auto; }
.fil_ariane a { color: inherit; opacity: .8; }
.fil_ariane a:hover { opacity: 1; color: inherit; }
.fil_ariane i { font-size: 10px; opacity: .5; }
.voyage_hero .fil_ariane { color: #fff; }
.voyage_pays { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.voyage_pays span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); font-size: 14px; font-weight: 700; }
.voyage_pays img { height: 18px; width: auto; border-radius: 4px; }
.voyage_titre { color: #fff; font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.voyage_auteur { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.voyage_auteur:hover { color: #fff; }
.voyage_auteur img { border: 2px solid rgba(255,255,255,.8); }
.voyage_meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; opacity: .95; }
.voyage_meta li { display: inline-flex; align-items: center; gap: 8px; }
.voyage_meta i { opacity: .7; }
.voyage_actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.voyage_actions .btn_action { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(8px); }
.voyage_actions .btn_action:hover { background: #fff; color: var(--encre); }
.voyage_actions .btn_favori.actif { background: #fffbeb; color: #b45309; }
.voyage_en_cours { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); font-size: 14px; }
.voyage_en_cours .pastille_en_voyage { margin: 0; background: rgba(34,197,94,.25); border-color: rgba(34,197,94,.5); }
.voyage_en_cours .progression { width: 130px; }

.voyage_corps { padding-top: 48px; }
.presentation { padding: 26px 28px; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 32px; }
.presentation h2 { font-size: 20px; margin-bottom: 10px; }
.presentation.prose { margin: 0 0 32px; }
.presentation.prose > h2:first-child { margin-top: 0; }
.presentation > :last-child { margin-bottom: 0; }
.jour { position: relative; margin-bottom: 44px; padding-left: 74px; scroll-margin-top: calc(var(--hauteur-entete) + 80px); }
.jour::before {   /* frise : trait vertical qui relie les jours */
    content: ""; position: absolute; left: 26px; top: 62px; bottom: -44px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, #ddd6cc, #ddd6cc 75%, transparent);
}
.jour .jour_entete { margin-left: -74px; }
/* Page voyage : les billets du jour l'un sous l'autre, en grandes cartes horizontales le long de la frise */
.jour .grille_cartes { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.jour .carte_billet { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.jour .carte_billet .carte_media { min-height: 200px; }
.jour .carte_billet .carte_titre { font-size: 22px; }
.jour .carte_billet .carte_extrait { -webkit-line-clamp: 4; }
.jour_entete { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.jour_badge {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; padding: 0 10px;
    border-radius: 16px; background: var(--encre); color: #fff; font-family: var(--police-titre); font-weight: 700; font-size: 18px;
}
.jour_badge_avant { background: var(--turquoise); }
.jour_badge_apres { background: var(--orange); }
.jour_entete h2 { margin: 0; font-size: 22px; font-weight: 700; }
.jour_entete p { margin: 2px 0 0; color: var(--texte-doux); font-size: 15px; }
.jour_entete p::first-letter { text-transform: uppercase; }
.jour_entete::after { content: ""; flex: 1; height: 1px; background: var(--ligne); margin-left: 8px; }

.sommaire {   /* tient toujours dans l'écran : la liste des jours défile, le reste reste visible */
    position: sticky; top: calc(var(--hauteur-entete) + 20px);
    display: flex; flex-direction: column; max-height: calc(100vh - var(--hauteur-entete) - 40px);
}
.sommaire > .sommaire_carte:first-child { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; }
.sommaire > .sommaire_carte:not(:first-child) { flex: 0 0 auto; }
.sommaire_carte { padding: 20px; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); }
.sommaire_carte + .sommaire_carte { margin-top: 18px; }
.sommaire h2 { font-size: 13px; font-family: var(--police-texte); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--texte-pale); margin-bottom: 12px; }
.sommaire_jours { position: relative; list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 1px; min-height: min(270px, 40vh); overflow-y: auto; scrollbar-width: thin; }
.sommaire_jours a { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 9px; color: var(--texte); font-weight: 600; font-size: 14px; }
.sommaire_jours a span:first-child { flex: 0 0 auto; min-width: 34px; padding: 2px 6px; border-radius: 7px; background: #f1eee9; font-size: 12.5px; font-weight: 800; text-align: center; color: var(--encre); }
.sommaire_jours a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sommaire_jours a:hover { background: var(--fond); color: var(--encre); }
.sommaire_jours a.actif { background: var(--fond); color: var(--encre); }
.sommaire_jours a.actif span:first-child { background: var(--rouge); color: #fff; }
.sommaire_stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.sommaire_carte:has(.sommaire_stats) { background: #fff url("../img/fond_monuments.jpg") center bottom / 260% auto no-repeat; padding-bottom: 54px; }
.sommaire_stats div {   /* tuile : icône en pastille dégradée, valeur en grand */
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 0 1px rgba(20, 20, 30, .05);
}
.sommaire_stats i {
    grid-row: span 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; color: #fff; font-size: 15px; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge));
}
.sommaire_stats div:nth-child(3n+2) i { background: linear-gradient(135deg, var(--orange-clair), var(--orange)); }
.sommaire_stats div:nth-child(3n) i { background: linear-gradient(135deg, var(--turquoise-clair), var(--turquoise)); }
.sommaire_stats dd { margin: 0; font-family: var(--police-titre); font-weight: 700; font-size: 25px; line-height: 1.05; letter-spacing: -.03em; color: var(--encre); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sommaire_stats dt { order: 2; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--texte-doux); }
.sommaire_stats dd { order: 1; }
.jours_puces { display: none; }

/* ---------- 11. Billet ---------- */
.billet_entete { padding-top: 40px; padding-bottom: 26px; }
.billet_entete .fil_ariane { color: var(--texte-doux); }
.billet_pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.billet_titre { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 22px; max-width: 22ch; text-wrap: balance; }
.billet_barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.billet_barre .auteur strong { font-size: 15.5px; }
.billet_actions { display: flex; flex-wrap: wrap; gap: 8px; }

.galerie { display: grid; gap: 8px; border-radius: 20px; overflow: hidden; margin-bottom: 40px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
.galerie a { position: relative; display: block; overflow: hidden; background: #e9e6e1; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.galerie a:hover img { transform: scale(1.04); filter: brightness(.92); }
.galerie a:first-child { grid-row: span 2; }
.galerie_1 { grid-template-columns: 1fr; grid-template-rows: min(62vh, 560px); }
.galerie_2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.galerie_2 a:first-child, .galerie_1 a:first-child { grid-row: auto; }
.galerie_3 { grid-template-columns: 2fr 1fr; }
.galerie_4 { grid-template-columns: 2fr 1fr 1fr; }
.galerie_4 a:nth-child(2) { grid-column: span 2; }
.galerie_plus.galerie_plus_mobile { display: none; }
.galerie_plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.5); color: #fff; font-family: var(--police-titre); font-weight: 700; font-size: 24px; }

.prose { max-width: 760px; margin: 0 auto; font-size: 18.5px; line-height: 1.8; color: #26262c; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; font-weight: 700; }
.prose h2 { font-size: 1.55em; }
.prose h3 { font-size: 1.25em; }
.prose img { height: auto; border-radius: 12px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(192,0,25,.35); text-underline-offset: 3px; }
.prose blockquote, .prose .billet_para_citation { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); font-size: 1.15em; font-style: italic; color: var(--encre); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.15em; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: 14px; }
.prose figure.portrait img { width: auto; max-height: 75vh; display: block; margin: 0 auto; }
.prose figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--texte-doux); font-style: italic; }
.prose video { width: 100%; max-height: 640px; border-radius: 14px; background: #000; margin-bottom: 1.2em; }
.prose .ratio { border-radius: 14px; overflow: hidden; margin-bottom: 1.4em; }
/* Page billet : le texte sur une « page » blanche, lettrine, barre de progression de lecture */
.page-billet .prose { max-width: 820px; padding: 48px clamp(22px, 6vw, 64px); background: #fff; border-radius: 22px; box-shadow: var(--ombre); }
.page-billet .prose > p:first-of-type::first-letter {
    float: left; margin: 6px 12px 0 0; font-family: var(--police-titre); font-weight: 700; font-size: 3.6em; line-height: .82; color: var(--rouge);
}
.page-billet .prose strong { color: var(--encre); }
.progression_lecture { position: fixed; left: 0; top: var(--hauteur-entete); z-index: 1029; height: 3px; width: 0; background: linear-gradient(90deg, var(--rouge), var(--orange)); transition: width .1s linear; }
.encart_plongee { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 760px; margin: 0 auto 30px; padding: 18px 22px; border-radius: var(--rayon); background: linear-gradient(135deg, #e6f4fa, #f0fbfa); color: #0e5a77; font-weight: 600; }
.encart_plongee i { margin-right: 6px; }

.billet_navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 56px auto 0; }
.billet_nav_lien { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); color: var(--encre); transition: transform var(--transition), box-shadow var(--transition); }
.billet_nav_lien:hover { transform: translateY(-3px); box-shadow: var(--ombre-survol); color: var(--encre); }
.billet_nav_lien small { font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--texte-pale); }
.billet_nav_lien strong { font-family: var(--police-titre); font-size: 17px; line-height: 1.3; }
.billet_nav_suivant { text-align: right; grid-column: 2; }
.billet_retour { grid-column: 1 / -1; text-align: center; }
.billet_retour .btn_mtb_contour { white-space: normal; max-width: 100%; }

/* Visionneuse photo plein écran */
.visionneuse { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 12, .96); color: #fff; }
.visionneuse::backdrop { background: rgba(0,0,0,.8); }
.visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.visionneuse img, .visionneuse video { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; user-select: none; }
.visionneuse video { width: min(1200px, calc(100vw - 140px)); background: #000; }
.visionneuse_youtube { width: min(1200px, calc(100vw - 140px)); aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); }
.visionneuse_youtube iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.visionneuse [hidden] { display: none !important; }
.galerie_video video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.galerie_lecture { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--rouge); font-size: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s; pointer-events: none; }
.galerie_lecture i { margin-left: 4px; }
.galerie a:hover .galerie_lecture { transform: scale(1.1); }
.visionneuse button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; transition: background-color .2s; }
.visionneuse button:hover { background: rgba(255,255,255,.22); }
.visionneuse_fermer { top: 18px; right: 18px; }
.visionneuse_prec { left: 22px; top: 50%; margin-top: -26px; }
.visionneuse_suiv { right: 22px; top: 50%; margin-top: -26px; }
.visionneuse_compteur { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 14px; opacity: .8; }

/* ---------- 12. Membre ---------- */
.profil { background: #fff; border-bottom: 1px solid var(--ligne); }
.profil_bandeau { height: clamp(170px, 26vw, 280px); background: var(--nuit) var(--img) center var(--pos, 50%) / cover no-repeat; position: relative; }
.profil_bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.profil_contenu { display: flex; align-items: flex-start; gap: 26px; position: relative; z-index: 1; padding-top: 18px; }
.profil_avatar { width: 148px; height: 148px; margin-top: -92px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--ombre-forte); background: #eee; flex: 0 0 auto; }
.profil_infos { flex: 1; min-width: 0; }
.profil_infos h1 { overflow-wrap: anywhere; }
.profil_infos h1 { margin: 0; font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.profil_bio { margin: 6px 0 0; color: var(--texte-doux); max-width: 720px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profil_chiffres { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; color: var(--texte-doux); }
.profil_chiffres strong { color: var(--encre); font-family: var(--police-titre); font-size: 17px; margin-right: 4px; }
.profil_chiffres a { color: inherit; }
.profil_chiffres a:hover { color: var(--rouge); }
.profil_actions { display: flex; gap: 10px; }
.profil .onglets { margin-top: 26px; padding-bottom: 18px; }

.tuiles_stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stats_fond { padding: 22px; border-radius: 24px; background: #fdfcfa url("../img/fond_monuments.jpg") center bottom / cover no-repeat; box-shadow: var(--ombre); }
.stats_fond .tuile_stat { background: rgba(255,255,255,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tuile_stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.tuile_stat i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 8px; color: #fff; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge)); font-size: 16px; }
.tuile_stat:nth-child(3n+2) i { background: linear-gradient(135deg, var(--orange-clair), var(--orange)); }
.tuile_stat:nth-child(3n) i { background: linear-gradient(135deg, var(--turquoise-clair), var(--turquoise)); }
.tuile_stat .tuile_vert { background: linear-gradient(135deg, #4ade80, var(--vert)) !important; }
.tuile_stat strong { font-family: var(--police-titre); font-size: 24px; font-weight: 700; color: var(--encre); line-height: 1.1; letter-spacing: -.5px; }
.tuile_stat span { font-size: 13.5px; color: var(--texte-doux); line-height: 1.3; }
.note_discrete { margin-top: 12px; font-size: 13.5px; color: var(--texte-pale); }
.bloc_prive { padding: 26px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.bloc_prive_titre { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bloc_prive_titre h2 { margin: 0; font-size: 20px; }
.bloc_prive_titre .badge_mtb { margin-left: auto; }
.liste_barres { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.liste_barres li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 6px; column-gap: 12px; row-gap: 6px; align-items: center; }
.liste_barres .rang { grid-row: span 2; min-width: 28px; font-family: var(--police-titre); font-weight: 700; color: var(--texte-pale); text-align: center; }
.liste_barres .rang.top { color: var(--orange); }
.liste_barres .nom { font-weight: 700; color: var(--encre); display: flex; align-items: center; gap: 8px; min-width: 0; }
.liste_barres .valeur { font-size: 13.5px; color: var(--texte-doux); white-space: nowrap; }
.liste_barres .barre { grid-column: 2 / span 2; height: 6px; border-radius: 3px; background: #efece7; overflow: hidden; }
.liste_barres .barre span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--orange-clair), var(--rouge)); }
.grille_drapeaux { display: flex; flex-wrap: wrap; gap: 10px; }
.drapeau_visite { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; text-align: center; font-size: 12px; font-weight: 600; color: var(--texte-doux); line-height: 1.2; }
.drapeau_visite img { width: 60px; height: 45px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px -8px rgba(0,0,0,.35); transition: transform .2s; }
.drapeau_visite:hover img { transform: translateY(-2px) rotate(-3deg); }

/* ---------- 13. Stop'it ---------- */
.carte_theme { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; padding: 20px; border-radius: var(--rayon); overflow: hidden; color: #fff; box-shadow: var(--ombre); transition: transform var(--transition), box-shadow var(--transition); }
.carte_theme::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #2a3440 var(--img) center / cover no-repeat; transition: transform .7s ease; }
.carte_theme::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); }
.carte_theme:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--ombre-survol); }
.carte_theme:hover::before { transform: scale(1.06); }
.carte_theme h3 { color: #fff; margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; }
.carte_theme small { margin-top: 6px; font-weight: 600; opacity: .85; }
.carte_theme .progression { margin-top: 10px; }
.carte_theme .badge_visite, .carte_lieu_stopit .badge_visite { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12.5px; font-weight: 800; }
.ancres_groupes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- 14. Connexion & erreurs ---------- */
.connexion { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - var(--hauteur-entete)); }
.connexion_visuel { position: relative; display: flex; align-items: flex-end; padding: 48px; color: #fff; background: var(--nuit) var(--img) center / cover no-repeat; }
.connexion_visuel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.7)); }
.connexion_visuel div { position: relative; max-width: 460px; }
.connexion_visuel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; }
.connexion_formulaire { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.connexion_formulaire form { width: 100%; max-width: 400px; }
.connexion_formulaire form.formulaire_inscription { max-width: 500px; }
.connexion_formulaire h1 { font-size: 30px; margin-bottom: 6px; }
.alerte { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-weight: 600; font-size: 15px; }
.erreur_page { max-width: 640px; margin: 0 auto; padding: 100px 20px 40px; text-align: center; }
.erreur_code { font-family: var(--police-titre); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--rouge); margin-bottom: 10px; }
.erreur_page h1 { font-size: 30px; }
.erreur_page p { color: var(--texte-doux); font-size: 17px; }

/* ---------- Adaptation tablette / mobile ---------- */
/* ---------- 16. Formulaires (compte, billets, voyages, messages…) ---------- */
.champ { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.champ label, .champ legend { display: block; float: none; width: auto; margin: 0 0 7px; padding: 0; font-size: 14px; font-weight: 700; color: var(--encre); }
.champ_requis { color: var(--rouge); }
.champ_saisie { position: relative; }
.champ_saisie > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--texte-pale); pointer-events: none; }
.champ input, .champ select, .champ textarea {
    width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--ligne); background: #fff;
    font: inherit; font-size: 16px; color: var(--encre); transition: border-color .2s, box-shadow .2s;
}
.champ_saisie > i ~ input { padding-left: 42px; }
.champ textarea { min-height: 130px; line-height: 1.55; resize: vertical; }
.champ select { appearance: none; padding-right: 42px; cursor: pointer;
    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='%236b6b73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.champ input[type=checkbox], .champ input[type=radio] { width: auto; min-height: 0; padding: 0; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(192,0,25,.12); }
.champ.a_erreur input, .champ.a_erreur select, .champ.a_erreur textarea { border-color: #dc2626; }
.champ_aide { margin: 6px 0 0; font-size: 13.5px; color: var(--texte-doux); }
.champ_erreur { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #b91c1c; }
.ligne_champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.alerte_info { background: #eff6ff; color: #1e40af; }
.alerte_succes { background: #f0fdf4; color: #166534; }

/* Choix en cartes (confidentialité, type de contenu…) */
.choix_cartes { display: grid; grid-template-columns: repeat(var(--choix-colonnes, auto-fill), minmax(150px, 1fr)); gap: 10px; }
.choix_carte { position: relative; display: block; margin: 0; cursor: pointer; }
.champ .choix_carte { margin: 0; font-weight: 400; }
.choix_carte input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choix_contenu { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--ligne); border-radius: 14px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.choix_contenu i { margin-bottom: 4px; font-size: 18px; color: var(--texte-pale); transition: color .2s; }
.choix_contenu strong { font-size: 15px; color: var(--encre); }
.choix_contenu small { font-size: 13px; line-height: 1.35; color: var(--texte-doux); }
.choix_carte:hover .choix_contenu { border-color: #d6d3ce; }
.choix_carte input:checked + .choix_contenu { border-color: var(--rouge); background: #fff5f6; box-shadow: 0 0 0 3px rgba(192,0,25,.1); }
.choix_carte input:checked + .choix_contenu i { color: var(--rouge); }
.choix_carte input:focus-visible + .choix_contenu { outline: 2px solid var(--rouge); outline-offset: 2px; }

/* Interrupteur */
.champ .interrupteur { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; cursor: pointer; }
.interrupteur input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.interrupteur_piste { position: relative; flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px; background: #d6d3ce; transition: background .2s; }
.interrupteur_piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--transition); }
.interrupteur input:checked + .interrupteur_piste { background: var(--rouge); }
.interrupteur input:checked + .interrupteur_piste::after { transform: translateX(20px); }
.interrupteur input:focus-visible + .interrupteur_piste { outline: 2px solid var(--rouge); outline-offset: 2px; }
.champ_interrupteur .champ_aide { margin-left: 58px; }

/* Pages d'édition : colonne principale + colonne latérale, blocs blancs, barre d'enregistrement collante */
.page_formulaire { padding-top: 36px; padding-bottom: 40px; }
.page_formulaire_entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page_formulaire_entete h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page_formulaire_entete p { margin: 6px 0 0; color: var(--texte-doux); }
.formulaire_grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.formulaire_etroit { max-width: 760px; margin: 0 auto; }
.formulaire_cote { position: sticky; top: calc(var(--hauteur-entete) + 20px); }
.bloc_form { margin-bottom: 22px; padding: 26px 28px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.bloc_form > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 19px; }
.bloc_form > h2 i { font-size: 16px; color: var(--rouge); }
.bloc_form_intro { margin: 0 0 18px; font-size: 14.5px; color: var(--texte-doux); }
.bloc_form > :last-child { margin-bottom: 0; }
.bloc_danger { border: 1.5px solid #fecaca; box-shadow: none; }
.bloc_danger > h2 i { color: #dc2626; }
.barre_enregistrer { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; padding: 16px 0; background: linear-gradient(to top, var(--fond) 72%, rgba(247,245,242,0)); }
.barre_enregistrer .barre_note { margin-right: auto; font-size: 14px; color: var(--texte-doux); }
.btn_danger { background: #dc2626; border-color: #dc2626; box-shadow: none; }
.btn_danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* Dépôt de fichiers et vignettes réordonnables */
.zone_depot, .champ label.zone_depot { position: relative; display: flex; margin: 0; font-weight: 400; font-size: 15px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 20px; border: 2px dashed #d6d3ce; border-radius: 16px; background: var(--fond-chaud); text-align: center; color: var(--texte-doux); cursor: pointer; transition: border-color .2s, background .2s; }
.zone_depot i { font-size: 28px; color: var(--rouge); }
.zone_depot strong { color: var(--encre); }
.zone_depot.survol { border-color: var(--rouge); background: #fff5f6; }
.zone_depot input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.vignettes:empty { display: none; }
.vignette { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #e9e6e1; cursor: grab; }
.vignette img, .vignette video { width: 100%; height: 100%; object-fit: cover; }
.vignette.glisse { opacity: .4; }
.vignette.cible { outline: 3px solid var(--rouge); outline-offset: -3px; }
.vignette_actions { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; }
.vignette_btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; cursor: pointer; }
.vignette_btn:hover { background: rgba(0,0,0,.8); }
.vignette_btn.actif { background: var(--orange); }
.vignette_badge { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.vignette_envoi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); font-weight: 800; color: var(--encre); }
.vignette_erreur { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; background: rgba(254,226,226,.92); font-size: 12px; font-weight: 700; text-align: center; color: #991b1b; }

/* Champ lieu (suggestions), aperçu de couverture, confirmation de suppression */
.champ_lieu { position: relative; }
.lieu_suggestions { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: var(--ombre-forte); }
.lieu_suggestions li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.lieu_suggestions li strong { font-size: 15px; color: var(--encre); }
.lieu_suggestions li small { font-size: 13px; color: var(--texte-doux); }
.lieu_suggestions li:hover, .lieu_suggestions li.actif { background: var(--fond); }
.apercu_couverture { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: 12px; object-fit: cover; background: #e9e6e1; }
.apercu_couverture[hidden] { display: none; }
.confirmation_suppression { display: flex; gap: 24px; align-items: flex-start; }
.confirmation_image { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 14px; object-fit: cover; background: #e9e6e1; }
.liste_consequences { margin: 0 0 20px; padding: 0; list-style: none; }
.liste_consequences li { display: flex; gap: 10px; margin-bottom: 8px; }
.liste_consequences .fa-times-circle { margin-top: 4px; color: #dc2626; }
.liste_consequences .fa-check-circle { margin-top: 4px; color: var(--vert); }

/* Éditeur de billet */
.editeur_billet .ck.ck-editor { width: 100%; }
.editeur_billet .ck-editor__editable_inline { min-height: 320px; font-size: 17px; line-height: 1.7; }
.editeur_billet .ck.ck-editor__main > .ck-editor__editable, .editeur_billet .ck.ck-toolbar { border-color: var(--ligne) !important; }
.editeur_billet .ck.ck-toolbar { border-radius: 12px 12px 0 0 !important; background: var(--fond-chaud); }
.editeur_billet .ck.ck-editor__main > .ck-editor__editable { border-radius: 0 0 12px 12px !important; }
.editeur_billet .ck.ck-editor__main > .ck-editor__editable.ck-focused { border-color: var(--rouge) !important; box-shadow: 0 0 0 4px rgba(192,0,25,.12) !important; }
.etapes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.etape { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--fond-chaud); }
.etape_numero { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: 9px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 800; font-size: 14px; }
.etape_champs { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px; }
.etape_champs .champ { margin: 0; }
.etape_retirer { margin-top: 5px; }
.puces_choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puces_choix:empty { display: none; }
.puce_choix { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: #fff5f6; color: var(--rouge-fonce); font-weight: 700; font-size: 14px; }
.puce_choix button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(192,0,25,.12); color: var(--rouge); font-size: 11px; cursor: pointer; }
.lieu_suggestions li.aucun { cursor: default; color: var(--texte-pale); }
.details_plongee { margin-top: 6px; border-top: 1px solid var(--ligne); padding-top: 14px; }
.details_plongee summary { margin-bottom: 14px; font-weight: 700; color: var(--encre); cursor: pointer; }
.grille_parametres { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; }
.actions_publication { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lien_danger { color: #b91c1c; font-weight: 600; }
.lien_danger:hover { color: #7f1d1d; }
.bouton_lien { padding: 0; border: 0; background: none; cursor: pointer; }
.btn_action_plein { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.btn_action_plein:hover { background: var(--rouge-fonce); color: #fff; }
.choix_publier { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--ligne); border-radius: 14px; color: var(--encre); transition: border-color .2s, background .2s; }
.choix_publier:hover { border-color: var(--rouge); background: #fff5f6; color: var(--encre); }
.choix_publier i { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff5f6; color: var(--rouge); font-size: 17px; }
.choix_publier span { display: flex; flex-direction: column; }
.choix_publier small { color: var(--texte-doux); }
.choix_publier_discret { border-style: dashed; }
.liste_brouillons { display: flex; flex-direction: column; gap: 12px; }
.brouillon { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); transition: box-shadow var(--transition), transform var(--transition); }
.brouillon:hover { box-shadow: var(--ombre-survol); transform: translateY(-2px); }
.brouillon_icone { flex: 0 0 auto; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--fond-chaud); color: var(--rouge); font-size: 19px; }
.brouillon_texte { flex: 1; min-width: 0; }
.brouillon_texte h2 { margin: 0 0 2px; font-size: 18px; }
.brouillon_texte p { margin: 0 0 4px; color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brouillon_texte small { color: var(--texte-pale); }
.brouillon_supprimer { position: relative; z-index: 2; }

/* Social : cloche, notifications, messagerie, commentaires, listes de membres */
.message_flash_erreur > div { background: #fef2f2; color: #991b1b; }
.cloche { position: relative; }
.cloche_compteur { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.pastille_compteur { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 800; }
.bouton_suivi .suivi_non { display: none; }
.bouton_suivi:hover .suivi_oui, .bouton_suivi:focus-visible .suivi_oui { display: none; }
.bouton_suivi:hover .suivi_non, .bouton_suivi:focus-visible .suivi_non { display: inline; }
.liste_notifs { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.notif { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; color: var(--texte); }
.notif:hover { background: var(--fond); color: var(--texte); }
.notif.non_lue { background: #fff5f6; }
.notif.non_lue::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--rouge); }
.notif_avatar { position: relative; flex: 0 0 auto; }
.notif_avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eee; }
.notif_avatar i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.notif_texte { flex: 1; min-width: 0; line-height: 1.45; }
.notif_texte strong { color: var(--encre); }
.notif_texte em { display: block; margin-top: 4px; color: var(--texte-doux); }
.notif_texte small { display: block; margin-top: 4px; color: var(--texte-pale); }
.bandeau_messages { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: #eff6ff; color: #1e40af; font-weight: 600; }
.messagerie { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 560px; overflow: hidden; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.messagerie_liste { border-right: 1px solid var(--ligne); overflow-y: auto; max-height: 72vh; }
.messagerie_liste a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ligne); color: var(--texte); }
.messagerie_liste a:hover, .messagerie_liste a.actif { background: var(--fond); color: var(--texte); }
.messagerie_liste img { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.messagerie_liste span { flex: 1; min-width: 0; }
.messagerie_liste strong { display: flex; justify-content: space-between; gap: 8px; color: var(--encre); }
.messagerie_liste small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-doux); }
.messagerie_fil { display: flex; flex-direction: column; min-width: 0; }
.messagerie_entete { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ligne); }
.messagerie_entete img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.messagerie_messages { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; max-height: 58vh; background: var(--fond-chaud); }
.bulle { max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: var(--ombre); white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.moi { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--rouge); color: #fff; }
.bulle small { display: block; margin-top: 4px; font-size: 11.5px; opacity: .7; }
.messagerie_saisie { display: flex; gap: 10px; align-items: flex-end; padding: 14px 18px; border-top: 1px solid var(--ligne); }
.messagerie_saisie textarea { flex: 1; min-height: 46px; max-height: 200px; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 14px; font: inherit; resize: vertical; }
.messagerie_saisie textarea:focus { outline: 0; border-color: var(--rouge); }
.messagerie_vide { margin: auto; padding: 40px 20px; text-align: center; color: var(--texte-doux); }
.commentaires { margin-top: 40px; }
.commentaire_form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.commentaire_form img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.commentaire_form textarea { flex: 1; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 14px; font: inherit; resize: vertical; }
.commentaire_form textarea:focus { outline: 0; border-color: var(--rouge); }
.commentaire { display: flex; gap: 12px; margin-bottom: 16px; }
.commentaire > img { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.commentaire_corps { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: var(--carte); box-shadow: var(--ombre); }
.commentaire_corps header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.commentaire_corps header small { color: var(--texte-pale); }
.commentaire_corps p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.commentaire_corps form { margin-left: auto; }
.grille_membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.carte_membre { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); }
.carte_membre img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.carte_membre span { flex: 1; min-width: 0; }
.carte_membre strong { display: block; color: var(--encre); overflow: hidden; text-overflow: ellipsis; }
.carte_membre small { color: var(--texte-doux); }
.carte_membre .badge_proche { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ecfdf5; color: var(--vert); font-size: 11px; font-weight: 800; }
.carte_membre_actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.carte_membre_actions button { padding: 3px 10px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.carte_membre_actions button:hover { border-color: var(--rouge); color: var(--rouge); }

.visiteurs summary, .lecteurs_billet summary { font-weight: 700; color: var(--encre); cursor: pointer; }
.lecteurs_billet { max-width: 760px; margin: 32px auto 0; padding: 16px 20px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.liste_visiteurs { margin: 12px 0 0; padding: 0; list-style: none; max-height: 320px; overflow-y: auto; }
.liste_visiteurs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.liste_visiteurs a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--texte); }
.liste_visiteurs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.liste_visiteurs small { color: var(--texte-pale); }

/* Compte : menu latéral des paramètres, avatar, messages de confirmation */
.compte_grille { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.compte_menu { position: sticky; top: calc(var(--hauteur-entete) + 20px); display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.compte_menu a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; font-weight: 600; color: var(--texte); }
.compte_menu a i { width: 18px; text-align: center; color: var(--texte-pale); }
.compte_menu a:hover { background: var(--fond); color: var(--encre); }
.compte_menu a.actif { background: #fff5f6; color: var(--rouge); }
.compte_menu a.actif i { color: var(--rouge); }
.compte_menu .compte_menu_sortie { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ligne); border-radius: 0 0 11px 11px; color: var(--texte-doux); }
.compte_contenu { min-width: 0; }
.avatar_edition { display: flex; align-items: flex-start; gap: 26px; }
.avatar_apercu { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: #eee; border: 5px solid #fff; box-shadow: var(--ombre-forte); }
/* Photo de couverture : aperçus ordinateur (bandeau très allongé) et mobile, cadrage vertical réglable */
.couverture_apercus { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; margin: 0 0 20px; }
.couverture_apercus figure { margin: 0; }
.couverture_apercus figcaption { margin-top: 6px; font-size: 13px; color: var(--texte-doux); }
.couverture_apercu { aspect-ratio: 6 / 1; border-radius: 14px; background: var(--nuit) var(--img) center var(--pos, 50%) / cover no-repeat; box-shadow: var(--ombre); }
.couverture_apercu.mobile { aspect-ratio: 2.2 / 1; }
.cadrage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.cadrage input[type=range] { flex: 1 1 220px; accent-color: var(--rouge); }
.cadrage small { color: var(--texte-doux); }
@media (max-width: 575.98px) { .couverture_apercus { grid-template-columns: minmax(0, 1fr); } }
.formulaire_message { width: 100%; max-width: 420px; }
.formulaire_message h1 { font-size: 30px; margin-bottom: 18px; }
.champ_piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.compteur_caracteres { display: block; margin-top: 6px; text-align: right; font-size: 12.5px; color: var(--texte-pale); }

@media (max-width: 991px) {
    .formulaire_grille, .compte_grille { grid-template-columns: 1fr; }
    .formulaire_cote, .compte_menu { position: static; }
    .compte_menu { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .compte_menu a { flex: 0 0 auto; }
    .compte_menu .compte_menu_sortie { margin: 0; padding-top: 11px; border: 0; border-radius: 11px; }
    .messagerie { grid-template-columns: 1fr; }
    .messagerie_liste { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--ligne); }
}
@media (max-width: 576px) {
    .bloc_form { padding: 20px 16px; }
    .choix_cartes { grid-template-columns: 1fr 1fr; }
    .avatar_edition { flex-direction: column; align-items: center; }
    .avatar_edition > form { width: 100%; }
    .confirmation_suppression { flex-direction: column; }
    .etape { grid-template-columns: 28px minmax(0, 1fr) 36px; padding: 10px 8px; }
    .etape_champs { grid-template-columns: 1fr; }
    .etape_numero { width: 28px; height: 28px; }
    .barre_enregistrer .btn_mtb, .barre_enregistrer .btn_mtb_contour { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 17. Membre : photos, Stop'it, carte, plongées, badges ---------- */
.mur_photos { columns: 4 240px; column-gap: 14px; }
.mur_photos figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--ombre); }
.mur_photos img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.mur_photos a:hover img { transform: scale(1.03); }
.mur_photos figcaption { padding: 8px 12px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.mur_photos figcaption a { color: var(--texte-doux); }
.mur_photos figcaption a:hover { color: var(--rouge); }
.lieu_logos { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.lieu_logos span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--encre); font-size: 13px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.lieu_logos .fa-water { color: #1b8bb4; }
.lieu_mesures { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--texte-doux); }
.lieu_mesures .fa-star { color: #f59e0b; }
.carte_lieu .drapeau { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: 0 0 auto; }
.carte_theme .progression { background: rgba(255,255,255,.28); }
.progression.complete > span { background: linear-gradient(90deg, #4ade80, var(--vert)); }
.progression.presque > span { background: linear-gradient(90deg, var(--orange-clair), var(--orange)); }
button.onglet { cursor: pointer; }
.carte_voyages { height: min(70vh, 620px); min-height: 380px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: #dfe7ea; z-index: 0; }
.carte_voyage_petite { height: 420px; min-height: 0; }
.voyage_onglets {
    display: flex; gap: 8px; margin: 0 0 26px; padding: 10px 0; overflow-x: auto; scrollbar-width: none;
    position: sticky; top: var(--hauteur-entete); z-index: 30;
    background: rgba(247, 245, 242, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.voyage_onglets::-webkit-scrollbar { display: none; }
.carte_du_voyage, .galerie_voyage { margin-bottom: 40px; }
.carte_voyages .leaflet-popup-content { font-family: var(--police-texte); font-size: 14px; line-height: 1.45; }
.bandeau_carte { display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 22px; border-radius: var(--rayon); color: #fff; background: linear-gradient(120deg, rgba(18,20,25,.92), rgba(18,20,25,.55)), url("../img/banner/plage.jpg") center / cover; box-shadow: var(--ombre); }
.bandeau_carte > i:first-child { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--rouge-vif), var(--rouge)); font-size: 19px; }
.bandeau_carte span { display: flex; flex-direction: column; line-height: 1.3; }
.bandeau_carte strong { font-family: var(--police-titre); font-size: 18px; }
.bandeau_carte small { opacity: .8; }
.bandeau_carte:hover { color: #fff; }
.bandeau_carte:hover .fa-arrow-right { transform: translateX(4px); }
.bandeau_carte .fa-arrow-right { transition: transform .2s; }
a.drapeau_visite:hover { color: var(--rouge); }
.bloc_stats_plongee { height: 100%; padding: 22px 24px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.bloc_stats_plongee h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.bloc_stats_plongee h3 i { color: #1b8bb4; }
.bloc_stats_plongee dl { margin: 0; display: grid; gap: 9px; }
.bloc_stats_plongee dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--ligne); }
.bloc_stats_plongee dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.bloc_stats_plongee dt { font-weight: 500; color: var(--texte-doux); }
.bloc_stats_plongee dd { margin: 0; font-weight: 700; color: var(--encre); text-align: right; }
.classement_plongee { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.classement_plongee li { padding-left: 4px; }
.classement_plongee li::marker { font-family: var(--police-titre); font-weight: 700; color: var(--texte-pale); }
.classement_plongee a { font-weight: 700; color: var(--encre); }
.classement_plongee a:hover { color: var(--rouge); }
.classement_plongee small { margin-left: 6px; color: var(--texte-pale); }
.note_etoiles { margin-left: 6px; font-size: 13px; font-weight: 700; color: #b45309; }
.note_etoiles .fa-star { color: #f59e0b; }
.badges_groupes { display: grid; gap: 18px; }
.badges_groupes h3 { margin: 0 0 10px; font-size: 16px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .6px; }
.grille_badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.grille_badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; background: #fff; box-shadow: var(--ombre); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--texte); }
.grille_badges img { width: 64px; height: 64px; object-fit: contain; }
.grille_badges li.manquant { color: var(--texte-pale); background: #f3f1ed; box-shadow: none; }
.grille_badges li.manquant img { filter: grayscale(1); opacity: .35; }
.resume_plongees { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: -8px 0 20px; padding: 0; list-style: none; color: var(--texte-doux); }
.resume_plongees strong { font-family: var(--police-titre); color: var(--encre); }
.filtres_plongees { margin-bottom: 26px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.filtres_plongees summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; font-weight: 700; color: var(--encre); list-style: none; }
.filtres_plongees summary::-webkit-details-marker { display: none; }
.filtres_plongees summary .pastille_compteur { margin-left: 4px; }
.grille_filtres { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 4px 20px 20px; }
.grille_filtres label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--texte-doux); }
.grille_filtres select, .grille_filtres input { width: 100%; padding: 9px 12px; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; font: inherit; font-weight: 500; color: var(--encre); }
.filtres_actions { display: flex; align-items: flex-end; gap: 10px; }
.liste_carnets { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.liste_carnets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--ombre); font-weight: 700; color: var(--encre); }
.liste_carnets small { display: block; font-weight: 500; color: var(--texte-pale); }
.carnet_impression { max-width: 860px; margin: 0 auto; padding: 30px 20px 60px; }
.carnet_outils { display: flex; align-items: center; gap: 16px; }
.carnet_couverture { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 60vh; text-align: center; }
.carnet_couverture img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.carnet_couverture h1 { font-size: 40px; margin: 0; }
.carnet_pseudo { font-family: var(--police-titre); font-size: 22px; font-weight: 700; color: var(--rouge); margin: 0; }
.carnet_plongee { padding: 22px 0; border-top: 2px solid var(--encre); }
.carnet_plongee h2 { margin: 0; font-size: 22px; }
.carnet_plongee header p { margin: 2px 0 12px; color: var(--texte-doux); font-weight: 600; }
.carnet_params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; margin: 0 0 12px; font-size: 13.5px; }
.carnet_params div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted #ccc; }
.carnet_params dt { font-weight: 500; color: var(--texte-doux); }
.carnet_params dd { margin: 0; font-weight: 700; }
.carnet_photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.carnet_photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.carnet_texte { font-size: 14px; line-height: 1.5; }
@media print {
    .page_impression .entete_site, .page_impression .pied_site, .page_impression .carnet_outils, .page_impression .retour_haut, .page_impression .lien_evitement { display: none !important; }
    .page_impression { background: #fff; }
    .carnet_impression { max-width: none; padding: 0; }
    .carnet_couverture { min-height: 95vh; break-after: page; }
    .carnet_plongee { height: 48vh; overflow: hidden; break-inside: avoid; }
    .carnet_plongee:nth-of-type(2n) { break-after: page; }
}
@media (max-width: 767px) {
    .carnet_params { grid-template-columns: 1fr 1fr; }
    .bandeau_carte small { display: none; }
}

/* ---------- 18. Découverte : recherche, membres, Wandermap, spots, fiche lieu, pages d'information ---------- */
.recherche_formulaire { position: relative; display: flex; align-items: center; gap: 10px; max-width: 720px; margin-top: 20px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: var(--ombre-forte); }
.recherche_formulaire > i { color: var(--texte-pale); }
.recherche_formulaire input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 8px 0; color: var(--encre); }
.recherche_formulaire input::-webkit-search-cancel-button { cursor: pointer; }
.recherche_compacte { margin-top: 0; box-shadow: var(--ombre); }
.titre_petit { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 19px; }
.titre_petit i { color: var(--rouge); }
.puces_recherche { display: flex; flex-wrap: wrap; gap: 8px; }
.puces_recherche a { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: var(--ombre); color: var(--encre); font-weight: 600; }
.puces_recherche a:hover { color: var(--rouge); }
.resultats_rubrique + .resultats_rubrique { margin-top: 44px; }
.classement { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.classement li { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--ombre); }
.classement_rang { width: 40px; flex: 0 0 auto; text-align: center; font-family: var(--police-titre); font-weight: 800; font-size: 20px; color: var(--texte-pale); }
.podium .classement_rang { width: 40px; height: 40px; line-height: 40px; border-radius: 50%; color: #fff; font-size: 18px; }
.podium_1 .classement_rang { background: linear-gradient(135deg, #fcd34d, #d97706); }
.podium_2 .classement_rang { background: linear-gradient(135deg, #e5e7eb, #9ca3af); }
.podium_3 .classement_rang { background: linear-gradient(135deg, #fdba74, #b45309); }
.classement_membre { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--encre); }
.classement_membre img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.classement_membre span, .classement_valeur { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.classement_membre strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement_membre small, .classement_valeur small { color: var(--texte-pale); font-size: 13px; }
.classement_membre:hover strong { color: var(--rouge); }
.classement_valeur { align-items: flex-end; text-align: right; white-space: nowrap; }
.classement_valeur strong { font-family: var(--police-titre); color: var(--encre); }
.page_wandermap .pied_site { display: none; }
.wandermap { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - var(--hauteur-entete)); min-height: 520px; }
.wandermap_panneau { overflow-y: auto; padding: 22px 20px; background: #fff; border-right: 1px solid var(--ligne); }
.wandermap_panneau h1 { font-size: 24px; margin: 0; }
.wandermap_carte { height: 100%; z-index: 0; background: #dfe7ea; }
.wandermap_lieu { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 12px; }
.wandermap_lieu i { color: var(--texte-pale); }
.wandermap_lieu input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; }
.case_wm, .wandermap_themes label { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-size: 14.5px; cursor: pointer; }
.case_wm input, .wandermap_themes input { margin-top: 4px; accent-color: var(--rouge); }
.wandermap_themes fieldset { margin-top: 14px; }
.wandermap_themes legend { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--texte-doux); }
.wandermap_tous { margin: 14px 0 0; font-size: 13.5px; color: var(--texte-pale); }
.wandermap_tous button { padding: 0; border: 0; background: none; color: var(--rouge); font-weight: 700; }
.repere_wm { display: flex !important; align-items: center; justify-content: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rouge); border: 2px solid #fff; box-shadow: 0 4px 10px -2px rgba(0,0,0,.4); }
.repere_wm i { transform: rotate(45deg); color: #fff; font-size: 12px; }
.repere_wm.visite { background: var(--vert); }
.repere_wm.plongee { background: #1b8bb4; }
.popup_wm .leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--police-texte); }
.popup_wm .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; }
.popup_wm img { display: block; width: 100%; height: 120px; object-fit: cover; }
.popup_wm strong, .popup_wm small, .popup_wm .wm_visite { display: block; padding: 0 14px; }
.popup_wm strong { padding-top: 10px; font-size: 15px; color: var(--encre); }
.popup_wm small { color: var(--texte-doux); }
.popup_wm .wm_visite { color: var(--vert); font-weight: 700; font-size: 13px; }
.popup_wm .btn_mtb { margin: 10px 14px 14px; color: #fff; }
.tableau_defilant { overflow-x: auto; border-radius: var(--rayon); box-shadow: var(--ombre); background: #fff; }
.tableau_spots { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau_spots th { padding: 12px 14px; text-align: left; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--texte-doux); background: var(--fond-chaud); white-space: nowrap; }
.tableau_spots td { padding: 11px 14px; border-top: 1px solid #f1eee9; vertical-align: middle; }
.tableau_spots td:first-child a { font-weight: 700; color: var(--encre); }
.tableau_spots td:first-child a:hover { color: var(--rouge); }
.tableau_spots .drapeau { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.tableau_spots .fa-star { color: #f59e0b; font-size: 12px; }
.rang_spot { display: inline-block; min-width: 34px; color: var(--texte-pale); font-weight: 700; }
.lieu_latin { margin: -6px 0 10px; font-style: italic; opacity: .85; }
.lieu_hero .btn_action { max-width: 100%; white-space: normal; text-align: left; }
.mesures_plongee { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.mesures_plongee li { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: var(--ombre); }
.mesures_plongee i { color: #1b8bb4; }
.mesures_plongee strong { font-family: var(--police-titre); font-size: 22px; color: var(--encre); }
.mesures_plongee span { font-size: 13.5px; color: var(--texte-doux); }
.avis_mytripbook { margin: 26px 0; padding: 22px 24px; border-radius: var(--rayon); background: var(--fond-chaud); border-left: 4px solid var(--orange); }
.avis_mytripbook h2 { margin: 0 0 8px; font-size: 18px; }
.avis_mytripbook h2 i { color: var(--orange); }
.lieu_photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.lieu_photos a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; }
.lieu_photos a.lieu_photo_principale { grid-column: span 2; }
.lieu_photos img { width: 100%; height: 100%; object-fit: cover; }
.carte_lieu_mini { height: 240px; min-height: 0; border-radius: 0; box-shadow: none; }
.page_info { max-width: 820px; margin: 0; }
.page_info h2 { font-size: 1.3em; }
.faq details { margin-bottom: 10px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--ombre); }
.faq summary { cursor: pointer; font-family: var(--police-titre); font-weight: 700; color: var(--encre); }
.faq details p { margin: 10px 0 0; font-size: .95em; }
.publier_choix { max-width: 560px; }
.blog_contenu { margin: 0 auto; }
.blog_contenu img { height: auto; border-radius: 12px; }
.blog_galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 1em 0 1.6em; }
.blog_galerie a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; }
.blog_galerie img { width: 100%; height: 100%; object-fit: cover; }
.blog_video { margin: 1em 0 1.6em; }
.blog_video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
@media (max-width: 991px) {
    .wandermap { grid-template-columns: 1fr; grid-template-rows: auto minmax(420px, 1fr); height: auto; }
    .wandermap_panneau { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--ligne); }
    .wandermap_carte { height: 70vh; }
}
@media (max-width: 576px) {
    .classement li { gap: 10px; padding: 10px 12px; }
    .classement_rang { width: 28px; font-size: 16px; }
    .podium .classement_rang { width: 32px; height: 32px; line-height: 32px; font-size: 15px; }
    .classement_membre img { width: 40px; height: 40px; }
    .recherche_formulaire { padding-left: 14px; }
    .recherche_formulaire .btn_mtb { padding: 9px 14px; font-size: 14px; }
}

@media (max-width: 1199px) {
    .entete_nav { display: none; }
    .entete_burger { display: inline-flex; }
    .entete_actions { margin-left: auto; }
    .grille_4 { grid-template-columns: repeat(2, 1fr); }
    .chiffres_cles { grid-template-columns: repeat(3, 1fr); }
    .chiffre:nth-child(3n+1)::before { display: none; }
}
@media (min-width: 992px) {
    .voyageurs_defile > .carte_en_voyage { flex-basis: max(220px, calc((100% - 32px) / 3)); }
    .voyageurs_large > .carte_en_voyage { flex-basis: max(220px, calc((100% - 48px) / 4)); }
    .direct_large .direct_flux { columns: 2; column-gap: 32px; }
}
@media (max-width: 991px) {
    .pied_grille { grid-template-columns: 1fr 1fr; }
    .grille_3 { grid-template-columns: repeat(2, 1fr); }
    .section_entete { flex-wrap: wrap; gap: 12px; }
    .titre_section { flex-basis: 100%; }
    .sommaire { display: none; }
    .jours_puces { position: sticky; top: var(--hauteur-entete); z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px 24px; padding: 12px; background: rgba(247,245,242,.92); backdrop-filter: blur(10px); scrollbar-width: none; }
    .jours_puces a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne); font-weight: 700; font-size: 14px; color: var(--texte); }
    .jours_puces a.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
    .connexion { grid-template-columns: 1fr; }
    .connexion_visuel { min-height: 240px; padding: 28px; }
    .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px; }
    .galerie a:first-child { grid-column: span 2; grid-row: auto; }
    .galerie a:nth-child(n+4) { display: none; }
    .galerie_plus.galerie_plus_mobile { display: flex; }   /* 3 photos visibles sur mobile : le « +N » passe sur la 3e */
    .galerie_1, .galerie_2 { grid-template-rows: 300px; }
    .galerie_1 { grid-template-columns: 1fr; }
    .galerie_1 a:first-child, .galerie_2 a:first-child { grid-column: auto; }
    .galerie_2 a:first-child { grid-column: auto; }
    .profil_contenu { flex-wrap: wrap; }
    .profil_actions { width: 100%; }
}
@media (max-width: 767px) {
    .grille_2, .grille_3 { grid-template-columns: 1fr; }
    .billet_navigation { grid-template-columns: minmax(0, 1fr); }
    .billet_nav_suivant { grid-column: auto; }
}
@media (max-width: 576px) {
    :root { --hauteur-entete: 64px; }
    .entete_interieur { padding: 0 14px; gap: 10px; }
    .entete_logo { flex: 0 1 auto; min-width: 0; }
    .entete_logo img { height: auto; max-height: 36px; max-width: 100%; }
    .entete_actions { gap: 4px; }
    .entete_actions .entete_lien, .entete_actions .btn_publier span, .menu_membre span, .menu_membre i { display: none; }
    .menu_membre { padding: 3px; }
    .grille_cartes, .grille_4 { grid-template-columns: 1fr; gap: 22px; }
    .pied_grille { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
    .hero_accueil { height: 600px; }
    .hero_contenu { padding: calc(var(--hauteur-entete) + 24px) 18px 110px; }
    .hero_etiquette { font-size: 12px; margin-bottom: 14px; }
    .hero_titre { font-size: 2.5rem !important; line-height: .98; letter-spacing: -.03em; }
    .hero_accueil .carousel-indicators { bottom: 70px; }
    .btn_mtb, .btn_mtb_clair, .btn_mtb_contour { padding: 11px 20px; font-size: 15px; }
    .chiffres_cles_conteneur { margin-top: -48px; }
    .chiffres_cles { grid-template-columns: repeat(2, 1fr); padding: 8px; }
    .chiffre { padding: 16px 6px 14px; }
    .chiffre::before { display: none; }
    .chiffre_icone { width: 44px; height: 44px; font-size: 17px; border-radius: 14px; margin-bottom: 10px; }
    .chiffre_valeur { font-size: 22px; }
    .chiffre_libelle { font-size: 11px; letter-spacing: .6px; }
    .section_accueil, .section_bloc { padding-top: 44px; }
    .titre_section { font-size: 1.6rem; }
    .carte_en_voyage { height: 320px; }
    .stories { gap: 14px; }
    .story { width: 76px; }
    .story_anneau { width: 70px; height: 70px; }
    .bandeau_photo, .fonctionnalites_accueil { margin-top: 48px; padding: 60px 0; }
    .bandeau_fixe { background-attachment: scroll; }
    .entete_page { padding: 40px 0 24px; }
    .voyage_hero { min-height: 480px; padding-bottom: 32px; }
    .billet_entete { padding-top: 28px; }
    .prose { font-size: 17px; }
    .profil_avatar { width: 112px; height: 112px; border-width: 5px; }
    .profil_avatar { margin-top: -70px; }
    .profil_contenu { gap: 14px; }
    .visionneuse img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
    .visionneuse_prec, .visionneuse_suiv { top: auto; bottom: 22px; margin-top: 0; }
}

/* ---------- 15. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .point_pulse::after { animation: none; }
}

/* ---------- 17. Frise du carnet et cartes larges : mobile ---------- */
@media (max-width: 767px) {
    .jour { padding-left: 0; }
    .jour::before { display: none; }
    .jour .jour_entete { margin-left: 0; }
    .page-billet .prose { padding: 26px 20px; border-radius: 16px; font-size: 18px; }
}

/* ---------- 18. Billets ≠ voyages : billet = carte horizontale (article), voyage = couverture de carnet ---------- */
.carte_billet { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: 1fr auto; }
/* La photo remplit exactement sa colonne : sans texte, la carte reste basse (photo en paysage, pas de grand vide
   à droite) ; avec un long récit, la photo s'allonge à sa hauteur. Jamais de débordement sur le texte. */
.carte_billet .carte_media { grid-row: 1 / 3; width: 100%; height: 100%; min-height: 170px; aspect-ratio: auto; }
.carte_billet .carte_media::after { height: 30%; }
.carte_billet .carte_corps { padding: 18px 20px 8px; }
.carte_billet .carte_pied { padding: 10px 20px 14px; border-top: 0; }
.carte_billet .pastille_haut { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grille_cartes:has(> .carte_billet) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); }

.carte_voyage { aspect-ratio: 4 / 5; justify-content: flex-end; background: var(--nuit); color: #fff; }
.carte_voyage .carte_media { position: absolute; inset: 0; aspect-ratio: auto; }
.carte_voyage .carte_media::after { height: 100%; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.25) 52%, rgba(12,14,19,.94) 100%); }
.carte_voyage .carte_corps { position: relative; z-index: 2; flex: 0 0 auto; padding: 0 20px 12px; gap: 10px; }
.carte_voyage .carte_titre { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.carte_voyage .carte_titre a, .carte_voyage .carte_titre a:hover { color: #fff; }
.carte_voyage .carte_stats li { color: rgba(255,255,255,.88); }
.carte_voyage .carte_stats i { color: var(--orange-clair); }
.carte_voyage .carte_pied { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); }
.carte_voyage .auteur strong { color: #fff; }
.carte_voyage .auteur small { color: rgba(255,255,255,.7); }
.carte_voyage .auteur:hover strong { color: var(--orange-clair); }
.carte_voyage .badge_mtb { background: rgba(255,255,255,.16); color: #fff; }
.carte_voyage:hover .carte_media > img { transform: scale(1.06); }
.carte_voyage .carte_drapeaux { bottom: auto; right: auto; top: 46px; left: 12px; }
@media (max-width: 575.98px) {
    .carte_billet { grid-template-columns: 116px minmax(0, 1fr); }
    .carte_billet .carte_media { min-height: 116px; }
    .carte_billet .carte_corps { padding: 12px 14px 4px; gap: 4px; }
    .carte_billet .carte_titre { font-size: 17px; }
    .carte_billet .carte_extrait { -webkit-line-clamp: 2; font-size: 14px; }
    .carte_billet .carte_pied { padding: 6px 14px 10px; }
    .carte_billet .pastille_media { display: none; }
    .carte_voyage { aspect-ratio: 4 / 4.4; }
}

/* ---------- 19. Accueil : le monde des voyageurs, zoom lent de la bannière, apparitions au défilement ---------- */
.hero_accueil .carousel-item { overflow: hidden; }
.hero_fond { position: absolute; inset: 0; background: center / cover no-repeat; }
.hero_accueil .carousel-item.active .hero_fond { animation: zoom_lent 16s ease-out both; }
@keyframes zoom_lent { from { transform: scale(1.12); } to { transform: scale(1); } }

.monde_voyageurs { position: relative; margin-top: 90px; padding: 70px 0 80px; color: #fff; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(700px 320px at 0% 0%, rgba(238, 139, 30, .30), transparent 68%),
        radial-gradient(600px 320px at 100% 10%, rgba(31, 158, 152, .28), transparent 68%),
        linear-gradient(180deg, #171a21, var(--nuit)); }
.monde_voyageurs::before { content: ""; position: absolute; inset: auto 0 0; height: 60%; z-index: -1; background: url("../img/fond_monuments_clair.png") center bottom / cover no-repeat; opacity: .12; }
.monde_entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.monde_entete .entete_page_sur { color: var(--orange-clair); }
.monde_titre { margin: 0; color: #fff; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.monde_titre span { background: linear-gradient(90deg, var(--orange-clair), var(--rouge-vif)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.monde_sous { margin: 10px 0 0; color: rgba(255,255,255,.72); max-width: 620px; }
.monde_legende { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.monde_legende i { display: block; width: 140px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ffd9a1, #f39a3a, #e0283f, #8e0016); }
.monde_carte { height: clamp(300px, 46vw, 520px); border-radius: 22px; overflow: hidden; background: #0f1218; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.monde_carte .leaflet-container, .monde_carte.leaflet-container { background: #0f1218; font-family: var(--police-texte); }
.monde_carte .leaflet-tooltip { border: 0; border-radius: 10px; padding: 8px 12px; box-shadow: var(--ombre-forte); font-size: 14px; }
.monde_sous_titre { margin: 48px 0 18px; color: #fff; font-size: 22px; font-weight: 700; }
.destinations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.destination { position: relative; display: flex; align-items: flex-end; padding: 16px; border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff; background: #222833 var(--img, none) center / cover no-repeat; box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); transition: transform var(--transition); }
.destination::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78)); }
.destination:hover { color: #fff; transform: translateY(-4px); }
.destination_une { grid-column: span 2; grid-row: span 2; }
.destination_une strong { font-size: 30px !important; }
.destination_rang { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-family: var(--police-titre); font-weight: 700; font-size: 13px; }
.destination_texte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.destination_texte img { grid-row: span 2; width: 28px; height: 21px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.destination_texte strong { font-family: var(--police-titre); font-size: 20px; line-height: 1.1; }
.destination_texte small { font-size: 13px; opacity: .85; }
@media (max-width: 991px) { .destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }

/* Apparition en douceur au défilement (désactivée si l'utilisateur préfère moins d'animations) */
@media (prefers-reduced-motion: no-preference) {
    .js_reveal .grille_cartes > .carte { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1), box-shadow var(--transition); }
    .js_reveal .grille_cartes > .carte.visible { opacity: 1; transform: none; }
    .js_reveal .grille_cartes > .carte.visible:hover { transform: translateY(-4px); }
}

/* ---------- 20. Top 100 : podium des trois premiers ---------- */
.podium_scene { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; max-width: 860px; margin: 0 auto 34px; }
.podium_marche { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 12px 0; color: var(--encre); }
.podium_marche:hover { color: var(--encre); }
.podium_marche:hover .podium_avatar img { transform: scale(1.05); }
.podium_avatar { position: relative; margin-bottom: 8px; }
.podium_avatar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--ombre-forte); transition: transform var(--transition); }
.podium_marche_1 .podium_avatar img { width: 118px; height: 118px; }
.podium_avatar i { position: absolute; right: -4px; bottom: -2px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 3px solid #fff; color: #fff; font-size: 14px; background: linear-gradient(135deg, #e4c171, #b98a1f); }
.podium_marche_2 .podium_avatar i { background: linear-gradient(135deg, #d9dde3, #8c96a3); }
.podium_marche_3 .podium_avatar i { background: linear-gradient(135deg, #e7b089, #a4612f); }
.podium_marche strong { font-family: var(--police-titre); font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium_km { font-family: var(--police-titre); font-weight: 700; font-size: 22px; letter-spacing: -.02em; background: linear-gradient(90deg, var(--rouge), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium_marche small { color: var(--texte-doux); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium_socle { width: 100%; margin-top: 12px; display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; border-radius: 16px 16px 0 0; color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 34px; background: linear-gradient(180deg, #2a2f3a, var(--nuit)); }
.podium_marche_1 .podium_socle { height: 130px; background: linear-gradient(180deg, var(--rouge-vif), var(--rouge-fonce)); }
.podium_marche_2 .podium_socle { height: 96px; }
.podium_marche_3 .podium_socle { height: 72px; }
@media (max-width: 575.98px) {
    .podium_avatar img { width: 64px; height: 64px; }
    .podium_marche_1 .podium_avatar img { width: 80px; height: 80px; }
    .podium_marche strong { font-size: 15px; }
    .podium_km { font-size: 16px; }
    .podium_marche small { display: none; }
}
