/* ============================================================
   v7.12 — « Relief » : tableau de bord en relief + menu « porte 3D »
   (proposition A validée le 01/11/2026). Espace Mairie uniquement :
   l'espace emprunteur (body.gsn-emp) n'est pas concerné.
   Mouvements désactivés si l'appareil demande « Réduire les animations ».
   ============================================================ */
@media screen {

/* ---------- 1. Barre du haut : liseré animé + ☰ qui devient ✕ ---------- */
body:not(.gsn-emp) .topbar{position:relative;border-bottom-color:transparent!important}
body:not(.gsn-emp) .topbar::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;background:linear-gradient(90deg,#57c4bc,#2a8f88,#9fe3dd,#57c4bc);background-size:300% 100%;animation:grFlow 8s linear infinite;pointer-events:none}
body:not(.gsn-emp) .topbar .burger-btn{border-radius:14px;transition:background .2s,transform .2s}
body:not(.gsn-emp) .topbar .burger-btn:hover{background:rgba(255,255,255,.14);transform:translateY(-1px)}
body:not(.gsn-emp) .topbar .burger-btn svg line{transform-box:fill-box;transform-origin:center;transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .3s}
/* icône « menu » de gsn-icons : lignes dans l'ordre milieu (y12), haut (y6), bas (y18) */
body.gr-menu-open:not(.gsn-emp) .topbar .burger-btn svg line:nth-of-type(1){opacity:0;transform:scaleX(.2)}
body.gr-menu-open:not(.gsn-emp) .topbar .burger-btn svg line:nth-of-type(2){transform:translateY(6px) rotate(45deg)}
body.gr-menu-open:not(.gsn-emp) .topbar .burger-btn svg line:nth-of-type(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- 2. Menu : panneau marine, rubriques turquoise, entrée en cascade ---------- */
body:not(.gsn-emp) .sidebar{top:var(--gr-top,var(--topbar-h,50px));width:300px;padding:16px 14px 28px!important;border-right:0;color:#dbe7f1;
  background:radial-gradient(120% 60% at 0% 0%,#1f5f6e 0%,#16314f 46%,#0b1c2f 100%);box-shadow:none;
  transition:transform .8s cubic-bezier(.22,1,.36,1);scrollbar-color:rgba(255,255,255,.25) transparent}
body:not(.gsn-emp) .sidebar .nav-divider{margin:16px 6px 6px;padding:0 6px!important;font-size:11px;font-weight:800;letter-spacing:.14em;color:#7fd3cc}
body:not(.gsn-emp) .sidebar .nav-item{position:relative;gap:12px;margin:2px 0;padding:8px 10px!important;border:0!important;border-radius:14px;color:#dbe7f1;font-size:14.5px;font-weight:600;box-shadow:none;transition:background .2s,color .2s,transform .25s}
body:not(.gsn-emp) .sidebar .nav-item:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(4px)}
body:not(.gsn-emp) .sidebar .nav-item:focus-visible{outline:2px solid #57c4bc;outline-offset:2px}
body:not(.gsn-emp) .sidebar .nav-item .icon{width:34px;height:34px;flex:none;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:#dbe7f1;transition:background .2s,transform .45s cubic-bezier(.34,1.56,.64,1)}
body:not(.gsn-emp) .sidebar .nav-item .icon svg{width:18px;height:18px;margin:0}
body:not(.gsn-emp) .sidebar .nav-item:hover .icon{transform:rotate(-8deg) scale(1.08)}
body:not(.gsn-emp) .sidebar .nav-item.active{background:linear-gradient(90deg,rgba(87,196,188,.28),rgba(87,196,188,.06));color:#fff;font-weight:700;box-shadow:inset 3px 0 0 #57c4bc}
body:not(.gsn-emp) .sidebar .nav-item.active .icon{background:#57c4bc;color:#0b1c2f}
.gr-nb{margin-left:auto;min-width:22px;padding:2px 7px;border-radius:999px;font-size:11.5px;font-weight:800;line-height:1.4;text-align:center;box-sizing:border-box}
.gr-nb.red{background:#ff8f7f;color:#4a0a02}
.gr-nb.amber{background:#f5c46a;color:#3b2500}
body.gr-menu-open:not(.gsn-emp) .sidebar .gr-mi{animation:grMi .65s cubic-bezier(.22,1,.36,1) backwards;animation-delay:calc(120ms + var(--gr-i,0) * 22ms)}

/* ---------- 3. Effet « porte 3D » : le contenu pivote et recule à l'ouverture ---------- */
body:not(.gsn-emp) .main{background:var(--bg,#eef5f6);transform-origin:0 var(--gr-oy,50%);transition:transform .85s cubic-bezier(.22,1,.36,1),border-radius .85s,box-shadow .85s,filter .85s}
body.gr-menu-open:not(.gsn-emp) .layout{background:radial-gradient(120% 70% at 0% 0%,#1f5f6e 0%,#16314f 42%,#0b1c2f 100%)}
body.gr-menu-open:not(.gsn-emp) .main{transform:perspective(1800px) translateX(300px) scale(.88) rotateY(12deg);border-radius:30px;box-shadow:-40px 30px 100px rgba(2,9,18,.6);filter:saturate(.85) brightness(.93);overflow:hidden}
body.gr-menu-open:not(.gsn-emp) .sidebar-overlay{background:transparent}

/* ---------- 4. Tableau de bord ---------- */
.gr-dash{max-width:1280px;margin:0 auto}
.gr-dash-in{display:grid;gap:22px;margin-bottom:22px;font-family:Manrope,system-ui,-apple-system,sans-serif;color:#1d2735}
.gr-dash button{font-family:inherit}
.gr-ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gr-rise{animation:grRise 1s cubic-bezier(.22,1,.36,1) backwards}
.gr-h2{display:flex;align-items:center;gap:8px;margin:0 0 12px 2px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#46566b}
.gr-h2 .gr-ic{width:16px;height:16px;color:#2a8f88}
.gr-lnk{display:inline-flex;align-items:center;gap:4px;padding:6px 4px;border:0;background:none;color:#1f6f73;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none}
.gr-lnk .gr-ic{width:16px;height:16px;transition:transform .3s}
.gr-lnk:hover{color:#16314f}.gr-lnk:hover .gr-ic{transform:translateX(4px)}
.gr-links{display:flex;align-items:center;gap:6px}
/* bandeau en relief */
.gr-hero-wrap{perspective:1300px}
.gr-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;align-items:center;min-height:230px;padding:34px 38px;border-radius:30px;color:#fff;
  background:linear-gradient(125deg,#16314f 0%,#1b4a63 52%,#25817f 100%);transform-style:preserve-3d;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .45s cubic-bezier(.22,1,.36,1);
  box-shadow:0 40px 70px -30px rgba(22,49,79,.65),0 14px 28px -14px rgba(22,49,79,.45)}
.gr-hero-bg{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.gr-blob{position:absolute;border-radius:50%;filter:blur(46px);opacity:.55;animation:grBlob 16s ease-in-out infinite alternate}
.gr-blob.b1{width:360px;height:360px;left:-80px;top:-140px;background:#57c4bc}
.gr-blob.b2{width:300px;height:300px;right:12%;bottom:-170px;background:#2a8f88;animation-duration:19s;animation-delay:-6s}
.gr-blob.b3{width:220px;height:220px;right:-60px;top:-60px;background:#7fb8e6;opacity:.35;animation-duration:23s;animation-delay:-11s}
.gr-waves{position:absolute;left:0;right:0;bottom:0;width:100%;height:46%;opacity:.5}
.gr-waves g{transform-box:fill-box;animation:grWave 14s linear infinite}
.gr-waves g.w2{animation-duration:22s;animation-direction:reverse;opacity:.6}
.gr-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(520px circle at var(--mx,25%) var(--my,10%),rgba(255,255,255,.2),transparent 48%)}
.gr-z1{position:relative;transform:translateZ(46px)}
.gr-z2{transform:translateZ(80px)}
.gr-z3{transform:translateZ(60px)}
.gr-hello{margin:0;font-size:17px;font-weight:600;opacity:.85}
.gr-date{margin:6px 0 10px;font-size:40px;line-height:1.1;font-weight:800;letter-spacing:-.025em;color:#fff}
.gr-date sup{font-size:.45em;vertical-align:super}
.gr-place{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-size:15px;opacity:.92}
.gr-place .gr-ic{width:17px;height:17px}
.gr-chips{display:flex;flex-wrap:wrap;gap:8px}
.gr-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-size:13px;font-weight:600;color:#fff}
.gr-chip .gr-ic{width:15px;height:15px;color:#9fe3dd}
.gr-hero-r{position:relative;display:flex;gap:18px;justify-content:flex-end;align-items:stretch;transform-style:preserve-3d}
.gr-wx{flex:1;max-width:270px;padding:16px 18px;border-radius:24px;background:linear-gradient(150deg,rgba(255,255,255,.24),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.28);box-shadow:0 20px 40px -18px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.35);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3)}
.gr-wtop{display:flex;align-items:center;justify-content:space-between}
.gr-wico{position:relative;width:62px;height:50px}
.gr-wico .sun{position:absolute;right:4px;top:0;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle,#ffe08a,#f5b84a);box-shadow:0 0 24px rgba(255,214,102,.8);animation:grBob 6s ease-in-out infinite}
.gr-wico.is-night .sun{background:radial-gradient(circle at 35% 35%,#fffbe8,#e9e4c6);box-shadow:0 0 18px rgba(244,241,222,.7)}
.gr-wico .cl{position:absolute;left:0;bottom:0;width:52px;height:52px;fill:rgba(255,255,255,.92);stroke:#fff;animation:grDrift 7s ease-in-out infinite}
.gr-wico.wx-sun .cl{display:none}
.gr-wico.wx-sun .sun{width:40px;height:40px;right:10px;top:5px}
.gr-wico.wx-cloud .sun,.gr-wico.wx-fog .sun,.gr-wico.wx-rain .sun,.gr-wico.wx-snow .sun,.gr-wico.wx-storm .sun{display:none}
.gr-wico .drops{position:absolute;left:12px;bottom:-8px;width:30px;height:12px;display:none;background:repeating-linear-gradient(105deg,transparent 0 6px,rgba(255,255,255,.85) 6px 8px);animation:grRain .8s linear infinite}
.gr-wico.wx-rain .drops,.gr-wico.wx-storm .drops{display:block}
.gr-wico.wx-snow .drops{display:block;background:radial-gradient(circle,#fff 1.5px,transparent 2px) 0 0/10px 6px}
.gr-temp{font-size:42px;font-weight:800;letter-spacing:-.03em}
.gr-wdesc{margin:4px 0 10px;font-size:14px;font-weight:600}
.gr-fc{display:flex;gap:8px}
.gr-fc span{flex:1;padding:6px 0;border-radius:12px;background:rgba(255,255,255,.12);text-align:center;font-size:12px}
.gr-fc b{display:block;font-size:15px}
.gr-wsrc{margin:10px 0 0;font-size:11px;opacity:.8}
.gr-logo{width:170px;flex:none;border-radius:24px;background:#fff;display:grid;place-items:center;padding:14px;box-shadow:0 24px 40px -16px rgba(0,0,0,.5)}
.gr-logo img{display:block;width:100%;height:auto;max-height:130px;object-fit:contain}
/* points d'attention */
/* v7.57 — la colonne des points d'attention ne prend plus la largeur de toutes les cartes alignées : elles passent à la ligne, le titre garde sa place */
.gr-att{display:grid;grid-template-columns:auto minmax(250px,1fr) minmax(0,max-content);align-items:center;gap:20px;padding:18px 22px;border-radius:24px;background:#fff;box-shadow:inset 0 1px 0 #fff,0 24px 40px -28px rgba(22,49,79,.45),0 2px 8px rgba(22,49,79,.06)}
.gr-att-badge{position:relative;width:58px;height:58px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#ffd27a,#f0a020);color:#3b2500;font-size:20px;font-weight:800;cursor:pointer;box-shadow:0 10px 20px -8px rgba(240,160,32,.8)}
.gr-att-badge.ok{background:radial-gradient(circle at 35% 30%,#7fe0b0,#1f8a5b);color:#fff;cursor:default;box-shadow:0 10px 20px -8px rgba(31,138,91,.7)}
.gr-att-badge.ok .gr-ic{width:28px;height:28px}
.gr-pulse,.gr-pulse::after{position:absolute;inset:0;border-radius:50%;border:2px solid #f0a020;animation:grRing 2.6s ease-out infinite}
.gr-pulse::after{content:"";animation-delay:1.3s}
.gr-att-txt h2{margin:0;font-size:18px;font-weight:800;color:#16314f}
.gr-att-txt p{margin:2px 0 0;font-size:14px;color:#5b6b7f}
.gr-att-txt .gr-lnk{padding:0;font-size:14px}
.gr-att-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;min-width:0}
/* v7.57 — trois ou quatre points d'attention sur ordinateur : deux colonnes égales (au lieu de 3 + 1) */
@media (min-width:1181px){.gr-att-list:has(>.gr-alert:nth-child(3)){display:grid;grid-template-columns:repeat(2,minmax(230px,330px));justify-content:end}.gr-att-list:has(>.gr-alert:nth-child(3)) .gr-alert{max-width:none}}
.gr-alert{display:flex;align-items:center;gap:12px;min-width:240px;max-width:330px;padding:12px 14px;border:1px solid;border-radius:16px;background:#fff;text-align:left;cursor:pointer;animation:grRise .8s cubic-bezier(.22,1,.36,1) backwards;transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s}
.gr-alert:hover{transform:translateY(-3px);box-shadow:0 14px 24px -14px rgba(22,49,79,.5)}
.gr-alert>span{display:grid;min-width:0}
.gr-alert b{font-size:14px}
.gr-alert small{font-size:12.5px;color:#5b6b7f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-alert .ch{margin-left:auto;transition:transform .3s}
.gr-alert:hover .ch{transform:translateX(4px)}
.gr-alert.red{border-color:#f6c9c2;color:#b42318}
.gr-alert.amber{border-color:#f5ddb0;color:#8a5300}
/* tuiles en relief */
.gr-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.gr-tile{position:relative;width:100%;height:100%;min-height:168px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:0;border-radius:24px;text-align:left;cursor:pointer;color:#1d2735;
  background:linear-gradient(165deg,#ffffff 0%,#f2f8f9 100%);transform-style:preserve-3d;transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .4s cubic-bezier(.22,1,.36,1),box-shadow .4s;box-shadow:inset 0 1px 0 #fff,0 22px 34px -22px rgba(22,49,79,.5),0 2px 6px rgba(22,49,79,.06)}
.gr-tile:hover{box-shadow:inset 0 1px 0 #fff,0 34px 50px -24px rgba(22,49,79,.6),0 4px 10px rgba(22,49,79,.08)}
.gr-tile:focus-visible{outline:3px solid #57c4bc;outline-offset:3px}
.gr-tico{position:relative;width:50px;height:50px;margin-bottom:6px;border-radius:16px;display:grid;place-items:center;color:var(--c);background:var(--cb);box-shadow:inset 0 -3px 0 rgba(0,0,0,.05),0 10px 18px -10px var(--c);transform:translateZ(34px);transition:transform .5s cubic-bezier(.34,1.56,.64,1)}
.gr-tile:hover .gr-tico{transform:translateZ(56px) rotate(-9deg) scale(1.08)}
.gr-tico .gr-ic{width:24px;height:24px}
.gr-tlbl{font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#46566b;transform:translateZ(18px)}
.gr-tnum{font-size:36px;line-height:1;font-weight:800;letter-spacing:-.03em;color:#16314f;font-variant-numeric:tabular-nums;transform:translateZ(28px)}
.gr-tsub{font-size:13px;color:#5b6b7f;transform:translateZ(14px)}
.gr-tsub.red{color:#b42318;font-weight:700}
.gr-tsub.amber{color:#8a5300;font-weight:700}
.gr-tbar{width:100%;height:6px;margin-top:auto;border-radius:6px;background:#e3edf0;overflow:hidden;transform:translateZ(10px)}
.gr-tbar i{display:block;height:100%;min-width:4px;border-radius:6px;background:linear-gradient(90deg,var(--c),#57c4bc);animation:grGrow 1.6s cubic-bezier(.22,1,.36,1) .8s backwards}
.gr-tile.is-alert .gr-tico::after{content:"";position:absolute;inset:-4px;border-radius:19px;border:2px solid var(--c);animation:grRing 2.4s ease-out infinite}
.k-blue{--c:#2f6fb0;--cb:#e3eef9}.k-amber{--c:#b86e00;--cb:#fdf0d8}.k-green{--c:#1f8a5b;--cb:#e0f3e9}.k-red{--c:#c0392b;--cb:#fbe4e1}.k-sand{--c:#94672b;--cb:#f4eadc}.k-teal{--c:#fff;--cb:rgba(255,255,255,.18)}
.gr-tile.k-teal{background:linear-gradient(160deg,#2a8f88 0%,#1c6a6e 100%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 26px 38px -22px rgba(31,111,115,.9)}
.gr-tile.k-teal .gr-tico{box-shadow:none}
.gr-tile.k-teal .gr-tlbl,.gr-tile.k-teal .gr-tsub{color:rgba(255,255,255,.94)}
.gr-tile.k-teal .gr-tnum{color:#fff}
/* cartes */
.gr-row2{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:20px}
.gr-row3{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3fr);gap:20px}
.gr-card{position:relative;padding:22px 24px;border-radius:24px!important;background:#fff;border:0!important;box-shadow:inset 0 1px 0 #fff,0 24px 40px -30px rgba(22,49,79,.5),0 2px 8px rgba(22,49,79,.05)!important}
.gr-ch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.gr-ch h2{display:flex;align-items:center;gap:9px;margin:0;font-size:17px;font-weight:800;color:#16314f}
.gr-ch h2 .gr-ic{color:#2a8f88}
.gr-ch h2 em{font-style:normal;font-weight:600;color:#5b6b7f}
.gr-pill{font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;background:#e6f3f2;color:#1f6f73;white-space:nowrap}
.gr-tl{display:flex;flex-direction:column;padding-top:20px}
.gr-tl-scale{order:2;display:flex;justify-content:space-between;font-size:11.5px;font-weight:700;color:#5b6b7f;margin-top:7px}
.gr-tl-track{position:relative;height:calc(18px + var(--lanes,1) * 44px);border-radius:14px;background:repeating-linear-gradient(90deg,#f1f6f8 0 calc(20% - 1px),#e2ebef calc(20% - 1px) 20%)}
.gr-tl-ev{position:absolute;min-width:46px;padding:0 9px;border:0;border-radius:10px;box-sizing:border-box;display:grid;align-content:center;overflow:hidden;color:#fff;text-align:left;cursor:pointer;background:linear-gradient(120deg,#2a8f88,#57c4bc);box-shadow:0 10px 20px -10px rgba(42,143,136,.9);animation:grSlide 1.1s cubic-bezier(.22,1,.36,1) backwards;transform-origin:left}
.gr-tl-ev.st-demande{background:linear-gradient(120deg,#c27a00,#f0b040)}
.gr-tl-ev b,.gr-tl-ev small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-tl-ev b{font-size:12.5px}
.gr-tl-ev small{font-size:11px;opacity:.95}
.gr-tl-now{position:absolute;top:-6px;bottom:-6px;width:2px;margin-left:-1px;background:#c2185b;transition:left 1s;pointer-events:none;z-index:2}
.gr-tl-now::before{content:"";position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:#c2185b;animation:grPingPink 2s ease-out infinite}
.gr-tl-now span{position:absolute;top:-24px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:800;color:#c2185b;white-space:nowrap}
.gr-evs{display:grid;gap:10px;margin-top:16px}
.gr-ev{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:1px solid #e2ecee;border-radius:16px;background:#f7fbfb;text-align:left;cursor:pointer;transition:transform .25s,box-shadow .25s}
.gr-ev:hover{transform:translateY(-2px);box-shadow:0 12px 20px -14px rgba(22,49,79,.45)}
.gr-ev-ic{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;background:#e6f3f2;color:#1f6f73}
.gr-ev-t{flex:1;min-width:0;display:grid}
.gr-ev-t b{font-size:15px;color:#16314f}
.gr-ev-t small{font-size:13px;color:#5b6b7f}
.gr-empty{margin:18px 0 4px;color:#5b6b7f;font-size:14px;text-align:center}
.gr-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:end;height:150px;padding-top:10px}
.gr-bcol{display:grid;justify-items:center;align-content:end;gap:8px;height:100%}
.gr-bar{position:relative;width:100%;max-width:34px;border-radius:10px 10px 6px 6px;background:linear-gradient(180deg,#57c4bc,#2a8f88);box-shadow:0 10px 16px -10px rgba(42,143,136,.9);transform-origin:bottom;animation:grBar 1.1s cubic-bezier(.34,1.56,.64,1) backwards}
.gr-bar.today{background:linear-gradient(180deg,#f5b84a,#e08a00)}
.gr-bar.zero{background:#e3edf0;box-shadow:none}
.gr-bar em{position:absolute;top:-20px;left:0;right:0;text-align:center;font-style:normal;font-size:12px;font-weight:800;color:#16314f}
.gr-bcol small{font-size:12px;font-weight:700;color:#5b6b7f;white-space:nowrap}
button.gr-bcol{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}
button.gr-bcol:hover .gr-bar{filter:brightness(1.08)}
button.gr-bcol:focus-visible{outline:2px solid #57c4bc;outline-offset:3px;border-radius:10px}
.gr-sub-h{margin:18px 0 0;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#46566b}
.gr-evs.gr-evs-sm{gap:8px;margin-top:10px}
.gr-evs-sm .gr-ev{padding:9px 12px;gap:12px}
.gr-evs-sm .gr-ev-t b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-ev-day{align-content:center;gap:1px;line-height:1}
.gr-ev-day b{font-size:16px;font-weight:800;color:#16314f}
.gr-ev-day small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#1f6f73}
.gr-foot{margin:14px 0 0;font-size:14px;color:#5b6b7f}
.gr-foot b{color:#16314f}
.gr-stats{display:grid;gap:12px}
.gr-stat{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:0;border-radius:16px;background:#f7fbfb;text-align:left;cursor:pointer;transition:transform .25s,background .25s}
.gr-stat:hover{transform:translateX(3px);background:#eef6f6}
.gr-stat .si{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;background:#e6f3f2;color:#1f6f73}
.gr-stat>span:last-child{display:grid;min-width:0}
.gr-stat b{font-size:24px;font-weight:800;letter-spacing:-.02em;color:#16314f;font-variant-numeric:tabular-nums}
.gr-stat small{font-size:12.5px;color:#5b6b7f}
.gr-stat .k{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#46566b}
.gr-bilan{margin-top:14px;width:100%;height:46px;border:0;border-radius:14px;background:linear-gradient(120deg,#16314f,#1f5f6e);color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:transform .25s,box-shadow .25s}
.gr-bilan:hover{transform:translateY(-2px);box-shadow:0 14px 24px -12px rgba(22,49,79,.7)}
.gr-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.gr-month .wd{font-size:11px;font-weight:800;color:#5b6b7f;padding-bottom:4px}
.gr-day{position:relative;height:30px;padding:0;border:0;border-radius:9px;display:grid;place-items:center;font-size:12.5px;font-weight:600;color:#33445a;background:#f3f8f9;cursor:pointer;animation:grPop .5s cubic-bezier(.34,1.56,.64,1) backwards}
.gr-day:hover{background:#e3f1f0}
.gr-day.blank{background:transparent;animation:none;cursor:default}
.gr-day.dot::after{content:"";position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:#2a8f88}
.gr-day.today{background:#16314f;color:#fff;font-weight:800;box-shadow:0 0 0 3px rgba(87,196,188,.45);animation:grGlow 2.6s ease-in-out infinite}
.gr-day.today.dot::after{background:#9fe3dd}
.gr-dir{display:grid;gap:12px;align-content:start}
.gr-dir p{margin:0;font-size:14px;color:#5b6b7f}
.gr-big{font-size:52px;line-height:1;font-weight:800;letter-spacing:-.03em;color:#16314f;font-variant-numeric:tabular-nums}
.gr-avs{display:flex;padding-left:8px}
.gr-av{width:42px;height:42px;margin-left:-8px;border-radius:50%;border:3px solid #fff;display:grid;place-items:center;font-size:13px;font-weight:800;color:#fff;background:#2f6fb0;animation:grBob 4s ease-in-out infinite}
.gr-av:nth-child(2){background:#2a8f88;animation-delay:-1s}
.gr-av:nth-child(3){background:#b86e00;animation-delay:-2s}
.gr-av:nth-child(4){background:#c2185b;animation-delay:-3s}
.gr-av.more{background:#16314f;font-size:12px}
.gr-dir .gr-lnk{justify-self:start;padding-left:0}
.gr-docs{border-radius:24px!important}

/* ---------- 5. Animations ---------- */
@keyframes grRise{from{opacity:0;transform:perspective(900px) translateY(34px) rotateX(-20deg)}to{opacity:1;transform:none}}
@keyframes grMi{from{opacity:0;transform:translateX(-26px) rotateY(28deg)}to{opacity:1;transform:none}}
@keyframes grFlow{to{background-position:300% 0}}
@keyframes grBlob{0%{transform:translate(0,0) scale(1)}50%{transform:translate(60px,30px) scale(1.15)}100%{transform:translate(-30px,50px) scale(.9)}}
@keyframes grWave{to{transform:translateX(-50%)}}
@keyframes grBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes grDrift{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
@keyframes grRain{to{background-position:0 12px}}
@keyframes grPingPink{0%{box-shadow:0 0 0 0 rgba(194,24,91,.55)}80%,100%{box-shadow:0 0 0 12px rgba(194,24,91,0)}}
@keyframes grRing{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.55);opacity:0}}
@keyframes grGrow{from{width:0}}
@keyframes grBar{from{transform:scaleY(0)}}
@keyframes grSlide{from{transform:scaleX(0);opacity:0}}
@keyframes grPop{from{transform:scale(.4);opacity:0}}
@keyframes grGlow{0%,100%{box-shadow:0 0 0 3px rgba(87,196,188,.45)}50%{box-shadow:0 0 0 7px rgba(87,196,188,.15)}}
@keyframes grFloat{0%,100%{transform:rotateX(3deg) rotateY(-4deg)}50%{transform:rotateX(-2deg) rotateY(4deg)}}

/* ---------- 6. Tablettes et téléphones ---------- */
@media (hover:none){.gr-hero{animation:grFloat 9s ease-in-out infinite}}
@media (max-width:1180px){.gr-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.gr-row3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.gr-row3>.gr-dir{grid-column:1/-1}.gr-att{grid-template-columns:auto minmax(0,1fr)}.gr-att-list{grid-column:1/-1;justify-content:flex-start}}
@media (max-width:820px){.gr-hero{grid-template-columns:1fr;padding:26px 24px;gap:20px}.gr-hero-r{justify-content:flex-start}.gr-row2,.gr-row3{grid-template-columns:1fr}.gr-date{font-size:32px}}
@media (max-width:640px){
  .gr-dash-in{gap:16px}
  .gr-hero{padding:22px 20px;border-radius:26px;min-height:0}
  .gr-date{font-size:28px}
  .gr-hello{font-size:15px}
  .gr-chip{font-size:12px;padding:6px 10px}
  .gr-hero-r{gap:12px}
  .gr-wx{max-width:none;padding:12px 14px}
  .gr-temp{font-size:34px}
  .gr-logo{width:118px;padding:10px;border-radius:20px}
  .gr-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .gr-tile{min-height:150px;padding:16px;border-radius:22px}
  .gr-tnum{font-size:32px}
  .gr-tico{width:44px;height:44px}
  .gr-att{padding:14px 16px;gap:14px}
  .gr-att-badge{width:50px;height:50px;font-size:18px}
  .gr-alert{min-width:0;max-width:none;flex:1 1 100%;min-height:56px}
  .gr-card{padding:18px!important}
  .gr-bars{gap:6px}
  .gr-bcol small{font-size:11px}
  .gr-tl-scale span:nth-child(2n){visibility:hidden}
  .gr-ch{flex-wrap:wrap;row-gap:4px}
  .gr-ch h2 em{display:none}
  .gr-links{margin-left:auto}
  body:not(.gsn-emp) .sidebar{width:284px}
  body.gr-menu-open:not(.gsn-emp) .main{transform:perspective(1400px) translateX(284px) scale(.82) rotateY(16deg);border-radius:34px}
}
@media (max-width:380px){.gr-hero-r{flex-wrap:wrap}.gr-logo{display:none}}
}

/* ---------- 7. Mouvement réduit (réglage de l'appareil) ---------- */
@media (prefers-reduced-motion:reduce){
  .gr-dash *,.gr-dash *::before,.gr-dash *::after,body:not(.gsn-emp) .topbar::after,body:not(.gsn-emp) .sidebar .gr-mi{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .gr-hero,.gr-tile{transform:none!important}
  body.gr-menu-open:not(.gsn-emp) .main{transform:none;border-radius:0;box-shadow:none;filter:none}
  body:not(.gsn-emp) .main{transition:none}
}
@media print{.gr-hero-bg,.gr-glare,.gr-pulse{display:none!important}.gr-rise,.gr-dash *{animation:none!important}}

/* ---------- 8. v7.30 — carte « Aujourd'hui » : la frise suit le nombre de locations simultanées ----------
   Avant : 3 couloirs au plus ; à partir de la 4e location en même temps, les barres sortaient du graphique et
   recouvraient la liste en dessous (téléphone, tablette et ordinateur). Désormais un couloir par location
   simultanée, plus fins au-delà de 4 (34 px) et de 6 (28 px) ; la liste montre 4 lignes, puis « Voir les autres ». */
.gr-tl-track{height:calc(18px + var(--lanes,1) * var(--lh,44px))}
.gr-tl.dense .gr-tl-ev small{display:none}
.gr-tl.dense .gr-tl-ev b{font-size:11.5px}
.gr-evs-plus>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px;border:1px dashed #c9dde1;border-radius:16px;background:#f7fbfb;color:#1f6f73;font-weight:700;font-size:14px}
.gr-evs-plus>summary::-webkit-details-marker{display:none}
.gr-evs-plus>summary::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.gr-evs-plus[open]>summary{margin-bottom:10px}
.gr-evs-plus[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.gr-evs-plus>.gr-evs{margin-top:0}
html.gsn-va .gr-evs-plus>summary{background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
@media (max-width:560px){
  .gr-ev{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;row-gap:6px;padding:10px 12px}
  .gr-ev>.gr-ev-ic{width:36px;height:36px;grid-row:span 2;align-self:start}
  .gr-ev>.badge{grid-column:2;justify-self:start}
  .gr-ev-t b{font-size:14.5px}
  .gr-tl-ev{padding:0 6px}
}
