/* ================================================================
   CLIMCHAUFFAGES.FR – Main Stylesheet
   Based on Charte Graphique v1.0
   ================================================================ */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary */
  --blue-marine: #0A2E4D;
  --orange: #FF6B35;
  --blue-ciel: #4A90E2;
  /* Grays */
  --gris-anthracite: #2C3E50;
  --gris-moyen: #7F8C8D;
  --gris-clair: #ECF0F1;
  --gris-tres-clair: #F8F9FA;
  --blanc: #FFFFFF;
  /* Functional */
  --vert: #27AE60;
  --rouge: #E74C3C;
  --jaune: #F39C12;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-orange: 0 4px 12px rgba(255,107,53,0.3);
  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  /* Layout */
  --container: 1200px;
  --header-h: 80px;
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50px;
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: rgba(255,107,53,0.2);
  color: var(--blue-marine);
}

body {
  font-family: 'Open Sans', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gris-anthracite);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--blue-marine);
  line-height: 1.2;
}

h1 { font-size: 48px; font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: 36px; font-weight: 500; line-height: 1.3; }
h3 { font-size: 28px; font-weight: 500; line-height: 1.4; color: var(--gris-anthracite); }
h4 { font-size: 22px; font-weight: 400; line-height: 1.4; color: var(--gris-anthracite); }

.text-accent { color: var(--orange); }

/* ==================== CONTAINER ==================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: var(--blanc);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: #E55A2B;
  box-shadow: 0 6px 16px rgba(255,107,53,0.4);
  transform: translateY(-1px);
}
.btn--primary:active {
  background: #CC4A20;
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--blue-marine);
  border: 2px solid var(--blue-marine);
}
.btn--secondary:hover {
  background: var(--blue-marine);
  color: var(--blanc);
}

.btn--outline-light {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--blanc);
}

.btn--call {
  background: var(--vert);
  color: var(--blanc);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  box-shadow: 0 4px 12px rgba(39,174,96,0.3);
  font-weight: 600;
  font-size: 18px;
}
.btn--call:hover {
  background: #219a52;
  transform: translateY(-1px);
}

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-clair);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: var(--blue-marine);
  flex-shrink: 0;
}
.header__logo strong { font-weight: 700; }
.header__logo-icon { width: 40px; height: 40px; }

.header__nav { flex: 1; display: flex; justify-content: center; }

.header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-anthracite);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.header__link:hover,
.header__link--active {
  color: var(--orange);
}
.header__link svg { transition: transform 0.2s ease; }

/* Dropdown */
.header__dropdown { position: relative; }
.header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
  z-index: 100;
}
.header__dropdown:hover .header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header__dropdown:hover .header__link svg { transform: rotate(180deg); }

.header__submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gris-anthracite);
  transition: background 0.15s ease, color 0.15s ease;
}
.header__submenu a:hover {
  background: var(--gris-tres-clair);
  color: var(--orange);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--vert);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}
.header__phone:hover { background: rgba(39,174,96,0.08); }

.header__cta { font-size: 14px; padding: 10px 20px; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-marine);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.header__burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0A2E4D 0%, #1a4a7a 50%, #2d6cb5 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,107,53,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,144,226,0.2) 0%, transparent 50%);
}

.hero__overlay {
  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.03'%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");
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanc);
  max-width: 850px;
  padding: var(--space-xxl) var(--space-m);
}

.hero__surtitle {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-s);
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: var(--space-m);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: var(--space-l);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-l);
}

.hero__badges {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==================== SECTIONS ==================== */
.section {
  padding: var(--space-xxl) 0;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-s);
}

.section__title {
  margin-bottom: var(--space-s);
}

.section__desc {
  font-size: 17px;
  color: var(--gris-moyen);
  line-height: 1.7;
}

/* ==================== PRESENTATION ==================== */
.presentation { background: var(--gris-tres-clair); }

.presentation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.presentation__card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.presentation__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.presentation__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-m);
}
.presentation__icon svg { width: 100%; height: 100%; }

.presentation__card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-marine);
  margin-bottom: var(--space-xs);
}
.presentation__card p {
  font-size: 15px;
  color: var(--gris-moyen);
  line-height: 1.6;
}

