/* === styles.css (gabarit 71, couleurs nationales) === */
/* ============================================================
   BennesPro 71 – CSS Design System
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:       #032E3B;
  --primary-dark:  #00212E;
  --primary-light: #D2D8DB;
  --secondary:     #FD5202;
  --secondary-dark:#CF3B00;
  --secondary-on-dark: #FF5304;
  --accent:        #EEF3F5;
  --text:          #15191B;
  --text-muted:    #586E78;
  --bg:            #FFFFFF;
  --bg-light:      #F5F8FA;
  --bg-dark:       #012C39;
  --border:        #D9DEE0;
  --success:       #0A7F57;
  --warning:       #FD5202;
  --error:         #D32F2F;

  --radius-sm: 8px;
  --radius:    10px;
  --radius-lg: 10px;
  --radius-xl: 10px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(3,46,59,.15);
  --shadow-xl: 0 20px 60px rgba(3,46,59,.20);

  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-heading: 'Archivo', system-ui, sans-serif;

  --container: 1200px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: var(--space-md); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: var(--text);
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(253,82,2,.35);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(253,82,2,.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border-color: var(--secondary);
  padding: 10px 22px;
  font-size: .9rem;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--text);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo-dept { color: var(--secondary); }
/* Lot S8 (16/10/2026) : logo approuvé en image ; taille d'affichage seulement, jamais de couleur. */
.logo-img { display: block; height: 36px; width: auto; }
.footer-logo .logo-img { height: 32px; }
@media (max-width: 400px) { .site-header .logo-img { height: 30px; } }

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.nav-cta {
  background: var(--secondary);
  color: var(--text) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 60%, #01202A 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(253,82,2,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(253,82,2,.32);
  border: 1px solid rgba(255,83,4,.55);
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.hero h1 { color: #fff; margin-bottom: var(--space-md); }
.hero h1 span { color: var(--secondary-on-dark); }
.hero-subtitle {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary-on-dark);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  opacity: .75;
  margin-top: 2px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-benne-svg {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
}

/* --- Section Base --- */
.section {
  padding: var(--space-3xl) 0;
}
.section-alt {
  background: var(--bg-light);
}
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-sm);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* --- How it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 0;
}
.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 16px rgba(3,46,59,.3);
}
.step-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-md);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.step-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* --- Avantages (Features) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.feature-card p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* --- Types de bennes --- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.type-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.type-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.type-card .type-volume {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary-on-dark);
  line-height: 1;
}
.type-card h3 { font-size: 1.1rem; margin: var(--space-sm) 0 var(--space-md); color: #fff; }
.type-card ul { list-style: none; padding: 0; flex-grow: 1; }
.type-card ul li {
  font-size: .88rem;
  opacity: .85;
  padding: 4px 0;
}
.type-card ul li::before { content: '✓ '; color: var(--secondary-on-dark); font-weight: 700; }
.type-card .type-price {
  margin-top: var(--space-lg);
  font-size: .85rem;
  opacity: .75;
}
.type-card .type-price strong { color: #fff; }
.type-card .type-volume .vol-exp { font-size: .64em; vertical-align: .14em; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary), #F04600);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--text); margin-bottom: var(--space-md); }
.cta-banner p { color: #15191B; margin-bottom: var(--space-xl); font-size: 1.05rem; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars {
  color: #CF3B00;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}
.testimonial-text {
  font-size: .95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-city { font-size: .8rem; color: var(--text-muted); }

/* --- Villes grid --- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.city-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  transition: all 0.22s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city-card:hover {
  border-color: var(--primary);
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.city-card .city-name { font-weight: 600; font-size: .92rem; }
.city-card .city-zip { font-size: .78rem; color: var(--text-muted); }

/* Cities listing page */
.cities-listing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
@media (max-width: 1024px) { .cities-listing { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .cities-listing { grid-template-columns: repeat(2, 1fr); } }

/* --- Ville detail page --- */
.ville-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
}
.ville-hero h1 { color: #fff; }
.ville-hero .breadcrumb { margin-bottom: var(--space-md); }
.breadcrumb a, .breadcrumb span {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

.ville-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}
.ville-sidebar {
  position: sticky;
  top: 90px;
}
.devis-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
}
.devis-widget h3 { margin-bottom: var(--space-sm); color: var(--primary); }
.devis-widget p { font-size: .9rem; color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ============================================================
   MÉTÉO CHANTIER – Widget par ville
   ============================================================ */

.meteo-widget {
  margin-top: var(--space-lg);
  background: linear-gradient(160deg, #fff 0%, var(--bg-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 180px;
}

/* --- Loading --- */
.meteo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
  font-size: .9rem;
}
.meteo-loading p { margin: 0; }
.meteo-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: meteo-spin .8s linear infinite;
}
@keyframes meteo-spin { to { transform: rotate(360deg); } }

/* --- Erreur --- */
.meteo-error {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-xl) var(--space-lg);
}
.meteo-error-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.meteo-error p { margin: 0; font-size: .92rem; color: var(--text-muted); line-height: 1.7; }

/* --- Bandeau conditions actuelles --- */
.meteo-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 65%, #01202A 100%);
  color: #fff;
}
.meteo-now-main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.meteo-now-txt { display: flex; flex-direction: column; line-height: 1.25; }
.meteo-now-temp {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
}
.meteo-now-lib { font-size: .95rem; font-weight: 600; color: #fff; }
.meteo-now-city { font-size: .78rem; opacity: .75; letter-spacing: .02em; }

.meteo-now-stats {
  display: flex;
  gap: var(--space-lg);
}
.meteo-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: var(--space-lg);
  border-left: 1px solid rgba(255,255,255,.18);
}
.meteo-stat:first-child { border-left: 0; padding-left: 0; }
.meteo-stat-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.meteo-stat-v { font-size: 1rem; font-weight: 700; }

/* --- Recommandation --- */
.meteo-reco {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: #FFF7E8;
  border-bottom: 1px solid #F6E3BE;
}
.meteo-reco-icon { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.meteo-reco p {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #7A5410;
  line-height: 1.6;
}

/* --- Grille 7 jours --- */
.meteo-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.meteo-day {
  position: relative;
  background: #fff;
  padding: var(--space-lg) var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: background .22s, transform .22s;
}
.meteo-day:hover { background: var(--accent); }
.meteo-day.is-today { background: var(--accent); }
.meteo-day.is-best {
  background: #F0FBF5;
  box-shadow: inset 0 0 0 2px var(--success);
  z-index: 1;
}
.meteo-badge-best {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
  white-space: nowrap;
}
.meteo-day-name {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.meteo-day-date { font-size: .7rem; color: var(--text-muted); }
.meteo-icon { display: block; margin: 2px auto; }
.meteo-day-temps {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
}
.meteo-day-temps strong { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.meteo-day-temps em { font-size: .82rem; font-style: normal; color: var(--text-muted); }
.meteo-day-lib {
  font-size: .68rem;
  color: var(--text-muted);
  line-height: 1.3;
  min-height: 1.8em;
}
.meteo-day-meta {
  display: flex;
  gap: 8px;
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Jauge indice chantier */
.meteo-gauge {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.meteo-gauge-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.meteo-lvl-ideal   { background: var(--success); }
.meteo-lvl-correct { background: #84CC16; }
.meteo-lvl-moyen   { background: var(--secondary); }
.meteo-lvl-mauvais { background: var(--error); }

.meteo-day-level {
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.meteo-lvl-txt-ideal   { color: var(--success); }
.meteo-lvl-txt-correct { color: #446F0D; }
.meteo-lvl-txt-moyen   { color: var(--secondary-dark); }
.meteo-lvl-txt-mauvais { color: var(--error); }

/* --- Légende --- */
.meteo-legend {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.meteo-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: 6px;
}
.meteo-legend-items span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.meteo-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.meteo-source {
  margin: 0;
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.meteo-source a { color: var(--primary); text-decoration: underline; }

/* --- CTA sous le widget --- */
.meteo-cta {
  display: flex !important;
  justify-content: center;
  margin: var(--space-lg) var(--space-xl) var(--space-xl);
}

/* --- Conseils météo --- */
.meteo-tips { margin-top: var(--space-xl); }
.meteo-tips h3 { font-size: 1.15rem; margin-bottom: var(--space-md); }
.meteo-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.meteo-tip {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: transform .22s, box-shadow .22s;
}
.meteo-tip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.meteo-tip-icon { font-size: 1.5rem; display: block; margin-bottom: var(--space-sm); }
.meteo-tip h4 { font-size: .95rem; margin-bottom: 6px; }
.meteo-tip p { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* --- Mini widget sidebar --- */
.meteo-mini {
  margin-top: var(--space-lg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.meteo-mini-head {
  padding: 10px var(--space-lg);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.meteo-mini-label {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.meteo-mini-body { padding: var(--space-md) var(--space-lg); }
.meteo-mini-now {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.meteo-mini-now > div { display: flex; flex-direction: column; line-height: 1.2; }
.meteo-mini-temp {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}
.meteo-mini-lib { font-size: .78rem; color: var(--text-muted); }
.meteo-mini-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-md);
}
.meteo-mini-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: .7rem;
  color: var(--text-muted);
}
.meteo-mini-day strong { font-size: .82rem; color: var(--text); font-family: var(--font-heading); }
.meteo-mini-link {
  display: block;
  padding: 10px var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  transition: background .2s;
}
.meteo-mini-link:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .meteo-spinner { animation-duration: 2s; }
  .meteo-gauge-bar { transition: none; }
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group label .required { color: var(--error); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3,46,59,.12);
}
.form-control::placeholder { color: #626D68; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check-label { font-size: .9rem; color: var(--text-muted); }
.form-hint { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* Devis page large form */
.devis-form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.devis-form-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border);
}
.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.step-indicator {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.step-ind {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step-ind .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: all 0.2s;
}
.step-ind.active { color: var(--primary); }
.step-ind.active .num { background: var(--primary); color: #fff; }
.step-ind.done .num { background: var(--success); color: #fff; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  gap: var(--space-lg);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--accent); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Trust badges --- */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: var(--space-lg) 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .9rem;
  font-weight: 500;
}
.trust-item svg { opacity: .85; }

/* --- Alert success --- */
.alert {
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
}
.alert-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}
.alert-info {
  background: var(--accent);
  border: 1px solid var(--primary-light);
  color: var(--primary);
}

/* --- Page hero small --- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-md); }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb { justify-content: center; display: flex; gap: 0; margin-bottom: var(--space-md); }

/* --- Comment ça marche page --- */
.how-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.how-section.reverse { direction: rtl; }
.how-section.reverse > * { direction: ltr; }
.how-visual {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.how-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: .12;
  line-height: 1;
  margin-bottom: calc(-1 * var(--space-xl));
}
.how-content h2 { margin-bottom: var(--space-md); }
.how-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: var(--space-md); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: .95rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='white' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 14px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--success);
}

/* --- Mentions légales --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-section {
  margin-bottom: var(--space-2xl);
}
.legal-section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-light);
}
.legal-section p, .legal-section ul { font-size: .95rem; color: var(--text-muted); line-height: 1.8; }
.legal-section ul { list-style: disc; padding-left: var(--space-xl); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.8);
  padding: var(--space-2xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.footer-brand p { font-size: .9rem; opacity: .75; margin-top: var(--space-md); margin-bottom: var(--space-lg); line-height: 1.7; }
.footer-cta { display: inline-block; }
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.site-footer ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color 0.2s;
}
.site-footer ul a:hover { color: var(--secondary); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: .88rem;
  opacity: .75;
  margin-bottom: var(--space-sm);
}
.footer-contact p svg { width: 16px; height: 16px; color: var(--secondary); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-lg) 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  opacity: .55;
}
.footer-bottom-inner a { color: inherit; }
.footer-bottom-inner a:hover { opacity: 1; color: var(--secondary); }

/* --- Reveal on scroll --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ville-content { grid-template-columns: 1fr; }
  .ville-sidebar { position: static; }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .how-section { grid-template-columns: 1fr; }
  .how-section.reverse { direction: ltr; }

  /* Météo : 4 colonnes sur tablette */
  .meteo-days { grid-template-columns: repeat(4, 1fr); }
  .meteo-tips-grid { grid-template-columns: repeat(3, 1fr); }
  .meteo-mini { max-width: 420px; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 2px solid var(--border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-sm); }
  .main-nav a.nav-cta { display: inline-block; margin-top: var(--space-sm); }
  .site-header { position: relative; }

  .features-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .devis-form-card { padding: var(--space-lg); }
  .trust-bar-inner { flex-direction: column; gap: var(--space-md); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .step-indicator { flex-direction: column; align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* --- Météo mobile --- */
  .meteo-now {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .meteo-now-stats {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-sm);
  }
  .meteo-stat {
    align-items: flex-start;
    padding-left: var(--space-md);
    flex: 1;
  }
  .meteo-reco { padding: var(--space-md) var(--space-lg); }
  .meteo-days { grid-template-columns: repeat(3, 1fr); }
  .meteo-day { padding: var(--space-md) 6px; }
  .meteo-day-lib { min-height: 0; }
  .meteo-legend { padding: var(--space-md) var(--space-lg); }
  .meteo-cta {
    margin: var(--space-md) var(--space-lg) var(--space-lg);
    width: calc(100% - var(--space-lg) * 2);
    text-align: center;
  }
  .meteo-tips-grid { grid-template-columns: 1fr; }
  .meteo-mini { max-width: none; }
}

@media (max-width: 420px) {
  .meteo-days { grid-template-columns: repeat(2, 1fr); }
  .meteo-now-temp { font-size: 2rem; }
  .meteo-mini-days { grid-template-columns: repeat(4, 1fr); gap: 4px; }
}
/* === devis-inline.css (gabarit 71, couleurs nationales) === */
.ville-main,
.home-main {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.ville-main > *,
.home-main > * { min-width: 0; }

.ville-main > .devis-inline,
.home-main  > .devis-inline,
.home-main  > .devis-inline-wrap { order: -1; }

.ville-main > *:not(.devis-inline),
.home-main  > *:not(.devis-inline):not(.devis-inline-wrap) { order: 0; }

.home-main > .devis-inline-wrap { padding-top: var(--space-xl, 28px); }

.devis-inline {
    background: var(--bg-light, #F5F8FA);
    border: 1px solid var(--border, #D9DEE0);
    border-radius: var(--radius, 14px);
    padding: var(--space-xl, 28px);
    margin-bottom: var(--space-2xl, 44px);
}

.devis-inline-head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.devis-inline-head p {
    margin: 0 0 var(--space-lg, 20px);
    color: var(--text-muted, #586E78);
    font-size: .92rem;
}

.devis-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md, 14px);
}

.devis-inline .form-group { display: flex; flex-direction: column; gap: 5px; }

.devis-inline label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text, #15191B);
}

.devis-inline .form-rgpd {
    margin-top: var(--space-md, 14px);
}

.devis-inline .form-rgpd label {
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    display: flex;
    font-weight: 400;
    font-size: .84rem;
    color: var(--text-muted, #586E78);
    line-height: 1.45;
}

.devis-inline .form-rgpd input { margin-top: 3px; flex-shrink: 0; }

.devis-inline-submit {
    margin-top: var(--space-lg, 20px);
    width: 100%;
    justify-content: center;
}

@media (max-width: 720px) {
    .devis-inline { padding: var(--space-lg, 20px); }
    .devis-inline-grid { grid-template-columns: 1fr; }
    .devis-inline-head h2 { font-size: 1.15rem; }
}

/* === blocs-locaux.css (gabarit 71, couleurs nationales) === */
#decheteries, #voirie, #meteo, #devis-rapide { scroll-margin-top: 90px; }

.ville-main > .ancrages { order: -1; }

.ancrages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm, 8px);
    margin: calc(-1 * var(--space-2xl, 44px) + var(--space-md, 16px)) 0 var(--space-2xl, 44px);
}
.ancrage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border, #D9DEE0);
    border-radius: var(--radius, 10px);
    text-decoration: none;
    color: var(--text, #15191B);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color .2s, background .2s;
}
.ancrage:hover { border-color: var(--primary, #032E3B); background: var(--accent, #EEF3F5); color: var(--primary, #032E3B); }
.ancrage svg { flex-shrink: 0; color: var(--primary, #032E3B); }
.ancrage small { display: block; font-weight: 400; color: var(--text-muted, #586E78); font-size: .78rem; margin-top: 2px; }

.dech-intro { color: var(--text-muted, #586E78); }
.dech-liste { list-style: none; padding: 0; margin: var(--space-lg, 24px) 0 0; display: flex; flex-direction: column; gap: var(--space-md, 16px); }
.dech-item {
    background: #fff;
    border: 1px solid var(--border, #D9DEE0);
    border-radius: var(--radius, 10px);
    padding: var(--space-md, 16px) var(--space-lg, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px var(--space-md, 16px);
}
.dech-item.dech-droit { border-left: 4px solid var(--success, #0A7F57); }
.dech-item.dech-verif { border-left: 4px solid var(--warning, #FD5202); }
.dech-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.dech-titre h3 { margin: 0; font-size: 1.05rem; }
.dech-km { font-size: .88rem; color: var(--text-muted, #586E78); white-space: nowrap; }
.dech-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .76rem; font-weight: 700; letter-spacing: .01em;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.dech-droit .dech-badge { background: #E3F4EC; color: #08633F; }
.dech-verif .dech-badge { background: #FDEBDD; color: #9A3E0F; }
.dech-adresse, .dech-horaires, .dech-collectivite { margin: 0; font-size: .88rem; color: var(--text-muted, #586E78); grid-column: 1 / -1; }
.dech-adresse strong { color: var(--text, #15191B); font-weight: 600; }
.dech-flux { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.dech-flux span {
    font-size: .76rem; padding: 2px 8px; border-radius: 6px;
    background: var(--bg-light, #F5F8FA); border: 1px solid var(--border, #D9DEE0); color: var(--text, #15191B);
}
.dech-flux .dech-flux-plus { background: transparent; border-style: dashed; color: var(--text-muted, #586E78); }
.dech-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dech-actions a {
    font-size: .84rem; font-weight: 600; text-decoration: none;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--primary, #032E3B); color: var(--primary, #032E3B);
}
.dech-actions a:hover { background: var(--primary, #032E3B); color: #fff; }
.dech-legende { margin-top: var(--space-md, 16px); font-size: .82rem; color: var(--text-muted, #586E78); }
.dech-sources { margin-top: 6px; font-size: .76rem; color: var(--text-muted, #586E78); }

.dech-bascule {
    margin-top: var(--space-lg, 24px);
    padding: var(--space-lg, 24px);
    background: var(--primary-light, #D2D8DB);
    border-radius: var(--radius, 10px);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md, 16px);
}
.dech-bascule p { margin: 0; font-size: .95rem; max-width: 62ch; }
.dech-bascule .btn { white-space: nowrap; }

.mairie-encart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px var(--space-lg, 24px);
    margin-top: var(--space-sm, 8px);
    font-size: .9rem;
}
.mairie-encart > div { display: flex; gap: 8px; align-items: flex-start; }
.mairie-encart svg { flex-shrink: 0; margin-top: 2px; color: var(--primary, #032E3B); }
.mairie-encart a { color: var(--primary, #032E3B); font-weight: 600; text-decoration: none; word-break: break-word; }
.mairie-encart a:hover { text-decoration: underline; }
.mairie-horaires { grid-column: 1 / -1; }
.mairie-horaires ul { list-style: none; padding: 0; margin: 2px 0 0; color: var(--text-muted, #586E78); font-size: .86rem; }

@media (max-width: 720px) {
    .ancrages { grid-template-columns: 1fr; margin-top: calc(-1 * var(--space-2xl, 44px) + var(--space-sm, 8px)); }
    .dech-item { padding: var(--space-md, 16px); }
    .mairie-encart { grid-template-columns: 1fr; }
    .dech-bascule .btn { width: 100%; justify-content: center; }
}

.dech-item[hidden], .dech-outils[hidden], .dech-liste[hidden], .dech-carte[hidden], .dech-vide[hidden] { display: none !important; }

.voisin-card { flex-direction: row; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 8px; padding: 10px 16px; }
.voisin-card svg { margin-top: 3px; }
.voisin-txt { display: flex; flex-direction: column; gap: 1px; }
.voisin-km, .voisin-dech { font-size: .78rem; color: var(--text-muted, #586E78); }

.estim { grid-column: 1 / -1; font-size: .88rem; }
.estim > summary { cursor: pointer; color: var(--primary, #032E3B); font-weight: 600; width: fit-content; }
.estim > summary:focus-visible { outline: 2px solid var(--primary, #032E3B); outline-offset: 2px; }
.estim-corps { margin-top: 8px; padding: var(--space-md, 16px); background: var(--accent, #EEF3F5); border-radius: var(--radius-sm, 8px); }
.estim-aide, .estim-note { margin: 0 0 8px; color: var(--text-muted, #586E78); font-size: .82rem; }
.estim-note { margin: 8px 0 0; font-size: .76rem; }
.estim-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.estim-cases label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.estim-cases input { margin-top: 3px; accent-color: var(--primary, #032E3B); }
.estim-cases small { display: block; color: var(--text-muted, #586E78); font-size: .76rem; }
.estim-resultat { margin: 10px 0 0; font-weight: 600; color: var(--primary-dark, #00212E); }
.estim-appliquer { margin-top: 8px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--primary, #032E3B); background: #fff; color: var(--primary, #032E3B); font-weight: 600; cursor: pointer; }
.bascule-table, .grille-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: var(--space-md, 16px); }
.bascule-table th, .bascule-table td, .grille-table th, .grille-table td { padding: 8px 10px; border-bottom: 1px solid var(--border, #D9DEE0); text-align: left; vertical-align: top; }
.bascule-table thead th, .grille-table thead th { font-size: .78rem; color: var(--text-muted, #586E78); font-weight: 600; }
.bascule-table tr[hidden] { display: none; }
.bascule-votre { background: var(--accent, #EEF3F5); }
.verdict-benne { color: var(--secondary-dark, #CF3B00); font-weight: 600; }
.verdict-decheterie { color: var(--success, #0A7F57); font-weight: 600; }
.tableau-defile { overflow-x: auto; }
.bascule-seuil { margin-top: var(--space-md, 16px); padding: var(--space-md, 16px); border-left: 4px solid var(--secondary, #FD5202); background: var(--bg-light, #F5F8FA); }
@media (max-width: 720px) {
    .estim-cases { grid-template-columns: 1fr; }
    .bascule-table, .grille-table { font-size: .82rem; }
    .bascule-table th, .bascule-table td, .grille-table th, .grille-table td { padding: 6px; }
}
.bascule-table caption, .grille-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bascule-regles { margin: var(--space-sm, 8px) 0 0; padding-left: 1.2em; font-size: .9rem; }
.prix-renvoi { display: block; margin-top: var(--space-lg, 24px); padding: 12px 16px; border: 1px solid var(--secondary, #FD5202); border-radius: var(--radius, 10px); color: var(--secondary-dark, #CF3B00); font-weight: 600; font-size: .9rem; text-decoration: none; }
.grille-table td small, .grille-table th small { color: var(--text-muted, #586E78); font-weight: 400; }

html:not(.js-reveal) .reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

html:not(.js-reveal) .faq-answer {
  max-height: none;
}

/* Révélation au défilement : seuls les blocs hors de la fenêtre au chargement portent
   .reveal-attente et attendent leur arrivée ; les autres restent visibles d'emblée, sans fondu. */
.reveal-on-scroll:not(.reveal-attente) {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Illustrations des étapes : elles se réduisent sur petit écran au lieu d'élargir la page. */
.how-section > * { min-width: 0; }
.how-visual svg { max-width: 100%; height: auto; }
.prixbloc-cartes { list-style: none; margin: var(--space-md, 16px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md, 16px); }
.prixbloc-carte { background: var(--bg-light, #F5F8FA); border: 1px solid var(--border, #D9DEE0); border-radius: var(--radius, 10px); padding: var(--space-lg, 24px) var(--space-md, 16px); }
.prixbloc-carte h3 { margin: 0; font-size: 1.1rem; color: var(--primary, #032E3B); }
.prixbloc-carte h3 small { display: block; margin-top: 2px; font-size: .82rem; font-weight: 400; color: var(--text-muted, #586E78); }
.prixbloc-prix { margin: var(--space-sm, 8px) 0 0; font-size: 1.35rem; }
.prixbloc-prix small { display: block; font-size: .76rem; color: var(--text-muted, #586E78); }
.prixbloc-pour { margin: var(--space-sm, 8px) 0 0; font-size: .82rem; color: var(--text-muted, #586E78); }
.prixbloc-usages { margin: 4px 0 0; padding-left: 1.1em; font-size: .9rem; }
.prixbloc-usages li { margin: 2px 0; }
.prixbloc-sous-titre { margin-top: var(--space-lg, 24px); font-size: 1.05rem; }
.prixbloc-conseils { margin: var(--space-sm, 8px) 0 0; padding-left: 1.1em; font-size: .92rem; }
.prixbloc-conseils li { margin: 6px 0; }
.prixbloc-detail { margin-top: var(--space-md, 16px); }
.prixbloc-detail > summary { cursor: pointer; color: var(--primary, #032E3B); font-weight: 600; font-size: .9rem; }
.prixbloc-detail > summary:focus-visible { outline: 2px solid var(--primary, #032E3B); outline-offset: 2px; }
.prixbloc-suite { margin-top: var(--space-md, 16px); font-weight: 600; }
.prixbloc-note { margin: var(--space-sm, 8px) 0 0; font-size: .82rem; color: var(--text-muted, #586E78); }

/* ── Lot reorg (22/09) ─────────────────────────────────────────────────────────
   Ordre à l'écran des pages communes : formulaire et encarts (`order:-1`), puis l'intro SEO, le bloc
   prix, les déchets acceptés, les déchèteries et la suite — dans l'ordre du HTML, sans autre `order`. */
#prix { scroll-margin-top: 90px; }
/* Ligne de budget sous les champs du formulaire de devis. */
.budget-indicatif { margin: var(--space-md, 14px) 0 0; font-size: .88rem; color: var(--text, #15191B); }
.budget-indicatif a, .budget-taille { white-space: nowrap; }
.budget-indicatif a { font-weight: 600; }
/* Anciens H4 devenus H3 (hiérarchie) : même rendu qu'un h4 de styles.css. */
.ville-main h3.titre-h4 { font-size: 1.1rem; font-weight: 700; }
/* Intitulés du pied de page : plus des titres de contenu, même rendu que .site-footer h3. */
.site-footer .footer-titre { font-family: var(--font-heading); line-height: 1.2; color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: var(--space-lg); }

/* ── Formulaires sur téléphone (23/09) ─────────────────────────────────────────
   Sous 1024 px seulement (blanc : 768 px et moins) : au-delà, rendu inchangé.
   1. Champ date : Safari iOS lui impose sa largeur native, qui dépasse la carte. On retire l'apparence
      native et on le ramène à la largeur du champ, à la hauteur des autres champs, valeur alignée à gauche.
   2. Boutons : le libellé passe à la ligne au lieu de sortir du bouton ; marge intérieure du grand
      bouton réduite pour garder deux lignes au plus en 360 px.
   3. Blanc au-dessus du formulaire : la section du formulaire qui suit le bandeau démarre à 32 px (au lieu
      de 96), et les garanties de /devis sont suivies de 24 px (au lieu de 64). Navigateurs sans :has() :
      espacement d'origine. */
@media (max-width: 1023.98px) {
  input.form-control[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 3.125rem;
    text-align: left;
  }
  input.form-control[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

  a.btn, button.btn { white-space: normal; text-align: center; }
  a.btn > svg, button.btn > svg { flex-shrink: 0; }
  button.btn.btn-lg { padding: 16px 20px; }
}
@media (max-width: 768px) {
  .page-hero + .section:has(.devis-form-card), .ville-hero + .section:has(.devis-inline) { padding-top: 32px; }
  .page-hero + .section:has(.devis-form-card) div:has(> .trust-item) { --space-2xl: 24px; }
}

/* ── Guide /dimensions-benne (24/09) ───────────────────────────────────────────
   Composants du site réutilisés (page-hero, section-alt, alert-info, check-list, grille-table dans
   tableau-defile, mc-faq, formulaire intégré) ; seuls les ajouts propres à la page sont ici.
   Cartes blanches sur fond section-alt (le gris clair des illustrations ne tranche pas, D9) ;
   tableau lisible en 360 px : colonne Volume figée, défilement horizontal du composant existant,
   sans JavaScript. */
.page-hero .dim-intro { max-width: 760px; }
.dim-encadre { max-width: 760px; margin: 0 auto var(--space-2xl); }
.dim-encadre p + p { margin-top: var(--space-sm); }
.dim-encadre a { font-weight: 600; text-decoration: underline; }
.dim-encadre h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: var(--space-sm); }
.dim-encadre-bas { margin: var(--space-2xl) auto 0; }
.dim-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.dim-carte { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.dim-carte h3 { font-size: 1.25rem; color: var(--primary); }
.dim-carte img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.dim-carte p { color: var(--text-muted); font-size: 1rem; }
.dim-etroit { max-width: 1000px; }
.dim-texte { color: var(--text-muted); font-size: 1.05rem; margin-top: var(--space-md); }
.dim-table { min-width: 680px; font-size: .95rem; }
.dim-table th[scope="row"], .dim-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; white-space: nowrap; }
.dim-table th[scope="row"] { font-weight: 700; color: var(--primary); }
.dim-table .dim-absente { color: var(--text-muted); font-style: italic; }
.dim-table thead th small { display: block; font-size: .72rem; }
.dim-note { margin-top: var(--space-lg); padding: var(--space-md); border-left: 4px solid var(--secondary); background: var(--bg-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dim-controles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.dim-controle { background: var(--bg-light); border: 1px solid var(--border); border-top: 4px solid var(--secondary); border-radius: var(--radius); padding: var(--space-lg); }
.dim-controle h3 { font-size: 1.15rem; margin: var(--space-md) 0 var(--space-sm); }
.dim-controle p { color: var(--text-muted); font-size: 1rem; }
.dim-carte .dim-repere, .dim-controle .dim-repere { margin-top: var(--space-sm); font-size: 0.95rem; }
.dim-picto { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); color: var(--primary); }
.devis-inline-head .dim-form-intro { margin: 0 0 var(--space-sm); color: var(--text); font-size: 1rem; }
.dim-liens-form { margin-top: var(--space-sm); text-align: center; font-size: .95rem; color: var(--text-muted); }
.devis-inline + .dim-liens-form { margin-top: calc(-1 * var(--space-xl)); }
.dim-liens-form a { font-weight: 600; text-decoration: underline; }
@media (max-width: 1024px) {
  .dim-controles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .dim-cartes { grid-template-columns: 1fr; gap: var(--space-lg); }
  .dim-carte, .dim-controle { padding: var(--space-md); }
  .dim-table { font-size: .9rem; }
}
@media (max-width: 560px) {
  .dim-controles { grid-template-columns: 1fr; }
}

/* Accueil en mobile (lot mob71, signalement humain du 02/10, Discord msg 1555653631674425455) — corrige ici et non
   dans styles.css (réécrit par le générateur) :
   - la rangée des 4 chiffres du hero passait à 3 + 1 orphelin sous 768 px (flex-wrap) → grille 2 × 2 ;
   - 96 px de vert vide sous cette rangée (padding du hero jamais réduit en mobile) → 40 px en bas ;
   - la barre de réassurance n'a pas de .container, donc aucune marge latérale : collée au bord en colonne
     → mêmes marges que .container (24 px, 16 px sous 768 px). */
.trust-bar-inner { padding-inline: var(--space-lg); }
@media (max-width: 768px) {
  .hero { padding-bottom: var(--space-xl); }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
  .trust-bar-inner { padding-inline: var(--space-md); }
}

/* Listes numérotées des pages éditoriales (lot listmob, 03/10) : même retrait que les listes à puces (styles.css:1233).
   La remise à zéro de styles.css:48 leur retirait tout retrait : les numéros sortaient de la colonne de texte et étaient
   rognés au bord gauche de l'écran sur téléphone (/methodologie, « en 4 temps »). */
.legal-section ol { padding-left: var(--space-xl); }

/* Thème national BennesPro v1.0 posé sur le CSS du 71 (maquette) */
:root {
  --primary:       #032E3B;
  --primary-dark:  #00212E;
  --primary-light: #D2D8DB;
  --secondary:     #FD5202;
  --secondary-dark:#CF3B00;
  --secondary-on-dark: #FF5304;
  --accent:        #EEF3F5;
  --text:          #15191B;
  --text-muted:    #586E78;
  --bg:            #FFFFFF;
  --bg-light:      #F5F8FA;
  --bg-dark:       #012C39;
  --border:        #D9DEE0;
  --on-accent:     #15191B;
  --shadow-lg: 0 12px 40px rgba(3,46,59,.15);
  --shadow-xl: 0 20px 60px rgba(3,46,59,.20);
  color-scheme: light;
}
body { background: var(--bg); }
.reveal-on-scroll { opacity: 1 !important; transform: none !important; }
/* Orange charte : texte sombre dessus (contraste) */
.btn-primary, .btn-secondary, .main-nav a.nav-cta { color: var(--on-accent) !important; }
.maquette-bandeau { background: #FFF4DB; color: #8A5300; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }
.logo-national { height: 40px; width: auto; display: block; }
.footer-logo .logo-national { height: 36px; }
.cp-widget { margin-top: var(--space-lg); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: var(--space-md); max-width: 520px; }
.cp-widget label { display: block; font-weight: 700; margin-bottom: var(--space-sm); color: #fff; }
.cp-widget-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cp-widget-row .form-control { flex: 1 1 160px; min-width: 0; }
.cp-widget-result { margin-top: var(--space-md); color: #fff; }
.cp-widget-result:empty { display: none; }
.cp-widget-result p { margin-bottom: var(--space-sm); }
.cp-widget-result .btn { margin: 4px 8px 4px 0; }
.cp-widget-result a.lien-secondaire { color: #fff; text-decoration: underline; }
.cp-note { font-size: .9rem; color: var(--primary); margin-top: 6px; font-weight: 600; }
.cp-note:empty { display: none; }
.dep-en-ligne { border-color: var(--secondary) !important; }
.dep-en-ligne .city-zip { color: var(--secondary-dark); font-weight: 700; }
.section-header-2 { margin-top: var(--space-2xl); }
.form-retour { margin-top: var(--space-md); font-weight: 700; color: #0A7F57; }

/* v2 */
.presentation { max-width: 760px; margin: 0 auto; text-align: center; }
.presentation .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-sm); }
.presentation h2 { margin-bottom: var(--space-md); text-wrap: balance; }
.presentation p { color: var(--text-muted); font-size: 1.05rem; }
.ville-intro h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: var(--space-md); }
.ville-intro .cities-grid { margin-top: var(--space-lg); }
.prixbloc-carte h3 { color: var(--primary); }
.home-main > .devis-inline-wrap { padding-bottom: 0; }

/* « Comment ça marche » à 3 cartes : le gabarit 71 en prévoit 4 (ligne de liaison calée sur 4 colonnes) */
.steps-grid.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid.steps-3::before { left: calc(100% / 6); right: calc(100% / 6); top: 68px; }
@media (max-width: 1024px) { .steps-grid.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .steps-grid.steps-3 { grid-template-columns: 1fr; } }

/* v3 : pied de page sans colonne contact (numéro national retiré) */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.form-erreur { margin-top: var(--space-md); font-weight: 700; color: var(--error); }
