/* ===== Variables & Reset ===== */
:root {
  --primary: #c2410c;
  --primary-dark: #d00000;
  --primary-light: #e87920;
  --secondary: #1b4332;
  --secondary-light: #2d6a4f;
  --accent: #40916c;
  --bg: #fafafa;
  --bg-alt: #f0f4f1;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #121714;
  --bg-alt: #1a211c;
  --text: #f4f7f5;
  --text-muted: #d0d8d3;
  --white: #1c2420;
  --border: #3a4a42;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --secondary: #8fd4b0;
  color-scheme: dark;
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-card-inner {
  background: #1c2420;
  color: var(--text);
}

/* Texte toujours lisible sur les bandes sombres */
.hero,
.page-hero,
.hero-video .hero-content,
.tarifs-hero,
.tour-hero {
  color: #fff !important;
}
.hero h1,
.hero-desc,
.page-hero h1,
.page-hero p,
.hero-badge {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero h1 span { color: #ffb703 !important; }

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  background: #151c19 !important;
  color: #f4f7f5 !important;
  border-color: #3a4a42 !important;
}
html[data-theme="dark"] .form-group input.is-invalid,
html[data-theme="dark"] .form-group select.is-invalid,
html[data-theme="dark"] .form-group textarea.is-invalid {
  background: #2a1616 !important;
  color: #fff !important;
  border-color: #ff6b6b !important;
}
html[data-theme="dark"] .form-group input.is-valid,
html[data-theme="dark"] .form-group select.is-valid,
html[data-theme="dark"] .form-group textarea.is-valid {
  background: #15241c !important;
  color: #fff !important;
}
html[data-theme="dark"] .form-group .field-error { color: #ff8a8a; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,4,0.35);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: #fff5f0;
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-icon { font-size: 1.5rem; }
.logo-text strong { color: var(--primary); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary-light); }
.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-light);
}
.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,93,4,0.15);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.card-link:hover { text-decoration: underline; }

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-list {
  margin: 1.5rem 0 2rem;
}
.about-list li {
  padding: 0.4rem 0;
  font-weight: 500;
  color: var(--secondary-light);
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-card-inner {
  padding: 2rem;
}
.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}
.about-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-card a { color: var(--primary); font-weight: 600; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Footer compact ===== */
.footer {
  background: #14261c;
  color: rgba(255,255,255,0.82);
  padding-top: 0.85rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  padding-bottom: 0.7rem;
}
.footer-logo { margin-bottom: 0; color: #fff; }
.footer-logo .logo-img { height: 28px !important; }
.footer-col p { display: none; }
.footer-col h4 { display: none; }
.footer-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
}
.footer-col ul li { margin: 0; font-size: 0.85rem; }
.footer-col a:hover { color: var(--primary-light); }
.footer-col:last-child p { display: block; margin: 0; font-size: 0.85rem; line-height: 1.35; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.45rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
}
html[data-theme="dark"] .footer { background: #0d1612; }

/* Formulaires */
.form-page { padding: 1.5rem 0 2.25rem; }
.form-card {
  background: var(--white);
  color: var(--text);
}
.form-section {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.35rem 0 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.form-section:first-child { border-top: none; padding-top: 0; }
.form-group { margin-bottom: 0.85rem; }
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
  accent-color: var(--primary);
}

/* ===== Page specific ===== */
.page-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* Price tables */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: #f8faf8; }
.price-tag {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Tournees */
.tournees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tournee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.tournee-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.tournee-card ul li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Calculator */
.calc-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  margin: 0 auto;
}
.calc-result {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin: 2rem 0 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.legal-content ul { padding-left: 1.25rem; list-style: disc; }

/* ===== Admin styles ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--secondary);
  color: var(--white);
  padding: 1.5rem 0;
}
.admin-logo {
  padding: 0 1.5rem 1.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-main {
  background: var(--bg-alt);
  padding: 2rem;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.admin-header h1 {
  font-size: 1.5rem;
  color: var(--secondary);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.admin-table th {
  background: #f5f7f5;
  font-weight: 600;
  color: var(--secondary);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #d8f3dc; color: #1b4332; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
}
.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-box h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.login-box .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Stats cards admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .label { font-size: 0.85rem; color: var(--text-muted); }
.stat-card .value { font-size: 1.75rem; font-weight: 800; color: var(--secondary); margin-top: 0.25rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: inline-flex; padding: 0.45rem 0.68rem; font-size: 0.74rem; white-space: nowrap; }
  .header-actions .theme-toggle { display: none; }
}


/* ===== Hero vidéo flammes ===== */
.hero-video {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: #1a0a00;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-el {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #1a0a00;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 18, 14, 0.72) 0%,
    rgba(0, 0, 0, 0.58) 45%,
    rgba(232, 93, 4, 0.28) 100%
  );
}
.hero-video .hero-content {
  position: relative;
  z-index: 1;
}
.hero-video .hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.hero-video .btn-outline {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.hero-video .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
@media (max-width: 768px) {
  .hero-video { min-height: 70vh; padding: 4rem 0 3.5rem; }
}


/* Logo image */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-logo .logo-img {
  height: 40px;
}
@media (max-width: 600px) {
  .logo-img { height: 40px; }
  .logo-text { font-size: 1rem; }
}


/* Validation formulaires */
.form-group .field-error {
  display: none;
  color: #c1121f;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c1121f !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12) !important;
}
.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
  border-color: #2d6a4f !important;
  background: #f4faf6 !important;
}


/* Accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--secondary, #1b4332);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--primary, #e85d04);
  outline-offset: 2px;
}
.nav-link:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary, #e85d04);
  outline-offset: 2px;
}

/* ===== Desktop uniquement (mobile inchangé) ===== */
@media (min-width: 901px) {
  .container { max-width: 1140px; }
  .header {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 10px 28px rgba(27, 67, 50, 0.08);
  }
  html[data-theme="dark"] .header {
    background: #151c19;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
  .header .container { max-width: 1280px; }
  .header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto !important;
    min-height: 0;
    align-items: center;
    padding: 0.45rem 0 0.35rem;
    gap: 0.25rem 1rem;
  }
  .logo { grid-column: 1; grid-row: 1; }
  .logo-text { display: block; font-size: 1.05rem; }
  .logo-img { height: 44px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
    width: 100%;
    max-width: none;
    padding: 0.35rem 0 0.2rem;
    border-top: 1px solid #e8ece9;
    overflow: visible;
  }
  .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    color: #2c3a34;
  }
  .nav-link:hover {
    background: #f0f4f1;
    color: var(--secondary);
  }
  .nav-link.active {
    color: #e85d04;
    background: #fff4eb;
  }
  .nav-link.active::after { display: none; }
  .header-actions { gap: 0.65rem; flex-shrink: 0; }
  .header-actions .btn-primary {
    color: #fff;
    border-radius: 999px;
    padding: 0.62rem 1.15rem;
    font-size: 0.88rem;
    box-shadow: 0 6px 16px rgba(232, 93, 4, 0.28);
  }
  .header-actions .theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .hero-video { min-height: 78vh; }
  .hero h1 { max-width: 16ch; }
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .section { padding: 4.5rem 0; }

  .footer {
    padding-top: 2.5rem;
    background: #14261c;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 1.75rem;
  }
  .footer-col h4 {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  .footer-col p {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
  }
  .footer-col ul {
    display: block;
  }
  .footer-col ul li {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
  }
  .footer-logo .logo-img { height: 40px !important; }
  .footer-bottom { padding: 0.85rem 0; font-size: 0.8rem; }

  .form-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 2.25rem;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
  .contact-layout { grid-template-columns: 1.25fr 0.85fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; }

  .price-cards { grid-template-columns: repeat(3, 1fr); }
  .highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  html[data-theme="dark"] .price-table tr:hover td { background: #24302a; }
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .price-card {
    border-color: #33443c;
  }
}

/* CMS Full Site Builder */
:root{--builder-content-width:1180px;--builder-radius:16px;--builder-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.builder-page-root{font-family:var(--builder-font)}
.builder-container{max-width:var(--builder-content-width);margin:0 auto;padding-left:1.25rem;padding-right:1.25rem}
.builder-section{padding:4.5rem 0}.builder-space-compact{padding:2rem 0}.builder-space-large{padding:7rem 0}
.builder-section h2,.builder-hero h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.05;margin:0 0 1rem}
.builder-rich{font-size:1.05rem;line-height:1.75}.builder-rich>*:first-child{margin-top:0}.builder-rich>*:last-child{margin-bottom:0}
.builder-hero{min-height:520px;background-size:cover;background-position:center;display:grid;place-items:center;color:#fff;padding:6rem 0}.builder-hero-inner{max-width:900px;text-align:center}.builder-lead{font-size:1.2rem;line-height:1.65;margin:1rem auto 1.75rem;max-width:760px}
.builder-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:center}.builder-split img{width:100%;max-height:520px;object-fit:cover;border-radius:var(--builder-radius)}
.builder-cards,.builder-pricing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:2rem}.builder-cards.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-cards.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.builder-card{background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:var(--builder-radius);padding:1.5rem;box-shadow:0 10px 30px rgba(15,23,42,.06)}.builder-card img{width:100%;height:210px;object-fit:cover;border-radius:calc(var(--builder-radius) - 5px);margin-bottom:1rem}
.builder-cta{text-align:center;max-width:850px;margin:auto}.builder-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:2rem}.builder-stats div{text-align:center;padding:1.5rem;border-radius:var(--builder-radius);background:rgba(255,255,255,.12)}.builder-stats strong{display:block;font-size:2.2rem}.builder-stats span{display:block;margin-top:.35rem}
.builder-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.builder-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--builder-radius)}.builder-gallery figcaption{padding:.5rem 0;color:var(--text-muted)}
.builder-table-wrap{overflow:auto}.builder-table-wrap table{width:100%;border-collapse:collapse}.builder-table-wrap th,.builder-table-wrap td{padding:.9rem 1rem;border-bottom:1px solid rgba(15,23,42,.1);text-align:left}.builder-list-public{display:grid;gap:.65rem;padding-left:1.4rem}
.builder-faq{border-bottom:1px solid rgba(15,23,42,.12);padding:1rem 0}.builder-faq summary{font-weight:700;cursor:pointer}.builder-faq div{padding:.75rem 0;line-height:1.65}.builder-price{font-size:1.7rem;color:var(--primary)}
.builder-video{aspect-ratio:16/9}.builder-video iframe,.builder-video-file{width:100%;height:100%;border:0;border-radius:var(--builder-radius)}.builder-separator{height:1px;background:rgba(15,23,42,.12);max-width:var(--builder-content-width);margin:2rem auto}
.builder-contact{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2rem}.builder-contact label{display:grid;gap:.4rem}.builder-contact .full{grid-column:1/-1}.builder-contact input,.builder-contact textarea{width:100%;padding:.85rem 1rem;border:1px solid #d1d5db;border-radius:10px}.builder-hp{position:absolute!important;left:-9999px!important}.builder-form-status{grid-column:1/-1}
.builder-footer-grid{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:3rem;padding-top:3rem;padding-bottom:3rem}.builder-footer-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
body[data-builder-button="square"] .btn{border-radius:4px!important}body[data-builder-button="pill"] .btn{border-radius:999px!important}
@media(max-width:860px){.builder-split,.builder-contact{grid-template-columns:1fr}.builder-cards,.builder-pricing,.builder-gallery,.builder-stats,.builder-cards.cols-2,.builder-cards.cols-4{grid-template-columns:1fr}.builder-footer-grid{grid-template-columns:1fr}.builder-section{padding:3rem 0}.builder-hero{min-height:440px;padding:4rem 0}}
.builder-nav-item{position:relative;display:flex;align-items:center}.builder-submenu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:12px;padding:.5rem;box-shadow:0 18px 45px rgba(15,23,42,.14);z-index:50}.builder-nav-item:hover .builder-submenu,.builder-nav-item:focus-within .builder-submenu{display:grid}.builder-sub-link{white-space:nowrap;width:100%}
@media(max-width:860px){.builder-nav-item{display:block}.builder-submenu{display:grid;position:static;box-shadow:none;border:0;background:transparent;padding-left:1rem}}

