/* ==========================================================================
   Électricité Pro — Feuille de style principale
   Style : simple & efficace, palette neutre, focus sur l'information
   ========================================================================== */

/* --- Police Fira Sans (auto-hébergée) --------------------------------------- */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Thin.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-ThinItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-ExtraLight.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-ExtraLightItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-LightItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-MediumItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-SemiBoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-ExtraBoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/FiraSans-BlackItalic.woff2") format("woff2");
}

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Couleurs neutres */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f7;
  --color-border: #e2e4e7;
  --color-text: #1f2328;
  --color-text-muted: #3f4043;

  /* Accent unique : bleu ardoise sobre, utilisé pour les liens et éléments actifs */
  --color-accent: #35516b;
  --color-accent-dark: #253a4d;

  /* Accent secondaire : usage exclusif pour l'urgence / l'appel */
  --color-urgent: #c6613f;
  --color-urgent-dark: #a84f30;

  /* Accent tertiaire : call-to-action non urgents (devis...), même teinte chaleureuse */
  --color-cta: #c6613f;
  --color-cta-dark: #a84f30;

  /* Rouge d'urgence : réservé au survol du bouton d'appel flottant */
  --color-danger: #dc2626;

  /* Typographie */
  --font-base: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

/* Accessibilité : focus clavier visible */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Loader de page ------------------------------------------------------ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .loader-spinner {
    animation: none;
  }
}

/* --- Layout utilitaire ------------------------------------------------------ */
main {
  display: block;
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

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

section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--fs-lg);
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* --- Menu burger (mobile) --------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Bouton d'appel flottant ----------------------------------------------- */
.btn-call-sticky {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-urgent);
  color: #ffffff;
  padding: var(--space-sm) var(--space-md);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-call-sticky:hover {
  background: var(--color-danger);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Boutons génériques ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-urgent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-urgent-dark);
}

.btn-secondary {
  background: var(--color-accent);
  color: #ffffff;
  border: 1.5px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #ffffff;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: var(--fs-lg);
  background: #ffffff;
  color: var(--color-urgent);
}

.btn-large:hover {
  background: var(--color-urgent);
  color: #ffffff;
}

.btn-accent {
  background: var(--color-cta);
  color: #ffffff;
  padding: 1rem 2.25rem;
  font-size: var(--fs-lg);
}

.btn-accent:hover {
  background: var(--color-cta-dark);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: var(--color-bg-alt);
}

.hero h1 {
  font-size: var(--fs-3xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: var(--fs-lg);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* --- Feature cards ----------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 14px 24px -12px rgba(31, 35, 40, 0.28);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: var(--fs-2xl);
  display: block;
  margin-bottom: var(--space-xs);
}

.icon--gif {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: #ffffff;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-size: var(--fs-lg);
}

.feature-card p {
  margin-bottom: 0;
  font-size: var(--fs-base);
}

/* --- Intro de page ----------------------------------------------------- */
.page-intro {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.page-intro h1 {
  font-size: var(--fs-xl);
  font-weight: 600;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pun {
  color: var(--color-cta);
  font-weight: 700;
}

.page-intro p {
  font-size: var(--fs-lg);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* --- Services -------------------------------------------------------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.service-item {
  width: 100%;
  min-width: 0;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.service-item:hover {
  box-shadow: 0 14px 24px -12px rgba(31, 35, 40, 0.28);
  transform: translateY(-2px);
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(53, 81, 107, 0.1);
  font-size: var(--fs-lg);
}

.service-icon--gif {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 0;
}

.service-item h2 {
  font-size: var(--fs-lg);
  margin-bottom: 0;
}

.service-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-size: var(--fs-base);
}

/* --- Bandeau CTA services ---------------------------------------------- */
.services-cta {
  text-align: center;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.services-cta h2 {
  font-size: var(--fs-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* --- Bandeau CTA -------------------------------------------------------------- */
.cta-banner {
  background: var(--color-accent);
  color: #ffffff;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: var(--fs-2xl);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) var(--space-md) 0;
  font-size: var(--fs-sm);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-section h3 {
  color: #ffffff;
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-xs);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #ffffff;
}

.copyright {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Responsive ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - (var(--space-md) / 2));
    margin-left: auto;
    margin-right: auto;
  }

  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - (var(--space-md) / 2));
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 850px) {
  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- Page 404 --------------------------------------------------------------- */
main:has(.error-404) {
  display: flex;
  flex-direction: column;
}

.error-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.error-404-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  font-size: 16rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 var(--space-md);
}

.error-404-logo {
  width: 0.78em;
  height: 0.78em;
  flex-shrink: 0;
}

.error-404-subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .error-404-code {
    font-size: 11rem;
  }
}

@media (max-width: 480px) {
  .error-404-code {
    font-size: 7rem;
  }
}

/* --- Message "pas encore de contenu" (témoignages...) --------------------- */
.no-content {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.no-content p {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  font-style: italic;
  margin-bottom: 0;
}

/* --- Page Réalisations ---------------------------------------------------- */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.realisation-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.realisation-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-cta);
}

.realisation-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  box-sizing: border-box;
  padding: var(--space-xs) var(--space-md);
  margin-bottom: 0;
  font-size: var(--fs-lg);
  text-align: center;
}

.realisation-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.realisation-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.realisation-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.realisation-carousel:hover::after {
  background: rgba(0, 0, 0, 0.22);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #ffffff;
  border-color: var(--color-accent);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.3);
  cursor: pointer;
}

