/* ui-contenus.css : symboles SVG, fonds du symbole, thèmes, modèles (03/12/2026). Fichier NOUVEAU ; aucune règle du moteur modifiée.
   Cibles : 36 px sur ordinateur, 44 px sur mobile / écran tactile. */
:root{--uic-c:36px;--uic-txt:#365E5B;--uic-muet:#566B62;--uic-or:#c28a29;--uic-teal:#2f5552;--uic-ligne:#e6dcc4}
@media (max-width:760px),(pointer:coarse){:root{--uic-c:44px}}

/* ---------- rendu du symbole illustré et des fonds : page publique ---------- */
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-sym]{font-size:0!important;position:relative;width:96px;height:96px;min-height:0!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-sym]::before{content:"";position:absolute;inset:6px;background:var(--uic-sym) center/contain no-repeat;filter:drop-shadow(0 4px 5px rgba(60,40,20,.2))}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back]{width:128px!important;height:128px!important;min-height:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back][data-uic-sym]::before{inset:24px}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="halo"]{background-image:url(/assets/fonds-symbole/halo.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-anneau"]{background-image:url(/assets/fonds-symbole/anneau.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-medaille"]{background-image:url(/assets/fonds-symbole/medaille.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-bulle"]{background-image:url(/assets/fonds-symbole/bulle.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-ecusson"]{background-image:url(/assets/fonds-symbole/ecusson.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-eclat"]{background-image:url(/assets/fonds-symbole/eclat.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-carte"]{background-image:url(/assets/fonds-symbole/carte.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-petales"]{background-image:url(/assets/fonds-symbole/petales.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-aura"]{background-image:url(/assets/fonds-symbole/aura.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-galet"]{background-image:url(/assets/fonds-symbole/galet.svg)!important}
#chalet-public-calendrier .cp-dialog .cp-symbol[data-uic-back="ui-ondes"]{background-image:url(/assets/fonds-symbole/ondes.svg)!important}

/* ---------- aperçu dans l'éditeur ---------- */
html body #revealSymbol[data-uic-sym]{font-size:0!important;position:relative;width:100px;height:100px}
html body #revealSymbol[data-uic-sym]::before{content:"";position:absolute;inset:4px;background:var(--uic-sym) center/contain no-repeat;filter:drop-shadow(0 5px 6px rgba(60,40,20,.2))}
html body #revealBehind[data-uic-back]{background-color:transparent!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;box-shadow:none!important;width:190px!important;height:190px!important;border-radius:0!important}
html body #revealBehind[data-uic-back="halo"]{background-image:url(/assets/fonds-symbole/halo.svg)!important}
html body #revealBehind[data-uic-back="ui-anneau"]{background-image:url(/assets/fonds-symbole/anneau.svg)!important}
html body #revealBehind[data-uic-back="ui-medaille"]{background-image:url(/assets/fonds-symbole/medaille.svg)!important}
html body #revealBehind[data-uic-back="ui-bulle"]{background-image:url(/assets/fonds-symbole/bulle.svg)!important}
html body #revealBehind[data-uic-back="ui-ecusson"]{background-image:url(/assets/fonds-symbole/ecusson.svg)!important}
html body #revealBehind[data-uic-back="ui-eclat"]{background-image:url(/assets/fonds-symbole/eclat.svg)!important}
html body #revealBehind[data-uic-back="ui-carte"]{background-image:url(/assets/fonds-symbole/carte.svg)!important}
html body #revealBehind[data-uic-back="ui-petales"]{background-image:url(/assets/fonds-symbole/petales.svg)!important}
html body #revealBehind[data-uic-back="ui-aura"]{background-image:url(/assets/fonds-symbole/aura.svg)!important}
html body #revealBehind[data-uic-back="ui-galet"]{background-image:url(/assets/fonds-symbole/galet.svg)!important}
html body #revealBehind[data-uic-back="ui-ondes"]{background-image:url(/assets/fonds-symbole/ondes.svg)!important}

/* ---------- panneaux de l'éditeur ---------- */
html body #chalet-calendrier-app .uic-box{margin:10px 0 12px;padding:10px;border:1px solid var(--uic-ligne);border-radius:12px;background:#fffdf7;color:var(--uic-txt)}
html body #chalet-calendrier-app .uic-box *{box-sizing:border-box}
html body #chalet-calendrier-app .uic-box-lib{margin:18px 0}
html body #chalet-calendrier-app .uic-titre{display:flex;align-items:center;gap:8px;font:800 13px/1.3 Montserrat,system-ui,sans-serif;color:var(--uic-txt);letter-spacing:.01em}
html body #chalet-calendrier-app .uic-nb{display:inline-block;min-width:24px;padding:1px 7px;border-radius:999px;background:#f4e6c2;color:#5d3f06;font:700 11px/1.5 Montserrat,system-ui,sans-serif;text-align:center}
html body #chalet-calendrier-app .uic-aide{margin:2px 0 8px;font-size:12px;line-height:1.4;color:var(--uic-muet)!important}
html body #chalet-calendrier-app .uic-outils{margin:0 0 8px}
html body #chalet-calendrier-app .uic-rech{width:100%;max-width:340px;height:var(--uic-c);padding:0 12px;border:2px solid #e2e5df;border-radius:10px;background:#fff;font:600 13px Montserrat,system-ui,sans-serif;color:var(--uic-txt)}
html body #chalet-calendrier-app .uic-rech:focus{outline:3px solid #14605A;outline-offset:1px;border-color:var(--uic-or)}
html body #chalet-calendrier-app .uic-onglets{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
html body #chalet-calendrier-app .uic-onglets.uic-masque{display:none}
html body #chalet-calendrier-app .uic-onglet{display:inline-flex;align-items:center;justify-content:center;min-height:var(--uic-c);padding:0 12px;border:2px solid #e2e5df;border-radius:999px;background:#fff;color:var(--uic-txt)!important;font:700 12px Montserrat,system-ui,sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
html body #chalet-calendrier-app .uic-onglet:hover{border-color:var(--uic-or);background:#fff8e8}
html body #chalet-calendrier-app .uic-onglet[aria-selected="true"]{background:var(--uic-teal);border-color:var(--uic-teal);color:#fff!important}
html body #chalet-calendrier-app .uic-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--uic-c),1fr));gap:4px;max-height:236px;overflow:auto;padding:2px}
html body #chalet-calendrier-app .uic-grille button{display:grid;place-items:center;width:100%;height:var(--uic-c);min-height:var(--uic-c);padding:1px;border:2px solid transparent;border-radius:9px;background:#fff;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s}
html body #chalet-calendrier-app .uic-grille button:hover{border-color:var(--uic-or);transform:translateY(-1px);box-shadow:0 3px 9px rgba(61,42,5,.15)}
html body #chalet-calendrier-app .uic-grille button[aria-pressed="true"]{border-color:var(--uic-or);background:#fff4d6;box-shadow:0 0 0 2px #c28a2955}
html body #chalet-calendrier-app .uic-grille img{width:calc(var(--uic-c) - 4px);height:calc(var(--uic-c) - 4px);display:block;pointer-events:none}
html body #chalet-calendrier-app .uic-vide{margin:6px 2px;font-size:12px;color:var(--uic-muet)!important}
html body #chalet-calendrier-app .uic-sous{margin:10px 0 6px;font:800 12px/1.3 Montserrat,system-ui,sans-serif;color:var(--uic-txt)}
html body #chalet-calendrier-app .uic-fonds{display:flex;flex-wrap:wrap;gap:6px}
html body #chalet-calendrier-app .uic-puce{display:inline-flex;align-items:center;gap:6px;min-height:var(--uic-c);padding:0 10px 0 5px;border:2px solid #e2e5df;border-radius:999px;background:#fff;color:var(--uic-txt)!important;font:700 12px Montserrat,system-ui,sans-serif;cursor:pointer}
html body #chalet-calendrier-app .uic-puce:hover{border-color:var(--uic-or);background:#fff8e8}
html body #chalet-calendrier-app .uic-puce[aria-pressed="true"]{border-color:var(--uic-or);background:#fff4d6;box-shadow:0 0 0 2px #c28a2955}
html body #chalet-calendrier-app .uic-prev{display:inline-block;width:calc(var(--uic-c) - 10px);height:calc(var(--uic-c) - 10px);flex:none;background:#fff0 center/contain no-repeat;border-radius:50%}
html body #chalet-calendrier-app .uic-p-light{background:radial-gradient(circle,#fff9dc,#faf1de 65%,#fff0 94%)}
html body #chalet-calendrier-app .uic-p-none{border:2px dashed #c9c2ae;background:#fff}
html body #chalet-calendrier-app .uic-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
html body #chalet-calendrier-app .uic-theme{display:block;padding:4px;border:2px solid #e2e5df;border-radius:10px;background:#fff;color:var(--uic-txt)!important;text-align:left;cursor:pointer;overflow:hidden;transition:transform .12s,border-color .12s,box-shadow .12s}
html body #chalet-calendrier-app .uic-theme:hover{border-color:var(--uic-or);transform:translateY(-1px);box-shadow:0 4px 12px rgba(61,42,5,.14)}
html body #chalet-calendrier-app .uic-theme[aria-pressed="true"]{border-color:var(--uic-or);background:#fff8e8;box-shadow:0 0 0 2px #c28a2955}
html body #chalet-calendrier-app .uic-theme img{width:100%;height:auto;aspect-ratio:1826/1020;object-fit:cover;border-radius:6px;display:block;background:#1b2350}
html body #chalet-calendrier-app .uic-theme-bas{display:flex;align-items:center;gap:7px;margin:5px 3px 2px;min-height:22px}
html body #chalet-calendrier-app .uic-pal{display:inline-flex;flex:none;border-radius:6px;overflow:hidden;box-shadow:0 0 0 1px #0002}
html body #chalet-calendrier-app .uic-pal i{display:block;width:13px;height:18px}
html body #chalet-calendrier-app .uic-theme-nom{font:700 12px/1.2 Montserrat,system-ui,sans-serif}
html body #chalet-calendrier-app .uic-theme[aria-pressed="true"] .uic-theme-nom:after{content:" \2713";color:#8a5a0c}
html body #chalet-calendrier-app .uic-modeles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
html body #chalet-calendrier-app .uic-modele{display:flex;flex-direction:column;border:1px solid var(--uic-ligne);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(61,42,5,.06)}
html body #chalet-calendrier-app .uic-modele img{width:100%;height:auto;aspect-ratio:1826/1020;object-fit:cover;display:block;background:#1b2350}
html body #chalet-calendrier-app .uic-modele-corps{display:flex;flex-direction:column;flex:1;gap:4px;padding:10px 12px 12px}
html body #chalet-calendrier-app .uic-modele h4{margin:0;font:800 14px/1.3 Montserrat,system-ui,sans-serif;color:var(--uic-txt)}
html body #chalet-calendrier-app .uic-modele p{margin:0;font-size:12px;line-height:1.45;color:var(--uic-muet)!important}
html body #chalet-calendrier-app .uic-modele-bas{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;flex-wrap:wrap}
html body #chalet-calendrier-app .uic-badge{display:inline-block;padding:2px 9px;border-radius:999px;background:#f4e6c2;color:#5d3f06;font:700 11px/1.6 Montserrat,system-ui,sans-serif}
html body #chalet-calendrier-app .uic-btn{min-height:var(--uic-c);padding:0 14px;border:0;border-radius:10px;background:linear-gradient(180deg,#f2c76b,#d9a037);color:#3d2a05!important;font:800 12px Montserrat,system-ui,sans-serif;cursor:pointer;box-shadow:0 2px 6px rgba(61,42,5,.2)}
html body #chalet-calendrier-app .uic-btn:hover{filter:brightness(1.05)}
html body #chalet-calendrier-app .uic-box[aria-busy="true"] .uic-btn{opacity:.55;pointer-events:none}
html body #chalet-calendrier-app .uic-statut{min-height:0;margin-top:6px;font-size:12px;line-height:1.4;color:#1B6F69}
html body #chalet-calendrier-app .uic-statut:empty{display:none}
html body #chalet-calendrier-app .uic-statut[data-err="1"]{color:#8E2424;font-weight:700}
html body #chalet-calendrier-app .uic-box :is(button,input):focus-visible{outline:3px solid #14605A;outline-offset:2px;box-shadow:0 0 0 5px #fff}
@media (prefers-reduced-motion:reduce){html body #chalet-calendrier-app .uic-box *{transition:none!important}html body #chalet-calendrier-app .uic-box button:hover{transform:none!important}}
@media (max-width:760px){html body #chalet-calendrier-app .uic-grille{max-height:260px}html body #chalet-calendrier-app .uic-modeles{grid-template-columns:1fr}}