/* Footer professionnel */
.footer.footer-pro {
  background: linear-gradient(135deg, #10251d 0%, #173b2d 58%, #1f4d3a 100%);
  color: #fff;
  padding: 0;
  margin-top: 4rem;
  border-top: 4px solid var(--secondary, #e85d04);
}
.footer-pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .85fr);
  gap: 3.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  align-items: start;
}
.footer-pro h4 {
  display: block;
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-pro-brand p {
  display: block;
  max-width: 470px;
  margin: 1rem 0 1.35rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
}
.footer-pro-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-pro-logo img { height: 42px; width: auto; object-fit: contain; }
.footer-pro-logo strong { color: #f28c45; }
.footer-pro-links { display: grid; gap: .68rem; }
.footer-pro-links a,
.footer-pro-legal a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.footer-pro-links a:hover,
.footer-pro-legal a:hover { color: #fff; }
.footer-pro-links a:hover { transform: translateX(3px); }
.footer-pro-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}
.footer-pro-bottom-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.footer-pro-bottom p { display: block; margin: 0; color: rgba(255,255,255,.62); font-size: .86rem; }
.footer-pro-legal { display: flex; align-items: center; gap: 1.25rem; font-size: .84rem; }
@media (max-width: 900px) {
  .footer-pro-grid { grid-template-columns: 1.35fr .85fr; gap: 2rem 2.5rem; }
}
@media (max-width: 640px) {
  .footer.footer-pro { margin-top: 2.5rem; }
  .footer-pro-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.25rem; }
  .footer-pro-brand { grid-column: auto; }
  .footer-pro-bottom-inner { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .footer-pro-legal { flex-wrap: wrap; gap: .7rem 1rem; }
}

/* Vérification de zone de livraison — V11 */
.delivery-check-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #f8faf8 0%, #ffffff 100%);
}
.delivery-check-card {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 2.25rem;
  background: #fff;
  border: 1px solid rgba(27,67,50,.12);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(20,55,42,.10);
}
.delivery-check-kicker {
  display: inline-flex;
  align-items: center;
  padding: .42rem .72rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(232,93,4,.10);
  color: var(--secondary, #e85d04);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.delivery-check-heading { display: flex; gap: 1rem; align-items: flex-start; }
.delivery-check-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--primary, #1b4332);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(27,67,50,.18);
}
.delivery-check-heading h2 { margin: 0 0 .55rem; font-size: clamp(1.55rem, 3vw, 2.15rem); color: #10251d; }
.delivery-check-heading p { margin: 0; color: #5f6f67; line-height: 1.65; max-width: 540px; }
.delivery-check-form { display: block; }
.delivery-check-label { display: block; margin-bottom: .55rem; color: #173b2d; font-size: .9rem; font-weight: 750; }
.delivery-check-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.delivery-check-input-wrap { position: relative; }
.delivery-check-input-wrap > span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718078;
  font-size: 1.05rem;
  pointer-events: none;
}
.delivery-check-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem .85rem 2.65rem;
  border: 1px solid #cdd8d2;
  border-radius: 13px;
  background: #fbfcfb;
  color: #13231c;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.delivery-check-input-wrap input:focus {
  border-color: var(--primary, #1b4332);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27,67,50,.10);
}
.delivery-check-button {
  min-height: 52px;
  padding-inline: 1.25rem;
  border-radius: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(27,67,50,.16);
}
.delivery-check-button:disabled { opacity: .72; cursor: wait; }
.delivery-check-help { margin: .65rem 0 0; color: #7b8982; font-size: .82rem; }
.delivery-check-output { grid-column: 1 / -1; }
.delivery-check-result {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-top: -.75rem;
  border-radius: 15px;
  border: 1px solid;
}
.delivery-check-result strong { display: block; margin-bottom: .25rem; }
.delivery-check-result p { margin: 0 0 .8rem; color: inherit; opacity: .82; }
.delivery-check-result.success { background: #eef9f3; border-color: #b7dfc7; color: #174a2f; }
.delivery-check-result.error { background: #fff7ed; border-color: #f2cfad; color: #7c3d0c; }
.delivery-check-result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  font-weight: 900;
}
.address-map-link {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid rgba(27,67,50,.14);
  border-radius: 12px;
  background: #f8fbf9;
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.address-map-link span { display: block; margin-top: .35rem; color: var(--primary, #1b4332); font-size: .82rem; font-weight: 750; }
.address-map-link:hover { transform: translateY(-2px); border-color: rgba(27,67,50,.3); box-shadow: 0 10px 25px rgba(27,67,50,.08); }
@media (max-width: 820px) {
  .delivery-check-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; border-radius: 18px; }
  .delivery-check-output { grid-column: auto; }
}
@media (max-width: 560px) {
  .delivery-check-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .delivery-check-card { padding: 1.15rem; }
  .delivery-check-heading { gap: .75rem; }
  .delivery-check-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
  .delivery-check-fields { grid-template-columns: 1fr; }
  .delivery-check-button { width: 100%; }
}


/* V14 - consentement, accessibilité et performance */
:focus-visible{outline:3px solid #ff8a1f;outline-offset:3px}
.consent-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:10000;background:#fff;color:#1a1a1a;border:1px solid #d7ddd9;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.22);padding:1rem}
.consent-inner{max-width:1180px;margin:auto;display:flex;gap:1.5rem;align-items:center;justify-content:space-between}.consent-inner p{margin:.35rem 0 .25rem;max-width:760px;color:#444}.consent-inner a{text-decoration:underline;color:#1b4332;font-weight:700}.consent-actions{display:flex;gap:.65rem;flex-wrap:wrap;flex-shrink:0}
.footer-consent-button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}.footer-consent-button:hover{opacity:.85}
.footer-social-links{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.footer-social-links a{display:inline-flex;padding:.45rem .7rem;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff}.footer-social-links a:hover{background:rgba(255,255,255,.1)}
.legal-content a{text-decoration:underline;text-underline-offset:2px;color:#1b4332;font-weight:600}
@media(max-width:700px){.consent-inner{align-items:stretch;flex-direction:column}.consent-actions{width:100%}.consent-actions .btn{flex:1}.footer-social-links{justify-content:flex-start}}


/* ===== Header : Nos autres structures ===== */
.structures-nav-item { position: relative; }
.structures-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.structures-chevron {
  display: inline-block;
  font-size: .9em;
  transition: transform .2s ease;
}
.structures-nav-item.open .structures-chevron { transform: rotate(180deg); }
.structures-submenu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 245px;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(24, 55, 43, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.structures-submenu .structures-sub-link {
  display: block;
  padding: .72rem .8rem;
  border-radius: 10px;
  white-space: nowrap;
}
.structures-submenu .structures-sub-link:hover,
.structures-submenu .structures-sub-link:focus-visible {
  background: #f0f4f1;
  color: var(--secondary);
}
@media (min-width: 901px) {
  .structures-nav-item:hover .structures-submenu,
  .structures-nav-item:focus-within .structures-submenu,
  .structures-nav-item.open .structures-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .structures-nav-item { width: 100%; }
  .structures-menu-toggle { width: 100%; justify-content: space-between; text-align: left; }
  .structures-submenu {
    position: static;
    min-width: 0;
    margin-top: .35rem;
    padding: 0 0 0 .75rem;
    border: 0;
    border-left: 2px solid rgba(232, 93, 4, .25);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .structures-nav-item.open .structures-submenu { display: block; }
  .structures-submenu .structures-sub-link { padding: .7rem .75rem; }
}

/* V24 — téléphone du header toujours orange */
.header-actions .header-phone-btn {
  background: #e85d04 !important;
  border-color: #e85d04 !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(232, 93, 4, .28);
}
.header-actions .header-phone-btn:hover,
.header-actions .header-phone-btn:focus-visible {
  background: #c2410c !important;
  border-color: #c2410c !important;
  color: #fff !important;
}

/* V31 — CTA commerciaux orange */
.btn-cta-orange{background:#e85d04!important;border:2px solid #e85d04!important;color:#fff!important;box-shadow:0 8px 20px rgba(232,93,4,.20)}
.btn-cta-orange:hover{background:#c94f03!important;border-color:#c94f03!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 10px 24px rgba(232,93,4,.30)}
.btn-cta-orange:focus-visible{outline:3px solid rgba(232,93,4,.28);outline-offset:3px}

/* V32 — contenu riche sécurisé des descriptions courtes produits */
.rich-product-short{line-height:1.55}.rich-product-short p{margin:.35rem 0}.rich-product-short h2,.rich-product-short h3,.rich-product-short h4{margin:.55rem 0 .3rem;font-size:1rem}.rich-product-short ul,.rich-product-short ol{margin:.4rem 0;padding-left:1.25rem}.rich-product-short blockquote{margin:.5rem 0;padding:.45rem .65rem;border-left:3px solid #e85d04;background:#fff7f2}.rich-product-short table{width:100%;border-collapse:collapse;margin:.5rem 0;font-size:.88rem}.rich-product-short th,.rich-product-short td{padding:.3rem .4rem;border:1px solid rgba(22,63,48,.16)}.rich-product-short pre,.rich-product-short code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85em}.rich-product-short pre{white-space:pre-wrap;padding:.45rem;background:#f4f6f5;border-radius:6px}.rich-product-short a{color:#c94f00;text-decoration:underline;font-weight:650}

/* PWA V33 */
.pwa-action{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:9999;display:flex;align-items:center;gap:12px;max-width:min(92vw,720px);padding:12px 14px 12px 18px;border:1px solid rgba(27,67,50,.18);border-radius:16px;background:#fff;box-shadow:0 16px 45px rgba(24,35,31,.18);color:#18231f;font-weight:700}.pwa-action>span{flex:1}.pwa-action button{border:0;border-radius:999px;background:#e87522;color:#fff;padding:9px 14px;font-weight:800;cursor:pointer}.pwa-action .pwa-action-close{background:transparent;color:#526159;font-size:22px;padding:4px 8px}@media(max-width:600px){.pwa-action{bottom:10px;width:calc(100% - 20px);flex-wrap:wrap}.pwa-action>span{flex-basis:100%}}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ===== Brossard Énergie — thème light/dark premium ===== */
:root {
  --be-green: #188154;
  --be-green-strong: #106742;
  --be-green-soft: #e7f3ec;
  --be-orange: #ff7a1a;
  --be-orange-strong: #f16400;
  --be-dark: #08110e;
  --be-dark-soft: #0f1b17;
  --be-light: #ffffff;
  --be-light-soft: #f5f7f4;
  --be-panel: rgba(255,255,255,0.88);
  --be-panel-strong: rgba(255,255,255,0.94);
  --be-border: rgba(18, 53, 40, 0.1);
  --be-text: #17211c;
  --be-text-muted: #5f6d66;
  --primary: var(--be-orange);
  --primary-dark: var(--be-orange-strong);
  --primary-light: #ff9c50;
  --secondary: var(--be-green-strong);
  --secondary-light: var(--be-green);
  --accent: var(--be-green);
  --bg: var(--be-light);
  --bg-alt: var(--be-light-soft);
  --text: var(--be-text);
  --text-muted: var(--be-text-muted);
  --white: #ffffff;
  --border: rgba(18, 53, 40, 0.12);
  --shadow: 0 18px 40px rgba(16, 39, 30, 0.08);
  --shadow-lg: 0 30px 70px rgba(16, 39, 30, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  --bg: #09110f;
  --bg-alt: #0d1714;
  --text: #f4f7f5;
  --text-muted: #b6c3bc;
  --white: #0f1a16;
  --border: rgba(132, 172, 152, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.45);
  --be-panel: rgba(9, 17, 15, 0.76);
  --be-panel-strong: rgba(11, 20, 17, 0.9);
  --be-border: rgba(140, 188, 164, 0.2);
  --be-text: #f4f7f5;
  --be-text-muted: #b7c7bf;
  --secondary: #7addaa;
  --secondary-light: #54c58b;
  --accent: #54c58b;
}

body {
  background:
    radial-gradient(circle at top left, rgba(24, 129, 84, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(84, 197, 139, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.06), transparent 18%),
    var(--bg);
}

.logo-text strong,
.footer-pro-logo strong {
  color: var(--be-green);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .header {
  background: rgba(6, 14, 12, 0.9);
}
.header-inner {
  min-height: 86px;
  gap: 1rem;
}
.logo {
  gap: 0.75rem;
  font-size: 1.1rem;
}
.logo-img {
  height: 58px;
}
.nav {
  gap: 0.75rem 1.2rem;
}
.nav-link,
.structures-menu-toggle {
  font-weight: 650;
  color: var(--text);
  opacity: 0.88;
}
.nav-link:hover,
.nav-link.active,
.structures-menu-toggle:hover {
  color: var(--be-green);
}
.nav-link.active::after {
  height: 3px;
  bottom: -10px;
  background: var(--be-green);
}
.header-actions {
  gap: 0.85rem;
}
.header-phone-btn {
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 122, 26, 0.24);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  font-size: 1.1rem;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.theme-toggle-btn:hover {
  transform: translateY(-1px);
}
.theme-toggle-btn.is-active {
  background: linear-gradient(135deg, rgba(24,129,84,.18), rgba(24,129,84,.08));
  color: var(--be-green-strong);
  box-shadow: inset 0 0 0 1px rgba(24,129,84,.12);
}
html[data-theme="dark"] .theme-toggle-btn.is-active {
  background: linear-gradient(135deg, rgba(122,221,170,.24), rgba(122,221,170,.10));
  color: #e4fff2;
}

.hero,
.page-hero,
.hero-video .hero-content,
.tarifs-hero,
.tour-hero {
  color: inherit !important;
}
.hero h1,
.hero-desc,
.page-hero h1,
.page-hero p,
.hero-badge {
  text-shadow: none;
}
.hero-video {
  min-height: 76vh;
  padding: 4.8rem 0 4.25rem;
  background: linear-gradient(120deg, #f7f7f5 0%, #f2f4f1 52%, #f7efe8 100%);
}
html[data-theme="dark"] .hero-video {
  background: #050908;
}
.hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(248,249,246,0.95) 0%, rgba(248,249,246,0.90) 34%, rgba(248,249,246,0.48) 56%, rgba(248,249,246,0.08) 76%, rgba(248,249,246,0.02) 100%),
    linear-gradient(135deg, rgba(24,129,84,0.08) 0%, rgba(255,122,26,0.08) 100%);
}
html[data-theme="dark"] .hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(4,10,8,0.88) 0%, rgba(4,10,8,0.82) 34%, rgba(4,10,8,0.56) 56%, rgba(4,10,8,0.20) 76%, rgba(4,10,8,0.10) 100%),
    linear-gradient(135deg, rgba(18,80,55,0.25) 0%, rgba(255,122,26,0.15) 100%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: clamp(560px, 74vh, 760px);
}
.hero-copy {
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(231, 243, 236, 0.92);
  color: var(--be-green-strong) !important;
  border: 1px solid rgba(24, 129, 84, 0.12);
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 1.6rem;
  box-shadow: 0 12px 24px rgba(16, 39, 30, 0.08);
}
html[data-theme="dark"] .hero-badge {
  background: rgba(16, 48, 35, 0.62);
  color: #dff8eb !important;
  border-color: rgba(122, 221, 170, 0.28);
}
.hero-badge-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  color: transparent;
  box-shadow: 0 0 0 6px rgba(24,129,84,.12);
}
html[data-theme="dark"] .hero-badge-icon {
  box-shadow: 0 0 0 6px rgba(122,221,170,.14);
}
.hero-title,
.hero h1 {
  font-size: clamp(2.65rem, 4vw, 4.4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #12211c !important;
  max-width: 11ch;
}
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero h1 {
  color: #f8fbf9 !important;
}
.hero h1 .text-highlight,
.hero-title .text-highlight {
  color: var(--be-green) !important;
}
.hero-desc {
  margin-top: 1.5rem;
  margin-bottom: 1.9rem;
  max-width: 700px;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.62;
  color: #4b5c55 !important;
}
html[data-theme="dark"] .hero-desc {
  color: #c9d5cf !important;
}
.hero-cta {
  margin-bottom: 2.25rem;
}
.btn-cta-orange,
.hero .btn-primary {
  border-radius: 16px;
  padding: 1rem 1.55rem;
  font-size: 1rem;
  font-weight: 750;
  background: linear-gradient(135deg, var(--be-orange), var(--be-orange-strong));
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 122, 26, 0.28);
}
.hero-stats {
  gap: 1rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: var(--be-panel);
  border: 1px solid var(--be-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.stat-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--be-green) 14%, white);
  color: var(--be-green-strong);
  font-size: 1.45rem;
  font-weight: 800;
}
html[data-theme="dark"] .stat-icon {
  background: rgba(84, 197, 139, 0.14);
  color: #adf5cf;
}
.stat-num {
  margin-bottom: 0.1rem;
  font-size: 2rem;
  color: var(--text);
}
html[data-theme="dark"] .stat-num,
html[data-theme="dark"] .stat-label {
  color: #f2f6f3;
}
.stat-label {
  display: block;
  opacity: 1;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.hero-eco-card {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 530px;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: var(--be-panel-strong);
  border: 1px solid var(--be-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
html[data-theme="dark"] .hero-eco-card {
  background: rgba(10, 22, 18, 0.84);
}
.hero-eco-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--be-green) 16%, white);
  color: var(--be-green-strong);
  font-size: 2rem;
}
html[data-theme="dark"] .hero-eco-icon {
  background: rgba(84, 197, 139, 0.14);
  color: #adf5cf;
}
.hero-eco-content strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
}
.hero-eco-content p {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--secondary);
}
.hero-eco-content span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section {
  padding: 4.5rem 0;
}
.section-header h2,
.about-content h2,
.cta h2 {
  color: var(--text);
}
.cards-grid,
.about-card,
.form-card,
.delivery-check-card,
.card,
.about-card-inner,
.footer-pro-grid,
.footer-pro-bottom-inner {
  color: var(--text);
}
.card,
.about-card,
.about-card-inner,
.delivery-check-card,
.form-card {
  background: color-mix(in srgb, var(--white) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-card-inner,
html[data-theme="dark"] .delivery-check-card,
html[data-theme="dark"] .form-card {
  background: rgba(12, 21, 18, 0.94);
}
.card h3,
.about-card h3,
.delivery-check-heading h2,
.section-header h2,
.about-content h2 {
  color: var(--text);
}
.card p,
.about-content p,
.section-header p,
.delivery-check-heading p,
.delivery-check-help,
.about-card p {
  color: var(--text-muted);
}
.about { background: var(--bg-alt); }
.cta {
  background: linear-gradient(135deg, var(--be-green-strong), var(--be-green));
}

.footer.footer-pro {
  background: #0f1e18;
  color: rgba(255,255,255,0.82);
  padding-top: 2rem;
}
html[data-theme="light"] .footer.footer-pro {
  background: #10261d;
}
.footer-pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.footer-pro-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
  color: #fff;
}
.footer-pro-logo img { height: 52px; width: auto; }
.footer-pro-brand p,
.footer-pro-nav a,
.footer-pro-bottom p,
.footer-pro-legal a {
  color: rgba(255,255,255,0.78);
}
.footer-pro-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.footer-pro-nav h4 {
  color: #fff;
  margin-bottom: 0.85rem;
}
.footer-pro-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1.5rem;
}
.footer-pro-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}
.footer-pro-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.footer-pro-legal a:hover,
.footer-pro-nav a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .hero-title,
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 3.7vw, 3.8rem);
  }
  .hero-eco-card {
    position: static;
    margin-top: 1.75rem;
    max-width: 600px;
  }
  .hero-layout {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 76px;
    flex-wrap: wrap;
  }
  .nav.open {
    top: 76px;
    background: var(--bg);
    padding: 1rem 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .header-phone-btn {
    font-size: 0.88rem;
    padding: 0.78rem 1rem;
  }
  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }
  .hero-video {
    min-height: auto;
    padding: 3.8rem 0 3rem;
  }
  .hero-title,
  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    max-width: 100%;
  }
  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .footer-pro-grid,
  .footer-pro-bottom-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .logo-img { height: 46px; }
  .logo-text { font-size: 1rem; }
  .header-actions {
    gap: 0.55rem;
    margin-left: auto;
  }
  .theme-toggle {
    padding: 0.22rem;
  }
  .header-actions .btn {
    padding: 0.72rem 0.95rem;
    font-size: 0.83rem;
  }
  .hero-badge {
    font-size: 0.9rem;
    padding: 0.64rem 0.95rem;
  }
  .hero-title,
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.05;
  }
  .stat {
    min-width: 100%;
    padding: 1rem;
  }
  .stat-num { font-size: 1.65rem; }
  .hero-eco-card {
    padding: 1rem;
    border-radius: 18px;
  }
  .hero-eco-icon {
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
  }
  .hero-eco-content strong {
    font-size: 1.1rem;
  }
  .hero-eco-content p {
    font-size: 0.96rem;
  }
  .footer-pro-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions .theme-toggle { display: inline-flex !important; }
}

/* ===== FIX V2 — bouton thème historique + sombre haute lisibilité ===== */
.theme-toggle,
.header-actions .theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  box-shadow: none;
  font-size: 1.08rem;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(24,129,84,.35);
  box-shadow: 0 8px 20px rgba(16,39,30,.10);
}
html[data-theme="dark"] .theme-toggle {
  background: #10221b;
  border-color: #28513f;
  color: #fff4b8;
  box-shadow: 0 0 0 1px rgba(122,221,170,.04), 0 10px 24px rgba(0,0,0,.25);
}
.theme-toggle-btn { display: none !important; }

/* Palette sombre : contraste fort et tons verts naturels */
html[data-theme="dark"] {
  --bg: #08100d;
  --bg-alt: #0d1814;
  --text: #f7faf8;
  --text-muted: #c3cec8;
  --white: #101b17;
  --border: #294239;
  --secondary: #8ee0b6;
  --secondary-light: #61c995;
  --accent: #61c995;
  --be-green: #51c98b;
  --be-green-strong: #7cdda9;
  --be-panel: rgba(14, 28, 23, .92);
  --be-panel-strong: rgba(12, 25, 20, .96);
  --be-border: rgba(126, 193, 158, .28);
}
html[data-theme="dark"] body {
  background: #08100d;
  color: #f7faf8;
}
html[data-theme="dark"] .header {
  background: rgba(7, 15, 12, .96);
  border-bottom-color: #243d33;
}
html[data-theme="dark"] .logo-text,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .structures-menu-toggle {
  color: #edf4f0;
  opacity: 1;
}
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .structures-menu-toggle:hover {
  color: #6fdda7;
}
html[data-theme="dark"] .nav-link.active::after { background: #51c98b; }
html[data-theme="dark"] .structures-submenu,
html[data-theme="dark"] .nav.open {
  background: #0c1814 !important;
  border-color: #294239 !important;
  color: #f7faf8;
}
html[data-theme="dark"] .structures-submenu a { color: #eef6f2; }

html[data-theme="dark"] .hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(4,12,9,.96) 0%, rgba(4,12,9,.91) 35%, rgba(4,12,9,.66) 56%, rgba(4,12,9,.28) 77%, rgba(4,12,9,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24));
}
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 22px rgba(0,0,0,.26);
}
html[data-theme="dark"] .hero h1 .text-highlight,
html[data-theme="dark"] .hero-title .text-highlight {
  color: #59d497 !important;
}
html[data-theme="dark"] .hero-desc {
  color: #d6dfda !important;
  opacity: 1;
}
html[data-theme="dark"] .hero-badge {
  background: rgba(16, 54, 39, .86);
  color: #dff8ea !important;
  border-color: #326b50;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
html[data-theme="dark"] .stat,
html[data-theme="dark"] .hero-eco-card {
  background: rgba(11, 26, 20, .94);
  border-color: #315545;
  box-shadow: 0 18px 35px rgba(0,0,0,.28);
}
html[data-theme="dark"] .stat-num,
html[data-theme="dark"] .hero-eco-content strong { color: #ffffff; }
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .hero-eco-content span { color: #c7d4cd; }
html[data-theme="dark"] .hero-eco-content p { color: #7fdda9; }
html[data-theme="dark"] .stat-icon,
html[data-theme="dark"] .hero-eco-icon {
  background: #143a2b;
  color: #77dda9;
  border: 1px solid #2a654a;
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .services,
html[data-theme="dark"] .delivery-check-section { background: #08100d; }
html[data-theme="dark"] .about { background: #0b1511; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-card-inner,
html[data-theme="dark"] .delivery-check-card {
  background: #101d18 !important;
  color: #f7faf8 !important;
  border-color: #294239 !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .about-content h2,
html[data-theme="dark"] .about-card h3,
html[data-theme="dark"] .delivery-check-heading h2,
html[data-theme="dark"] .delivery-check-label,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
  color: #f7faf8 !important;
}
html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .about-content p,
html[data-theme="dark"] .about-card p,
html[data-theme="dark"] .delivery-check-heading p,
html[data-theme="dark"] .delivery-check-help,
html[data-theme="dark"] p {
  color: #c3cec8;
}
html[data-theme="dark"] .about-list li,
html[data-theme="dark"] .card-link,
html[data-theme="dark"] .address-map-link,
html[data-theme="dark"] .about-card a {
  color: #76dca7;
}

html[data-theme="dark"] .delivery-check-input-wrap input,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0a1511 !important;
  color: #f7faf8 !important;
  border-color: #355348 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8ea098 !important; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #58c98e !important;
  box-shadow: 0 0 0 3px rgba(81,201,139,.16) !important;
}
html[data-theme="dark"] .delivery-check-result.success {
  background: #102a20;
  border-color: #2f7052;
  color: #c9f5dc;
}
html[data-theme="dark"] .delivery-check-result.error {
  background: #2a1b10;
  border-color: #81542d;
  color: #ffd6ae;
}

html[data-theme="dark"] .btn-outline {
  color: #7ce0ad;
  border-color: #4fa77c;
}
html[data-theme="dark"] .btn-outline:hover {
  color: #07100c;
  background: #73dda7;
}
html[data-theme="dark"] .btn-white {
  background: #f3f8f5;
  color: #113b2a;
}

@media (max-width: 900px) {
  .header-actions .theme-toggle {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-basis: 40px;
  }
}
@media (max-width: 600px) {
  .header-actions .theme-toggle {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    font-size: .96rem;
  }
  .header-actions { gap: .42rem; }
  .header-actions .header-phone-btn {
    padding: .58rem .72rem;
    font-size: .72rem;
  }
  .nav-toggle { flex: 0 0 auto; }
}

/* ===== V40 MOBILE READABILITY + THEME CONTROL ===== */
html[data-theme="dark"] {
  --bg: #07110d;
  --bg-alt: #0c1813;
  --text: #f7fbf9;
  --text-muted: #cbd7d1;
  --border: #29463a;
  --be-green: #63d49a;
  --be-green-strong: #9ae9bf;
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .services,
html[data-theme="dark"] #avis {
  background-color: #07110d !important;
  color: #f7fbf9 !important;
}

html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] #avis .section-header h2,
html[data-theme="dark"] .about-content h2,
html[data-theme="dark"] .delivery-check-heading h2 {
  color: #ffffff !important;
}
html[data-theme="dark"] .section-header p,
html[data-theme="dark"] #avis .section-header p,
html[data-theme="dark"] .about-content p,
html[data-theme="dark"] .delivery-check-heading p {
  color: #d5dfda !important;
  opacity: 1 !important;
}

/* CTA sombre : suppression du rouge agressif et contraste maximal */
html[data-theme="dark"] .cta {
  background:
    radial-gradient(circle at 85% 20%, rgba(99,212,154,.16), transparent 34%),
    linear-gradient(135deg, #0f2b20 0%, #174632 55%, #0d251b 100%) !important;
  color: #fff !important;
}
html[data-theme="dark"] .cta h2,
html[data-theme="dark"] .cta p {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="dark"] .cta .btn-white {
  background: #ffffff !important;
  color: #123d2b !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.24) !important;
}
html[data-theme="dark"] .cta .btn-white:hover {
  background: #eaf8f0 !important;
  color: #0b2d20 !important;
}

/* Menu mobile sombre : tous les libellés doivent être lisibles */
html[data-theme="dark"] .nav.open {
  background: #0d1b16 !important;
  border-bottom: 1px solid #315345 !important;
  box-shadow: 0 22px 44px rgba(0,0,0,.42) !important;
}
html[data-theme="dark"] .nav.open .nav-link,
html[data-theme="dark"] .nav.open .structures-menu-toggle,
html[data-theme="dark"] .nav.open .structures-sub-link {
  color: #f1f7f4 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .nav.open .nav-link:hover,
html[data-theme="dark"] .nav.open .nav-link.active,
html[data-theme="dark"] .nav.open .structures-menu-toggle:hover,
html[data-theme="dark"] .nav.open .structures-menu-toggle[aria-expanded="true"] {
  color: #80e4ad !important;
}
html[data-theme="dark"] .nav.open .structures-submenu {
  background: #10221b !important;
  border-left: 3px solid #63d49a !important;
  border-top: 1px solid #29463a !important;
}
html[data-theme="dark"] .nav.open .structures-submenu a {
  color: #ffffff !important;
}

/* Bouton historique clair/sombre toujours visible */
#themeToggle.theme-toggle,
.header-actions #themeToggle.theme-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 102 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  border-radius: 50% !important;
}
html[data-theme="light"] #themeToggle.theme-toggle {
  background: #eef5f1 !important;
  color: #173d2e !important;
  border-color: #cadbd2 !important;
}
html[data-theme="dark"] #themeToggle.theme-toggle {
  background: #11271e !important;
  color: #ffe38a !important;
  border-color: #39624f !important;
}

@media (max-width: 900px) {
  .header {
    overflow: visible !important;
  }
  .header-inner {
    min-height: 74px !important;
    flex-wrap: nowrap !important;
    gap: .55rem !important;
    padding-left: .8rem !important;
    padding-right: .8rem !important;
  }
  .logo {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: .45rem !important;
  }
  .logo-img {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }
  .logo-text {
    font-size: .95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html[data-theme="dark"] .logo-text {
    color: #ffffff !important;
  }
  html[data-theme="dark"] .logo-text strong {
    color: #6fdda5 !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: .38rem !important;
    min-width: 0 !important;
  }
  #themeToggle.theme-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
    font-size: 1rem !important;
  }
  .header-phone-btn {
    display: inline-flex !important;
    padding: .64rem .78rem !important;
    font-size: .72rem !important;
    border-radius: 12px !important;
  }
  .nav-toggle {
    display: flex !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    padding: 5px !important;
  }
  html[data-theme="dark"] .nav-toggle span {
    background: #ffffff !important;
  }

  .nav.open {
    top: 74px !important;
    max-height: calc(100dvh - 74px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1.15rem 1rem 1.5rem !important;
    gap: 0 !important;
  }
  .nav.open > .nav-link,
  .nav.open > .structures-nav-item > .structures-menu-toggle {
    width: 100% !important;
    padding: .9rem .15rem !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  .nav.open .structures-submenu {
    position: static !important;
    display: none;
    margin: .15rem 0 .7rem !important;
    padding: .35rem 0 .35rem .9rem !important;
    box-shadow: none !important;
  }
  .nav.open .structures-menu-toggle[aria-expanded="true"] + .structures-submenu {
    display: block !important;
  }
  .nav.open .structures-sub-link {
    display: block !important;
    padding: .75rem .35rem !important;
    font-size: .98rem !important;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    gap: .35rem !important;
  }
  .logo-img {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
  .logo-text {
    font-size: .82rem !important;
    max-width: 112px !important;
  }
  #themeToggle.theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
    font-size: .92rem !important;
  }
  .header-phone-btn {
    padding: .58rem .62rem !important;
    font-size: .66rem !important;
  }
  .nav-toggle {
    width: 32px !important;
    flex-basis: 32px !important;
  }

  /* Lisibilité générale sur petits écrans */
  html[data-theme="dark"] .section-header h2,
  html[data-theme="dark"] #avis .section-header h2 {
    font-size: clamp(1.65rem, 8vw, 2rem) !important;
    line-height: 1.15 !important;
  }
  html[data-theme="dark"] .section-header p,
  html[data-theme="dark"] #avis .section-header p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    padding: 0 .25rem !important;
  }
  html[data-theme="dark"] .cta {
    padding: 3.3rem 0 !important;
  }
  html[data-theme="dark"] .cta h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  html[data-theme="dark"] .cta p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }
  html[data-theme="dark"] .cta .btn-white {
    width: min(100%, 320px) !important;
    min-height: 52px !important;
    font-size: 1rem !important;
  }
}

/* ===== V41 — header compact + thème cohérent sur toutes les pages ===== */
.header-inner {
  min-height: 66px !important;
  padding-top: 6px;
  padding-bottom: 6px;
}
.logo-img { height: 42px !important; }
.logo { gap: .55rem !important; font-size: 1rem !important; }
.logo-text { line-height: 1.05; }
.nav { gap: .45rem .85rem !important; }
.nav-link, .structures-menu-toggle { font-size: .86rem !important; }
.header-actions { gap: .55rem !important; flex: 0 0 auto; }
.header-phone-btn {
  padding: .68rem 1rem !important;
  font-size: .84rem !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(255,122,26,.20) !important;
}
.theme-toggle {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .theme-toggle {
  background: #15251f !important;
  color: #fff !important;
  border-color: rgba(118,209,163,.35) !important;
}

/* Base commune des pages intérieures */
.page-hero,
.tarifs-hero,
.tour-hero,
.hero-image,
.faq-pro-hero,
.contact-pro-hero,
.calc-pro-hero {
  border-bottom: 1px solid var(--border) !important;
}
.page-hero {
  padding: 3.3rem 0 !important;
  background: linear-gradient(135deg, #f2f7f4 0%, #fff 64%, #fff4eb 100%) !important;
  color: var(--text) !important;
}
.page-hero h1 { color: var(--text) !important; font-size: clamp(2rem,4vw,3rem) !important; letter-spacing: -.03em; }
.page-hero p { color: var(--text-muted) !important; font-size: 1.05rem !important; }
html[data-theme="dark"] .page-hero {
  background: radial-gradient(circle at 82% 22%,rgba(255,122,26,.10),transparent 26%), linear-gradient(135deg,#0b1713,#101f1a) !important;
}
html[data-theme="dark"] .page-hero h1 { color:#f7faf8 !important; }
html[data-theme="dark"] .page-hero p { color:#c9d6cf !important; }

/* Cartes et contenus généraux */
.news-card, .day-card, .price-card, .legal-content, .contact-pro-card,
.contact-action-card, .contact-pro-band-inner, .faq-help-card, .faq-item,
.faq-empty, .calc-shell, .annual-estimator-card, .measurement-guide,
.tank-type-card, .tank-fields, .form-card {
  border-radius: 18px !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .legal-content,
html[data-theme="dark"] .contact-pro-card,
html[data-theme="dark"] .contact-action-card,
html[data-theme="dark"] .contact-pro-band-inner,
html[data-theme="dark"] .faq-help-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-empty,
html[data-theme="dark"] .calc-shell,
html[data-theme="dark"] .annual-estimator-card,
html[data-theme="dark"] .measurement-guide,
html[data-theme="dark"] .tank-type-card,
html[data-theme="dark"] .tank-fields,
html[data-theme="dark"] .form-card {
  background: #101b17 !important;
  color: #f3f7f5 !important;
  border-color: rgba(129,181,155,.18) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .news-card h2,
html[data-theme="dark"] .news-card h3,
html[data-theme="dark"] .day-card h2,
html[data-theme="dark"] .day-card h3,
html[data-theme="dark"] .price-card h2,
html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .legal-content h1,
html[data-theme="dark"] .legal-content h2,
html[data-theme="dark"] .legal-content h3,
html[data-theme="dark"] .contact-pro-card h2,
html[data-theme="dark"] .contact-action-card h3,
html[data-theme="dark"] .faq-help-card h2,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .calc-shell h2,
html[data-theme="dark"] .annual-estimator-card h2,
html[data-theme="dark"] .measurement-guide h2 {
  color: #f4f8f6 !important;
}
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .day-card p,
html[data-theme="dark"] .price-card p,
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content li,
html[data-theme="dark"] .contact-pro-card p,
html[data-theme="dark"] .contact-action-card p,
html[data-theme="dark"] .faq-help-card p,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .calc-shell p,
html[data-theme="dark"] .annual-estimator-card p,
html[data-theme="dark"] .measurement-guide p {
  color: #c1d0c8 !important;
}

/* Contact */
html[data-theme="dark"] .contact-pro-page,
html[data-theme="dark"] .contact-pro-main {
  background: #09110f !important;
}
html[data-theme="dark"] .contact-pro-hero {
  background: radial-gradient(circle at 18% 18%,rgba(255,122,26,.12),transparent 28%),radial-gradient(circle at 82% 22%,rgba(84,197,139,.12),transparent 30%),linear-gradient(135deg,#0c1713,#11231c) !important;
}
html[data-theme="dark"] .contact-pro-hero h1 { color:#f7faf8 !important; }
html[data-theme="dark"] .contact-pro-hero p { color:#c5d3cc !important; }
html[data-theme="dark"] .contact-pro-kicker { background:#14261f !important; color:#9de7bf !important; }
html[data-theme="dark"] .contact-quick-item { background:#13231d !important; border-color:rgba(129,181,155,.16) !important; }
html[data-theme="dark"] .contact-quick-item strong,
html[data-theme="dark"] .contact-quick-item a,
html[data-theme="dark"] .contact-action-cta { color:#8fe3b6 !important; }
html[data-theme="dark"] .contact-quick-item p { color:#c0cec7 !important; }
html[data-theme="dark"] .contact-pro-band strong { color:#f5f8f6 !important; }
html[data-theme="dark"] .contact-pro-band p { color:#bdcbc4 !important; }

/* FAQ */
html[data-theme="dark"] .faq-pro-page,
html[data-theme="dark"] .faq-pro-section { background:#09110f !important; }
html[data-theme="dark"] .faq-pro-hero { background:radial-gradient(circle at 84% 20%,rgba(255,122,26,.12),transparent 27%),linear-gradient(135deg,#0c1713,#143126) !important; }
html[data-theme="dark"] .faq-search-wrap input,
html[data-theme="dark"] .faq-filter {
  background:#101b17 !important;
  color:#eef5f1 !important;
  border-color:rgba(129,181,155,.22) !important;
}
html[data-theme="dark"] .faq-search-icon,
html[data-theme="dark"] .faq-search-hint,
html[data-theme="dark"] .faq-search-hint strong { color:#b9ccc2 !important; }
html[data-theme="dark"] .faq-filter:hover,
html[data-theme="dark"] .faq-filter.is-active { background:#1e6f4a !important; color:#fff !important; border-color:#2f9b69 !important; }
html[data-theme="dark"] .faq-category-badge { background:#173126 !important; color:#9de7bf !important; }
html[data-theme="dark"] .faq-chevron { background:#182a23 !important; color:#9de7bf !important; }
html[data-theme="dark"] .faq-answer p { border-color:rgba(129,181,155,.13) !important; }

/* Calculateur */
html[data-theme="dark"] .calc-pro-main,
html[data-theme="dark"] .calc-workspace { background:#09110f !important; }
html[data-theme="dark"] .calc-pro-hero { background:radial-gradient(circle at 20% 20%,rgba(255,122,26,.10),transparent 30%),linear-gradient(135deg,#0c1713,#143126) !important; }
html[data-theme="dark"] .tank-type-card.is-active { background:#18261f !important; border-color:#ff8d38 !important; }
html[data-theme="dark"] .form-group label { color:#e9f1ed !important; }
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .native-type-select {
  background:#0b1512 !important;
  color:#f1f5f3 !important;
  border-color:rgba(129,181,155,.26) !important;
}
html[data-theme="dark"] .hint { color:#adc0b6 !important; }

/* Tarifs / tournées */
html[data-theme="dark"] .tarifs-note,
html[data-theme="dark"] .tour-cta,
html[data-theme="dark"] .info-row,
html[data-theme="dark"] .highlight {
  background:#101b17 !important;
  color:#edf5f1 !important;
  border-color:rgba(129,181,155,.18) !important;
}
html[data-theme="dark"] .tarifs-note p,
html[data-theme="dark"] .tour-cta p,
html[data-theme="dark"] .info-row p { color:#bdccc4 !important; }

/* Pages bois / combustibles */
html[data-theme="dark"] .hero-image-overlay {
  background:linear-gradient(90deg,rgba(4,10,8,.86),rgba(4,10,8,.58) 52%,rgba(4,10,8,.20)) !important;
}
html[data-theme="dark"] .hero-image h1,
html[data-theme="dark"] .hero-image .hero-desc,
html[data-theme="dark"] .hero-image .hero-badge { color:#fff !important; }
html[data-theme="dark"] .hero-image h1 span { color:#64d69a !important; }

/* Formulaires / pages compte */
html[data-theme="dark"] .subtitle { color:#c2d0c9 !important; }
html[data-theme="dark"] .form-section { color:#8ce0b2 !important; border-color:rgba(129,181,155,.18) !important; }
html[data-theme="dark"] main.section > .container > h1 { color:#f5f8f6 !important; }

/* Navigation mobile lisible et compacte */
@media (max-width: 900px) {
  .header-inner {
    min-height: 62px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    flex-wrap: nowrap !important;
  }
  .logo { min-width: 0; flex: 0 1 auto; }
  .logo-img { height: 38px !important; }
  .logo-text { font-size: .9rem !important; white-space: nowrap; }
  .header-actions { margin-left:auto !important; gap:.42rem !important; }
  .theme-toggle { display:inline-flex !important; width:34px !important; height:34px !important; min-width:34px !important; }
  .header-phone-btn { display:inline-flex !important; padding:.58rem .72rem !important; font-size:.74rem !important; }
  .nav-toggle { display:flex !important; padding:4px !important; }
  .nav-toggle span { width:22px !important; }
  .nav.open {
    top:62px !important;
    max-height:calc(100dvh - 62px);
    overflow-y:auto;
    padding: .8rem 1rem 1.1rem !important;
    gap:.18rem !important;
  }
  .nav.open > .nav-link,
  .nav.open .structures-menu-toggle {
    display:flex;
    min-height:44px;
    align-items:center;
    padding:.62rem .5rem !important;
    font-size:.98rem !important;
  }
  .structures-submenu { padding:.2rem 0 .45rem .85rem !important; }
  .structures-sub-link { padding:.55rem .6rem !important; }
  html[data-theme="dark"] .nav.open { background:#0d1814 !important; border-color:rgba(129,181,155,.18) !important; }
  html[data-theme="dark"] .nav.open > .nav-link,
  html[data-theme="dark"] .nav.open .structures-menu-toggle,
  html[data-theme="dark"] .nav.open .structures-sub-link { color:#f0f6f2 !important; opacity:1 !important; }
  html[data-theme="dark"] .nav.open .nav-link.active,
  html[data-theme="dark"] .nav.open .structures-menu-toggle[aria-expanded="true"] { color:#85dfae !important; }
}

@media (max-width: 480px) {
  .header-inner { padding-left:.7rem !important; padding-right:.7rem !important; }
  .logo-img { height:35px !important; }
  .logo-text { font-size:.82rem !important; }
  .header-phone-btn { padding:.54rem .58rem !important; font-size:.69rem !important; }
  .theme-toggle { width:32px !important; height:32px !important; min-width:32px !important; font-size:.92rem !important; }
  .nav-toggle span { width:21px !important; }
  .section { padding:3rem 0 !important; }
  .page-hero { padding:2.4rem 0 !important; }
  .page-hero h1 { font-size:2rem !important; }
  .contact-pro-hero, .faq-pro-hero, .calc-pro-hero { padding:2.6rem 0 2.3rem !important; }
  .contact-pro-hero h1, .faq-pro-hero h1, .calc-pro-hero h1 { font-size:2rem !important; }
}

@media (max-width: 390px) {
  .logo-text { display:none !important; }
  .header-phone-btn { font-size:.66rem !important; padding:.52rem .55rem !important; }
}

/* ===== V42 — Header ultra compact + design accueil sur toutes les pages ===== */
.header {
  background: color-mix(in srgb, var(--bg) 94%, transparent) !important;
  backdrop-filter: blur(14px) !important;
}
.header-inner {
  min-height: 58px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  gap: .7rem !important;
}
.logo { gap: .52rem !important; }
.logo-img { height: 38px !important; width: auto !important; }
.logo-text { font-size: .94rem !important; line-height: 1 !important; }
.nav { gap: .35rem .72rem !important; }
.nav-link, .structures-menu-toggle { font-size: .80rem !important; font-weight: 650 !important; }
.nav-link.active::after { bottom: -7px !important; height: 2px !important; }
.header-actions { gap: .4rem !important; }
.header-phone-btn {
  padding: .52rem .78rem !important;
  font-size: .76rem !important;
  border-radius: 10px !important;
  min-height: 34px !important;
}
.theme-toggle {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  font-size: .92rem !important;
}
.nav-toggle { padding: 3px !important; }
.nav-toggle span { width: 21px !important; }

/* Hero commun inspiré de l'accueil */
.page-hero,
.tarifs-hero,
.tour-hero,
.hero-image,
.faq-pro-hero,
.contact-pro-hero,
.calc-pro-hero,
.form-page > .container:first-child {
  position: relative;
  overflow: hidden;
}
.page-hero,
.tarifs-hero,
.tour-hero,
.faq-pro-hero,
.contact-pro-hero,
.calc-pro-hero {
  padding: 3.7rem 0 3.2rem !important;
  background:
    radial-gradient(circle at 86% 20%, rgba(255,122,26,.12), transparent 27%),
    radial-gradient(circle at 10% 12%, rgba(24,129,84,.12), transparent 32%),
    linear-gradient(135deg, #f5f8f6 0%, #ffffff 55%, #fff6ef 100%) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
}
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .tarifs-hero,
html[data-theme="dark"] .tour-hero,
html[data-theme="dark"] .faq-pro-hero,
html[data-theme="dark"] .contact-pro-hero,
html[data-theme="dark"] .calc-pro-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,122,26,.13), transparent 29%),
    radial-gradient(circle at 12% 12%, rgba(84,197,139,.13), transparent 34%),
    linear-gradient(135deg, #09130f 0%, #10221b 60%, #111b17 100%) !important;
}
.page-hero h1,
.tarifs-hero h1,
.tour-hero h1,
.faq-pro-hero h1,
.contact-pro-hero h1,
.calc-pro-hero h1 {
  color: var(--text) !important;
  font-size: clamp(2.15rem, 4vw, 3.45rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  max-width: 17ch;
  text-shadow: none !important;
}
.page-hero h1 span,
.tarifs-hero h1 span,
.tour-hero h1 span,
.faq-pro-hero h1 span,
.contact-pro-hero h1 span,
.calc-pro-hero h1 span {
  color: var(--be-green) !important;
}
.page-hero p,
.tarifs-hero p,
.tour-hero p,
.faq-pro-hero p,
.contact-pro-hero p,
.calc-pro-hero p {
  color: var(--text-muted) !important;
  font-size: 1.04rem !important;
  line-height: 1.65 !important;
  max-width: 720px;
}
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .tarifs-hero h1,
html[data-theme="dark"] .tour-hero h1,
html[data-theme="dark"] .faq-pro-hero h1,
html[data-theme="dark"] .contact-pro-hero h1,
html[data-theme="dark"] .calc-pro-hero h1 { color: #f7fbf8 !important; }
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .tarifs-hero p,
html[data-theme="dark"] .tour-hero p,
html[data-theme="dark"] .faq-pro-hero p,
html[data-theme="dark"] .contact-pro-hero p,
html[data-theme="dark"] .calc-pro-hero p { color: #c4d2ca !important; }

/* Badges identiques à l'accueil */
.tarifs-badge,
.tour-badge,
.contact-pro-kicker,
.faq-pro-kicker,
.calc-pro-kicker,
.page-hero .hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: .58rem .92rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(24,129,84,.16) !important;
  background: #e7f3ec !important;
  color: #126943 !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .tarifs-badge,
html[data-theme="dark"] .tour-badge,
html[data-theme="dark"] .contact-pro-kicker,
html[data-theme="dark"] .faq-pro-kicker,
html[data-theme="dark"] .calc-pro-kicker,
html[data-theme="dark"] .page-hero .hero-badge {
  background: #143025 !important;
  border-color: rgba(112,211,160,.28) !important;
  color: #a9efc9 !important;
}

/* Hero bois et combustibles dans le même langage visuel que l'accueil */
.hero-video:not(.hero-premium),
.hero-image {
  min-height: 52vh !important;
  padding: 3.8rem 0 3.2rem !important;
}
.hero-video:not(.hero-premium) .hero-video-overlay,
.hero-image .hero-image-overlay {
  background: linear-gradient(90deg, rgba(6,15,12,.84) 0%, rgba(6,15,12,.72) 38%, rgba(6,15,12,.32) 68%, rgba(6,15,12,.12) 100%) !important;
}
.hero-video:not(.hero-premium) h1,
.hero-image h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.7rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
  max-width: 13ch !important;
  color: #fff !important;
}
.hero-video:not(.hero-premium) h1 span,
.hero-image h1 span { color: #66d99d !important; }
.hero-video:not(.hero-premium) .hero-desc,
.hero-image .hero-desc { color: #e7efea !important; font-size: 1.03rem !important; }
.hero-video:not(.hero-premium) .hero-badge,
.hero-image .hero-badge {
  background: rgba(17,56,40,.68) !important;
  border: 1px solid rgba(117,220,169,.30) !important;
  color: #ddf8e9 !important;
  box-shadow: none !important;
}

/* Blocs et cartes : même finition que les statistiques/cartes de l'accueil */
.card,
.price-card,
.day-card,
.news-card,
.legal-content,
.contact-pro-card,
.contact-action-card,
.faq-item,
.faq-help-card,
.faq-empty,
.calc-shell,
.annual-estimator-card,
.measurement-guide,
.tank-type-card,
.tank-fields,
.form-card,
.about-card,
.tarifs-note,
.tour-cta,
.highlight {
  border-radius: 18px !important;
  border: 1px solid rgba(18,53,40,.11) !important;
  box-shadow: 0 14px 34px rgba(16,39,30,.07) !important;
  background: rgba(255,255,255,.94) !important;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .legal-content,
html[data-theme="dark"] .contact-pro-card,
html[data-theme="dark"] .contact-action-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-help-card,
html[data-theme="dark"] .faq-empty,
html[data-theme="dark"] .calc-shell,
html[data-theme="dark"] .annual-estimator-card,
html[data-theme="dark"] .measurement-guide,
html[data-theme="dark"] .tank-type-card,
html[data-theme="dark"] .tank-fields,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .tarifs-note,
html[data-theme="dark"] .tour-cta,
html[data-theme="dark"] .highlight {
  background: #0f1b17 !important;
  border-color: rgba(126,190,157,.17) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.24) !important;
  color: #f4f8f6 !important;
}
.card:hover,
.contact-action-card:hover,
.tank-type-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(24,129,84,.24) !important;
  box-shadow: 0 20px 42px rgba(16,39,30,.11) !important;
}
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .contact-action-card:hover,
html[data-theme="dark"] .tank-type-card:hover {
  border-color: rgba(103,218,161,.30) !important;
  box-shadow: 0 22px 46px rgba(0,0,0,.34) !important;
}
.section-header h2,
.card h3,
.legal-content h2,
.contact-pro-card h2,
.faq-help-card h2,
.calc-shell h2 { color: var(--text) !important; }
.section-header p,
.card p,
.card li,
.legal-content p,
.legal-content li { color: var(--text-muted) !important; }
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .legal-content h2,
html[data-theme="dark"] .contact-pro-card h2,
html[data-theme="dark"] .faq-help-card h2,
html[data-theme="dark"] .calc-shell h2 { color: #f4f8f6 !important; }
html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .card li,
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content li { color: #bfcec6 !important; }

/* Images produits plus cohérentes */
.product-img {
  width: 100%;
  height: 220px !important;
  object-fit: contain !important;
  padding: 1rem !important;
  border-radius: 14px !important;
  background: #f5f8f6 !important;
  margin-bottom: 1rem !important;
}
html[data-theme="dark"] .product-img { background: #0b1512 !important; }

/* Pages légales / compte : largeur et rythme identiques */
.legal-content,
main.section > .container > .card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.3rem, 3vw, 2.25rem) !important;
}
.legal-content h2 { margin-top: 1.6rem !important; }
.legal-content h2:first-child { margin-top: 0 !important; }

/* Mobile encore plus compact sans modifier la structure du header */
@media (max-width: 900px) {
  .header-inner { min-height: 54px !important; padding-top: 3px !important; padding-bottom: 3px !important; }
  .logo-img { height: 34px !important; }
  .logo-text { font-size: .82rem !important; }
  .header-phone-btn { padding: .48rem .62rem !important; font-size: .69rem !important; min-height: 31px !important; }
  .theme-toggle { width: 30px !important; height: 30px !important; min-width: 30px !important; font-size: .86rem !important; }
  .nav.open { top: 54px !important; max-height: calc(100dvh - 54px) !important; }
  .nav.open > .nav-link,
  .nav.open .structures-menu-toggle { min-height: 40px !important; padding: .48rem .45rem !important; font-size: .92rem !important; }
  .page-hero,
  .tarifs-hero,
  .tour-hero,
  .faq-pro-hero,
  .contact-pro-hero,
  .calc-pro-hero { padding: 2.65rem 0 2.3rem !important; }
  .page-hero h1,
  .tarifs-hero h1,
  .tour-hero h1,
  .faq-pro-hero h1,
  .contact-pro-hero h1,
  .calc-pro-hero h1 { font-size: clamp(1.9rem, 8vw, 2.45rem) !important; max-width: 100% !important; }
  .hero-video:not(.hero-premium), .hero-image { min-height: 46vh !important; padding: 2.8rem 0 2.4rem !important; }
  .hero-video:not(.hero-premium) h1, .hero-image h1 { font-size: clamp(2rem, 9vw, 2.75rem) !important; max-width: 100% !important; }
  .product-img { height: 190px !important; }
}
@media (max-width: 480px) {
  .header-inner { padding-left: .55rem !important; padding-right: .55rem !important; }
  .logo-img { height: 32px !important; }
  .logo-text { font-size: .76rem !important; }
  .header-actions { gap: .28rem !important; }
  .header-phone-btn { padding: .44rem .52rem !important; font-size: .64rem !important; }
  .theme-toggle { width: 29px !important; height: 29px !important; min-width: 29px !important; }
  .nav-toggle { padding: 2px !important; }
  .nav-toggle span { width: 19px !important; }
  .section { padding: 2.75rem 0 !important; }
}

/* Pages locales de livraison : même finition que l'accueil */
main.section > .container[style*="max-width:720px"] {
  max-width: 880px !important;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.6rem) !important;
  border-radius: 22px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(18,53,40,.11);
  box-shadow: 0 18px 44px rgba(16,39,30,.08);
}
main.section > .container[style*="max-width:720px"] h1 {
  color: var(--text) !important;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: .45rem 0 1rem;
}
main.section > .container[style*="max-width:720px"] > p:first-child {
  display: inline-flex;
  padding: .5rem .82rem;
  border-radius: 999px;
  color: #126943 !important;
  background: #e7f3ec;
  border: 1px solid rgba(24,129,84,.15);
  font-size: .82rem;
}
html[data-theme="dark"] main.section > .container[style*="max-width:720px"] {
  background: #0f1b17;
  border-color: rgba(126,190,157,.18);
  box-shadow: 0 20px 46px rgba(0,0,0,.28);
}
html[data-theme="dark"] main.section > .container[style*="max-width:720px"] h1 { color: #f6faf7 !important; }
html[data-theme="dark"] main.section > .container[style*="max-width:720px"] > p:first-child {
  color: #a9efc9 !important;
  background: #143025;
  border-color: rgba(112,211,160,.28);
}
.header-actions-theme-only { margin-left: auto !important; }
@media (max-width: 900px) {
  .header-actions-theme-only { display: inline-flex !important; }
}

/* ===== V43.1 — lisibilité ciblée + hero accueil réduit ===== */
/* Accueil : hero plus compact sans modifier la structure */
.hero-premium.hero-video {
  min-height: 64vh !important;
  padding: 3.25rem 0 3rem !important;
}
.hero-premium .hero-layout {
  min-height: clamp(455px, 61vh, 610px) !important;
}
.hero-premium .hero-title,
.hero-premium h1 {
  font-size: clamp(2.35rem, 3.6vw, 3.85rem) !important;
  margin-bottom: 1rem !important;
}
.hero-premium .hero-desc {
  margin-top: 1rem !important;
  margin-bottom: 1.35rem !important;
  font-size: clamp(.98rem, 1.25vw, 1.13rem) !important;
}
.hero-premium .hero-badge { margin-bottom: 1.15rem !important; }
.hero-premium .hero-cta { margin-bottom: 1.45rem !important; }
.hero-premium .stat { padding: .9rem 1rem !important; }
.hero-premium .stat-icon { width: 46px !important; height: 46px !important; flex-basis: 46px !important; }
.hero-premium .stat-num { font-size: 1.55rem !important; }
.hero-premium .hero-eco-card { padding: .9rem 1rem !important; }

/* Tournées : conserver le visuel mais garantir la lisibilité du texte */
.tour-hero {
  min-height: 0 !important;
  padding: 2.8rem 0 2.55rem !important;
  background: #10231b !important;
  color: #fff !important;
}
.tour-hero .tour-hero-sky,
.tour-hero .tour-hero-road,
.tour-hero .tour-truck { z-index: 0 !important; }
.tour-hero .tour-hero-overlay {
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(5,14,11,.92) 0%, rgba(5,14,11,.82) 43%, rgba(5,14,11,.50) 70%, rgba(5,14,11,.30) 100%) !important;
}
.tour-hero > .container {
  position: relative !important;
  z-index: 2 !important;
}
.tour-hero h1,
html[data-theme="dark"] .tour-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.45) !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  max-width: 700px !important;
}
.tour-hero h1 span,
html[data-theme="dark"] .tour-hero h1 span {
  color: #76dfa6 !important;
}
.tour-hero p,
html[data-theme="dark"] .tour-hero p {
  color: #f0f5f2 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.55) !important;
  max-width: 700px !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}
.tour-hero .tour-badge,
html[data-theme="dark"] .tour-hero .tour-badge {
  background: rgba(13,54,39,.82) !important;
  color: #eafff2 !important;
  border-color: rgba(118,223,166,.38) !important;
  backdrop-filter: blur(8px);
}

/* Calculateur : en sombre, l'en-tête du bloc doit rester parfaitement lisible */
html[data-theme="dark"] .calc-shell-head {
  background: linear-gradient(180deg, #13231d 0%, #0f1b17 100%) !important;
  border-bottom-color: rgba(132,185,159,.20) !important;
}
html[data-theme="dark"] .calc-shell-head h2,
html[data-theme="dark"] #tank-calculator-title {
  color: #ffffff !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .calc-shell-head p {
  color: #d7e2dc !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .calc-step-badge {
  background: #18362a !important;
  color: #aaf0c9 !important;
  border: 1px solid rgba(122,221,170,.24) !important;
}
html[data-theme="dark"] .calc-shell,
html[data-theme="dark"] .calc-form-panel,
html[data-theme="dark"] .calc-primary-grid {
  color: #f4f8f6 !important;
}
html[data-theme="dark"] .native-type-select label,
html[data-theme="dark"] .calc-form-panel .form-group label,
html[data-theme="dark"] .annual-estimator-card .form-group label {
  color: #f0f6f3 !important;
}
html[data-theme="dark"] .tank-type-card strong {
  color: #edf5f1 !important;
}

@media (max-width: 900px) {
  .hero-premium.hero-video {
    min-height: auto !important;
    padding: 2.45rem 0 2.25rem !important;
  }
  .hero-premium .hero-layout {
    min-height: auto !important;
  }
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.65rem) !important;
  }
  .tour-hero {
    padding: 2.1rem 0 2rem !important;
  }
  .tour-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
  }
  .tour-hero p {
    font-size: .95rem !important;
  }
}

/* ===== V44 — hero accueil plus compact sur ordinateur uniquement ===== */
@media (min-width: 901px) {
  .hero-premium.hero-video {
    min-height: 52vh !important;
    padding: 2.1rem 0 1.9rem !important;
  }
  .hero-premium .hero-layout {
    min-height: clamp(390px, 49vh, 500px) !important;
  }
  .hero-premium .hero-copy {
    max-width: 610px !important;
  }
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: clamp(2.2rem, 3.1vw, 3.35rem) !important;
    line-height: 1.03 !important;
    margin-bottom: .8rem !important;
  }
  .hero-premium .hero-badge {
    margin-bottom: .85rem !important;
    padding: .58rem .95rem !important;
    font-size: .9rem !important;
  }
  .hero-premium .hero-desc {
    margin-top: .75rem !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  .hero-premium .hero-cta {
    margin-bottom: 1rem !important;
  }
  .hero-premium .btn-cta-orange {
    padding: .82rem 1.25rem !important;
  }
  .hero-premium .hero-stats {
    gap: .75rem !important;
  }
  .hero-premium .stat {
    min-width: 190px !important;
    padding: .72rem .85rem !important;
  }
  .hero-premium .stat-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    font-size: 1.15rem !important;
  }
  .hero-premium .stat-num {
    font-size: 1.35rem !important;
  }
  .hero-premium .stat-label {
    font-size: .84rem !important;
  }
  .hero-premium .hero-eco-card {
    padding: .72rem .85rem !important;
    max-width: 470px !important;
  }
}

/* ===== V45 — hero + footer compacts sur mobile uniquement ===== */
@media (max-width: 700px) {
  .hero-premium.hero-video {
    min-height: 0 !important;
    padding: 1.35rem 0 1.2rem !important;
  }
  .hero-premium .hero-layout {
    min-height: 0 !important;
    align-items: start !important;
  }
  .hero-premium .hero-copy {
    max-width: 100% !important;
  }
  .hero-premium .hero-badge {
    margin-bottom: .7rem !important;
    padding: .45rem .72rem !important;
    font-size: .78rem !important;
    gap: .45rem !important;
  }
  .hero-premium .hero-badge-icon {
    width: 8px !important;
    height: 8px !important;
    box-shadow: 0 0 0 4px rgba(24,129,84,.12) !important;
  }
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: clamp(1.75rem, 8vw, 2.15rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    margin: 0 0 .55rem !important;
    max-width: 12ch !important;
  }
  .hero-premium .hero-desc {
    margin: 0 0 .8rem !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
    max-width: 40rem !important;
  }
  .hero-premium .hero-cta {
    margin: 0 0 .8rem !important;
  }
  .hero-premium .btn-cta-orange {
    padding: .68rem .95rem !important;
    border-radius: 12px !important;
    font-size: .88rem !important;
  }
  .hero-premium .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .45rem !important;
  }
  .hero-premium .stat {
    min-width: 0 !important;
    padding: .55rem .4rem !important;
    border-radius: 12px !important;
    gap: .35rem !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-premium .stat-icon {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    font-size: .9rem !important;
  }
  .hero-premium .stat-num {
    font-size: 1rem !important;
    line-height: 1.1 !important;
  }
  .hero-premium .stat-label {
    font-size: .68rem !important;
    line-height: 1.18 !important;
  }
  .hero-premium .hero-eco-card {
    margin-top: .6rem !important;
    padding: .58rem .72rem !important;
    gap: .55rem !important;
    border-radius: 13px !important;
  }
  .hero-premium .hero-eco-icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    font-size: 1rem !important;
  }
  .hero-premium .hero-eco-content strong {
    font-size: .9rem !important;
  }
  .hero-premium .hero-eco-content p {
    margin: .05rem 0 .18rem !important;
    font-size: .78rem !important;
  }
  .hero-premium .hero-eco-content span {
    font-size: .58rem !important;
    letter-spacing: .08em !important;
  }

  .footer.footer-pro {
    margin-top: 1rem !important;
    padding-top: .8rem !important;
  }
  .footer-pro-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .7rem !important;
    padding-top: .5rem !important;
    padding-bottom: .65rem !important;
  }
  .footer-pro-logo {
    margin-bottom: .25rem !important;
    gap: .5rem !important;
    font-size: .95rem !important;
  }
  .footer-pro-logo img {
    height: 32px !important;
  }
  .footer-pro-brand p {
    display: none !important;
  }
  .footer-pro-nav h4 {
    display: none !important;
  }
  .footer-pro-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .28rem .75rem !important;
  }
  .footer-pro-links a {
    font-size: .76rem !important;
    line-height: 1.25 !important;
  }
  .footer-pro-bottom {
    margin-top: .3rem !important;
  }
  .footer-pro-bottom-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .4rem !important;
    padding: .55rem 0 .7rem !important;
  }
  .footer-pro-bottom p {
    font-size: .68rem !important;
    line-height: 1.2 !important;
  }
  .footer-pro-legal {
    gap: .25rem .65rem !important;
    font-size: .68rem !important;
    line-height: 1.2 !important;
  }
  .footer-consent-button {
    font-size: .68rem !important;
  }
}

/* ===== V46 — mobile ultra compact : hero + footer ===== */
@media (max-width: 700px) {
  /* Hero accueil : format bannière compacte */
  .hero-premium.hero-video {
    min-height: 0 !important;
    padding: .72rem 0 .72rem !important;
  }
  .hero-premium .hero-layout {
    min-height: 0 !important;
    display: block !important;
  }
  .hero-premium .hero-copy {
    max-width: 100% !important;
  }
  .hero-premium .hero-badge {
    display: none !important;
  }
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: clamp(1.42rem, 6.8vw, 1.8rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.03em !important;
    max-width: 13ch !important;
    margin: 0 0 .34rem !important;
  }
  .hero-premium .hero-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 0 0 .48rem !important;
    font-size: .76rem !important;
    line-height: 1.3 !important;
    max-width: 94% !important;
  }
  .hero-premium .hero-cta {
    margin: 0 0 .48rem !important;
  }
  .hero-premium .btn-cta-orange {
    min-height: 0 !important;
    padding: .5rem .72rem !important;
    border-radius: 10px !important;
    font-size: .76rem !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(255,122,26,.22) !important;
  }
  .hero-premium .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: .3rem !important;
    margin: 0 !important;
  }
  .hero-premium .stat {
    min-height: 0 !important;
    min-width: 0 !important;
    padding: .34rem .22rem !important;
    border-radius: 9px !important;
    gap: .18rem !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 5px 12px rgba(10,25,19,.08) !important;
  }
  .hero-premium .stat-icon {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    font-size: .68rem !important;
  }
  .hero-premium .stat-num {
    font-size: .78rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  .hero-premium .stat-label {
    display: none !important;
  }
  .hero-premium .hero-eco-card {
    display: none !important;
  }
  .hero-premium .hero-video-overlay {
    background:
      linear-gradient(90deg, rgba(248,249,246,.94) 0%, rgba(248,249,246,.88) 52%, rgba(248,249,246,.28) 100%) !important;
  }
  html[data-theme="dark"] .hero-premium .hero-video-overlay {
    background:
      linear-gradient(90deg, rgba(4,10,8,.93) 0%, rgba(4,10,8,.88) 52%, rgba(4,10,8,.36) 100%) !important;
  }

  /* Footer : bande ultra compacte */
  .footer.footer-pro {
    margin-top: .45rem !important;
    padding: .5rem 0 0 !important;
  }
  .footer-pro-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .45rem !important;
    padding-top: 0 !important;
    padding-bottom: .42rem !important;
  }
  .footer-pro-brand {
    flex: 0 0 auto !important;
  }
  .footer-pro-logo {
    margin: 0 !important;
    gap: .35rem !important;
    font-size: .78rem !important;
    line-height: 1 !important;
  }
  .footer-pro-logo img {
    height: 24px !important;
    width: auto !important;
  }
  .footer-pro-brand p,
  .footer-pro-nav h4 {
    display: none !important;
  }
  .footer-pro-nav {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .footer-pro-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: .12rem .45rem !important;
    margin: 0 !important;
  }
  .footer-pro-links a {
    font-size: .62rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
  .footer-pro-bottom {
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }
  .footer-pro-bottom-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .18rem .45rem !important;
    padding: .34rem 0 .42rem !important;
  }
  .footer-pro-bottom p {
    margin: 0 !important;
    font-size: .56rem !important;
    line-height: 1.1 !important;
  }
  .footer-pro-legal {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: .08rem .42rem !important;
    font-size: .56rem !important;
    line-height: 1.1 !important;
  }
  .footer-pro-legal a,
  .footer-consent-button {
    font-size: .56rem !important;
    line-height: 1.1 !important;
  }
  .footer-consent-button {
    padding: 0 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 430px) {
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: 1.38rem !important;
  }
  .hero-premium .hero-desc {
    font-size: .72rem !important;
  }
  .footer-pro-grid {
    align-items: flex-start !important;
  }
  .footer-pro-logo span {
    display: none !important;
  }
  .footer-pro-links {
    gap: .1rem .38rem !important;
  }
  .footer-pro-links a:nth-child(6),
  .footer-pro-links a:nth-child(7) {
    display: none !important;
  }
}

/* ===== V47 — mobile compact mais lisible ===== */
@media (max-width: 700px) {
  .hero-premium.hero-video {
    padding: 1.15rem 0 1rem !important;
  }
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: clamp(1.62rem, 7.2vw, 2.05rem) !important;
    line-height: 1.07 !important;
    max-width: 14ch !important;
    margin-bottom: .5rem !important;
  }
  .hero-premium .hero-desc {
    -webkit-line-clamp: 3 !important;
    font-size: .84rem !important;
    line-height: 1.42 !important;
    margin-bottom: .68rem !important;
    max-width: 96% !important;
  }
  .hero-premium .hero-cta {
    margin-bottom: .68rem !important;
  }
  .hero-premium .btn-cta-orange {
    padding: .62rem .86rem !important;
    font-size: .82rem !important;
    border-radius: 11px !important;
  }
  .hero-premium .hero-stats {
    gap: .42rem !important;
  }
  .hero-premium .stat {
    padding: .46rem .3rem !important;
    border-radius: 11px !important;
    gap: .25rem !important;
  }
  .hero-premium .stat-icon {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px !important;
    font-size: .76rem !important;
  }
  .hero-premium .stat-num {
    font-size: .9rem !important;
  }

  .footer.footer-pro {
    margin-top: .7rem !important;
    padding-top: .72rem !important;
  }
  .footer-pro-grid {
    gap: .7rem !important;
    padding-bottom: .62rem !important;
  }
  .footer-pro-logo {
    gap: .45rem !important;
    font-size: .88rem !important;
  }
  .footer-pro-logo img {
    height: 30px !important;
  }
  .footer-pro-links {
    gap: .18rem .58rem !important;
  }
  .footer-pro-links a {
    font-size: .69rem !important;
    line-height: 1.22 !important;
  }
  .footer-pro-bottom-inner {
    gap: .28rem .58rem !important;
    padding: .5rem 0 .6rem !important;
  }
  .footer-pro-bottom p,
  .footer-pro-legal,
  .footer-pro-legal a,
  .footer-consent-button {
    font-size: .64rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 430px) {
  .hero-premium .hero-title,
  .hero-premium h1 {
    font-size: 1.58rem !important;
  }
  .hero-premium .hero-desc {
    font-size: .81rem !important;
  }
  .footer-pro-logo span {
    display: inline !important;
    font-size: .8rem !important;
  }
  .footer-pro-links a:nth-child(6),
  .footer-pro-links a:nth-child(7) {
    display: inline !important;
  }
  .footer-pro-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .footer-pro-links {
    justify-content: flex-start !important;
  }
}


/* LOCAL SEO V48 */
.local-container{max-width:1040px}.local-hero{padding:4rem 0 3rem;background:linear-gradient(135deg,rgba(10,70,44,.08),rgba(255,255,255,.96))}.local-breadcrumb{display:flex;gap:.55rem;flex-wrap:wrap;font-size:.9rem;margin-bottom:1rem}.local-breadcrumb a{color:var(--primary);text-decoration:none}.local-kicker{display:inline-block;font-weight:800;color:var(--primary);margin-bottom:.65rem}.local-hero h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.08;color:var(--secondary);max-width:850px;margin:.2rem 0 1rem}.local-lead{font-size:1.12rem;line-height:1.75;max-width:850px}.local-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.5rem}.local-section{padding:3rem 0}.local-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.75fr);gap:2rem;align-items:start}.local-card,.local-facts,.local-steps>div,.local-route-group{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:1.4rem;box-shadow:0 8px 28px rgba(0,0,0,.05)}.local-card p{line-height:1.75}.local-facts dl{margin:0}.local-facts dl div{padding:.7rem 0;border-bottom:1px solid rgba(0,0,0,.08)}.local-facts dt{font-size:.8rem;color:var(--text-muted);font-weight:700;text-transform:uppercase}.local-facts dd{margin:.2rem 0 0;font-weight:700}.local-alt{background:rgba(0,0,0,.025)}.local-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.4rem}.local-steps>div>strong{display:grid;place-items:center;width:2rem;height:2rem;border-radius:999px;background:var(--primary);color:#fff}.local-steps h3{margin:.8rem 0 .4rem}.local-faq details{border:1px solid rgba(0,0,0,.1);border-radius:12px;padding:1rem 1.1rem;margin:.7rem 0;background:#fff}.local-faq summary{cursor:pointer;font-weight:800;color:var(--secondary)}.local-faq p{line-height:1.65;margin:.8rem 0 0}.local-nearby ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.65rem;list-style:none;padding:0}.local-nearby li a{display:block;padding:.8rem 1rem;border:1px solid rgba(0,0,0,.1);border-radius:10px;text-decoration:none;font-weight:700}.local-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.4rem}.local-route-group ul{list-style:none;margin:0;padding:0}.local-route-group li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid rgba(0,0,0,.07)}.local-route-group li span{white-space:nowrap;color:var(--text-muted);font-size:.9rem}@media(max-width:760px){.local-hero{padding:2.5rem 0 2rem}.local-grid,.local-steps,.local-route-grid{grid-template-columns:1fr}.local-section{padding:2rem 0}.local-actions .btn{width:100%;text-align:center}}

/* ===== V50 — Accessibilité WCAG AA : contrastes ===== */
/* Blanc sur orange >= 4.5:1 pour le texte normal. */
.header-actions .header-phone-btn,
.header-phone-btn,
.btn-cta-orange {
  background: #b54700 !important;
  border-color: #b54700 !important;
  color: #ffffff !important;
}
.header-actions .header-phone-btn:hover,
.header-actions .header-phone-btn:focus-visible,
.header-phone-btn:hover,
.header-phone-btn:focus-visible,
.btn-cta-orange:hover,
.btn-cta-orange:focus-visible {
  background: #8f3500 !important;
  border-color: #8f3500 !important;
  color: #ffffff !important;
}
.header-phone-btn:focus-visible,
.btn-cta-orange:focus-visible,
.footer-consent-button:focus-visible,
.footer-pro a:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
}
.footer.footer-pro,
html[data-theme="light"] .footer.footer-pro {
  color: #ffffff;
}
.footer-pro-brand p,
.footer-pro-nav a,
.footer-pro-bottom p,
.footer-pro-legal a,
.footer-consent-button {
  color: #e6f0eb !important;
  opacity: 1 !important;
}
.footer-pro-nav a:hover,
.footer-pro-legal a:hover,
.footer-consent-button:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}