/* ==================== SERVICES ==================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-ciel);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: var(--space-m);
}
.service-card__icon svg { width: 36px; height: 36px; }

.service-card__icon--clim { background: rgba(74,144,226,0.1); color: var(--blue-ciel); }
.service-card__icon--chauffage { background: rgba(255,107,53,0.1); color: var(--orange); }
.service-card__icon--pac { background: rgba(10,46,77,0.08); color: var(--blue-marine); }
.service-card__icon--plomberie { background: rgba(74,144,226,0.1); color: var(--blue-ciel); }
.service-card__icon--elec { background: rgba(243,156,18,0.1); color: var(--jaune); }
.service-card__icon--vmc { background: rgba(127,140,141,0.12); color: var(--gris-moyen); }

.service-card__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-marine);
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: 15px;
  color: var(--gris-moyen);
  line-height: 1.6;
  margin-bottom: var(--space-m);
  flex: 1;
}

.service-card__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-ciel);
  transition: color 0.2s ease;
}
.service-card:hover .service-card__link { color: var(--orange); }

/* ==================== REASSURANCE ==================== */
.reassurance { background: var(--gris-tres-clair); }

.reassurance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.reassurance__item {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--blanc);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-clair);
  transition: box-shadow 0.3s ease;
}
.reassurance__item:hover {
  box-shadow: var(--shadow-md);
}

.reassurance__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.reassurance__icon svg { width: 100%; height: 100%; }

.reassurance__item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-marine);
  margin-bottom: 4px;
}
.reassurance__item p {
  font-size: 14px;
  color: var(--gris-moyen);
  line-height: 1.5;
}

/* ==================== STATS ==================== */
.stats {
  position: relative;
  background: var(--blue-marine);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.stats__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(255,107,53,0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(74,144,226,0.15) 0%, transparent 40%);
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  text-align: center;
}

.stats__item { color: var(--blanc); }

.stats__number {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
  display: inline;
}
.stats__plus, .stats__unit {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--orange);
}

.stats__label {
  display: block;
  font-size: 15px;
  margin-top: 4px;
  opacity: 0.85;
}

/* ==================== ZONE ==================== */
.zone__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.zone__cities h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-marine);
  margin-bottom: var(--space-s);
}

.zone__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-s);
}

.zone__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gris-tres-clair);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-anthracite);
  transition: all 0.2s ease;
}
.zone__tag:hover {
  background: var(--blue-marine);
  color: var(--blanc);
  border-color: var(--blue-marine);
}

.zone__note {
  font-size: 14px;
  color: var(--gris-moyen);
  font-style: italic;
}

.zone__map {
  display: flex;
  align-items: center;
  justify-content: center;
}
.zone__map-placeholder svg {
  width: 100%;
  max-width: 280px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials { background: var(--gris-tres-clair); }

.testimonials__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}
.stars { color: var(--jaune); font-size: 20px; letter-spacing: 2px; }
.testimonials__rating span { font-size: 15px; color: var(--gris-moyen); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.testimonial-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: var(--space-m);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-2px); }

.testimonial-card__stars {
  color: var(--jaune);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.testimonial-card__text {
  font-size: 15px;
  font-style: italic;
  color: var(--gris-anthracite);
  line-height: 1.6;
  margin-bottom: var(--space-s);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-marine);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  color: var(--blue-marine);
}
.testimonial-card__author span {
  display: block;
  font-size: 12px;
  color: var(--gris-moyen);
}

/* ==================== PROMO ==================== */
.promo__card {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  background: linear-gradient(135deg, var(--blue-marine) 0%, #153e6b 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: var(--blanc);
  overflow: hidden;
}

.promo__content { flex: 1; }

.promo__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--blanc);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-s);
}

.promo__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: var(--space-s);
}

.promo__desc {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: var(--space-m);
}

.promo__list {
  margin-bottom: var(--space-m);
}
.promo__list li {
  font-size: 15px;
  padding: 4px 0;
  opacity: 0.9;
}

.promo__visual {
  flex-shrink: 0;
}

.promo__circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,53,0.1);
}

.promo__big {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.promo__small {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--blanc);
  margin-top: 4px;
}

/* ==================== DEVIS SECTION ==================== */
.devis-section { background: var(--gris-tres-clair); }

.devis-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.devis-steps { margin: var(--space-l) 0; }

.devis-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.devis-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.devis-step strong {
  display: block;
  font-size: 16px;
  color: var(--blue-marine);
  margin-bottom: 2px;
}
.devis-step p {
  font-size: 14px;
  color: var(--gris-moyen);
}

