:root{
  /* Palette accessible sombre (contraste élevé) */
  --bg: #0b0f0d;
  --surface: #101614;
  --card: #121b17;
  --card2: rgba(18,27,23,.88);

  --text: #eef6f1;        /* texte principal */
  --muted: #c2d1c7;       /* texte secondaire (plus clair qu’avant) */
  --subtle: #93a79a;      /* petits textes */
  --line: rgba(255,255,255,.12);

  --accent: #7ee2b8;
  --accent2: #9ad9a0;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --max: 980px;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
/* Thème clair */
:root[data-theme="light"]{
  --bg: #f6fbf8;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: rgba(255,255,255,.92);

  --text: #0b1410;
  --muted: #33483f;
  --subtle: #51665c;
  --line: rgba(0,0,0,.10);

  --accent: #137a57;
  --accent2: #0f6a4d;

  --shadow: 0 14px 40px rgba(0,0,0,.08);
}


*{ box-sizing:border-box; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(126,226,184,.12), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(126,226,184,.08), transparent 60%),
    var(--bg);
  line-height:1.5;
}
a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }


.container{
  width:min(100%, var(--max));
  margin:0 auto;
  padding:18px;
}

.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,13,.65);
  border-bottom:1px solid var(--line);
  z-index: 10;
}

.header-inner{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* ===== BRAND HEADER ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* LOGO */
.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}

/* TEXTE */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TITRE */
.brand-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

/* SOUS-TITRE */
.brand-sub {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.2;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 13px;
  }
}

.brand-title{ font-weight:800; letter-spacing:.2px; }
.brand-sub{ color:var(--muted); font-size:13px; margin-top:2px; }

.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(17,24,21,.55);
}
.nav a.active{
  border-color: rgba(126,226,184,.35);
  box-shadow: 0 0 0 3px rgba(126,226,184,.08);
}
.nav a:hover{ text-decoration:none; }

.card{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  margin:14px 0;
}

h1{ font-size:26px; margin:0 0 10px; }
h2{ font-size:18px; margin:0 0 10px; }
.muted{ color:var(--muted); }

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(11,15,13,.35);
  cursor:pointer;
}
.btn.primary{
  background: rgba(126,226,184,.14);
  border-color: rgba(126,226,184,.35);
}
.btn:hover{ text-decoration:none; }

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(126,226,184,.08);
  font-size:13px;
}

