/* Inter Font local */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-v13-latin-regular.woff2") format("woff2");
}

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

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

/* Outfit Font local - 2026 Modern Pro Artisan */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-v15-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-v15-latin-900.woff2") format("woff2");
}

:root {
  --brand: #0284c7;
  /* Rouge tuile / terre cuite */
  --brand-light: #38bdf8;
  --dark: #21201e;
  /* Gris trÃ¨s sombre, plus doux que le noir */
  --text: #333;
  --text-light: #f8f9fa;
  --muted: #6d6c6a;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --border-color: #dee2e6;
  --radius: 8px;
  --max-width: 1200px;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.07);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Scroll progress bar (2025 style) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2000;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
  transform-origin: left center;
}

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

  .fade-in,
  .fade-in.is-visible {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* Custom Selection Color */
::selection {
  background-color: var(--brand);
  color: var(--text-light);
}

/* Base styles */
body {
  font-family: var(--font-family-base);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-family-base);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw + 1rem, 2.75rem);
  font-weight: 700;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

a:hover {
  color: var(--dark);
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
}

/* --- Composants UI --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

.btn-primary {
  background: linear-gradient(45deg, var(--brand), var(--brand-light));
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--dark);
  border: 1px solid var(--border-color);
}

/* --- Dropdown Navigation --- */
.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  z-index: 1000;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  font-weight: 600;
}

.nav-dropdown a:hover {
  background-color: var(--background-alt);
  color: var(--brand);
}

/* --- Header --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 10px 0;
  background: rgba(249, 249, 247, 0.8);
  /* Fond semi-transparent */
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, border-bottom-color 0.3s;
  border-bottom: 1px solid transparent;
}

/* When lightbox is open, header should not intercept pointer events */
body.lightbox-open .main-header {
  pointer-events: none;
}

.main-header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.95;
}

.brand .logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.18));
  transition: transform 0.25s ease;
}

.brand:hover .logo img {
  transform: scale(1.05);
}

.brand-name {
  font-family: "Outfit", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0F172A;
  line-height: 1.05;
  display: block;
}

.brand-name .brand-accent {
  color: var(--brand, #0284c7);
  font-weight: 900;
}

.brand-siret {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748B;
  margin-top: 3px;
  display: block;
}

.main-footer .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.main-footer .footer-brand-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

.main-footer .brand-name {
  color: #FFFFFF;
  font-size: 1.45rem;
}

.main-footer .brand-name .brand-accent {
  color: #38BDF8;
}

.main-footer .brand-siret {
  color: #94A3B8;
}

.header-nav-btn {
  display: none;
  /* CachÃ© dans la nav mobile, visible sur desktop */
}

.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  /* Doit Ãªtre au-dessus du menu */
}

/* Backdrop for mobile nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  /* Sous le header/nav */
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
}

/* Improve off-canvas animation feel */
@media (max-width: 767px) {
  .header-nav {
    will-change: transform;
  }
}

.mobile-nav-toggle .icon-close {
  display: none;
}

/* Ã‰tat ouvert du menu */
body.nav-open .mobile-nav-toggle .icon-menu {
  display: none;
}

body.nav-open .mobile-nav-toggle .icon-close {
  display: block;
}

body.nav-open .header-nav {
  transform: translateX(0);
}

body.nav-open .main-header {
  background: var(--background);
  backdrop-filter: none;
}

body.nav-open {
  overflow: hidden;
  /* EmpÃªche le scroll du body quand le menu est ouvert */
}

/* --- Sticky CTA Bar --- */
.sticky-cta-bar {
  display: none;
  /* CachÃ© par dÃ©faut */
}

/* --- Sections --- */
.section {
  padding: clamp(2rem, 8vw, 6rem) 0;
  /* Espacement vertical unifiÃ© */
}

#realisations {
  padding-top: 0rem;
}

#services {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

#avis {
  padding-top: 2rem;
}

#zone {
  padding-top: 0rem;
}

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