.devis-trust { margin-bottom: var(--space-l); }
.devis-trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  font-size: 14px;
  color: var(--gris-anthracite);
}

.devis-phone {
  padding: var(--space-m);
  background: var(--blanc);
  border-radius: var(--radius-lg);
  text-align: center;
}
.devis-phone p {
  font-size: 14px;
  color: var(--gris-moyen);
  margin-bottom: var(--space-xs);
}

/* ==================== FORM ==================== */
.form {
  background: var(--blanc);
  border: 2px solid var(--blue-ciel);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
}

.form__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-marine);
  text-align: center;
  margin-bottom: var(--space-m);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
}

.form__group { margin-bottom: var(--space-s); }

.form__label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-anthracite);
  margin-bottom: var(--space-xs);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--gris-anthracite);
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius-sm);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}
.form__input:focus {
  outline: none;
  border-color: var(--blue-ciel);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}
.form__input.error {
  border-color: var(--rouge);
}
.form__input.success {
  border-color: var(--vert);
}

.form__input::placeholder { color: var(--gris-moyen); }

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237F8C8D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__textarea { resize: vertical; min-height: 100px; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}
.form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-ciel);
}
.form__checkbox label {
  font-size: 13px;
  color: var(--gris-moyen);
  line-height: 1.4;
}
.form__checkbox a {
  color: var(--blue-ciel);
  text-decoration: underline;
}

.form__success {
  text-align: center;
  padding: var(--space-xl);
}
.form__success h3 {
  font-size: 24px;
  color: var(--vert);
  margin: var(--space-s) 0 var(--space-xs);
}
.form__success p {
  color: var(--gris-moyen);
}

/* ==================== FAQ ==================== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue-marine);
  text-align: left;
  transition: background 0.2s ease;
}
.faq__question:hover { background: var(--gris-tres-clair); }
.faq__question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq__question[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq__answer.open {
  max-height: 300px;
}
.faq__answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gris-anthracite);
  line-height: 1.6;
}

/* ==================== CTA FINAL ==================== */
.cta-final {
  background: linear-gradient(135deg, var(--blue-marine) 0%, #1a4a7a 100%);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta-final h2 {
  color: var(--blanc);
  font-size: 36px;
  margin-bottom: var(--space-s);
}
.cta-final p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: var(--space-l);
}

.cta-final__actions {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--blue-marine);
  color: var(--blanc);
  padding: var(--space-xxl) 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-l);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--blanc);
  margin-bottom: var(--space-s);
}
.footer__logo strong { font-weight: 700; }
.footer__logo-icon { width: 36px; height: 36px; }

.footer__desc {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blanc);
  margin-bottom: var(--space-s);
  position: relative;
}
.footer__col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--orange);
  margin-top: 8px;
}

.footer__col li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer__col li a {
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer__col li a:hover {
  opacity: 1;
  color: var(--orange);
}
.footer__col li {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
}
.footer__col li svg { flex-shrink: 0; opacity: 0.6; }

.footer__bottom {
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-m) 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ==================== MOBILE STICKY CTA ==================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--blanc);
  border-top: 1px solid var(--gris-clair);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: var(--space-xs);
  gap: var(--space-xs);
}

.mobile-cta__call,
.mobile-cta__devis {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.mobile-cta__call {
  background: var(--vert);
  color: var(--blanc);
}
.mobile-cta__devis {
  background: var(--orange);
  color: var(--blanc);
}

/* ==================== ANIMATIONS ==================== */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== SERVICE PAGE TEMPLATE ==================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-marine) 0%, #1a4a7a 50%, #2d6cb5 100%);
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  color: var(--blanc);
  min-height: 300px;
  display: flex;
  align-items: center;
}
.page-hero::after {
  content: '';
  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.03'%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");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__surtitle {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-xs);
}
.page-hero h1 {
  color: var(--blanc);
  font-size: 42px;
  margin-bottom: var(--space-s);
}
.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 650px;
  line-height: 1.6;
}
.page-hero .breadcrumb {
  margin-top: var(--space-m);
  font-size: 13px;
  opacity: 0.7;
}
.page-hero .breadcrumb a { text-decoration: underline; opacity: 0.85; }
.page-hero .breadcrumb a:hover { opacity: 1; }

