/* Police Inter hébergée sur le site (aucun appel à un serveur externe) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-800.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/inter-900.woff') format('woff');
}

/* ==========================================================================
   THERMOPOMPE DE LA CAPITALE INC. - FEUILLE DE STYLE PRINCIPALE
   Palette inspirée de l'emblème : Bleu Glace, Rouge/Orange Chaleur, Vert Québec
   ========================================================================== */

:root {
  --navy-dark: #0a1120;
  --navy-main: #0f172a;
  --navy-card: #1e293b;
  --blue-brand: #0369a1;
  --blue-ice: #38bdf8;
  --red-heat: #c81e1e;
  --orange-flame: #f97316;
  --green-fleur: #15803d;
  --green-light: #22c55e;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-warm: #fff7ed;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.16);
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Mouvement (référence : emilkowalski/skills) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* entrées / sorties */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* déplacements à l'écran */
  --duration-press: 160ms;                          /* retour au clic */
  --duration-popover: 200ms;                        /* menus déroulants */
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
}

body {
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

a,
button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--blue-ice);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

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

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

/* BARRE SUPÉRIEURE FAMILIALE & ACCRÉDITATIONS */
.topbar {
  background: linear-gradient(90deg, var(--navy-dark) 0%, #172554 50%, var(--navy-dark) 100%);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid var(--green-fleur);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-pill.gold {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.topbar-phone {
  color: var(--orange-flame);
  font-size: 0.95rem;
  font-weight: 700;
}

/* NAVIGATION PRINCIPALE */
.navbar {
  background-color: var(--navy-main);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-logo img.logo-embleme {
  height: 52px;
  width: auto;
  max-width: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--blue-ice);
}

.nav-dropdown {
  position: relative;
}

/* Menu déroulant : s'ouvre depuis son déclencheur (coin haut gauche), jamais depuis scale(0) */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-card);
  min-width: 230px;
  border-radius: var(--radius-md);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition:
    opacity var(--duration-popover) var(--ease-out),
    transform var(--duration-popover) var(--ease-out),
    visibility 0s linear var(--duration-popover);
}

.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: #e2e8f0;
  font-size: 0.9rem;
}

/* Effets de survol réservés aux appareils avec souris (pas de survol « collé » après un tap) */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--blue-ice);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition-delay: 0s;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue-ice);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform var(--duration-press) var(--ease-out),
    filter 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

/* Retour tactile immédiat à l'appui */
.btn:active,
.nav-toggle:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    filter: brightness(1.08);
  }
}

@media (max-width: 600px) {
  .btn {
    white-space: normal;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-heat) 0%, var(--orange-flame) 100%);
  color: var(--white);
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--blue-brand) 0%, var(--blue-ice) 100%);
  color: var(--white);
  box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.35);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline-white:hover {
    background: var(--white);
    color: var(--navy-main);
    filter: none;
  }
}

/* BANNIÈRE VIDÉO HERO (PAGE D'ACCUEIL) */
.hero-video-section {
  position: relative;
  min-height: 82vh;
  min-height: 82svh; /* stable quand la barre d'adresse mobile apparaît */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy-dark);
  /* Étape 1 : aperçu flou de 1 Ko, inclus dans ce fichier, affiché tout de suite */
  background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCAASACADASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAwACBQH/xAAiEAACAgIBAwUAAAAAAAAAAAAAAQIDBBESFCEiEzFBYYH/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAv/EABURAQEAAAAAAAAAAAAAAAAAAAAR/9oADAMBAAIRAxEAPwDk9Pxj2ZuFVfLjOX6NRg5EX5TWjfQX7bU0i6gaxIWPVbbDvwvTaUmu47wsxPxt0FbhZUklKfL7FHWiJ8EQHkvYKREB/9k=');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.68) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 17, 32, 0.88) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(3, 105, 161, 0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 4.5rem 0;
}

.family-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(21, 128, 61, 0.85);
  border: 1px solid #4ade80;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* Variante accueil : logo complet en haut, texte sur la ligne suivante */