.section-header {
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.section-header h2 {
  margin-top: 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(4.5rem, 7vw, 6rem);
  min-height: auto;
  color: white;
  display: grid;
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  /* Fondu vers la section suivante */
  content: "";
  position: absolute;
  top: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6vh;
  /* hauteur du fondu */
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.76) 20%,
      var(--background-alt) 90%);
  z-index: 2;
  opacity: 0.99;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Assure que la vidéo couvre tout l'espace sans bandes noires */
  z-index: 1;
  display: none;
  /* Cachée par défaut, activée en JS */
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Overlay enrichi: gradient directionnel + lÃ©gÃ¨re vignette centrale pour un meilleur contraste */
  background: radial-gradient(ellipse at 50% 60%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(to bottom,
      rgba(33, 32, 30, 0.25) 0%,
      rgba(33, 32, 30, 0.6) 60%,
      rgba(33, 32, 30, 0.78) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  /* Centre le contenu dans la hero */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1,
.hero .lead {
  color: white;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  margin-left: auto;
  margin-right: auto;
}

/* Renforce la lisibilitÃ© du titre principal en hero */
.hero h1 {
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero .trust-item {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 99px;
}

.hero .trust-item svg {
  color: white;
  opacity: 0.8;
}

.emergency-bar,
.emergency-bar-mobile {
  margin-top: 1.5rem;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  display: inline-block;
  backdrop-filter: blur(5px);
  transition: transform 0.3s, background-color 0.3s;
}

.emergency-bar:hover,
.emergency-bar-mobile:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.2);
}

.emergency-bar a,
.emergency-bar-mobile a {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-icon {
  width: 12px;
  height: 12px;
  background-color: #ff4d4d;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #ff4d4d;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  70% {
    transform: scale(2);
    opacity: 0;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.hero-actions-desktop {
  display: none;
  /* CachÃ© sur mobile par dÃ©faut */
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.trust-item svg {
  color: var(--brand);
}

/* --- Grilles (Services, Avis, etc.) --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Forcer une seule colonne pour les services sur mobile pour Ã©viter les layouts cassÃ©s */
#services .grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#engagements .card:hover {
  transform: none;
  box-shadow: none;
}

#engagements .card {
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
}

/* --- Section Engagements (Bandeau dÃ©filant) --- */
@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.scrolling-bar-container {
  overflow: hidden;
  padding: 2rem 0;
  background-color: white;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 2rem;
  /* Espace aprÃ¨s le titre */
}

.scrolling-bar {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  min-width: max-content;
  animation: scroll-x 13s linear infinite;
}

.scrolling-bar-container:hover .scrolling-bar {
  animation-play-state: paused;
}

.scrolling-bar .commitment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scrolling-bar .commitment-item .icon {
  color: var(--brand);
}

.scrolling-bar .commitment-item h3, .scrolling-bar .commitment-item .commitment-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
  /* EmpÃªche le texte de passer Ã  la ligne */
}

.card {
  position: relative;
  /* Pour positionner la flÃ¨che */
  background: linear-gradient(145deg, #ffffff, #f7f7f5);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card .icon {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  transition: transform 0.3s;
}

.card p {
  font-size: 0.95rem;
}

.card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-card {
  padding: 0;
  color: white;
  overflow: hidden;
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 60%);
  transition: background 0.4s ease;
  z-index: 2;
}

.service-card:hover::before {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.1) 70%);
}

.service-card .card-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  margin-top: auto;
  transition: transform 0.4s ease;
}

.service-card:hover .card-content {
  transform: translateY(0);
}

.service-card h3 {
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
}

.service-card .icon {
  color: var(--brand);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
}