.carousel-dot.is-active {
  border-color: var(--color-accent);
  background: #ffffff;
}

.realisation-dates {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(31, 35, 40, 0.28);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.realisation-text {
  box-sizing: border-box;
  padding: var(--space-md);
}

.realisation-card p {
  height: 72px;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  line-height: 1.5;
  text-align: left;
}

.realisation-card--hidden {
  display: none;
}

.realisations-more {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-xl);
}

.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-show-more:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-show-more-arrow {
  transition: transform 0.2s ease;
}

.btn-show-more.is-expanded .btn-show-more-arrow {
  transform: rotate(180deg);
}

/* --- Lightbox (photos en grand) ------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(15, 23, 40, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  width: 85vw;
  height: 75vh;
  max-width: 1100px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff;
  border-color: var(--color-accent);
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0.7;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.lightbox-thumb:hover {
  opacity: 1;
}

.lightbox-thumb.is-active {
  border-color: var(--color-accent);
  opacity: 1;
}

/* --- Page Laisser un avis --------------------------------------------------- */
.review-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.review-cta-icon {
  color: var(--color-cta);
  font-size: var(--fs-2xl);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.review-cta h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.review-cta p {
  margin-bottom: var(--space-md);
}

.review-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.review-steps h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.review-steps-list {
  color: var(--color-text);
  line-height: 1.8;
  padding-left: 1.25rem;
}

/* --- Plan du site ---------------------------------------------------------- */
.sitemap-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.sitemap-group h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-accent);
}

.sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-group li {
  border-bottom: 1px solid var(--color-border);
}

.sitemap-group a {
  display: block;
  padding: 0.65rem 0;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.15s ease;
}

.sitemap-group a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .sitemap-content {
    grid-template-columns: 1fr;
  }
}

/* --- Pages légales (mentions, confidentialité) --------------------------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-updated {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --- Bandeau cookies ------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 500;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  flex: 1 1 260px;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner-actions button {
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  white-space: nowrap;
}

.cookie-refuse {
  background: transparent;
  border: 1.5px solid var(--color-border) !important;
  color: var(--color-text);
}

.cookie-refuse:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-accent);
}

.cookie-accept {
  background: var(--color-accent);
  color: #ffffff;
}

.cookie-accept:hover {
  background: var(--color-accent-dark);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions button {
    flex: 1;
  }
}

/* --- Page Contact --------------------------------------------------------- */
.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
}

.contact-form select {
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235B6169'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-form input[type="file"] {
  padding: 0.65rem 1rem;
  background: var(--color-bg-alt);
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(53, 81, 107, 0.15);
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.captcha-submit-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.captcha-submit-field {
  flex: 1 1 300px;
}

.captcha-submit-row .btn {
  align-self: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 640px) {
  .captcha-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-submit-field {
    flex-basis: auto;
  }

  .contact-form .slide-captcha-track {
    max-width: none;
  }

  .captcha-submit-row .btn {
    align-self: stretch;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* --- Captcha à glisser --------------------------------------------------- */
.slide-captcha-track {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 48px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.slide-captcha-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.slide-captcha-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: var(--radius);
  cursor: grab;
  touch-action: none;
}

.slide-captcha-handle:active {
  cursor: grabbing;
}

.slide-captcha-track.is-verified {
  background: rgba(53, 81, 107, 0.1);
  border-color: var(--color-accent);
}

.slide-captcha-track.is-verified .slide-captcha-text {
  color: var(--color-accent);
  font-weight: 600;
}

.slide-captcha-track.is-verified .slide-captcha-handle {
  background: var(--color-accent);
}

.slide-captcha-noscript {
  color: var(--color-urgent);
  font-size: var(--fs-sm);
  margin-top: var(--space-xs);
}

/* Piège à robots : invisible pour un humain, mais présent dans le DOM
   pour les robots qui remplissent les champs sans regarder */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-security-msg {
  color: var(--color-urgent);
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.field-error {
  color: var(--color-danger);
  font-size: var(--fs-sm);
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.form-success {
  background: #e7f3ec;
  border: 1px solid #bfe0cc;
  color: #1f6b3f;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--fs-base);
}

.form-errors {
  background: #fdecec;
  border: 1px solid #f3c2c2;
  color: var(--color-danger);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2em;
}

.form-errors li {
  margin-bottom: 0.25em;
}

.form-errors li:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 640px) {
  .hero h1 {
    font-size: var(--fs-2xl);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item:last-child {
    grid-column: auto;
    width: 100%;
  }

  .realisations-grid {
    grid-template-columns: 1fr;
  }

  .btn-call-sticky {
    right: var(--space-sm);
    bottom: var(--space-sm);
    padding: 0.65rem 1rem;
    font-size: var(--fs-sm);
  }

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