/* Charte graphique Conciergerie Séjour d'Ouest — pages villes */
:root {
  --primary: #0a2e38;
  --accent: #cfb186;
  --bg-light: #f5f3ef;
  --text-dark: #1a1a1a;
  --font-main: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(10, 46, 56, 0.08);
  --shadow-hover: 0 12px 32px rgba(10, 46, 56, 0.12);
}

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

body {
  font-family: var(--font-main);
  margin: 0;
  line-height: 1.65;
  color: var(--text-dark);
  padding-top: 60px;
  background: var(--bg-light);
}

#main-menu { min-height: 60px; }

header.hero {
  padding: 4rem 5%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Sections en pleine largeur — même margin/padding que page d'accueil (5 %) */
section,
header:not(.hero) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 80px 5%;
  box-sizing: border-box;
}

/* Contenu de section centré comme sur l'accueil (max-width + margin auto + text-align center) */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  box-sizing: border-box;
}
.section-inner h2,
.section-inner h3 {
  text-align: center;
}
.section-inner p {
  text-align: center;
}
.section-inner ul {
  display: inline-block;
  text-align: left;
  margin: 1rem auto;
}
.section-inner .comparison-table,
.section-inner .grid {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.section-inner .section-10-cta {
  justify-content: center;
}


h1, h2, h3 {
  line-height: 1.25;
  margin-top: 0;
  color: var(--primary);
}

h1 {
  font-size: 2.2rem;
  font-weight: 300;
}

h1 strong {
  font-weight: 700;
  color: var(--accent);
  display: block;
}

h2 {
  font-size: 1.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Ligne décorative sous les titres de section (charte) */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

p {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

p strong {
  color: var(--primary);
  font-weight: 700;
}

/* Hero ville = style accueil : 90vh, overlay blanc, texte sombre */
.hero {
  position: relative;
  height: 90vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

/* Fallback si pas d'image (dégradé) */
.hero:not([style*="background-image"]) {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a5a 100%);
}

/* Overlay blanc comme page accueil (texte lisible en sombre) */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-align: left;
}

/* Badge hero (charte : bandeau, bords carrés comme le reste du site) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  border-left: 4px solid var(--accent);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-badge i {
  font-size: 1rem;
  color: var(--accent);
}

/* Badge miniature type carte (Superhôte) — style carte avec bordure or/bleu, bandeau dans le cadre */
.hero-superhost-badge {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 0.85rem 2rem 0.85rem 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 20px rgba(10, 46, 56, 0.1);
  overflow: hidden;
  min-width: 280px;
}
.hero-superhost-badge .badge-ribbon {
  position: absolute;
  top: 10px;
  right: 0;
  background: #b85c5c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.32rem 3.25rem;
  transform: translate(15%, 0) rotate(28deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.hero-superhost-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.hero-superhost-badge .badge-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-superhost-badge .badge-note i {
  color: #b85c5c;
  font-size: 1rem;
}
.hero-superhost-badge .badge-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 300;
}
.hero h1 strong { color: var(--accent); }
.hero p {
  color: #555;
  font-size: 1.15rem;
  margin-top: 0.5rem;
  max-width: 500px;
}
.hero p strong { color: var(--primary); }

/* Ancienne image dans le hero (conservée si besoin) */
.hero img {
  width: 100%;
  border-radius: 14px;
  margin-top: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Grilles et cartes */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.box {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(10, 46, 56, 0.06);
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.box h3 { color: var(--primary); }
.box p { font-size: 1.05rem; color: #555; }

/* Cartes avec icône (charte) */
.box-with-icon {
  position: relative;
  padding-top: 2.5rem;
}

.box-with-icon .box-icon {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a5a 100%);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.25rem;
}

/* FAQ : icône question */
.faq-box {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.faq-box .faq-icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Listes */
ul { padding-left: 1.1rem; list-style: none; }

li {
  margin: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 1.05rem;
}

li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a5a 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta .cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
  color: var(--accent);
}

.cta h2, .cta p, .cta a { position: relative; z-index: 1; }

.cta h2 {
  color: white;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}

.cta a,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  color: var(--primary);
  background: var(--accent);
  padding: 0.85rem 1.75rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(207, 177, 134, 0.3);
}

.cta a .cta-icon,
.cta-button .cta-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.cta a:hover,
.cta-button:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(207, 177, 134, 0.4);
}

.cta-button { color: #fff; }
.cta-button:hover { color: var(--primary); }

/* Sections alternées */
section { background: white; }
section:nth-child(even) { background: var(--bg-light); }

section img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Office de tourisme */
.office-tourisme {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.office-tourisme h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.office-tourisme-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  max-width: 65ch;
}

.office-tourisme-link {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.office-tourisme-link a {
  color: var(--primary);
  text-decoration: underline;
}

.office-tourisme-link a:hover { text-decoration: none; }

.office-tourisme.premium .office-tourisme-premium-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.office-tourisme.premium .office-tourisme-image img {
  width: 100%;
  border-radius: 8px;
}

/* Tableau comparatif */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 1rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
  background: #1a4a5a;
}

.comparison-table tr:nth-child(even) { background: #f9fafb; }

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--primary);
}

.comparison-table .check { color: #059669; font-weight: 700; }
.comparison-table .cross { color: #dc2626; font-weight: 700; }

/* Section dédiée 10 % — padding 5 % comme accueil */
.section-10 {
  background: linear-gradient(135deg, rgba(10, 46, 56, 0.04) 0%, rgba(207, 177, 134, 0.06) 100%);
  border-left: 4px solid var(--accent);
  padding: 2rem 5%;
  position: relative;
}

.section-10 h2 .title-icon {
  color: var(--accent);
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.section-10 h2 {
  margin-bottom: 1rem;
}

.section-10 .section-10-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.section-10 .section-10-cta a {
  display: inline-block;
}

/* Légende image région */
.section-region-img .ville-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

/* Images touristiques — arrondi et légende optionnelle */
.ville-img-wrap {
  margin: 1.5rem 0 0;
  max-width: 100%;
}

.ville-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: block;
}

.ville-img-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

.hero .ville-img-wrap { margin-top: 1.5rem; }
.hero .ville-img { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.hero .ville-img-caption { color: rgba(255, 255, 255, 0.85); }

/* Bloc image région (section dédiée) */
.section-region-img .ville-img-wrap {
  margin-top: 0;
}

.section-region-img .ville-img-caption {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section-10 { padding: 1.5rem 5%; }
  .section-10 .section-10-cta { flex-direction: column; align-items: stretch; }
}

/* Responsive — aligné sur le reste du site (conserver 5 % horizontal) */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
    padding: 3rem 5%;
  }
  .hero h1 { font-size: 1.85rem; }

  header:not(.hero),
  section {
    padding: 32px 5%;
  }
  .section-inner { padding: 0 0.5rem; }

  h1 {
    font-size: 1.75rem;
  }

  h1 strong {
    display: inline;
  }

  h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
  }

  h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  p {
    font-size: 0.95rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta {
    padding: 2rem 1.25rem;
  }

  .cta h2 {
    font-size: 1.35rem;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .box p {
    font-size: 0.95rem;
  }

  li {
    font-size: 0.95rem;
  }

  .office-tourisme h3 {
    font-size: 1.1rem;
  }

  .office-tourisme-text {
    font-size: 0.95rem;
  }

  .office-tourisme.premium .office-tourisme-premium-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.5rem;
  }
}

/* --- Bloc présentation ville (template canonique) : section, container, card, titre 2 couleurs, camembert --- */
.section-light {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  text-align: center;
}
.container .h2,
.container .h3,
.container .ville-text p,
.container .ville-touristes p {
  text-align: center;
}
.container .ville-text,
.container .ville-stats,
.container .ville-touristes {
  text-align: center;
}
.container .ville-text p,
.container .ville-touristes-source {
  margin-left: auto;
  margin-right: auto;
  max-width: 65ch;
}
.container .stats-wrapper,
.container .histogram-touristes {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 20px rgba(10, 46, 56, 0.08));
}
.card-pad {
  padding: 2.5rem 2rem;
}
.h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  color: var(--primary);
}
.h2.title-2colors .accent {
  color: var(--accent);
  font-weight: 600;
}
.h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.ville-section {
  margin-bottom: 0;
}
.ville-media {
  margin: 1.5rem 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
}
.ville-media img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.ville-media:hover img {
  transform: scale(1.05);
}
.ville-text {
  margin-top: 1.5rem;
}
.ville-text p,
.ville-section p {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: #555;
  font-size: 1.05rem;
}
.ville-stats {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.stats-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.chart-container {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.stats-legend {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}
.dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.dot.occupied {
  background: #0F3E46;
}
.dot.free {
  background: #C8A977;
}
.stat-line {
  margin-top: 8px;
}

/* --- Histogramme touristes étrangers (classement par nationalité) --- */
.ville-touristes {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.ville-touristes .h3 {
  margin-bottom: 0.75rem;
}
.ville-touristes-source {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}
.histogram-touristes {
  margin-top: 1rem;
  max-width: 420px;
}
.histogram-touristes-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.histogram-touristes-label {
  width: 120px;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
.histogram-touristes-bar-wrap {
  flex: 1;
  height: 24px;
  background: rgba(10, 46, 56, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.histogram-touristes-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.histogram-touristes-bar.rank-1 { background: #0F3E46; }
.histogram-touristes-bar.rank-2 { background: #1a5260; }
.histogram-touristes-bar.rank-3 { background: #C8A977; }
.histogram-touristes-pct {
  width: 42px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}
