/* ============================================================
   SEDE CHAUFFAGE — Feuille de style principale
   Mobile-first | CSS Grid + Flexbox | WCAG AA | Lighthouse 95+
   ============================================================ */

/* ---- RESET & BOX-SIZING ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h, 72px);
}

body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-light);
  background-image: repeating-linear-gradient(-45deg,
      transparent 0,
      transparent 22px,
      rgba(0, 0, 0, 0.022) 22px,
      rgba(0, 0, 0, 0.022) 23px);
  text-align: justify;
  text-justify: inter-word;
}

h1, h2, h3, h4, h5, h6 {
  text-align: left;
}

/* Empêcher le défilement horizontal sur tout le site */
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* ---- VARIABLES CSS ---- */
:root {
  --color-primary: #C0392B;
  --color-secondary: #1A2B3C;
  --color-accent: #E67E22;
  --color-light: #F5F5F0;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-white: #FFFFFF;
  --color-border: #E0E0DA;

  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-cta: 'Montserrat', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
  --transition: 0.25s ease;

  --max-width: 1200px;
  --nav-h: 72px;
}

/* ---- ACCESSIBILITÉ ---- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- LAYOUT UTILITAIRES ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background: var(--color-white);
}

.section--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.section-subtitle--center {
  text-align: center;
}

/* ---- ANIMATIONS SCROLL ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Révélation à l'entrée dans le viewport */
.img-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-reveal-left.visible,
.img-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .img-reveal-left,
  .img-reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Effet parallaxe — conteneur interne */
.parallax-wrap {
  position: relative;
  height: calc(100% + 120px); /* dépasse le conteneur pour le mouvement */
  margin-top: -60px;          /* centre verticalement le surplus */
  will-change: transform;
}

.parallax-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.two-col-img:hover .parallax-wrap img {
  transform: scale(1.04);
}

/* ---- BOUTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-align: center;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #E6263F;
  border-color: #a93226;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: #ca6f1e;
  border-color: #ca6f1e;
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-white);
  color: var(--color-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */
/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

/* ---- Conteneur interne ---- */
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding-block: 0.4rem;
  flex-wrap: nowrap;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.85; }

.logo img {
  width: 160px;
  height: 56px;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---- Nav wrapper ---- */
#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ---- Liste de navigation ---- */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 0.1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list > li {
  display: flex;
  align-items: center;
  position: relative;
}

/* Séparateurs rouges désactivés (nav multi-lignes) */
.nav-list > li + li::before {
  display: none;
}

/* ---- Liens de navigation ---- */
.nav-list > li > a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  line-height: 1.2;
}

.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(192, 57, 43, 0.07);
}

.nav-list > li > a[aria-current="page"] { font-weight: 700; }

/* ---- Dropdown : item parent ---- */
.has-dropdown { position: relative; }

/* Wrapper lien + chevron */
.nav-item-inner {
  display: flex;
  align-items: center;
}

.nav-item-inner > a {
  display: block;
  padding: 0.45rem 0.2rem 0.45rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  line-height: 1.2;
}

/* Bouton chevron */
.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.4rem;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.nav-item-inner > a:hover,
.has-dropdown:hover .nav-item-inner > a,
.has-dropdown.is-open .nav-item-inner > a {
  color: var(--color-primary);
  background: rgba(192, 57, 43, 0.07);
}

.dropdown-btn:hover,
.has-dropdown:hover .dropdown-btn,
.has-dropdown.is-open .dropdown-btn {
  color: var(--color-primary);
  background: rgba(192, 57, 43, 0.07);
}

.dropdown-btn svg {
  transition: transform 0.2s;
  pointer-events: none;
  display: block;
}

.dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---- Panneau dropdown ---- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  padding: 0.4rem 0;
  list-style: none;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}

/* Flèche */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--color-white);
}

/* Afficher au survol ou quand ouvert */
.has-dropdown:hover > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown li { display: block; }

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: rgba(192, 57, 43, 0.07);
  color: var(--color-primary);
}