.family-tag.family-tag--logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* Logo transparent aussi large que le texte : il ne compte pas dans la largeur du bandeau
   (width: 0), puis s'étire à 100 % de la largeur fixée par le texte */
.family-tag-logo {
  display: block;
  width: 0;
  min-width: 100%;
  height: auto;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Entrée de la bannière (une seule fois, page d'accueil) :
   titre = élément principal, le reste suit avec moins de mouvement ; le bandeau de confiance ne fait que s'afficher en fondu */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: hero-rise 600ms var(--ease-out) both;
  }

  .hero-content > .family-tag,
  .hero-content > .hero-title {
    --rise: 16px;
  }

  .hero-content > .hero-subtitle {
    --rise: 10px;
    animation-delay: 120ms;
  }

  .hero-content > .hero-cta-group {
    --rise: 6px;
    animation-delay: 220ms;
  }

  .hero-content > .hero-trust-strip {
    animation-name: hero-fade;
    animation-delay: 300ms;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 8px));
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

.hero-title span.highlight-warm {
  background: linear-gradient(90deg, #fb923c, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.highlight-cool {
  background: linear-gradient(90deg, #38bdf8, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(var(--trust-cols, 4), 1fr);
  gap: 1rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
}

.trust-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--white);
}

.trust-item span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* SECTIONS GÉNÉRALES */
.section {
  padding: 5rem 0;
}

.section-warm {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--red-heat);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

/* GRILLES ET CARTES */
/* Trois colonnes fixes. La grille compte 6 pistes pour pouvoir centrer un dernier rang incomplet. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

.grid-3 > * {
  grid-column: span 2;
}

/* Dernier rang de 2 cartes : centré */
.grid-3 > :nth-child(3n + 1):nth-last-child(2) {
  grid-column: 2 / span 2;
}

/* Dernier rang d'une seule carte : centrée */
.grid-3 > :nth-child(3n + 1):last-child {
  grid-column: 3 / span 2;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  position: relative;
  height: 220px;
  background: var(--navy-main);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red-heat);
  color: var(--white);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-subvention-tag {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: var(--green-fleur);
  color: var(--white);
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.brand-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.check-list {
  margin: 1rem 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--green-fleur);
  font-weight: bold;
}

/* TIMELINE PROCESSUS 9 ÉTAPES */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-flame);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* FORMULAIRES */
.form-card {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--red-heat);
  color: var(--text-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-main);
}

.form-control {
  padding: 0.78rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem; /* 16 px : évite le zoom automatique d'iOS */
  font-family: inherit;
  background: #f8fafc;
  min-width: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}

/* FORMULAIRE : PRÉCISIONS FACULTATIVES */
.form-details {
  margin: 0.25rem 0 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: #f8fafc;
}

.form-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-brand);
}

.form-details[open] summary {
  margin-bottom: 1rem;
}

.form-details fieldset {
  border: none;
}

.form-details legend {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-main);
  margin-bottom: 0.4rem;
}

/* Deux colonnes : une ligne par jour (AM | PM) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.75rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-brand);
}

/* NOTRE EXPERTISE (ACCUEIL)
   Couleurs de l'emblème : flamme (chaud), flocon (froid), fleur de lys (vert) */
.expertise-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.08), transparent 45%),
    var(--bg-light);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.expertise-card {
  --tone: var(--blue-brand);
  --tone-soft: #e0f2fe;
  --tone-bar: linear-gradient(90deg, var(--blue-brand), var(--blue-ice));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.85rem 1.75rem;
  overflow: hidden;
}

/* Barre d'accent en haut de la carte */
.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tone-bar);
}

.expertise-card--chaud {
  --tone: var(--red-heat);
  --tone-soft: #ffedd5;
  --tone-bar: linear-gradient(90deg, var(--red-heat), var(--orange-flame));
}

.expertise-card--vert {
  --tone: var(--green-fleur);
  --tone-soft: #dcfce7;
  --tone-bar: linear-gradient(90deg, var(--green-fleur), var(--green-light));
}