@media (hover: none) {

  /* Sur les appareils tactiles, on dÃ©clenche l'animation au scroll */
  .card.is-visible {
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
  }

  .card.is-visible .icon {
    transform: scale(1.1);
  }

  .card.is-visible .card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (hover: hover) {

  /* Sur les appareils avec souris, on dÃ©clenche au survol */
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
  }

  .card:hover .icon {
    transform: scale(1.1);
  }

  .card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-card {
  background-color: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* --- Slider Avant/AprÃ¨s --- */
.comparison-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  border-bottom: 1px solid var(--border-color);
  aspect-ratio: 4/3;
}

.comparison-figure {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
}

.comparison-figure.after {
  clip-path: inset(0 0 0 50%);
}

.comparison-slider::after {
  /* La barre de sÃ©paration */
  content: "";
  position: absolute;
  top: 0;
  left: var(--slider-pos, 50%);
  width: 4px;
  height: 100%;
  background-color: white;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  /* Pour que les Ã©vÃ©nements passent Ã  travers */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-slider::before {
  /* Le cercle de la barre */
  content: "\2194";
  position: absolute;
  top: 50%;
  left: var(--slider-pos, 50%);
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 40px;
  height: 40px;
  background-color: white;
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comparison-figure figcaption {
  position: absolute;
  bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.comparison-figure.before figcaption {
  left: 1rem;
}

.comparison-figure.after figcaption {
  right: 1rem;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 4px;
  color: white;
}

.label-before {
  background-color: rgba(0, 0, 0, 0.5);
}

.label-after {
  background-color: var(--brand);
}

.project-info {
  padding: 24px;
}

.project-info p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.project-info p strong {
  color: var(--dark);
}

/* --- Avis Clients --- */
.testimonial-card blockquote {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
}

.testimonial-card figcaption {
  font-weight: 800;
  color: var(--dark);
}

.stars {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* --- Zone d'intervention --- */
.zone-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.city-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.city-list svg {
  color: var(--brand);
  flex-shrink: 0;
}

.map-container {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- CTA & Formulaire --- */
.cta-container {
  background-color: var(--dark);
  color: var(--background);
  padding: clamp(3rem, 8vw, 5rem);
  border-radius: var(--radius);
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-container h2 {
  color: white;
  text-align: left;
  margin: 0;
}

.cta-container p {
  color: #ccc;
  max-width: 50ch;
}

.contact-form label {
  display: none;
}

.form-reassurance {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-reassurance svg {
  margin-right: 6px;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid var(--muted);
  background-color: #302f2d;
  color: white;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(193, 73, 34, 0.4);
}

.cta-container .btn {
  width: 100%;
}

.cta-alt-contact {
  margin-top: 1.5rem;
  text-align: center;
  color: #ccc;
}

.cta-alt-contact a {
  color: var(--brand-light);
  border-bottom: 1px solid transparent;
}

.cta-alt-contact a:hover {
  color: white;
  border-bottom-color: white;
}

/* --- Footer --- */
/* --- Premium Footer 2026 --- */
.main-footer {
  background-color: #111827;
  /* Dark Slate */
  color: #f3f4f6;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--brand);
  font-size: 0.95rem;
}

.main-footer .container {
  max-width: 1200px;
  /* Ensure alignment with rest of site */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--brand);
  transform: translateX(5px);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-block .btn {
  background-color: var(--brand);
  /* Force brand color background */
  color: white !important;
  /* Force white text */
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  /* Lift it a bit */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-brand-block .btn:hover {
  background-color: white;
  color: var(--brand) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* --- Animations & Responsive --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 0.6s, transform 0.6s, filter 0.6s;
  transition-timing-function: ease-out;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

@media (max-width: 767px) {
  .hero-actions {
    display: none;
  }

  .main-header {
    position: fixed;
    width: 100%;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    /* Fix overflow */
    background: var(--background);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* AlignÃ© Ã  gauche */
    gap: 0;
    /* RemplacÃ© par le padding des liens */
    padding: 0 2rem;
    /* Reduced padding and ensuring box-sizing handles it */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
  }

  .header-nav a {
    display: block;
    /* Assure que chaque lien est sur sa propre ligne */
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: clamp(1.3rem, 7vw, 1.8rem);
    font-weight: 800;
    color: var(--dark);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .header-nav .header-nav-btn {
    display: inline-block;
    /* Afficher le bouton dans le menu mobile */
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding: 16px;
    border-bottom: none;
    /* Pas de sÃ©parateur pour le bouton */
    color: white !important;
  }

  body.nav-open .header-nav .nav-item.has-dropdown>a {
    color: var(--muted);
    pointer-events: none;
    /* Non cliquable */
    font-weight: 700;
  }

  body.nav-open .header-nav .nav-dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    margin-top: -0.5rem;
    /* RÃ©duit l'espace avec le titre "Services" */
  }

  body.nav-open .header-nav .nav-dropdown a {
    padding-left: 2rem;
    /* Indentation pour montrer la hiÃ©rarchie */
    font-size: clamp(1rem,
        5vw,
        1.3rem);
    /* Taille encore plus rÃ©duite pour un effet sous-menu */
  }

  body.nav-open .header-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  body.nav-open .sticky-cta-bar {
    transform: translateY(100%);
    opacity: 0;
  }

  body {
    /* Espace pour la barre de CTA et le header fixe */
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    /* Fix overflow */
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 999;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .sticky-cta-bar .btn-primary {
    flex-grow: 1;
    margin-left: 12px;
  }

  .btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--brand);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .btn-call:hover {
    background-color: rgba(2, 132, 199, 0.08);
    /* brand tint */
    transform: translateY(-1px);
  }

  .btn-call:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .btn-call svg {
    color: var(--brand);
  }
}

@media (min-width: 768px) {
  .emergency-bar-mobile {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: clamp(4rem, 6vw, 5.5rem) 0 clamp(4.5rem, 6.5vw, 6rem);
  }

  .hero-actions-desktop {
    display: block;
  }

  .hero-actions-desktop .btn-primary {
    font-size: 1.2rem;
    padding: 16px 32px;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
  }

  .hero-actions-desktop .btn-primary:hover {
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.5);
    transform: translateY(-3px);
  }

  .hero-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    color: white;
    font-weight: 600;
  }

  .hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-benefits svg {
    color: #34d399;
    /* Vert pour la validation */
  }

  .hero-benefits a {
    color: white;
    text-decoration: underline;
  }

  .main-header {
    padding: 12px 0;
  }

  .brand .logo {
    width: 72px;
    height: 72px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-siret {
    font-size: 0.85rem;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .zone-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }

  #realisations .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .header-nav a {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
  }

  .header-nav .header-nav-btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 12px 22px;
    color: white;
  }

  .header-contact .btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .cta-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .main-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .commitments-bar {
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 en ligne */
  }

  .scrolling-bar-container {
    border-radius: 99px;
  }
}

/* Grille de services responsive (6 cartes homogènes) */
@media (min-width: 768px) {
  #services .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1200px) {
  .hero {
    min-height: auto;
    padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(4.5rem, 6vw, 6rem);
  }
}

/* --- Seasonal Widget (Social Proof Phase 3) --- */
#seasonal-widget-container {
  max-width: 800px;
  margin: -3rem auto -6rem;
  /* AGGRESSIVE pull to eliminate white band gap */
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}

.section--tight-top {
  padding-top: clamp(2.5rem, 4vw, 3.5rem) !important;
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.seasonal-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: white;
  border-left: 4px solid var(--brand);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.seasonal-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.seasonal-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.seasonal-content {
  text-align: left;
}

.seasonal-title {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.seasonal-text {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}

.seasonal-text strong {
  color: var(--brand);
  font-weight: 700;
}

/* Styles spécifiques Saisons */
.seasonal-widget.high {
  border-left-color: #f59e0b;
  /* Amber for Alert/Winter */
  background-color: #fffbeb;
}

.seasonal-widget.high .seasonal-title {
  color: #b45309;
}

.seasonal-widget.info {
  border-left-color: #10b981;
  /* Emerald for Summer/Good condition */
  background-color: #ecfdf5;
}

.seasonal-widget.info .seasonal-title {
  color: #047857;
}

@media (max-width: 640px) {
  .seasonal-widget {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .seasonal-content {
    text-align: center;
  }
}

/* Fix for Mobile Footer Overlap */
@media (max-width: 768px) {
  body {
    padding-bottom: 0 !important;
  }

  .main-footer {
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
}

/* ============================================= */
/* == BREADCRUMBS & LOCAL GEO ENHANCEMENTS == */
/* ============================================= */
.breadcrumb-nav {
  padding: 0.85rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 600;
}

/* Local Landmarks & Zone Badges */
.landmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.landmark-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.landmark-badge .badge-icon {
  color: var(--brand);
}

.local-proof-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Interconnected Neighboring Municipalities Grid */
.geo-neighbor-cities {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--background-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.geo-neighbor-cities__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.geo-neighbor-cities__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.geo-neighbor-cities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.geo-neighbor-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.geo-neighbor-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.geo-neighbor-card__city {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.geo-neighbor-card__delay {
  font-size: 0.82rem;
  color: var(--brand);
  font-weight: 600;
  margin-top: 0.2rem;
}

