/*
 * ============================================================================
 *  Module    : Cloud of Things – FloodWatch (Sup'Com 2026-2027)
 *  Couche    : front-end
 *  Fichier   : frontoffice/css/citizen.css
 *  Équipe    : FloodWatch (Guesmi Baderddine, Ksontini Amine, Kamoun Ahmed)
 *  Auteur    : Kamoun Ahmed
 *  Créé le   : 2026-11-03          Modifié le : 2026-11-03
 *  Version   : 1.0
 * ============================================================================
 *  Charte de la PWA Citoyen, chargée après shared/css/charte.css.
 *  Partie 1 : feuille citizen.css de la maquette Figma, sans @layer et sans les styles de
 *  la page d'accueil (le Citoyen est servi directement à la racine du site).
 *  Partie 2 (en fin de fichier) : adaptation à Leaflet et éléments propres aux données réelles.
 * ============================================================================
 */

/* ============================================================================ partie 1 : maquette */
body[data-application='accueil'],body[data-application='citoyen'],body[data-application='pilotage']{min-width:320px;background:#f5f8fb}
.citizen-shell{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:100vh;display:flex;flex-direction:column;background:#f8fafc;box-shadow:none;overflow:hidden;--c-blue:#0b4f8a;--c-muted:#687e93}
.c-header{height:75px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff;border-bottom:1px solid #e5ebf2;z-index:20}
.c-header-brand-wrap{display:flex;align-items:center;gap:12px}
.c-header .brand{font-size:22px;padding:0;gap:7px}
.c-header .brand>div:last-child>span{display:none}
.c-header .brand-mark>svg:first-child{width:29px}
.c-header .brand-droplet{left:11px}
.c-header .brand-wave{left:5px}
.c-app-name{font-size:8px;font-weight:650;letter-spacing:1px;border-left:1px solid #dce5ef;color:#6c87a0;padding:5px 0 5px 10px}
.c-header-nav{display:flex;align-items:center;gap:6px}
.c-header-nav>button{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;font-size:13px;font-weight:500;color:#60758b;transition:background .15s,color .15s}
.c-header-nav>button:hover{background:#f1f5f9;color:#0b4f8a}
.c-header-nav>button.active{background:#edf4fb;color:#0b4f8a;font-weight:600}
.c-header-nav>button>b{background:#d9444d;color:#fff;font-size:10px;font-weight:700;padding:1px 6px;border-radius:10px;margin-left:2px}
.c-header-actions{display:flex;align-items:center;gap:12px}
.c-header-switch{height:42px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid #e4ebf2;border-radius:8px;color:#55718a;font-size:12px;font-weight:500;background:#fff;transition:background .15s,border-color .15s}
.c-header-switch:hover{background:#f8fafc;border-color:#cbd5e1;color:#0b4f8a}
.c-header-switch-text{display:inline}

@media (max-width: 900px) {
  .c-header{padding:0 18px;height:65px}
  .c-header-nav{display:none}
  .c-header-switch{width:42px;padding:0;justify-content:center}
  .c-header-switch-text{display:none}
}

/* En mode grand écran, les pages Alertes, Favoris, Paramètres et Détail se centrent avec largeur moderne */
.c-page,.c-detail{max-width:1100px;width:100%;margin:0 auto;padding:32px 32px 40px}
@media (min-width: 901px) {
  .c-bottom-nav{display:none}
  .c-favorites-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .c-settings{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
  .c-settings>.c-eyebrow,.c-settings>.c-page-title,.c-settings>.c-page-intro{grid-column:1 / -1}
  .c-settings>.c-about-button,.c-settings>.c-settings-footer{grid-column:1 / -1}
  .c-detail{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}
  .c-detail>.c-back,.c-detail>.c-detail-heading,.c-detail>.c-safety-card{grid-column:1 / -1}
  .c-detail>.c-button,.c-detail>.c-data-disclaimer{grid-column:1 / -1;max-width:400px;margin-left:auto;margin-right:auto}
}

/* Onboarding en plein écran propre et centré */
.c-onboarding{width:100%;height:100%;max-width:760px;margin:0 auto;padding:0 24px}
.c-onboarding-slides{max-width:540px;margin:0 auto}
.c-onboarding-bottom{max-width:540px;width:100%;margin:0 auto}
.c-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dce5ee transparent}.c-content.is-map{overflow:hidden;position:relative}.c-bottom-nav{height:77px;padding:7px 9px max(9px,env(safe-area-inset-bottom));flex-shrink:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e7edf3;z-index:25;box-shadow:0 -5px 20px #143e5e04}.c-bottom-nav>button{min-height:54px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#8091a3}.c-tab-icon{position:relative;display:grid;place-items:center;width:45px;height:28px;border-radius:8px}.c-bottom-nav>button.active{color:#0b4f8a;font-weight:650}.c-bottom-nav>button.active .c-tab-icon{background:#eef4fb}.c-bottom-nav>button>i{width:4px;height:4px;border-radius:50%;background:#0b4f8a;position:absolute;bottom:-3px}.c-tab-icon>b{position:absolute;top:-2px;right:6px;min-width:13px;height:13px;padding:0 3px;background:#d9444d;border:2px solid #fff;border-radius:8px;font-size:7px;color:white;display:grid;place-items:center;font-weight:600}
.c-eyebrow{font-size:8px;letter-spacing:1.2px;color:#7690a6;font-weight:600;display:block}
.c-button{width:100%;min-height:51px;border:1px solid #0b4f8a;background:#0b4f8a;color:white;border-radius:10px;padding:13px 16px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:550;transition:background .15s}.c-button:hover{background:#073e6e}.c-button.secondary{background:#f5f9fd;border-color:#d8e5f1;color:#0b4f8a}.c-button.secondary:hover{background:#eaf2fa}
.c-onboarding{display:flex;flex-direction:column;height:100%;background:#fff;overflow-y:auto}.c-onboarding>header{display:flex;justify-content:space-between;align-items:center;padding:25px 21px 15px}.c-onboarding header .brand{padding:0;font-size:22px}.c-onboarding header .brand>div:last-child>span{display:none}.c-skip{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;min-height:44px;padding:5px 0 5px 15px;color:#68829a}
.c-onboarding-slides{flex:1;display:flex;flex-direction:column;justify-content:center;touch-action:pan-y;padding:8px 26px 0}.c-permission-art{height:248px;position:relative;display:grid;place-items:center;isolation:isolate;margin-bottom:12px}.c-orbit{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #e2edf5;border-radius:50%;z-index:-1}.orbit-1{height:160px;width:160px;background:#f0f6fc}.orbit-2{height:214px;width:214px}.orbit-3{height:266px;width:266px;border-style:dashed;border-color:#eaf0f6}.c-permission-main{width:110px;height:110px;display:grid;place-items:center;background:#0b4f8a;color:white;border:6px solid white;box-shadow:0 4px 20px #0b4f8a16;border-radius:30px;transform:rotate(-5deg)}.c-permission-main>svg{transform:rotate(5deg)}.c-art-float{position:absolute;width:45px;height:45px;display:grid;place-items:center;background:white;border:1px solid #e3edf3;box-shadow:0 5px 15px #2c577616;border-radius:13px;color:#64a990}.float-one{left:31px;top:49px;transform:rotate(-10deg);color:#4a8bb4}.float-two{right:23px;bottom:47px;transform:rotate(10deg)}.step-1 .float-one{color:#0b4f8a}.step-2 .float-one{color:#dd9758}
.c-onboarding-copy{text-align:center;animation:c-fade .25s ease}.c-onboarding-copy .c-eyebrow{font-size:7px;letter-spacing:.9px}.c-onboarding-copy h1{font-size:25px;font-weight:650;letter-spacing:-.9px;line-height:1.4;margin-top:13px;color:#263f56}.c-onboarding-copy>p{font-size:12px;line-height:1.9;color:#72879a;margin:16px auto 0;max-width:320px}.c-permission-result{display:flex;align-items:flex-start;gap:8px;text-align:left;background:#edf5fc;border-radius:8px;padding:11px;margin-top:12px;font-size:10px;line-height:1.6;color:#4f7598}.c-permission-result>svg{flex-shrink:0}
.c-onboarding-bottom{padding:21px 26px 24px}.c-slide-dots{display:flex;justify-content:center;gap:4px;margin:0 0 20px}.c-slide-dots>button{position:relative;width:28px;height:28px}.c-slide-dots>button:after{content:'';position:absolute;width:6px;height:6px;background:#d8e4ef;border-radius:4px;left:11px;top:11px;transition:width .2s}.c-slide-dots>button.active:after{width:21px;background:#0b4f8a;left:3px}.c-text-action{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:11px;color:#6c849a;min-height:46px;margin-top:3px}.c-onboarding-note{display:flex;justify-content:center;align-items:center;gap:6px;font-size:8px;color:#869bad;margin-top:21px}
.c-map-home{height:100%;position:relative;background:#e9ece5;overflow:hidden}.c-map-home>.map{height:100%;min-height:0}.c-map-home .map-art{opacity:.92}.c-map-home .map-region{display:none}.c-map-home .map-controls{right:16px;top:186px;bottom:auto;border-radius:9px}.c-map-home .map-controls .icon-button{width:37px;height:37px}.c-map-home .map-scale,.c-map-home .map-credit{bottom:284px;font-size:7px}.c-map-home .map-credit{display:none}.c-map-home .map-marker{padding:8px}.c-map-home .marker-core{width:32px;height:32px;box-shadow:0 2px 8px #27434330}.citizen-road-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.c-map-home .map-marker:after{content:'';position:absolute;inset:-1px}.c-map-home .map-marker{z-index:6}
.citizen-position{position:absolute;z-index:7;width:22px;height:22px;border-radius:50%;background:#3d83c326;border:1px solid #4c92c833;display:grid;place-items:center;transform:translate(-50%,-50%);box-shadow:0 0 0 10px #3d83c315}.citizen-position>span{width:12px;height:12px;background:#2376bc;border:2px solid white;border-radius:50%;box-shadow:0 1px 4px #16466430}.citizen-position>b{position:absolute;left:50%;top:27px;transform:translateX(-50%);font-size:8px;font-weight:600;background:white;border:1px solid #dee8ee;padding:3px 5px;border-radius:4px;color:#3e6c94}
.c-map-top{position:absolute;left:17px;right:17px;top:17px;z-index:8;pointer-events:none}.c-map-top>*{pointer-events:auto}.c-map-search{display:flex;align-items:center;gap:11px;background:white;border:1px solid #e3e8ed;border-radius:12px;box-shadow:0 3px 10px #1c4a6510;padding:4px 13px;min-height:52px;color:#6f879d}.c-map-search input{border:0;border-radius:0;padding:10px 0;font-size:13px;flex:1;min-width:0;background:white;color:#29465e}.c-map-search>span{border-left:1px solid #e4ebf0;padding-left:11px;display:flex;color:#0b4f8a}.c-map-search>button{height:40px;width:28px;display:grid;place-items:center}.c-map-context{display:flex;justify-content:space-between;align-items:center;margin:12px 5px 10px;font-size:9px;color:#5c7688;text-shadow:0 1px 4px white}.c-map-context>span{display:flex;align-items:center;gap:4px}.c-map-context>span:last-child{background:white;border:1px solid #d7e5dc;padding:5px 7px;border-radius:5px;color:#35885f;font-size:8px}.c-map-context>span>span{width:4px;height:4px;border-radius:50%;background:#3b9a70}.c-map-alert{display:flex;align-items:center;gap:8px;background:#fff9f9;border:1px solid #f0dadd;border-radius:9px;min-height:43px;width:100%;padding:9px 12px;color:#b14a50;font-size:10px;box-shadow:0 2px 7px #2f495607}.c-map-alert strong{font-weight:600}.c-map-alert>svg:last-child{margin-left:auto}
.c-floating-map-actions{position:absolute;left:16px;right:16px;bottom:281px;display:flex;justify-content:space-between;align-items:center;z-index:8;gap:12px;pointer-events:none}.c-floating-map-actions>*{pointer-events:auto}.c-legend-toggle{display:flex;gap:6px;align-items:center;min-height:38px;padding:10px;border:1px solid #e2e8eb;border-radius:8px;background:white;box-shadow:0 2px 6px #21444e0a;font-size:8px;color:#617c8f}.c-legend-toggle>svg{margin-left:4px;color:#8aa0af}.c-road-line{width:14px;height:3px;border-radius:2px;background:#16a34a}.c-road-line.closed{background:repeating-linear-gradient(90deg,#dc2626 0 5px,transparent 5px 7px);margin-left:4px}.c-locate{height:44px;width:44px;border-radius:11px;display:grid;place-items:center;background:white;border:1px solid #dfe7ed;box-shadow:0 2px 6px #21444e0a;color:#0b4f8a}.c-map-legend{position:absolute;bottom:331px;left:16px;right:68px;z-index:10;background:white;border:1px solid #e3eaf0;box-shadow:0 4px 20px #26455e20;border-radius:11px;padding:14px;display:flex;flex-wrap:wrap;gap:7px}.c-map-legend>div{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.c-map-legend strong{font-size:11px;font-weight:600}.c-map-legend button{width:30px;height:30px;display:grid;place-items:center;color:#71869a}.c-map-legend p{font-size:8px;line-height:1.7;color:#8598a9;margin-top:5px}
.c-nearby-sheet{position:absolute;bottom:0;left:0;right:0;height:265px;max-height:76%;background:white;border-radius:20px 20px 0 0;z-index:12;box-shadow:0 -5px 24px #26445c10;display:flex;flex-direction:column;transition:height .25s}.c-nearby-sheet.expanded{height:570px}.c-sheet-handle{height:25px;flex-shrink:0;width:100%;display:grid;place-items:center;touch-action:none}.c-sheet-handle>span{width:32px;height:4px;border-radius:4px;background:#dce3eb}.c-sheet-heading{display:flex;justify-content:space-between;align-items:center;padding:2px 21px 13px;flex-shrink:0}.c-sheet-heading h1{font-size:17px;font-weight:650;letter-spacing:-.5px;display:flex;gap:7px;align-items:center;color:#283f54}.c-sheet-heading h1>span{font-size:9px;color:#8294a7;background:#f0f4f8;border:1px solid #e8edf3;border-radius:4px;padding:2px 5px;font-weight:500}.c-sheet-heading p{font-size:9px;color:#8196a9;margin-top:5px}.c-sheet-heading>button{height:40px;width:35px;display:grid;place-items:center;color:#7b92a5}.c-nearby-list{overflow-y:auto;min-height:0;overscroll-behavior:contain}.c-point-row{display:flex;align-items:center;gap:11px;text-align:left;padding:15px 20px;min-height:73px;width:100%;border-top:1px solid #edf1f5}.c-point-row:hover{background:#f8fbfd}.c-point-icon{height:36px;width:36px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:#edf7f2;color:#368968}.c-point-icon.red{background:#fff0f0;color:#cf4a51}.c-point-icon.orange{background:#fff4e9;color:#c77735}.c-point-icon.yellow{background:#fbf8e7;color:#9f8527}.c-point-icon.offline{background:#f1f4f7;color:#8a99a8}.c-point-copy{flex:1;min-width:0}.c-point-copy>strong{display:block;font-size:11px;font-weight:600;letter-spacing:-.15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334b60}.c-road-status{display:flex;align-items:center;gap:4px;color:#388362;font-size:9px;margin-top:6px;white-space:nowrap}.c-road-status.red{color:#c8464e}.c-road-status.orange{color:#b7692d}.c-road-status.yellow{color:#957923}.c-road-status.offline{color:#7b8c9f}.c-point-distance{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;font-size:9px;color:#6f879b;white-space:nowrap;position:relative;padding-right:14px}.c-point-distance>svg:last-child{position:absolute;right:-6px;top:50%;transform:translateY(-50%);color:#a2afbc}.c-point-distance>svg:first-child:not(:last-child){color:#8ba4ba}.c-see-all{width:100%;flex:1;min-height:35px;border-top:1px solid #edf1f5;display:flex;gap:7px;align-items:center;justify-content:center;color:#4e789b;font-size:9px;background:#fbfcfe}.c-empty-small{text-align:center;padding:25px;color:#7f96ab;font-size:11px}.c-empty-small>svg{margin:auto auto 10px}
.c-page,.c-detail{padding:25px 20px 24px}.c-page-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.c-page-title h1{font-size:27px;font-weight:650;letter-spacing:-1.1px;line-height:1.3;color:#273f55}.c-page-title h1>span{color:#3f8ebc}.c-page-title>svg{color:#8da3b6}.c-page-intro{font-size:11px;line-height:1.9;color:#71879b;margin-top:9px;margin-bottom:23px}.c-live{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #dcece2;background:#f0f9f4;border-radius:5px;color:#38855f;font-size:8px}.c-live>span{width:4px;height:4px;border-radius:50%;background:#3da272;animation:pulse 2s infinite}.c-radius-note{display:flex;align-items:center;gap:9px;padding:13px;border:1px solid #dfe9f2;border-radius:9px;background:#f0f6fc;color:#5b7c99;font-size:10px;width:100%;min-height:46px}.c-radius-note strong{font-weight:600}.c-radius-note>svg:last-child{margin-left:auto;color:#7d9ab3}.c-feed-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#7e95aa;margin:25px 0 13px;font-weight:550}.c-feed-label>span{letter-spacing:0;font-size:9px;font-weight:400}.c-feed-card{display:block;text-align:left;width:100%;padding:16px;background:white;border:1px solid #e6ecf2;border-radius:12px;margin-bottom:12px;position:relative;overflow:hidden}.c-feed-card:before{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;background:#c6d0dc;border-radius:0 3px 3px 0}.c-feed-card.red:before{background:#dc6268}.c-feed-card.orange:before{background:#edaa73}.c-feed-card.yellow:before{background:#dac16d}.c-feed-top{display:flex;justify-content:space-between;align-items:center}.c-feed-top>span:last-child{font-size:9px;color:#91a0b0}.c-feed-card h2{font-size:13px;font-weight:600;line-height:1.6;color:#334b61;margin-top:12px;letter-spacing:-.2px}.c-feed-card>p{font-size:10px;color:#7f91a4;line-height:1.8;margin-top:6px}.c-feed-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef2f6;margin-top:14px;padding-top:11px;font-size:9px;color:#7590a6}.c-feed-bottom>span{display:flex;align-items:center;gap:5px}.c-data-disclaimer{font-size:9px;color:#8195a9;line-height:1.8;text-align:center;margin-top:19px;padding:0 6px}
.c-favorite-counter{display:flex;align-items:center;gap:7px;font-size:11px;color:#7594af;background:#eef4fa;border:1px solid #e0eaf3;border-radius:7px;padding:7px 10px}.c-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:51px 10px 35px;color:#7c99b0}.c-empty-icon{height:84px;width:84px;display:grid;place-items:center;border:1px solid #dce9f5;background:#edf4fb;border-radius:24px;color:#6e94b6;transform:rotate(-5deg);margin-bottom:6px}.c-empty-icon>svg{transform:rotate(5deg)}.c-empty h2{font-size:18px;font-weight:600;letter-spacing:-.6px;color:#3d586f;margin-top:24px}.c-empty p{font-size:11px;line-height:1.9;max-width:270px;margin:13px 0 27px;color:#7c90a3}.c-empty .c-button{font-size:12px;max-width:280px}.c-favorite-tip{display:flex;align-items:flex-start;gap:10px;background:#eef4f9;border:1px solid #e1eaf2;border-radius:9px;padding:15px;margin-top:22px;color:#65829b}.c-favorite-tip>svg{flex-shrink:0}.c-favorite-tip p{font-size:10px;line-height:1.8}.c-favorite-card{background:white;border:1px solid #e2eaf2;border-radius:12px;overflow:hidden;margin-bottom:13px}.c-favorite-card .c-point-row{border:0;padding:17px 15px}.c-favorite-card-bottom{display:flex;justify-content:space-between;align-items:center;padding:0 14px 2px 16px;border-top:1px solid #eef2f5;font-size:8px;color:#8197aa}.c-favorite-card-bottom>span{display:flex;gap:5px;align-items:center}.c-favorite-card-bottom>button{height:40px;width:40px;display:grid;place-items:center;color:#749aba}.c-add-favorite{min-height:51px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;border:1px dashed #cfdeec;border-radius:9px;color:#5a7e9e;background:#f4f8fc;margin-top:20px;padding:12px}
.c-panel{border:1px solid #e2eaf2;border-radius:12px;padding:17px;background:white;margin-bottom:16px}.c-panel h2{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#405b72}.c-panel h2>svg{color:#7698b5}.c-panel>p{font-size:10px;line-height:1.8;color:#7a90a4;margin-top:9px}.c-radius-settings h2>strong{font-size:13px;margin-left:auto;color:#0b4f8a;font-weight:600}.c-radius-settings input{margin-top:23px;margin-bottom:15px;height:6px}.c-range-labels{display:flex;justify-content:space-between;color:#7a91a7;font-size:9px}.c-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;border-top:1px solid #edf1f5}.c-toggle-row:first-of-type{margin-top:12px}.c-toggle{width:40px;height:24px;min-width:40px;position:relative;border:0;border-radius:20px;background:#d7e1ea;transition:background .2s}.c-toggle:after{content:'';position:absolute;inset:-10px 0}.c-toggle>span{position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%;box-shadow:0 1px 3px #163e5d16;transition:translate .2s}.c-toggle.checked{background:#0b4f8a}.c-toggle.checked>span{translate:16px 0}.c-offline-settings>.c-toggle-row{border-top:0;margin:0;min-height:29px}.c-offline-settings .c-toggle-row>span{display:flex;align-items:center;gap:8px;font-size:11px;color:#637e94}.c-offline-settings .c-toggle-row strong{font-weight:550}.c-offline-settings>p{margin-top:13px}.c-position-settings>button{display:flex;align-items:center;gap:7px;font-size:10px;color:#43739b;border-top:1px solid #edf1f5;margin-top:13px;padding-top:10px;min-height:38px;width:100%}.c-position-settings>button>svg:last-child{margin-left:auto}.c-about-button{display:flex;gap:10px;align-items:center;min-height:54px;width:100%;border:1px solid #e2eaf1;border-radius:10px;padding:13px 16px;background:white;margin-bottom:12px;color:#7391a9;font-size:11px}.c-about-button>span{flex:1;text-align:left;color:#57738b}.c-settings-footer{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;color:#8298ac;margin:30px 0 0}.c-settings-footer strong{font-size:10px;font-weight:500}.c-settings-footer span{font-size:8px;color:#8ca0b3}
.c-offline-banner{display:flex;align-items:center;gap:8px;padding:11px 16px;color:#566474;background:#e8ecf0;border-bottom:1px solid #dce2e8;font-size:9px;line-height:1.7;z-index:21;flex-shrink:0}.c-offline-banner strong{font-weight:650}.c-offline-banner>svg{flex-shrink:0}.is-offline .c-live{color:#718396;background:#eef1f4;border-color:#d9e0e7}.is-offline .c-live>span,.is-offline .c-map-context>span>span{background:#8d99a4;animation:none}
.c-back{display:flex;align-items:center;gap:7px;min-height:40px;font-size:10px;color:#708ca4;margin:-10px 0 13px}.c-detail-heading{margin-bottom:22px}.c-detail-heading .c-eyebrow{font-size:8px;letter-spacing:.8px}.c-detail-heading h1{font-size:25px;font-weight:650;letter-spacing:-.8px;line-height:1.4;margin-top:9px;color:#2b4358}.c-station-code{display:flex;align-items:center;gap:5px;font-size:9px;color:#8a9bae;margin-top:10px}.c-safety-card{display:flex;align-items:center;gap:12px;border-radius:11px;border:1px solid #dceee3;background:#eff8f3;color:#36845e;padding:17px 15px;margin-bottom:19px}.c-safety-card>span{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#e3f3e9}.c-safety-card strong{display:block;font-size:15px;font-weight:650;letter-spacing:-.4px}.c-safety-card p{font-size:10px;line-height:1.7;margin-top:5px}.c-safety-card.red{background:#fff1f1;border-color:#f1d6d9;color:#ba3c45}.c-safety-card.red>span{background:#fde2e5}.c-safety-card.orange{background:#fff6ed;border-color:#f1e0cf;color:#ac662c}.c-safety-card.orange>span{background:#fcead9}.c-safety-card.yellow{background:#fbf8e9;border-color:#ece5c5;color:#927b27}.c-safety-card.yellow>span{background:#f4edcf}.c-safety-card.offline{background:#edf1f5;border-color:#dfe5ec;color:#667d91}.c-safety-card.offline>span{background:#e1e7ee}.c-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.c-panel-heading .badge{font-size:8px;padding:4px 6px}.c-water-value{display:flex;align-items:baseline;justify-content:space-between;margin-top:21px;margin-bottom:18px}.c-water-value>strong{font-size:36px;letter-spacing:-1.4px;font-weight:650;color:#284c6a;line-height:1.2}.c-water-value small{font-size:17px;font-weight:450;color:#91a1b1;letter-spacing:0}.c-water-value>span{font-size:10px;color:#7e94a7}.c-level-gauge{height:8px;border-radius:7px;background:linear-gradient(90deg,#41a772 0% 30%,#ddbb39 30% 60%,#f2984e 60% 85%,#dd5a63 85%);position:relative}.c-gauge-cursor{position:absolute;top:-5px;width:4px;height:18px;border:1px solid white;border-radius:3px;background:#253e56;box-shadow:0 0 0 2px #ffffffb0;transform:translateX(-50%)}.c-gauge-labels{display:flex;justify-content:space-between;font-size:8px;color:#849aad;margin-top:10px}.c-prediction{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf1f5;margin-top:23px;padding-top:17px}.c-prediction>span{display:flex;align-items:center;gap:6px;font-size:9px;color:#7b91a5}.c-prediction strong{font-size:13px;font-weight:600;color:#476a87;white-space:nowrap}.c-measure-time{display:flex;align-items:center;gap:5px;font-size:8px!important;color:#8599ac!important;line-height:1.7!important;margin-top:14px!important}.c-advice>p{font-size:11px;line-height:1.9;margin-top:13px}.c-advice ul{list-style:none;padding:0;margin:14px 0}.c-advice li{font-size:10px;line-height:1.9;color:#70899f;padding-left:12px;position:relative;margin-bottom:5px}.c-advice li:before{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:#8ba8bf;left:0;top:8px}.c-advice>a{display:flex;align-items:center;gap:7px;font-size:10px;color:#5d809d;border-top:1px solid #edf1f5;padding-top:13px;min-height:35px}.c-advice>a>strong{margin-left:auto;font-size:16px;color:#0b4f8a;font-weight:650}.c-advice>a>svg:last-child{margin-left:7px}
.c-push-banner{position:absolute;top:13px;left:12px;right:12px;z-index:60;background:#fff9f9f5;border:1px solid #efd0d4;box-shadow:0 5px 30px #1538492b;border-radius:14px;padding:14px 11px;display:flex;align-items:center;gap:10px;backdrop-filter:blur(16px);animation:c-slide-in .3s ease}.c-push-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fce5e7;color:#c84c55;flex-shrink:0}.c-push-banner>button:nth-child(2){flex:1;text-align:left;min-width:0}.c-push-banner button>span{display:block;font-size:7px;letter-spacing:.5px;color:#a16f76}.c-push-banner strong{display:block;font-size:11px;color:#a93d46;font-weight:600;line-height:1.5;margin-top:5px}.c-push-banner small{display:block;font-size:9px;color:#a0757b;margin-top:5px;line-height:1.5}.c-push-close{height:32px;width:25px;color:#b48b92;align-self:flex-start;display:grid;place-items:center;flex-shrink:0}.c-notice{position:absolute;left:15px;right:15px;bottom:91px;z-index:65;display:flex;align-items:center;gap:9px;border:1px solid #d8e6f1;background:#f4f9ffff;box-shadow:0 4px 18px #183f6019;padding:13px;border-radius:11px;color:#577a97;font-size:10px;line-height:1.7;animation:c-slide-in .2s ease}.c-notice>svg{flex-shrink:0}.c-notice>span{flex:1}.c-notice>button{width:27px;height:32px;flex-shrink:0;display:grid;place-items:center}
.c-about-backdrop{position:absolute;inset:0;z-index:80;background:#1c354b60;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:21px}.c-about-dialog{position:relative;padding:28px 23px;background:white;border:1px solid #dce7f0;border-radius:17px;box-shadow:0 10px 40px #14354e25;color:#71899d}.c-about-close{position:absolute;right:9px;top:9px;height:38px;width:38px;display:grid;place-items:center;color:#8aa0b2}.c-about-dialog>svg{color:#0b4f8a}.c-about-dialog h2{font-size:19px;font-weight:600;letter-spacing:-.5px;color:#34536e;margin-top:17px}.c-about-dialog p{font-size:11px;line-height:1.9;margin-top:15px}.c-about-dialog>a{display:flex;align-items:center;gap:8px;font-size:12px;color:#0b4f8a;padding:15px 0;margin:7px 0}.c-about-dialog .c-button{font-size:12px}
@keyframes c-fade{from{opacity:0;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}
@keyframes c-slide-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.gateway-main{padding-top:50px}}
@media(max-width:1200px){.gateway-footer{margin:0 45px}.gateway-main{padding-top:30px}}
@media(max-width:800px){.gateway-header{padding:0 27px;height:82px}.gateway-region{font-size:10px}.gateway-pilot{display:none}.gateway-main{padding:26px 23px}.gateway-intro h1{font-size:35px}.gateway-intro p{font-size:11px}.gateway-card-art{height:171px}.gateway-card-copy{padding:21px 20px 0}.gateway-card-copy h2{font-size:21px}.gateway-card-copy>p{font-size:11px}.choice-topline{font-size:7px;letter-spacing:.7px}.choice-features{gap:10px;margin-top:17px;margin-bottom:18px}.choice-features>span{font-size:8px}.choice-cta{font-size:10px;padding:17px 0}.art-console{width:270px;height:147px;top:14px}.console-kpis b{font-size:14px}.console-kpis small{font-size:4px}.art-mobile{width:165px;top:20px}.art-mobile-map{height:58px}.art-tag{font-size:7px;bottom:9px;left:10px}.gateway-trust p{font-size:9px}.gateway-trust p>span{font-size:8px}.gateway-live{font-size:8px}.gateway-footer{margin:0 26px;font-size:8px}}
@media(max-width:580px){.gateway-header{padding:0 22px;height:81px}.gateway-header .brand{font-size:22px;padding:0}.gateway-header .brand>div:last-child>span{font-size:6px;letter-spacing:1.5px}.gateway-region{font-size:0;gap:0}.gateway-region>svg{width:17px}.gateway-region:after{content:'Grand Tunis';font-size:9px;margin-left:4px}.gateway-main{padding:31px 21px 18px}.gateway-intro{text-align:left;margin-bottom:28px}.gateway-eyebrow{font-size:7px;letter-spacing:1.3px;margin-bottom:17px}.gateway-intro h1{font-size:34px;letter-spacing:-1.45px;line-height:1.25}.gateway-intro p{font-size:11px;line-height:1.9;margin-top:17px}.gateway-intro p br{display:none}.gateway-cards{grid-template-columns:1fr;gap:21px}.gateway-card{border-radius:14px}.gateway-card-art{height:178px}.gateway-card-copy{padding:20px 20px 0}.gateway-card-copy h2{font-size:23px;margin-top:10px}.choice-topline{font-size:7px;letter-spacing:1.05px}.gateway-card-copy>p{font-size:11px;min-height:0;margin-top:9px;line-height:1.85}.choice-features{margin-top:16px;margin-bottom:19px;gap:15px}.choice-features>span{font-size:8px}.choice-cta{font-size:11px;min-height:55px}.art-mobile{top:21px;width:174px}.art-mobile-map{height:67px}.art-console{width:282px;height:148px;top:15px}.art-place.tunis{font-size:14px}.pin-two{right:44px;top:24px}.pin-one{left:33px;top:46px}.pin-three{left:75px;bottom:22px}.gateway-trust{gap:10px;margin-top:23px;padding:18px 0}.gateway-trust>svg{flex-shrink:0}.gateway-trust strong{line-height:1.8;font-size:9px}.gateway-trust p>span{font-size:8px;line-height:1.9}.gateway-live{display:none}.gateway-footer{margin:0 22px;flex-direction:column;gap:10px;padding:17px 0 23px;font-size:8px}.citizen-shell{width:100%;box-shadow:none}.c-header{height:70px;padding:0 17px}.c-page,.c-detail{padding-left:18px;padding-right:18px}.c-onboarding-slides{padding-left:23px;padding-right:23px}.c-permission-art{height:225px}.c-onboarding-copy h1{font-size:24px}.c-onboarding-copy>p{font-size:12px}.c-onboarding-bottom{padding-bottom:23px}.c-onboarding>header{padding-top:18px}.c-point-copy>strong{font-size:11px}.c-point-row{padding-left:18px;padding-right:18px}}

@media (min-width: 901px) {
  .c-map-top {
    left: 28px;
    right: auto;
    top: 24px;
    width: 420px;
    z-index: 15;
  }
  .c-nearby-sheet {
    left: 28px;
    right: auto;
    bottom: 24px;
    top: 160px;
    width: 420px;
    height: auto;
    max-height: calc(100% - 184px);
    border-radius: 16px;
    box-shadow: 0 10px 30px #183a5416;
    border: 1px solid #e1e9f0;
  }
  .c-nearby-sheet.expanded {
    height: auto;
    max-height: calc(100% - 184px);
  }
  .c-sheet-handle {
    display: none;
  }
  .c-floating-map-actions {
    left: auto;
    right: 28px;
    bottom: 28px;
  }
  .c-map-home .map-controls {
    right: 28px;
    top: 24px;
  }
  .c-map-legend {
    left: auto;
    right: 28px;
    bottom: 84px;
    width: 320px;
  }
}
@media(max-height:740px){.c-onboarding-slides{padding-top:0}.c-permission-art{height:173px;margin-bottom:8px}.orbit-1{height:123px;width:123px}.orbit-2{height:164px;width:164px}.orbit-3{height:204px;width:204px}.c-permission-main{height:93px;width:93px;border-radius:25px}.c-permission-main>svg{height:55px;width:55px}.float-one{top:22px;left:39px}.float-two{right:35px;bottom:24px}.c-onboarding-copy h1{font-size:22px}.c-onboarding-copy>p{font-size:11px;margin-top:10px}.c-onboarding-bottom{padding-top:10px;padding-bottom:15px}.c-onboarding-note{margin-top:13px}.c-slide-dots{margin-bottom:11px}.c-map-home .map-controls{top:171px}.c-nearby-sheet{height:249px;max-height:80%}.c-floating-map-actions{bottom:264px}.c-sheet-heading{padding-bottom:9px}.c-point-row{min-height:66px;padding-top:12px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.gateway-card,.c-nearby-sheet,.c-toggle,.c-toggle>span{transition:none}.c-push-banner,.c-notice,.c-onboarding-copy{animation:none}}
.citizen-shell .c-page-intro,.citizen-shell .c-page .c-eyebrow,.citizen-shell .c-data-disclaimer,.citizen-shell .c-sheet-heading p,.citizen-shell .c-point-distance,.citizen-shell .c-feed-top>span:last-child,.citizen-shell .c-feed-card>p,.citizen-shell .c-feed-bottom,.citizen-shell .c-panel>p,.citizen-shell .c-onboarding-copy>p,.citizen-shell .c-onboarding-note,.citizen-shell .c-bottom-nav>button:not(.active),.citizen-shell .c-station-code,.citizen-shell .c-gauge-labels{color:#60758b}
.citizen-shell .badge.yellow,.citizen-shell .c-road-status.yellow{color:#806815}
.citizen-shell .badge.orange,.citizen-shell .c-road-status.orange{color:#a65b22}
.c-toggle{width:44px;min-width:44px}.c-toggle.checked>span{translate:20px}
.c-push-banner.orange{background:#fffaf4;border-color:#eedac6}.c-push-banner.orange strong{color:#a85d24}.c-push-banner.orange .c-push-icon{background:#fcebdc;color:#bd783c}
.c-push-banner.yellow{background:#fffdf3;border-color:#eae0b8}.c-push-banner.yellow strong{color:#806815}.c-push-banner.yellow .c-push-icon{background:#f4edcf;color:#9b822b}
.c-onboarding>header>button:first-child{min-height:44px}
.c-gauge-labels{display:block;position:relative;height:12px}
.c-gauge-labels>span{position:absolute;left:0;transform:translateX(-50%)}
.c-gauge-labels>span:first-child{transform:none}
.c-gauge-labels>span:last-child{left:100%;transform:translateX(-100%)}
.c-map-home .map-controls .icon-button{height:44px;width:44px}
.c-map-home .map-controls .icon-button:last-child{display:none}

/* ============================================================================ partie 2 : application réelle */
/* Carte Leaflet à la place de la carte schématique : elle occupe tout l'espace sous les surcouches. */
.c-map-home>.map .leaflet-container,.c-map-home>.map.leaflet-container{height:100%}
.c-map-home .leaflet-bottom.leaflet-right{bottom:262px}
.c-map-home .leaflet-control-attribution{font-size:8px}
.c-nearby-sheet.expanded~.leaflet-bottom{display:none}

/* Onglets (boutons) et pastilles de présence */
.c-header-switch{text-decoration:none}
.c-live.paused,.c-map-context>span.paused{color:#af782a;background:#fff6e8;border-color:#f1dfc3}
.c-live.paused>span,.c-map-context>span.paused>span{background:#e0a03a}
[hidden]{display:none!important}

/* Chargement initial */
.c-loading{height:100%;display:grid;place-content:center;justify-items:center;gap:12px;color:#6c8299;font-size:12px}
.c-loading>svg{color:#0b4f8a;animation:pulse 1.6s infinite}

/* Mode démonstration */
.c-demo-banner{display:flex;align-items:center;gap:8px;padding:9px 16px;background:#edf4fa;color:#3f6a92;font-size:10px;border-bottom:1px solid #d7e5f2;flex-shrink:0}
.c-demo-banner a{margin-left:auto;font-weight:600;text-decoration:underline}

/* Règle des notifications (lecture seule, alignée sur le serveur) */
.c-rule-row{min-height:44px}
.c-rule{display:flex;align-items:center;gap:6px;font-size:10px;color:#8a9aab;text-align:right}
.c-rule.on{color:#2d7d5b;font-weight:550}

/* Bandeau d'alerte : variantes orange et fin d'alerte (la maquette ne prévoyait que le rouge) */
.c-push-banner.orange{background:#fffaf4f5;border-color:#f3dcc0}
.c-push-banner.orange strong{color:#b35a17}
.c-push-banner.orange button>span,.c-push-banner.orange small{color:#a07a58}
.c-push-banner.green{background:#f5fbf8f5;border-color:#cfe8da}
.c-push-banner.green strong{color:#26795a}
.c-push-banner.green button>span,.c-push-banner.green small{color:#5f8c78}

/* Correction de la maquette : sur grand écran, la navigation est dans l'en-tête ; une règle plus
   loin dans la feuille d'origine réaffichait aussi la barre du bas (navigation en double). */
@media (min-width: 901px) { .c-bottom-nav { display: none; } }
