/*
 * Panneau Calques de la carte web (maquette M67 validée le 20/11/2026, D1216) : feuille propre à l'écran.
 * Portage à l'identique de la maquette : « Affichés (n) » en tête (curseur d'opacité, ⚙, ×, « Tout masquer »),
 * puis le catalogue par catégorie, UNE seule catégorie ouverte, pastille du nombre affiché, interrupteur par calque.
 * Logique : resources/js/map/panneau-calques.js. Classes de base reprises de isomaps.css (.overlay-item, .overlay-thumb…).
 */
.pc-section{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 4px 3px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#8a8a8a;user-select:none}
.pc-section .pc-vider{font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;color:#4E8B87;background:none;border:0;padding:0;cursor:pointer}
.pc-vide{font-size:12px;color:#8a8a8a;padding:4px 4px 8px}
.overlay-list .pc-actif{gap:8px;padding:5px 4px}
.overlay-list .pc-actif .overlay-thumb,.overlay-list .pc-ligne .overlay-thumb{width:28px;height:28px;border-radius:5px;font-size:12px}
.overlay-list .pc-actif .overlay-opacity{width:70px}
.pc-btn{flex:none;width:26px;height:26px;border:0;border-radius:6px;background:none;color:#8a8a8a;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}
.pc-btn:hover,.pc-btn.on{background:rgba(78,139,135,.12);color:#4E8B87}
.pc-sep{height:1px;background:#e0e0e0;margin:6px 0 2px}
.overlay-list .overlay-category-header.pc-cat{padding:9px 4px 6px !important;border-bottom:1px solid #f0f0f0}
.pc-pastille{margin-left:6px;display:inline-block;min-width:16px;padding:0 5px;border-radius:999px;background:#4E8B87;color:#fff;font-size:10px;line-height:16px;text-align:center;letter-spacing:0}
.overlay-list .pc-ligne{gap:8px;padding:5px 4px 5px 10px;cursor:default}
.overlay-list .pc-ligne .overlay-name{font-weight:400}
.overlay-list .pc-ligne[data-bs-toggle]{cursor:pointer}
.pc-switch{appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:999px;background:#cfd8d7;position:relative;cursor:pointer;transition:background .15s;margin:0;flex:none}
.pc-switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.pc-switch:checked{background:#4E8B87}
.pc-switch:checked::after{transform:translateX(14px)}
.pc-cadenas{flex:none;color:#b0b0b0;font-size:12px;width:34px;text-align:center}

/* [hidden] garde le dessus sur les display des classes ci-dessus. */
.overlay-list [hidden]{display:none !important}

/* Lignes rangées hors de la vue (calques éteints) : gardées dans la liste pour layers.js (sauvegarde, restauration). */
.overlay-list .pc-reserve,.overlay-list .pc-cache{display:none !important}

/* Réglages propres à un calque : repliés derrière ⚙ (horizon neige, choix de la prévision neige, seuil des pentes,
   panneau du rendu réaliste qui suit sa ligne). Même retrait que .pc-reglages de la maquette (40px). */
.pc-actif:not(.pc-ouvert)>.snow-horizon-toggle,
.pc-actif:not(.pc-ouvert)>.snf-choix,
.pc-actif:not(.pc-ouvert)>.pentes-seuil-reglage,
.pc-actif:not(.pc-ouvert)+.calque-realiste-panneau{display:none !important}
.overlay-list .pc-actif{flex-wrap:wrap}
.overlay-list .pc-actif>.snow-horizon-toggle{flex:1 1 100%;margin:0 0 4px 40px;width:auto}
.overlay-list .pc-actif>.snf-choix{margin-left:40px}
.overlay-list .pc-actif>.pentes-seuil-reglage{padding-left:40px}
.overlay-list .pc-actif+.calque-realiste-panneau{padding:4px 6px 10px 40px}
.pc-actif .calque-realiste-interrupteur{display:none}

/* Ligne « Affichés », deux étages (retour de Stéphane du 20/11/2026, D1216 : × ou ⚙ tombaient seuls sous la vignette) :
   1er étage = [poignée] [vignette] [nom] [⚙] [×], centrés verticalement, boutons à droite ;
   2e étage = le curseur d'opacité sous le nom, aligné sur son début ; puis les réglages dépliés par ⚙.
   Le nom part d'une base nulle (flex 1 1 0) : avec flex-wrap, une base « auto » (largeur du texte entier) faisait passer
   les boutons à la ligne au lieu de rétrécir le nom. Nom long : sur 2 lignes au plus, jamais « Pe… » sur une ligne. */
.overlay-list .pc-actif{--pc-debut-nom:60px}
.overlay-list .pc-actif>.overlay-drag-handle{flex:none;width:16px;padding:0;text-align:center;box-sizing:border-box}
.overlay-list .pc-actif>.overlay-thumb{flex:none}
.overlay-list .pc-actif>.overlay-name{flex:1 1 0;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:clip}
.overlay-list .pc-actif>.pc-btn{order:1}
.overlay-list .pc-actif>.overlay-opacity{order:2;flex:1 1 100%;width:auto;min-width:0;max-width:calc(100% - var(--pc-debut-nom));margin:-4px 0 0 var(--pc-debut-nom);box-sizing:border-box}
.overlay-list .pc-actif>.snow-horizon-toggle,.overlay-list .pc-actif>.snf-choix,.overlay-list .pc-actif>.pentes-seuil-reglage{order:3;flex:1 1 100%;box-sizing:border-box}

/* Bandeau de réglages flottant sur la carte (D1238) : resources/js/map/reglages-flottants.js. Une ligne par calque
   allumé qui a un réglage principal (seuil des pentes raides, heure du rendu réaliste), repliable en pastille. */
.rf-bandeau{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);z-index:21;box-sizing:border-box;width:min(380px,calc(100% - 150px));display:flex;align-items:center;gap:4px;padding:4px 4px 4px 10px;border-radius:18px;background:rgba(255,255,255,.93);box-shadow:0 2px 8px rgba(0,0,0,.25);backdrop-filter:blur(4px);font-size:12px;line-height:1.2;color:#2C3E3C;touch-action:none}
.rf-bandeau[hidden],.rf-bandeau [hidden]{display:none !important}
.rf-lignes{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.rf-ligne{display:flex;align-items:center;gap:8px;min-height:28px}
.rf-ligne>i{flex:none;width:16px;text-align:center;color:var(--rf-couleur,#4E8B87)}
.rf-ligne>input{flex:1 1 auto;min-width:0;margin:0;height:24px;accent-color:var(--rf-couleur,#4E8B87);cursor:pointer}
.rf-ligne>b{flex:none;min-width:40px;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.rf-replier{flex:none;align-self:flex-start;width:28px;height:28px;border:0;border-radius:50%;background:none;color:#8a8a8a;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px}
.rf-replier:hover{background:rgba(78,139,135,.12);color:#4E8B87}
.rf-resume{display:none;border:0;background:none;padding:2px 6px;gap:12px;align-items:center;cursor:pointer;font:inherit;color:inherit}
.rf-resume span{display:inline-flex;align-items:center;gap:6px}
.rf-resume b{font-weight:700;font-variant-numeric:tabular-nums}
.rf-bandeau.rf-replie{width:auto;padding:4px 8px;border-radius:999px}
.rf-bandeau.rf-replie .rf-lignes,.rf-bandeau.rf-replie .rf-replier{display:none}
.rf-bandeau.rf-replie .rf-resume{display:inline-flex}

/* Liquid glass iOS 26, réglage « Transparent » (D1265) : barre claire translucide très arrondie, piste fine grise,
   partie gauche en gris doux (D1265, sans couleur), pouce blanc au repos et lentille de verre transparente à l'appui. */
.rf-bandeau{--rf-verre:rgba(255,255,255,.88);background:var(--rf-verre);border:1px solid rgba(255,255,255,.8);border-radius:999px;padding:4px 8px 4px 14px;box-shadow:0 8px 28px rgba(0,0,0,.2),0 1px 3px rgba(0,0,0,.12),inset 0 1px 0 #fff;color:#26363a;text-shadow:none}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .rf-bandeau{--rf-verre:rgba(255,255,255,.62);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%)}
}
.rf-ligne{gap:10px;min-height:44px}
.rf-ligne>i{color:#4a5a5e;filter:none;font-size:15px}
.rf-ligne>b{color:#26363a}
.rf-replier{color:#6b7a7e}
.rf-replier:hover{background:rgba(0,0,0,.06);color:#26363a}
.rf-ligne>input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;accent-color:auto;height:44px;--rf-p:0;--rf-pl:56px;touch-action:none;-webkit-tap-highlight-color:transparent;outline:none}
.rf-ligne>input[type=range].rf-appui,.rf-ligne>input[type=range]:active{--rf-pl:66px}
.rf-ligne>input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:linear-gradient(90deg,rgba(70,82,88,.5) 0,rgba(70,82,88,.5) calc(var(--rf-pl) / 2 + (100% - var(--rf-pl)) * var(--rf-p)),rgba(70,82,88,.16) calc(var(--rf-pl) / 2 + (100% - var(--rf-pl)) * var(--rf-p)))}
.rf-ligne>input[type=range]::-moz-range-track{height:5px;border-radius:999px;background:rgba(70,82,88,.16)}
.rf-ligne>input[type=range]::-moz-range-progress{height:5px;border-radius:999px;background:rgba(70,82,88,.5)}
/* Pouce : au repos, pilule blanche pleine ; à l'appui, lentille de verre transparente un peu plus grande (iOS 26). */
.rf-ligne>input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:56px;height:36px;margin-top:-15.5px;border-radius:999px;border:1px solid rgba(255,255,255,1);background-color:#fff;background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));box-shadow:0 2px 6px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.2);transition:width .15s ease,height .15s ease,margin-top .15s ease,background-color .15s ease,box-shadow .15s ease,border-color .15s ease}
.rf-ligne>input[type=range].rf-appui::-webkit-slider-thumb,.rf-ligne>input[type=range]:active::-webkit-slider-thumb{width:66px;height:42px;margin-top:-18.5px;border-color:rgba(255,255,255,.95);background-color:rgba(255,255,255,.07);background-image:linear-gradient(180deg,rgba(255,255,255,.55) 0,rgba(255,255,255,.04) 42%,rgba(255,255,255,.16) 100%);box-shadow:0 8px 20px rgba(0,0,0,.22),0 1px 3px rgba(0,0,0,.16),inset 0 1px 1px #fff,inset 0 -2px 5px rgba(255,255,255,.5),inset 0 0 0 1px rgba(0,0,0,.05)}
.rf-ligne>input[type=range]::-moz-range-thumb{width:54px;height:34px;border-radius:999px;border:1px solid #fff;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.22);transition:background .15s ease,box-shadow .15s ease}
.rf-ligne>input[type=range].rf-appui::-moz-range-thumb,.rf-ligne>input[type=range]:active::-moz-range-thumb{background:rgba(255,255,255,.1);box-shadow:0 8px 20px rgba(0,0,0,.22),inset 0 1px 1px #fff}
/* Bouton lecture ▶/⏸ du curseur d'heure Live (D1265) : rond, verre blanc, remplace l'icône soleil. */
.rf-avec-lecture>i{display:none}
.rf-lecture{flex:none;width:34px;height:34px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.95);background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.25));box-shadow:0 2px 6px rgba(0,0,0,.18),inset 0 1px 1px #fff;color:#3a4a4e;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;-webkit-tap-highlight-color:transparent;transition:background .15s ease,transform .15s ease}
.rf-lecture i{width:auto;margin-left:2px;color:inherit}
.rf-lecture.rf-lecture-on i{margin-left:0}
.rf-lecture:active{transform:scale(.94)}
.rf-lecture:focus{outline:none}.rf-lecture:focus-visible{outline:2px solid #3b706c;outline-offset:2px}
/* Lecture en cours : la pilule s'efface (fondu 300 ms), seule reste l'heure en tout petit, sans fond. Un toucher sur la carte reprend la main. */
.rf-bandeau{transition:opacity .3s ease}
.rf-bandeau.rf-lecture-masque{opacity:0;pointer-events:none}
.rf-heure-mini{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(34px + env(safe-area-inset-bottom,0px));z-index:21;color:#fff;font:600 13px/1 system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px rgba(0,0,0,.7),0 0 2px rgba(0,0,0,.5);pointer-events:none;animation:rfMiniIn .3s ease}
@keyframes rfMiniIn{from{opacity:0}to{opacity:1}}
@media (max-width:768px){.rf-heure-mini{bottom:calc(40px + env(safe-area-inset-bottom,0px))}}
.rf-bandeau.rf-replie{border-radius:999px}
@media (max-width: 768px){
    .rf-bandeau{bottom:78px;width:calc(100% - 130px)}
}

/* Rouage des interrupteurs du Live (D1302) : bouton rond juste à droite de la frise horaire + panneau flottant (reglages-flottants.js, ajouterRouage) */
.rf-cog{display:none;position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#fff;color:#505050;box-shadow:0 2px 10px 0 rgba(15,68,106,.3);align-items:center;justify-content:center;cursor:pointer;font-size:16px}
body.live-actif .rf-cog{display:flex}
.rf-cog[aria-expanded="true"]{background:#11351d;color:#fff}
.rf-cog:focus{outline:none}.rf-cog:focus-visible{outline:2px solid #3b706c;outline-offset:2px}
.rf-reglages{position:absolute;right:10px;bottom:100px;z-index:22;box-sizing:border-box;width:290px;max-width:calc(100% - 20px);overflow-y:auto;padding:6px 4px 8px;border-radius:14px;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 28px rgba(0,0,0,.25),0 1px 3px rgba(0,0,0,.12);font-family:'Roboto',sans-serif;color:#2C3E3C;touch-action:pan-y}
.rf-reglages[hidden]{display:none !important}
body:not(.live-actif) .rf-reglages{display:none !important}
.rf-reglages-titre{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 4px 14px;font-weight:700;font-size:13px}
.rf-reglages-fermer{width:28px;height:28px;border:0;border-radius:50%;background:none;color:#6b7a7e;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}
.rf-reglages-fermer:hover{background:rgba(0,0,0,.06);color:#26363a}
.rf-reglages .calque-realiste-panneau{padding:2px 14px 4px;gap:3px;border-bottom:0}
.rf-reglages .calque-realiste-panneau .cr-ligne{min-height:30px;font-size:13px}
.rf-reglages .calque-realiste-panneau .cr-soleil{margin-top:0;font-size:11px}
.rf-reglages .calque-realiste-panneau .cr-source{font-size:11px}
@media (max-width:768px){.rf-cog{width:36px;height:36px}.rf-reglages{bottom:140px}}
