/* ============================================================
   COMPONENTS — site-meteo.fr
   Composants réutilisables (page-section card, etc.)
   Chargé APRÈS style.css — ne pas modifier style.css pour ces composants.
   ============================================================ */

/* ── .page-section : card générique pour sections de page ─────
   Usage :
     <section class="page-section">
       <div class="page-section-header">
         <h2><i class="fa-solid fa-..."></i> Titre</h2>
         <p>Sous-titre</p>
       </div>
       <div class="page-section-body">...contenu...</div>
     </section>
   ──────────────────────────────────────────────────────────── */

.page-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: visible;
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.page-section-header {
  background: linear-gradient(175deg, #2b96ff 0%, #1060c0 50%, #0a4a8a 100%);
  padding: 20px 28px 18px;
  border-radius: 24px 24px 0 0;
}

.page-section-header h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.page-section-header h2 i {
  color: rgba(255,255,255,0.80);
  margin-right: 8px;
}

.page-section-header p {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  margin: 0;
}

.page-section-body {
  padding: 24px 28px 32px;
}

@media (max-width: 600px) {
  .page-section-header { padding: 16px 18px 14px; }
  .page-section-body   { padding: 18px 16px 24px; }
}

/* ── Light mode : card blanche ───────────────────────────────── */
html:not(.dark-mode) .page-section {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Dark mode : card sombre + header bleu nuit ─────────────── */
html.dark-mode .page-section {
  background: var(--card-bg);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.16);
}

html.dark-mode .page-section-header {
  background: linear-gradient(160deg, #0a2a5a 0%, #050f22 100%);
}

html.dark-mode .page-section-header h2 {
  color: #fff;
}
html.dark-mode .page-section-header h2 i {
  color: rgba(180,210,255,0.80);
}

html.dark-mode .page-section-header p {
  color: rgba(180,210,255,0.65);
}

/* ══════════════════════════════════════════════════════════════
   FIXES LIGHT MODE — pages outils (uv, qualite-air, allergenes…)
   ══════════════════════════════════════════════════════════════ */

/* quick-card (qualite-air.php, body.foggy — ne reçoit pas body.home-light) */
html:not(.dark-mode) .quick-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  color: #1a2a4a;
}
html:not(.dark-mode) .quick-card:hover {
  background: #f5f9ff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  border-color: rgba(28,134,238,0.2);
}
html:not(.dark-mode) .qc-city  { color: #1a2a4a; }
html:not(.dark-mode) .qc-desc  { color: #6a7a90; }
html:not(.dark-mode) .qc-temp  { color: #1c3a70; }
html:not(.dark-mode) .qc-right { color: #6a7a90; }

/* uv-search-box : fond hardcodé rgba(255,255,255,0.06) illisible en clair */
html:not(.dark-mode) .uv-search-box {
  background: #f0f4f8;
  border-color: rgba(0,0,0,0.10);
}

/* uv-city-mini-bar track : fond hardcodé */
html:not(.dark-mode) .uv-city-mini-bar {
  background: rgba(0,0,0,0.08);
}

/* hover de city-card : fond hardcodé blanc-transparent */
html:not(.dark-mode) .uv-city-card:hover {
  background: #f5f9ff;
}

/* uv-daily-row séparateurs */
html:not(.dark-mode) .uv-daily-row {
  border-color: rgba(0,0,0,0.06);
}

/* rec-section-title (utilisé sur uv.php) */
html:not(.dark-mode) .rec-section-title { color: #1a2a4a; }

/* Note de source sous tableau records */
.rec-source-note {
  font-size: 0.75rem;
  margin-top: 12px;
  text-align: right;
  opacity: 0.5;
}

/* ── Pilules de navigation ancre (.page-pills) ───────────────── */
.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.page-pill i { font-size: 0.8rem; opacity: 0.75; }
.page-pill:hover {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
  box-shadow: 0 4px 14px rgba(28,134,238,0.30);
}
.page-pill:hover i { opacity: 1; }

html:not(.dark-mode) .page-pill {
  background: #fff;
  border-color: rgba(0,0,0,0.10);
  color: #1a2a4a;
}
html:not(.dark-mode) .page-pill:hover {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
}

/* ── Satellite info grid (satellite.php) ────────────────────── */
.sat-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.sat-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sat-info-icon {
  font-size: 1.5rem;
  color: #2b96ff;
  margin-bottom: 2px;
}
.sat-info-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sat-info-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.sat-info-tag {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 10px;
  margin-top: 4px;
  align-self: flex-start;
}
.sat-tag-good    { background: rgba(39,174,96,0.12);  color: #27ae60; }
.sat-tag-neutral { background: rgba(52,152,219,0.12); color: #2980b9; }

html:not(.dark-mode) .sat-info-card {
  background: #f7faff;
  border-color: rgba(0,0,0,0.07);
}
html:not(.dark-mode) .sat-info-card h3 { color: #1a2a4a; }
html:not(.dark-mode) .sat-info-card p  { color: #4a5a70; }

/* ── Top 10 qualité de l'air ─────────────────────────────────── */
.aq-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.aq-top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aq-top-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 60px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: border-color 0.15s;
}
.aq-top-row:hover { border-color: rgba(28,134,238,0.25); }

.aq-rank {
  font-size: 1.4rem;
  text-align: center;
  line-height: 1;
}
.aq-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.aq-city-name   { font-weight: 700; font-size: 0.95rem; }
.aq-city-region { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.aq-bar-wrap {
  height: 8px;
  background: var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}
.aq-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.aq-pollutant {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.aq-badge {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  text-align: center;
}

.aq-update-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 16px;
  opacity: 0.6;
  text-align: right;
}

html:not(.dark-mode) .aq-top-row {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
html:not(.dark-mode) .aq-top-row:hover { border-color: rgba(28,134,238,0.2); }
html:not(.dark-mode) .aq-rank-num { background: #e8edf4; color: #4a5a70; }

@media (max-width: 640px) {
  .aq-top-row {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
  }
  .aq-bar-wrap  { display: none; }
  .aq-pollutant { display: none; }
  .aq-badge     { grid-column: 3; grid-row: 1; }
  .aq-city-info { grid-column: 2; grid-row: 1 / 3; }
}

/* ── Flèches navigation graphique horaire UV ─────────────────── */
.uv-hour-nav {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.15s, color 0.15s;
}
.uv-hour-nav:hover { background: #1c86ee; color: #fff; border-color: #1c86ee; }
.uv-hour-nav-right { left: auto; right: 0; }

/* ── LIGHT MODE FIXES — /foudre ──────────────────────────────── */
html:not(.dark-mode) .foudre-tip { background: rgba(0,0,0,0.04); color: #1a2a4a; }

/* ── LIGHT MODE FIXES — /marees pilules ports ────────────────── */
html:not(.dark-mode) .marees-port-btn { background: #f0f4f8; border-color: rgba(0,0,0,0.10); color: #1a2a4a; }
html:not(.dark-mode) .marees-port-btn:hover { background: #1c86ee; border-color: #1c86ee; color: #fff; }
html:not(.dark-mode) .marees-port-btn.active { background: rgba(28,134,238,0.10); border-color: rgba(28,134,238,0.40); color: #1060c0; }

/* ── LIGHT MODE FIXES — /records ─────────────────────────────── */
html:not(.dark-mode) .rec-abs-card { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
html:not(.dark-mode) .rec-abs-hot  { background: linear-gradient(145deg,rgba(255,100,30,0.08),#fff8f5); }
html:not(.dark-mode) .rec-abs-cold { background: linear-gradient(145deg,rgba(60,150,255,0.08),#f5f8ff); }
html:not(.dark-mode) .rec-abs-label { color: #6a7a90; }
html:not(.dark-mode) .rec-abs-lieu,
html:not(.dark-mode) .rec-abs-date  { color: #4a5a70; }
html:not(.dark-mode) .rec-abs-lieu i,
html:not(.dark-mode) .rec-abs-date i { color: #8a9ab0; }
html:not(.dark-mode) .rec-abs-ctx { color: #5a6a80; }

html:not(.dark-mode) .rec-table-wrap { border-color: rgba(0,0,0,0.08); }
html:not(.dark-mode) .rec-table thead th { color: #6a7a90; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
html:not(.dark-mode) .rec-table tbody tr { border-color: rgba(0,0,0,0.04); }
html:not(.dark-mode) .rec-table tbody tr:hover { background: rgba(0,0,0,0.02); }
html:not(.dark-mode) .rec-month { color: #1a2a4a; }
html:not(.dark-mode) .rec-detail { color: #8a9ab0; }

html:not(.dark-mode) .event-card { background: #f7faff; border-color: rgba(0,0,0,0.06); }
html:not(.dark-mode) .event-chaleur { border-color: rgba(255,100,30,0.20); }
html:not(.dark-mode) .event-froid   { border-color: rgba(60,150,255,0.20); }
html:not(.dark-mode) .event-title { color: #1a2a4a; }
html:not(.dark-mode) .event-desc  { color: #4a5a70; }

html:not(.dark-mode) .histo-stat { background: #f0f4f8; border-color: rgba(0,0,0,0.08); }
html:not(.dark-mode) .histo-stat-hot  { border-color: rgba(255,100,30,0.18); }
html:not(.dark-mode) .histo-stat-cold { border-color: rgba(60,150,255,0.18); }
html:not(.dark-mode) .histo-stat-label { color: #6a7a90; }
html:not(.dark-mode) .histo-stat-sub   { color: #8a9ab0; }
html:not(.dark-mode) .histo-stat-avg .histo-stat-val { color: #1a2a4a; }
html:not(.dark-mode) .histo-bar-year   { color: #6a7a90; }
html:not(.dark-mode) .histo-source { color: #8a9ab0; }
html:not(.dark-mode) .histo-label { color: #6a7a90; }

/* ── /vent : search card trop large sur petit mobile ─────────── */
@media (max-width: 480px) {
  .uv-search-card { padding: 14px 12px 12px; }
  .uv-search-box  { min-width: 0; }
  .uv-search-row  { gap: 8px; }
  .uv-geo-btn     { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
}

/* ── Bannières alertes météo (canicule, etc.) ───────────────────── */
#meteo-alert-banner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 4px;
}

.meteo-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  animation: alertSlideIn 0.35s ease;
}
@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.meteo-alert-canicule {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #e67e22 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
}

.meteo-alert-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.meteo-alert-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meteo-alert-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.95;
}

.meteo-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.92;
  transition: opacity 0.18s;
}
.meteo-alert-link:hover { opacity: 1; }

@media (max-width: 600px) {
  #meteo-alert-banner { padding: 0 12px 4px; }
  .meteo-alert { padding: 14px 16px; gap: 11px; }
  .meteo-alert-icon { font-size: 1.4rem; }
}

/* ── Page /canicule ─────────────────────────────────────────────── */
.canicule-hero {
  background: linear-gradient(150deg, #7b1a0e 0%, #c0392b 40%, #e67e22 100%);
  padding: 52px 24px 48px;
  text-align: center;
  color: #fff;
}
.canicule-hero-inner { max-width: 640px; margin: 0 auto; }
.canicule-hero-icon  { font-size: 3.2rem; margin-bottom: 12px; line-height: 1; }
.canicule-hero-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 10px; }
.canicule-hero-sub   { font-size: 1rem; opacity: 0.88; margin: 0; }

.canicule-text-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.canicule-text-body p { margin: 0 0 14px; }
.canicule-text-body p:last-child { margin-bottom: 0; }

.canicule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 420px;
}
.canicule-table th {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.canicule-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
}
.canicule-table tbody tr:last-child td { border-bottom: none; font-weight: 700; background: rgba(192,57,43,0.07); }
html:not(.dark-mode) .canicule-table tbody tr:nth-child(odd) td { background: #fafafa; }
html:not(.dark-mode) .canicule-table tbody tr:last-child td { background: rgba(192,57,43,0.07); }

.canicule-table-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 12px 20px 16px;
  margin: 0;
  font-style: italic;
}

.canicule-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.canicule-tip {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}
html:not(.dark-mode) .canicule-tip { background: #fff8f6; border-color: rgba(192,57,43,0.15); }
.canicule-tip-icon  { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.canicule-tip-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; color: var(--text-primary); }
.canicule-tip p     { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.canicule-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.canicule-phone {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 18px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}
html:not(.dark-mode) .canicule-phone { background: #fff8f6; border-color: rgba(192,57,43,0.15); }
.canicule-phone-num   { font-size: 2rem; font-weight: 800; color: #c0392b; line-height: 1; margin-bottom: 6px; }
.canicule-phone-label { font-size: 0.8rem; color: var(--text-secondary); }

@media (max-width: 600px) {
  .canicule-hero { padding: 36px 16px 32px; }
  .canicule-tips-grid { grid-template-columns: 1fr; }
  .canicule-phones { gap: 8px; }
  .canicule-phone-num { font-size: 1.6rem; }
}

/* ── Windy iframe : guard 2 doigts (mobile uniquement) ─────────── */
.windy-guard {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.windy-guard-hint {
  background: rgba(0,0,0,0.68);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.windy-guard.show .windy-guard-hint { opacity: 1; }
@media (pointer: fine) { .windy-guard { display: none; } }

/* ── Tables : scroll horizontal mobile (appliqué via JS) ─────── */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.table-scroll-wrap > table { min-width: 480px; }

/* ── Hero homepage — fond bleu → texte blanc en mode clair ──── */
html:not(.dark-mode) body.home-light .hero h1           { color: #fff; }
html:not(.dark-mode) body.home-light .hero h1 em        { color: rgba(255,255,255,0.85); }
html:not(.dark-mode) body.home-light .hero .hero-subtitle { color: rgba(255,255,255,0.78); }
html:not(.dark-mode) body.home-light .hero .search-icon { color: rgba(255,255,255,0.75); }
html:not(.dark-mode) body.home-light .hero .geoloc-btn  { color: #fff; }

/* ── Author card ──────────────────────────────────────────────── */
.author-card {
  margin: 32px auto 24px;
  max-width: 800px;
  background: #f0f4ff;
  border: 1px solid #c3d5f7;
  border-radius: 16px;
  padding: 20px 24px;
}
.author-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-card-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c86ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card-avatar {
  font-size: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.author-card-info { flex: 1; min-width: 0; }
.author-card-label {
  font-size: 0.75rem;
  color: #5a6a88;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 2px;
}
.author-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a2a4a;
  margin: 0 0 4px;
}
.author-card-bio {
  font-size: 0.85rem;
  color: #4a5a78;
  line-height: 1.5;
  margin: 0 0 8px;
}
.author-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c86ee;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.author-card-link:hover { text-decoration: underline; }
@media (max-width: 540px) {
  .author-card { width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
  .author-card-inner { flex-direction: column; align-items: flex-start; }
  .author-card-photo { width: 64px; height: 64px; }
}

/* ── Author card — dark mode ─────────────────────────────────── */
.dark-mode .author-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}
.dark-mode .author-card-label { color: rgba(255,255,255,0.40); }
.dark-mode .author-card-name  { color: #e8eaf0; }
.dark-mode .author-card-bio   { color: rgba(255,255,255,0.60); }
.dark-mode .author-card-link  { color: #5aacf5; }

/* ── Équipe — page liste ─────────────────────────────────────── */
.equipe-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 80px;
}
.equipe-intro-box {
  background: #e8f0fe;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 48px;
  border: 1px solid #c3d5f7;
}
.equipe-intro-text {
  color: #1a2a4a;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
.equipe-intro-icon {
  color: #1c86ee;
  margin-right: 8px;
}
.equipe-empty {
  color: #6a7a90;
  text-align: center;
}
.dark-mode .equipe-intro-box {
  background: rgba(28,134,238,0.10);
  border-color: rgba(28,134,238,0.25);
}
.dark-mode .equipe-intro-text { color: rgba(255,255,255,0.75); }

/* ── Équipe — grille de cards ─────────────────────────────────── */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.equipe-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(28,134,238,0.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #e4ecf7;
}
.equipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(28,134,238,0.14);
}
.equipe-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.equipe-card-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #fff;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equipe-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.equipe-card-avatar {
  font-size: 4rem;
  color: rgba(255,255,255,0.6);
}
.equipe-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.equipe-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a2a4a;
  margin: 0;
}
.equipe-card-meta {
  font-size: 0.82rem;
  color: #6a7a90;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.equipe-card-bio {
  font-size: 0.88rem;
  color: #4a5a78;
  line-height: 1.55;
  margin: 4px 0 0;
  flex: 1;
}
.equipe-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c86ee;
}

/* ── Équipe — dark mode cards ────────────────────────────────── */
.dark-mode .equipe-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 2px 16px rgba(0,0,0,0.30);
}
.dark-mode .equipe-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
}
.dark-mode .equipe-card-photo { background: #fff; background-color: #fff; }
.dark-mode .equipe-card-name  { color: #e8eaf0; }
.dark-mode .equipe-card-meta  { color: rgba(255,255,255,0.45); }
.dark-mode .equipe-card-bio   { color: rgba(255,255,255,0.60); }
.dark-mode .equipe-card-cta   { color: #5aacf5; }

/* ── Équipe — page détail ─────────────────────────────────────── */
.equipe-detail-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e4ecf7;
}
.equipe-detail-photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1c86ee, #0a2a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(28,134,238,0.2);
}
.equipe-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.equipe-detail-avatar { font-size: 3.5rem; color: rgba(255,255,255,0.7); }
.equipe-detail-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a2a4a;
  margin: 0 0 4px;
}
.equipe-detail-subtitle {
  font-size: 0.9rem;
  color: #5a6a88;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.equipe-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.equipe-tag {
  background: #e8f0fe;
  color: #1a2a4a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.equipe-detail-section {
  margin-bottom: 40px;
}
.equipe-detail-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a2a4a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.equipe-detail-section p {
  color: #2a3a5a;
  line-height: 1.75;
  margin-bottom: 12px;
}
.equipe-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.equipe-recent-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8faff;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.equipe-recent-item a:hover { background: #e8f0fe; }
.equipe-recent-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #1c86ee22;
  color: #1c86ee;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.equipe-recent-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2a4a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equipe-recent-date {
  font-size: 0.78rem;
  color: #6a7a90;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ── Équipe detail — dark mode */
.dark-mode .equipe-detail-section h2 { color: #e8eaf0; }
.dark-mode .equipe-detail-section p  { color: rgba(255,255,255,0.70); }
.dark-mode .equipe-detail-section-label { color: rgba(255,255,255,0.45); }
.dark-mode .equipe-tag { background: rgba(255,255,255,0.08); color: #c8d4f0; }
.dark-mode .equipe-recent-item a {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: #e8eaf0;
}
.dark-mode .equipe-recent-item a:hover { background: rgba(255,255,255,0.10); }
.dark-mode .equipe-recent-title { color: #e8eaf0; }
.dark-mode .equipe-recent-date  { color: rgba(255,255,255,0.45); }
.dark-mode .equipe-recent-badge { background: rgba(28,134,238,0.20); color: #5aacf5; }

@media (max-width: 620px) {
  .equipe-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .equipe-detail-tags { justify-content: center; }
  .equipe-recent-item a { flex-wrap: wrap; }
  .equipe-recent-title { white-space: normal; }
}

/* ── Admin bar ───────────────────────────────────────────────── */
.admin-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 16px;
}
.admin-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(220, 53, 69, 0.5);
  background: rgba(220, 53, 69, 0.12);
  color: #e05260;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.admin-delete-btn:hover {
  background: rgba(220, 53, 69, 0.22);
  border-color: rgba(220, 53, 69, 0.8);
}
/* Bouton poubelle inline (observations, commentaires) */
.admin-inline-delete {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 53, 69, 0.15);
  color: #e05260;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.admin-inline-delete:hover { background: rgba(220, 53, 69, 0.3); }

/* ── Boutons like/dislike profil ────────────────────────────── */
.profil-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--color-text-rgb, 100,100,100), 0.2);
  background: transparent;
  color: var(--color-text);
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.profil-react-btn:hover { background: rgba(var(--color-text-rgb, 100,100,100), 0.08); }
.profil-react-btn--active {
  border-color: var(--color-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-primary, #3b82f6);
}
.profil-react-btn--dislike.profil-react-btn--active {
  border-color: #e05260;
  background: rgba(220, 53, 69, 0.12);
  color: #e05260;
}
.profil-obs-reactions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.profil-obs-reactions .profil-react-btn {
  padding: 4px 10px;
  font-size: .8rem;
}
.profil-obs-emoji {
  font-size: 1.5em;
  margin-right: 4px;
  line-height: 1;
}
.profil-obs-photo:hover {
  opacity: .85;
  transform: scale(1.03);
  transition: opacity .15s, transform .15s;
}
.profil-obs-measures {
  font-size: .82rem;
  color: var(--color-primary, #3b82f6);
  margin: 3px 0 2px;
  font-weight: 500;
}
.profil-obs-city-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profil-obs-city-link:hover { color: var(--color-primary, #3b82f6); }