/* ---- Bouton téléphone CTA ---- */
.btn-cta-phone {
  flex-shrink: 0;
  background: #E6263F;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-cta-phone:hover { background: #3286BF; color: #fff; }

/* ---- Bouton hamburger ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---- Focus visible navigation ---- */
.nav-list a:focus-visible,
.nav-dropdown a:focus-visible,
.dropdown-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ---- Hero compact (pages internes) ---- */
.hero--inner {
  padding-block: var(--space-sm);
}

.hero--inner .hero-subtitle,
.hero--inner .btn-group {
  display: none;
}

.hero--inner h1 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

/* ---- Mobile (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-cta-phone {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  #main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    z-index: 99;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  #main-nav.is-open {
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1.5rem;
    gap: 0;
    flex-wrap: nowrap;
  }

  .nav-list > li { flex-direction: column; align-items: stretch; }
  .nav-list > li + li::before { display: none; }

  .nav-list > li > a {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Dropdown mobile */
  .nav-item-inner {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-item-inner > a {
    flex: 1;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: none;
  }

  .dropdown-btn {
    padding: 0.85rem 1.2rem;
    border-radius: 0;
    border-left: 1px solid var(--color-border);
    min-width: 52px;
  }

  /* Désactiver le hover CSS sur mobile */
  .has-dropdown:hover > .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    pointer-events: none;
  }

  /* Panneau dropdown en mobile */
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.03);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    pointer-events: auto;
  }

  .nav-dropdown::before { display: none; }

  .has-dropdown.is-open > .nav-dropdown {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
  }
}

