/* APRÈS (fixé) */
.icone-degrade {
  background: linear-gradient(45deg, #1E3A8A, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* ← empêcher la fuite vers les enfants */
  isolation: isolate;
}       
.sec { display: none !important; }
.sec.on { display: block !important; }
#sec-assistant.on { display: flex !important; }

#sec-ecoles {
  width: 100%;           /* Mobile d'abord : 100% */
  margin-top: 0px;
  margin-left: auto;
  margin-right: auto;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box; 
  padding: 0 10px;       /* Petit souffle pour que ça ne colle pas aux bords sur mobile */
}
/* --- Cacher tout le bloc compteur sur mobile (écrans < 768px) --- */
@media (max-width: 768px) {
  #topbar-visitors {
    display: none !important; /* Le !important sécurise le masquage face à d'autres styles flex/grid */
  }
}        

/* À partir de 768px (tablettes et plus), on passe à 80% */
@media (min-width: 768px) {
  #sec-ecoles {
    width: 80%;
    padding: 0;          /* On retire le padding sur grand écran pour respecter les 80% stricts */
  }
}

/* ── Sélecteur vocal séparé (FR / EN pour la reconnaissance vocale) ── */
.voice-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  background: rgba(255,255,255,.5);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  margin-left: 4px;
}
.voice-lang-ico { font-size: 13px; margin-right: 2px; }
.vl-btn {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  opacity: .55;
  color: #333;
  transition: all .15s;
  letter-spacing: .3px;
}
.vl-btn:hover { opacity: .9; }
.vl-btn.on {
  opacity: 1;
  background: var(--g, #0e3d2a);
  color: #fff;
}

/* ══════════════════════════════════════════════
   FEATURE CARDS GRID — 3 colonnes PC / 2 mobile
   Carrés de taille égale
══════════════════════════════════════════════ */

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Carte feature — hauteur fixe pour carrés égaux */
.fc {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 170px;
  height: 170px;

  cursor: pointer;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .18s, box-shadow .18s;
}
.fc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.fc .fc-i {
  font-size: 28px;
  margin: 6px 0 8px;
}
.fc .fc-t {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt, #1a2a1e);
  margin-bottom: 4px;
  line-height: 1.2;
}
.fc .fc-d {
  font-size: 11px;
  color: var(--txt2, #6b7c6e);
  line-height: 1.4;
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Carte sport spéciale */
.fc.fc-sport {
  background: linear-gradient(135deg, #1a3a2a 0%, #0e3d2a 100%);
  color: #fff;
}
.fc.fc-sport .fc-t { color: #fff; }
.fc.fc-sport .fc-d { color: rgba(255,255,255,.7); }
.fc.fc-sport .badge { background: rgba(255,255,255,.2); color: #fff; }

/* ── Sub-cards sport ── */
.sport-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.sport-sub-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  border: 2px solid transparent;
  position: relative;

}
.sport-sub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.sport-sub-card.football::before { background: linear-gradient(90deg,#2E8B57,#27ae60); }
.sport-sub-card.lamb::before     { background: linear-gradient(90deg,#e74c3c,#c0392b); }
.sport-sub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.sport-sub-card.football:hover { border-color: #2E8B57; }
.sport-sub-card.lamb:hover     { border-color: #e74c3c; }
.sport-sub-icon { font-size: 44px; margin-bottom: 10px; display: block; }
.sport-sub-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--txt, #1a2a1e);
}
.sport-sub-desc {
  font-size: 12px;
  color: var(--txt2, #6b7c6e);
  line-height: 1.5;
}
.sport-sub-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.football .sport-sub-badge { background: #e8f8ef; color: #2E8B57; }
.lamb .sport-sub-badge     { background: #fdf0ee; color: #e74c3c; }

/* ── Sport hero banner ── */
.sport-hero {
  background: linear-gradient(135deg, #0e3d2a 0%, #1a5c3e 50%, #0e3d2a 100%);
  border-radius: 20px;
  padding: 22px 20px;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.sport-hero::after {
  content: '⚽🤼';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  opacity: .25;
  letter-spacing: 8px;
}
.sport-hero-title { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.sport-hero-sub   { font-size: 13px; opacity: .8; }
.sport-coming-soon {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg2, #f7faf8);
  border-radius: 16px;
  margin-top: 12px;
  border: 2px dashed var(--bo2, #d0e0d4);
}
.sport-coming-soon-icon { font-size: 48px; margin-bottom: 10px; }
.sport-coming-soon-text { font-size: 14px; color: var(--txt2, #6b7c6e); line-height: 1.6; }

/* ── Bulle de redirection assistant ── */
.asst-redirect-card {
  background: linear-gradient(135deg, #e8f5ed, #d4edd9);
  border: 1.5px solid #a8d8b5;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.asst-redirect-icon { font-size: 28px; flex-shrink: 0; }
.asst-redirect-body { flex: 1; }
.asst-redirect-title { font-weight: 800; font-size: 13.5px; color: #1a3a2a; margin-bottom: 3px; }
.asst-redirect-sub   { font-size: 12px; color: #4a7060; margin-bottom: 8px; }
.asst-redirect-btn {
  display: inline-block;
  background: #0e3d2a;
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s;
}
.asst-redirect-btn:hover { background: #1a5c3e; }

/* Centrage et largeur à 70% */
#ct-pr {
    width: 70%;
    max-width: 1100px;
    min-width: 320px;
    margin: 2rem auto;
    transition: all 0.2s ease;
}
.pub-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pub-card:hover {
    box-shadow: 0 24px 42px -16px rgba(0, 0, 0, 0.25);
}
        
.pub-badge {
    background: #eef9e6;
    color: #2b7e3a;
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid #d0e6c0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.cov-vocal-bar {
    background: linear-gradient(98deg, #2c5f8a, #1f4870);
    margin: 1.2rem 1.5rem;
    border-radius: 100px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 12px -8px rgba(0,0,0,0.2);
}
.cov-vocal-bar:hover {
    transform: scale(1.01);
    background: linear-gradient(98deg, #1f4a6e, #153a57);
    box-shadow: 0 10px 18px -8px rgba(0,0,0,0.3);
}
.pub-section { margin: 1.5rem 1.8rem; border-bottom: 1px solid #eef2f5; padding-bottom: 1.5rem; }
.pub-section-title {
    display: flex; align-items: center; gap: 0.7rem;
    font-weight: 700; font-size: 1.2rem; color: #1f2f3e; margin-bottom: 1.2rem;
}
.pub-step-badge {
    background: #1f6e8c; color: white; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 40px; font-size: 0.9rem; font-weight: bold;
}
.region-select-wrap input,.pub-field input,.pub-counter input,.pub-date-add input {
    border-radius: 60px; border: 1px solid #cfdfe9; padding: 12px 16px; transition: all 0.2s; background: white;
}
.region-select-wrap input:focus,.pub-field input:focus,.pub-counter input:focus {
    border-color: #1f6e8c; outline: none; box-shadow: 0 0 0 3px #1f6e8c30;
}
.pub-swap-btn,.pub-counter button,.pub-mode-tab,.vehicle-option,.day-card,.chip { transition: all 0.2s ease; cursor: pointer; }
.pub-swap-btn:hover { background: #dee6ef; transform: rotate(180deg); }
.pub-mode-tab.on { background: #1f6e8c; color: white; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.day-card.selected { background: #e2f0f5; border-color: #1f6e8c; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.pub-submit-btn {
    background: #2a9d8f; border: none; padding: 16px; font-weight: 800; font-size: 1.2rem;
    border-radius: 60px; color: white; cursor: pointer; transition: 0.2s;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    width: calc(100% - 3.6rem); margin: 10px 1.8rem 2rem 1.8rem;
}
.pub-submit-btn:hover { background: #21867a; transform: scale(0.99); }
.pub-preview {
    background: #fef7e0; border-left: 5px solid #f4a261;
    margin: 20px 1.8rem; padding: 1rem 1.4rem; border-radius: 1.2rem;
}
@media (max-width: 860px) {
  #ct-pr { width: 90%; }
  .pub-section { margin: 1rem 1.2rem; }
}

#content { scroll-behavior: smooth; overflow-y: auto; height: calc(100vh - 60px); }
#sec-marche > *:first-child, #sec-emplois > *:first-child, #sec-emplois .tabs { margin-top: 0 !important; }
#sec-marche, #sec-emplois { padding-top: 0; }

#emp-publish-tab[style*="block"] .card, #emp-publish-tab[style*="block"] .card-accent { display: block !important; }
#emp-publish-tab .pub-note {
  font-size: 12.5px; color: var(--txt2); margin-bottom: 12px;
  padding: 10px 14px; background: rgba(14,61,42,.05); border-radius: 10px;
}

.bus-summary-list { margin: 8px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.bus-summary-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  cursor: pointer; transition: all .18s; border-left-width: 4px; border-left-style: solid;
}
.bus-summary-item:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.bsi-left { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 80px; }
.bsi-badge { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; letter-spacing: .3px; }
.bsi-num { font-size: 14px; font-weight: 900; }
.bsi-right { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bsi-name { font-size: 13px; font-weight: 600; color: var(--txt); }
.bsi-meta { font-size: 11.5px; color: var(--txt2); }
.bsi-arrow { font-size: 20px; color: var(--txt3); flex-shrink: 0; }

#main { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0; scroll-behavior: smooth; }

#sec-marche, #sec-emplois, #sec-sondages { padding-top: 8px !important; }
#sec-marche  > *:first-child, #sec-emplois > *:first-child, #sec-sondages > *:first-child { margin-top: 0 !important; }
#sec-emplois .tabs { margin-top: 0; margin-bottom: 6px; position: sticky; top: 0; z-index: 10; background: var(--bg, #f3f6f4); padding: 8px 0 4px; }
.poll-headline { margin-top: 0 !important; margin-bottom: 12px; }
#sec-marche .card:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .sec { padding: 12px 12px 20px; }
  #sec-marche, #sec-emplois, #sec-sondages { padding-top: 4px !important; }
}
@media (max-width: 480px) {
  .pub-card {
    border-radius: 1rem;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.15);
  }

  .pub-badge {
    font-size: 0.78rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }

  .cov-vocal-bar {
    margin: 0.8rem 1rem;
    padding: 0.7rem 1rem;
    border-radius: 60px;
  }

  .pub-section {
    margin: 0.9rem 0.9rem;
    padding-bottom: 1rem;
  }

  .pub-section-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .pub-step-badge {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* Route box */
  .pub-route-box {
    padding: 0.8rem 0.8rem;
  }

  .region-select-wrap input,
  .pub-field input,
  .pub-date-add input {
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Modes tabs */
  .pub-mode-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .pub-mode-tab {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    border-radius: 60px;
  }

  /* Jours */
  .pub-day-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .day-card {
    font-size: 11px;
    padding: 6px 4px;
    text-align: center;
  }

  /* Véhicules */
  .pub-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .vehicle-option {
    font-size: 12px;
    padding: 8px 6px;
    text-align: center;
  }

  /* Prix & places */
  .pub-price-seats {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .pub-counter-group label {
    font-size: 13px;
  }

  .pub-counter {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .pub-counter input {
    width: 60px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
  }

  .pub-counter button {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Contact */
  .pub-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pub-field {
    width: 100%;
  }

  .pub-field label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
  }

  /* Date add */
  .pub-date-add {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pub-date-add input {
    width: 100%;
  }

  /* Preview */
  .pub-preview {
    margin: 12px 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    font-size: 13px;
  }

  /* Submit */
  .pub-submit-btn {
    width: calc(100% - 1.8rem);
    margin: 8px 0.9rem 1.5rem;
    font-size: 1rem;
    padding: 14px;
  }

  /* Recurrent row */
  .pub-recurrent-row {
    font-size: 13px;
  }

  .recurrent-label {
    font-size: 13px;
    font-weight: 600;
  }

  .recurrent-sub {
    font-size: 11px;
  }
}
.bus-results-section { margin-bottom: 24px; }
.bus-section-title {
  font-size: 1.2rem; font-weight: 800; margin: 16px 0 12px 0;
  padding-left: 8px; border-left: 5px solid var(--g);
  display: flex; align-items: center; gap: 8px;
}
.bus-section-title .badge { font-size: 0.7rem; padding: 2px 8px; }
.bus-official-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bus-flash-btn { flex: 0 0 auto; }
.sdd-schedule-card {
  background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px;
  border-left: 4px solid #7B1FA2; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.sdd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.sdd-title { font-weight: 800; font-size: 1.1rem; color: #7B1FA2; }
.sdd-badge { background: #7B1FA2; color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; }
.particulier-section { margin-top: 20px; padding-top: 8px; border-top: 2px dashed var(--t3); }
.particulier-grid { display: flex; flex-direction: column; gap: 12px; }
.particulier-badge { background: #FF9800; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-left: 8px; }

 
.bus-type-filter { padding: 6px 10px 8px; }
.filter-pills {
  display: flex; gap: 5px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.filter-pills::-webkit-scrollbar { display: none; }
.btf {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid var(--color-border-secondary);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  font-size: 12px; font-weight: 500;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  transition: all .15s ease;
}
.btf.on {
  background: var(--color-background-primary);
  border-color: var(--color-border-primary);
  color: var(--color-text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.btf-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.btf i { font-size: 11px; }
      
 /* ══════════════════════════════════════════
   ECOLES — Hero
══════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   CLASSEMENT ÉCOLES v2 — CSS complet à coller dans index.html
   Remplace TOUT le CSS écoles précédent (podium + tableau)
══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────── */
.ecoles-hero {
  background:
    radial-gradient(ellipse 80% 60% at 10% 110%, rgba(212,150,10,.22) 0%, transparent 55%),
    linear-gradient(145deg,#02100a 0%,#071f13 30%,#0d3520 65%,#14502f 100%);
  border-radius: 20px;
  padding: 24px 22px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.ecoles-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.ecoles-hero-title { font-size: 21px; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.ecoles-hero-sub   { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 3px; }

.ecoles-toggle { display: flex; gap: 6px; flex-shrink: 0; }
.eyr-btn {
  font-size: 12px; font-weight: 700; padding: 7px 14px;
  border-radius: 50px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.55);
  transition: all .25s;
}
.eyr-btn:hover  { background: rgba(255,255,255,.15); color: #fff; }
.eyr-btn.active {
  background: linear-gradient(135deg,#F0C56A,#D4960A);
  border-color: transparent; color: #041a0f;
  font-weight: 900; box-shadow: 0 4px 14px rgba(212,150,10,.4);
}
.ecoles-statbar {
  display: flex; background: rgba(0,0,0,.3);
  border-radius: 8px; overflow: hidden;
}
.estat-item {
  flex: 1; padding: 10px 8px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.estat-item:last-child { border-right: none; }
.estat-val { font-size: 18px; font-weight: 900; color: #F0C56A; line-height: 1; }
.estat-lbl { font-size: 9px; color: rgba(255,255,255,.32); text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; font-weight: 700; }
@media (max-width: 768px) {
  .estat-val { font-size: 13px; }
  .estat-lbl { font-size: 7px; }
  .ecoles-hero-title { font-size: 16px; text-align: center; }
  .ecoles-toggle { justify-content: center; }

  .ecoles-hero-top { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .ecoles-hero-sub { text-align: center; }
}
        
/* ══ PODIUM CASCADE ═════════════════════════════════════════
   CRITIQUE : reset total du display hérité de .ecoles-podium
══════════════════════════════════════════════════════════════ */
#ecoles-podium,
.ecoles-cascade {
  /* On écrase flex/align-items/justify-content de l'ancien CSS */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 !important;
}

/* ── Rangée cascade ──────────────────────────────────────── */
.ecoles-row {
  display: grid;
  gap: 10px;
  width: 100%;
}
.ecoles-row.row-1 { grid-template-columns: 1fr; }
.ecoles-row.row-2 { grid-template-columns: repeat(2, 1fr); }
.ecoles-row.row-3 { grid-template-columns: repeat(3, 1fr); }
.ecoles-row.row-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Carte podium ─────────────────────────────────────────── */
.ep-item {
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ep-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }

/* Corps de carte */
.ep-body {
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  flex: 1;
}

/* Badge rang (coin supérieur droit) */
.ep-rank-num {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 900;
  color: rgba(0,0,0,.18);
  letter-spacing: .03em;
  line-height: 1;
  color:blue;
}

/* Médaille */
.ep-medal { font-size: 28px; line-height: 1; margin-bottom: 2px; }

/* Type Public/Privé */
.ep-type {
  font-size: 8px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: 2px 6px; border-radius: 4px;
}
.ep-type.pub { background: white; color: #F723E4; }
.ep-type.pri { background: white; color: #c04a00; }

/* Nom de l'école */
.ep-name {
  font-size: 11.5px; font-weight: 800; color: #0a1f0e;
  line-height: 1.3; text-align: center; hyphens: auto;
}

/* Ville */
.ep-loc { font-size: 10px; color: #7a9a82; font-weight: 600; }

/* Score */
.ep-score      { font-size: 22px; font-weight: 900; color: #0a2e1c; line-height: 1; }
.ep-score-lbl  { font-size: 8px; color: #9ab3a0; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ── Mentions — CHAQUE mention sur sa propre ligne ────────── */
.ep-mentions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;  /* ← ajouter ça */
 flex-wrap: nowrap;          /* ← ajouter ça aussi pour les petites cartes */
  gap: 3px;
  width: 100%;
  margin: 2px 0;
}
.ep-m {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  width: auto;
 min-width: 100px;
}
.ep-m .m-label { flex: 1; text-align: left; }
.ep-m .m-count { font-size: 12px; font-weight: 900; }
.ep-m.tb { background: #FFF4D6; color: #8a6400; }
.ep-m.bi { background: #E6F7EE; color: #1a6e3a; }
.ep-m.ab { background: #E8EFFE; color: #1a40a0; }

/* Effectif */
.ep-eff { font-size: 9.5px; color: #a0b8a8; font-weight: 600; }

/* ── Socle coloré ───────────────────────────────────────── */
.ep-base {
  width: 100%; padding: 5px 0 4px; text-align: center;
  font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.ep-item.ep-r1  .ep-base { background: linear-gradient(90deg,#F0C56A,#C8860A); color: #041a0f; }
.ep-item.ep-r2  .ep-base { background: linear-gradient(90deg,#C8D0D8,#8a9299); color: #fff; }
.ep-item.ep-r3  .ep-base { background: linear-gradient(90deg,#CD9060,#a05030); color: #fff; }
.ep-item.ep-r4  .ep-base,
.ep-item.ep-r5  .ep-base,
.ep-item.ep-r6  .ep-base { background: linear-gradient(90deg,#d0ead6,#b8d8c0); color: #2a6040; }
.ep-item.ep-r7  .ep-base,
.ep-item.ep-r8  .ep-base,
.ep-item.ep-r9  .ep-base,
.ep-item.ep-r10 .ep-base { background: linear-gradient(90deg,#dce4ff,#c8d4ff); color: #2a408a; }

/* ── Tailles selon la rangée ───────────────────────────── */
/* Rang 1 : grand format centré */
.ecoles-row.row-1 { justify-items: center; }
.ecoles-row.row-1 .ep-item   { max-width: 360px; width: 100%; }
.ecoles-row.row-1 .ep-medal  { font-size: 48px; }
.ecoles-row.row-1 .ep-name   { font-size: 14px; }
.ecoles-row.row-1 .ep-score  { font-size: 20px; }
.ecoles-row.row-1 .ep-m { font-size: 11.5px; min-width: 110px; flex: 1; }
.ecoles-row.row-1 .ep-m .m-count { font-size: 13px; }

/* Rang 2-3 */
.ecoles-row.row-2 .ep-medal  { font-size: 34px; }
.ecoles-row.row-2 .ep-score  { font-size: 20px; }
.ecoles-row.row-2 .ep-name   { font-size: 12px; }

/* Rang 4-6 : mentions en ligne horizontale (plus compact) */
.ecoles-row.row-3 .ep-medal  { font-size: 22px; }
.ecoles-row.row-3 .ep-score  { font-size: 17px; }
.ecoles-row.row-3 .ep-name   { font-size: 10.5px; }
.ecoles-row.row-3 .ep-mentions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.ecoles-row.row-3 .ep-m      { font-size: 9px; min-width: unset; padding: 1px 5px; }
.ecoles-row.row-3 .ep-m .m-count { font-size: 12px; }
.ecoles-row.row-3 .ep-name   { font-size: 12px; }

/* Rang 7-10 : mentions masquées (trop petit) */
.ecoles-row.row-4 .ep-medal  { font-size: 22px; }
.ecoles-row.row-4 .ep-score  { font-size: 17px; }
.ecoles-row.row-4 .ep-name   { font-size: 10.5px; }
.ecoles-row.row-4 .ep-mentions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.ecoles-row.row-4 .ep-m      { font-size: 9px; min-width: unset; padding: 1px 5px; }
.ecoles-row.row-4 .ep-m .m-count { font-size: 12px; }
.ecoles-row.row-4 .ep-name   { font-size: 12px; }

/* ══ TABLEAU rangs 11+ ═══════════════════════════════════ */
.ecoles-table {
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.07); overflow: hidden; margin-bottom: 12px;
}
.ethr {
  display: grid;
  grid-template-columns: 36px 1fr 52px 48px 50px 44px 44px;
  align-items: center; padding: 8px 12px;
  background: linear-gradient(90deg,#f0f5f1,#f8faf8);
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 9px; font-weight: 800; color: #4a7a5a;
  text-transform: uppercase; letter-spacing: .1em;
}
.ethr-rk, .erow-rk  { text-align: center; }
.ethr-nm, .erow-nm  { padding-left: 4px; }
.ethr-sc, .erow-sc,
.ethr-ef, .erow-ef,
.ethr-tb, .erow-tb,
.ethr-bi, .erow-bi,
.ethr-ab, .erow-ab  { text-align: center; }

#ecoles-lc { max-height: 420px; overflow-y: auto; }
#ecoles-lc::-webkit-scrollbar       { width: 4px; }
#ecoles-lc::-webkit-scrollbar-track { background: transparent; }
#ecoles-lc::-webkit-scrollbar-thumb { background: #c5d8c8; border-radius: 4px; }

.erow {
  display: grid;
  grid-template-columns: 36px 1fr 52px 48px 50px 44px 44px;
  align-items: center; padding: 9px 12px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  font-size: 12px; transition: background .15s;
  animation: erowIn .35s both;
}
.erow:last-child { border-bottom: none; }
.erow:hover      { background: #f5faf6; }
@keyframes erowIn { from { opacity:0; transform:translateX(-4px); } to { opacity:1; transform:none; } }

.erow-rk   { font-weight: 900; color: #2d5a3d; font-size: 13px; }
.erow-nm   { font-weight: 700; color: #0a1f0e; font-size: 11.5px; line-height: 1.3; }
.erow-sc   { font-weight: 900; color: #0a2e1c; }
.erow-ef   { color: #888; font-size: 11px; }

/* Pillules mentions tableau */
.eptb, .epbi, .epab {
  display: inline-block; min-width: 26px; text-align: center;
  font-size: 11px; font-weight: 800; padding: 2px 5px;
  border-radius: 6px; line-height: 1.4;
}
.eptb { background: #FFF4D6; color: #8a6400; }
.epbi { background: #E6F7EE; color: #1a6e3a; }
.epab { background: #E8EFFE; color: #1a40a0; }

/* ── Légende ─────────────────────────────────────────── */
.ecoles-legend {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 8px 4px 4px;
  font-size: 11.5px; color: #4a7a5a;
}
.eleg { display: flex; align-items: center; gap: 5px; }
.eleg-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.eleg-dot.tb { background: #D4A017; }
.eleg-dot.bi { background: #2E8B57; }
.eleg-dot.ab { background: #3060D0; }

/* ══ MOBILE ═════════════════════════════════════════════ */
@media (max-width: 600px) {
  .ecoles-row.row-1,
  .ecoles-row.row-2,
  .ecoles-row.row-3,
  .ecoles-row.row-4 { grid-template-columns: 1fr !important; }

  .ecoles-row.row-1 { justify-items: stretch; }
  .ecoles-row.row-1 .ep-item { max-width: 100%; }

  /* Tableau mobile */
  .ethr { grid-template-columns: 28px 1fr 44px 30px 30px; }
  .ethr-ef { display: none; }
  .erow    { grid-template-columns: 28px 1fr 44px 30px 30px; }
  .erow-ef { display: none; }
}

.sc-n {
   font-weight: 900;
  font-size: 1.3em;
  font-family: 'Georgia', serif;
 
  color: black;
  letter-spacing: 0.02em;
         
} 
  #sec-ecoles {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  }        
.sc-i {
  font-size: 2.2em;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.cc-btn:hover { background: #f5f5f5; }
.cc-btn:active { transform: scale(0.97); }

.cc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #e8f0fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.cc-text { display: flex; flex-direction: column; gap: 1px; }
.cc-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.cc-sub { font-size: 11px; color: #888; }
.cc-arrow { font-size: 16px; color: #aaa; margin-left: 4px; }

/* Mobile : espace pour la navbar */
@media (max-width: 768px) {
  .cc-btn { padding: 14px 20px; }
  #sec-ecoles { padding-bottom: 80px; }
}
 
/* ── Footer bar (desktop uniquement) ─────────────────────────── */
#xarit-footer-bar {
  background: linear-gradient(135deg, #020c06 0%, #0a2714 100%);
  padding: 9px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  transition: all .2s;
}
.fb-copy {
  font-size: 11px; color: rgba(255,255,255,.35);
  letter-spacing: .4px; white-space: nowrap;
}
.fb-flag { margin-left: 4px; }
.fb-right { display: flex; align-items: center; gap: 14px; }
.fb-counter {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(240,197,106,.1);
  border: 1px solid rgba(240,197,106,.22);
  padding: 3px 10px; border-radius: 20px;
}
.fb-counter-icon { font-size: 12px; }
.fb-counter-val  { font-size: 11.5px; font-weight: 900; color: #F0C56A; }
.fb-counter-lbl  { font-size: 10px; color: rgba(255,255,255,.3); }
.fb-links { display: flex; gap: 12px; }
.fb-link {
  font-size: 10.5px; color: rgba(255,255,255,.35);
  cursor: pointer; transition: color .15s; white-space: nowrap;
}
.fb-link:hover { color: rgba(255,255,255,.8); }
/* Masqué sur mobile (conflit avec bottom nav) */
@media (max-width: 768px) { #xarit-footer-bar { display: none; } }
 
/* ── Statistique visiteurs sur l'accueil ──────────────────────── */
.sc-visitors {
  background: linear-gradient(145deg, #041a0f, #0d3520);
  border: 1px solid rgba(240,197,106,.25);
}
.sc-visitors .sc-i { font-size: 1.8em; }
.sc-visitors .sc-n { color: #F0C56A !important; font-size: 1.15em; }
.sc-visitors .sc-l { color: rgba(255,255,255,.5); }
 
/* ════════════════════════════════════════════════════════════
   SECTION CONTACT — Styles complets
════════════════════════════════════════════════════════════ */
 
/* Hero */
.contact-hero {
  background:
    radial-gradient(ellipse 55% 35% at 95% -5%, rgba(240,197,106,.18) 0%, transparent 50%),
    linear-gradient(145deg, #010c05 0%, #041a0f 35%, #0e3520 75%, #143d28 100%);
  border-radius: 20px; padding: 26px 22px 22px;
  margin-bottom: 18px; position: relative; overflow: hidden;
}
.contact-hero::after {
  content: '🇸🇳'; position: absolute;
  bottom: 10px; right: 16px;
  font-size: 56px; opacity: .08;
}
.contact-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(240,197,106,.13);
  border: 1px solid rgba(240,197,106,.28);
  padding: 4px 13px; border-radius: 30px;
  font-size: 10.5px; font-weight: 800; color: #F0C56A;
  letter-spacing: .5px; margin-bottom: 12px;
  text-transform: uppercase;
}
.contact-hero-title {
  font-size: 23px; font-weight: 900; color: #fff;
  letter-spacing: -.5px; margin-bottom: 6px;
}
.contact-hero-sub {
  font-size: 12.5px; color: rgba(255,255,255,.48);
  line-height: 1.65; max-width: 520px;
}
.contact-hero-stats {
  display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap;
}
.chs-item { display: flex; flex-direction: column; gap: 2px; }
.chs-val  { font-size: 22px; font-weight: 900; color: #F0C56A; line-height: 1; }
.chs-lbl  { font-size: 9px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
 
/* Profil + À propos */
.contact-profile-section {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 14px; margin-bottom: 14px;
}
@media (max-width: 680px) { .contact-profile-section { grid-template-columns: 1fr; } }
 
.contact-profile-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  border: 1px solid rgba(0,0,0,.06);
}
.cpcard-top {
  background: linear-gradient(160deg, #041a0f 0%, #0e3520 60%, #1a5c3e 100%);
  padding: 24px 16px 18px; text-align: center;
}
.cpcard-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid rgba(240,197,106,.55);
  margin: 0 auto 10px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; overflow: hidden;
}
.cpcard-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.cpcard-name { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.cpcard-role { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 600; }
.cpcard-body { padding: 14px 12px; }
.cpcard-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 12px; }
.cpcard-tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f0faf3; border: 1px solid #c8e6d4;
  color: #1a5c3e; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.cpcard-location {
  font-size: 11.5px; color: #4a7a5a; text-align: center;
  line-height: 1.6; padding: 8px 0;
  border-top: 1px solid #f0f0f0;
}
.cpcard-social {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.cps-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; background: #f5f5f5;
  cursor: pointer; transition: all .18s;
  text-decoration: none; border: 1px solid #e0e0e0;
}
.cps-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.12); background: #ebebeb; }
 
/* Carte À propos */
.contact-about-card {
  background: #fff; border-radius: 20px; padding: 20px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 0;
}
.cac-title {
  font-size: 13.5px; font-weight: 900; color: #0a1f0e;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.cac-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(14,61,42,.2), transparent);
}
.cac-text { font-size: 12.5px; color: #4a6a54; line-height: 1.75; margin-bottom: 10px; }
.cac-quote {
  background: linear-gradient(135deg, #f0faf3, #e8f5ee);
  border-left: 3px solid #0e3d2a;
  border-radius: 0 12px 12px 0;
  padding: 11px 15px; font-size: 12.5px;
  color: #1a3a2a; font-style: italic;
  line-height: 1.65; margin: 8px 0 12px;
}
.cac-modules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cac-mod {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: rgba(255,255,255,.9); font-size: 10.5px;
  font-weight: 700; padding: 4px 11px; border-radius: 20px;
}
 
/* Grille infos contact */
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 14px;
}
@media (max-width: 680px) { .contact-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .contact-info-grid { grid-template-columns: 1fr; } }
.cinfo-card {
  background: #fff; border-radius: 15px; padding: 14px 12px;
  text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s, box-shadow .18s;
}
.cinfo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.cinfo-icon { font-size: 26px; margin-bottom: 6px; }
.cinfo-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: #9ab3a0; margin-bottom: 4px;
}
.cinfo-value { font-size: 12px; font-weight: 700; color: #0a1f0e; word-break: break-word; }
.cinfo-btn {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 8px; background: #f0faf3;
  border: 1px solid #c8e6d4; color: #0e3d2a;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  cursor: pointer; transition: .15s; text-decoration: none;
}
.cinfo-btn:hover { background: #0e3d2a; color: #fff; border-color: transparent; }
 
/* Formulaire contact */
.contact-form-card {
  background: #fff; border-radius: 20px; padding: 20px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06); margin-bottom: 14px;
}
.cfc-title {
  font-size: 15px; font-weight: 900; color: #0a1f0e;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.cfc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 580px) { .cfc-2col { grid-template-columns: 1fr; } }
.cfc-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.cfc-label { font-size: 11.5px; font-weight: 700; color: #3a6050; }
.cfc-input {
  padding: 11px 14px; border: 1.5px solid #dde8e0;
  border-radius: 10px; font-size: 13px; font-family: inherit;
  background: #fafcfa; outline: none; transition: .18s;
  width: 100%; box-sizing: border-box;
}
.cfc-input:focus {
  border-color: #0e3d2a;
  box-shadow: 0 0 0 3px rgba(14,61,42,.09);
  background: #fff;
}
.cfc-textarea { min-height: 110px; resize: vertical; }
.cfc-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #0e3d2a 0%, #1a5c3e 100%);
  color: #fff; border: none; border-radius: 50px;
  font-size: 14px; font-weight: 900; cursor: pointer;
  transition: all .2s; letter-spacing: .3px;
}
.cfc-submit:hover {
  background: linear-gradient(135deg, #1a5c3e, #247a52);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,61,42,.28);
}
.cfc-submit:active { transform: scale(.98); }
#cf-result { margin-top: 10px; font-size: 12.5px; text-align: center; min-height: 20px; }
 
/* Mentions légales */
.contact-legal {
  background: #f8fbf8; border-radius: 14px;
  padding: 14px 16px; text-align: center;
  font-size: 11px; color: #7a9a82; line-height: 1.7;
  border: 1px solid #e4f0e6; margin-top: 4px;
}
.contact-legal strong { color: #3a6a4a; }
 
/* Padding bottom mobile (bottom nav = ~72px) */
#sec-contact { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); }
 
/* ── Améliorations UI générales ────────────────────────────── */
/* Transition douce sur toutes les cartes .sc */
.sc { transition: transform .18s, box-shadow .18s; }
/* Topbar légèrement plus marquée */
.topbar { box-shadow: 0 1px 8px rgba(0,0,0,.08); }
/* Boutons .btn avec effet press */
.btn:active { transform: scale(.97) !important; }
/* Scroll doux sur l'app entière */
* { scroll-behavior: smooth; }
/* ── Visiteurs topbar ──────────────────────────── */
.topbar-visitors {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(240,197,106,.13);
  border: 1px solid rgba(240,197,106,.30);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: default;
  flex-shrink: 0;
}
.tv-icon { font-size: 12px; line-height: 1; }
.tv-val  {
  font-size: 12px;
  font-weight: 900;
  color: green;
  min-width: 28px;
  text-align: center;
  letter-spacing: .3px;
}
@media (max-width: 480px) {
  .topbar-visitors { padding: 3px 7px; }
  .tv-val { font-size: 11px; }
} 
.mch-card{padding:16px}

.mch-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.mch-ic{width:38px;height:38px;flex:none;border-radius:10px;
  background:#e1f5ee;display:flex;align-items:center;justify-content:center;font-size:20px}
.mch-title{font-size:16px;font-weight:600;line-height:1.2}
.mch-sub{font-size:13px;color:#777;margin-top:2px}

.mch-label{display:block;font-size:13px;color:#777;margin:14px 0 6px}

/* champ + loupe intégrée */
.mch-search{position:relative;margin-bottom:10px}
.mch-search-ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);
  font-size:16px;opacity:.55;pointer-events:none}
.mch-input{width:100%;height:48px;padding:0 14px 0 38px;font-size:15px;
  box-sizing:border-box;border:1px solid #d8d8d8;border-radius:10px;outline:none;
  transition:border-color .15s,box-shadow .15s}
.mch-input:focus{border-color:#1d9e75;box-shadow:0 0 0 3px rgba(29,158,117,.15)}

/* bouton principal pleine largeur */
.mch-btn{width:100%;height:48px;font-size:15px;font-weight:600;color:#fff;
  background:#1d9e75;border:none;border-radius:10px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:background .15s,transform .08s}
.mch-btn:hover{background:#178462}
.mch-btn:active{transform:scale(.98)}

/* suggestions : défilement horizontal */
.mch-chips-label{font-size:12px;color:#999;margin:16px 0 8px}
.mch-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none}
.mch-chips::-webkit-scrollbar{display:none}
.mch-chip{flex:none;height:40px;padding:0 14px;font-size:14px;white-space:nowrap;
  border:1px solid #e0e0e0;background:#fff;border-radius:999px;cursor:pointer;
  transition:background .15s,border-color .15s}
.mch-chip:hover{background:#f3f3f3;border-color:#cfcfcf}
.mch-chip:active{background:#e8f6f0;border-color:#1d9e75}

/* sur écran large : input + bouton sur la même ligne */
@media(min-width:600px){
  .mch-search{display:inline-block;width:calc(100% - 170px);margin-right:10px;vertical-align:top}
  .mch-btn{width:160px;display:inline-flex;vertical-align:top}
  .mch-chips{flex-wrap:wrap}
}
.bus-type-filter{ text-align:center; }
.filter-select-wrap{ display:inline-block; position:relative; }   
.bus-filter-select{
  text-align:center;
}
/* ════ EMPLOIS — refonte mobile (scopé #sec-emplois) ════ */

/* Onglets façon "segmented control" */
#sec-emplois .tabs{
  display:flex;gap:6px;background:#f1f1f1;padding:5px;
  border-radius:12px;margin-bottom:14px
}
#sec-emplois .tb{
  flex:1;border:none;background:none;height:42px;
  font-size:14px;font-weight:600;color:#666;border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:6px;
  transition:background .15s,color .15s
}
#sec-emplois .tb.on{
  background:#fff;color:#1d9e75;box-shadow:0 1px 3px rgba(0,0,0,.08)
}

/* Champs homogènes : même hauteur, coins arrondis, focus visible */
#sec-emplois input,
#sec-emplois select,
#sec-emplois textarea{
  width:100%;box-sizing:border-box;height:46px;padding:0 12px;font-size:15px;
  border:1px solid #d8d8d8;border-radius:10px;background:#fff;outline:none;
  transition:border-color .15s,box-shadow .15s
}
#sec-emplois textarea{height:auto;padding:10px 12px;line-height:1.45}
#sec-emplois input:focus,
#sec-emplois select:focus,
#sec-emplois textarea:focus{
  border-color:#1d9e75;box-shadow:0 0 0 3px rgba(29,158,117,.15)
}
#sec-emplois .il{display:block;font-size:13px;color:#777;margin-bottom:5px}

/* Grilles 2 colonnes : on force la grille puis on empile sur mobile */
#sec-emplois .g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* Bouton plein largeur */
#sec-emplois .bfu{height:48px;font-size:15px;font-weight:600;border-radius:10px}



/* Boîte admin un peu plus respirante */
#admin-box{margin:20px auto;padding:18px}
#admin-box .g2{align-items:end}

/* ── MOBILE : on empile les colonnes ── */
@media(max-width:520px){
  #sec-emplois .g2{grid-template-columns:1fr}
} 
.cov-date-select{
  display:block;
  width:auto;
  min-width:230px;
  max-width:100%;
  margin:6px auto 0;
  height:46px;
  padding:0 14px;
  font-size:15px;
  text-align:center;
  text-align-last:center;
  border:1px solid #d8d8d8;
  border-radius:10px;
  background:#fff;
  color:#333;
  cursor:pointer;
  outline:none;
  transition:border-color .15s,box-shadow .15s;
}
/* tant que le placeholder est affiché (valeur vide), texte grisé */
.cov-date-select:invalid{ color:#999; }

.cov-date-select:focus{
  border-color:#1d9e75;
  box-shadow:0 0 0 3px rgba(29,158,117,.15);
} 
.cov-custom-date{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .25s ease, opacity .25s ease;
}
.cov-custom-date.show{
  max-height:120px;   /* assez pour label + input */
  opacity:1;
  margin-top:8px;
}  
.cov-search-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
/* le titre occupe l'espace, le bouton reste à sa taille */
.cov-search-title{flex:1;min-width:0}
.cov-vocal-btn{flex:none} 
 /* --- Astuce CSS Mobile Sans toucher au HTML --- */
@media (max-width: 480px) {
  
  /* 1. On cache le texte d'origine en mettant sa taille à 0 */
  .cal-day-name {
    font-size: 0 !important;
  }

  /* 2. On réactive une taille de texte pour notre injecteur CSS */
  .cal-day-name::after {
    font-size: 14px; /* Ajustez la taille selon vos besoins */
    font-weight: bold;
  }

  /* 3. On définit le contenu pour chaque jour en ciblant l'attribut i18n */
  .cal-day-name[data-i18n="cal.day.mon"]::after { content: "Lun"; }
  .cal-day-name[data-i18n="cal.day.tue"]::after { content: "Mar"; }
  .cal-day-name[data-i18n="cal.day.wed"]::after { content: "Mer"; }
  .cal-day-name[data-i18n="cal.day.thu"]::after { content: "Jeu"; }
  .cal-day-name[data-i18n="cal.day.fri"]::after { content: "Ven"; }
  .cal-day-name[data-i18n="cal.day.sat"]::after { content: "Sam"; }
  .cal-day-name[data-i18n="cal.day.sun"]::after { content: "Dim"; }
}    
/* Conteneur global de la zone de saisie */
.asst-bar-container {
  padding: 10px 15px;
  background-color: transparent;
}

/* La barre de saisie style Gemini */
.asst-bar {
  display: flex;
  align-items: center;
  background-color: #f0f4f9; /* Fond clair moderne, à ajuster si mode sombre */
  border-radius: 28px;        /* Bords très arrondis style Gemini */
  padding: 8px 16px;
  min-height: 52px;           /* Plus haute pour plus de confort */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* L'input texte */
.asst-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;            /* Évite le zoom automatique sur iOS */
  outline: none;
  padding: 8px 0;
}

/* Zone des boutons d'action à droite */
.asst-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asst-bar-actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.asst-bar-actions button:active {
  transform: scale(0.9);
}

/* Suggestions en dessous */
.asst-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;           /* Défilement horizontal si débordement */
  padding: 5px 15px 15px 15px;
  scrollbar-width: none;      /* Cache la scrollbar sur Firefox */
}

.asst-chips::-webkit-scrollbar {
  display: none;              /* Cache la scrollbar sur Chrome/Safari */
}

.asst-chips button {
  flex: 0 0 auto;
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
/* ==========================================
   1. DESIGN MOBILE (Par défaut : compact)
   ========================================== */
.g4 {
    display: grid;
    /* On force 3 ou 4 colonnes sur mobile selon vos besoins */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; /* Espace très serré entre les blocs */
}

.sc {
    padding: 7px 4px; /* Hauteur minimale */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sc-i { 
    font-size: 2.2rem; /* Petits émojis */
    line-height: 1;
    margin-bottom: 2.6px;
}

.sc-n { 
    font-size: 1rem; 
    line-height: 1.1; 
}

.sc-l { 
    font-size: 1rem; 
    line-height: 1.1; 
    display: block; /* Assure le retour à la ligne */
}


/* ==========================================
   2. DESIGN TABLETTE ET PC (Écrans > 768px)
   ========================================== */
@media (min-width: 768px) {
    .g4 {
        grid-template-columns: repeat(5, 1fr); /* Plus de colonnes sur grand écran */
        gap: 8px; /* On redonne de l'espace */
    }

    .sc {
        padding: 7px 11px; /* On redonne de la hauteur */
    }

    .sc-i { 
        font-size: 1.6rem; 
        line-height: 1;
        margin-bottom: 6px;
    }

    .sc-n { 
        font-size: 0.95rem; 
        line-height: 1.3;
    }

    .sc-l { 
        font-size: 0.8rem; 
        line-height: 1.2;
    }
} 
.av img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain; /* Affiche toute l'image sans déformation */
  background-color: #f0f0f0; /* Ajoute un fond pour combler le vide si l'image est rectangulaire */
}
 /* Réduit l'espace sous chaque bouton de navigation */
.ni {
  margin-bottom: 2px;  
}

/* Gère l'espace autour des titres de section (Principal, Transport...) */
.nav-sec {
  margin-top: 2px;     /* Un peu d'espace avant le titre pour respirer */
  margin-bottom: 2px;  /* Très peu d'espace après le titre */
  color: #BEFAC6;       /* Change la couleur du texte en bleu ciel */
} 
#bd {
    width: 100%;
    min-width: unset !important;  /* Force la suppression de min-width:650px */
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #2E8B57;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
} 
  /* ══════════════════════════════════════════════════════════════
   PATCH FINAL — Inputs Bus & Covoiturage
   • Mobile : 100% largeur
   • PC (≥768px) : 50% centré
   • Style inputs élégant premium
   Coller TOUT EN BAS du <style> dans index.html
══════════════════════════════════════════════════════════════ */

/* ══ 1. KILL tous les min-width inline ══ */
#bd, #ba, #cd, #ca, #pd, #pa,
.region-select-wrap input,
.region-input,
#sec-bus .search-input-group input {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ══ 2. MOBILE FIRST — tout 100% ══ */
#sec-bus .bus-search-card,
.cov-search-card,
.traf-signal-card,
#ct-pr { width: 100% !important; max-width: 100% !important; }

#sec-bus .journey-field,
#sec-bus .search-input-group,
.cov-journey-field,
.cov-journey-step .region-select-wrap {
  width: 100% !important;
  flex: 1 1 100% !important;
}

/* ══ 3. PC (≥768px) — 50% centré ══ */
@media (min-width: 768px) {
  #sec-bus .bus-search-card,
  .cov-search-card,
  .traf-signal-card {
    width: 55% !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #ct-pr {
    width: 55% !important;
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Résultats en 2 colonnes sur très grand écran */
@media (min-width: 1200px) {
  .bus-official-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .particulier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
/* ══════════════════════════════════════════════════════════════
   4. INPUTS PREMIUM — Style élégant unifié
══════════════════════════════════════════════════════════════ */

/* ── Bus inputs ── */
#sec-bus .search-input-group {
  border: 2px solid #dce5df !important;
  border-radius: 16px !important;
  padding: 3px 6px 3px 16px !important;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%) !important;
  box-shadow: 0 2px 10px rgba(14,61,42,.04), inset 0 1px 2px rgba(255,255,255,.8) !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  overflow: hidden;
}
#sec-bus .search-input-group:hover {
  border-color: #b8cec0 !important;
  box-shadow: 0 4px 16px rgba(14,61,42,.07) !important;
}
#sec-bus .search-input-group:focus-within {
  border-color: var(--g, #0e3d2a) !important;
  box-shadow:
    0 0 0 4px rgba(14,61,42,.07),
    0 6px 20px rgba(14,61,42,.08) !important;
  background: #fff !important;
}
#sec-bus .search-input-group input {
  font-size: 15px !important;
  padding: 14px 0 !important;
  font-weight: 500 !important;
  color: #1a2a1e !important;
  letter-spacing: -.01em;
}
#sec-bus .search-input-group input::placeholder {
  color: #9cb3a2 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

/* ── Covoiturage & Publication inputs ── */
.region-select-wrap input,
.region-input,
#ct-pr .pub-route-input input,
#cd, #ca, #pd, #pa {
  border: 2px solid #dce5df !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #1a2a1e !important;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%) !important;
  box-shadow: 0 2px 10px rgba(14,61,42,.04), inset 0 1px 2px rgba(255,255,255,.8) !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.region-select-wrap input:hover,
.region-input:hover,
#ct-pr .pub-route-input input:hover {
  border-color: #b8cec0 !important;
  box-shadow: 0 4px 16px rgba(14,61,42,.07) !important;
}
.region-select-wrap input:focus,
.region-input:focus,
#ct-pr .pub-route-input input:focus {
  border-color: var(--g, #0e3d2a) !important;
  box-shadow:
    0 0 0 4px rgba(14,61,42,.07),
    0 6px 20px rgba(14,61,42,.08) !important;
  background: #fff !important;
  outline: none !important;
}
.region-select-wrap input::placeholder,
.region-input::placeholder,
#ct-pr .pub-route-input input::placeholder {
  color: #9cb3a2 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

/* ── Trafic inputs ── */
.traf-signal-card input[type="text"],
.traf-signal-card select {
  border: 2px solid #dce5df !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%) !important;
  box-shadow: 0 2px 10px rgba(14,61,42,.04) !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
}
.traf-signal-card input[type="text"]:focus,
.traf-signal-card select:focus {
  border-color: var(--vr, #e31b23) !important;
  box-shadow:
    0 0 0 4px rgba(227,27,35,.06),
    0 6px 20px rgba(227,27,35,.08) !important;
  background: #fff !important;
}

/* ── Date select covoiturage ── */
.cov-date-select {
  border: 2px solid #dce5df !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  height: auto !important;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%) !important;
  box-shadow: 0 2px 10px rgba(14,61,42,.04) !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  width: 100%;
}
.cov-date-select:focus {
  border-color: var(--g, #0e3d2a) !important;
  box-shadow:
    0 0 0 4px rgba(14,61,42,.07),
    0 6px 20px rgba(14,61,42,.08) !important;
}

/* ── Boutons icônes (géo, micro) dans les inputs ── */
#sec-bus .input-icon-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  transition: all .2s !important;
}
#sec-bus .input-icon-btn.geo-btn {
  background: rgba(21,101,192,.08) !important;
}
#sec-bus .input-icon-btn.geo-btn:hover {
  background: rgba(21,101,192,.16) !important;
  transform: scale(1.08) !important;
}
#sec-bus .input-icon-btn.mic-btn {
  border-radius: 13px !important;
  box-shadow: 0 3px 14px rgba(212,150,10,.35) !important;
}

/* ── Bouton vocal covoiturage ── */
.cov-vocal-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
}

/* ── Dots trajet (bus & covoiturage) — subtils ── */
#sec-bus .journey-dot,
.cov-journey-dot {
  width: 20px !important;
  height: 20px !important;
  border: 3px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
}

/* ── Swap buttons ── */
#sec-bus .bus-swap-btn,
.cov-swap-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.1) !important;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
}
#sec-bus .bus-swap-btn:hover,
.cov-swap-btn:hover {
  transform: rotate(180deg) scale(1.1) !important;
  box-shadow: 0 5px 20px rgba(212,150,10,.35) !important;
}

/* ── Dropdowns autocomplete — plus propres ── */
#sec-bus .loc-drop,
.region-dropdown {
  border-radius: 14px !important;
  border: 1px solid #dce5df !important;
  box-shadow: 0 12px 40px rgba(14,61,42,.12) !important;
  top: calc(100% + 8px) !important;
  backdrop-filter: blur(8px);
}
.loc-item,
.rd-city-item {
  padding: 12px 16px !important;
  transition: all .15s !important;
}
.loc-item:hover,
.rd-city-item:hover {
  background: linear-gradient(135deg, #f0faf3, #e8f5ee) !important;
}

/* ── Bouton recherche covoiturage — premium ── */
.cov-search-btn {
  border-radius: 16px !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  box-shadow: 0 4px 16px rgba(14,61,42,.2) !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
}
.cov-search-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(14,61,42,.25) !important;
}

/* ── Chips trajets populaires — arrondis ── */
.cov-route-chip {
  border-radius: 14px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid #dce5df !important;
  transition: all .2s !important;
}
.cov-route-chip:hover {
  background: var(--g, #0e3d2a) !important;
  color: #fff !important;
  border-color: var(--g, #0e3d2a) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(14,61,42,.2) !important;
}

/* ══ 5. MOBILE POLISH ══ */
@media (max-width: 768px) {

  #sec-bus .bus-search-body,
  .cov-search-body {
    padding: 6px 12px 14px !important;
  }

  #sec-bus .bus-search-title,
  .cov-search-title {
    padding: 14px 14px 6px !important;
  }

  #sec-bus .bus-type-filter {
    padding: 10px 12px 14px !important;
  }

  #sec-bus .bus-search-divider,
  .cov-search-divider {
    margin: 0 12px !important;
  }

  .cov-search-footer {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 12px 14px !important;
  }

  .cov-search-actions {
    width: 100% !important;
  }

  .cov-search-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .cov-popular {
    padding: 10px 12px 14px !important;
  }
}
#sec-bus .search-input-group,
#sec-bus .bus-search-body,
#sec-bus .journey-field,
.cov-search-body,
.cov-journey-step,
.cov-journey-field,
.region-select-wrap {
  overflow: visible !important;
}

#sec-bus .bus-search-card,
.cov-search-card {
  overflow: visible !important;
}
@media (max-width: 400px) {
  #sec-bus .search-input-group input {
    font-size: 14px !important;
    padding: 12px 0 !important;
  }
  .region-select-wrap input,
  .region-input,
  .cov-date-select {
    font-size: 14px !important;
    padding: 12px 14px !important;
  }
} 
/* ══════════════════════════════════════════════════════════════
   BUS RÉSULTATS — TOUT centré
   Coller à la fin du <style>
══════════════════════════════════════════════════════════════ */

/* Container résultats */
#br {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Titres sections centrés */
.bus-section-title,
.bus-direct-header,
#sec-bus .bus-direct-header,
#br .bus-section-title {
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0 !important;
  border-left: none !important;
  width: 100%;
}

/* Flash buttons centrés */
.bus-flash-grid,
#sec-bus .bus-flash-grid,
.bus-official-grid {
  justify-content: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 14px auto !important;
  width: 100%;
}

/* Panneau route centré */
.bus-route-panel,
#sec-bus .bus-route-panel {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* Header route centré */
.bus-route-header,
#sec-bus .bus-route-header {
  justify-content: center !important;
  text-align: center !important;
  flex-direction: column !important;
  align-items: center !important;
}

.bus-route-titre,
#sec-bus .bus-route-titre {
  text-align: center !important;
}

.bus-route-meta,
#sec-bus .bus-route-meta {
  justify-content: center !important;
}

.bus-route-footer,
#sec-bus .bus-route-footer {
  justify-content: center !important;
}

/* Sections résultats */
.bus-results-section {
  width: 100% !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Summary list centrée */
.bus-summary-list {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* SDD / TER cards centrés */
.sdd-schedule-card,
.ter-card,
#sec-bus .ter-card {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Particuliers centré */
.particulier-section,
.particulier-grid {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* No result centré */
#sec-bus .bus-no-result {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
} 
/* ══════════════════════════════════════════════════════════════
   BUS ROUTE FOOTER — Boutons Suivre / Favoris / WhatsApp
══════════════════════════════════════════════════════════════ */

.bus-route-footer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #eef2ee !important;
}

/* Bouton commun */
.brf-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 11px 20px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  border: 2px solid transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex: 1;
  max-width: 200px;
  min-width: 120px;
}
.brf-btn:active { transform: scale(.96) !important; }

/* ── Suivre mon trajet — vert ── */
.brf-trip {
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(14,61,42,.25) !important;
}
.brf-trip:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(14,61,42,.3) !important;
}

/* ── Favoris — doré ── */
.brf-fav {
  background: linear-gradient(135deg, #fffdf5, #fff8e6) !important;
  color: #8a6400 !important;
  border: 2px solid #e8d590 !important;
}
.brf-fav:hover {
  background: linear-gradient(135deg, #C68400, #E59D00) !important;
  color: #fff !important;
  border-color: #C68400 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(212,150,10,.25) !important;
}

/* ── WhatsApp — vert WA ── */
.brf-wa {
  background: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,211,102,.25) !important;
}
.brf-wa:hover {
  background: #1DA851 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37,211,102,.3) !important;
}

/* ── Mobile : empilés ── */
@media (max-width: 480px) {
  .brf-btn {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 13px 18px !important;
    font-size: 14px !important;
    border-radius: 16px !important;
  }
}

/* ══ TRIP BANNER — Barre de suivi GPS ══ */
.trip-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  font-weight: 700; font-size: 13px;
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e); color: #fff;
}
.trip-banner.show { transform: translateY(0); }
.trip-banner.alert { background: linear-gradient(135deg, #E31B23, #a01018); }
.trip-banner.warn { background: linear-gradient(135deg, #E67E22, #D35400); }

.trip-stop-btn {
  background: rgba(255,255,255,.18); color: #fff; border: none;
  padding: 6px 14px; border-radius: 10px; font-weight: 700;
  cursor: pointer; font-size: 12px; flex-shrink: 0;
}

/* ══ CLIGNOTEMENT arrêt imminent ══ */
@keyframes stopBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,27,35,0); }
  50% { box-shadow: 0 0 0 8px rgba(227,27,35,.4); }
}
.v-stop-item.blink-alert .v-stop-dot {
  animation: stopBlink .8s ease-in-out infinite !important;
  background: #E31B23 !important;
  border-color: #E31B23 !important;
  width: 18px !important; height: 18px !important;
}
.v-stop-item.blink-alert .v-stop-name {
  color: #E31B23 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

/* ══ Bannière partage WhatsApp live ══ */
.wa-live-card {
  background: linear-gradient(135deg, #dcf8c6, #e8fdd5);
  border: 2px solid #25D366; border-radius: 16px;
  padding: 14px 16px; margin: 10px 0;
  display: flex; align-items: center; gap: 12px;
}
.wa-live-icon { font-size: 32px; flex-shrink: 0; }
.wa-live-body { flex: 1; }
.wa-live-title { font-weight: 800; font-size: 13px; color: #075e54; }
.wa-live-sub { font-size: 11.5px; color: #128c7e; margin-top: 2px; }
.wa-live-btn {
  background: #25D366; color: #fff; border: none;
  padding: 8px 16px; border-radius: 12px;
  font-weight: 800; font-size: 12px; cursor: pointer;
}
/* Barre d'actions centrée */
.bus-action-bar {
    display: flex;
    gap: 10px; /* Espace entre les boutons */
    margin-top: 15px;
}

.action-btn {
    flex: 1; /* Chaque bouton prendra 50% de l'espace disponible */
    padding: 12px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}
.action-btn:active { transform: scale(0.95); }
.btn-follow { background: #00C853; color: white; }
.btn-fav { background: #FFD700; color: #333; }
.btn-share { background: #25D366; color: white; }

/* Animation clignotante rouge pour l'arrêt approaching */
.v-stop-dot.approaching {
    background: var(--vr, #ff0000) !important;
    animation: blink-dot 0.5s infinite;
    width: 14px !important;
    height: 14px !important;
    margin-left: -3px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}
@keyframes blink-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}
.v-stop-item.approaching-item .v-stop-name {
    color: var(--vr, #ff0000);
    font-weight: bold;
}

/* ══ COVOITURAGE — résultats 55% PC + recherche auto ══ */
.cov-auto-hint{
  font-size:12px;color:#1d9e75;font-weight:700;
  display:inline-flex;align-items:center;gap:5px;
}
#covr{ width:100%; }
@media (min-width: 768px){
  #covr{ width:55%; max-width:700px; margin-left:auto; margin-right:auto; }
}
/* ═══════════════════════════════════════════════════════════
   AUTOCOMPLETE COVOITURAGE v2 — Dans le BODY
   ═══════════════════════════════════════════════════════════ */
.cov-dropdown {
  position: fixed !important;
  z-index: 10000 !important;
  background: #1a1a2e;
  border: 1px solid #2d2d5e;
  border-radius: 0 0 12px 12px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cov-dropdown::-webkit-scrollbar { width: 5px; }
.cov-dropdown::-webkit-scrollbar-track { background: transparent; }
.cov-dropdown::-webkit-scrollbar-thumb { background: #3d3d7e; border-radius: 3px; }

.cov-dd-region {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.cov-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.cov-dd-item:hover,
.cov-dd-highlight {
  background: rgba(29, 158, 117, 0.18) !important;
}

.cov-dd-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.cov-dd-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cov-dd-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cov-dd-name strong {
  color: #34d399;
  font-weight: 800;
}

.cov-dd-dist {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  font-weight: 700;
}

.cov-dd-sub {
  display: none;
}

.cov-dd-start .cov-dd-name { color: #fff; }
.cov-dd-contains .cov-dd-name { color: #d1d5db; }
.cov-dd-fuzzy .cov-dd-name { color: #9ca3af; font-style: italic; }
.cov-dd-region .cov-dd-name { color: #9ca3af; }
.cov-dd-nearest .cov-dd-name { color: #fff; }

.cov-dd-empty {
  padding: 16px 14px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.cov-gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(29, 158, 117, 0.12);
  color: #34d399;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
}

.cov-gps-badge.detecting {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  animation: covPulse 1.5s infinite;
}

@keyframes covPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
} 
 .cov-results-box{ width:100%; }
@media (min-width:768px){ .cov-results-box{ width:55%; max-width:700px; margin:0 auto; } } 
 .cov-wa-btn {
    display: none !important;
}
        .cov-result-actions .btn {
    padding: 2px 20px;
    font-size: 12px;
    background: rgba(251, 191, 36, 0.12);
}
/* ═══════════════════════════════════════════════
   PATCH MOBILE — footer visible, nav Accueil, accueil compact
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* — Hauteur réelle (évite le bas coupé par la barre du navigateur) — */
  html, body, .app, #main { height: 100dvh; }
  #main { display: flex; flex-direction: column; }

  /* — Le contenu défile, le footer reste collé en bas, toujours visible — */
  #content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #xarit-footer-bar {
    display: flex !important;          /* on annule le display:none mobile */
    flex-shrink: 0;
    padding: 7px 12px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  #xarit-footer-bar .fb-copy   { font-size: 9.5px; }
  #xarit-footer-bar .fb-right  { gap: 8px; }
  #xarit-footer-bar .fb-link   { font-size: 9.5px; }
  #xarit-footer-bar .fb-counter-val { font-size: 10.5px; }

  /* — Sidebar / nav : l'item Accueil reste atteignable (nav défilable) — */
  #sidebar { overflow: hidden; display: flex; flex-direction: column; }
  #sidebar nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .topbar { position: sticky; top: 0; z-index: 50; }


.wb-t {
  color: #f0c56a;
}


.wb-btns .btn {
  background: #f0c56a;
  color: #0e3d2a;
  border: none;
  font-weight: 700;
}

  .g4 { gap: 6px;border: 1px solid rgba(0,0,0,.12); background: #EFFFED;  }
  .sc { padding: 6px 4px;border: 1px solid rgba(0,0,0,.12); }
  .sc-i { font-size: 1.6rem; margin-bottom: 1px; }
  .sc-n { font-size: 0.78rem; line-height: 1.05; }
  .sc-l { font-size: 0.62rem; line-height: 1.05; }

  .qb p { font-size: 12px;color: red; }
  .qp   { font-size: 11px; padding: 6px 10px; }
}
 .g4 .sc:hover {
  border-color: rgba(14,61,42,.35);         /* vert de ta charte au survol */
  box-shadow: 0 5px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.wb-btns { gap: 5px; }
.wb-btns .btn {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
}  
 /* Espace vertical avant le bloc Questions rapides */
.qb { margin-top: 24px; }       
@media (max-width: 768px) {
  .wb-t  { font-size: 16px; }      /* titre bienvenue — était 18px */
  .wb-s  { font-size: 14px; }      /* sous-titre — était 11px */
  .sc-i  { font-size: 2.2rem; }    /* émoji carte */
  .sc-n  { font-size: 1rem; }   /* chiffre/nom — était 0.78rem */
  .sc-l  { font-size: 0.75rem; }   /* label — était 0.62rem */
  .qp    { font-size: 11px; }      /* questions rapides */
} 
/* ══ TOPBAR — alignement 1 ligne + drapeaux ronds + thème ══ */
.topbar{
  display:flex !important;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap !important;
  overflow:hidden;
}
#ptitle{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topbar-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
}

/* Drapeaux circulaires compacts */

/* Bouton thème */
.theme-toggle-btn{
  width:30px; height:30px; border-radius:50%;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(0,0,0,.04);
  cursor:pointer; font-size:15px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:.18s;
}
.theme-toggle-btn:hover{ background:rgba(0,0,0,.09); }

/* ── Mobile : tout tient sur une ligne ── */
@media (max-width:768px){
  .topbar{ padding:6px 10px; gap:5px; }
  #ptitle{ font-size:14.5px; }
  .lang-btn{ width:19px; height:19px; }
  .theme-toggle-btn{ width:26px; height:26px; font-size:13px; }
  /* logo plus compact + on masque le sous-titre "Sénégal Connecté" */
  .topbar .logo .logo-row > div > div:first-child{ font-size:15px !important; }
  .topbar .logo .logo-row > div > div:last-child{ display:none !important; }
  /* bouton Sons Wolof réduit à l'icône */
  #wolof-cfg-btn{ font-size:0 !important; padding:5px 7px !important; }
  #wolof-cfg-btn::before{ content:"🎙️"; font-size:14px; }
}

/* ══ MODE SOMBRE ══ */
html[data-theme="dark"]{
  --bg:#0e1512; --bg2:#131d18;
  --txt:#e6efe9; --txt2:#9fb3a6; --txt3:#6e8377;
  --card-bg:#16211b; --bo2:#27352d; --t3:#27352d; --b:#e6efe9; --grn:#1d9e75;
  --color-background-primary:#16211b;
  --color-background-secondary:#0e1512;
  --color-text-primary:#e6efe9;
  --color-text-secondary:#9fb3a6;
  --color-border-primary:#3a4d42;
  --color-border-secondary:#27352d;
}
html[data-theme="dark"] body,
html[data-theme="dark"] #content,
html[data-theme="dark"] #main{ background:#0b0f0d; color:#e6efe9; }
html[data-theme="dark"] .topbar{ background:#0e1512; border-bottom:1px solid #27352d; }
html[data-theme="dark"] #ptitle{ color:#e6efe9; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .sc,
html[data-theme="dark"] .fc,
html[data-theme="dark"] .mch-card{
  background:#16211b !important; color:#e6efe9; border-color:#27352d !important;
}
html[data-theme="dark"] .g4 .sc{ background:#16211b !important; }
html[data-theme="dark"] .sc-n{ color:#e6efe9 !important; }
html[data-theme="dark"] .sc-l{ color:#9fb3a6 !important; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:#16211b !important; color:#e6efe9 !important; border-color:#3a4d42 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{ color:#6e8377 !important; }
html[data-theme="dark"] .theme-toggle-btn{
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); color:#fff;
}
html[data-theme="dark"] #sec-assistant{ background:#0b0f0d; }
html[data-theme="dark"] .bub{ background:#16211b; color:#e6efe9; border-color:#27352d; }    
 
/* ══ LOGO XARIT — stylé + brillance ══ */
.xarit-logo{
  display:flex; flex-direction:column; align-items:flex-start;
  margin-left:8px;                 /* décolle des drapeaux */
  padding-left:10px;
  border-left:1px solid rgba(0,0,0,.08);
  cursor:pointer; line-height:1; flex-shrink:0;
  user-select:none;
}
.xl-letters{
  position:relative; display:flex; gap:1px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:23px; font-weight:900; letter-spacing:.5px;
  overflow:hidden;
}
.xl-letters span{
  color:var(--c);
  text-shadow:
    0 1px 0 rgba(255,255,255,.45),
    0 2px 6px color-mix(in srgb, var(--c) 45%, transparent);
  transition:transform .2s;
}
.xarit-logo:hover .xl-letters span{ transform:translateY(-2px); }

/* trait de lumière qui balaye les lettres */
.xl-shine{
  position:absolute; top:0; left:-60%;
  width:40%; height:100%;
  background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.85) 50%,transparent 100%);
  transform:skewX(-20deg);
  pointer-events:none;
  animation:xlShine 4.5s ease-in-out infinite;
}
@keyframes xlShine{
  0%,55%   { left:-60%; }
  80%,100% { left:130%; }
}
.xl-sub{
  margin-top:2px; font-size:9.5px; font-weight:700;
  letter-spacing:1.5px; text-transform:uppercase;
  background:linear-gradient(90deg,#2E8B57,#1E88E5,#FF8C00);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  opacity:.85;
}

/* Mobile : compact, sous-titre masqué */
@media (max-width:768px){
  .xarit-logo{ margin-left:5px; padding-left:7px; }
  .xl-letters{ font-size:18px; }
  .xl-sub{ display:none; }
}

/* Mode sombre */
html[data-theme="dark"] .xarit-logo{ border-left-color:rgba(255,255,255,.12); }
html[data-theme="dark"] .xl-letters span{
  text-shadow:
    0 1px 0 rgba(0,0,0,.5),
    0 0 10px color-mix(in srgb, var(--c) 65%, transparent);
} 
/* ── Agrandir les icônes de la sidebar sur mobile ── */
@media (max-width: 768px) {
  .ni-ico {
    font-size: 1.3rem;       /* ajuste : 1.4 / 1.6 / 1.8rem selon ton goût */
    line-height: 1;
  }
  /* un peu d'air autour pour que ce soit confortable au doigt */
  .ni {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }
}
.xarit-install-btn {
    margin-left: auto;        /* pousse le bouton à droite */

    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;      /* ← garde "Installer l'app" sur UNE seule ligne */

    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.8rem;

    padding: 8px 16px;        /* ← un peu d'air pour que le texte ne colle pas aux bords */

    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease-in-out;
}

.xarit-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}
.xarit-install-btn:active {
    transform: translateY(1px);
}

/* ══ Accueil : titre + bouton Installer sur UNE seule ligne ══ */
.wb-t{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  white-space:nowrap;
  min-width:0;
}
/* le bouton se colle à droite et ne rétrécit jamais le texte */
.wb-t .xarit-install-btn{
  margin-left:auto;
  flex-shrink:0;
}

/* 📱 MODIFICATIONS MOBILE ICI */
@media (max-width: 768px) {
  .wb-t { 
    gap: 4px; 
    font-size: 15px; 
  }
  
  .xarit-install-btn {
    font-size: 0.65rem;     /* ← Écriture plus petite (anciennement 0.72rem) */
    padding: 4px 8px;       /* ← Espace intérieur réduit (anciennement 6px 11px) */
    gap: 4px;               /* ← Espace réduit entre l'icône et le texte */
  }
}

/* 📱 Écrans très étroits (<380px) : bouton format "bulle" icône seule */
@media (max-width: 380px) {
  .xarit-install-btn span:not(.xib-icon) { 
    display: none; 
  }
  .xarit-install-btn { 
    padding: 6px;           /* ← Padding égal partout pour un bouton bien rond */
    border-radius: 50%; 
  }
} 
.qb1 {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 100%;
    margin: 10px 0;
  }

  /* Titre plus discret */
  .qb1 p {
    font-size: 0.8rem; /* Plus petit */
    color: #6b7280;    /* Gris discret au lieu du noir */
    margin: 0 0 8px 0;
    font-weight: 500;
  }

  /* Alignement des boutons */
  .qps {
    display: flex;
    flex-wrap: wrap;   /* Permet de passer à la ligne si manque d'espace */
    gap: 6px;          /* Espace réduit entre les boutons */
    align-items: center;
  }

  /* Style des boutons (petits et discrets) */
  .qp {
    background-color: lightgreen;
    border: 1px solid #e5e7eb; /* Bordure très fine et claire */
    color: #4b5563;            /* Texte gris foncé */
    font-size: 0.75rem;        /* Petite police */
    padding: 4px 10px;         /* Marges internes réduites */
    border-radius: 16px;       /* Bords arrondis style "pilule" */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  /* Effet au survol léger */
  .qp:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
  }
/* ══════════════════════════════════════════════════════════════
   Bouton « Installer l'app » — texte TOUJOURS visible, 1 ligne
══════════════════════════════════════════════════════════════ */

/* Titre + bouton sur une seule ligne */
.wb-t{
  display:flex !important;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap !important;
  white-space:nowrap;
  min-width:0;
}
.wb-t > span[data-i18n="home.welcome_to"]{
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Bouton — pilule dorée, texte toujours affiché */
.xarit-install-btn{
  flex:0 0 auto;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  background:linear-gradient(135deg,#BDD9FF 0%,#FFFFFF 100%);
  color:white;
  font-weight:800;
  letter-spacing:.2px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(212,150,10,.35);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  /* taille par défaut (PC) */
  font-size:.8rem;
  padding:8px 16px;
}
.xarit-install-btn .xib-icon{ font-size:1.05em; line-height:1; }
.xarit-install-btn .xib-text{ display:inline !important; }   /* jamais masqué */
.xarit-install-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 7px 20px rgba(212,150,10,.45);
  filter:brightness(1.04);
}
.xarit-install-btn:active{ transform:translateY(0) scale(.97); }

/* Mobile : on rétrécit le texte, mais on le GARDE — pas de cercle */
@media (max-width:480px){
  .wb-t{ gap:6px; font-size:15px; }
  .xarit-install-btn{
    font-size:.68rem;
    padding:6px 11px;
    gap:4px;
    border-radius:999px;   /* pilule, pas cercle */
  }
}
/* ═══════════════════════════════════════════════════════════
   XARIT AUTH — Styles masquage contacts
════════════════════════════════════════════════════════════ */

/* Bouton contact masqué (téléphone, WhatsApp, email) */
.xauth-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
}

.xauth-locked:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.xauth-locked:active {
  transform: scale(0.97);
}

/* Animation pulse subtile sur le 🔒 */
.xauth-locked::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: xauth-pulse 2s infinite;
}

@keyframes xauth-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Email inline masqué (dans du texte) */
.xauth-email-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-color: #f59e0b;
}

.xauth-email-inline:hover {
  text-decoration-color: #0e3d2a;
}

/* Overlay modal */
#xauth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

#xauth-overlay.xauth-open {
  opacity: 1;
  pointer-events: auto;
}

.xauth-box {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform .25s ease;
}

#xauth-overlay.xauth-open .xauth-box {
  transform: translateY(0);
}

.xauth-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.xauth-logo {
  font-size: 24px;
  font-weight: 900;
  color: #0e3d2a;
  letter-spacing: -0.5px;
}

.xauth-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.xauth-close:hover {
  background: #eee;
  transform: rotate(90deg);
}

.xauth-reason {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.xauth-title {
  font-size: 18px;
  font-weight: 800;
  color: #0a1f0e;
  margin-bottom: 6px;
}

.xauth-sub {
  font-size: 13px;
  color: #6b7c6e;
  margin-bottom: 16px;
}

.xauth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: all .18s;
  margin-bottom: 12px;
}

.xauth-input:focus {
  border-color: #0e3d2a;
  box-shadow: 0 0 0 4px rgba(14, 61, 42, 0.1);
}

.xauth-otp {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 12px;
}

.xauth-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s;
  margin-bottom: 10px;
}

.xauth-btn:hover {
  background: linear-gradient(135deg, #1a5c3e, #247a52);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 61, 42, 0.3);
}

.xauth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.xauth-btn-sec {
  width: 100%;
  height: 44px;
  background: none;
  color: #6b7c6e;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.xauth-btn-sec:hover {
  border-color: #0e3d2a;
  color: #0e3d2a;
}

.xauth-code-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px dashed #22c55e;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.xcb-label {
  font-size: 11px;
  color: #166534;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.xcb-code {
  font-size: 42px;
  font-weight: 900;
  color: #15803d;
  letter-spacing: 16px;
  font-family: 'Courier New', monospace;
}

.xcb-note {
  font-size: 11px;
  color: #4ade80;
  margin-top: 8px;
}

.xauth-success-ico {
  font-size: 56px;
  text-align: center;
  margin-bottom: 12px;
}

.xauth-toast {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #ef4444;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  animation: xauth-toast-in .3s ease;
}

@keyframes xauth-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Topbar user */
#topbar-user {
  display: flex;
  align-items: center;
}

.tu-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
}

.tu-login-btn:hover {
  background: rgba(255,255,255,0.25);
}

.tu-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50px;
  transition: background .15s;
}

.tu-badge:hover {
  background: rgba(255,255,255,0.1);
}

.tu-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0C56A, #D4960A);
  color: #041a0f;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tu-nm {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tu-ch {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  transition: transform .2s;
}

.tu-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all .2s ease;
  z-index: 1000;
}

.tu-menu.tu-menu-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tu-menu-nom {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0a1f0e;
}

.tu-menu-sep {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

.tu-menu-item {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all .15s;
}

.tu-menu-item:hover {
  background: #f8f8f8;
  color: #0e3d2a;
}

/* Block messages assistant */
.auth-block-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 16px;
  text-align: center;
  margin-top: 8px;
}

.abm-icon {
  font-size: 36px;
}

.abm-text {
  font-size: 14px;
  color: #92400e;
  line-height: 1.5;
  font-weight: 600;
}

.abm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s;
}
/* ═══════════════════════════════════════════════════════════
   XARIT AUTH — Styles modals et masquage
════════════════════════════════════════════════════════════ */

/* ── Overlay modal ──────────────────────────────────────── */
#xauth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#xauth-overlay.xauth-open { display: flex; }

/* ── Box modale ────────────────────────────────────────── */
.xauth-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  position: relative;
}
.xauth-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
}
.xauth-logo {
  font-size: 20px;
  font-weight: 900;
  color: #0e3d2a;
}
.xauth-close {
  width: 36px; height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.xauth-close:hover { background: #e0e0e0; }

/* ── Reason ─────────────────────────────────────────────── */
.xauth-reason {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffe082;
  border-radius: 12px;
  margin: 0 24px 16px;
  padding: 12px 16px;
  font-size: 13px;
  color: #856404;
  text-align: center;
  line-height: 1.5;
}

/* ── Steps ─────────────────────────────────────────────── */
.xauth-step { padding: 0 24px 24px; }
.xauth-title {
  font-size: 20px;
  font-weight: 900;
  color: #1a2a1e;
  margin-bottom: 6px;
}
.xauth-sub {
  font-size: 13px;
  color: #6b7c6e;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Inputs ────────────────────────────────────────────── */
.xauth-input {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  border: 2px solid #e0e8e2;
  border-radius: 14px;
  outline: none;
  margin-bottom: 10px;
  font-family: inherit;
  transition: .2s;
}
.xauth-input:focus {
  border-color: #0e3d2a;
  box-shadow: 0 0 0 4px rgba(14,61,42,.12);
}
.xauth-otp {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 12px;
  height: 64px;
}

/* ── Code box (mode gratuit téléphone) ─────────────────── */
.xauth-code-box {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #a5d6a7;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.xcb-label { font-size: 12px; color: #2e7d32; font-weight: 600; margin-bottom: 8px; }
.xcb-code {
  font-size: 36px;
  font-weight: 900;
  color: #1b5e20;
  letter-spacing: 16px;
  padding: 8px 0;
}
.xcb-note { font-size: 11px; color: #388e3c; margin-top: 8px; }

/* ── Boutons ───────────────────────────────────────────── */
.xauth-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  margin-bottom: 10px;
}
.xauth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,61,42,.3); }
.xauth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.xauth-btn-sec {
  width: 100%;
  height: 44px;
  border: 2px solid #e0e8e2;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #4a6a54;
  transition: .15s;
}
.xauth-btn-sec:hover { background: #f5f8f6; }

/* ── Succès ────────────────────────────────────────────── */
.xauth-success-ico {
  font-size: 56px;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Toast interne modal ───────────────────────────────── */
.xauth-toast {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: #d32f2f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  z-index: 10;
}

/* ── Topbar user ───────────────────────────────────────── */
#topbar-user { margin-left: 8px; }
.tu-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid rgba(14,61,42,.3);
  background: rgba(14,61,42,.06);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #0e3d2a;
  cursor: pointer;
  transition: .15s;
}
.tu-login-btn:hover { background: rgba(14,61,42,.12); }

.tu-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1.5px solid rgba(14,61,42,.15);
  background: rgba(14,61,42,.04);
  border-radius: 50px;
  cursor: pointer;
  transition: .15s;
}
.tu-badge:hover { background: rgba(14,61,42,.08); }
.tu-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}
.tu-nm { font-size: 13px; font-weight: 700; color: #1a2a1e; }
.tu-ch { font-size: 10px; color: #888; }

.tu-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  border: 1px solid #e8f0ea;
  min-width: 200px;
  overflow: hidden;
  z-index: 1000;
}
.tu-menu.tu-menu-open { display: block; }
.tu-menu-nom {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1a2a1e;
}
.tu-menu-sep { height: 1px; background: #f0f0f0; }
.tu-menu-item {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: .12s;
}
.tu-menu-item:hover { background: #f8faf8; color: #0e3d2a; }

/* ── Éléments masqués (téléphone/email/wa) ──────────────── */
.xauth-locked {
  position: relative;
  cursor: pointer !important;
  transition: .15s;
}
.xauth-locked:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}
.xauth-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: inherit;
  pointer-events: none;
}

/* ── Phone/Email masqué dans les cartes ─────────────────── */
.xa-masked-phone,
.xa-masked-email,
.xa-masked-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  border: 1px solid;
}
.xa-masked-phone {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}
.xa-masked-phone:hover { background: #c8e6c9; }
.xa-masked-email {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}
.xa-masked-email:hover { background: #bbdefb; }
.xa-masked-wa {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #25d366;
}
.xa-masked-wa:hover { background: #c8e6c9; }

.xa-lock-icon {
  font-size: 14px;
  opacity: .7;
}

/* ── Versions révélées (connecté) ───────────────────────── */
.xa-revealed-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  text-decoration: none;
  transition: .15s;
}
.xa-revealed-phone:hover { background: #c8e6c9; }
.xa-revealed-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
  text-decoration: none;
  transition: .15s;
}
.xa-revealed-email:hover { background: #bbdefb; }
.xa-revealed-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #dcf8c6;
  border: 1px solid #a5d6a7;
  color: #128c7e;
  text-decoration: none;
  transition: .15s;
}
.xa-revealed-wa:hover { background: #c8e6c9; }

/* ── Block message assistant ────────────────────────────── */
.auth-block-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 2px dashed #ffe082;
  border-radius: 16px;
  margin: 10px 0;
}
.abm-icon { font-size: 36px; }
.abm-text { font-size: 14px; color: #856404; text-align: center; line-height: 1.5; }
.abm-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.abm-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,61,42,.3); }

/* ── Mobile responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .xauth-box { border-radius: 20px; }
  .xauth-hdr { padding: 16px 20px 10px; }
  .xauth-step { padding: 0 20px 20px; }
  .xauth-title { font-size: 18px; }
  .xcb-code { font-size: 28px; letter-spacing: 10px; }
  .tu-nm { display: none; }
}
.abm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 61, 42, 0.3);
}
/* ── Fix menu déconnexion : neutralise le conflit des 2 blocs .tu-menu ── */
.tu-menu {
  display: none;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}
.tu-menu.tu-menu-open {
  display: block !important;
} 
/* ── Fix position menu déconnexion : collé sous le badge ── */
#topbar-user { position: relative; }
.tu-menu {
  top: calc(100% + 6px) !important;
  right: 0 !important;
  margin-top: 0 !important;
}
/* ══════════════════════════════════════════════════════════════
   PATCH — Bus Régions (SDD) anti-chevauchement + Sidebar PC compacte
   À coller À LA FIN du <style>
══════════════════════════════════════════════════════════════ */

/* 1 ── Panneau régions : largeur maîtrisée + centré */
#sdd-quick-panel {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto 16px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff, #faf6fd) !important;
  box-shadow: 0 4px 18px rgba(123, 31, 162, .08) !important;
}

/* 2 ── Chaque ligne régionale = carte distincte (fin du chevauchement) */
#sdd-quick-panel > div[style*="background:#fff"] {
  position: relative;
  margin: 0 0 12px !important;
  padding: 14px 16px !important;
  border: 1px solid #ecdcf4 !important;
  border-left: 4px solid #7B1FA2 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05) !important;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
#sdd-quick-panel > div[style*="background:#fff"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(123, 31, 162, .14) !important;
}
/* le badge prix reste collé à la carte, pas au bord de l'écran */
#sdd-quick-panel > div[style*="background:#fff"] > div:first-child {
  gap: 10px !important;
}

/* 3 ── Cartes SDD issues de la recherche (renderSDDCardImproved) */
.sdd-schedule-card {
  max-width: 680px !important;
  margin: 0 auto 14px !important;
}

/* 4 ── Sidebar compacte sur PC (réduit l'espace vertical) */
@media (min-width: 769px) {
  #sidebar nav { padding-top: 4px; }
  .ni {
    margin-bottom: 1px !important;
    padding: 7px 12px !important;
    gap: 10px;
    border-radius: 10px;
    transition: background .15s, transform .1s;
  }
  .ni:hover { background: rgba(255,255,255,.06); }
  .ni.on { transform: translateX(2px); }
  .ni-ico { font-size: 1.05rem; }
  .nav-sec { margin: 4px 0 2px !important; }
}
/* ── Force largeur particuliers via le conteneur #br ── */
#br { width: 100% !important; align-items: stretch !important; }
#br .particulier-section,
#br .particulier-grid,
#br .bus-results-section:has(.particulier-grid) {
  max-width: 680px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#br .particulier-card,
#br .particulier-grid .cov-result-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* Animation d'entrée spectaculaire */
@keyframes spectacularEntrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg) translateY(-100px);
    box-shadow: 0 0 0 0 rgba(14,61,42,0);
  }
  50% {
    transform: scale(1.05) rotate(1deg) translateY(-5px);
    box-shadow: 0 12px 40px rgba(14,61,42,0.5);
  }
  70% {
    transform: scale(0.98) rotate(0deg) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
    box-shadow: 0 6px 20px rgba(14,61,42,0.3);
  }
}

/* Effet de scintillement doré */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-spectacular {
  /* Style existant */
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #0e3d2a, #059669);
  color: #f0c56a;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14,61,42,.3);
  
  /* Animation d'entrée - 1.2s duree, ease-out pour un effet élastique */
  animation: spectacularEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  
  /* Position relative pour l'effet de brillance */
  position: relative;
  overflow: hidden;
}

/* Effet de brillance qui glisse sur le bouton */
.btn-spectacular::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 197, 106, 0.1) 30%,
    rgba(240, 197, 106, 0.3) 50%,
    rgba(240, 197, 106, 0.1) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite 1.2s;
  pointer-events: none;
}

/* Effet hover amélioré */
.btn-spectacular:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(14,61,42,0.5);
  transition: all 0.3s ease;
}
/* ══════════════════════════════════════════════════════════════
   XARIT-MODERN.CSS — Lifting design global v1.0
   À lier EN DERNIER dans <head> :
   <link rel="stylesheet" href="xarit-modern.css?v=1">
   Additive : ne casse rien, se retire en 1 ligne.
   Charte : vert #0e3d2a · or #f0c56a · Plus Jakarta Sans
══════════════════════════════════════════════════════════════ */
/* ══ PATCH v1.4 — Questions rapides : nouveau look ══ */
.qp {
  background: linear-gradient(135deg, #eaf6fd, #dceefb) !important;  /* bleu ciel doux */
  border: 1.5px solid #b5dcf2 !important;
  color: #175a80 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(23,90,128,.08);
}
.qp:hover {
  background: linear-gradient(135deg, #2c8fc4, #1d6f9e) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,111,158,.28);
}

/* Mode sombre */
html[data-theme="dark"] .qp {
  background: rgba(135,206,235,.10) !important;
  border-color: rgba(135,206,235,.25) !important;
  color: #9fd6f0 !important;
}
html[data-theme="dark"] .qp:hover {
  background: rgba(135,206,235,.22) !important;
  color: #fff !important;
}
/* ── 1. TOKENS ──────────────────────────────────────────────── */
:root {
  --xm-green: #0e3d2a;
  --xm-green-2: #1a5c3e;
  --xm-green-deep: #041a0f;
  --xm-gold: #f0c56a;
  --xm-gold-2: #d4960a;
  --xm-ink: #10231a;
  --xm-ink-2: #4f6a5b;
  --xm-surface: #ffffff;
  --xm-surface-2: #f4f8f5;
  --xm-line: rgba(14, 61, 42, .10);

  --xm-r-sm: 12px;
  --xm-r: 18px;
  --xm-r-lg: 24px;

  --xm-sh-1: 0 1px 2px rgba(10, 31, 20, .05), 0 4px 14px rgba(10, 31, 20, .06);
  --xm-sh-2: 0 2px 4px rgba(10, 31, 20, .06), 0 12px 32px rgba(10, 31, 20, .12);
  --xm-sh-gold: 0 6px 22px rgba(212, 150, 10, .30);

  --xm-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── 2. BASE & TYPO ─────────────────────────────────────────── */
body, #main, #content {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--t1);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: lightgoldenrodyellow;
  background-image: url('icons/motif-africain.svg');
  background-repeat: repeat;
  background-size: 120px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
#content {
  background-color: transparent;
  background-image: url('icons/motif-africain.svg');
  background-repeat: repeat;
  background-size: 120px;
}

/* Titres de cartes plus affirmés */
.ch {
  font-weight: 800 !important;
  letter-spacing: -.02em;
  color: var(--xm-ink) !important;
}

/* Scrollbars fines et discrètes partout */
#content::-webkit-scrollbar, .sec::-webkit-scrollbar { width: 8px; }
#content::-webkit-scrollbar-thumb, .sec::-webkit-scrollbar-thumb {
  background: rgba(14,61,42,.18); border-radius: 8px;
  border: 2px solid transparent; background-clip: content-box;
}
#content::-webkit-scrollbar-thumb:hover { background-color: rgba(14,61,42,.32); }

/* Focus clavier visible et élégant (accessibilité) */
:where(button, input, select, textarea, a, [onclick]):focus-visible {
  outline: 2px solid var(--xm-gold-2) !important;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── 3. TOPBAR — verre dépoli ───────────────────────────────── */
.topbar {
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--xm-line) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 18px rgba(10,31,20,.05) !important;
}
#ptitle {
  font-weight: 800 !important;
  letter-spacing: -.02em;
  color: var(--xm-ink) !important;
}
.topbar-visitors {
  background: linear-gradient(135deg, rgba(240,197,106,.16), rgba(240,197,106,.06)) !important;
  border-color: rgba(212,150,10,.35) !important;
}
.theme-toggle-btn {
  border: 1px solid var(--xm-line) !important;
  background: var(--xm-surface-2) !important;
  transition: transform .25s var(--xm-ease), background .2s;
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.08); }

/* ── 4. SIDEBAR — profondeur teranga ────────────────────────── */
#sidebar {
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(240,197,106,.10), transparent 55%),
    linear-gradient(170deg, #05150c 0%, #0a2416 45%, #0e3d2a 100%) !important;
  border-right: 1px solid rgba(255,255,255,.06);
}
.ni {
  border-radius: 12px !important;
  margin: 2px 8px !important;
  color: rgba(255,255,255,.72);
  position: relative;
  transition: background .18s var(--xm-ease), color .18s, transform .18s !important;
}
.ni:hover {
  background: rgba(255,255,255,.07) !important;
  color: #fff;
  transform: translateX(3px);
}
.ni.on {
  background: linear-gradient(90deg, rgba(240,197,106,.18), rgba(240,197,106,.04)) !important;
  color: #fff !important;
  font-weight: 700;
}
/* Barre-témoin dorée sur l'item actif — signature */
.ni.on::before {
  content: '';
  position: absolute;
  left: -8px; top: 18%;
  height: 64%; width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--xm-gold), var(--xm-gold-2));
  box-shadow: 0 0 12px rgba(240,197,106,.55);
}
.ni-badge, .nb-ia {
  background: linear-gradient(135deg, var(--xm-gold), var(--xm-gold-2)) !important;
  color: var(--xm-green-deep) !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(212,150,10,.35);
}
.sf {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(0,0,0,.22) !important;
  backdrop-filter: blur(6px);
}

/* ── 5. CARTES — unification douce ──────────────────────────── */
.sec .card, .mch-card, .fc, .cinfo-card,
.contact-profile-card, .contact-about-card, .contact-form-card,
.sdd-schedule-card, .ecoles-table, .pub-card, .ep-item {
  border-radius: var(--xm-r) !important;
  border: 1px solid var(--xm-line) !important;
  box-shadow: var(--xm-sh-1) !important;
  transition: transform .22s var(--xm-ease), box-shadow .22s var(--xm-ease) !important;
}
.card:hover, .fc:hover, .cinfo-card:hover, .ep-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--xm-sh-2) !important;
}


.wb-t {
  color: #ffffff;
}

.wb-btns .btn {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1.5px solid #f0c56a;
  font-weight: 700;
}
/* Liseré tricolore fin en haut du hero — clin d'œil 🇸🇳 */
.wb::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    #00853f 0 33.3%, #fdef42 33.3% 66.6%, #ef2118 66.6% 100%);
  opacity: .85;
}
.wb-t { color: #fff !important; }

/* ── 6. STAT CARDS (.sc) — tuiles modernes ──────────────────── */
.g4 { gap: 10px !important; background: transparent !important; border: none !important; }
.sc {
  background: var(--xm-surface) !important;
  border: 1px solid var(--xm-line) !important;
  border-radius: var(--xm-r-sm) !important;
  box-shadow: var(--xm-sh-1) !important;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--xm-ease), box-shadow .2s var(--xm-ease),
              border-color .2s !important;
}
.sc::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(180px 90px at 50% -30%, rgba(240,197,106,.18), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.sc:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212,150,10,.45) !important;
  box-shadow: 0 10px 26px rgba(10,31,20,.12) !important;
}
.sc:hover::after { opacity: 1; }
.sc-n { font-family: 'Plus Jakarta Sans', sans-serif !important; font-weight: 900 !important; }

/* ── 7. BOUTONS — pilules unifiées ──────────────────────────── */
.btn, .mch-btn, .cfc-submit, .pub-submit-btn, .xauth-btn,
.cov-search-btn, .abm-btn {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  transition: transform .18s var(--xm-ease), box-shadow .18s var(--xm-ease),
              filter .18s !important;
}
.btn:hover, .mch-btn:hover, .cfc-submit:hover, .xauth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn:active, .mch-btn:active { transform: scale(.97) !important; }

/* Boutons principaux → dégradé vert signature */
.mch-btn, .cfc-submit, .xauth-btn, .abm-btn, .btn.bp {
  background: linear-gradient(135deg, var(--xm-green), var(--xm-green-2)) !important;
  box-shadow: 0 6px 18px rgba(14,61,42,.25) !important;
  color: #fff !important;
}
.mch-btn:hover, .cfc-submit:hover {
  box-shadow: 0 10px 26px rgba(14,61,42,.32) !important;
}

/* Bouton installer — or premium */
.xarit-install-btn {
  background: linear-gradient(135deg, var(--xm-gold) 0%, var(--xm-gold-2) 100%) !important;
  color: var(--xm-green-deep) !important;
  box-shadow: var(--xm-sh-gold) !important;
}

/* Chips (suggestions, routes populaires, filtres) */
.mch-chip, .qp, .asst-chips button, .cov-route-chip, .btf {
  border-radius: 999px !important;
  border: 1.5px solid var(--xm-line) !important;
  background: var(--xm-surface) !important;
  font-weight: 600 !important;
  transition: all .18s var(--xm-ease) !important;
}
.mch-chip:hover, .qp:hover, .asst-chips button:hover, .cov-route-chip:hover {
  border-color: var(--xm-green) !important;
  background: var(--xm-green) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14,61,42,.18);
}

/* ── 8. INPUTS — champs unifiés premium ─────────────────────── */
.sec:not(#sec-priere) input:not([type="checkbox"]):not([type="radio"]),
.sec:not(#sec-priere) select,
.sec:not(#sec-priere) textarea,
.mch-input, .cfc-input, .xauth-input {
  border-radius: 14px !important;
  border: 1.5px solid #dbe6de !important;
  background: #fbfdfc !important;
  transition: border-color .2s var(--xm-ease), box-shadow .2s var(--xm-ease),
              background .2s !important;
}
input:focus, select:focus, textarea:focus,
.mch-input:focus, .cfc-input:focus, .xauth-input:focus {
  border-color: var(--xm-green) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(14,61,42,.09) !important;
}

/* ── 9. ONGLETS (tabs) — segmented control raffiné ──────────── */
.tabs {
  background: rgba(14,61,42,.06) !important;
  border-radius: 999px !important;
  padding: 5px !important;
  border: 1px solid var(--xm-line);
}
.tabs .tb { border-radius: 999px !important; }
.tabs .tb.on {
  background: #fff !important;
  color: var(--xm-green) !important;
  box-shadow: 0 2px 8px rgba(10,31,20,.12) !important;
  font-weight: 800 !important;
}
/* ══ PATCH v1.1 — corrections ══ */

/* 1. Carte OM ⇄ Wave : badges compacts, plus de débordement latéral */
.sc[onclick*="transfert"] .sc-i {
  font-size: .78rem !important;
  gap: 2px !important;
  flex-wrap: nowrap;
  overflow: hidden;
}
.sc[onclick*="transfert"] .sc-i span {
  padding: 2px 4px !important;
  font-size: .72em !important;
  border-radius: 4px !important;
  line-height: 1.1;
}
.sc[onclick*="transfert"] .sc-i span:nth-child(2) {
  padding: 0 !important;           /* la flèche ⇄ sans fond */
  font-size: 1em !important;
}

/* 2. Suppression du liseré tricolore animé (ligne vert-jaune-rouge) */
.wb::before {
  content: none !important;
  animation: none !important;
}/* ── 10. ASSISTANT — chat modernisé ─────────────────────────── */
#sec-assistant { background:
  radial-gradient(700px 300px at 100% 0%, rgba(240,197,106,.07), transparent 55%),
  #f4f8f5 !important;
}
.bub {
  border-radius: 6px 20px 20px 20px !important;
  border: 1px solid var(--xm-line) !important;
  box-shadow: var(--xm-sh-1) !important;
}
#sec-assistant .av {
  background: linear-gradient(135deg, var(--xm-green), var(--xm-green-2)) !important;
  box-shadow: 0 4px 14px rgba(14,61,42,.30) !important;
}
.asst-bar {
  border-radius: 999px !important;
  border: 1.5px solid var(--xm-line) !important;
  box-shadow: var(--xm-sh-1) !important;
  background: #fff !important;
}
.asst-bar:focus-within {
  border-color: var(--xm-green) !important;
  box-shadow: 0 0 0 4px rgba(14,61,42,.08), var(--xm-sh-2) !important;
}
.asst-send {
  background: linear-gradient(135deg, var(--xm-green), var(--xm-green-2)) !important;
  box-shadow: 0 3px 10px rgba(14,61,42,.28);
}
/*   prix                      */
améliore le style:/*   prix                      */
/* ═══ XARIT GARANT ═══ */
.xgarant-card{margin-top:16px;border:2px solid #f0c56a!important;background:linear-gradient(145deg,#fffdf5,#fff6dd)!important;overflow:hidden;position:relative}
.xg-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.xg-shield{font-size:38px;filter:drop-shadow(0 3px 6px rgba(212,150,10,.4))}
.xg-title{font-size:16px;font-weight:900;color:#0e3d2a}
.xg-sub{font-size:11.5px;color:#8a6400;font-weight:700}
.xg-body{font-size:13px;color:#3a2f10;line-height:1.6}
.xg-steps{margin:10px 0;display:flex;flex-direction:column;gap:6px}
.xg-step{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;background:rgba(255,255,255,.7);border-radius:10px;padding:7px 10px}
.xg-cats{font-size:11.5px;color:#6a4d00;font-weight:700;margin-top:4px}
.xg-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.xg-wa{flex:1;min-width:200px;text-align:center;background:#25D366;color:#fff;padding:12px 16px;border-radius:14px;font-weight:800;font-size:13.5px;text-decoration:none;box-shadow:0 4px 14px rgba(37,211,102,.3)}
.xg-wa:hover{background:#1DA851;transform:translateY(-2px)}
.xg-tel{text-align:center;background:#0e3d2a;color:#f0c56a;padding:12px 16px;border-radius:14px;font-weight:800;font-size:13.5px;text-decoration:none}
.xg-legal{font-size:10px;color:#9a8550;text-align:center;margin-top:10px;line-height:1.5}
/* ── 11. FOOTER ─────────────────────────────────────────────── */
#xarit-footer-bar {
  background: linear-gradient(135deg, #030f08 0%, #0a2716 100%) !important;
  border-top: 1px solid rgba(240,197,106,.14) !important;
}
/* ── 12. MODALES — verre + profondeur ───────────────────────── */
.modal, .xauth-box, .vwiz-box {
  border-radius: var(--xm-r-lg) !important;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 30px 80px rgba(4,26,15,.35) !important;
}
#xauth-overlay, .modal-overlay, .vwiz-overlay {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* ── 13. MODE SOMBRE — cohérence du lifting ─────────────────── */
html[data-theme="dark"] #content { background:
  radial-gradient(1100px 500px at 100% -10%, rgba(240,197,106,.05), transparent 60%),
  #0a0f0c !important;
}
html[data-theme="dark"] .topbar {
  background: rgba(14, 21, 18, .80) !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
}
html[data-theme="dark"] #ptitle { color: #e6efe9 !important; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .sc,
html[data-theme="dark"] .mch-card,
html[data-theme="dark"] .fc {
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.35) !important;
}
html[data-theme="dark"] .sc { background: #16211b !important; }
html[data-theme="dark"] .ch { color: #e6efe9 !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: rgba(255,255,255,.12) !important;
  background: #131d17 !important;
}
html[data-theme="dark"] .tabs { background: rgba(255,255,255,.05) !important; }
html[data-theme="dark"] .tabs .tb.on {
  background: #1c2a22 !important;
  color: var(--xm-gold) !important;
}
html[data-theme="dark"] .bub {
  border-color: rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .asst-bar { background: #16211b !important; }
html[data-theme="dark"] .mch-chip, html[data-theme="dark"] .qp,
html[data-theme="dark"] .asst-chips button,
html[data-theme="dark"] .cov-route-chip {
  background: #16211b !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #cfe0d5 !important;
}
/* ══ XARIT SPLASH — écran de chargement ══ */
#xarit-splash {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(240,197,106,.10), transparent 60%),
    linear-gradient(160deg, #030f08 0%, #0a2416 55%, #0e3d2a 100%);
  opacity: 1;
  transition: opacity .45s ease, visibility .45s;
}
#xarit-splash.xs-hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Lettres XARIT qui rebondissent en cascade */
.xs-logo { display: flex; gap: 3px; }
.xs-logo span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px; font-weight: 900; letter-spacing: 1px;
  color: var(--c);
  text-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent);
  animation: xsBounce 1.1s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes xsBounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-12px); }
  50%      { transform: translateY(0); }
}
.xarit-avatar-tech {
  width: 42px;
  height: 42px;
  border-radius: 12px; /* Style "Squircle" très tendance (bords légèrement arrondis) */
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Bleu nuit profond */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.xs-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240,197,106,.75);
}
/* ══ PATCH v1.5 ══ */

/* 1. Chiffres tabulaires : le compte à rebours ne tremble plus */
#sec-priere {
  font-variant-numeric: tabular-nums;
}

/* 2. Filet de sécurité lisibilité localité géolocalisée */
#sec-priere [id*="ville"], #sec-priere [class*="ville"],
#sec-priere [id*="loc"], #sec-priere [class*="loc"] {
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* 3. Bouton Installer — skyblue lisible, fini le gold criard */
.xarit-install-btn {
  background: linear-gradient(135deg, #1d6f9e, #2c8fc4) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(29,111,158,.35) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
.xarit-install-btn:hover {
  box-shadow: 0 7px 20px rgba(29,111,158,.45) !important;
  filter: brightness(1.08);
}
html[data-theme="dark"] .xarit-install-btn { color: #fff !important; }
/* Trois points tricolores 🇸🇳 qui pulsent */
.xs-dots { display: flex; gap: 8px; margin-top: 6px; }
.xs-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  animation: xsPulse 1s ease-in-out infinite;
}
.xs-dots i:nth-child(1) { background: #00853f; animation-delay: 0s; }
.xs-dots i:nth-child(2) { background: #fdef42; animation-delay: .18s; }
.xs-dots i:nth-child(3) { background: #ef2118; animation-delay: .36s; }
@keyframes xsPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.5); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .xs-logo span, .xs-dots i { animation: none !important; }
}
@media (max-width: 480px) {
  .xs-logo span { font-size: 34px; }
}
/* ── 14. MOBILE POLISH ──────────────────────────────────────── */
@media (max-width: 768px) {
  .card, .mch-card { border-radius: 16px !important; }
  .wb { border-radius: 18px !important; }
  .sc { border-radius: 12px !important; }
}

/* ── 15. ACCESSIBILITÉ — mouvement réduit ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Effet de pulse au clic (optionnel) */
.btn-spectacular:active {
  transform: scale(0.96);
  transition: all 0.1s ease;
}        
/* ── Fix déconnexion : laisser le menu déborder hors de la topbar ── */
.topbar { overflow: visible !important; }
.topbar-right { overflow: visible !important; }
#ptitle { overflow: hidden; text-overflow: ellipsis; }        
html[data-theme="dark"] .xarit-install-btn{ color:#1a1207; }

/* Mode sombre : texte du bouton reste lisible sur l'or */
html[data-theme="dark"] .xarit-install-btn{ color:#1a1207; } 
/* ══ FIX input-dans-input : input nu dans les conteneurs-pilule ══ */
/* ══ FIX v2 input-dans-input — spécificité maximale ══ */
#sec-assistant .asst-bar input,
#sec-assistant #ci,
#sec-bus .search-input-group input,
#sec-bus #bd,
#sec-bus #ba {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  padding-left: 0 !important;
}
#sec-assistant .asst-bar input:focus,
#sec-bus .search-input-group input:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* ══ ASSISTANT — homogénéisation avec le module Bus ══ */
.asst-bar {
  border: 2px solid #dce5df !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff 0%, #f9fcfa 100%) !important;
  padding: 5px 6px 5px 18px !important;
  box-shadow: 0 2px 10px rgba(14,61,42,.04) !important;
}
.asst-bar:focus-within {
  border-color: var(--xm-green, #0e3d2a) !important;
  box-shadow: 0 0 0 4px rgba(14,61,42,.07), 0 6px 20px rgba(14,61,42,.08) !important;
  background: #fff !important;
}
/* Micro = même style doré que le mic-btn du bus */
.asst-mic {
  width: 42px !important; height: 42px !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #F0C56A, #D4960A) !important;
  color: #041a0f !important;
  box-shadow: 0 3px 14px rgba(212,150,10,.35) !important;
  font-size: 17px !important;
}
.asst-mic.rec { background: linear-gradient(135deg,#e74c3c,#c0392b) !important; color:#fff !important; }
.asst-send {
  width: 42px !important; height: 42px !important;
  border-radius: 13px !important;
}
/* Chips assistant = même famille que les qp */
.asst-chips button { font-weight: 700 !important; }

html[data-theme="dark"] .asst-bar { background: #16211b !important; border-color: #27352d !important; }
/* ══ ASSISTANT — base chat (restauré) ══ */
#sec-assistant {
  display: none;
  flex-direction: column;
  height: 100%;
}
#sec-assistant.on { display: flex !important; }
#cmsg {
  flex: 1 1 auto;
  min-height: 0;              /* indispensable pour le scroll iOS */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 85%; }
.msg.b { align-self: flex-start; }
.msg.u { align-self: flex-end; flex-direction: row-reverse; }  /* messages utilisateur */
.msg-body { display: flex; flex-direction: column; gap: 2px; }
.bub {
  background: #fff;
  color: #333;
  padding: 8px 12px;
  font-size: .88rem;
  line-height: 1.35;
  border-radius: 4px 16px 16px 16px;
  border: 1px solid #eaeaea;
}
.msg.u .bub {
  background: linear-gradient(135deg, #0e3d2a, #1a5c3e);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
  border: none;
}
#sec-assistant .av {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cov-interet-msg, .cov-interet-msg button, .cov-msg-bubble {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  height: auto !important;
  text-align: left !important;
  line-height: 1.4 !important;
}
/* ══ FIX BULLES ASSISTANT — largeur & esthétique ══ */
#cmsg .msg{ max-width:88% !important; }
#cmsg .msg-body{ min-width:0; max-width:100%; }
#cmsg .bub{
  display:inline-block !important;
  width:auto !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:10px 15px !important;
  font-size:.92rem !important;
  line-height:1.5 !important;
  white-space:pre-wrap !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
#cmsg .msg.u .bub{
  background:linear-gradient(135deg,#0e3d2a,#1a5c3e) !important;
  color:#fff !important;
  border:none !important;
  border-radius:18px 18px 4px 18px !important;
}
#cmsg .msg.b .bub{
  border-radius:4px 18px 18px 18px !important;
}
@media (max-width:768px){
  #cmsg .msg{ max-width:92% !important; }
}
/* ══ FIX SELECT DATE COVOITURAGE — 50% centré ══ */
.cov-date-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}
.cov-date-select{
  width:50% !important;
  min-width:210px !important;
  max-width:340px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:block !important;
}
#cov-custom-date{
  width:50%;
  min-width:210px;
  max-width:340px;
  margin-left:auto;
  margin-right:auto;
}
@media (max-width:480px){
  .cov-date-select{ width:70% !important; }
  #cov-custom-date{ width:70%; }
}
/* ══ SONDAGES v1.2 — modale + ticker ══ */
#poll-modal-overlay .modal{max-width:460px;border-radius:22px;padding:22px;
  background:linear-gradient(180deg,#fff,#f6fbf8)}
#poll-modal-overlay .modal-h h3{font-size:17px;font-weight:900;color:#0e3d2a}
#poll-modal-overlay textarea,#poll-modal-overlay input,#poll-modal-overlay select{
  border:2px solid #dce5df!important;border-radius:14px!important;padding:12px 14px!important;
  font-size:14px!important;background:#fff!important;transition:.2s;
  color:#0e3d2a!important;-webkit-text-fill-color:#0e3d2a!important;caret-color:#0e3d2a}
#poll-modal-overlay ::placeholder{color:#8aa396!important;-webkit-text-fill-color:#8aa396!important;opacity:1}
#poll-modal-overlay :is(textarea,input,select):focus{
  border-color:#0e3d2a!important;box-shadow:0 0 0 4px rgba(14,61,42,.08)!important;outline:none}

/* THEME SOMBRE — doit repasser APRES la regle #poll-modal-overlay ci-dessus,
   qui gagne sur html[data-theme="dark"] input (specificite ID). */
html[data-theme="dark"] #poll-modal-overlay textarea,
html[data-theme="dark"] #poll-modal-overlay input,
html[data-theme="dark"] #poll-modal-overlay select{
  background:#16211b!important;color:#e6efe9!important;-webkit-text-fill-color:#e6efe9!important;
  border-color:#3a4d42!important;caret-color:#f0c56a}
html[data-theme="dark"] #poll-modal-overlay ::placeholder{
  color:#6e8377!important;-webkit-text-fill-color:#6e8377!important;opacity:1}
html[data-theme="dark"] #poll-modal-overlay .modal{
  background:linear-gradient(180deg,#111a15,#0d1512)!important}
html[data-theme="dark"] #poll-modal-overlay .modal-h h3{color:#e6efe9!important}
html[data-theme="dark"] #pm-opts>div{background:#16211b!important;border-color:#2b3b32!important}
#pm-opts>div{background:#f2f8f4;border:1px solid #e0ede4;border-radius:14px;padding:8px;margin-bottom:8px!important}
#pm-opts input[id^="pme"]{text-align:center;font-size:18px!important}
#poll-modal-overlay .btn.bp{border-radius:999px!important;padding:13px;font-weight:900;
  background:linear-gradient(135deg,#0e3d2a,#1a5c3e)!important;box-shadow:0 6px 18px rgba(14,61,42,.25)}
#snd-app input,#snd-app textarea,#snd-app select{border:2px solid #dce5df!important;
  border-radius:14px!important;padding:12px 14px!important;background:#fff!important;
  color:#0e3d2a!important;-webkit-text-fill-color:#0e3d2a!important}
#snd-app ::placeholder{color:#8aa396!important;-webkit-text-fill-color:#8aa396!important;opacity:1}
#snd-app :is(input,textarea,select):focus{border-color:#0e3d2a!important;
  box-shadow:0 0 0 4px rgba(14,61,42,.08)!important;outline:none}

html[data-theme="dark"] #snd-app input,
html[data-theme="dark"] #snd-app textarea,
html[data-theme="dark"] #snd-app select{
  background:#16211b!important;color:#e6efe9!important;-webkit-text-fill-color:#e6efe9!important;
  border-color:#3a4d42!important}
html[data-theme="dark"] #snd-app ::placeholder{
  color:#6e8377!important;-webkit-text-fill-color:#6e8377!important;opacity:1}

/* Ticker résultats — défilement lent */
.snd-ticker{overflow:hidden;background:linear-gradient(135deg,#041a0f,#0e3d2a);
  border-radius:14px;padding:10px 0;margin:0 0 14px;border:1px solid rgba(240,197,106,.25)}
.snd-ticker-track{display:inline-flex;gap:48px;white-space:nowrap;will-change:transform;
  animation:sndScroll linear infinite;padding-left:100%}
.snd-ticker-item{font-size:13px;font-weight:700;color:#fff}
.snd-ticker-item .q{color:#f0c56a}
.snd-ticker-item .top{color:#8fe6b8}
.snd-ticker-item .pct{background:rgba(240,197,106,.18);color:#f0c56a;border-radius:20px;padding:1px 8px;margin-left:4px}
@keyframes sndScroll{to{transform:translateX(-100%)}}
.snd-ticker:hover .snd-ticker-track{animation-play-state:paused}

#snd-root .snd-com-del{background:transparent;border:none;color:lightblue;cursor:pointer;padding:5px;border-radius:7px;flex-shrink:0;display:flex;align-items:center;justify-content:center;opacity:.55;transition:all .18s}
#snd-root .snd-com-del:hover{color:#ff5e5e;background:rgba(255,94,94,.1);opacity:1;transform:scale(1.08)}
#snd-root .snd-com-del:active{transform:scale(.92)}
.wztag{display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:.4px;
  background:#33ccff22;color:#33ccff;border:1px solid #33ccff55;
  border-radius:6px;padding:1px 6px;vertical-align:middle;margin-left:5px}
.zcard{border-radius:14px;padding:13px 14px;transition:transform .15s}
.zcard:hover{transform:translateY(-2px)}
.zn{font-weight:800;font-size:14px}
.zax{font-size:12px;opacity:.85;margin-top:3px}
.zt{font-size:10.5px;opacity:.6;margin-top:6px}
.zbadge{font-size:11px;font-weight:800;border-radius:20px;padding:3px 10px}
.tresume{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;font-size:12px;font-weight:800}
.tres{border-radius:20px;padding:4px 12px;border:1px solid transparent}
.tres.bloque{background:#7a0e0e22;color:#ff6b6b;border-color:#ff6b6b44}
.tres.dense{background:#c0392b1f;color:#ff8a80;border-color:#ff8a8040}
.tres.moyen{background:#f0c56a1f;color:#f0c56a;border-color:#f0c56a40}
.tres.fluide{background:#1d9e7522;color:#4cd6a5;border-color:#4cd6a544}
.zconf{display:inline-block;font-size:10px;font-weight:800;color:#4cd6a5;
  background:#1d9e7518;border:1px solid #1d9e7540;border-radius:6px;padding:1px 6px;margin-left:6px}
.zold{opacity:.55}
.zcard{border-radius:14px;padding:13px 14px;transition:transform .15s}
.zcard:hover{transform:translateY(-2px)}
.zn{font-weight:800;font-size:14px}
.zax{font-size:12px;opacity:.85;margin-top:3px}
.zt{font-size:10.5px;opacity:.6;margin-top:6px}
.zcause{display:inline-block;font-size:11px;font-weight:800;color:#ff8a80;
  background:#c0392b18;border:1px solid #ff8a8035;border-radius:6px;padding:2px 8px;margin-right:6px}
.znote{margin-top:6px;font-size:12px;line-height:1.4}
.ztxt{color:var(--txt2);font-style:italic}
/* ══ TRAFIC v2 ══ */
.trf-wrap{max-width:820px;margin:0 auto;padding:0 12px 40px}
.trf-hero{text-align:center;background:linear-gradient(150deg,#0e3d2a,#14502f 60%,#1d9e7526);
  border:1px solid #1d9e7535;border-radius:20px;padding:26px 18px 22px;margin-bottom:20px}
.trf-hero-ic{font-size:2.2rem;margin-bottom:6px}
.trf-hero h2{margin:0 0 8px;font-size:1.35rem;color:#f0c56a;letter-spacing:.3px}
.trf-hero p{margin:0;font-size:.88rem;color:#cfe6d9;line-height:1.6}
.trf-hero strong{color:#f0c56a}
.trf-sec{margin-bottom:22px}
.trf-sec-t{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1rem;
  color:blue;border-left:4px solid #f0c56a;padding-left:10px;margin-bottom:12px}
.trf-zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
@media(max-width:600px){.trf-zones{grid-template-columns:1fr}}
.tresume{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:800}
.zcard{background:#0d2b1e;border:1px solid #1d9e7530;border-radius:16px;padding:14px 15px;
  transition:transform .15s,border-color .15s}
.zcard:hover{transform:translateY(-2px);border-color:#f0c56a55}
.ztop{display:flex;justify-content:space-between;align-items:center;gap:8px}
.zn{font-weight:800;font-size:14.5px;color:#eaf6ef}
.zax{font-size:12px;color:#9fc4b2;margin-top:5px}
.znote{margin-top:7px;font-size:12px;line-height:1.45}
.ztxt{color:#cfe6d9;font-style:italic}
.zt{font-size:10.5px;color:#6f9483;margin-top:8px}
.zold{opacity:.5}
.zbadge.fluide{background:#3ddc9722;color:#3ddc97;border:1px solid #3ddc9744}
.zbadge.moyen {background:#ffdd571f;color:#ffdd57;border:1px solid #ffdd5744}
.zbadge.dense {background:#ff914222;color:#ff9142;border:1px solid #ff914244}
.zbadge.bloque{background:#ff5c5c22;color:#ff5c5c;border:1px solid #ff5c5c44}

.zconf{display:inline-block;font-size:10px;font-weight:800;color:#4cd6a5;
  background:#1d9e7518;border:1px solid #1d9e7540;border-radius:6px;padding:1px 6px;margin-left:6px}
.zcause{display:inline-block;font-size:11px;font-weight:800;color:#ff8a80;
  background:#c0392b18;border:1px solid #ff8a8035;border-radius:6px;padding:2px 8px;margin-right:6px}
.tres{border-radius:20px;padding:4px 12px}
.tres.fluide{background:#3ddc9722;color:#3ddc97;border:1px solid #3ddc9744}
.tres.moyen {background:#ffdd571f;color:#ffdd57;border:1px solid #ffdd5744}
.tres.dense {background:#ff914222;color:#ff9142;border:1px solid #ff914244}
.tres.bloque{background:#ff5c5c22;color:#ff5c5c;border:1px solid #ff5c5c44}
.trf-form{background:linear-gradient(160deg,#0d2b1e,#0e3d2a);border:1.5px solid #f0c56a45;
  border-radius:20px;padding:22px 18px;margin-bottom:22px;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.trf-form-t{font-size:1.1rem;font-weight:800;color:#f0c56a}
.trf-form-s{font-size:.84rem;color:#9fc4b2;margin:4px 0 16px}
.trf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:600px){.trf-grid{grid-template-columns:1fr}}
.trf-full{grid-column:1/-1}
.trf-f label{display:block;font-size:11.5px;font-weight:800;color:#cfe6d9;margin-bottom:5px;letter-spacing:.3px}
.trf-f input,.trf-f select{width:100%;box-sizing:border-box;background:#081f15;color:#eaf6ef;
  border:1px solid #1d9e7540;border-radius:11px;padding:11px 12px;font-size:14px;outline:none;transition:border-color .15s}
.trf-f input:focus,.trf-f select:focus{border-color:#f0c56a}
.trf-f input::placeholder{color:#5f8371}
.trf-btn{display:block;width:100%;margin-top:16px;background:linear-gradient(135deg,#f0c56a,#d9a93c);
  color:#3a2c00;border:0;border-radius:13px;padding:14px;font-size:15px;font-weight:900;cursor:pointer;
  letter-spacing:.3px;transition:transform .12s,box-shadow .12s}
.trf-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(240,197,106,.35)}
.trf-priv{text-align:center;font-size:10.5px;color:#6f9483;margin-top:9px}
.srow{display:flex;justify-content:space-between;align-items:flex-start;background:#0d2b1e;
  border:1px solid #1d9e7525;border-radius:13px;padding:11px 13px;margin-bottom:8px;font-size:13px;color:#eaf6ef}
/* ── Merci citoyen ── */
.trf-merci{position:fixed;inset:0;background:rgba(4,20,13,.75);display:flex;align-items:center;
  justify-content:center;z-index:2000;padding:20px;animation:tm-in .2s ease}
@keyframes tm-in{from{opacity:0}to{opacity:1}}
.trf-merci-box{background:linear-gradient(160deg,#0e3d2a,#14502f);border:1.5px solid #f0c56a;
  border-radius:22px;padding:30px 26px;text-align:center;max-width:340px;animation:tm-pop .3s ease}
@keyframes tm-pop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.trf-merci-box .ic{font-size:3rem}
.trf-merci-box h3{color:#f0c56a;margin:10px 0 6px;font-size:1.2rem}
.trf-merci-box p{color:#cfe6d9;font-size:.88rem;line-height:1.55;margin:0}
/* Texte visible pendant la saisie (bleu clair) */
.trf-f input, .trf-f select,
.trf-f input:focus, .trf-f select:focus{
  color: black !important;
  caret-color:red !important;   /* curseur doré bien visible */
  -webkit-text-fill-color:#324038 !important;
}
/* Autofill Chrome (fond jaune/texte noir par défaut) */
.trf-f input:-webkit-autofill{
  -webkit-text-fill-color:#7fd4ff !important;
  -webkit-box-shadow:0 0 0 40px #081f15 inset !important;
}
/* Options du select lisibles dans la liste déroulante */
.trf-f select option{background:#081f15;color:#eaf6ef}
.cal-share{border:0;background:none;cursor:pointer;font-size:14px;opacity:.55;padding:2px 4px}
.cal-share:hover{opacity:1}
@media (max-width: 768px) {

  /* .ecoles-toggle devient une colonne : Réviser en haut, années en bas */
  .ecoles-toggle {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  /* Bouton Réviser : pleine largeur, texte sur une seule ligne */
  .btn-spectacular {
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 12.5px;
    padding: 9px 10px;
    text-align: center;
    box-sizing: border-box;
  }

  /* Ligne des années : scroll horizontal, groupées ensemble */
  .ecoles-toggle .eyr-btn {
    flex: 0 0 auto;
  }
  /* On regroupe visuellement les 3 boutons années dans un mini-conteneur scrollable */
}
@media (max-width: 768px) {
  .ecoles-toggle {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .btn-spectacular {
    flex: 1 1 100%;   /* force le bouton Réviser à prendre toute la largeur → passage à la ligne automatique pour ce qui suit */
    order: -1;
    white-space: nowrap;
    font-size: 12.5px;
    text-align: center;
  }
  .eyr-btn {
    flex: 1 1 auto;   /* les 3 boutons années se partagent la ligne suivante */
    text-align: center;
  }
}
.ep-m {
    justify-content: center;
    min-width: unset;
    width: auto;
  }
  .ep-m .m-label { flex: none; text-align: center; }
  @media (max-width: 768px) {
  .ecoles-toggle .eyr-btn:not(:first-of-type) {
    margin-left: -2px;   /* rapproche encore plus les boutons années entre eux */
  }
}
.xauth-otp::placeholder {
  letter-spacing: normal;
  font-size: .85rem;
}
#xarit-splash{position:fixed;inset:0;z-index:999999;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;
  background:radial-gradient(circle at 50% 40%, #ffffff 0%, #f7f9fc 60%, #eef2f7 100%);
  transition:opacity .5s ease}
#xarit-splash.xs-bye{opacity:0;pointer-events:none}

/* Conteneur circulaire : le logo VIT DEDANS */
.xs-orb{position:relative;width:230px;height:230px;
  display:flex;align-items:center;justify-content:center}

/* Anneau principal : arc dégradé fin qui s'estompe (style moderne) */
.xs-ring{position:absolute;inset:0;border-radius:50%}
.xs-r1{
  background:conic-gradient(from 0deg,
    transparent 0%, transparent 55%,
    rgba(255,215,0,.35) 70%, #FFD700 85%, #2E8B57 100%);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 0);
          mask:radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 0);
  animation:xsSpin 1.4s cubic-bezier(.45,.1,.55,.9) infinite;
}
/* Second arc discret, sens inverse, légèrement en retrait */
.xs-r2{inset:10px;
  background:conic-gradient(from 180deg,
    transparent 0%, transparent 70%,
    rgba(220,20,60,.25) 85%, #DC143C 100%);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
          mask:radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation:xsSpin 2.2s linear infinite reverse;
}

/* Pastille intérieure : blanc pur, le logo respire au centre */
.xs-inner{width:180px;height:180px;border-radius:50%;background:#fff;
  box-shadow:0 6px 30px rgba(30,60,90,.08), inset 0 0 0 1px rgba(0,0,0,.03);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}

.xs-logo{font-weight:900;font-size:2rem;letter-spacing:.04em;
  position:relative;overflow:hidden;padding:0 6px}
.xs-logo span{color:var(--c)}
.xs-logo::after{content:'';position:absolute;inset:0;
  background:linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 65%);
  transform:translateX(-130%);animation:xsShine 2.2s ease-in-out infinite}
.xs-sub{font-size:.72rem;font-weight:700;color:#5a6572;letter-spacing:.02em}

.xs-dots{display:flex;gap:7px}
.xs-dots i{width:7px;height:7px;border-radius:50%;background:#c9d2dc;
  animation:xsDot 1.2s ease-in-out infinite}
.xs-dots i:nth-child(2){animation-delay:.18s}
.xs-dots i:nth-child(3){animation-delay:.36s}

@keyframes xsSpin{to{transform:rotate(360deg)}}
@keyframes xsShine{55%,100%{transform:translateX(130%)}}
@keyframes xsDot{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.1);background:#2E8B57}}
@media (prefers-reduced-motion:reduce){.xs-ring,.xs-logo::after,.xs-dots i{animation:none}}
/* ═══ v2 — Bannière d'accueil claire & vivante ═══ */

/* Fine barre drapeau intégrée au bord haut (remplace le gros bandeau) */
.wb::before{
  content:'';position:absolute;top:0;left:0;right:0;height:5px;
  background:linear-gradient(90deg,#2E8B57 0 33.3%,#FFD700 33.3% 66.6%,#DC143C 66.6% 100%);
}
.wb-t{
  color:#12372a !important;
  font-weight:900;letter-spacing:-.02em;
}
.wb-t [data-i18n="home.welcome_to"]{
  background:linear-gradient(95deg,#2E8B57 0%,#c58a00 55%,#DC143C 110%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.wb-s{color:#4a5a52 !important}
.wb-btns .btn.bg2{
  background:#0e3d2a !important;color:#f0c56a !important;border:0 !important;
  border-radius:999px;padding:13px 26px;font-weight:800;
  box-shadow:0 4px 14px rgba(14,61,42,.25);
  transition:transform .15s, box-shadow .15s;
}
.wb-btns .btn.bg2:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(14,61,42,.32)}
.wb-btns .btn.bg2:active{transform:scale(.97)}
/* Le bouton Installer reste lisible sur fond clair */
.wb .xarit-install-btn{filter:none}
.wb{padding:16px 22px 14px !important}
.wb-t{font-size:1.35rem !important;margin-bottom:2px}
.wb-s{font-size:.92rem !important;line-height:1.6;
  color:#33413a !important;font-weight:600}
/* ═══ Bannière compacte avec bouton ═══ */
.wb{padding:14px 22px 16px !important}
.wb-t{font-size:1.25rem !important;margin-bottom:2px}
.wb-s{
  font-size:.88rem !important;line-height:1.5;margin-bottom:10px !important;
  color:#26332c !important;font-weight:600;
}
.wb-btns{display:flex !important;margin:0}
.wb-btns .btn.bg2{
  padding:10px 20px !important;font-size:.88rem !important;
}
.wb-btns .btn.bg2{
  background:linear-gradient(135deg,#e8734a,#d85a30) !important;
  color:#fff !important;border:0 !important;
  border-radius:999px;padding:10px 22px !important;font-size:.88rem !important;
  font-weight:800;box-shadow:0 4px 14px rgba(216,90,48,.35);
}
.wb-ask{
  position:relative;display:flex;align-items:center;gap:10px;
  width:100%;box-sizing:border-box;
  background:#fff;border:1.5px solid #e3ddcc;border-radius:999px;
  padding:6px 20px;cursor:pointer;transition:all .2s;
}
.wb-ask:hover,.wb-ask:focus{
  border-color:#f0c56a;
  box-shadow:0 3px 14px rgba(240,197,106,.3);
  outline:none;
}
.wb-ask-txt{color:#8a948e;font-size:.92rem;font-weight:600}
/* Curseur de saisie qui clignote juste après le texte */
.wb-ask-cursor{
  width:2px;height:1.05em;background:#1d6e4c;border-radius:1px;
  animation:waBlink 1.1s step-end infinite;flex:1;max-width:2px;
}
.wb-ask-go{margin-left:auto;color:#1d6e4c;font-weight:900;font-size:1.15rem;
  transition:transform .2s}
.wb-ask:hover .wb-ask-go{transform:translateX(4px)}


@keyframes waBlink{50%{opacity:0}}
.wb-ask-hand{
  position:absolute;right:60px;top:50%;font-size:1.6rem;
  opacity:0;pointer-events:none;z-index:2;
  animation:waHand 5s ease-in-out infinite;
  animation-delay:1.5s;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
@keyframes waHand{
  0%,55%   {opacity:0;transform:translateY(30px) rotate(-10deg)}
  62%      {opacity:1;transform:translateY(-6px) rotate(0)}
  67%      {transform:translateY(-14px) scale(.88)}   /* le tap : doigt SUR le champ */
  71%      {transform:translateY(-6px) scale(1)}
  80%      {opacity:1;transform:translateY(-6px)}
  92%,100% {opacity:0;transform:translateY(30px) rotate(-10deg)}
}
/* L'effet du tap sur le champ lui-même : petit flash doré synchronisé */
.wb-ask{animation:waTap 5s ease-in-out infinite;animation-delay:1.5s}
@keyframes waTap{
  0%,66%,74%,100%{box-shadow:0 0 0 rgba(240,197,106,0)}
  70%{box-shadow:0 0 0 6px rgba(240,197,106,.35);border-color:#f0c56a}
}
@media (prefers-reduced-motion:reduce){
  .wb-ask-hand,.wb-ask,.wb-ask-cursor{animation:none}
  .wb-ask-hand{display:none}
}
@media (max-width:600px){
  .wb-ask{padding:8px 14px;gap:7px}
  .wb-ask-txt{
    font-size:.8rem;font-weight:500;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    min-width:0;flex:1;
  }
  .wb-ask-ic{font-size:.95rem}
  .wb-ask-go{font-size:1rem}
  .wb-ask-cursor{display:none}       /* le curseur prend de la place inutile en petit */
  .wb-ask-hand{right:40px;font-size:1.4rem}
}
@media (max-width:600px){
  /* Cartes compactes, toutes identiques */
  .sc{
    padding:8px 6px;
    min-height:0;
    display:flex;flex-direction:column;
    align-items:center;justify-content:center;
    gap:2px;                     /* espace serré entre emoji, titre, sous-titre */
  }
  .sc-i{font-size:1.5rem;margin:0;line-height:1.15}
  .sc-n{font-size:.90rem;margin:0;line-height:1.2}
  .sc-l{font-size:.80rem;margin:0;line-height:1.2}

  /* Badges OM ⇄ Wave un peu plus grands que le reste */
  .sc .sc-i span{font-size:.95em !important}
  .sc .sc-i[style*="gap"]{font-size:1.5rem}
}
/* --- Alignement parfait des jours du calendrier --- */
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 colonnes de largeur égale */
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cal-day-name {
  padding: 2px 0;
  text-align: center;
}

.cal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* --- Barre de filtres et boutons cliquables --- */
.cal-filters-bar {
  display: flex;
  gap: 8px; /* Décolle les boutons les uns des autres */
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-filter {
  background: #f4f4f4;
  color: #333333;
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Feedback tactile au clic */
.btn-filter:active {
  transform: scale(0.95);
}

/* Style quand le filtre est actif */
.btn-filter.active {
  background: #10783A !important;
  color: #ffffff !important;
  border-color: #10783A !important;
}
/* Container global */
#sec-calendrier {
  max-width: 1050px; /* Un peu plus large pour donner de l'aisance aux 2 colonnes */
  margin: 0 auto;
}

/* Grille CSS : 1 colonne sur Mobile */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* Écrans larges (à partir de 768px) : 45% Calendrier / Reste pour la Sidebar */
@media (min-width: 768px) {
  .cal-layout {
    grid-template-columns: 45% 1fr; /* 45% à gauche, le reste à droite */
    gap: 24px;                      /* Espacement propre entre les deux colonnes */
  }
}

/* Ajustement pour que les cases s'agrandissent proprement */
.cal-col-main .card {
  width: 100%;
}
/* ═══ Tuiles accueil — CLAIR : contours discrets et fond contrasté ═══ */
/* ═══ Tuiles accueil — CLAIR : Effet bouton 3D neutre ═══ */
#sec-accueil .g4 .sc {
  background: #ffffff !important; 
  /* Bordures fines en haut/côtés, et bien plus épaisses en bas pour l'effet 3D */
  border: 1.5px solid #e0e4e8 !important;
  border-bottom: 4px solid #c8ced5 !important;
  border-radius: 14px !important;
  
  /* L'ombre sous le bouton et le reflet lumineux en haut (inset) */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06),
              inset 0 2px 0 rgba(255, 255, 255, 1) !important;
  cursor: pointer !important;
  transition: transform .1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .1s ease, border-bottom-width .1s ease;
  -webkit-tap-highlight-color: transparent;
}
#sec-accueil .g4 .sc:hover {
  border-color: #d1d8df !important;
  border-bottom-color: #b9c1c9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
}
#sec-accueil .g4 .sc:active {
  /* Le bouton s'enfonce physiquement : on réduit la bordure du bas et on annule l'ombre externe */
  transform: translateY(3px) !important;
  border-bottom-width: 1.5px !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.08) !important;
}

/* ═══ SOMBRE : Effet bouton 3D neutre ═══ */
body.dark #sec-accueil .g4 .sc,
[data-theme="dark"] #sec-accueil .g4 .sc {
  background: #1e3529 !important; 
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 4px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
body.dark #sec-accueil .g4 .sc .sc-n,
[data-theme="dark"] #sec-accueil .g4 .sc .sc-n { color: #f3efe5 !important; }
body.dark #sec-accueil .g4 .sc .sc-l,
[data-theme="dark"] #sec-accueil .g4 .sc .sc-l { color: #c9c2b0 !important; }

body.dark #sec-accueil .g4 .sc:hover,
[data-theme="dark"] #sec-accueil .g4 .sc:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-bottom-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}
body.dark #sec-accueil .g4 .sc:active,
[data-theme="dark"] #sec-accueil .g4 .sc:active {
  transform: translateY(3px) !important;
  border-bottom-width: 1.5px !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4) !important;
}
.sec:not(#sec-priere) { padding: 16px 18px 24px; min-height: unset; overflow-y: auto; width: 96%; margin-left: auto; margin-right: auto; }
#sec-accueil .wb .wb-s {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 26px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  color: #111 !important;
  max-width: 680px !important;
  margin: 12px auto 0 !important;
  text-align: center !important;
  padding: 16px 22px !important;              /* ★ espace autour du texte */
  border-radius: 14px !important;
  background: #fdf8ec !important;             /* ★ crème doux, mode clair */
  box-shadow: 0 2px 8px rgba(14,61,42,0.06) !important;
}

/* ★ Mode sombre : fond foncé + texte blanc */
#sec-accueil .wb .wb-s {
  background: #fdf2d8 !important;   /* or pâle */
}

body.dark #sec-accueil .wb .wb-s,
html.dark #sec-accueil .wb .wb-s,
[data-theme="dark"] #sec-accueil .wb .wb-s,
body[data-theme="dark"] #sec-accueil .wb .wb-s {
  background: #241f14 !important;   /* brun-noir chaud */
}

@media (max-width: 480px) {
  #sec-accueil .wb .wb-s {
    font-size: 20px !important;
    max-width: 92% !important;
    padding: 12px 16px !important;
  }
}
.wb {
  margin-bottom: 8px;
  position: relative !important;
  overflow: hidden !important;
  background-color: transparent !important;
  background-image: none !important;
}
/* ══════════ SÉLECTEUR DE LANGUE (dropdown) ══════════ */

#lang-switcher {
  position: relative;
  display: inline-block;
}

/* Bouton principal (drapeau actif + flèche) */
#lang-switcher .lang-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0e3d2a;
  border: 1px solid #f0c56a;
  border-radius: 6px;
  padding: 4px 8px;
  height: 28px;
  line-height: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#lang-switcher .lang-dd-toggle:hover {
  background: #124a34;
  border-color: #f7d68a;
}

/* Icône du drapeau actif dans le bouton */
#lang-switcher .lang-dd-current {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Force la taille de TOUS les SVG de drapeaux, peu importe leur origine */
#lang-switcher svg,
#lang-switcher .flag-svg {
  width: 20px !important;
  height: 14px !important;
  min-width: 20px !important;
  min-height: 14px !important;
  max-width: 20px !important;
  max-height: 14px !important;
  display: block !important;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Flèche à côté du drapeau */
#lang-switcher .lang-dd-arrow {
  color: #f0c56a;
  font-size: 9px;
  line-height: 1;
  transition: transform 0.2s;
}

#lang-switcher .lang-dd-toggle[aria-expanded="true"] .lang-dd-arrow,
#lang-switcher .lang-dd-menu.open ~ .lang-dd-toggle .lang-dd-arrow {
  transform: rotate(180deg);
}

/* Menu déroulant */
#lang-switcher .lang-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0e3d2a;
  border: 1px solid #f0c56a;
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
  z-index: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

#lang-switcher .lang-dd-menu.open {
  display: block;
  animation: langDdFadeIn 0.15s ease-out;
}

@keyframes langDdFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Chaque ligne de langue dans le menu */
#lang-switcher .lang-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

#lang-switcher .lang-dd-item:hover {
  background: rgba(240, 197, 106, 0.15);
}

#lang-switcher .lang-dd-item.active {
  background: rgba(240, 197, 106, 0.22);
  font-weight: 600;
  color: #f0c56a;
}

#lang-switcher .lang-dd-item span {
  line-height: 1;
}

/* Responsive mobile : version compacte */
@media (max-width: 480px) {
  #lang-switcher .lang-dd-toggle {
    padding: 3px 6px;
    height: 26px;
  }
  #lang-switcher svg,
  #lang-switcher .flag-svg {
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;
  }
  #lang-switcher .lang-dd-menu {
    min-width: 130px;
  }
}
/* ═══════════════════════════════════════════════
   ASSISTANT — hauteur maîtrisée + texture
   ═══════════════════════════════════════════════ */
   /* ═══════════════════════════════════════════════
   RELIGION — texture visible + section compacte
   ═══════════════════════════════════════════════ */

/* 1. On laisse voir la texture de #content */
#content #sec-priere{
  background: transparent;
  min-height: 0;
  padding: 0;
}

/* 2. Contenu plus étroit et plus dense */
#sec-priere .dn-page{
  max-width: 820px;
  padding: 12px 14px 30px;
}

/* 3. Onglets fixes en haut, lisibles sur le bois */
#sec-priere .dn-tabs{
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14,61,42,.12);
}
#sec-priere .dn-mode-bar{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 4. Cartes plus compactes */
#sec-priere .card{ padding: 12px; margin-bottom: 10px; }
#sec-priere .pr-hero{ padding: 14px 16px; }
#sec-priere .pr-next-box{ padding: 12px; }
#sec-priere .pr-countdown{ font-size: 27px; }

/* 5. Boussole un peu réduite sur PC */
@media(min-width:901px){
  #sec-priere .dn-qibla-card .dn-compass-container{
    width: min(260px, 100%) !important;
  }
}
/* ═══ Mode sombre : citation d'accueil lisible ═══ */
body.dark-mode #sec-accueil .wb .wb-s{
  background: #241f14 !important;
  color: #f5ead6 !important;
  border: 1px solid rgba(240,197,106,.30) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.38) !important;
}
/* ═══════════════════════════════════════════════
   CONTACT — largeur réduite + texture bois
   ═══════════════════════════════════════════════ */
#sec-contact{
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero : bois visible sous un voile vert (texte blanc lisible) */
#sec-contact .contact-hero{
  background-color: lightgoldenrodyellow;
  background-image:
    linear-gradient(rgba(4,26,15,.80), rgba(14,61,42,.72)),
    url('icons/motif-africain.svg') !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  padding: 20px 18px 18px;
}

/* En-tête de la carte profil : même traitement */
#sec-contact .cpcard-top{
  background-color: #0e3d2a;
  background-image:
    linear-gradient(rgba(4,26,15,.82), rgba(26,92,62,.74)),
    url('icons/motif-africain.svg') !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Grille infos : 2 colonnes au lieu de 3 sur cette largeur */
#sec-contact .contact-info-grid{ grid-template-columns: repeat(2, 1fr); }
@media(max-width:640px){
  #sec-contact .contact-info-grid{ grid-template-columns: 1fr; }
}

/* Compacité */
#sec-contact .contact-hero-title{ font-size: 20px; }
#sec-contact .contact-about-card,
#sec-contact .contact-form-card{ padding: 16px 16px; }
#sec-contact .contact-legal{ padding: 12px 14px; font-size: 10.5px; }
/* ═══════════════════════════════════════════════════════════════
   PATCH xarit.css — à REMPLACER dans votre bloc « Réseaux sociaux »
   Couleur de marque AU REPOS (le vert sombre était illisible),
   le survol éclaircit au lieu de colorer.
   ═══════════════════════════════════════════════════════════════ */
#xarit-footer-bar .fb-social{
  display:flex; align-items:center; gap:8px; margin-left:6px;
}
#xarit-footer-bar .fb-social .fbs{
  width:20px; height:20px; border-radius:6px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:13px; text-decoration:none;
  color:#fff;                                  /* glyphe blanc sur fond de marque */
  border:1px solid transparent;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
/* Couleurs officielles, visibles dès le repos */
#xarit-footer-bar .fb-social .fbs[data-net="youtube"]{   background:#ff0000; }
#xarit-footer-bar .fb-social .fbs[data-net="facebook"]{  background:#1877f2; }
#xarit-footer-bar .fb-social .fbs[data-net="instagram"]{
  background:linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
/* Le survol éclaircit et soulève — il ne change plus la couleur */
#xarit-footer-bar .fb-social .fbs:hover{
  transform:translateY(-2px);
  filter:brightness(1.15) saturate(1.1);
  box-shadow:0 4px 10px rgba(0,0,0,.25);
}
#xarit-footer-bar .fb-social .fbs:active{
  transform:translateY(0) scale(.94);
  filter:brightness(.95);
}
#xarit-footer-bar .fb-social .fbs:focus-visible{
  outline:2px solid #f0c56a; outline-offset:2px;
}
@media (min-width: 769px){
  #xarit-footer-bar .fb-social{ gap:6px; }
  #xarit-footer-bar .fb-social .fbs{
    width:18px; height:18px; font-size:10px; border-radius:7px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Respiration entre le menu latéral et le contenu
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px){
  /* Cas 1 — .app est en flex ou grid : le gap suffit */
  .app{ gap:18px; }

  /* Cas 2 — #sidebar est en position:fixed : décoller le contenu
     (à supprimer si le cas 1 a déjà réglé l'affaire, sinon double espace) */
  #main{ margin-left:18px;}
  
  /* Liseré clair sur le bord du menu, pour séparer nettement les deux zones */
  #sidebar{ border-right:1px solid rgba(255,255,255,.10); }
}

/* ═══════════════════════════════════════════════════════════════
   Accueil — colonne à 70% sur PC
   (votre version indiquait 70% en commentaire mais 80% en valeur)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px){
  #sec-accueil,
  #sec-sondages,
  #sec-emplois,
  #sec-marche {
    width: 70% !important;
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

#install-btn[style*="inline-flex"] { display: inline-flex !important; }
/* Bouton Installer — dans la topbar, or XARIT, compact */
.topbar-right #install-btn.xarit-install-btn{
  display:none;                 /* caché tant que non installable */
  align-items:center;
  gap:5px;
  margin-left:0;
  padding:5px 12px;
  font-size:.72rem;
  font-weight:700;
  color:#0e3d2a;
  background:linear-gradient(135deg,#f0c56a,#e0a93c);
  border:none;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(224,169,60,.35);
  transition:transform .15s, box-shadow .15s;
  white-space:nowrap;
  flex-shrink:0;
}
.topbar-right #install-btn.xarit-install-btn[style*="inline-flex"]{ display:inline-flex !important; }
.topbar-right #install-btn.xarit-install-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 14px rgba(224,169,60,.5);
}

/* Mobile : icône seule */
@media (max-width:768px){
  .topbar-right #install-btn .xib-text{ display:none; }
  .topbar-right #install-btn.xarit-install-btn{ padding:6px; border-radius:50%; }
}

/* Écrase l'ancien bleu (garde ce bloc, supprime les autres .xarit-install-btn{background…}) */
.xarit-install-btn {
  background: linear-gradient(135deg, #f0c56a, #e0a93c) !important;
  color: #0e3d2a !important;
  box-shadow: 0 3px 10px rgba(224,169,60,.35) !important;
  border: none !important;
}
/* Par défaut (PC) : texte long, texte court caché */
.topbar-right #install-btn .xib-short{ display:none; }
.topbar-right #install-btn .xib-full { display:inline; }

 .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 12px !important;
    min-height: 52px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  /* Titre / logo — prend l'espace restant, ne déborde pas */
  #ptitle {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    color: var(--xm-ink, #10231a) !important;
  }

  /* Conteneur des boutons à droite : alignement vertical parfait */
  .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    min-height: 34px !important;
  }

  /* ── TOUS les éléments interactifs : même hauteur, forme rectangulaire ── */
  .topbar-right .xarit-install-btn,
  .topbar-right .theme-toggle-btn,
  .topbar-right .topbar-visitors,
  .topbar-right .lang-dd-toggle {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    /* ← rectangle arrondi, PAS cercle */
    padding: 0 12px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    transition: all .15s ease !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    cursor: pointer !important;
    gap: 4px !important;
    text-decoration: none !important;
    vertical-align: middle !important;
  }

  /* ── Mobile : plus compact, toujours rectangulaire ── */
  @media (max-width: 768px) {
    .topbar {
      padding: 4px 8px !important;
      min-height: 44px !important;
    }

    .topbar-right {
      gap: 4px !important;
      min-height: 28px !important;
    }

    .topbar-right .xarit-install-btn,
    .topbar-right .theme-toggle-btn,
    .topbar-right .topbar-visitors,
    .topbar-right .lang-dd-toggle {
      height: 28px !important;
      min-height: 28px !important;
      max-height: 28px !important;
      border-radius: 6px !important;
      /* ← toujours rectangulaire */
      padding: 0 8px !important;
      font-size: 11px !important;
    }

    /* Install : texte court, pas de cercle */
    .topbar-right .xarit-install-btn .xib-full {
      display: none !important;
    }
    .topbar-right .xarit-install-btn .xib-short {
      display: inline !important;
    }
    .topbar-right .xarit-install-btn {
      padding: 0 10px !important;
      border-radius: 6px !important;
      /* ← on écrase tout border-radius:50% */
    }

    /* Theme toggle : pas de cercle */
    .topbar-right .theme-toggle-btn {
      width: auto !important;
      min-width: 28px !important;
      border-radius: 6px !important;
    }

    /* Titre plus petit */
    #ptitle {
      font-size: 14px !important;
    }
  }

  /* ── Écrans très étroits (<380px) : encore plus compact ── */
  @media (max-width: 380px) {
    .topbar-right .xarit-install-btn .xib-short {
      display: none !important;
    }
    .topbar-right .xarit-install-btn {
      padding: 0 8px !important;
      min-width: 28px !important;
      justify-content: center !important;
    }
    .topbar-right .xarit-install-btn .xib-icon {
      margin: 0 !important;
    }
  }

  /* ── BOUTON INSTALLER : or XARIT ── */
  .topbar-right .xarit-install-btn {
    background: linear-gradient(135deg, #f0c56a, #e0a93c) !important;
    color: #0e3d2a !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(224, 169, 60, .30) !important;
    font-weight: 700 !important;
    letter-spacing: .2px !important;
  }
  .topbar-right .xarit-install-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(224, 169, 60, .45) !important;
  }
  .topbar-right .xarit-install-btn:active {
    transform: scale(.96) !important;
  }
  .topbar-right .xarit-install-btn .xib-icon svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
  }

  /* ── THÈME (clair/sombre) ── */
  .topbar-right .theme-toggle-btn {
    background: rgba(14, 61, 42, .07) !important;
    border-color: rgba(14, 61, 42, .12) !important;
    color: #0e3d2a !important;
    font-size: 14px !important;
  }
  .topbar-right .theme-toggle-btn:hover {
    background: rgba(14, 61, 42, .14) !important;
  }
  html[data-theme="dark"] .topbar-right .theme-toggle-btn {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #e6efe9 !important;
  }
  html[data-theme="dark"] .topbar-right .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, .16) !important;
  }

  /* ── VISITEURS ── */
  .topbar-right .topbar-visitors {
    background: rgba(240, 197, 106, .12) !important;
    border-color: rgba(240, 197, 106, .30) !important;
    color: #0e3d2a !important;
    cursor: default !important;
    gap: 4px !important;
  }
  .topbar-right .topbar-visitors .tv-icon {
    font-size: 11px !important;
    line-height: 1 !important;
    opacity: .8 !important;
  }
  .topbar-right .topbar-visitors .tv-val {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #0e3d2a !important;
    min-width: 18px !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  html[data-theme="dark"] .topbar-right .topbar-visitors {
    background: rgba(240, 197, 106, .08) !important;
    border-color: rgba(240, 197, 106, .20) !important;
    color: #e6efe9 !important;
  }
  html[data-theme="dark"] .topbar-right .topbar-visitors .tv-val {
    color: #f0c56a !important;
  }

  /* ── SÉLECTEUR DE LANGUE ── */
  .topbar-right .lang-dd-toggle {
    background: rgba(14, 61, 42, .07) !important;
    border-color: rgba(14, 61, 42, .12) !important;
    color: #0e3d2a !important;
    gap: 4px !important;
    padding: 0 10px !important;
  }
  .topbar-right .lang-dd-toggle:hover {
    background: rgba(14, 61, 42, .14) !important;
  }
  .topbar-right .lang-dd-toggle .flag-svg {
    width: 18px !important;
    height: 12px !important;
    min-width: 18px !important;
    min-height: 12px !important;
    max-width: 18px !important;
    max-height: 12px !important;
    display: block !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
  }
  .topbar-right .lang-dd-arrow {
    font-size: 8px !important;
    color: rgba(14, 61, 42, .4) !important;
    line-height: 1 !important;
    transition: transform .2s ease !important;
  }
  .topbar-right .lang-dd-toggle[aria-expanded="true"] .lang-dd-arrow {
    transform: rotate(180deg) !important;
  }
  html[data-theme="dark"] .topbar-right .lang-dd-toggle {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #e6efe9 !important;
  }
  html[data-theme="dark"] .topbar-right .lang-dd-toggle:hover {
    background: rgba(255, 255, 255, .16) !important;
  }
  html[data-theme="dark"] .topbar-right .lang-dd-arrow {
    color: rgba(255, 255, 255, .4) !important;
  }

  /* ── DROPDOWN LANGUE : repositionné proprement ── */
  #lang-switcher {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .lang-dd-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    min-width: 150px !important;
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid rgba(14, 61, 42, .12) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15) !important;
    padding: 4px 0 !important;
    z-index: 500 !important;
    display: none !important;
    overflow: hidden !important;
  }
  .lang-dd-menu.open {
    display: block !important;
    animation: langFadeIn .15s ease-out !important;
  }
  @keyframes langFadeIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .lang-dd-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 8px 14px !important;
    background: none !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a2a1e !important;
    cursor: pointer !important;
    transition: background .12s !important;
    text-align: left !important;
  }
  .lang-dd-item:hover {
    background: rgba(14, 61, 42, .06) !important;
  }
  .lang-dd-item.active {
    background: rgba(240, 197, 106, .15) !important;
    color: #0e3d2a !important;
  }
  .lang-dd-item .flag-svg {
    width: 20px !important;
    height: 13px !important;
    min-width: 20px !important;
    min-height: 13px !important;
    max-width: 20px !important;
    max-height: 13px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
  }
  html[data-theme="dark"] .lang-dd-menu {
    background: #16211b !important;
    border-color: rgba(255, 255, 255, .10) !important;
  }
  html[data-theme="dark"] .lang-dd-item {
    color: #e6efe9 !important;
  }
  html[data-theme="dark"] .lang-dd-item:hover {
    background: rgba(255, 255, 255, .06) !important;
  }
  html[data-theme="dark"] .lang-dd-item.active {
    background: rgba(240, 197, 106, .12) !important;
    color: #f0c56a !important;
  }

  /* ── SUR MOBILE : on s'assure qu'aucun élément ne devient circulaire ── */
  @media (max-width: 768px) {

    /* On tue tous les border-radius:50% qui pourraient traîner */
    .topbar-right .xarit-install-btn,
    .topbar-right .theme-toggle-btn,
    .topbar-right .topbar-visitors,
    .topbar-right .lang-dd-toggle {
      border-radius: 6px !important;
      width: auto !important;
      min-width: 28px !important;
    }

    /* Le menu déroulant s'adapte à la taille du toggle */
    .lang-dd-menu {
      min-width: 130px !important;
      right: 0 !important;
      top: calc(100% + 4px) !important;
    }
    .lang-dd-item {
      padding: 7px 12px !important;
      font-size: 12px !important;
    }
    .lang-dd-item .flag-svg {
      width: 18px !important;
      height: 12px !important;
      min-width: 18px !important;
      min-height: 12px !important;
      max-width: 18px !important;
      max-height: 12px !important;
    }
  }

  /* ── TRÈS PETITS ÉCRANS : le menu reste lisible ── */
  @media (max-width: 380px) {
    .lang-dd-menu {
      min-width: 110px !important;
      right: -4px !important;
    }
    .lang-dd-item {
      padding: 6px 10px !important;
      font-size: 11px !important;
      gap: 6px !important;
    }
    .lang-dd-item .flag-svg {
      width: 16px !important;
      height: 10px !important;
      min-width: 16px !important;
      min-height: 10px !important;
      max-width: 16px !important;
      max-height: 10px !important;
    }
  }

  /* ── RESPIRATION FINALE : tout est aligné ── */
  .topbar-right>* {
    vertical-align: middle !important;
  }

  /* Suppression des vieux styles circulaires qui pourraient interférer */
  .topbar-right .theme-toggle-btn,
  .topbar-right .xarit-install-btn {
    border-radius: 8px !important;
    /* override définitif */
  }

  @media (max-width: 768px) {
    .topbar-right .theme-toggle-btn,
    .topbar-right .xarit-install-btn {
      border-radius: 6px !important;
    }
  }


/* ══════════════════════════════════════════════════════════════════
   FIX — modal « Proposer un sondage » (sondages-modal.js)
   Le modal #snd-cm-ov est injecté DANS #snd-app, il héritait donc du
   « background:#fff!important » prévu pour l'ancien thème clair.
   Fond blanc + texte clair du thème sombre = saisie invisible.
   Ces règles arrivent après dans la cascade, à spécificité égale :
   elles gagnent.
   ══════════════════════════════════════════════════════════════════ */
#snd-cm-ov input,
#snd-cm-ov textarea,
#snd-cm-ov select{
  background:#0d1219!important;
  background-clip:padding-box!important;
  color:#e8eef6!important;
  -webkit-text-fill-color:#e8eef6!important;
  border:1.5px solid #2a3850!important;
  caret-color:#f0c56a!important;
  opacity:1!important
}
#snd-cm-ov input:focus,
#snd-cm-ov textarea:focus,
#snd-cm-ov select:focus{
  background:#141d29!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#f0c56a!important
}
#snd-cm-ov input::placeholder,
#snd-cm-ov textarea::placeholder{
  color:#55637a!important;
  -webkit-text-fill-color:#55637a!important;
  opacity:1
}
#snd-cm-ov select option{
  background:#141a24!important;
  color:#e8eef6!important
}