.expertise-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--tone-soft);
  color: var(--tone);
  margin-bottom: 1.25rem;
}

.expertise-icon {
  width: 36px;
  height: 36px;
}

.expertise-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy-main);
  margin-bottom: 0.6rem;
}

.expertise-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn.btn-expertise {
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--tone);
  border: 2px solid var(--tone-soft);
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn.btn-expertise:hover {
    background: var(--tone-soft);
    filter: none;
  }
}

/* TABLEAU COMPARATIF */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--navy-main);
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody th {
  font-weight: 700;
}

.compare-table tr.is-old th {
  border-left: 4px solid var(--orange-flame);
}

.compare-table tr.is-new th {
  border-left: 4px solid var(--green-fleur);
}

.compare-table tr.is-new {
  background: #f0fdf4;
}

/* ÉTAPES D'ENTRETIEN */
.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 1rem 0 0;
}

/* Les ancres (#entretien…) ne passent pas sous la barre de navigation fixe */
section[id],
[id].card {
  scroll-margin-top: 96px;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0.35rem 0 0.35rem 2.4rem;
  color: var(--text-muted);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--blue-brand);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PANIER */
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cart-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-line > span {
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  margin-left: 0.5rem;
  min-width: 32px;
  min-height: 32px;
  color: var(--red-heat);
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
}

#boutique-cart-total {
  font-variant-numeric: tabular-nums;
}

/* ALERTES FLASH ODOO / SIDEKIQ */
.flash-banner {
  background: linear-gradient(90deg, #15803d, #16a34a);
  color: var(--white);
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: opacity 400ms ease, transform 400ms ease;
}

@starting-style {
  .flash-banner {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.flash-banner.flash-error {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
}

/* BANNIÈRE DE CONSENTEMENT LOI 25 / COOKIE YES (PROC-cookies) */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  background: var(--navy-main);
  color: var(--white);
  padding: 1.35rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.35);
  z-index: 9999;
  /* Entre et sort par le même chemin (vers le bas) ; transition interrompable */
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 400ms ease,
    transform 400ms ease,
    display 400ms allow-discrete;
}

.cookie-banner.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .cookie-banner.show {
    opacity: 0;
    transform: translateY(100%);
  }
}

.cookie-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.85rem 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* PIED DE PAGE */
.footer {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--red-heat);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.footer ul li {
  margin-bottom: 0.55rem;
}

.footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .footer ul li a:hover {
    color: var(--blue-ice);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.nav-links a {
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .navbar-inner {
    padding: 0.85rem 0.75rem;
  }
  .nav-links {
    gap: 0.85rem;
    font-size: 0.86rem;
  }
  .navbar .btn {
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
  }
  .brand-logo img.logo-embleme {
    height: 44px;
  }
}

/* MENU MOBILE */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-popover) var(--ease-out), opacity 150ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

.mobile-nav {
  display: none;
}

/* Sous 1100 px, les 7 liens ne tiennent plus sur une ligne : menu déroulant */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar-cta {
    margin-left: auto;
  }

  /* Panneau déroulant sous la barre : glisse depuis la barre, entrée et sortie par le même chemin */
  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy-main);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--duration-popover) var(--ease-out),
      transform var(--duration-popover) var(--ease-out),
      visibility 0s linear var(--duration-popover);
  }

  .mobile-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-nav a {
    display: block;
    padding: 0.8rem 0.5rem;
    color: #e2e8f0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--blue-ice);
  }

  .mobile-nav-group {
    margin-top: 0.75rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
  }
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Une seule colonne : évite les rangs incomplets (2 + 1) sur tablette */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 > *,
  .grid-3 > :nth-child(3n + 1):nth-last-child(2),
  .grid-3 > :nth-child(3n + 1):last-child {
    grid-column: auto;
  }

  .hero-trust-strip,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-badges {
    display: none; /* déjà repris dans la bannière : on garde la promo et le téléphone */
  }
}