.page-content { padding: var(--space-xxl) 0; }

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
}
.page-content__inner h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
}
.page-content__inner h3 {
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
  font-size: 22px;
}
.page-content__inner p {
  margin-bottom: var(--space-s);
  line-height: 1.7;
}
.page-content__inner ul {
  margin-bottom: var(--space-s);
  padding-left: var(--space-m);
}
.page-content__inner ul li {
  position: relative;
  padding-left: var(--space-m);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}
.page-content__inner ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.page-cta-banner {
  background: var(--gris-tres-clair);
  border: 2px solid var(--gris-clair);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  text-align: center;
  margin: var(--space-xl) 0;
}
.page-cta-banner h3 {
  color: var(--blue-marine);
  margin-bottom: var(--space-xs);
}
.page-cta-banner p {
  color: var(--gris-moyen);
  margin-bottom: var(--space-s);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--blanc);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: calc(var(--header-h) + var(--space-m)) var(--space-m) var(--space-m);
    transition: right 0.35s var(--ease);
    overflow-y: auto;
    z-index: 999;
  }
  .header__nav.open { right: 0; }

  .header__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .header__link { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--gris-clair); }

  .header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-s);
    min-width: 0;
    display: none;
  }
  .header__dropdown.open .header__submenu { display: block; }
  .header__submenu a { padding: 10px 0; border-bottom: 1px solid var(--gris-clair); }

  .header__cta { display: none; }
  .header__burger { display: flex; }

  .hero { min-height: 500px; }
  .hero__title { font-size: 36px; }

  .presentation__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .reassurance__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .zone__content { grid-template-columns: 1fr; }
  .zone__map { order: -1; }
  .devis-section__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .promo__card { flex-direction: column; text-align: center; }

  .page-hero h1 { font-size: 34px; }
}

/* Mobile */
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }

  .section { padding: var(--space-xl) 0; }
  .section__header { margin-bottom: var(--space-l); }

  .hero { min-height: 420px; }
  .hero__content { padding: var(--space-xl) var(--space-s); }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__badges { flex-direction: column; align-items: center; }
  .hero__scroll { display: none; }

  .header__phone span { display: none; }
  .header__phone { padding: 8px; }

  .services__grid { grid-template-columns: 1fr; }
  .reassurance__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-s); }
  .stats__number { font-size: 36px; }
  .stats__plus, .stats__unit { font-size: 24px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .promo__circle { width: 140px; height: 140px; }
  .promo__big { font-size: 32px; }
  .promo__card { padding: var(--space-l) var(--space-m); }

  .cta-final h2 { font-size: 26px; }
  .cta-final__actions { flex-direction: column; align-items: center; }

  .mobile-cta { display: flex; }
  .footer { padding-bottom: 70px; }

  .page-hero h1 { font-size: 28px; }
  .page-hero { min-height: 240px; }
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.nav-overlay.active { display: block; }

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--blue-marine);
  color: var(--blanc);
  padding: var(--space-m) var(--space-m);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}
