/*
 * tdf-functions.css
 * CSS consolidé depuis tous les fichiers PHP de inc/functions/
 * + tdf-core.php (hook tdf_enqueue_mobile_scroll_css)
 *
 * Optimisations appliquées :
 *   - Conteneurs widgets fusionnés en un seul groupe de sélecteurs
 *   - Règles .plr-footer dédupliquées (exception carbu : margin 14px)
 *   - Règles .plr-msg dédupliquées (2 variantes : sans/avec padding)
 *   - Une seule requête HTTP mise en cache navigateur
 *     remplace N blocs <style> injectés par PHP par page
 *
 * Sources :
 *   tdf-core.php                          → tdf_enqueue_mobile_scroll_css()
 *   functions-parking-larochelle.php      → plr_styles_once(), plr_poi_styles_once()
 *   functions-hub-larochelle.php          → plr_hub_styles_once()
 *   functions-direct-larochelle.php       → plrd_styles()
 *   functions-bus-larochelle.php          → styles inline
 *   functions-velos-larochelle.php        → styles inline
 *   functions-marees-larochelle.php       → styles inline
 *   functions-marches-larochelle.php      → styles inline
 *   functions-prix-carburants.php         → styles inline
 *   functions-pav-larochelle.php          → styles inline
 *   functions-irve-larochelle.php         → plr_irve_styles_once()
 *   functions-vigilance-larochelle.php    → plr_vigilance_styles()
 *   functions-pharmacies-larochelle.php   → plr_pharmacies_styles()
 *   functions-baignades-larochelle.php    → plr_baignades_styles()
 *   functions-cinemas-larochelle.php      → plr_cinema_styles_once()
 */


/* ==========================================================================
   VARIABLES GLOBALES
   Modifiez ici pour répercuter les valeurs sur tout le site.
   ========================================================================== */

:root {
    /*
     * Hauteur du menu sticky du site (header WordPress).
     * Utilisée pour décaler tout élément sticky/fixed en dessous du header :
     *   - barre de navigation plrd-tabnav (desktop)
     *   - anchor bars thématiques
     *   - tout futur composant sticky
     */
    --sticky-top: 79px;
}


/* ==========================================================================
   0. BASE COMMUNE — optimisation : règles partagées dédupliquées
   ========================================================================== */

/*
 * Conteneur widget — même styles sur 7 classes distinctes.
 * .plr-widget          : parking (classe de base)
 * .plr-bus-widget      : bus
 * .plr-velos-widget    : vélos Yélo
 * .plr-march-widget    : marchés
 * .plr-pav-widget      : points apport volontaire
 * .plr-irve-widget     : bornes de recharge IRVE
 * .plr-carbu-widget    : prix carburants
 */
.plr-widget,
.plr-bus-widget,
.plr-velos-widget,
.plr-march-widget,
.plr-pav-widget,
.plr-irve-widget,
.plr-carbu-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px 12px;
    margin: 0 0 1.5em;
}

/*
 * Footer — identique sur 6 contextes (parking base + 5 widgets).
 * Exception : .plr-carbu-widget .plr-footer a margin:14px (ci-dessous section 9).
 */