/* ---- Très petits écrans : masquer CTA tél dans le header ---- */
@media (max-width: 560px) {
  .btn-cta-phone { display: none; }
  .logo img { width: 140px; height: 48px; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 60%, #9c716f 100%);
  color: var(--color-white);
  padding-block: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(192, 57, 43, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero .btn-group {
  justify-content: center;
  display: flex;
  gap: 1rem;
}

/* ============================================================
   BOUTON REVEAL — affiche le numéro au survol
   ============================================================ */
.btn-reveal {
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.btn-reveal span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-reveal::after {
  content: attr(data-number);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: inherit;
  color: white;
  font-weight: bold;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.btn-reveal:hover span,
.btn-reveal:focus-visible span {
  transform: translateY(-150%);
}

.btn-reveal:hover::after,
.btn-reveal:focus-visible::after {
  transform: translateY(0);
}

.hero {
  background-image: linear-gradient(rgba(26, 43, 60, 0.75), rgba(26, 43, 60, 0.75)), url('../img/background.jpg');
  background-size: cover;
  background-position: center;
}



.google-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  overflow: visible;
}

/* Animation au survol */
.google-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.google-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.google-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.badge-content {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.google-badge:hover .badge-content {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.stars {
  color: #fbbc04; /* Jaune Google Stars */
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.half-star {
  position: relative;
  display: inline-block;
  width: 0.85ch;
  color: #ddd;
}

.half-star::before {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbc04;
}

.rating-text {
  color: #555;
  font-size: 12px;
  font-weight: 600;
  font-family: sans-serif;
}

@media (max-width: 480px) {
  .google-badge {
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
  .badge-content {
    display: none;
  }
  .rating-text {
    font-size: 11px;
  }
}

/* Optimisation Mobile */
@media (max-width: 480px) {
  .google-badge {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
  }
  .rating-text {
    font-size: 11px;
  }
}

/* ============================================================
   SECTIONS DEUX COLONNES
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .two-col--reverse .two-col-img {
    order: 2;
  }

  .two-col--reverse .two-col-text {
    order: 1;
  }
}

.two-col-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.5s ease;
  height: 450px;
}

.two-col-img:hover {
  box-shadow: var(--shadow-hover);
}

.two-col-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.two-col-img:hover img {
  transform: scale(1.04);
}

.two-col-img--contain img {
  object-fit: contain;
  background: #f8f8f8;
  height: auto;
}

.video-thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0 auto;
}
.video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  pointer-events: none;
  transition: background 0.2s;
}
.video-thumb:hover .video-thumb-play {
  background: rgba(0,0,0,0.8);
}

.two-col-img--placeholder {
  background: var(--color-border);
  border-radius: var(--radius-lg);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.two-col-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
}

.two-col-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: var(--color-secondary);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card .btn {
  margin-top: var(--space-md);
  align-self: flex-start;
}

/* Card produit (image + texte) */
.card-product .card-img {
  border-radius: var(--radius) var(--radius) 0 0;
  height: 200px;
  object-fit: cover;
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
  width: calc(100% + 2 * var(--space-md));
}

.card-product .card-img--placeholder {
  background: var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
  width: calc(100% + 2 * var(--space-md));
}

/* ============================================================
   SECTION "POURQUOI NOUS"
   ============================================================ */
.why-section {
  background: var(--color-light);
  text-align: center;
}

.why-section .cards-grid--3 {
  margin-bottom: var(--space-lg);
}

.why-section .card {
  align-items: center;
  text-align: center;
}

.card-compact {
  padding: 1.5rem 1rem !important;
  min-height: auto !important;
}

.card-compact .card-icon {
  font-size: 2.5rem !important;
  margin-bottom: 0.5rem !important;
}

.card-compact h3 {
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.card-compact p {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.certifications-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.cert-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 6px;
  background: white;
  border: 2px solid var(--color-border);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.cert-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: scale(1.4);
}

.certifications-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-logo-footer {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 4px;
  background: white;
  border: 1px solid var(--color-border);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cert-logo-footer:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: scale(1.3);
}

/* =========================
   CERTIFICATIONS / BADGES
========================= */

.certifications {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.certifications .partner-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 8px;
  background: white;
  border: 2px solid var(--color-border);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.certifications .partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  transform: scale(1.5);
}

.certifications-compact {
  gap: 1rem !important;
}

.certifications-compact .partner-logo {
  width: 50px !important;
  height: 50px !important;
}

.certifications-compact .partner-logo:hover {
  transform: scale(2) !important;
}


.badge {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* =========================
   LOGOS PARTENAIRES PREMIUM
========================= */

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 2rem;
  padding: 1rem 0;
}

.partner-logo {
  width: 190px;
  height: 100px;
  object-fit: contain;

  filter: grayscale(100%);
  opacity: 0.75;

  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}


/* =========================
   VERSION MOBILE
========================= */

@media (max-width: 768px) {
  .partners-row {
    gap: 20px;
  }

  .partner-logo {
    width: 90px;
    height: 50px;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }
}
  

/* ============================================================
   GALERIE GRID
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  justify-content: center;
  align-items: center;
}

.filter-btn {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Dropdown de filtre galerie */
.gallery-filter-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 1.1rem;
  transition: border-color var(--transition);
}

.gallery-filter-dropdown:focus-within {
  border-color: var(--color-primary);
}

.gallery-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.gallery-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 2.25rem 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 220px;
  transition: background var(--transition);
}

.gallery-filter-select:hover,
.gallery-filter-select:focus {
  background-color: var(--color-secondary);
  outline: none;
}

.gallery-filter-select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-filter-select option {
  background: var(--color-white);
  color: var(--color-text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}


.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 60, 0.6);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-within .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-sm);
}

.gallery-item--video {
  cursor: default;
}

.gallery-item--video .gallery-item-overlay {
  pointer-events: none;
}

.gallery-item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--video:hover img {
  transform: none;
}

/* ============================================================
   LIGHTBOX (Dialog HTML natif)
   ============================================================ */
dialog.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  background: rgba(0, 0, 0, 0.92);
  border: none;
  max-width: min(90vw, 960px);
  max-height: 90vh;
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  z-index: 1000;
}

dialog.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  color: var(--color-white);
  padding: var(--space-sm);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   FORMULAIRE
   ============================================================ */
.form-group {
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-control {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--color-primary);
}

.form-control:valid:not(:placeholder-shown) {
  border-color: #27ae60;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.form-error {
  color: var(--color-primary);
  font-size: 0.82rem;
  display: none;
}

.form-control.invalid+.form-error {
  display: block;
}

/* ---- Info cards contact ---- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  box-shadow: var(--shadow);
}

.info-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card-content h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--color-secondary);
}

.info-card-content p,
.info-card-content a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.info-card-content a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-white);
}

.footer-top {
  padding-block: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  color: var(--color-white);
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul a::before {
  content: '→';
  color: var(--color-primary);
  font-size: 0.75rem;
}

/* Footer form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.footer-form input,
.footer-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  color: var(--color-white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
}

.footer-form textarea {
  min-height: 80px;
  resize: vertical;
}

.footer-form button[type="submit"] {
  align-self: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  cursor: pointer;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--space-sm);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom nav {
  display: flex;
  gap: var(--space-sm);
}

.footer-bottom nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-bottom nav a:hover {
  color: var(--color-white);
}

/* ============================================================
   CONTACT PAGE — LAYOUT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

/* ============================================================
   MAP
   ============================================================ */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: var(--space-lg);
}

.map-wrap iframe {
  display: block;
  width: 100%;
}

/* ============================================================
   MENTIONS LÉGALES
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-2xl);
}

.page-404 .error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.page-404 h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.page-404 p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   SECTION CTA CENTRÉ
   ============================================================ */
.cta-block {
  text-align: center;
  padding-block: var(--space-lg);
}

/* Les h2/h3 globaux ont text-align:left — on corrige dans .cta-block */
.cta-block h2,
.cta-block h3 {
  text-align: center;
}

.cta-block p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

/* ============================================================
   ZONE D'INTERVENTION
   ============================================================ */
.zone-text {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
}

/* ============================================================
   HIDDEN (filtres galerie)
   ============================================================ */
.gallery-item[hidden] {
  display: none;
}

.gallery-grid > span[id] {
  display: contents;
}

/* ============================================================
   BREADCRUMB (fil d'Ariane)
   ============================================================ */
.breadcrumb {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.breadcrumb li+li::before {
  content: "›";
  margin-right: 0.25rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: underline;
}

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

/* ============================================================
   FAQ (accordéon natif)
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-secondary);
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--color-light);
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.faq-item a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   LISTE À PUCES dans les cards de zone
   ============================================================ */
.card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.section-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   CIBLES TACTILES — footer & liens de navigation (P27)
   Taille minimum recommandée : 44×44px (WCAG 2.5.5)
   ============================================================ */
.site-footer a,
.footer-bottom nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.2rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ============================================================
   UTILITAIRES — classes remplaçant les styles inline (P3)
   ============================================================ */

/* Remplace style="margin-top:0.75rem" dans le footer */
.footer-hours {
  margin-top: 0.75rem;
}

/* Remplace style="margin-top:1rem" dans certifications footer */
.certifications-footer {
  margin-top: 1rem;
}

/* Remplace style="width:100%" sur les boutons de formulaire */
.btn--full {
  width: 100%;
}

/* Remplace style="margin-bottom:1rem" sur .section-title */
.section-title--mb-sm {
  margin-bottom: 1rem;
}

/* Remplace style="margin-top:1.5rem" sur .zone-text */
.zone-text {
  margin-top: 1.5rem;
}

/* Remplace style="margin-top:3rem" sur .map-wrap */
.map-wrap {
  margin-top: 3rem;
}

/* Remplace styles inline zone intervention (index.html) */
.zone-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  background: var(--color-white);
  box-shadow: var(--shadow);
}

/* Remplace style inline section-intro centré */
.section-intro--center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Remplace styles inline two-col-img aligné au centre */
.two-col-img--aligned-center {
  align-self: center;
}
.two-col-img--aligned-center img {
  max-height: 500px;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Remplace style inline liste (ballon-eau-chaude.html) */
.list-indented {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

/* Remplace style inline image hero ballon */
.hero-img--tall {
  object-position: center;
  height: 550px;
}

/* Remplace style inline video lightbox */
.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
}

/* Lien couleur primaire dans les formulaires (RGPD) */
.link-primary {
  color: var(--color-primary);
}

/* Badge Google — masqué sur très petits écrans pour éviter le chevauchement */
@media (max-width: 400px) {
  .google-badge {
    display: none;
  }
}

/* ============================================================
   MOBILE — CORRECTIONS GÉNÉRALES
   ============================================================ */

/* Bloquer le scroll de la page quand le menu mobile est ouvert
   (iOS requiert position fixed + top négatif, géré en JS) */
html.nav-open,
html.nav-open body.nav-open {
  overflow: hidden;
}

body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overscroll-behavior: none;
}

/* Boutons : autoriser le retour à la ligne sur mobile */
@media (max-width: 600px) {
  .btn {
    white-space: normal;
    word-break: break-word;
  }

  /* CTA block : boutons empilés et centrés */
  .cta-block .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-block .btn-group .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Centrer les btn-group dans le hero sur mobile */
  .hero .btn-group,
  .hero--inner .btn-group {
    justify-content: center;
  }
}

/* ============================================================
   MESSAGES DE RETOUR FORMULAIRE (P17 / P18)
   ============================================================ */
.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: center;
}

.form-send-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}