.cookie-banner__text a { color: var(--orange); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.cookie-banner__btn--accept {
  background: var(--orange);
  color: var(--blanc);
}
.cookie-banner__btn--accept:hover { background: #E55A2B; }
.cookie-banner__btn--refuse {
  background: transparent;
  color: var(--blanc);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-banner__btn--refuse:hover { border-color: var(--blanc); }

@media (max-width: 767px) {
  .cookie-banner { padding-bottom: 80px; }
  .cookie-banner__inner { flex-direction: column; text-align: center; }
  .cookie-banner__actions { width: 100%; justify-content: center; }
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #E55A2B;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
}

/* ==================== SKIP TO CONTENT (Accessibility) ==================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--orange);
  color: var(--blanc);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

/* ==================== FOCUS STYLES (Keyboard navigation) ==================== */
*:focus-visible {
  outline: 3px solid var(--blue-ciel);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-ciel);
  outline-offset: 2px;
}
.form__input:focus-visible {
  outline: none;
  border-color: var(--blue-ciel);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] {
    opacity: 1;
    transform: none;
  }
  .hero__scroll { animation: none; }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .header, .footer, .mobile-cta, .cookie-banner, .back-to-top,
  .cta-final, .promo, .hero__scroll, .hero__cta {
    display: none !important;
  }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { min-height: auto; background: none !important; }
  .hero__bg, .hero__overlay { display: none; }
  .hero__content { color: #000; padding: 20px 0; }
  .hero__title { color: #000; font-size: 24pt; }
  .section { padding: 20px 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after, a[href^="#"]::after,
  .header__link::after, .footer__col a::after, .service-card__link::after { content: none; }
}

/* ==================== UTILITY CLASSES ==================== */
.page-cta-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.link--service {
  color: #4A90E2;
  text-decoration: underline;
  font-weight: 600;
}

.link--accent {
  color: #4A90E2;
  text-decoration: underline;
}

/* ==================== PAGE HERO COMPACT (mentions légales, politique) ==================== */
.page-hero--compact {
  min-height: 200px;
  padding-top: calc(var(--header-h) + 32px);
}
.page-hero--compact h1 {
  font-size: 36px;
}

/* ==================== MULTI-STEP FORM (devis.html) ==================== */

/* Barre de progression */
.form-progress { margin-bottom: 28px; }
.form-progress__bar {
  height: 5px;
  background: var(--gris-clair);
  border-radius: 3px;
  margin-bottom: 18px;
  overflow: hidden;
}
.form-progress__fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-progress__steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.form-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.form-progress__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gris-clair);
  color: var(--gris-moyen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.form-progress__step > span {
  font-size: 11px;
  color: var(--gris-moyen);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease, font-weight 0.2s ease;
}
.form-progress__step.active .form-progress__dot {
  background: var(--orange);
  color: var(--blanc);
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
  transform: scale(1.1);
}
.form-progress__step.active > span { color: var(--orange); font-weight: 700; }
.form-progress__step.done .form-progress__dot { background: var(--vert); color: var(--blanc); }
.form-progress__step.done > span { color: var(--vert); }

/* Étapes du formulaire */
.form-step { display: block; }
.form-step.hidden { display: none; }
.form__step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-marine);
  text-align: center;
  margin-bottom: 20px;
}

/* Cartes cliquables – grille de sélection */
.form-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.form-cards--4 { grid-template-columns: repeat(4, 1fr); }

.form-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 2px solid var(--gris-clair);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: var(--blanc);
  text-align: center;
  user-select: none;
}
.form-card:hover { border-color: var(--blue-ciel); background: rgba(74,144,226,0.04); }
.form-card.selected {
  border-color: var(--orange);
  background: rgba(255,107,53,0.06);
  box-shadow: 0 0 0 1px var(--orange);
}
.form-card svg { color: var(--gris-moyen); transition: color 0.2s ease; flex-shrink: 0; }
.form-card.selected svg { color: var(--orange); }
.form-card > span {
  font-size: 11px;
  font-weight: 500;
  color: var(--gris-anthracite);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}
.form-card.selected > span { color: var(--orange); font-weight: 700; }

/* Cartes urgence */
.urgence-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.urgence-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-marine);
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s ease;
}
.urgence-card__sub { font-size: 12px; color: var(--gris-moyen); margin-top: 4px; }
.form-card.selected .urgence-card__label { color: var(--orange); }

/* Slider budget */
.budget-display { text-align: center; margin-bottom: 20px; }
.budget-display__value {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.budget-display__label { font-size: 13px; color: var(--gris-moyen); margin-top: 6px; }

input[type="range"].budget-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gris-clair);
  outline: none;
  cursor: pointer;
}
input[type="range"].budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,0.45);
  border: 3px solid var(--blanc);
  margin-top: -10px;
  transition: box-shadow 0.2s ease;
}
input[type="range"].budget-range::-webkit-slider-thumb:hover { box-shadow: 0 4px 14px rgba(255,107,53,0.6); }
input[type="range"].budget-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,0.45);
  border: 3px solid var(--blanc);
}
input[type="range"].budget-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--orange);
}
.budget-marks { display: flex; justify-content: space-between; margin-top: 10px; }
.budget-marks span { font-size: 11px; color: var(--gris-moyen); }
.budget-hint { font-size: 12px; color: var(--gris-moyen); text-align: center; margin-top: 10px; }

/* Navigation entre étapes */
.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
#prevBtnMs { flex-shrink: 0; }
#nextBtnMs, #submitBtnMs { flex: 1; }

/* Message d'erreur sous les cartes */
.cards-error { font-size: 12px; color: var(--rouge); margin-top: 6px; display: none; }
.cards-error.visible { display: block; }