.plr-footer,
.plr-bus-widget .plr-footer,
.plr-maree-widget .plr-footer,
.plr-march-widget .plr-footer,
.plr-pav-widget .plr-footer,
.plr-irve-widget .plr-footer {
    font-size: .72em!important;
    color: #94a3b8;
    margin: 12px 0 0;
    text-align: right;
}
.plr-footer a,
.plr-bus-widget .plr-footer a,
.plr-maree-widget .plr-footer a,
.plr-march-widget .plr-footer a,
.plr-pav-widget .plr-footer a,
.plr-irve-widget .plr-footer a { color: #64748b; text-decoration: none; }
.plr-footer a:hover,
.plr-bus-widget .plr-footer a:hover,
.plr-maree-widget .plr-footer a:hover,
.plr-march-widget .plr-footer a:hover,
.plr-pav-widget .plr-footer a:hover,
.plr-irve-widget .plr-footer a:hover { text-decoration: underline; }

/*
 * .plr-msg — 2 variantes :
 *   sans padding : parking base + marées
 *   avec padding : PAV, IRVE, carburants
 */
.plr-msg,
.plr-maree-widget .plr-msg { font-size: .85em; color: #64748b; }
.plr-pav-widget .plr-msg,
.plr-irve-widget .plr-msg,
.plr-carbu-widget .plr-msg { font-size: .85em; color: #64748b; padding: 8px 0; }


/* ==========================================================================
   1. LISTINGS — Mobile scroll horizontal
   Source : tdf-core.php → tdf_enqueue_mobile_scroll_css()
   Condition : présence du wrapper .tdf-mobile-scroll dans le widget listings-ads
   ========================================================================== */

@media (max-width: 767px) {

    .tdf-mobile-scroll .list-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
		align-items:stretch !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tdf-mobile-scroll .list-layout::-webkit-scrollbar {
        display: none;
    }

    .tdf-mobile-scroll .list-layout .listing-card-container-nl {
        flex: 0 0 66vw !important;
        width: 66vw !important;
        max-width: 66vw !important;
        min-width: 0 !important;
        float: none !important;
        scroll-snap-align: start;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .tdf-mobile-scroll .list-layout .listing-card-container-nl:last-child {
        padding-right: 0 !important;
    }

    .tdf-mobile-scroll .loader-ajax-container,
    .tdf-mobile-scroll .pagination-container,
    .tdf-mobile-scroll nav.pagination,
    .tdf-mobile-scroll .load-more-button {
        display: none !important;
    }

}


/* ==========================================================================
   2. PARKINGS — Widget + POI
   Source : functions-parking-larochelle.php
            → plr_styles_once() + plr_poi_styles_once()
   ========================================================================== */

/* Box-sizing global dans le contexte widget parking */
.plr-widget *, .plr-widget *::before, .plr-widget *::after { box-sizing: border-box; }

/* Header */
.plr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.plr-title  { font-weight: 700; color: #1a202c; }
.plr-badge  { font-size: .75em; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.plr-badge--loading { background: #e2e8f0; color: #64748b; }
.plr-badge--ok      { background: #dcfce7; color: #166534; }
.plr-badge--error   { background: #fee2e2; color: #991b1b; }

/* Carte Leaflet */
.plr-map { height: 340px; border-radius: 10px; margin-bottom: 16px; border: 1px solid #e2e8f0; overflow: hidden; }

/* Fix mobile — pins ancrés pendant le zoom
 * touch-action:none délègue 100 % des events touch à Leaflet.
 * Sans ça, le navigateur fait son propre pinch-zoom natif en parallèle
 * et les marqueurs (dans le système Leaflet) ne suivent pas.
 * IMPORTANT : ne JAMAIS mettre transform:translateZ(0) sur un conteneur
 * de carte Leaflet — cela crée un nouveau contexte de coordonnées qui
 * casse le positionnement des marqueurs lors du zoom sur mobile. */
.plr-map,
.plr-carbu-map,
.plr-pav-map,
.plr-irve-map,
#cmnMap {
    touch-action: none;
}

/* Grille full */
.plr-style-full .plr-grid,
.plr-style-both .plr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.plr-style-full .plr-grid:has(.plr-card:only-child) .plr-card,
.plr-style-both .plr-grid:has(.plr-card:only-child) .plr-card { grid-column: 1 / -1; }

.plr-style-full .plr-grid:has(.plr-card:nth-child(2):last-child),
.plr-style-both .plr-grid:has(.plr-card:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }

/* Cards */
.plr-card {
    display: block;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; text-align: center; transition: box-shadow .2s;
    text-decoration: none; color: inherit;
}
.plr-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); text-decoration: none; }
.plr-card-name  { font-size: .82em; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-card-count { font-size: 2em; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.plr-card-label { font-size: .72em; color: #94a3b8; }
.plr-card-total { font-size: .68em; color: #cbd5e1; margin-top: 1px; }
.plr-card-time  { font-size: .68em; color: #cbd5e1; margin-top: 3px; }
.plr-card-dist  { font-size: .68em; color: #2563eb; font-weight: 600; margin-top: 3px; }

/* Géoloc */
.plr-geo-wrap   { margin-bottom: 12px; }
.plr-geo-btn    { width: 100%; padding: 8px 16px; background: #1e1c3b; color: #fff; border: none; border-radius: 8px; font-size: .85em; font-weight: 600; cursor: pointer; transition: background .2s; margin-bottom: 8px; }
.plr-geo-btn:hover { background: #2d3748; }
.plr-geo-btn--active { background: #2563eb !important; }
.plr-geo-or     { font-size: .82em; color: #94a3b8; text-align: center; margin-bottom: 8px; }
.plr-addr-row   { display: flex; gap: 8px; }
.plr-addr-input { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; margin-bottom: 0 !important; }
.plr-addr-search { padding: 8px 14px; background: #da667b; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; transition: background .2s; }
.plr-addr-search:hover { background: #334155; }

/* Toolbar */
.plr-toolbar     { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.plr-toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plr-filter-label { font-size: .75em; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.plr-tri-select  { font-size: .82em; padding: 4px 10px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #334155; cursor: pointer; margin-bottom: 0; }

/* Toggle carte */
.plr-map-toggle-btn  { padding: 6px 14px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: .82em; font-weight: 600; cursor: pointer; color: #475569; transition: all .15s; }
.plr-map-toggle-btn:hover { border-color: #94a3b8; }
.plr-map-toggle-btn--active { background: #1a202c !important; color: #fff !important; border-color: #1a202c !important; }

/* Barre dispo */
.plr-card-bar      { margin-top: 8px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.plr-card-bar-fill { height: 100%; border-radius: 3px; transition: width .6s ease; }

/* Grille compact */
.plr-style-compact .plr-grid { display: flex; flex-direction: column; gap: 6px; }
.plr-style-compact .plr-card { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; gap: 8px; border-radius: 8px; }
.plr-style-compact .plr-card-name  { font-size: .85em; font-weight: 600; color: #334155; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-style-compact .plr-card-count { font-size: 1.1em; font-weight: 800; }
.plr-style-compact .plr-card-label { font-size: .72em; color: #94a3b8; margin-left: 2px; }
.plr-style-compact .plr-card-bar,
.plr-style-compact .plr-card-total,
.plr-style-compact .plr-card-time  { display: none; }

/* Niveaux dispo */
.plr-level-high   .plr-card-count    { color: #16a34a; }
.plr-level-high   .plr-card-bar-fill { background: #16a34a; }
.plr-level-medium .plr-card-count    { color: #d97706; }
.plr-level-medium .plr-card-bar-fill { background: #d97706; }
.plr-level-low    .plr-card-count    { color: #dc2626; }
.plr-level-low    .plr-card-bar-fill { background: #dc2626; }
.plr-level-closed .plr-card-count    { color: #94a3b8; }
.plr-level-closed .plr-card-bar-fill { background: #cbd5e1; }

/* --- POI Parking --- */
.plr-poi-widget { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; margin: 0 0 1.5em; }
.plr-poi-form { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.plr-poi-select { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fff; color: #1a202c; }
.plr-poi-btn { padding: 8px 16px; background: #1a202c; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
.plr-poi-btn:hover { background: #2d3748; }
.plr-poi-destination { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.plr-poi-dest-label { font-size: 13px; color: #64748b; }
.plr-poi-dest-name  { font-size: 16px; color: #1a202c; }
.plr-poi-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.plr-poi-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px 12px; align-items: center; }
.plr-poi-card.plr-poi-best { border: 2px solid #16a34a; }
.plr-poi-rank { font-size: 20px; font-weight: 700; color: #94a3b8; text-align: center; }
.plr-poi-rank--first { color: #16a34a; }
.plr-poi-name { font-size: 14px; font-weight: 600; color: #1a202c; margin-bottom: 3px; }
.plr-poi-dist { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.plr-poi-fiche { font-size: 12px; color: #2563eb; text-decoration: none; }
.plr-poi-fiche:hover { text-decoration: underline; }
.plr-poi-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #dcfce7; color: #166534; margin-left: 6px; vertical-align: middle; font-weight: 500; }
.plr-poi-right  { text-align: right; }
.plr-poi-count  { font-size: 26px; font-weight: 800; line-height: 1; }
.plr-poi-sub    { font-size: 11px; color: #94a3b8; }
.plr-poi-barwrap { grid-column: 1 / -1; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.plr-poi-barfill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.plr-poi-map-toggle { margin-bottom: 10px; }
.plr-poi-mapbtn { background: none; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 14px; font-size: 13px; color: #475569; cursor: pointer; transition: background .2s; }
.plr-poi-mapbtn:hover { background: #f8fafc; }
/* POI override : carte plus petite que la carte parking (340 → 320px) */
.plr-poi-widget .plr-map { height: 320px; margin-bottom: 10px; }


/* ==========================================================================
   3. HUB — Widget multi-données
   Source : functions-hub-larochelle.php → plr_hub_styles_once()
   ========================================================================== */

.plr-hub-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0 0 1.5em;
}
.plr-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.plr-hub-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .2s;
}
.plr-hub-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.plr-hub-card-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px;
}
.plr-hub-card-icon    { font-size: 1.4em; line-height: 1; }
.plr-hub-card-title   { font-weight: 700; font-size: .95em; color: #1a202c; flex: 1; }
.plr-hub-card-refresh { cursor: pointer; color: #94a3b8; font-size: 1.1em; transition: transform .4s; user-select: none; }
.plr-hub-card-refresh:hover { color: #475569; }
.plr-hub-spinner { color: #94a3b8; font-size: .85em; padding: 8px 0; }
.plr-hub-error   { color: #dc2626; font-size: .82em; padding: 4px 0; }

/* Big number */
.plr-hub-big { font-size: 2.2em; font-weight: 800; line-height: 1.1; color: #1a202c; }
.plr-hub-big span { font-size: .42em; font-weight: 500; color: #64748b; margin-left: 4px; }
.plr-hub-sub  { font-size: .78em; color: #64748b; margin: 4px 0 10px; }

/* Barre dispo parkings */
.plr-hub-bar      { height: 6px; background: #e2e8f0; border-radius: 3px; margin: 8px 0; overflow: hidden; }
.plr-hub-bar-fill { height: 100%; border-radius: 3px; transition: width .5s; }

/* Liste parkings */
.plr-hub-parkings-list {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px 10px; margin-top: 8px; font-size: .78em;
}
.plr-hub-parkings-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Météo */
.plr-hub-meteo-temp { font-size: 2.5em; font-weight: 800; color: #1a202c; line-height: 1; }
.plr-hub-meteo-temp span { font-size: .4em; color: #64748b; }
.plr-hub-meteo-label   { font-size: .88em; color: #475569; margin: 4px 0 10px; }
.plr-hub-meteo-details { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78em; color: #64748b; }

/* Marées */
.plr-hub-maree { padding: 7px 0; }
.plr-hub-maree + .plr-hub-maree { border-top: 1px solid #f1f5f9; }
.plr-hub-maree--prochaine .plr-hub-maree-type { font-weight: 700; color: #2563eb; }
.plr-hub-maree--passee    .plr-hub-maree-type { color: #94a3b8; font-size: .88em; }
.plr-hub-maree-type  { display: block; font-size: .88em; margin-bottom: 2px; }
.plr-hub-maree-heure { display: block; font-size: 1.2em; font-weight: 700; color: #1a202c; }
.plr-hub-maree-heure em { font-size: .65em; color: #2563eb; font-style: normal; margin-left: 6px; }
.plr-hub-maree-coef  { display: block; font-size: .78em; color: #64748b; margin-top: 2px; }

/* Bus */
.plr-hub-bus-arret { font-size: .8em; color: #64748b; margin-bottom: 8px; }
.plr-hub-bus-list  { display: flex; flex-direction: column; gap: 5px; }
.plr-hub-bus-row   { display: flex; align-items: center; gap: 8px; font-size: .85em; }
.plr-hub-bus-ligne {
    color: #fff; font-weight: 700; font-size: .8em;
    padding: 2px 7px; border-radius: 4px; min-width: 28px; text-align: center; flex-shrink: 0;
}
.plr-hub-bus-dir   { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; }
.plr-hub-bus-temps { font-size: .88em; color: #475569; white-space: nowrap; }
.plr-hub-bus-temps strong { color: #2563eb; }

/* Qualité de l'air */
.plr-hub-air-details {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px; font-size: .75em; color: #64748b; margin-top: 8px;
}

/* Footer hub (margin différente : 10px) */
.plr-hub-footer { font-size: .72em; color: #94a3b8; text-align: right; margin: 10px 0 0; }
.plr-hub-footer a { color: #64748b; text-decoration: none; }
.plr-hub-footer a:hover { text-decoration: underline; }

/* Responsive hub */
@media (max-width: 600px) {
    .plr-hub-grid { grid-template-columns: 1fr 1fr; }
    .plr-hub-big  { font-size: 1.7em; }
}
@media (max-width: 380px) {
    .plr-hub-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   4. LA ROCHELLE EN DIRECT — Dashboard temps réel (full + mini)
   Source : functions-direct-larochelle.php → plrd_styles()
   ========================================================================== */

/* Variables & Base — alignées sur le design system des pages single
   (tokens identiques : bg-soft #F7F7F8, accent #F91942, ink #14131F…) */
.plrd-page {
    --plrd-bg:       #F7F7F8;
    --plrd-dark:     #1c1b27;
    --plrd-accent:   #F91942;
    --plrd-accent-l: #FEE7EC;
    --plrd-card:     #FFFFFF;
    --plrd-border:   #ECECEE;
    --plrd-text:     #14131F;
    --plrd-muted:    #74738A;
    --plrd-radius:   16px;
    --plrd-shadow:   0 1px 2px rgba(20,19,31,.04);
    --plrd-shadow-md:0 4px 12px rgba(20,19,31,.06), 0 2px 4px rgba(20,19,31,.04);
    --plrd-head:     'Poppins', 'Raleway', system-ui, sans-serif;

    font-family: 'Raleway', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px; line-height: 1.55;
    color: var(--plrd-text);
    background: var(--plrd-bg);
    border: 1px solid var(--plrd-border);
    border-radius: var(--plrd-radius);
    overflow: hidden;
}
.plrd-page *, .plrd-page *::before, .plrd-page *::after { box-sizing: border-box; }
.plrd-page a { text-decoration: none; color: inherit; }

/* Header */
.plrd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--plrd-border);
    background: var(--plrd-card);
    gap: 12px;
}
.plrd-header-left  { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.plrd-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.plrd-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--plrd-accent);
    box-shadow: 0 0 0 3px rgba(249,25,66,.18);
    animation: plrd-pulse 2.4s ease-in-out infinite; flex-shrink: 0;
    align-self: center;
}
@keyframes plrd-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(249,25,66,.18); }
    50%       { box-shadow: 0 0 0 6px rgba(249,25,66,.05); }
}
/* h1 = même taille/couleur que l'ancien label « En direct » (rouge, capitales) */
.plrd-live-label {
    font-size: .72em; font-weight: 700; color: var(--plrd-accent);
    text-transform: uppercase; letter-spacing: .08em;
    margin: 0; padding: 0; display: inline; line-height: inherit;
}
/* Date : noir, plus fine */
.plrd-date {
    font-size: .82em; font-weight: 400; color: var(--plrd-text);
    letter-spacing: 0;
}
.plrd-updated-txt { font-size: .72em; color: var(--plrd-muted); }

.plrd-btn-refresh {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: none;
    border: 1px solid var(--plrd-border); border-radius: 8px;
    color: var(--plrd-muted); cursor: pointer; padding: 0;
    transition: background .15s, border-color .15s;
}
.plrd-btn-refresh:hover { background: var(--plrd-bg); border-color: var(--plrd-muted); }
.plrd-btn-refresh svg   { transition: transform .6s ease; }

/* Synthèse */
.plrd-synthese {
    display: flex; align-items: center;
    background: var(--plrd-dark); color: #fff; padding: 16px 20px;
}
.plrd-synth-item {
    display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px;
}
.plrd-synth-sep {
    width: 1px; height: 32px; background: rgba(255,255,255,.12);
    margin: 0 16px; flex-shrink: 0;
}
.plrd-synth-ico    { font-size: 1.4em; line-height: 1; flex-shrink: 0; }
.plrd-synth-big    { font-size: 1em; font-weight: 700; white-space: nowrap; }
.plrd-synth-detail { font-size: .72em; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.plrd-synth-err    { font-size: .8em; color: rgba(255,255,255,.3); }

.plrd-synth-sk {
    background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.17) 50%, rgba(255,255,255,.07) 75%);
    background-size: 200% 100%;
    animation: plrd-sk 1.6s ease-in-out infinite; border-radius: 4px;
}
@keyframes plrd-sk {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.plrd-synth-sk--ico { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.plrd-synth-sk--big { width: 80px;  height: 14px; margin-bottom: 5px; }
.plrd-synth-sk--sm  { width: 110px; height: 10px; }

/* Tab Nav */
.plrd-tabnav {
    display: flex; background: var(--plrd-card);
    border-bottom: 1px solid var(--plrd-border); z-index: 200;
}
.plrd-tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; padding: 10px 4px;
    color: var(--plrd-muted); font-size: .62em; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
}
.plrd-tab:hover   { color: var(--plrd-text); }
.plrd-tab--active { color: var(--plrd-accent); border-bottom-color: var(--plrd-accent); }
.plrd-tab-ico     { width: 22px; height: 22px; }

@media (max-width: 767px) {
    .plrd-tabnav {
        position: fixed; bottom: 0; left: 0; right: 0;
        border-top: 1px solid var(--plrd-border); border-bottom: none;
        box-shadow: 0 -4px 20px rgba(26,26,46,.1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .plrd-page { /*padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));*/ }
}
@media (min-width: 768px) {
    .plrd-tabnav  { position: sticky; top: var(--sticky-top, 0px); flex-direction: row; justify-content: center; border-bottom: 1px solid var(--plrd-border); }
    .plrd-tab     { flex-direction: row; gap: 7px; font-size: .78em; padding: 12px 20px; flex: unset; }
    .plrd-tab-ico { width: 18px; height: 18px; }
    .plrd-tab--active { background: var(--plrd-accent-l); border-bottom-color: var(--plrd-accent); }
}

/* Sections */
.plrd-sections { display: flex; flex-direction: column; }
.plrd-section  { padding: 24px 20px; border-bottom: 1px solid var(--plrd-border); }
.plrd-section--alt { background: var(--plrd-card); }

.plrd-section-title {
    font-family: var(--plrd-head);
    font-size: 1.13em; font-weight: 600; letter-spacing: -.02em;
    text-transform: none; color: var(--plrd-text); margin: 0 0 16px;
    display: flex; align-items: center; gap: 12px;
}

/* More links */
.plrd-more-links   { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.plrd-more-links a { font-size: .78em; color: var(--plrd-accent); font-weight: 600; }
.plrd-more-links a:hover { text-decoration: underline; }

/* Hero Cards (Transport) */
.plrd-heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.plrd-hero {
    background: var(--plrd-card); border: 1px solid var(--plrd-border);
    border-radius: var(--plrd-radius); padding: 20px 16px 16px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 3px; box-shadow: var(--plrd-shadow); transition: box-shadow .2s, transform .2s;
}
.plrd-hero:hover { box-shadow: 0 4px 20px rgba(26,26,46,.12); transform: translateY(-1px); }

.plrd-hero-icon {
    width: 40px; height: 40px; background: var(--plrd-accent-l); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--plrd-accent); margin-bottom: 8px; flex-shrink: 0;
}
.plrd-hero-num { font-size: 2.4em; font-weight: 800; color: var(--plrd-dark); line-height: 1; letter-spacing: -.03em; min-height: 1em; transition: color .3s; }
.plrd-hero-num--low { color: var(--plrd-accent); }
.plrd-hero-label { font-size: .72em; color: var(--plrd-muted); margin-top: 3px; }
.plrd-hero-sub   { font-size: .62em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--plrd-muted); }
.plrd-hero-link  {
    margin-top: 12px; font-size: .72em; font-weight: 600; color: var(--plrd-accent);
    background: var(--plrd-accent-l); border: 1px solid var(--plrd-accent-l);
    border-radius: 20px; padding: 4px 14px;
    transition: background .15s, color .15s, border-color .15s;
}
.plrd-hero-link:hover { background: var(--plrd-accent); color: #fff; border-color: var(--plrd-accent); }

/* Événements du jour */
.plrd-events {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.plrd-event {
    display: flex; flex-direction: column; background: var(--plrd-bg);
    border: 1px solid var(--plrd-border); border-radius: 10px; overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.plrd-event:hover      { box-shadow: var(--plrd-shadow); transform: translateY(-1px); }
.plrd-event-img        { height: 90px; background-size: cover; background-position: center; background-color: var(--plrd-border); }
.plrd-event-img--empty { background-color: var(--plrd-border); }
.plrd-event-body       { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.plrd-event-heure      { font-size: .68em; font-weight: 700; color: var(--plrd-accent); text-transform: uppercase; letter-spacing: .05em; }
.plrd-event-titre      { font-size: .85em; font-weight: 600; color: var(--plrd-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plrd-event-lieu       { font-size: .7em; color: var(--plrd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.plrd-empty   { font-size: .88em; color: var(--plrd-muted); }
.plrd-empty a { color: var(--plrd-accent); }

@media (max-width: 640px) {
    .plrd-events {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; gap: 10px;
        margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none;
    }
    .plrd-events::-webkit-scrollbar { display: none; }
    .plrd-event { flex-shrink: 0; width: 180px; scroll-snap-align: start; }
}

/* Hub row (Mer & Services) */
.plrd-hub-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plrd-page .plr-hub-card {
    background: var(--plrd-card); border: 1px solid var(--plrd-border) !important;
    border-radius: var(--plrd-radius) !important; box-shadow: none !important;
}
.plrd-page .plr-hub-card:hover { box-shadow: var(--plrd-shadow) !important; }

/* Numéros utiles */
.plrd-numeros       { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--plrd-border); }
.plrd-numeros-title { font-size: .68em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--plrd-muted); margin: 0 0 12px; }
.plrd-numeros-grid  { display: flex; flex-wrap: wrap; gap: 8px; }
.plrd-num {
    display: flex; flex-direction: column; align-items: center;
    background: var(--plrd-bg); border: 1px solid var(--plrd-border);
    border-radius: 10px; padding: 10px 14px; min-width: 64px;
    transition: background .15s, border-color .15s;
}
.plrd-num:hover  { background: var(--plrd-accent-l); border-color: var(--plrd-accent); }
.plrd-num-val    { font-size: .95em; font-weight: 800; color: var(--plrd-dark); white-space: nowrap; }
.plrd-num-lbl    { font-size: .62em; color: var(--plrd-muted); text-align: center; margin-top: 3px; line-height: 1.2; }

/* Responsive dashboard */
@media (max-width: 640px) {
    .plrd-header   { padding: 12px 16px; }
    .plrd-synthese { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .plrd-synth-sep { width: 100%; height: 1px; margin: 2px 0; }
    .plrd-synth-item { min-width: 0; width: 100%; }
    .plrd-synth-detail, .plrd-synth-sk--sm { display: none; }
    .plrd-section  { padding: 20px 16px; }
    .plrd-hero     { padding: 16px 10px 12px; }
    .plrd-hero-num { font-size: 2em; }
    .plrd-hub-row  { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1023px) {
    .plrd-hub-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .plrd-hub-row { grid-template-columns: repeat(3, 1fr); }
}

/* Widget Mini */
.plrd-mini {
    border: 1px solid var(--plrd-border); border-radius: var(--plrd-radius);
    overflow: hidden; box-shadow: var(--plrd-shadow); background: var(--plrd-card);
}
.plrd-mini-header {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: var(--plrd-card); border-bottom: 1px solid var(--plrd-border);
}
.plrd-mini-title { flex: 1; font-size: .82em; color: var(--plrd-muted); font-weight: 500; }
.plrd-mini-title strong { color: var(--plrd-text); font-weight: 700; }

/* Badge vigilance */
.plrd-mini-vigil {
    position: relative; font-size: .68em; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; border: 1px solid;
    white-space: nowrap; cursor: help;
}
/* Tooltip */
.plrd-mini-vigil::after {
    content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); right: 0;
    background: var(--plrd-dark); color: #fff;
    font-size: .9em; font-weight: 500; white-space: nowrap;
    padding: 7px 12px; border-radius: 8px;
    pointer-events: none; opacity: 0; transform: translateY(4px);
    transition: opacity .18s, transform .18s; z-index: 300;
    box-shadow: 0 4px 14px rgba(26,26,46,.18);
}
.plrd-mini-vigil::before {
    content: ''; position: absolute; bottom: calc(100% + 2px); right: 16px;
    border: 5px solid transparent; border-top-color: var(--plrd-dark);
    pointer-events: none; opacity: 0; transform: translateY(4px);
    transition: opacity .18s, transform .18s; z-index: 300;
}
.plrd-mini-vigil:hover::after,
.plrd-mini-vigil:hover::before,
.plrd-mini-vigil.plrd-tooltip--open::after,
.plrd-mini-vigil.plrd-tooltip--open::before { opacity: 1; transform: translateY(0); }
@media (max-width: 480px) {
    .plrd-mini-vigil::after  { right: auto; left: 0; white-space: normal; max-width: 240px; }
    .plrd-mini-vigil::before { right: auto; left: 16px; }
}

/* Strip de données */
.plrd-mini-strip { display: flex; align-items: center; background: var(--plrd-dark); color: #fff; padding: 14px 16px; gap: 0; }
.plrd-mini-item  { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.plrd-mini-item--link { border-radius: 8px; padding: 6px 4px; margin: -6px -4px; transition: background .15s; }
.plrd-mini-item--link:hover { background: rgba(255,255,255,.08); }
.plrd-mini-sep   { width: 1px; height: 28px; background: rgba(255,255,255,.12); margin: 0 12px; flex-shrink: 0; }

/* CTA */
.plrd-mini-cta {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-left: 12px;
    background: var(--plrd-accent); color: #fff; border-radius: 8px;
    transition: background .15s, transform .15s;
}
.plrd-mini-cta:hover     { background: #bf342d; transform: translateX(2px); }
.plrd-mini-cta svg       { flex-shrink: 0; transition: transform .2s; }
.plrd-mini-cta:hover svg { transform: translateX(2px); }

@media (max-width: 460px) {
    .plrd-mini-strip { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
    .plrd-mini-sep   { width: 100%; height: 1px; margin: 0; flex-basis: 100%; }
    .plrd-mini-item  { min-width: 0; flex: 1 1 40%; }
    .plrd-mini-cta   { margin-left: auto; }
    .plrd-synth-detail { display: none; }
}


/* ==========================================================================
   5. BUS — Horaires en temps réel
   Source : functions-bus-larochelle.php → styles inline
   ========================================================================== */

/* Recherche */
.plr-bus-search-wrap { position: relative; margin-bottom: 14px; }
.plr-bus-input {
    width: 100%; padding: 9px 14px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; background: #fff; color: #1a202c; outline: none;
}
.plr-bus-input:focus { border-color: #2563eb; }
.plr-bus-suggestions {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    margin: 4px 0 0; padding: 4px 0; list-style: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.1); max-height: 220px; overflow-y: auto;
}
.plr-bus-sugg-item { padding: 8px 14px; cursor: pointer; font-size: 14px; color: #1a202c; }
.plr-bus-sugg-item:hover { background: #f1f5f9; }

/* Arrêt sélectionné */
.plr-bus-arret-label { font-size: .9em; color: #475569; margin-bottom: 12px; }
.plr-bus-arret-icon  { margin-right: 4px; }

/* Vue full */
.plr-bus-style-full .plr-bus-content { display: flex; flex-direction: column; gap: 6px; }
.plr-bus-card {
    display: grid; grid-template-columns: 48px 1fr auto;
    align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; padding: 10px 14px;
}
.plr-bus-card--urgent { border-color: #fca5a5; background: #fff7f7; }
.plr-bus-badge-lg {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9em; font-weight: 800; padding: 4px 8px; border-radius: 6px;
    min-width: 36px; text-align: center;
}
.plr-bus-card-dir  { font-size: .85em; color: #334155; font-weight: 500; }
.plr-bus-card-time { text-align: right; }
.plr-bus-card-heure{ font-size: 1.1em; font-weight: 700; color: #1a202c; }
.plr-bus-card-mins { font-size: .75em; margin-top: 1px; }

/* Vue compact */
.plr-bus-style-compact .plr-bus-content { display: flex; flex-direction: column; gap: 4px; }
.plr-bus-row {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    background: #fff; border: 0.5px solid #e2e8f0; border-radius: 7px;
}
.plr-bus-badge { font-size: .8em; font-weight: 800; padding: 2px 7px; border-radius: 5px; min-width: 30px; text-align: center; flex-shrink: 0; }
.plr-bus-dir   { flex: 1; font-size: .82em; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-bus-time  { font-size: .82em; flex-shrink: 0; }

/* États */
.plr-bus-error { font-size: .85em; color: #dc2626; padding: 8px 0; }
.plr-bus-empty { font-size: .85em; color: #64748b; padding: 8px 0; }


/* ==========================================================================
   6. VÉLOS YÉLO — Disponibilités stations
   Source : functions-velos-larochelle.php → styles inline
   ========================================================================== */

/* Légende */
.plr-velos-legend { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.plr-velos-legend-item { font-size: 12px; color: #64748b; }
.plr-velo-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; font-size: 10px;
    background: #16a34a; color: #fff; font-weight: 800; margin-right: 3px;
}
.plr-velo-ico--p { background: #2563eb; }

/* Grille */
.plr-velos-style-full .plr-velos-grid,
.plr-velos-style-both .plr-velos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

.plr-velos-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; transition: box-shadow .2s; }
.plr-velos-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.plr-velos-nom { font-size: .82em; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plr-velos-counts      { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; margin-top: 6px; }
.plr-velos-count-block { flex: 1; text-align: center; }
.plr-velos-count       { font-size: 1.8em; font-weight: 800; line-height: 1; }
.plr-velos-count-label { font-size: .7em; color: #94a3b8; margin-top: 2px; }
.plr-velos-sep         { width: 1px; height: 36px; background: #e2e8f0; }

.plr-velos-bars    { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.plr-velos-bar-row { display: flex; align-items: center; gap: 6px; }
.plr-velos-bar-lbl { font-size: .68em; color: #94a3b8; width: 34px; flex-shrink: 0; }
.plr-velos-bar     { flex: 1; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.plr-velos-bar-fill{ height: 100%; border-radius: 2px; transition: width .6s ease; }
.plr-velos-bar-pct { font-size: .68em; color: #94a3b8; width: 26px; text-align: right; flex-shrink: 0; }
.plr-velos-total   { font-size: .68em; color: #cbd5e1; text-align: right; }

/* Compact */
.plr-velos-style-compact .plr-velos-grid { display: flex; flex-direction: column; gap: 5px; }
.plr-velos-card.plr-velos-compact { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-radius: 8px; gap: 8px; }
.plr-velos-chips     { display: flex; gap: 8px; flex-shrink: 0; }
.plr-velos-chip      { font-size: .82em; font-weight: 600; }
.plr-velos-chip--place { color: #2563eb; }


/* ==========================================================================
   7. MARÉES — Prédictions marégraphiques
   Source : functions-marees-larochelle.php → styles inline
   ========================================================================== */

.plr-maree-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
}
.plr-maree-style-full {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px 20px 12px; margin: 0 0 1.5em;
}

/* Graphique */
.plr-maree-graph-wrap { margin-bottom: 16px; }
.plr-maree-canvas     { width: 100% !important; max-height: 140px; }

/* Jours full */
.plr-maree-day       { margin-bottom: 16px; }
.plr-maree-day-title {
    font-size: .85em; font-weight: 700; color: #475569; text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #e2e8f0;
}
.plr-maree-day-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}

/* Cartes PM/BM */
.plr-maree-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 10px 12px; text-align: center; position: relative;
}
.plr-maree-card--next { border: 2px solid #2563eb; }
.plr-maree-card-type  { font-size: .75em; font-weight: 600; margin-bottom: 4px; }
.plr-maree-card-time  { font-size: 1.4em; font-weight: 800; line-height: 1; color: #1a202c; margin-bottom: 2px; }
.plr-maree-card-h     { font-size: 1em; font-weight: 600; color: #475569; margin-bottom: 4px; }
.plr-maree-card-h small { font-size: .7em; font-weight: 400; }
.plr-maree-card-coeff { font-size: .72em; }
.plr-maree-card-next-badge {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    background: #2563eb; color: #fff; font-size: .65em; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}

/* Compact */
.plr-maree-compact-list { display: flex; flex-direction: column; gap: 3px; }
.plr-maree-day-label    { font-size: .78em; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 3px; }
.plr-maree-row {
    display: grid; grid-template-columns: 60px 60px 60px 1fr;
    align-items: center; gap: 8px; padding: 5px 8px;
    background: #fff; border: 0.5px solid #e2e8f0; border-radius: 7px; font-size: .85em;
}
.plr-maree-next  { border: 1.5px solid #2563eb; background: #eff6ff; }
.plr-maree-type  { font-weight: 700; font-size: .82em; }
.plr-maree-time  { font-weight: 600; color: #1a202c; }
.plr-maree-h     { color: #475569; }
.plr-maree-coeff { font-size: .78em; }

/* Mini */
.plr-maree-mini { font-size: .9em; }


/* ==========================================================================
   8. MARCHÉS — Marchés de La Rochelle
   Source : functions-marches-larochelle.php → styles inline
   ========================================================================== */

/* Météo intégrée */
.plr-march-meteo       { margin-bottom: 14px; }
.plr-march-meteo-inner { background: #fff; border-radius: 9px; padding: 10px 14px; border: 1px solid #e2e8f0; }
.plr-march-meteo-main  { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.plr-march-meteo-emoji { font-size: 1.5em; }
.plr-march-meteo-temp  { font-size: 1.2em; font-weight: 800; color: #1a202c; }
.plr-march-meteo-label { font-size: .85em; color: #475569; flex: 1; }
.plr-march-meteo-vent  { font-size: .8em; color: #94a3b8; }
.plr-march-meteo-conseil { font-size: .82em; font-weight: 600; }

/* Filtres */
.plr-march-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.plr-march-filter {
    padding: 3px 10px; border: 1px solid #e2e8f0; border-radius: 20px;
    font-size: .78em; font-weight: 600; cursor: pointer; background: #fff;
    color: #475569; transition: all .15s;
}
.plr-march-filter--active { background: #1a202c; color: #fff; border-color: #1a202c; }

/* Cartes full */
.plr-march-content      { display: flex; flex-direction: column; gap: 8px; }
.plr-march-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; transition: opacity .2s;
}
.plr-march-card--ferme  { opacity: .55; }
.plr-march-card-top     { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.plr-march-emoji        { font-size: 1.6em; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.plr-march-nom          { font-size: .92em; font-weight: 700; color: #1a202c; }
.plr-march-lieu         { font-size: .78em; color: #64748b; margin-top: 1px; }
.plr-march-horaire      { font-size: .95em; font-weight: 800; margin-left: auto; white-space: nowrap; }
.plr-march-card-bot     { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plr-march-note         { font-size: .72em; color: #94a3b8; }
.plr-march-lien         { font-size: .75em; color: #2563eb; text-decoration: none; margin-left: auto; }
.plr-march-lien:hover   { text-decoration: underline; }

/* Statuts */
.plr-march-statut          { font-size: .75em; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.plr-march-statut--ouvert  { background: #dcfce7; color: #166534; }
.plr-march-statut--avenir  { background: #dbeafe; color: #1e40af; }
.plr-march-statut--ferme   { background: #f1f5f9; color: #94a3b8; }

/* Compact */
.plr-march-compact-row {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 0.5px solid #e2e8f0; border-radius: 8px;
    padding: 7px 10px; margin-bottom: 5px;
}
.plr-march-compact-nom  { font-size: .85em; font-weight: 600; color: #1a202c; }
.plr-march-compact-lieu { font-size: .75em; color: #64748b; }

/* Semaine */
.plr-march-semaine       { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.plr-march-sem-day       { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.plr-march-sem-day--today{ border-color: #2563eb; background: #eff6ff; }
.plr-march-sem-label     { font-size: .8em; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid #e2e8f0; }
.plr-march-sem-item      { margin-bottom: 6px; padding: 5px 8px; border-radius: 6px; background: #f8fafc; }
.plr-march-sem-nom       { font-size: .8em; font-weight: 600; color: #1a202c; }
.plr-march-sem-info      { font-size: .72em; color: #64748b; }
.plr-march-sem-saison    { font-size: .65em; color: #d97706; margin-top: 2px; }
.plr-march-sem-empty     { font-size: .78em; color: #cbd5e1; font-style: italic; }

/* Empty */
.plr-march-empty { font-size: .85em; color: #64748b; padding: 12px 0; text-align: center; }


/* ==========================================================================
   9. PRIX CARBURANTS — Stations-service
   Source : functions-prix-carburants.php → styles inline
   ========================================================================== */

/* Géoloc */
.plr-carbu-geo-wrap    { margin-bottom: 14px; }
.plr-carbu-geo-btn     { width: 100%; padding: 10px 16px; background: #1e1c3b; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 10px; transition: background .2s; }
.plr-carbu-geo-btn:hover { background: #2d3748; }
.plr-carbu-geo-or      { font-size: .82em; color: #94a3b8; text-align: center; margin-bottom: 8px; }
.plr-carbu-addr-row    { display: flex; gap: 8px; }
.plr-carbu-addr-input  { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; margin-bottom: 0 !important; }
.plr-carbu-addr-search { padding: 8px 14px; background: #da667b; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; transition: background .2s; }
.plr-carbu-addr-search:hover { background: #334155; }

/* Toolbar */
.plr-carbu-toolbar     { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.plr-carbu-toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plr-carbu-filter-label{ font-size: .8em; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.plr-carbu-carbu-btns  { display: flex; gap: 5px; flex-wrap: wrap; }
.plr-carbu-filter-group{ display: flex; align-items: center; gap: 6px; }
.plr-carbu-btn         { padding: 4px 12px; border: 1.5px solid #e2e8f0; border-radius: 20px; font-size: 1em; font-weight: 700; cursor: pointer; background: #fff; color: #475569; transition: all .15s; }
.plr-carbu-btn:hover   { border-color: #94a3b8; }
.plr-carbu-select      { font-size: 1em; padding: 4px 10px; margin-bottom: 0; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #334155; cursor: pointer; }

/* Toggle bar */
.plr-carbu-toggle-bar  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.plr-carbu-toggle-btn  {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: #fff; border: 1.5px solid #e2e8f0;
    border-radius: 8px; font-size: .82em; font-weight: 600; cursor: pointer;
    color: #475569; transition: all .15s;
}
.plr-carbu-toggle-btn:hover  { border-color: #94a3b8; background: #f8fafc; }
.plr-carbu-toggle-btn--active{ background: #1a202c !important; color: #fff !important; border-color: #1a202c !important; }

/* Panneaux */
.plr-carbu-panel { margin-bottom: 14px; }

/* Stats */
.plr-carbu-stats     { display: flex; gap: 8px; flex-wrap: wrap; }
.plr-carbu-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 140px; }
.plr-carbu-stat-name { font-size: .78em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.plr-carbu-stat-nb   { font-size: .72em; font-weight: 400; color: #94a3b8; }
.plr-carbu-stat-row  { display: flex; gap: 14px; }
.plr-carbu-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plr-carbu-stat-lbl  { font-size: .65em; color: #94a3b8; text-transform: uppercase; }
.plr-carbu-stat-item strong { font-size: .9em; font-weight: 700; color: #334155; }
.plr-carbu-stat-min  { color: #16a34a !important; }
.plr-carbu-stat-max  { color: #dc2626 !important; }

/* Podium */
.plr-carbu-podium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.plr-carbu-podium-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.plr-carbu-podium-carbu{ padding: 6px 12px; font-size: .82em; font-weight: 800; text-align: center; letter-spacing: .04em; }
.plr-carbu-podium-row  { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f8fafc; }
.plr-carbu-podium-row:last-child { border-bottom: none; }
.plr-carbu-podium-row--gold   { background: #fffbeb; }
.plr-carbu-podium-row--silver { background: #f8fafc; }
.plr-carbu-podium-row--bronze { background: #fff7ed; }
.plr-carbu-podium-medal { font-size: 1.1em; flex-shrink: 0; }
.plr-carbu-podium-info  { flex: 1; min-width: 0; }
.plr-carbu-podium-nom   { font-size: .82em; font-weight: 600; color: #1a202c; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-carbu-podium-nom:hover { color: #2563eb; text-decoration: underline; }
.plr-carbu-podium-commune { font-size: .7em; color: #94a3b8; display: block; }
.plr-carbu-podium-prix  { font-size: .95em; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.plr-carbu-podium-prix small { font-size: .7em; font-weight: 400; }

.plr-carbu-map {
    height: 320px; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden;
    /* Pas de transform ici — cf. commentaire fix mobile au-dessus */
}

/* Tableau */
.plr-carbu-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.plr-carbu-table      { width: 100%; border-collapse: collapse; font-size: 1em; }
.plr-carbu-table thead{ background: #f1f5f9; }
.plr-carbu-table th   { padding: 8px 10px !important; text-align: left; font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.plr-carbu-table tr   { transition: background .1s; }
.plr-carbu-table tr:hover td { background: #f8fafc; }
.plr-carbu-table td   { padding: 9px 4px !important; border-bottom: 1px solid #ebebeb; vertical-align: middle; }
.plr-carbu-th-prix, .plr-carbu-td-prix { text-align: center; }
.plr-carbu-td-prix    { font-weight: 700; font-size: .9em; white-space: nowrap; }
.plr-carbu-td-prix small { font-size: .72em; font-weight: 400; }
.plr-carbu-td-station { max-width: 200px; }
.plr-carbu-td-station a { color: #1a202c; font-weight: 600; text-decoration: none; display: block; line-height: 1.2em; }
.plr-carbu-td-station a:hover { color: #2563eb; text-decoration: underline; }
.plr-carbu-td-commune-sub { display: block; font-size: .95em; color: #94a3b8; margin-top: 1px; font-weight: 400; line-height: 1.2em; }
.plr-carbu-td-dist    { font-size: .8em; color: #64748b; white-space: nowrap; }
.plr-carbu-na         { color: #cbd5e1; }

/* Coloration prix */
.plr-carbu-prix-best  { background: #dcfce7; color: #166534 !important; border-radius: 5px; }
.plr-carbu-prix-worst { background: #fee2e2; color: #991b1b !important; border-radius: 5px; }

/* Compact */
.plr-carbu-compact-row  { display: flex; align-items: center; gap: 8px; background: #fff; border: .5px solid #e2e8f0; border-radius: 9px; padding: 8px 12px; margin-bottom: 5px; }
.plr-carbu-compact-rank { font-size: .8em; font-weight: 800; color: #94a3b8; min-width: 18px; text-align: center; }
.plr-carbu-compact-info { flex: 1; min-width: 0; }
.plr-carbu-compact-nom  { display: block; font-size: .85em; font-weight: 600; color: #1a202c; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-carbu-compact-nom:hover { color: #2563eb; }
.plr-carbu-compact-commune { display: block; font-size: .72em; color: #94a3b8; }
.plr-carbu-compact-prix    { font-size: .92em; font-weight: 800; padding: 3px 10px; border-radius: 7px; white-space: nowrap; border: 1.5px solid var(--col, #e2e8f0); }
.plr-carbu-compact-prix small { font-size: .7em; font-weight: 400; }

/* Mini */
.plr-carbu-mini-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 3px 12px; margin: 3px 4px 3px 0; font-size: .82em; }
.plr-carbu-mini-name { font-weight: 800; }
.plr-carbu-mini-prix { color: #475569; }

/* Style fiche station */
.plr-carbu-fiche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.plr-carbu-fiche-item { background: #fff; border: 1.5px solid var(--col, #e2e8f0); border-radius: 10px; padding: 10px 12px; text-align: center; }
.plr-carbu-fiche-nom  { display: block; font-size: .75em; font-weight: 800; color: var(--col, #475569); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.plr-carbu-fiche-prix { display: block; font-size: 1.2em; font-weight: 800; color: #1a202c; }
.plr-carbu-fiche-prix small { font-size: .65em; font-weight: 400; }
.plr-carbu-fiche-diff { display: block; font-size: .68em; color: #64748b; margin-top: 4px; }
.plr-carbu-fiche-diff--best { color: #16a34a; font-weight: 700; }
.plr-carbu-prix-best.plr-carbu-fiche-item  { background: #f0fdf4; border-color: #16a34a; }
.plr-carbu-prix-worst.plr-carbu-fiche-item { background: #fef2f2; border-color: #dc2626; }

/* Footer carbu — margin 14px (exception vs 12px standard) */
.plr-carbu-widget .plr-footer       { font-size: .72em; color: #94a3b8; margin: 14px 0 0; text-align: right; }
.plr-carbu-widget .plr-footer a     { color: #64748b; text-decoration: none; }
.plr-carbu-widget .plr-footer a:hover { text-decoration: underline; }

/* Responsive carbu */
@media (max-width: 600px) {
    .plr-carbu-widget     { padding: 8px 10px; }
    .plr-carbu-toolbar-row{ flex-direction: column; align-items: flex-start; }
    .plr-carbu-stats      { flex-direction: column; }
    .plr-carbu-stat-card  { min-width: 0; }
    .plr-carbu-podium-grid{ grid-template-columns: 1fr; }
    .plr-carbu-fiche-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .plr-carbu-table      { font-size: .88em; }
    .plr-carbu-table td   { padding: 7px 0 !important; }
    .plr-carbu-th-prix, .plr-carbu-td-prix { padding-left: 4px; padding-right: 4px; }
    .plr-carbu-td-station { max-width: 120px; }
    .plr-carbu-td-station a { white-space: normal; word-break: break-word; }
    .plr-carbu-td-prix small { display: none; }
}


/* ==========================================================================
   10. PAV — Points d'apport volontaire (tri sélectif)
   Source : functions-pav-larochelle.php → styles inline
   ========================================================================== */

/* Carte */
.plr-pav-map { height: 380px; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 14px; }

/* Géoloc */
.plr-pav-geo-wrap { margin-bottom: 14px; }
.plr-pav-geo-btn  {
    width: 100%; padding: 10px 16px; background: #1a202c; color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .2s; margin-bottom: 10px;
}
.plr-pav-geo-btn:hover { background: #2d3748; }
.plr-pav-geo-or   { font-size: .82em; color: #94a3b8; text-align: center; margin-bottom: 8px; }
.plr-pav-addr-row { display: flex; gap: 8px; }
.plr-pav-addr-input  { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; background: #fff; color: #1a202c; }
.plr-pav-addr-search { padding: 8px 14px; background: #475569; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.plr-pav-addr-search:hover { background: #334155; }

/* Contrôles */
.plr-pav-controls  { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.plr-pav-ctrl-row  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plr-pav-ctrl-label{ font-size: .78em; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; min-width: 50px; flex-shrink: 0; }
.plr-pav-chk       { display: flex; align-items: center; gap: 5px; font-size: .82em; color: #334155; cursor: pointer; margin-bottom: 0; }
.plr-pav-chk input { cursor: pointer; accent-color: #334155; margin-bottom: 0; width: 15px; height: 15px; }
.plr-pav-dot       { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.plr-pav-select    { font-size: .82em; padding: 3px 8px; border: 1px solid #e2e8f0; border-radius: 6px; color: #334155; background: #f8fafc; cursor: pointer; }

/* Cluster Leaflet */
.plr-pav-cluster { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #1a202c; color: #fff; font-size: 12px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Bouton carte */
.plr-pav-ctrl-btn-row { margin-top: 4px; }
.plr-pav-show-map { padding: 8px 18px; background: #1a202c; color: #fff; border: none; border-radius: 8px; font-size: .85em; font-weight: 600; cursor: pointer; transition: background .2s; }
.plr-pav-show-map:hover:not(:disabled) { background: #2d3748; }
.plr-pav-show-map:disabled { background: #cbd5e1; cursor: not-allowed; }
.plr-pav-hint { font-size: .75em; color: #94a3b8; margin-left: 10px; }
.plr-pav-tag--multi { background: #f1f5f9; color: #334155; }

/* Liste */
.plr-pav-liste     { display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; }
.plr-pav-row       { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 0.5px solid #e2e8f0; border-radius: 9px; padding: 10px 12px; }
.plr-pav-icon-wrap { font-size: 1.3em; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.plr-pav-adresse   { font-size: .88em; font-weight: 600; color: #1a202c; margin-bottom: 2px; }
.plr-pav-commune   { font-size: .78em; color: #64748b; margin-bottom: 2px; }
.plr-pav-dist      { font-size: .78em; color: #2563eb; margin-bottom: 4px; font-weight: 600; }
.plr-pav-types     { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

/* Tags */
.plr-pav-tag            { font-size: .7em; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.plr-pav-tag--verre     { background: #dcfce7; color: #166534; }
.plr-pav-tag--emballage { background: #fef9c3; color: #854d0e; }
.plr-pav-tag--papier    { background: #dbeafe; color: #1e40af; }
.plr-pav-tag--om        { background: #f1f5f9; color: #475569; }
.plr-pav-tag--bio       { background: #fef3c7; color: #92400e; }
.plr-pav-tag--autre     { background: #f1f5f9; color: #64748b; }

/* Tags popup carte */
.plr-pav-popup-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #f1f5f9; color: #475569; margin: 2px 2px 0 0; }


/* ==========================================================================
   11. IRVE — Bornes de recharge électrique
   Source : functions-irve-larochelle.php → plr_irve_styles_once()
   ========================================================================== */

/* Carte */
.plr-irve-map { height: 380px; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 14px; }

/* Liste */
.plr-irve-liste { display: flex; flex-direction: column; gap: 7px; max-height: 500px; overflow-y: auto; }
.plr-irve-card  {
    display: grid; grid-template-columns: 44px 1fr auto;
    align-items: center; gap: 10px;
    background: #fff; border: 0.5px solid #e2e8f0; border-radius: 10px; padding: 10px 14px;
}
.plr-irve-pdc       { text-align: center; font-size: 1.4em; font-weight: 800; color: #334155; line-height: 1; }
.plr-irve-pdc small { display: block; font-size: .5em; font-weight: 400; color: #94a3b8; }
.plr-irve-nom       { font-size: .88em; font-weight: 600; color: #1a202c; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plr-irve-adresse   { font-size: .75em; color: #64748b; margin-bottom: 2px; }
.plr-irve-dist      { font-size: .75em; color: #2563eb; font-weight: 600; margin-bottom: 2px; }
.plr-irve-operateur { font-size: .7em; color: #94a3b8; }
.plr-irve-card-right{ text-align: right; min-width: 70px; }
.plr-irve-puissance { font-size: 1em; font-weight: 800; }
.plr-irve-type      { font-size: .72em; color: #64748b; }
.plr-irve-prises    { font-size: .65em; color: #94a3b8; margin-top: 2px; }
.plr-irve-gratuit   { font-size: .7em; color: #16a34a; font-weight: 600; margin-top: 2px; }

/* Boutons filtre puissance */
.plr-irve-pui-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.plr-irve-pui-btn  { padding: 4px 10px; border: 1.5px solid #e2e8f0; border-radius: 20px; font-size: .78em; font-weight: 600; cursor: pointer; background: #fff; color: #475569; transition: all .15s; }
.plr-irve-pui-btn:hover { border-color: #94a3b8; }
.plr-irve-pui-btn--active                           { background: #1a202c !important; color: #fff !important; border-color: #1a202c !important; }
.plr-irve-pui-btn--rapide.plr-irve-pui-btn--active  { background: #7c3aed !important; border-color: #7c3aed !important; }
.plr-irve-pui-btn--normale.plr-irve-pui-btn--active { background: #16a34a !important; border-color: #16a34a !important; }
.plr-irve-horaires  { font-size: .65em; color: #94a3b8; margin-top: 2px; }


/* ==========================================================================
   12. VIGILANCE MÉTÉO — Alertes Météo-France
   Source : functions-vigilance-larochelle.php → plr_vigilance_styles()
   ========================================================================== */

.plrvig-niveau { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.plrvig-icon   { font-size: 1.8em; line-height: 1; flex-shrink: 0; }
.plrvig-texte  { display: flex; flex-direction: column; gap: 2px; }
.plrvig-texte strong { font-size: 1em; font-weight: 700; }
.plrvig-conseil{ font-size: .75em; color: #64748b; line-height: 1.3; }


/* ==========================================================================
   13. CINÉMAS LA ROCHELLE — Séances du jour
   Source : functions-cinemas-larochelle.php → plr_cinema_styles_once()
   ========================================================================== */

@keyframes vlar-sk {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vlar-cin-wrap { background: #fff; padding: 20px 0 8px; }
.vlar-cin-hd { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; }
.vlar-cin-title { font-size: 18px; font-weight: 900; color: #18152e; letter-spacing: -.02em; }

.vlar-cin-tabs { display: flex; gap: 6px; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.vlar-cin-tabs::-webkit-scrollbar { display: none; }
.vlar-cin-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
    cursor: pointer; border: 1.5px solid #eceaf2; background: #f7f6f3;
    color: #6b6880; white-space: nowrap; transition: all .2s;
}
.vlar-cin-tab.on { background: #1e1c3b; color: #fff; border-color: #1e1c3b; }

.vlar-cin-dates { display: flex; gap: 5px; padding: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.vlar-cin-dates::-webkit-scrollbar { display: none; }
.vlar-cin-day {
    padding: 5px 12px; border-radius: 16px; font-size: 11px; font-weight: 700;
    cursor: pointer; border: 1.5px solid #eceaf2; background: #f7f6f3;
    color: #6b6880; white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.vlar-cin-day.on { background: #da667b; color: #fff; border-color: #da667b; }

/* Liste */
.vlar-cin-list { display: flex; flex-direction: column; gap: 0; }

/* Card — mobile (séparateur ligne uniquement, pas de bordure encadrante) */
.vlar-cin-card {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #f0efe9; cursor: pointer; transition: background .15s;
}
.vlar-cin-card:last-child { border-bottom: none; }
.vlar-cin-card:hover { background: #fafaf8; }

/* Poster — même taille pour chaque film, pas de rognage */
.vlar-cin-poster-wrap {
    width: 70px; aspect-ratio: 2 / 3; flex-shrink: 0;
    border-radius: 8px; overflow: hidden; background: #f0efe9;
}
.vlar-cin-poster { width: 100%; height: 100%; object-fit: contain; display: block; }

.vlar-cin-body { flex: 1; min-width: 0; }

/* Badge genre + note */
.vlar-cin-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.vlar-cin-badge-cat {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    /*padding: 2px 7px;*/ border-radius: 20px; /*background: #f0eef8;*/ color: #adadad; line-height:1em;
}
.vlar-cin-badge-note { font-size: 11px; font-weight: 800; color: #f59e0b; line-height:1em; }

.vlar-cin-name {
    font-size: 14px; font-weight: 800; color: #18152e; margin-bottom: 5px;
    line-height: 1.25;
    /* Titre sur plusieurs lignes si nécessaire, même affichage mobile/desktop */
}

/* Feature tags (genre, durée) — style listing */
.vlar-cin-feats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.vlar-cin-feat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: #64748b; font-weight: 500;
    background: #f8fafc; border: 1px solid #e8e6f0;
    padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.vlar-cin-feat svg { flex-shrink: 0; }

/* Horaires */
.vlar-cin-times { display: flex; flex-wrap: wrap; gap: 5px; }
.vlar-cin-time {
    font-size: 11px; font-weight: 700; color: #1e1c3b;
    background: #f0eef8; border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}
.vlar-cin-time.vo { background: #fdf0f2; color: #da667b; }

/* Card — desktop style listing */
@media (min-width: 640px) {
    .vlar-cin-list { gap: 10px; padding: 0px; }
    .vlar-cin-card {
        border-bottom: none; border-radius: 10px; padding: 0; align-items: stretch;
        border: 1px solid #e8e6f0; background: #fff; overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
        transition: box-shadow .2s, transform .2s;
    }
    .vlar-cin-card:hover {
        background: #fff; transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(0,0,0,.1);
    }
    .vlar-cin-poster-wrap {
        width: 110px; aspect-ratio: auto; height: auto; border-radius: 0;
        flex-shrink: 0; align-self: stretch;
    }
    .vlar-cin-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
    .vlar-cin-name { font-size: 16px; white-space: normal; line-height: 1.3; margin-bottom: 6px; }
    .vlar-cin-feats { margin-bottom: 10px; }
}

/* Détail film — drawer mobile / dialog desktop */
.vlar-cin-detail-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 9998; backdrop-filter: blur(2px);
}
.vlar-cin-detail-overlay.open { display: block; }

.vlar-cin-detail {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 20px 20px 0 0;
    z-index: 9999; max-height: 90dvh;
    display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .3s ease;
}
.vlar-cin-detail.open { transform: translateY(0); }

/* Topbar fixe (handle + bouton fermer) — ne scrolle pas */
.vlar-cin-detail-topbar {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 48px 8px; position: relative; flex-shrink: 0;
    border-bottom: 1px solid #f0efe9;
}
.vlar-cin-detail-handle { width: 36px; height: 4px; border-radius: 2px; background: #e2e8f0; }
.vlar-cin-detail-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: #f1f5f9; border: none; border-radius: 50%;
    width: 28px; height: 28px; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #475569;
    transition: background .15s;
}
.vlar-cin-detail-close:hover { background: #e2e8f0; }

/* Zone scrollable */
.vlar-cin-detail-scroll {
    overflow-y: auto; flex: 1;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.vlar-cin-detail-head {
    display: flex; gap: 14px; padding: 16px 16px 12px;
    border-bottom: 1px solid #f0efe9;
}
.vlar-cin-detail-poster {
    width: 72px; height: 104px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0; background: #f0efe9; display: block;
}
.vlar-cin-detail-info { flex: 1; min-width: 0; }
.vlar-cin-detail-title { font-size: 17px; font-weight: 900; color: #18152e; margin-bottom: 4px; line-height: 1.2; }
.vlar-cin-detail-sub { font-size: 13px; color: #6b6880; margin-bottom: 8px; }
.vlar-cin-detail-note { font-size: 14px; font-weight: 800; color: #f59e0b; }
.vlar-cin-detail-body { padding: 14px 16px; }
.vlar-cin-detail-synopsis { font-size: 14px; color: #334155; line-height: 1.6; margin-bottom: 14px; }
.vlar-cin-detail-synopsis p { margin: 0 0 8px; }
.vlar-cin-detail-synopsis p:last-child { margin-bottom: 0; }
.vlar-cin-detail-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8; margin: 12px 0 6px;
}
.vlar-cin-detail-times { display: flex; flex-wrap: wrap; gap: 6px; }

/* Distribution */
.vlar-cin-detail-cast {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #faf9f5;
    border: 1px solid #f0efe9;
    border-radius: 10px;
}
.vlar-cin-cast-row {
    display: flex; gap: 10px; align-items: baseline;
    font-size: 13.5px; line-height: 1.45;
}
.vlar-cin-cast-role {
    flex-shrink: 0; min-width: 82px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: #94a3b8;
}
.vlar-cin-cast-names { color: #334155; font-weight: 500; }

/* Bande-annonce */
.vlar-cin-trailer { margin-bottom: 14px; }
.vlar-cin-trailer-thumb {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #1e1c3b center/cover no-repeat;
    border-radius: 10px; overflow: hidden; cursor: pointer;
}
.vlar-cin-trailer-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 100%);
    transition: background .2s;
}
.vlar-cin-trailer-thumb:hover::after {
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.vlar-cin-trailer-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #1e1c3b;
    border: none; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transition: transform .15s, background .15s;
}
.vlar-cin-trailer-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.vlar-cin-trailer-play:disabled { cursor: wait; }
.vlar-cin-trailer.loading .vlar-cin-trailer-play { display: none; }

/* Spinner rotatif : utilise sur le bouton play ET sur le frame iframe */
@keyframes vlar-cin-spin { to { transform: rotate(360deg); } }
.vlar-cin-trailer-spinner {
    position: absolute; top: 50%; left: 50%;
    width: 48px; height: 48px; margin: -24px 0 0 -24px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    animation: vlar-cin-spin .9s linear infinite;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.vlar-cin-trailer.loading .vlar-cin-trailer-thumb::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 48px; height: 48px; margin: -24px 0 0 -24px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    animation: vlar-cin-spin .9s linear infinite;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.vlar-cin-trailer-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 10px; overflow: hidden;
    background: #1e1c3b center/cover no-repeat;
}
.vlar-cin-trailer-frame::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
    z-index: 1; pointer-events: none;
    opacity: 1; transition: opacity .4s;
}
.vlar-cin-trailer-frame:not(.loading)::before { opacity: 0; }
.vlar-cin-trailer-frame iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
    z-index: 2;
    opacity: 0; transition: opacity .3s;
}
.vlar-cin-trailer-frame:not(.loading) iframe { opacity: 1; }
.vlar-cin-trailer-spinner { transition: opacity .25s; }
.vlar-cin-trailer-frame:not(.loading) .vlar-cin-trailer-spinner {
    opacity: 0; pointer-events: none;
}
.vlar-cin-trailer-err {
    padding: 16px; text-align: center; font-size: 13px;
    color: #6b6880; background: #faf9f5;
    border: 1px solid #f0efe9; border-radius: 10px;
}

/* Dialog desktop */
@media (min-width: 640px) {
    .vlar-cin-detail {
        top: 50%; bottom: auto; left: 50%; right: auto;
        transform: translate(-50%, -40%); opacity: 0;
        border-radius: 20px; width: min(560px, 92vw);
        max-height: 85dvh; transition: transform .3s ease, opacity .3s ease;
    }
    .vlar-cin-detail.open { transform: translate(-50%, -50%); opacity: 1; }
    .vlar-cin-detail-topbar { justify-content: flex-end; padding: 8px 12px; border-bottom: none; }
    .vlar-cin-detail-handle { display: none; }
    .vlar-cin-detail-close { position: static; transform: none; }
}

/* Skeleton */
.vlar-cin-sk {
    height: 86px; margin: 8px 0; border-radius: 12px;
    background: linear-gradient(90deg, #f0efe9 25%, #e5e4de 50%, #f0efe9 75%);
    background-size: 200% 100%; animation: vlar-sk 1.4s ease-in-out infinite;
}
.vlar-cin-empty { padding: 24px 0; color: #6b6880; font-size: 13px; text-align: center; }
.vlar-cin-footer { font-size: .72em; color: #94a3b8; margin: 10px 16px 0; text-align: right; }

/* ==========================================================================
   14. ACTUALITÉS LA ROCHELLE — Fil d'information local
   Source : functions-actus-larochelle.php → plr_actus_render()
   ========================================================================== */

.vlact-wrap { background: #fff; padding: 20px 0 8px; }
.vlact-hd { padding: 0 16px 14px; }
.vlact-title { font-size: 18px; font-weight: 900; color: #18152e; letter-spacing: -.02em; }

/* Onglets sources */
.vlact-tabs { display: flex; gap: 6px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.vlact-tabs::-webkit-scrollbar { display: none; }
.vlact-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
    cursor: pointer; border: 1.5px solid #eceaf2; background: #f7f6f3;
    color: #6b6880; white-space: nowrap; transition: all .2s;
}
.vlact-tab.on { background: #1e1c3b; color: #fff; border-color: #1e1c3b; }

/* Liste */
.vlact-list { display: flex; flex-direction: column; }

/* Card — mobile : séparateur seul */
.vlact-card {
    display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start;
    border-bottom: 1px solid #f0efe9; cursor: pointer; transition: background .15s;
}
a.vlact-card { color: inherit; text-decoration: none; }
.vlact-card:last-child { border-bottom: none; }
.vlact-card:hover { background: #fafaf8; }

.vlact-card-body { flex: 1; min-width: 0; }
.vlact-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.vlact-card-title { font-size: 14px; font-weight: 800; color: #18152e; line-height: 1.3; margin-bottom: 4px; }
.vlact-card-excerpt { font-size: 12px; color: #64748b; line-height: 1.45; }
.vlact-card-date { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* Nom de la source (sans couleur) */
.vlact-card-source {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: #94a3b8; white-space: nowrap; flex-shrink: 0;
}

/* Vignette */
.vlact-card-thumb {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: 8px; overflow: hidden; background: #f0efe9;
}
.vlact-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Card — desktop style listing */
@media (min-width: 640px) {
    .vlact-list { gap: 10px; padding: 0 16px 8px; }
    .vlact-card {
        border-bottom: none; border-radius: 10px; padding: 14px 16px; align-items: center;
        border: 1px solid #e8e6f0; background: #fff; overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
        transition: box-shadow .2s, transform .2s;
    }
    .vlact-card:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.1); }
    .vlact-card-title { font-size: 15px; }
    .vlact-card-thumb { width: 90px; height: 68px; }
}

/* Overlay */
.vlact-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 9998; backdrop-filter: blur(2px);
}
.vlact-overlay.open { display: block; }

/* Drawer / Dialog */
.vlact-drawer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 20px 20px 0 0;
    z-index: 9999; max-height: 90dvh;
    display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .3s ease;
}
.vlact-drawer.open { transform: translateY(0); }

.vlact-drawer-topbar {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 48px 8px; position: relative; flex-shrink: 0;
    border-bottom: 1px solid #f0efe9;
}
.vlact-drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: #e2e8f0; }
.vlact-drawer-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: #f1f5f9; border: none; border-radius: 50%;
    width: 28px; height: 28px; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #475569;
    transition: background .15s;
}
.vlact-drawer-close:hover { background: #e2e8f0; }

.vlact-drawer-scroll {
    overflow-y: auto; flex: 1;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Contenu drawer */
.vlact-detail-img-wrap { overflow: hidden; background: #f0efe9; max-height: 240px; }
.vlact-detail-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.vlact-detail-body { padding: 16px; }
.vlact-detail-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.vlact-detail-title { font-size: 18px; font-weight: 900; color: #18152e; line-height: 1.3; margin: 0 0 12px; }
.vlact-detail-desc { font-size: 14px; color: #334155; line-height: 1.7; margin: 0 0 20px; }
.vlact-detail-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1e1c3b; color: #fff; font-weight: 700; font-size: 13px;
    padding: 11px 20px; border-radius: 10px; text-decoration: none;
    transition: background .2s;
}
.vlact-detail-link:hover { background: #312e5c; color: #fff; }
.vlact-detail-link svg { flex-shrink: 0; }

/* Dialog desktop */
@media (min-width: 640px) {
    .vlact-drawer {
        top: 50%; bottom: auto; left: 50%; right: auto;
        transform: translate(-50%, -40%); opacity: 0;
        border-radius: 20px; width: min(580px, 92vw);
        max-height: 85dvh; transition: transform .3s ease, opacity .3s ease;
    }
    .vlact-drawer.open { transform: translate(-50%, -50%); opacity: 1; }
    .vlact-drawer-topbar { justify-content: flex-end; padding: 8px 12px; border-bottom: none; }
    .vlact-drawer-handle { display: none; }
    .vlact-drawer-close { position: static; transform: none; }
}

/* Skeleton — réutilise @keyframes vlar-sk de la section 13 */
.vlact-sk {
    height: 80px; margin: 6px 16px; border-radius: 10px;
    background: linear-gradient(90deg, #f0efe9 25%, #e5e4de 50%, #f0efe9 75%);
    background-size: 200% 100%; animation: vlar-sk 1.4s ease-in-out infinite;
}
.vlact-empty { padding: 24px 16px; color: #6b6880; font-size: 13px; text-align: center; }
.vlact-footer { font-size: .72em; color: #94a3b8; margin: 10px 16px 0; text-align: right; }
.vlact-footer a { color: #94a3b8; }


.plrvig-phenos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plrvig-pheno  { font-size: .72em; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.plrvig-pheno--vert   { background: #f0fdf4; color: #15803d; }
.plrvig-pheno--jaune  { background: #fefce8; color: #a16207; }
.plrvig-pheno--orange { background: #fff7ed; color: #c2410c; }
.plrvig-pheno--rouge  { background: #fef2f2; color: #b91c1c; }
.plrvig-pheno--violet { background: #f5f3ff; color: #6d28d9; }

/* Page full */
.plrvig-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.plrvig-full-header { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 12px; margin-bottom: 20px; }
.plrvig-full-header--vert   { background: #f0fdf4; border: 2px solid #86efac; }
.plrvig-full-header--jaune  { background: #fefce8; border: 2px solid #fde047; }
.plrvig-full-header--orange { background: #fff7ed; border: 2px solid #fb923c; }
.plrvig-full-header--rouge  { background: #fef2f2; border: 2px solid #f87171; }
.plrvig-full-header--violet { background: #f5f3ff; border: 2px solid #a78bfa; }
.plrvig-full-badge   { font-size: 3em; line-height: 1; flex-shrink: 0; }
.plrvig-full-dept    { font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 4px; }
.plrvig-full-niveau  { font-size: 1.6em; font-weight: 800; margin: 0 0 4px; }
.plrvig-full-conseil { font-size: .9em; color: #475569; margin: 0; }
.plrvig-full-phenos  { margin-bottom: 20px; }
.plrvig-full-phenos-title { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin: 0 0 10px; }
.plrvig-full-phenos-grid  { display: flex; flex-wrap: wrap; gap: 10px; }
.plrvig-full-pheno        { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-size: .88em; font-weight: 600; }
.plrvig-full-pheno--jaune  { background: #fefce8; color: #a16207; }
.plrvig-full-pheno--orange { background: #fff7ed; color: #c2410c; }
.plrvig-full-pheno--rouge  { background: #fef2f2; color: #b91c1c; }
.plrvig-full-pheno-icon   { font-size: 1.3em; }
.plrvig-full-ok  { font-size: .88em; color: #64748b; }
.plrvig-source   { font-size: .72em; color: #94a3b8; margin-top: 12px; }
.plrvig-source a { color: #2563eb; }


/* ==========================================================================
   13. PHARMACIES — Garde + annuaire
   Source : functions-pharmacies-larochelle.php → plr_pharmacies_styles()
   ========================================================================== */

/* Card pharmacie de garde */
.plrgrd-badge          { display: inline-block; font-size: .65em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; margin-bottom: 6px; }
.plrgrd-badge--actif   { background: #f0fdf4; color: #15803d; }
.plrgrd-badge--termine { background: #f1f5f9; color: #64748b; }
.plrgrd-nom            { font-size: .95em; font-weight: 700; color: #1a202c; margin-bottom: 4px; }
.plrgrd-adresse        { font-size: .75em; color: #64748b; margin-bottom: 3px; }
.plrgrd-tel            { display: block; font-size: .82em; font-weight: 700; color: #2563eb; margin-bottom: 3px; }
.plrgrd-tel:hover      { text-decoration: underline; }
.plrgrd-horaires       { font-size: .75em; color: #475569; margin-bottom: 3px; }
.plrgrd-note           { font-size: .72em; color: #94a3b8; font-style: italic; }
.plrgrd-non-configure  { font-size: .8em; color: #64748b; }
.plrgrd-non-configure a{ color: #2563eb; }

/* Page garde full */
.plrgrd-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.plrgrd-full-current { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: 12px; margin-bottom: 28px; }
.plrgrd-full-current--actif   { background: #f0fdf4; border: 2px solid #86efac; }
.plrgrd-full-current--termine { background: #f8fafc; border: 2px solid #e2e8f0; }
.plrgrd-full-badge   { font-size: 2.5em; flex-shrink: 0; }
.plrgrd-full-label   { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 0 0 4px; }
.plrgrd-full-nom     { font-size: 1.3em; font-weight: 800; color: #1a202c; margin: 0 0 8px; }
.plrgrd-full-adresse { font-size: .88em; color: #475569; margin: 0 0 4px; }
.plrgrd-full-tel     { display: inline-block; font-size: 1.1em; font-weight: 800; color: #2563eb; margin: 6px 0; }
.plrgrd-full-horaires{ font-size: .85em; color: #475569; margin: 4px 0 0; }
.plrgrd-full-note    { font-size: .8em; color: #64748b; font-style: italic; margin: 8px 0 0; }
.plrgrd-full-updated { font-size: .7em; color: #94a3b8; margin: 12px 0 0; }

.plrgrd-non-configure-full   { background: #f8fafc; border-radius: 10px; padding: 20px; margin-bottom: 28px; font-size: .9em; color: #64748b; }
.plrgrd-non-configure-full a { color: #2563eb; font-weight: 600; }

.plrgrd-full-liens        { margin-top: 24px; }
.plrgrd-full-liens-title  { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin: 0 0 12px; }
.plrgrd-full-liens-grid   { display: flex; flex-wrap: wrap; gap: 10px; }
.plrgrd-full-lien         { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; text-decoration: none; transition: box-shadow .15s; flex: 1; min-width: 160px; }
.plrgrd-full-lien:hover   { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.plrgrd-full-lien-num     { font-size: 1.3em; font-weight: 900; color: #1a202c; white-space: nowrap; }
.plrgrd-full-lien-desc    { font-size: .78em; color: #64748b; line-height: 1.3; }

/* Annuaire */
.plrpha-page       { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.plrpha-search-bar { margin-bottom: 20px; }
.plrpha-search     { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .9em; outline: none; transition: border-color .15s; }
.plrpha-search:focus { border-color: #2563eb; }
.plrpha-count      { font-size: .75em; color: #94a3b8; margin-bottom: 14px; }
.plrpha-grid       { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.plrpha-card       { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.plrpha-nom        { font-size: .88em; font-weight: 700; color: #1a202c; margin: 0 0 6px; }
.plrpha-adresse    { font-size: .75em; color: #64748b; margin: 0 0 4px; }
.plrpha-tel        { display: inline-block; font-size: .82em; font-weight: 700; color: #2563eb; margin-top: 2px; }
.plrpha-empty      { font-size: .88em; color: #64748b; }
.plrpha-source     { font-size: .72em; color: #94a3b8; margin-top: 16px; }
.plrpha-source a   { color: #2563eb; }


/* ==========================================================================
   14. BAIGNADES — Qualité des eaux de baignade
   Source : functions-baignades-larochelle.php → plr_baignades_styles()
   ========================================================================== */

/* Card widget */
.plrbgn-card-list    { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plrbgn-card-item    { display: flex; align-items: center; gap: 8px; font-size: .82em; }
.plrbgn-card-icon    { font-size: 1em; flex-shrink: 0; }
.plrbgn-card-nom     { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1a202c; }
.plrbgn-card-qualite { font-size: .78em; font-weight: 700; white-space: nowrap; }
.plrbgn-card-more    { font-size: .72em; color: #94a3b8; padding-left: 24px; }
.plrbgn-horsaison    { font-size: .7em; color: #94a3b8; margin: 8px 0 0; }

/* Page full */
.plrbgn-page  { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1a202c; }
.plrbgn-intro { font-size: .9em; color: #475569; margin-bottom: 24px; }

.plrbgn-hors-saison-banner {
    background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px;
    padding: 12px 16px; font-size: .85em; color: #475569; margin-bottom: 20px;
}

.plrbgn-communes     { display: flex; flex-direction: column; gap: 32px; margin-bottom: 32px; }
.plrbgn-commune-titre{
    font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: #94a3b8; margin: 0 0 14px;
}

.plrbgn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.plrbgn-plage {
    border-radius: 10px; border: 2px solid transparent; padding: 14px;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.plrbgn-plage--a { border-color: #86efac; }
.plrbgn-plage--b { border-color: #93c5fd; }
.plrbgn-plage--c { border-color: #fde047; }
.plrbgn-plage--d { border-color: #f87171; }
.plrbgn-plage--e,
.plrbgn-plage--f { border-color: #e2e8f0; }

.plrbgn-plage-header  { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.plrbgn-plage-icon    { font-size: 1.2em; flex-shrink: 0; }
.plrbgn-plage-nom     { font-size: .9em; font-weight: 600; line-height: 1.3; }
.plrbgn-plage-qualite { font-size: .82em; font-weight: 700; }
.plrbgn-plage-date    { font-size: .7em; color: #94a3b8; margin-top: 6px; }

/* Légende */
.plrbgn-legend       { background: #f8fafc; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.plrbgn-legend-title {
    font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #94a3b8; margin: 0 0 14px;
}
.plrbgn-legend-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plrbgn-legend-item  { display: flex; gap: 10px; align-items: flex-start; font-size: .82em; }
.plrbgn-legend-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.plrbgn-legend-item p      { color: #64748b; margin: 0; line-height: 1.4; }
.plrbgn-legend-icon  { font-size: 1.3em; flex-shrink: 0; }

/* Meta */
.plrbgn-meta   { font-size: .72em; color: #94a3b8; margin-top: 16px; }
.plrbgn-meta a { color: #2563eb; }
.plrbgn-meta p { margin: 2px 0; }


/* ==========================================================================
   15. BUNDLE MÉTÉO — [valr_meteo]
   Source : functions-meteo-bundle.php → valrm_shortcode()
   Styles : card (réutilise plr-hub-card) · detail · pill
   ========================================================================== */

/* ── Conteneur bundle ────────────────────────────────────── */
.valrm-bundle { /* hérite de .plr-hub-widget, rien à ajouter */ }

/* ── Style detail : grille clé / valeur ──────────────────── */
.valrm-detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 12px;
    font-size: .8em;
    color: #64748b;
    margin-top: 10px;
}
.valrm-detail-grid strong { color: #1a202c; }

/* Hint sous les barres (échelle IQA, échéance vigilance) */
.valrm-scale-hint {
    font-size: .72em; color: #94a3b8;
    margin: 8px 0 0; line-height: 1.4;
}

/* ── Style pill : ligne compacte ─────────────────────────── */
.valrm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.valrm-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #f8f8f6;
    border: 1px solid #e8e6f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #18152e;
    white-space: nowrap;
    cursor: default;
    transition: background .15s, box-shadow .15s;
}

a.valrm-pill {
    text-decoration: none;
    cursor: pointer;
}
a.valrm-pill:hover {
    background: #f0efe9;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.valrm-pill-ico { font-size: 15px; line-height: 1; flex-shrink: 0; }
.valrm-pill-lbl { font-size: 13px; line-height: 1; }


/* ═══════════════════════════════════════════════════════════════════════
 * SECTION 16 — BOÎTE À OUTILS FLOTTANTE (tlbx-*)
 * v2 — Icônes SVG · couleurs site (navy #1e1c3b, teal #14b8a6, rose #da667b)
 *      Style cohérent avec les vlar-cat (icon top + label/desc bottom)
 *      Backdrop dynamique (créé/détruit par JS — zéro conflit nav menus)
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --tlbx-fab-size:     56px;
    --tlbx-fab-bottom:   24px;
    --tlbx-fab-left:     20px;    /* gauche — chatbots tiers toujours à droite */
    --tlbx-navy:         #1e1c3b; /* couleur site : fond FAB & header */
    --tlbx-teal:         #14b8a6; /* couleur site : accents & catégories */
    --tlbx-rose:         #da667b; /* couleur site : dot live & badges */
    --tlbx-radius:       20px;
    --tlbx-ease:         cubic-bezier(.4, 0, .2, 1);
    --tlbx-shadow-fab:   0 4px 20px rgba(30, 28, 59, .4);
    --tlbx-shadow-panel: 0 20px 60px rgba(0, 0, 0, .22);
}

/* ── Body lock ── */
body.tlbx-open { overflow: hidden; }

/* ──────────────────────────────────────────────
 * FAB — bouton flottant bas-gauche
 * ────────────────────────────────────────────── */
.tlbx-fab {
    position:  fixed;
    bottom:    var(--tlbx-fab-bottom);
    left:      var(--tlbx-fab-left);
    z-index:   9990;
    width:     var(--tlbx-fab-size);
    height:    var(--tlbx-fab-size);
    border-radius: 50%;
    background:    var(--tlbx-navy);
    box-shadow:    var(--tlbx-shadow-fab);
    color:     var(--tlbx-teal);
    display:   flex;
    align-items:   center;
    justify-content: center;
    cursor:    pointer;
    user-select: none;
    transition: transform .2s var(--tlbx-ease), box-shadow .2s var(--tlbx-ease);
    -webkit-tap-highlight-color: transparent;
}
.tlbx-fab:hover {
    transform:  scale(1.08);
    box-shadow: 0 6px 28px rgba(30, 28, 59, .55);
}
.tlbx-fab:active { transform: scale(.94); }
.tlbx-fab-ico svg {
    width: 24px; height: 24px;
    transition: transform .25s var(--tlbx-ease);
}
.tlbx-fab[aria-expanded="true"] .tlbx-fab-ico svg { transform: rotate(45deg); }

/* pulse ring — désactivé */
.tlbx-fab-pulse { display: none; }

/* badge météo — s'étend à droite (FAB est à gauche) */
.tlbx-fab-weather {
    position:    absolute;
    bottom:      -5px;
    right:       -8px;
    background:  var(--tlbx-teal);
    color:       #fff;
    font-size:   10px;
    font-weight: 700;
    line-height: 1;
    padding:     3px 6px;
    border-radius: 20px;
    box-shadow:  0 2px 8px rgba(20, 184, 166, .45);
    opacity:     0;
    transform:   scale(.6);
    transition:  opacity .3s, transform .3s;
    pointer-events: none;
    white-space: nowrap;
}
.tlbx-fab-weather--in { opacity: 1; transform: scale(1); }

/* ──────────────────────────────────────────────
 * Backdrop — CRÉÉ/DÉTRUIT DYNAMIQUEMENT PAR JS
 * Aucun élément DOM résiduel quand le panneau est
 * fermé = zéro conflit avec les menus de navigation.
 * ────────────────────────────────────────────── */
.tlbx-backdrop {
    position:   fixed;
    inset:      0;
    z-index:    99990; /* au-dessus de tout menu mobile (souvent 9999) */
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity:    0;
    transition: opacity .32s var(--tlbx-ease);
}
.tlbx-backdrop--in { opacity: 1; }

/* ──────────────────────────────────────────────
 * Panel — mobile (bottom sheet)
 * ────────────────────────────────────────────── */

/*
 * IMPORTANT — pointer-events & [hidden] :
 *
 * Sur desktop, le panneau est positionné au centre du viewport
 * (top:50% / left:50% / translate(-50%,-50%)) même quand il n'est
 * pas visible. Sans pointer-events:none il intercepte les événements
 * souris dans toute la zone centrale, incluant les sous-menus de nav.
 *
 * De plus, certains thèmes WordPress ou frameworks CSS overrident
 * l'attribut HTML [hidden] (ex: [hidden]{display:block!important}).
 * On force display:none avec !important pour y résister.
 */
.tlbx-panel {
    position:        fixed;
    z-index:         99992; /* au-dessus du backdrop (99990) et de tout menu mobile */
    left:            0;
    right:           0;
    bottom:          0;
    max-height:      92dvh;
    background:      #f8fafc;
    border-radius:   var(--tlbx-radius) var(--tlbx-radius) 0 0;
    box-shadow:      var(--tlbx-shadow-panel);
    display:         flex;
    flex-direction:  column;
    overflow:        hidden;
    transform:       translateY(110%);
    transition:      transform .36s var(--tlbx-ease);
    will-change:     transform;
    pointer-events:  none;  /* ← clé : jamais interactif hors ouverture */
}

/* Blindage [hidden] : résiste aux overrides du thème */
.tlbx-panel[hidden] {
    display:         none !important;
    pointer-events:  none !important;
}

.tlbx-panel--in {
    transform:       translateY(0);
    pointer-events:  auto;   /* ← seulement quand vraiment ouvert */
}

/* Panel — desktop : modal centré */
@media (min-width: 640px) {
    .tlbx-panel {
        left:          50%;
        right:         auto;
        bottom:        auto;
        top:           50%;
        transform:     translate(-50%, -50%) scale(.92);
        width:         min(580px, 94vw);
        max-height:    86dvh;
        border-radius: var(--tlbx-radius);
        opacity:       0;
        transition:    transform .32s var(--tlbx-ease), opacity .28s var(--tlbx-ease);
    }
    .tlbx-panel--in {
        transform:     translate(-50%, -50%) scale(1);
        opacity:       1;
    }
}

/* ──────────────────────────────────────────────
 * Header — dark navy, accents teal
 * ────────────────────────────────────────────── */
.tlbx-header {
    background:  var(--tlbx-navy) !important;
    color:       #fff;
    padding:     18px 18px 14px;
    flex-shrink: 0;
}
.tlbx-header-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   14px;
}
.tlbx-header-brand {
    display:     flex;
    align-items: center;
    gap:         12px;
}
/* icône FAB dans le header */
.tlbx-brand-ico {
    width:       38px;
    height:      38px;
    border-radius: 10px;
    background:  rgba(20, 184, 166, .18);
    display:     flex;
    align-items: center;
    justify-content: center;
    color:       var(--tlbx-teal);
    flex-shrink: 0;
}
.tlbx-brand-ico svg { width: 20px; height: 20px; }
.tlbx-brand-text {
    display:       flex;
    flex-direction: column;
    gap:           2px;
}
.tlbx-brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.tlbx-brand-text span   { font-size: 11px; color: rgba(255,255,255,.55); }

.tlbx-close {
    width:        34px;
    height:       34px;
    border-radius: 50%;
    border:       none;
    background:   rgba(255, 255, 255, .12);
    color:        rgba(255, 255, 255, .75);
    display:      flex;
    align-items:  center;
    justify-content: center;
    cursor:       pointer;
    transition:   background .15s, color .15s;
    flex-shrink:  0;
}
.tlbx-close svg { width: 16px; height: 16px; }
.tlbx-close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* barre de raccourcis vers les sections (remplace le live strip) */
.tlbx-jumpbar {
    display:        flex;
    flex-wrap:      nowrap;
    gap:            6px;
    overflow-x:     auto;
    overflow-y:     hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin:         0 -18px;        /* déborde jusqu'aux bords du header */
    padding:        0 18px 2px;
}
.tlbx-jumpbar::-webkit-scrollbar { display: none; }
.tlbx-jump { flex: 0 0 auto; }      /* pas de compression → scroll horizontal */
.tlbx-jump {
    font-family:   inherit;
    font-size:     12px;
    font-weight:   700;
    line-height:   1;
    color:         rgba(255,255,255,.82);
    background:    rgba(255, 255, 255, .08);
    border:        1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding:       7px 13px;
    cursor:        pointer;
    white-space:   nowrap;
    transition:    background .15s, color .15s, border-color .15s;
}
.tlbx-jump:hover,
.tlbx-jump:focus-visible {
    background:   var(--tlbx-teal);
    border-color: var(--tlbx-teal);
    color:        #fff;
}

/* ──────────────────────────────────────────────
 * Body
 * ────────────────────────────────────────────── */
.tlbx-body {
    flex:        1;
    overflow-y:  auto;
    padding:     16px 14px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.tlbx-body::-webkit-scrollbar { width: 4px; }
.tlbx-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ──────────────────────────────────────────────
 * Catégories
 * ────────────────────────────────────────────── */
.tlbx-cat { margin-bottom: 20px; }
.tlbx-cat:last-child { margin-bottom: 4px; }

.tlbx-cat-label {
    font-family:    inherit !important;
    font-size:      11px !important;
    font-weight:    700 !important;
    line-height:    1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: .10em !important;
    color:          var(--tlbx-teal) !important;
    margin:         0 0 9px 2px !important;
    padding:        0 !important;
}

/* ──────────────────────────────────────────────
 * Grille + Tuiles — style cohérent avec vlar-cat
 * top: icône SVG · bottom: nom + desc
 * ────────────────────────────────────────────── */
.tlbx-grid {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
    align-items:           stretch;   /* hauteur uniforme par rangée (sans étirement parasite) */
    gap:                   10px;
}
@media (min-width: 600px)  { .tlbx-grid { grid-template-columns: repeat(3, 1fr); } }

.tlbx-tile {
    position:        relative;
    height:          100%;        /* remplit la hauteur de rangée fournie par la grille */
    box-sizing:      border-box;
    display:         flex;
    flex-direction:  column;
    align-items:     flex-start;  /* icône & texte alignés à gauche */
    gap:             10px;
    padding:         18px 16px;
    text-decoration: none;
    color:           #1e293b;
    background:      #fff;
    border:          2px solid #f0f0f0;
    border-radius:   16px;
    overflow:        hidden;
    cursor:          pointer;
    opacity:         0;
    animation:       tlbx-tile-in .32s var(--tlbx-ease) var(--tlbx-d, 0ms) both;
    transition:      border-color .18s var(--tlbx-ease), transform .18s var(--tlbx-ease), box-shadow .18s var(--tlbx-ease);
}
@keyframes tlbx-tile-in {
    from { opacity: 0; transform: translateY(10px) scale(.95); }
    to   { opacity: 1; transform: none; }
}
/* calque de fond teinté révélé au survol (cf. .vlsr-type-card::before) */
.tlbx-tile::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: color-mix(in srgb, var(--tlbx-c, #14b8a6) 7%, #fff);
    opacity:    0;
    transition: opacity .18s var(--tlbx-ease);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .tlbx-tile::before { background: #f0fdf4; }
}
.tlbx-tile:hover {
    border-color: var(--tlbx-c, #14b8a6);
    transform:    translateY(-3px);
    box-shadow:   0 8px 22px rgba(0,0,0,.10);
}
.tlbx-tile:hover::before { opacity: 1; }
.tlbx-tile:active { transform: scale(.96); }

/* top : boîtier d'icône arrondi coloré (cf. .vlsr-type-ico) */
.tlbx-tile-top {
    position:        relative;
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           44px;
    height:          44px;
    border-radius:   12px;
    background:      color-mix(in srgb, var(--tlbx-c, #14b8a6) 12%, #fff);
    transition:      background .18s var(--tlbx-ease);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .tlbx-tile-top { background: #f0fdf4; }
}
.tlbx-tile:hover .tlbx-tile-top { background: var(--tlbx-c, #14b8a6); }

.tlbx-tile-ico {
    display:     flex;
    align-items: center;
    line-height: 0;
    color:       var(--tlbx-c, #14b8a6);
    transition:  color .18s var(--tlbx-ease);
}
.tlbx-tile:hover .tlbx-tile-ico { color: #fff; }
.tlbx-tile-ico svg { width: 22px; height: 22px; display: block; }

/* bottom : texte — alignés à gauche, typo identique à .vlsr-type-card */
.tlbx-tile-btm {
    position:       relative;
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            2px;
    width:          100%;
    text-align:     left;
}
.tlbx-tile-name {
    font-size:   15px;        /* = .vlsr-type-name */
    font-weight: 800;
    color:       #18152e;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.tlbx-tile-desc {
    font-size:   12px;        /* = .vlsr-type-sub */
    color:       #94a3b8;
    line-height: 1.3;
}

/* live dot (top-right absolu dans .tlbx-tile-top) */
.tlbx-live-dot {
    position:     absolute;
    top:          7px;
    right:        7px;
    width:        7px;
    height:       7px;
    border-radius: 50%;
    background:   var(--tlbx-teal);
    box-shadow:   0 0 0 0 rgba(20, 184, 166, .5);
    animation:    tlbx-dot-pulse 2.4s ease-out infinite;
}
@keyframes tlbx-dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); }
    70%  { box-shadow: 0 0 0 5px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* badge live data (affiché dans .tlbx-tile-btm quand données chargées) */
.tlbx-tile-badge {
    display:      none;
    font-size:    12px;
    font-weight:  800;
    padding:      3px 9px;
    border-radius: 20px;
    background:   color-mix(in srgb, var(--tlbx-c, #14b8a6) 14%, #fff);
    color:        color-mix(in srgb, var(--tlbx-c, #14b8a6) 75%, #000);
    white-space:  nowrap;
    max-width:    100%;
    overflow:     hidden;
    text-overflow: ellipsis;
    margin-top:   2px;
}
.tlbx-tile-badge--on { display: block; }

/* ──────────────────────────────────────────────
 * Footer
 * ────────────────────────────────────────────── */
.tlbx-footer {
    padding:     12px 14px 14px;
    text-align:  center;
    flex-shrink: 0;
    border-top:  1px solid #f1f5f9;
}
.tlbx-emergency-title {
    font-size:      10px !important;
    font-weight:    700 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color:          #ef4444;
    margin:         0 0 8px !important;
}
.tlbx-emergency {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             6px;
    margin-bottom:   10px;
}
.tlbx-emerg {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             1px;
    min-width:       60px;
    padding:         6px 8px;
    text-decoration: none;
    background:      #fef2f2;
    border:          1px solid #fee2e2;
    border-radius:   10px;
    transition:      background .15s, border-color .15s, transform .15s;
}
.tlbx-emerg:hover { background: #fee2e2; border-color: #fca5a5; transform: translateY(-2px); }
.tlbx-emerg strong { font-size: 16px; font-weight: 800; color: #dc2626; line-height: 1; }
.tlbx-emerg span   { font-size: 9px; font-weight: 600; color: #991b1b; line-height: 1.2; }
.tlbx-kbd-hint {
    font-size: 11px;
    color:     #cbd5e1;
}
/* Masqué sur mobile (raccourcis clavier inutiles au tactile) */
@media (max-width: 639px) {
    .tlbx-kbd-hint { display: none; }
}
.tlbx-kbd-hint kbd {
    font-family:  inherit;
    font-size:    10px;
    font-weight:  600;
    background:   #f1f5f9;
    color:        #64748b;
    border:       1px solid #e2e8f0;
    border-radius: 4px;
    padding:      1px 5px;
}

/* ══════════════════════════════════════════════════════════════════
 * v2 — Item "Outils" dans le menu de navigation principal
 * ══════════════════════════════════════════════════════════════════ */

/* Conteneur de l'item */
.tlbx-nav-item { display: flex; align-items: center; }

/* Lien déclencheur — display:flex imposé même si le thème surcharge les <a> de nav */
.tlbx-nav-link {
    display:     flex !important;
    align-items: center !important;
    gap:         6px;
    cursor:      pointer;
}

/* Icône SVG dans le nav — couleur héritée du lien du thème par défaut */
.tlbx-nav-ico {
    display:     flex;
    align-items: center;
    flex-shrink: 0;
    color:       currentColor;   /* suit la couleur du lien du thème */
    opacity:     .75;            /* légèrement atténuée par rapport au texte */
    transition:  opacity .18s ease, color .18s ease;
}
.tlbx-nav-ico svg { width: 18px; height: 18px; }

/* Hover & état ouvert */
.tlbx-nav-link:hover .tlbx-nav-ico,
.tlbx-nav-link[aria-expanded="true"] .tlbx-nav-ico {
    color:   var(--tlbx-teal, #14b8a6);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
 * v3 — Shortcode [valr_toolbox_cta] — bloc CTA contextuel
 * ══════════════════════════════════════════════════════════════════ */

/* ── Conteneur principal ── */
.tlbx-cta {
    display:       flex;
    flex-direction: column;
    gap:           12px;
    padding:       16px 20px 18px;
    background:    color-mix(in srgb, var(--tlbx-teal, #14b8a6) 6%, #fff);
    border-left:   4px solid var(--tlbx-teal, #14b8a6);
    border-radius: 0 12px 12px 0;
    margin:        1.5em 0;
}

/* Titre du bloc */
.tlbx-cta-title {
    margin:      0;
    font-size:   12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color:       var(--tlbx-navy, #1e1c3b);
    opacity:     .5;
}

/* ── Liste des outils ── */
.tlbx-cta-items {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
}

/* ── Item individuel ── */
.tlbx-cta-item {
    position:      relative;
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
    padding:       7px 12px 7px 10px;
    background:    color-mix(in srgb, var(--tlbx-c, #14b8a6) 10%, #fff);
    border:        1px solid color-mix(in srgb, var(--tlbx-c, #14b8a6) 25%, transparent);
    border-radius: 999px;
    text-decoration: none;
    transition:    background .18s ease, transform .14s ease, box-shadow .18s ease;
}
.tlbx-cta-item:hover {
    background:  color-mix(in srgb, var(--tlbx-c, #14b8a6) 18%, #fff);
    transform:   translateY(-1px);
    box-shadow:  0 4px 12px color-mix(in srgb, var(--tlbx-c, #14b8a6) 20%, transparent);
}
.tlbx-cta-item:active { transform: translateY(0) scale(.97); }

/* Live dot dans item CTA */
.tlbx-cta-item .tlbx-live-dot {
    position: static;
    width:    6px;
    height:   6px;
    flex-shrink: 0;
}

/* Icône SVG de l'item */
.tlbx-cta-ico {
    display:     flex;
    align-items: center;
    flex-shrink: 0;
    color:       var(--tlbx-c, #14b8a6);
}
.tlbx-cta-ico svg { width: 16px; height: 16px; }

/* Nom de l'outil */
.tlbx-cta-name {
    font-size:   13px;
    font-weight: 600;
    color:       color-mix(in srgb, var(--tlbx-c, #14b8a6) 60%, #1e1c3b);
    white-space: nowrap;
}

/* Badge live (injecté par JS via setTileBadge) */
.tlbx-cta-badge {
    display:     none;
    font-size:   10px;
    font-weight: 700;
    padding:     1px 6px;
    border-radius: 999px;
    background:  color-mix(in srgb, var(--tlbx-c, #14b8a6) 18%, #fff);
    color:       color-mix(in srgb, var(--tlbx-c, #14b8a6) 80%, #000);
    white-space: nowrap;
}
.tlbx-cta-badge--on { display: inline-flex; align-items: center; }

/* ── Bouton "Voir tous les outils" ── */
.tlbx-cta-more {
    align-self:    flex-start;
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
    padding:       7px 14px;
    background:    var(--tlbx-navy, #1e1c3b);
    color:         var(--tlbx-teal, #14b8a6);
    border:        none;
    border-radius: 999px;
    font-size:     12px;
    font-weight:   600;
    cursor:        pointer;
    transition:    background .18s ease, transform .14s ease;
}
.tlbx-cta-more:hover    { background: color-mix(in srgb, var(--tlbx-navy, #1e1c3b) 80%, #000); transform: translateY(-1px); }
.tlbx-cta-more:active   { transform: scale(.96); }

/* ── Variante grille (style="grid") ── */
.tlbx-cta--grid .tlbx-cta-items {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap:                   10px;
}
.tlbx-cta--grid .tlbx-cta-item {
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             6px;
    padding:         14px 10px;
    border-radius:   12px;
    text-align:      center;
}
.tlbx-cta--grid .tlbx-cta-ico svg  { width: 22px; height: 22px; }
.tlbx-cta--grid .tlbx-cta-name     { font-size: 12px; white-space: normal; }
.tlbx-cta--grid .tlbx-live-dot     { position: absolute; top: 8px; right: 8px; }

@media (max-width: 480px) {
    .tlbx-cta--grid .tlbx-cta-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════════
 * Section 17 — Bottom navigation bar + pill "Outils"
 * Mobile uniquement (≤ 767 px) — injecté via wp_footer priority 95
 * Les onglets reprennent valr_cats_data() (functions-vlar-cats.php)
 * ══════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bnav-bg:      rgba(255, 255, 255, .96);
    --bnav-border:  rgba(0, 0, 0, .08);
    --bnav-shadow:  0 -4px 24px rgba(30, 28, 59, .10);
    --bnav-text:    #64748b;
    --bnav-height:  60px;
    --bnav-z:       9100;           /* sous backdrop toolbox (99990) */
    --bnav-radius:  14px;

    /* Couleur active — surchargée par --bnav-cat-color sur chaque onglet */
    --bnav-cat-color: #14b8a6;
    --bnav-cat-bg:    rgba(20, 184, 166, .10);
}

/* ── Éléments cachés sur desktop — affichés uniquement via media query ── */
.plr-bottom-nav,
.plr-bnav-pill { display: none; }

@media (max-width: 767px) {

    /* ──────────────────────────────────────────────
     * ① Barre de navigation
     * ────────────────────────────────────────────── */
    .plr-bottom-nav {
        display:         flex;
        align-items:     stretch;
        justify-content: space-around;
        position:        fixed;
        bottom:          0;
        left:            0;
        right:           0;
        height:          var(--bnav-height);
        padding-bottom:  env(safe-area-inset-bottom, 0px);
        background:      var(--bnav-bg);
        border-top:      1px solid var(--bnav-border);
        box-shadow:      var(--bnav-shadow);
        border-radius:   var(--bnav-radius) var(--bnav-radius) 0 0;
        z-index:         var(--bnav-z);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* ── Onglet ── */
    .plr-bnav-tab {
        display:         flex;
        flex-direction:  column;
        align-items:     center;
        justify-content: center;
        gap:             3px;
        flex:            1;
        padding:         6px 4px;
        color:           var(--bnav-text);
        text-decoration: none;
        font-size:       10px;
        font-weight:     500;
        line-height:     1.2;
        letter-spacing:  .01em;
        border-radius:   10px;
        margin:          4px 2px;
        transition:      color .18s ease, background .18s ease;
        -webkit-tap-highlight-color: transparent;
        outline:         none;
    }

    /* Hover — couleur propre à la catégorie (via CSS custom prop inline) */
    .plr-bnav-tab:hover,
    .plr-bnav-tab:focus-visible {
        color:      var(--bnav-cat-color);
        background: color-mix(in srgb, var(--bnav-cat-bg) 50%, transparent);
    }

    /* Onglet actif */
    .plr-bnav-tab--active {
        color:       var(--bnav-cat-color);
        background:  var(--bnav-cat-bg);
        font-weight: 600;
    }

    /* Icône SVG */
    .plr-bnav-ico {
        display:         flex;
        align-items:     center;
        justify-content: center;
        flex-shrink:     0;
        width:           22px;
        height:          22px;
    }
    .plr-bnav-ico svg { width: 100%; height: 100%; }

    /* Label */
    .plr-bnav-label {
        display:       block;
        white-space:   nowrap;
        overflow:      hidden;
        max-width:     64px;
        text-overflow: ellipsis;
    }

    /* ──────────────────────────────────────────────
     * ② Pill "Outils" — flottant au-dessus de la barre
     * ────────────────────────────────────────────── */
    .plr-bnav-pill {
        display:         flex;
        align-items:     center;
        gap:             6px;
        position:        fixed;
        right:           14px;
        bottom:          calc(var(--bnav-height) + env(safe-area-inset-bottom, 0px) + 10px);
        padding:         7px 14px 7px 10px;
        background:      #fff;
        border:          1px solid rgba(30, 28, 59, .12);
        border-radius:   9999px;
        box-shadow:      0 2px 12px rgba(30, 28, 59, .14), 0 1px 3px rgba(30, 28, 59, .08);
        font-family:     inherit;
        font-size:       13px;
        font-weight:     600;
        color:           #1e1c3b;
        cursor:          pointer;
        z-index:         calc(var(--bnav-z) + 1);
        transition:      transform .18s ease, box-shadow .18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .plr-bnav-pill:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,28,59,.16); }
    .plr-bnav-pill:active { transform: scale(.94); }

    .plr-bnav-pill-ico {
        display:  flex;
        color:    var(--tlbx-teal, #14b8a6);
    }
    .plr-bnav-pill-ico svg { width: 16px; height: 16px; }

    /* ──────────────────────────────────────────────
     * FAB toolbox masqué sur mobile (la pill le remplace)
     * ────────────────────────────────────────────── */
    body:has(.plr-bottom-nav) #tlbx-fab { display: none !important; }

    /* Décalage du contenu page (footer ne passe pas sous la barre) */
    body { padding-bottom: calc(var(--bnav-height) + env(safe-area-inset-bottom, 0px)); }
}

/* ── Focus visible clavieriste ── */
.plr-bnav-tab:focus-visible {
    outline:        2px solid var(--bnav-cat-color);
    outline-offset: -2px;
}
.plr-bnav-pill:focus-visible {
    outline:        2px solid var(--tlbx-teal, #14b8a6);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════
 * Section 18 — Bloc catégories [valr_cats] (.vlar-cats / .vlar-cat)
 * Ce CSS remplace le bloc <style> inline dans Elementor.
 * Utiliser le shortcode [valr_cats] à la place du code HTML/CSS brut.
 * ══════════════════════════════════════════════════════════════════ */

.vlar-cats {
    display:       flex;
    gap:           8px;
    padding:       20px 10px 24px;
    background:    #fff;
    border-bottom: 1px solid #eceaf2;
    font-family:   inherit;
}

.vlar-cat {
    flex:                   1;
    display:                flex;
    flex-direction:         column;
    align-items:            center;
    gap:                    7px;
    text-decoration:        none;
    -webkit-tap-highlight-color: transparent;
}

.vlar-cat-top    { display: contents; }
.vlar-cat-bottom { display: contents; }
.vlar-cat-sub    { display: none; }

.vlar-cat-icon {
    width:        58px;
    height:       58px;
    border-radius: 14px;
    display:      flex;
    align-items:  center;
    justify-content: center;
    transition:   transform .18s ease, box-shadow .18s ease;
    flex-shrink:  0;
}
.vlar-cat:hover  .vlar-cat-icon { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.vlar-cat:active .vlar-cat-icon { transform: scale(.93); }
.vlar-cat-icon svg { width: 22px; height: 22px; }

.vlar-cat-lbl {
    font-size:   12px;
    font-weight: 700;
    color:       #18152e;
    text-align:  center;
    line-height: 1.2;
}

/* ── Couleurs par catégorie (mobile) ── */
.vlar-cat--d .vlar-cat-icon { background: #EFF1FF; color: #6366F1; }
.vlar-cat--s .vlar-cat-icon { background: #fdf0f2; color: #da667b; }
.vlar-cat--t .vlar-cat-icon { background: #FFF8E7; color: #F59E0B; }
.vlar-cat--v .vlar-cat-icon { background: #ECFDF5; color: #10B981; }
.vlar-cat--e .vlar-cat-icon { background: #F0F9FF; color: #0EA5E9; }

/* ── Desktop ── */
@media (min-width: 768px) {

    .vlar-cats { gap: 20px; padding: 40px 32px; }

    .vlar-cat {
        align-items:  stretch;
        border-radius: 18px;
        overflow:     hidden;
        box-shadow:   0 2px 8px rgba(30,28,59,.06), 0 8px 24px rgba(30,28,59,.04);
        transition:   transform .22s ease, box-shadow .22s ease;
    }
    .vlar-cat:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(30,28,59,.13); }

    .vlar-cat-top {
        display:         flex;
        height:          130px;
        align-items:     center;
        justify-content: center;
        flex-shrink:     0;
    }

    .vlar-cat-bottom {
        display:       block;
        background:    #fff;
        padding:       14px 16px 18px;
        border:        1px solid #eceaf2;
        border-top:    none;
        border-radius: 0 0 18px 18px;
    }

    /* Icône desktop — fond verre sur dégradé */
    .vlar-cat-icon {
        width:         60px;
        height:        60px;
        border-radius: 16px;
        background:    rgba(255,255,255,.2) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border:        1px solid rgba(255,255,255,.3) !important;
        color:         #fff !important;
    }
    .vlar-cat-icon svg { width: 26px; height: 26px; color: #fff; }

    /* Dégradés par catégorie */
    .vlar-cat--d .vlar-cat-top { background: linear-gradient(135deg,#4F46E5,#818CF8); }
    .vlar-cat--s .vlar-cat-top { background: linear-gradient(135deg,#da667b,#f0909e); }
    .vlar-cat--t .vlar-cat-top { background: linear-gradient(135deg,#F59E0B,#FCD34D); }
    .vlar-cat--v .vlar-cat-top { background: linear-gradient(135deg,#10B981,#34D399); }
    .vlar-cat--e .vlar-cat-top { background: linear-gradient(135deg,#0EA5E9,#38BDF8); }

    .vlar-cat-lbl {
        font-size:      15px;
        font-weight:    800;
        color:          #18152e;
        text-align:     left;
        display:        block;
        margin-bottom:  4px;
        letter-spacing: -.01em;
    }

    .vlar-cat-sub {
        display:     block;
        font-size:   12px;
        color:       #6b6880;
        font-weight: 500;
        line-height: 1.4;
    }
}

/* ══════════════════════════════════════════════════════════════════
 * Section 19 — Barre d'ancres de page [valr_anchor_bar]
 * CSS injecté inline par le shortcode (functions-anchor-bar.php).
 * Rien à gérer ici — voir id="valr-anchbar-css" dans le DOM.
 * ══════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════
 * Section 20 — Recherche guidée [recherche_larochelle] v2
 * Entonnoir : type → sous-filtres → résultats inline
 * ══════════════════════════════════════════════════════════════════ */

/* ── Conteneur ── */
.vlsr-funnel { max-width: 1360px; margin: 0 auto; padding-bottom: 40px; }
/* Step 1 + Step 2 : contraints à 860px centrés dans le funnel plus large */
#vlsr-step1, #vlsr-step2 { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ── Steps ── */
.vlsr-step { transition: opacity .22s, transform .22s; }
.vlsr-step--hidden  { display: none; }
.vlsr-step--out     { opacity: 0; pointer-events: none; display: none; }
.vlsr-step--in      { animation: vlsr-slide-in .24s ease both; }

@keyframes vlsr-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Étape 1 : cartes de type ── */
.vlsr-step-q {
    font-size: 20px;
    font-weight: 800;
    color: #18152e;
    margin: 0 0 18px;
    letter-spacing: -.02em;
}

.vlsr-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.vlsr-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .18s, transform .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.vlsr-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tcbg, #f5f5f5);
    opacity: 0;
    transition: opacity .18s;
}
.vlsr-type-card:hover { border-color: var(--tc); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.vlsr-type-card:hover::before { opacity: 1; }

.vlsr-type-ico {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--tcbg, #f5f5f5);
    color: var(--tc, #6366F1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 0;
    transition: background .18s;
}
.vlsr-type-card:hover .vlsr-type-ico { background: var(--tc); color: #fff; }
.vlsr-type-ico svg { width: 22px; height: 22px; display: block; }

.vlsr-type-name {
    position: relative;
    font-size: 15px;
    font-weight: 800;
    color: #18152e;
    line-height: 1.2;
}
.vlsr-type-sub {
    position: relative;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

/* ── Bouton retour ── */
.vlsr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--back-color, #6366F1);
    padding: 0 0 16px;
    transition: opacity .15s;
}
.vlsr-back:hover { opacity: .7; }
.vlsr-back svg { width: 16px; height: 16px; display: block; }

/* ── Étape 2 : sous-filtres ── */
.vlsr-sub { margin-bottom: 14px; }
.vlsr-sub[hidden] { display: none; }

.vlsr-sub-q {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Pills (catégories / périodes) */
.vlsr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}
/* Mobile : une seule ligne scrollable avec dégradé aux bords */
@media (max-width: 640px) {
    .vlsr-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        mask-image: linear-gradient(to right,
            transparent 0, #000 16px,
            #000 calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
            transparent 0, #000 16px,
            #000 calc(100% - 24px), transparent 100%);
    }
    .vlsr-pills::-webkit-scrollbar { display: none; }
    .vlsr-pill { flex-shrink: 0; }
}
.vlsr-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: all .14s;
    white-space: nowrap;
}
.vlsr-pill:hover                   { border-color: #94a3b8; color: #1e293b; }
.vlsr-pill--active                 { background: var(--vlsr-cat,#18152e); border-color: var(--vlsr-cat,#18152e); color: #fff; }
.vlsr-pill--active:hover           { background: var(--vlsr-cat,#18152e); border-color: var(--vlsr-cat,#18152e); color: #fff; filter: brightness(1.1); }

/* ── Barre de saisie ── */
.vlsr-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 13px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 24px;
}
.vlsr-bar:focus-within {
    border-color: var(--vlsr-cat, #6366F1);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.vlsr-bar-ico     { flex-shrink: 0; color: #94a3b8; line-height: 0; }
.vlsr-bar-ico svg { width: 18px; height: 18px; display: block; }

.vlsr-input {
    flex: 1; border: none !important; outline: none; background: transparent;
    font-size: 15px; color: #18152e; font-family: inherit; min-width: 0;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.vlsr-input:focus,
.vlsr-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.vlsr-input::placeholder          { color: #94a3b8; }
.vlsr-input::-webkit-search-cancel-button { display: none; }

.vlsr-clear {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    color: #94a3b8; padding: 4px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 0;
    transition: background .14s, color .14s;
}
.vlsr-clear:hover { background: #f0f0f0; color: #18152e; }
.vlsr-clear svg   { width: 16px; height: 16px; display: block; }

/* ── Zone résultats ── */
.vlsr-results-wrap {
    animation: vlsr-slide-in .22s ease both;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.vlsr-results-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.vlsr-result-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.vlsr-result-count strong { color: #18152e; font-weight: 800; }
.vlsr-result-count em     { font-style: normal; color: #18152e; }

/* ── Grille de résultats
   Les cartes utilisent directement les classes .tdf-listing-card de
   tdf-listing-cards.css (chargé globalement par customizer-grid-tdf.php).
   Seules quelques surcharges contextuelles sont nécessaires ici. ── */
.vlsr-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* La card est un <a> → supprimer text-decoration du thème */
.vlsr-results-grid .tdf-listing-card {
    text-decoration: none;
    color: inherit;
}
/* Placeholder coloré (pas de miniature) */
.vlsr-results-grid .vlsr-card-ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.vlsr-results-grid .vlsr-card-ph svg { width: 40px; height: 40px; opacity: .28; }

/* Pied résultats */
.vlsr-results-ft { margin-top: 18px; text-align: center; }
.vlsr-more-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    background: var(--ml-color, #6366F1);
    color: #fff;
    border-radius: 24px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
}
.vlsr-more-link:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* États */
.vlsr-loading, .vlsr-empty { padding: 24px 0; text-align: center; font-size: 14px; color: #94a3b8; margin: 0; }
.vlsr-empty strong { color: #18152e; }
.vlsr-empty small  { display: block; margin-top: 6px; font-size: 12px; }

/* Skeleton */
.vlsr-sk-card {
    height: 280px; border-radius: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: vlsr-sk 1.4s ease infinite;
}
@keyframes vlsr-sk {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Raccourcis "Une information" */
.vlsr-pill--shortcut {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
}
.vlsr-pill--shortcut:hover {
    border-color: currentColor;
    color: #18152e;
    background: #f8fafc;
}
.vlsr-pill--shortcut.vlsr-pill--active,
.vlsr-pill--shortcut.vlsr-pill--active:hover {
    background: var(--vlsr-cat, #6366F1);
    border-color: var(--vlsr-cat, #6366F1);
    color: #fff; filter: brightness(1.1);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .vlsr-results-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (min-width: 540px) {
    .vlsr-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
    .vlsr-type-grid    { grid-template-columns: repeat(5, 1fr); }
    .vlsr-step-q       { font-size: 24px; }
    .vlsr-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
    .vlsr-results-grid { grid-template-columns: repeat(4, 1fr); }
}
