/* ============================================================================
   AirPollens — CSS des pages de contenu SEO
   Réutilise les variables CSS de app_live.html
   ============================================================================ */

:root {
  --bg-dark: #0f172a;
  --bg-header: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-light: #bbf7d0;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-glass: rgba(255,255,255,0.85);
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════
   HEADER UNIFIÉ — même style que /carte
   ══════════════════════════════════════════════ */

.site-header {
  background: var(--bg-header);
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

/* ── Nav inline (même classe que /carte) ── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 0 4px;
}

.nav-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link svg { flex-shrink: 0; opacity: 0.85; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { background: var(--accent); color: #fff; }

/* ── Actions à droite ── */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-account-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-account-app:hover { background: rgba(255,255,255,0.1); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  align-items: center;
}

/* ── Menu langue dropdown ── */

.lang-menu { position: relative; }

.lang-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.lang-menu-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }

.lang-current { letter-spacing: 0.04em; }

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  min-width: 168px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  z-index: 200;
  animation: langDropIn 0.12s ease;
}

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

.lang-menu.open .lang-dropdown { display: block; }

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.lang-dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-dropdown-item.active {
  color: var(--accent);
  background: rgba(34,197,94,0.12);
  font-weight: 600;
}

/* ── BREADCRUMB ── */

.breadcrumb {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb li::after {
  content: '>';
  margin-left: 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ── LAYOUT PRINCIPAL ── */

.page-content {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 24px;
}

.sidebar {
  display: none; /* Visible en desktop via media query */
}

@media (min-width: 1100px) {
  body > .page-content,
  body > .sidebar {
    /* Le layout est géré par le wrapper implicite */
  }

  .page-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
  }

  .sidebar {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

/* ── HERO VILLE ── */

.ville-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  height: 240px;
}

.ville-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ville-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 20px;
  background: linear-gradient(to top, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.4) 60%, transparent 100%);
}