@media (max-width: 480px) {
  .navbar .navbar-cta {
    display: none; /* le formulaire reste accessible depuis le menu */
  }
}

/* Mouvement réduit : on garde les fondus, on retire les déplacements */
@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .nav-toggle:active {
    transform: none;
  }

  .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .mobile-nav,
  .mobile-nav[data-open],
  .cookie-banner,
  .cookie-banner.show,
  .flash-banner {
    transform: none;
  }

  @starting-style {
    .cookie-banner.show,
    .flash-banner {
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }
}

/* Pot de miel du formulaire : hors écran, jamais visible */
.champ-verification {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Choix de consentement dans le formulaire */
.consent-choice {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1rem;
}

.consent-choice legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.consent-text {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

/* GALERIE DE RÉALISATIONS (photos réelles) */
.gallery-section {
  padding-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item a {
  display: block;
}

/* Vignettes au même format, quel que soit le sens de la photo */
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #334155;
}

/* Deux photos côte à côte (avant / après) */
.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.photo-pair .photo-figure {
  margin: 0;
  max-width: none;
}

/* Photo insérée dans le texte d'une page */
.photo-figure {
  margin: 1.5rem 0;
  max-width: 460px;
}

.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.photo-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

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

  /* Nombre impair de photos : la dernière occupe toute la largeur */
  .gallery-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Tableaux de chiffres (page Subventions) */
/* Sur un écran très étroit, le tableau défile à l'horizontale au lieu d'élargir la page */
.table-wrap {
  overflow-x: auto;
}

/* Une colonne de grille ne s'élargit pas au-delà de l'écran à cause de son contenu */
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.data-table thead th {
  background: var(--navy-main);
  color: var(--white);
  font-size: 0.82rem;
}

.data-table tbody th {
  font-weight: 600;
}

/* Un montant ne se coupe jamais en deux lignes */
.data-table td {
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

@media (max-width: 520px) {
  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.55rem 0.5rem;
  }
}

/* PAGES PUBLICITAIRES : en-tête et pied de page allégés */
.landing-header {
  background: var(--navy-main);
  color: var(--white);
  padding: 0.75rem 0;
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
}

.landing-brand img {
  height: 40px;
  width: auto;
}

.landing-phone {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.landing-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.landing-footer a {
  text-decoration: underline;
}

.est-hero {
  padding: 2.5rem 0;
}

/* ESTIMATEUR DE SUBVENTIONS : une question par écran */
.estimateur {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.est-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.est-progress span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

.est-progress span.fait {
  background: #16a34a;
}

.est-progress span.actif {
  background: #c81e1e;
}

.est-compteur {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c81e1e;
  margin-bottom: 1rem;
}

.est-etape {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.est-etape legend,
.est-resultat h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy-main);
  margin-bottom: 0.5rem;
  padding: 0;
}

.est-etape legend:focus,
.est-resultat h2:focus {
  outline: none;
}

.est-aide {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 1rem;
}

/* Chaque choix est une grande zone tactile */
.est-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 56px;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--navy-main);
  cursor: pointer;
}

.est-option input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #c81e1e;
}

.est-option:has(input:checked) {
  border-color: #c81e1e;
  background: #fef2f2;
}

.est-option:has(input:focus-visible) {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.est-montant {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.est-montant strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--navy-main);
  margin: 0.4rem 0 0.25rem;
}

.est-montant p {
  font-size: 0.9rem;
  color: #475569;
}

.est-avertissement {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  font-size: 0.92rem;
  color: #334155;
}

.est-retour {
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  font-weight: 700;
  color: #0369a1;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .est-option:hover {
    border-color: #94a3b8;
  }
}

/* Voile d'envoi du formulaire (ajouté par app.js au moment de l'envoi) */
.form-card { position: relative; }

.form-sending {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.form-sending-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(320px, calc(100vw - 2rem));
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.form-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(15, 23, 42, 0.15);
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: form-spin 0.9s linear infinite;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .form-spinner { animation-duration: 3s; }
}