/* Écran de succès enrichi */
.form__success--rich { padding: var(--space-l); }
.form__success--rich h3 {
  color: var(--vert);
  font-size: 22px;
  margin-bottom: 8px;
}
.form__success--rich p {
  color: var(--gris-moyen);
  margin-bottom: 4px;
}
.form__success--rich .btn {
  margin-top: 8px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(39,174,96,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success-steps { margin: 24px 0; text-align: left; }
.success-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: var(--gris-tres-clair);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--orange);
}
.success-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.success-step strong {
  display: block;
  font-size: 14px;
  color: var(--blue-marine);
  margin-bottom: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.success-step p { font-size: 13px; color: var(--gris-moyen); margin: 0; }

/* Margin utilities for multi-step form */
.form__group--mt { margin-top: 20px; }
.form__group--mt-l { margin-top: 24px; }

/* Multi-step form responsive */
@media (max-width: 640px) {
  .form-cards { grid-template-columns: repeat(2, 1fr); }
  .form-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .urgence-cards { grid-template-columns: 1fr; }
  .budget-display__value { font-size: 28px; }
  .form__step-title { font-size: 15px; }
  .form-nav { flex-wrap: wrap; }
  #prevBtnMs { width: 100%; order: 2; }
  #nextBtnMs, #submitBtnMs { order: 1; }
}

/* ========================================
   PAGE RÉALISATIONS
   ======================================== */

.realisations-section { background: var(--gris-tres-clair); }

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

/* ── Carte ── */
.realisation-card {
  background: var(--blanc);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  display: flex;
  flex-direction: column;
}

.realisation-card:hover,
.realisation-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.realisation-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.realisation-card__thumb {
  height: 200px;
  background: linear-gradient(140deg, var(--blue-marine) 0%, #1a4a7a 55%, var(--blue-ciel) 100%);
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.realisation-card:hover .realisation-card__thumb {
  transform: scale(1.04);
}

.realisation-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
  z-index: 1;
}

.realisation-card__count {
  position: relative;
  z-index: 2;
  margin: 0 10px 10px 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.realisation-card__body {
  padding: var(--space-m);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.realisation-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-marine);
  margin: 0;
  line-height: 1.5;
}

.realisation-card__cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.realisation-card:hover .realisation-card__cta { gap: 8px; }

/* ── Overlay modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

/* ── Boîte modale ── */
.modal {
  background: var(--blanc);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

/* ── En-tête modal ── */
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
  border-bottom: 1px solid var(--gris-clair);
  flex-shrink: 0;
}

.modal__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-marine);
  margin: 0;
  line-height: 1.45;
}

.modal__close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  background: var(--gris-tres-clair);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-anthracite);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal__close:hover { background: var(--orange); color: var(--blanc); transform: rotate(90deg); }

/* ── Slider ── */
.modal__slider-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: #0a0a0a;
}

.slider__track {
  display: flex;
  height: 100%;
  min-height: 420px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider__slide img {
  display: block;
    margin: auto;

    max-width: 100%;
    max-height: 75vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-marine);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 10;
}

.slider__btn:hover:not(:disabled) { background: var(--blanc); transform: translateY(-50%) scale(1.08); }
.slider__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }

/* ── Pied de modal ── */
.modal__footer {
  padding: var(--space-s) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  border-top: 1px solid var(--gris-clair);
  flex-shrink: 0;
  min-height: 56px;
}

.slider__dots { display: flex; gap: 8px; align-items: center; }

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris-clair);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider__dot.is-active { background: var(--orange); transform: scale(1.4); }

.modal__counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gris-moyen);
  min-width: 36px;
  text-align: center;
}

/* ── Responsive réalisations ── */
@media (max-width: 1023px) {
  .realisations-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
}

@media (max-width: 640px) {
  .realisations-grid { grid-template-columns: 1fr; }
  .modal { max-height: 96vh; border-radius: var(--radius-lg); }
  .modal__header { padding: var(--space-s) var(--space-m); }
  .modal__title { font-size: 15px; }
  .slider__track { min-height: 240px; }
  .slider__btn { width: 36px; height: 36px; }
  .slider__btn--prev { left: 8px; }
  .slider__btn--next { right: 8px; }
  .modal__footer { padding: var(--space-xs) var(--space-m); min-height: 48px; }
}