.ville-hero-overlay h1 {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.photo-credit {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.photo-credit a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

@media (max-width: 768px) {
  .ville-hero { height: 180px; }
  .ville-hero-overlay { padding: 24px 16px 14px; }
  .ville-hero-overlay h1 { font-size: 1.2rem; }
}

/* ── TYPOGRAPHIE ARTICLE ── */

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.page-content ul, .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.page-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 2px;
}

.page-content a.btn-cta {
  color: white;
  text-decoration: none;
}

.page-content a:hover {
  color: var(--accent);
}

.page-content a.btn-cta:hover {
  color: white;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

/* ── ENCADRÉ RÉSUMÉ (fiches allergènes) ── */

.fiche-resume {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.fiche-resume h2 {
  margin-top: 0;
  border: none;
  padding: 0;
  font-size: 1.25rem;
}

.fiche-resume dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin-top: 12px;
}

.fiche-resume dt {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.fiche-resume dd {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ── BADGES RISQUE ── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-nul { background: #f0fdf4; color: #166534; }
.badge-faible { background: #fef9c3; color: #854d0e; }
.badge-modere { background: #ffedd5; color: #9a3412; }
.badge-eleve { background: #fee2e2; color: #991b1b; }
.badge-tres-eleve { background: #fecaca; color: #7f1d1d; }
.badge-critique { background: #991b1b; color: white; }

/* ── COEFFICIENT DE TOXICITÉ ── */

.toxicite-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.toxicite-faible { background: #f0fdf4; color: #166534; }
.toxicite-modere { background: #ffedd5; color: #9a3412; }
.toxicite-eleve { background: #fee2e2; color: #991b1b; }

/* ── CALENDRIER VISUEL ── */

.calendrier-pollen {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 16px 0 24px;
}

.calendrier-pollen .mois {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
}

.calendrier-pollen .mois-inactif { background: var(--surface-alt); color: var(--text-muted); }
.calendrier-pollen .mois-debut { background: #fef3c7; color: #92400e; }
.calendrier-pollen .mois-pic { background: #fca5a5; color: #991b1b; }
.calendrier-pollen .mois-fin { background: #fef3c7; color: #92400e; }

/* ── TABLEAU COMPARATIF ── */

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.table-seo {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-seo th {
  background: var(--bg-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
}

.table-seo td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.table-seo tr:nth-child(even) td {
  background: var(--surface-alt);
}

.table-seo tr:hover td {
  background: #f0fdf4;
}

/* ── FAQ ACCORDÉON ── */

.faq-section {
  margin-top: 32px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--surface-alt);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── ENCADRÉ CONSEIL ── */

.conseil-box {
  background: #f0f9ff;
  border-left: 4px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.conseil-box.conseil-attention {
  background: #fffbeb;
  border-left-color: var(--warning);
}

.conseil-box.conseil-danger {
  background: #fef2f2;
  border-left-color: var(--danger);
}

.conseil-box h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.conseil-box p {
  margin: 0;
  font-size: 0.875rem;
}

/* ── CTA BUTTONS ── */

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--accent-dark);
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f0fdf4;
}

/* ── SIDEBAR ── */

.sidebar-cta {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(34,197,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(34,197,94,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #f8fafc 100%);
  color: var(--text);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid #d1fae5;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 64px;
  height: 64px;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='1.5'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.sidebar-cta h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.sidebar-cta p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.sidebar-cta .btn-cta {
  display: block;
  text-align: center;
}

.sidebar-links {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.sidebar-links h4 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
  color: var(--text);
}

.sidebar-links ul {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: var(--accent);
}

/* ── FOOTER ── */

.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  margin-top: 64px;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8125rem;
}

/* ── ALLERGÈNES INDEX ── */

.allergenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.allergene-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.allergene-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.allergene-card h3 {
  font-size: 1.125rem;
  margin: 0 0 4px;
  color: var(--text);
}

.allergene-card .meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.allergene-card .saison {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── GUIDES INDEX ── */

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--text);
}

.guide-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── VILLES INDEX ── */

.villes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 170px));
  gap: 8px;
  margin: 12px 0;
}

.ville-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ville-card:hover {
  border-color: var(--accent);
  background: #f0fdf4;
}

/* ── HOMEPAGE HERO ── */

.hero {
  background: #0f172a; /* fallback pendant le chargement de l'iframe */
  padding: 108px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Wrapper de la carte-fond */
.hero-map-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* L'iframe embarque /carte en fond non-interactif */
.hero-map-iframe {
  position: absolute;
  top: -64px;  /* masque le header de la carte */
  left: -40px; /* décale pour masquer les contrôles latéraux */
  width: calc(100% + 80px);
  height: calc(100% + 160px);
  border: none;
  pointer-events: none;
  opacity: 0.45;
  filter: saturate(1.2);
}

/* Overlay multi-couche : fond sombre + vignette bords */
.hero-map-overlay {
  position: absolute;
  inset: 0;
  background:
    /* vignette bords */
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 35%, rgba(15,23,42,0.55) 100%),
    /* fond directionnel */
    linear-gradient(160deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.55) 45%, rgba(13,40,24,0.78) 100%);
  /* Masque les contrôles UI (légende bas-gauche, zoom haut-droit, bords) */
  box-shadow:
    inset 0   -160px 80px -20px #0f172a,
    inset 0    100px 60px -40px #0f172a,
    inset -100px 0   80px -30px #0f172a,
    inset  180px 0   80px -60px #0f172a;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2), var(--shadow-md);
}

.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.3), var(--shadow-lg);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  /* Séparateur visuel avec la carte */
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.4;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

/* ── HOMEPAGE SECTIONS ── */

.hp-bg      { background: var(--surface-alt); }
.hp-bg-alt  { background: var(--surface); }
.hp-bg-dark { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

.hp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hp-section-header { margin-bottom: 36px; }
.hp-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hp-section-header p { color: var(--text-light); font-size: 1rem; }
.hp-section-header--center { text-align: center; }

.hp-see-more {
  margin-top: 28px;
  text-align: right;
}
.hp-see-more a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
}
.hp-see-more a:hover { text-decoration: underline; }

/* ── CITIES GRID ── */

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.city-card-hp {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.city-card-hp:hover {
  border-color: var(--accent);
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.city-flag {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.city-card-hp span:not(.city-flag) { flex: 1; }

.city-card-hp svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.18s;
}
.city-card-hp:hover svg { color: var(--accent); }

/* ── ALLERGENS GRID ── */

.allergens-grid-hp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.allergen-card-hp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.allergen-card-hp:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.allergen-icon-hp {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.allergen-card-hp h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.allergen-card-hp .allergen-season {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── HOW IT WORKS ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  text-align: center;
  padding: 8px;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(34,197,94,0.15);
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── FEATURED GUIDES ── */

.guides-grid-hp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card-hp {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.guide-card-hp:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.guide-card-hp h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card-hp p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── LANGUAGE SWITCHER ── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.lang-btn {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.lang-btn.active {
  background: rgba(34,197,94,0.2);
  color: var(--accent);
}

/* ── COUNTRY GROUP (villes index) ── */

.villes-index {
  grid-column: 1 / -1;
}

.country-group {
  margin-bottom: 28px;
}

.country-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  /* Header mobile : nav devient drawer */
  .site-header { padding: 0 12px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #1e293b;
    flex-direction: column;
    padding: 8px 12px 14px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; font-size: 14px; }
  .nav-link span { display: inline !important; }
  .btn-account-app span { display: none; }

  .page-content {
    padding: 0 16px;
    margin: 24px auto;
  }

  .page-content h1 { font-size: 1.5rem; }
  .page-content h2 { font-size: 1.25rem; margin-top: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .calendrier-pollen { grid-template-columns: repeat(6, 1fr); }
  .fiche-resume dl { grid-template-columns: 1fr; }
  .allergenes-grid { grid-template-columns: 1fr; }

  /* Homepage responsive */
  .hero { padding: 72px 20px 52px; min-height: 500px; }
  .hero-map-iframe { display: none; }
  .hero-map-overlay { background: linear-gradient(160deg, rgba(15,23,42,0.95) 0%, rgba(13,40,24,0.9) 100%); }
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; margin-top: 32px; padding-top: 28px; }
  .hero-stat strong { font-size: 1.5rem; }
  .hp-section { padding: 48px 20px; }
  .hp-section-header h2 { font-size: 1.375rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .guides-grid-hp { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Sur tablette : icônes seules dans la nav */
  .nav-link span { display: none; }
  .nav-link { padding: 7px 9px; }
  .btn-account-app span { display: none; }
}

@media (max-width: 480px) {
  .calendrier-pollen { grid-template-columns: repeat(4, 1fr); }
  .hero-content h1 { font-size: 1.75rem; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .allergens-grid-hp { grid-template-columns: repeat(2, 1fr); }
}