.site-footer{
  border-top:1px solid var(--line);
  margin-top:24px;
}
.site-footer small{ color:var(--muted); display:block; padding:18px; text-align:center; }
.brand-logo-img {
  height: 48px;
  width: auto;
  border-radius: 12px;
}
.calendar {
  margin-top: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-title {
  font-weight: 800;
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  min-height: 64px;
  border-radius: 12px;
  padding: 8px;
  background: rgba(11,15,13,.35);
  border: 1px solid var(--line);
  position: relative;
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

.calendar-day-number {
  font-weight: 700;
  font-size: 13px;
}

.dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.dechets { background: #ccc; }
.dot.recyclage { background: #7ee2b8; }
.dot.compost { background: #9ad9a0; }
.dot.grosrebuts { background: #aaa; }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
}

.legend-item {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,15,13,.35);
}
.info-box{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(126,226,184,.06);
}
.info-title{
  font-weight: 800;
  margin-bottom: 6px;
}
.info-text{
  color: var(--muted);
  font-size: 14px;
}
/* Popup (bulle) */
.popup{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
  pointer-events: none;
}
.popup.open{ display:block; }

.popup-card{
  position: absolute;
  width: min(92vw, 420px);
  background: rgba(17,24,21,.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  pointer-events: auto;
}

.popup-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.popup-title{ font-weight: 900; font-size: 16px; }
.popup-subtitle{ font-size: 13px; margin-top:2px; }

.popup-body{
  display:grid;
  gap: 10px;
  margin: 10px 0;
}

/* On garde tes info-box déjà ajoutés */
/* Jour aujourd’hui */
.calendar-day.today{
  border-color: rgba(126,226,184,.6);
  box-shadow:
    0 0 0 2px rgba(126,226,184,.15),
    inset 0 0 0 1px rgba(126,226,184,.35);
}

.calendar-day.today .calendar-day-number{
  color: #7ee2b8;
  font-weight: 900;
}

/* Petit point discret “aujourd’hui” */
.calendar-day.today::after{
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee2b8;
}
/* Lisibilité globale */
html, body { color: var(--text); }
body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(126,226,184,.14), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(126,226,184,.10), transparent 60%),
    var(--bg);
}

a{ color: var(--accent); }
a:hover{ color: #b7f3d9; }

.muted{ color: var(--muted); }
small, .subtle { color: var(--subtle); }

/* Surfaces */
.site-header{
  background: rgba(11,15,13,.78);
  border-bottom: 1px solid var(--line);
}

.card{
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer{
  border-top: 1px solid var(--line);
}

/* Boutons (évite texte noir) */
.btn{
  color: var(--text);
  background: rgba(16,22,20,.55);
  border: 1px solid var(--line);
}
.btn:hover{
  background: rgba(16,22,20,.75);
  border-color: rgba(126,226,184,.25);
}
.btn.primary{
  color: var(--text);
  background: rgba(126,226,184,.18);
  border-color: rgba(126,226,184,.35);
}

/* Navigation */
.nav a{
  color: var(--text);
  background: rgba(16,22,20,.55);
  border: 1px solid var(--line);
}
.nav a.active{
  border-color: rgba(126,226,184,.45);
  box-shadow: 0 0 0 3px rgba(126,226,184,.10);
}

/* Calendrier : force le texte en clair */
.calendar-title{ color: var(--text); }
.calendar-day{
  color: var(--text);
  background: rgba(16,22,20,.55);
  border: 1px solid var(--line);
  position: relative;
}
.calendar-day-number{ color: var(--text); }
.dow{ color: var(--muted); }

/* Popup : force texte clair */
.popup-card{
  color: var(--text);
  background: rgba(18,27,23,.96);
  border: 1px solid var(--line);
}
.popup-title{ color: var(--text); }
.popup-subtitle{ color: var(--muted); }

/* Info boxes : lisibles */
.info-box{
  background: rgba(126,226,184,.08);
  border: 1px solid rgba(126,226,184,.18);
}
.info-title{ color: var(--text); }
.info-text{ color: var(--muted); }

/* Sélection texte (petit bonus agréable) */
::selection{
  background: rgba(126,226,184,.25);
}
/* Fix lisibilité calendrier en mode clair */
:root[data-theme="light"] .calendar-day{
  background: rgba(19,122,87,.08);   /* clair, vert doux */
  border-color: rgba(0,0,0,.10);
  color: var(--text);
}

:root[data-theme="light"] .calendar-day-number{
  color: var(--text);
}
:root[data-theme="light"] .calendar-day.today{
  border-color: rgba(19,122,87,.55);
  box-shadow:
    0 0 0 2px rgba(19,122,87,.10),
    inset 0 0 0 1px rgba(19,122,87,.25);
}

:root[data-theme="light"] .calendar-day.today::after{
  background: var(--accent);
}
/* ============================
   HEADER – MODE CLAIR
============================ */

:root[data-theme="light"] .site-header{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Logo + texte */
:root[data-theme="light"] .brand-title{
  color: var(--text);
}
:root[data-theme="light"] .brand-sub{
  color: var(--muted);
}

/* Navigation */
:root[data-theme="light"] .nav a{
  background: rgba(19,122,87,.08);
  color: var(--text);
  border: 1px solid rgba(0,0,0,.08);
}

:root[data-theme="light"] .nav a:hover{
  background: rgba(19,122,87,.15);
}

:root[data-theme="light"] .nav a.active{
  background: rgba(19,122,87,.20);
  border-color: rgba(19,122,87,.45);
  box-shadow: 0 0 0 3px rgba(19,122,87,.12);
}

/* Bouton clair/sombre */
:root[data-theme="light"] #themeToggle{
  background: rgba(19,122,87,.15);
  color: var(--text);
  border: 1px solid rgba(19,122,87,.35);
}

:root[data-theme="light"] #themeToggle:hover{
  background: rgba(19,122,87,.25);
}
/* Header: effet au scroll */
.site-header.is-scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Mode sombre: un peu plus opaque au scroll */
.site-header.is-scrolled{
  background: rgba(11,15,13,.90);
}

/* Mode clair: un peu plus opaque au scroll */
:root[data-theme="light"] .site-header.is-scrolled{
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
/* Popup en mode clair : carte claire + texte lisible */
:root[data-theme="light"] .popup-card{
  background: rgba(255,255,255,.96);
  color: var(--text);
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* Titres + sous-titres */
:root[data-theme="light"] .popup-title{ color: var(--text); }
:root[data-theme="light"] .popup-subtitle{ color: var(--muted); }

/* Pastilles d'info dans la popup */
:root[data-theme="light"] .event-pill{
  background: rgba(19,122,87,.06);
  border-color: rgba(0,0,0,.08);
}

:root[data-theme="light"] .info-box{
  background: rgba(19,122,87,.08);
  border-color: rgba(19,122,87,.18);
}

/* Boutons dans la popup */
:root[data-theme="light"] .popup-card .btn{
  background: rgba(19,122,87,.10);
  border-color: rgba(19,122,87,.20);
  color: var(--text);
}
:root[data-theme="light"] .popup-card .btn:hover{
  background: rgba(19,122,87,.16);
}
/* ============================
   Popup – fond flouté (overlay)
============================ */

.popup{
  background: rgba(0,0,0,.18); /* sombre par défaut */
  backdrop-filter: blur(8px);
}

/* Mode clair : overlay plus doux */
:root[data-theme="light"] .popup{
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
}
.popup-card{
  animation: popupIn .18s ease-out;
}

@keyframes popupIn{
  from{
    transform: translateY(8px) scale(.98);
    opacity: 0;
  }
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
/* =========================
   Assistant (Collecto+)
   ========================= */

.assistant-layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}
@media (max-width: 900px){
  .assistant-layout{ grid-template-columns: 1fr; }
}

.card-soft{
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.h3{ font-size: 1.05rem; margin: 12px 0 8px; color: var(--text); }

.chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border: 1px solid var(--line);
  background: rgba(126,226,184,.10); /* léger accent compatible sombre */
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
}
:root[data-theme="light"] .chip{
  background: rgba(19,122,87,.08);
}
.chip:hover{ filter: brightness(1.05); }

.note{
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Chat */
.assistant-chat{ display: grid; gap: 10px; }

.chat-log{
  height: 360px;
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.msg{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  line-height: 1.35;
  white-space: pre-wrap;
  color: var(--text);
  border: 1px solid var(--line);
}

.msg.user{
  margin-left: auto;
  background: rgba(126,226,184,.16);
}
:root[data-theme="light"] .msg.user{
  background: rgba(19,122,87,.12);
}

.msg.bot{
  margin-right: auto;
  background: var(--card);
}

.chat-input{ display:flex; gap:10px; }
.chat-input input{
  flex:1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.chat-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.btn-ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
/* ================= HEADER UNIFIÉ ================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.25)
  );
  backdrop-filter: blur(12px);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Marque */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.brand-title{
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-sub{
  font-size: .85rem;
  opacity: .8;
}

/* Navigation */
.nav{
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav a{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight: 600;
}

.nav a.active{
  border-color: rgba(126,226,184,.6);
  box-shadow: 0 0 0 3px rgba(126,226,184,.18);
}

/* Bouton thème stable */
#themeToggle{
  white-space: nowrap;
}
/* =========================
   Collecto+ — Patch "moins terne"
   Colle ceci TOUT EN BAS du styles.css
   ========================= */

/* 1) Fix variable card */
.card{ background: var(--card2); }

/* 2) Couleur de marque plus vivante */
:root{
  --accent: #39C58A;   /* vert plus vivant */
  --accent2:#7EE2B8;
}

/* 3) Fond sombre : moins noir, plus profond */
body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(57,197,138,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(126,226,184,.12), transparent 60%),
    linear-gradient(180deg, #0d1511 0%, #0b0f0d 55%, #0b0f0d 100%);
}

/* 4) Cartes : plus “premium”, moins tristounes */
.card{
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

/* 5) Boutons : plus clairs et plus “app” */
.btn{
  background: rgba(255,255,255,.05);
}
.btn.primary{
  background: linear-gradient(180deg, rgba(57,197,138,.22), rgba(57,197,138,.14));
  border-color: rgba(57,197,138,.45);
}

/* 6) Header : enlève le “tout noir” et ajoute une vibe douce */
.site-header{
  background: rgba(12,18,15,.72);
}

/* =========================
   MODE CLAIR — plus chaleureux
   ========================= */
:root[data-theme="light"]{
  --bg: #F4FAF6;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: rgba(255,255,255,.96);

  --text: #0b1410;
  --muted: #2f453c;
  --subtle: #4e665c;
  --line: rgba(0,0,0,.08);

  --accent: #137A57;
  --accent2: #39C58A;

  --shadow: 0 14px 34px rgba(0,0,0,.08);
}
/* ☀️ MODE CLAIR — VERT DOUX (#C4D4B5) */

body {
  background-color: #C4D4B5;
  color: #24332a;
}

/* Cartes */
.card,
.card-soft {
  background-color: #d6e2c9;
  border: 1px solid #b6c7a5;
}

/* Texte secondaire */
.muted,
.brand-sub {
  color: #5f6f63;
}

/* Boutons */
.btn {
  background-color: #a9c49a;
  color: #1f2a22;
}

/* Header */
.site-header {
  background-color: #C4D4B5;
  border-bottom: 1px solid #b6c7a5;
}

/* Fond clair plus doux (pas blanc clinique) */
:root[data-theme="light"] body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(19,122,87,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(57,197,138,.08), transparent 60%),
    var(--bg);
}

/* Cartes en clair : plus “air” */
:root[data-theme="light"] .card{
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* Navigation clair : plus “pill” agréable */
:root[data-theme="light"] .nav a{
  background: rgba(19,122,87,.06);
  border-color: rgba(0,0,0,.08);
}
:root[data-theme="light"] .nav a:hover{
  background: rgba(19,122,87,.10);
}

/* Pastilles calendrier : un peu plus vivantes */
.dot.dechets { background: #B7BCC2; }
.dot.grosrebuts { background: #8E9399; }
.dot.recyclage { background: var(--accent2); }
.dot.compost { background: #7BD36A; }
/* =========================
   Collecto+ — Mode sombre plus lumineux (forêt douce)
   Colle ceci TOUT EN BAS du styles.css
   ========================= */

/* Mode sombre : on remonte la luminosité */
:root{
  --bg: #0f1a14;                 /* moins noir */
  --surface: rgba(255,255,255,.04);
  --card: rgba(255,255,255,.05);
  --card2: rgba(255,255,255,.06);

  --line: rgba(255,255,255,.14);
  --shadow: 0 14px 34px rgba(0,0,0,.22);

  --accent: #39C58A;             /* vert vivant */
  --accent2:#7EE2B8;
}

/* Fond plus lumineux + plus “eco” */
body{
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(57,197,138,.22), transparent 55%),
    radial-gradient(700px 420px at 85% 10%, rgba(126,226,184,.14), transparent 60%),
    linear-gradient(180deg, #102018 0%, #0f1a14 55%, #0f1a14 100%);
}

/* Header : plus clair, moins bloc noir */
.site-header{
  background: rgba(16,32,24,.72);
  border-bottom: 1px solid var(--line);
}

/* Cartes : plus de contraste (elles ressortent mieux) */
.card{
  background: var(--card2);
  border-color: rgba(255,255,255,.12);
}

/* Navigation : plus claire */
.nav a{
  background: rgba(255,255,255,.06);
}

/* Boutons : plus “luminaires” */
.btn{
  background: rgba(255,255,255,.06);
}
.btn.primary{
  background: linear-gradient(180deg, rgba(57,197,138,.28), rgba(57,197,138,.16));
  border-color: rgba(57,197,138,.55);
}

/* Calendrier : cases plus lisibles */
.calendar-day{
  background: rgba(255,255,255,.05);
}

/* =========================
   Mode clair : encore plus “papier”
   ========================= */
:root[data-theme="light"]{
  --bg: #F5FBF7;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: rgba(255,255,255,.96);
  --line: rgba(0,0,0,.08);
}
/* =========================
   Collecto+ — Pastilles plus vert clair
   ========================= */

/* Recyclage : vert clair principal */
.dot.recyclage{
  background: #7ED9B5;   /* vert menthe doux */
}

/* Compost : vert clair tirant jaune */
.dot.compost{
  background: #9FE28C;   /* vert feuille */
}

/* Déchets : gris très pâle (moins lourd) */
.dot.dechets{
  background: #D3D9D6;
}

/* Gros rebuts : gris-vert doux */
.dot.grosrebuts{
  background: #BFCBC4;
}
/* =========================
   Collecto+ — Pastilles FINALES ultra lumineuses
   ========================= */

/* ♻️ Recyclage — menthe très claire, fraîche */
.dot.recyclage{
  background: #E8FBF4;
}

/* 🌱 Compost — vert soleil doux */
.dot.compost{
  background: #ECFBDD;
}

/* 🗑️ Déchets — gris très lumineux (propre) */
.dot.dechets{
  background: #F0F4F2;
}

/* 🛋️ Gros rebuts — gris-vert clair */
.dot.grosrebuts{
  background: #EAF1ED;
}

/* Lisibilité + finesse */
.dot{
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.035),
    0 1px 2px rgba(0,0,0,.04);
}
/* Icônes de collecte dans les cases du calendrier */
.day-icons{
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.day-icon{
  font-size: 14px;
  line-height: 1;
  opacity: .95;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.10);
}
:root[data-theme="light"] .day-icon{
  background: rgba(0,0,0,.05);
}
.sector-map{
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* =====================================================
   Collecto+ — Papier peint naturel (clair & sombre)
   ===================================================== */

/* Base commune */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 15% 20%, rgba(47,163,122,.08), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(126,217,181,.06), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(47,163,122,.05), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(126,217,181,.05), transparent 45%);

  opacity: .9;
}

/* 🌤️ MODE CLAIR */
html[data-theme="light"] body{
  background-color: #F1F6F3;
}

html[data-theme="light"] body::before{
  opacity: .7;
}

/* 🌙 MODE SOMBRE — VERT PERSONNALISÉ (#326B46) */

body.dark {
  background-color: #3f7a55;   /* version éclaircie de ton vert */
  color: #eef7f1;
}

/* Cartes */
body.dark .card,
body.dark .card-soft {
  background-color: #4f8f68;
  border: 1px solid #5fa678;
}

/* Texte secondaire */
body.dark .muted,
body.dark .brand-sub {
  color: #d2e6da;
}

/* Boutons */
body.dark .btn {
  background-color: #5fa678;
  color: #ffffff;
}

/* Header */
body.dark .site-header {
  background-color: #3f7a55;
  border-bottom: 1px solid #5fa678;
}

/* Effet texture légère */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.015) 0,
      rgba(255,255,255,.015) 1px,
      transparent 1px,
      transparent 6px
    );
}
/* =====================================================
   Fond teinté selon le secteur choisi
   ===================================================== */

/* Valeur par défaut si rien n'est choisi */
:root{
  --sectorTint: rgba(126,226,184,.10);  /* vert doux */
}

/* 4-5 (lundi) : violet doux */
:root[data-sector="secteur-4"],
:root[data-sector="secteur-5"]{
  --sectorTint: rgba(170, 120, 255, .14);
}

/* 1 Est + 3 (mardi) : vert doux */
:root[data-sector="secteur-1-est"],
:root[data-sector="secteur-3"]{
  --sectorTint: rgba(47,163,122,.14);
}

/* 1 Ouest + 2 (mercredi) : orange doux */
:root[data-sector="secteur-1-ouest"],
:root[data-sector="secteur-2"]{
  --sectorTint: rgba(255, 170, 80, .14);
}

/* Applique la teinte dans le papier peint (clair + sombre) */
body::before{
  background:
    radial-gradient(circle at 14% 18%, var(--sectorTint), transparent 38%),
    radial-gradient(circle at 86% 22%, var(--sectorTint), transparent 42%),
    radial-gradient(circle at 30% 82%, var(--sectorTint), transparent 46%),
    radial-gradient(circle at 72% 78%, var(--sectorTint), transparent 46%);
}
/* =========================
   MODAL (popup calendrier)
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal.open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0 auto;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-title { font-weight: 900; font-size: 16px; }
.modal-subtitle { font-size: 13px; margin-top: 2px; }

.modal-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* ===== Couleurs des types de collecte dans le modal ===== */

.collection-recyclage {
  color: #22c55e;
}

.collection-compost {
  color: #8b5e3c;
}

.collection-dechets {
  color: #3b82f6;
}

.collection-grosrebuts {
  color: #f59e0b;
}

/* ===== Icônes du calendrier ===== */

.day-icons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.day-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.day-icon.recyclage {
  color: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.18);
}

.day-icon.compost {
  color: #8b5e3c;
  box-shadow: 0 0 10px rgba(139,94,60,0.20);
}

.day-icon.dechets {
  color: #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,0.18);
}

.day-icon.grosrebuts {
  color: #f59e0b;
  box-shadow: 0 0 10px rgba(245,158,11,0.18);
}
.calendar-legend .legend-item.dechets {
  color: #3b82f6;
}

.calendar-legend .legend-item.recyclage {
  color: #22c55e;
}

.calendar-legend .legend-item.compost {
  color: #8b5e3c;
}

.calendar-legend .legend-item.grosrebuts {
  color: #f59e0b;
}
.calendar-day.has-recyclage {
  box-shadow: 0 0 18px rgba(34,197,94,0.15);
}

.calendar-day.has-compost {
  box-shadow: 0 0 18px rgba(139,94,60,0.18);
}

.calendar-day.has-dechets {
  box-shadow: 0 0 18px rgba(33, 38, 46, 0.15);
}

.calendar-day.has-grosrebuts {
  box-shadow: 0 0 18px rgba(245,158,11,0.18);
}
/* ============================= */
/* Carte prochaine collecte */
/* ============================= */

.next-pickup-card{
  background:linear-gradient(
    145deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );

  backdrop-filter: blur(12px);

  border-radius:18px;

  padding:22px;

  margin-bottom:18px;

  border:1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.next-pickup-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}

.next-pickup-icon{
  width:54px;
  height:54px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;

  border-radius:14px;

  background:rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);

  border:1px solid rgba(255,255,255,0.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 4px 10px rgba(0,0,0,0.25);
}

.next-pickup-label{
  margin:0;
  font-size:13px;
  opacity:0.7;
}

.next-pickup-body p{
  margin:6px 0;
  font-size:14px;
}
#nextPickupType{
  font-size:20px;
  font-weight:600;
  letter-spacing:0.3px;
}
.next-pickup-highlight{
  position: relative;
  border: 1px solid rgba(110, 231, 183, 0.88);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.20),
    0 0 14px rgba(110, 231, 183, 0.22),
    inset 0 0 12px rgba(110, 231, 183, 0.08);
  transform: scale(1.015);
  animation: nextPickupPulse 2.6s ease-in-out infinite;
}

.next-pickup-highlight::after{
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.14);
  animation: nextPickupGlow 2.6s ease-in-out infinite;
}

@keyframes nextPickupPulse{
  0%{
    transform: scale(1.015);
    box-shadow:
      0 0 0 1px rgba(110, 231, 183, 0.20),
      0 0 14px rgba(110, 231, 183, 0.22),
      inset 0 0 12px rgba(110, 231, 183, 0.08);
  }
  50%{
    transform: scale(1.03);
    box-shadow:
      0 0 0 1px rgba(110, 231, 183, 0.30),
      0 0 24px rgba(110, 231, 183, 0.34),
      inset 0 0 18px rgba(110, 231, 183, 0.12);
  }
  100%{
    transform: scale(1.015);
    box-shadow:
      0 0 0 1px rgba(110, 231, 183, 0.20),
      0 0 14px rgba(110, 231, 183, 0.22),
      inset 0 0 12px rgba(110, 231, 183, 0.08);
  }
}

@keyframes nextPickupGlow{
  0%{
    opacity: 0.65;
    box-shadow: 0 0 16px rgba(110, 231, 183, 0.12);
  }
  50%{
    opacity: 1;
    box-shadow: 0 0 26px rgba(110, 231, 183, 0.22);
  }
  100%{
    opacity: 0.65;
    box-shadow: 0 0 16px rgba(110, 231, 183, 0.12);
  }
}
.calendar-day{
  overflow: hidden;
}
.install-cta{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-left:12px;
}

.install-text{
  margin:0;
  font-size:12px;
  color:rgba(255,255,255,0.75);
}
.reminder-box{
  margin:16px 0 8px 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.reminder-box button{
  width:fit-content;
}
/* ============================= */
/* À propos — style spécial */
/* ============================= */

.hero-about {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(
    180deg,
    rgba(22, 53, 43, 0.12),
    rgba(22, 53, 43, 0.02)
  );
  border: 1px solid rgba(22, 53, 43, 0.1);
}

.hero-about h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-about p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: auto;
}

/* cartes de la page */
main.container section.card {
  margin-top: 20px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* effet subtil */
main.container section.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* titres */
main.container h2 {
  margin-bottom: 12px;
}

/* liste */
main.container ul {
  padding-left: 20px;
}

main.container ul li {
  margin-bottom: 6px;
}
/* ============================= */
/* Carte interactive des secteurs */
/* ============================= */

.sector-map-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 18px auto 0;
}

.sector-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.sector-hotspot {
  position: absolute;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-hotspot:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.sector-hotspot.active {
  background: var(--sector-accent-strong);
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 3px var(--sector-accent);
}


/* Positions approximatives V1 */
.sector-1-ouest {
  left: 20%;
  top: 23%;
  width: 18%;
  height: 20%;
}

.sector-1-est {
  left: 34%;
  top: 10%;
  width: 16%;
  height: 18%;
}

.sector-2 {
  left: 30%;
  top: 52%;
  width: 22%;
  height: 22%;
}

.sector-3 {
  left: 55%;
  top: 28%;
  width: 22%;
  height: 28%;
}
.sector-4 {
  left: 36%;
  top: 40%;
  width: 10%;
  height: 10%;
}

.sector-5 {
  left: 42%;
  top: 27%;
  width: 10%;
  height: 10%;
}

/* ============================= */
/* Couleur dynamique par secteur */
/* ============================= */

:root {
  --sector-accent: rgba(255,255,255,0.12);
  --sector-accent-strong: rgba(255,255,255,0.22);
  --sector-surface: rgba(255,255,255,0.03);
}

html[data-sector-color="orange"] {
  --sector-accent: rgba(245,176,65,0.30);
  --sector-accent-strong: rgba(245,176,65,0.55);
  --sector-surface: rgba(245,176,65,0.10);
}

html[data-sector-color="vert"] {
  --sector-accent: rgba(88,214,141,0.28);
  --sector-accent-strong: rgba(88,214,141,0.52);
  --sector-surface: rgba(88,214,141,0.10);
}

html[data-sector-color="violet"] {
  --sector-accent: rgba(165,105,189,0.28);
  --sector-accent-strong: rgba(165,105,189,0.52);
  --sector-surface: rgba(165,105,189,0.10);
}
.next-pickup-card,
#calendrier.card,
#carte-secteurs.card {
  border-color: var(--sector-accent-strong);
  background: linear-gradient(
    180deg,
    var(--sector-surface),
    rgba(255,255,255,0.02)
  );
}
.about-section {
  font-family: "Segoe UI", "Segoe UI Variable", system-ui, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.about-section h1,
.about-section h2 {
  margin-top: 24px;
}

.about-section ul {
  padding-left: 20px;
}

.cta-pro {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.municipality-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 24px;
  padding: 12px 16px;
}

.municipality-banner__text h2 {
  margin: 0 0 6px;
}

.municipality-banner__text p {
  margin: 0;
}
.municipality-banner__crest {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}
/* ===== HEADER CLEAN V2 ===== */

.site-header{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}

.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.site-header .brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.site-header .brand-logo{
  width:56px;
  height:56px;
}

.site-header .brand-title{
  font-size:22px;
  font-weight:800;
}

.site-header .brand-sub{
  font-size:14px;
  color:var(--muted);
}

.site-header .nav a{
  background: transparent !important;
  border-radius:999px;
  padding:10px 14px;
}

.site-header .header-actions{
  display:flex;
  gap:10px;
}

.site-header .btn{
  background:#fff !important;
  border-radius:999px;
}

.site-header .btn-primary{
  background: rgba(126,226,184,.14) !important;
  border-color: rgba(126,226,184,.35);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #40514a;
}

.calendar-weekdays div {
  padding: 8px 4px;
}
body.dark .site-header,
body.dark .site-header .brand-title,
body.dark .site-header .brand-sub,
body.dark .site-header .btn,
body.dark .site-header .btn-ghost,
body.dark .site-header button,
body.dark .site-header a {
  color: #f5f7f6;
}

body.dark .site-header .brand-sub {
  opacity: 0.85;
}
body.dark,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark p,
body.dark .muted,
body.dark .card,
body.dark .hero,
body.dark .hero-title,
body.dark .hero-subtitle,
body.dark .next-card,
body.dark .next-card h2,
body.dark .next-card p,
body.dark .site-header,
body.dark .site-header .brand-title,
body.dark .site-header .brand-sub,
body.dark .site-header .btn,
body.dark .site-header .btn-ghost,
body.dark .site-header button,
body.dark .site-header a {
  color: #f5f7f6;
}

body.dark .muted,
body.dark .site-header .brand-sub,
body.dark .hero-subtitle,
body.dark .next-card p {
  color: rgba(245, 247, 246, 0.82);
}
body.dark .next-pickup-card,
body.dark .next-pickup-card h2,
body.dark .next-pickup-card h3,
body.dark .next-pickup-card p,
body.dark .municipality-card,
body.dark .municipality-card h2,
body.dark .municipality-card h3,
body.dark .municipality-card p,
body.dark .calendar,
body.dark .calendar h2,
body.dark .calendar h3,
body.dark .calendar p,
body.dark .calendar label,
body.dark .calendar-title,
body.dark #monthLabel,
body.dark #grosRebutsCard,
body.dark #grosRebutsCard h2,
body.dark #grosRebutsCard h3,
body.dark #grosRebutsCard p,
body.dark section.card h2,
body.dark section.card h3,
body.dark section.card p,
body.dark section.card label {
  color: #eef7f1 !important;
}
body.dark::before {
  opacity: 0.18 !important;
}
body.dark::before {
  background: none !important;
}
#themeToggle {
  min-width: 120px;
  font-weight: 600;
}

body.dark #themeToggle {
  background: #fff7f0;
  color: #2f3a34;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

:root[data-theme="light"] #themeToggle,
body:not(.dark) #themeToggle {
  background: #ffffff;
  color: #2f3a34;
  border: 1px solid #1f1f1f;
}