/* Styles des pages SEO statiques "Où partir".
   Tout est scopé sous .seo-page car Tailwind ne traite pas public/ : ce fichier doit
   être 100 % autonome. Il sert aussi au rendu du <main> injecté dans le panneau
   Inspirations de la SPA (variante .seo-page.in-panel). */

.seo-page, .seo-page *, .seo-page *::before, .seo-page *::after { box-sizing: border-box; }

.seo-page {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1f2937;
  background: #f9fafb;
  -webkit-font-smoothing: antialiased;
}

.seo-page a { color: #1d4ed8; text-decoration: none; }
.seo-page a:hover { text-decoration: underline; }

/* En-tête (dégradé identique au header de la SPA), avec logo + nav permanente */
.seo-page .site-header {
  background: linear-gradient(135deg, #0a1a5c 0%, #0f2060 45%, #1d4ed8 100%);
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.25rem;
}
.seo-page .site-header .brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }

/* Navigation principale (permanente sur toutes les pages SEO) */
.seo-page .site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.seo-page .site-nav a {
  color: #dbeafe; font-size: 0.9rem; font-weight: 600;
  padding: 0.35rem 0.8rem; border-radius: 999px; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.seo-page .site-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }
.seo-page .site-nav a.is-active { background: #fff; color: #1d4ed8; }
.seo-page .site-header .brand:hover { text-decoration: none; }
.seo-page .site-header .brand-logo { width: 40px; height: 40px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.seo-page .site-header .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.seo-page .site-header .brand-name { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.seo-page .site-header .tagline { color: #bfdbfe; font-size: 0.76rem; margin-top: 0.1rem; }

/* Bannière "mettre en avant le moteur de recherche" */
.seo-page .search-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}
.seo-page .search-cta-body { min-width: 0; flex: 1 1 300px; }
.seo-page .search-cta-title { margin: 0; font-size: 1.08rem; font-weight: 700; }
.seo-page .search-cta-text { margin: 0.3rem 0 0; font-size: 0.88rem; color: #dbeafe; line-height: 1.45; }
.seo-page .search-cta-btn {
  flex-shrink: 0; white-space: nowrap;
  background: #fff; color: #1d4ed8; font-weight: 700; font-size: 0.95rem;
  padding: 0.6rem 1.15rem; border-radius: 10px; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.seo-page .search-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); text-decoration: none; }

/* Fil d'Ariane */
.seo-page .breadcrumbs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  color: #6b7280;
}
.seo-page .breadcrumbs .sep { margin: 0 0.4rem; color: #d1d5db; }

/* Corps */
.seo-page main { max-width: 860px; margin: 0 auto; padding: 1.85rem 1.25rem 2.5rem; }

.seo-page h1 {
  font-size: 2.15rem;
  line-height: 1.12;
  margin: 0.25rem 0 1rem;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.seo-page main h2 {
  font-size: 1.42rem;
  line-height: 1.25;
  margin: 2rem 0 0.85rem;
  color: #0f172a;
  letter-spacing: -0.015em;
}

/* Chapô éditorial (sans cadre, façon blog) */
.seo-page .intro {
  font-size: 1.15rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 1.6rem;
}
.seo-page .intro .methodology { display: block; margin-top: 0.6rem; font-size: 0.82rem; color: #6b7280; line-height: 1.5; }

/* Sections par région */
.seo-page .dest-section { margin: 0 0 2rem; }
.seo-page .section-title {
  font-size: 1.42rem;
  color: #0f172a;
  margin: 2rem 0 0.3rem;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 0.5rem;
}
.seo-page .section-intro { margin: 0 0 1rem; color: #6b7280; font-size: 0.95rem; }

/* Liste de cartes */
.seo-page .dest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }

.seo-page .dest-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.seo-page .dest-card:hover { border-color: #bfdbfe; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09); transform: translateY(-1px); }

/* Carte entière cliquable via lien "étiré" (le nom), tout en gardant des liens réels.
   Les autres liens (vignette, CTA) repassent au-dessus de l'overlay pour rester cliquables. */
.seo-page .dest-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.seo-page .dest-thumb-link, .seo-page .dest-more a { position: relative; z-index: 2; }
.seo-page a.dest-name { color: #0f172a; text-decoration: none; }
.seo-page a.dest-name:hover { text-decoration: underline; }
.seo-page .dest-card:hover .dest-name { color: #1d4ed8; }
.seo-page .dest-more { margin: 0.6rem 0 0; font-size: 0.85rem; }
.seo-page .dest-more a { color: #1d4ed8; font-weight: 600; }
.seo-page .dest-more a:hover { text-decoration: underline; }
.seo-page .dest-book { margin: 0.5rem 0 0; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.seo-page .dest-book a { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 0.4rem; text-decoration: none; color: #fff; }
.seo-page .dest-book a.book-train { background: #6d28d9; }
.seo-page .dest-book a.book-train:hover { background: #5b21b6; }
.seo-page .dest-book a.book-bus { background: #0d9488; }
.seo-page .dest-book a.book-bus:hover { background: #0f766e; }

.seo-page .dest-thumb {
  width: 104px; height: 104px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2ff;
  display: block;
}
.seo-page .dest-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.seo-page .dest-body { min-width: 0; }
.seo-page .dest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.seo-page .dest-name { font-weight: 700; font-size: 1.1rem; color: #0f172a; line-height: 1.2; }
.seo-page .dest-country { margin: 0.1rem 0 0; font-size: 0.8rem; color: #6b7280; }
.seo-page .dest-climate { margin: 0.5rem 0 0; font-size: 0.86rem; color: #374151; font-variant-numeric: tabular-nums; }
.seo-page .dest-extract { margin: 0.55rem 0 0; font-size: 0.9rem; color: #4b5563; line-height: 1.5; }

.seo-page .dest-chips { list-style: none; margin: 0.65rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seo-page .chip {
  font-size: 0.72rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* Badge score */
.seo-page .badge {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  min-width: 2.4rem;
  text-align: center;
}
.seo-page .score-high { background: #dcfce7; color: #15803d; }
.seo-page .score-mid  { background: #fef3c7; color: #b45309; }
.seo-page .score-low  { background: #fee2e2; color: #b91c1c; }

/* Navigation interne / maillage */
.seo-page .internal-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between;
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.92rem;
}
.seo-page .internal-nav .nav-index { font-weight: 600; }
.seo-page .also-line { margin: 0.75rem 0 0; font-size: 0.92rem; color: #6b7280; }

/* Bloc « temps réel » (pages horizons #112) — mis en avant sur le hub /ou-partir/. */
.seo-page .rt-hub { margin: 1.1rem 0 1.4rem; padding: 1rem 1.15rem; background: linear-gradient(135deg, #eff6ff, #eef2ff); border: 1px solid #dbeafe; border-radius: 14px; }
.seo-page .rt-hub-title { margin: 0 0 0.7rem; font-size: 1.02rem; font-weight: 700; color: #0f2060; }
.seo-page .rt-hub-title span { font-size: 0.8rem; font-weight: 500; color: #6b7280; }
.seo-page .rt-hub-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.seo-page .rt-hub-links a { flex: 1 1 8rem; text-align: center; padding: 0.6rem 1rem; background: #fff; border: 1px solid #dbeafe; border-radius: 10px; font-weight: 600; color: #1d4ed8; text-decoration: none; transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s; }
.seo-page .rt-hub-links a:hover { border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15); text-decoration: none; }

/* Menu de mois concis (pastilles), tout en haut des pages "où partir" */
.seo-page .month-menu {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 0 0 1.35rem;
}
.seo-page .month-chip {
  font-size: 0.82rem; line-height: 1;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: #fff; border: 1px solid #e5e7eb; color: #374151;
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.seo-page .month-chip:hover { border-color: #1d4ed8; color: #1d4ed8; text-decoration: none; }
.seo-page .month-chip.is-current { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 600; }

/* ===== Fiche destination ===== */
.seo-page .dest-hero {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0.25rem 0 1.5rem;
  background: #eef2ff;
}
.seo-page .period { font-size: 1.05rem; color: #1f2937; margin: 0 0 0.5rem; }
.seo-page section { margin: 0 0 1.75rem; }

/* Table climat 12 mois */
.seo-page .climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.seo-page .climate-table thead th {
  text-align: right;
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.seo-page .climate-table thead th:first-child { text-align: left; }
.seo-page .climate-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #111827;
  padding: 0.5rem 0.7rem;
}
.seo-page .climate-table tbody td { text-align: right; padding: 0.5rem 0.7rem; color: #374151; }
.seo-page .climate-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.seo-page .climate-table tbody tr:last-child { border-bottom: none; }
.seo-page .climate-table tbody tr.score-high { background: #f0fdf4; }
.seo-page .climate-table tbody tr.score-mid  { background: #fffbeb; }
.seo-page .climate-table .badge { min-width: 2.2rem; padding: 0.15rem 0.45rem; font-size: 0.8rem; }

/* Que faire / infos pratiques */
.seo-page .todo-list, .seo-page .facts { margin: 0; padding-left: 1.2rem; color: #374151; }
.seo-page .todo-list li, .seo-page .facts li { margin: 0.25rem 0; }
.seo-page .facts { list-style: none; padding-left: 0; }
.seo-page .facts li { padding: 0.3rem 0; border-bottom: 1px solid #f3f4f6; }

/* Bloc CTA (hub → destinations) */
.seo-page .cta-block {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  border-radius: 12px;
}
.seo-page .cta-block h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.seo-page .cta-block p { margin: 0; color: #374151; }

/* Index des destinations (groupé par pays) */
.seo-page .country-group { margin: 0 0 1.5rem; }
.seo-page .country-group h2 {
  font-size: 1.05rem; margin: 0 0 0.6rem; padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb; display: flex; align-items: baseline; gap: 0.5rem;
}
.seo-page .country-group .count {
  font-size: 0.72rem; font-weight: 500; color: #6b7280;
  background: #f3f4f6; border-radius: 999px; padding: 0.05rem 0.5rem;
}
.seo-page .dest-index-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.3rem 1rem;
}
.seo-page .dest-index-list a { display: block; padding: 0.2rem 0; }

/* Pied de page */
.seo-page .site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #9ca3af;
  font-size: 0.8rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.seo-page .site-footer a { color: #6b7280; }
.seo-page .site-footer .footer-tagline { margin: 0 0 0.5rem; color: #9ca3af; max-width: 40rem; margin-left: auto; margin-right: auto; }
.seo-page .site-footer nav a { margin: 0 0.15rem; }

/* Mobile */
@media (max-width: 540px) {
  .seo-page h1 { font-size: 1.7rem; }
  .seo-page main h2, .seo-page .section-title { font-size: 1.25rem; }
  .seo-page .intro { font-size: 1.05rem; }
  .seo-page main { padding: 1.1rem 0.9rem 2rem; }
  .seo-page .search-cta { padding: 1rem; }
  .seo-page .dest-card { grid-template-columns: 72px 1fr; gap: 0.8rem; padding: 0.8rem 0.85rem; }
  .seo-page .dest-thumb { width: 72px; height: 72px; }
  .seo-page .internal-nav { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== Consentement activités GetYourGuide ===== */
.seo-page .gyg-consent {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1rem 1.1rem; color: #4b5563; font-size: 0.9rem;
}
.seo-page .gyg-consent p { margin: 0 0 0.75rem; }
.seo-page .gyg-consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seo-page .gyg-accept, .seo-page .gyg-deny {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid transparent;
}
.seo-page .gyg-accept { background: #1d4ed8; color: #fff; font-weight: 600; }
.seo-page .gyg-accept:hover { background: #1e40af; }
.seo-page .gyg-deny { background: #fff; color: #4b5563; border-color: #d1d5db; font-weight: 500; }
.seo-page .gyg-deny:hover { background: #f3f4f6; }
.seo-page .gyg-fallback { margin: 0; }
.seo-page .gyg-fallback-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #e11d48; color: #fff; font-weight: 600; font-size: 0.92rem;
  padding: 0.55rem 1.1rem; border-radius: 10px; text-decoration: none;
}
.seo-page .gyg-fallback-btn:hover { background: #be123c; text-decoration: none; }

/* ===== Pages légales (mentions / confidentialité) ===== */
.seo-page .legal h2 { font-size: 1.25rem; }
.seo-page .legal p, .seo-page .legal li { color: #374151; }
.seo-page .legal address { font-style: normal; color: #374151; }
.seo-page .legal .updated { margin-top: 2rem; color: #6b7280; font-size: 0.85rem; font-style: italic; }
.seo-page .legal .reset-btn {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid #d1d5db;
  background: #fff; color: #1d4ed8;
}
.seo-page .legal .reset-btn:hover { background: #eff6ff; border-color: #1d4ed8; }
.seo-page .legal .gyg-reset-done { color: #15803d; font-weight: 600; margin-top: 0.6rem; }
