/* ==========================================================================
   MENUISERIE BOURDEAU AGENCEMENT (MBA) — Feuille de style commune
   Utilisée par toutes les pages du site (index, a-propos, services,
   realisations, contact...). Header et footer partagent ces mêmes classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, p,
ul, ol, li,
figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden; /* filet de sécurité anti-débordement horizontal */
  -webkit-font-smoothing: antialiased;
}

ul, ol {
  list-style: none;
}

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

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

svg {
  overflow: visible;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Focus clavier visible et cohérent avec l'accent de la marque */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. VARIABLES — Design system
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --color-white: #FFFFFF;
  --color-black: #0D0D0D;
  --color-heading: #141414;
  --color-text: #8A7E74;
  --color-text-light: #B5B0AA;
  --color-border: #E4E1DD;
  --color-accent: #B67332;

  /* Couleurs d'état (formulaire de contact) */
  --color-error-border: #E9A6A6;
  --color-error-bg: #FDECEC;
  --color-error-text: #B14545;
  --color-success-text: #3E7D53;

  /* Typographie */
  --font-main: 'Archivo', Arial, Helvetica, sans-serif;

  /* Espacements */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-section: clamp(64px, 9vw, 130px);

  /* Mise en page */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 60px);
  --header-height: 100px;

  /* Icônes */
  --icon-size: 20px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT — conteneurs & sections
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
  background-color: var(--color-white);
}

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

/* Ligne : sur-titre + grand titre + lien, alignés sur la même rangée */
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-head-row .section-title {
  margin: 0;
}

/* En-tête centré (utilisé par la section Services) */
.section-head--center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-xl);
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */

/* Sur-titres ("eyebrows") : petites majuscules + trait */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.eyebrow--light {
  color: var(--color-text-light);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow-line {
  display: inline-block;
  flex-shrink: 0;
  width: 36px;
  height: 1px;
  background-color: currentColor;
}

/* Grands titres H1 / H2 */
.section-title,
.hero-title {
  font-family: var(--font-main);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--color-heading);
}

.section-title {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.9rem);
}

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

.hero-title {
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem);
  line-height: 1.18;
  color: var(--color-white);
  max-width: 19ch;
  margin-bottom: var(--space-md);
}

/* Texte courant */
.body-text {
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 58ch;
  margin-bottom: var(--space-md);
}

.body-text:last-of-type {
  margin-bottom: 0;
}

.body-text--light {
  color: var(--color-text-light);
}

/* Petit trait décoratif horizontal (CTA, footer) */
.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.divider-line--center {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 36px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--small {
  padding: 13px 26px;
}

/* Plein : fond noir / texte blanc → inversion au survol */
.btn--filled {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

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

/* Contour : bordure noire / fond transparent (sections claires) */
.btn--outline {
  background-color: transparent;
  color: var(--color-heading);
  border-color: var(--color-heading);
}

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

/* Contour clair : pour les boutons posés sur une photo sombre (hero) */
.btn--outline-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* Plein blanc / texte noir : pour les sections sombres (CTA devis) */
.btn--filled-white {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

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

.btn .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   6. LIENS "VOIR PLUS" / "EN SAVOIR PLUS" — soulignement animé
   -------------------------------------------------------------------------- */
.link-more {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size 0.35s ease, color 0.3s ease;
}

.link-more:hover,
.link-more:focus-visible {
  background-size: 100% 1px;
  color: var(--color-accent);
}

.link-more--light {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   7. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 1000;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: var(--color-black);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

/* Navbar noire au scroll : le CTA reste noir mais gagne un fin contour blanc pour rester visible */
.site-header.is-scrolled .nav-actions .btn--filled {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header.is-scrolled .nav-actions .btn--filled:hover,
.site-header.is-scrolled .nav-actions .btn--filled:focus-visible {
  border-color: var(--color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  padding-block: 14px;
  /* Rangée plus large que les sections de contenu : avec 4 liens + le
     téléphone + le bouton, tous en white-space:nowrap et une police
     agrandie, la navigation a besoin de plus que les 1280px du .container. */
  max-width: 1600px;
  padding-inline: clamp(20px, 3.5vw, 44px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 42px;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-white);
  line-height: 1.2;
  max-width: 15ch;
}

/* Navigation principale (liens + actions) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-white);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--color-accent);
}

.header-phone .icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Bouton burger (masqué sur desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 110;
}

.burger-line {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active .burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 160px var(--space-xl);
  max-width: 900px;
}

.hero-text {
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   9. À PROPOS
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: var(--space-lg);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-heading);
}

.trust-item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.about-media {
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 720;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   10. SERVICES
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-heading);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

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

.service-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-card .body-text {
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
}

.service-card .link-more {
  margin-top: auto;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   10bis. SERVICES — blocs "carte + carrousel de réalisations"
   -------------------------------------------------------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.service-block {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-block-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.service-block-card:hover {
  border-color: var(--color-heading);
}

.service-block-card .service-icon {
  margin-bottom: var(--space-md);
}

.service-block-title {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-block-card .body-text {
  margin-bottom: var(--space-md);
}

/* Carrousel : une image au premier plan, la suivante en aperçu à droite */
.service-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 130%;
  height: 58%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 13, 13, 0.1);
  transform: translateY(-50%) scale(0.82);
  transition: left 0.8s cubic-bezier(0.65, 0, 0.35, 1),
              height 0.8s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.7s ease,
              transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

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

.carousel-slide.is-active {
  left: 2%;
  height: 88%;
  opacity: 1;
  z-index: 4;
  transform: translateY(-50%) scale(1);
}

.carousel-slide.is-next {
  left: 64%;
  height: 66%;
  opacity: 0.88;
  z-index: 3;
  transform: translateY(-50%) scale(1);
}

.carousel-slide.is-prev {
  left: -28%;
  height: 66%;
  opacity: 0;
  z-index: 2;
  transform: translateY(-50%) scale(0.85);
}

.carousel-slide.is-idle {
  left: 130%;
  height: 58%;
  opacity: 0;
  z-index: 1;
  transform: translateY(-50%) scale(0.82);
}

/* Flèches de navigation manuelle du carrousel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--color-white);
  color: var(--color-heading);
  border: 1px solid rgba(13, 13, 13, 0.14);
  transform: translateY(-50%);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-arrow--prev {
  left: 6px;
}

.carousel-arrow--next {
  right: 6px;
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-slide img {
  cursor: zoom-in;
}

/* Le carrousel "Cuisine sur mesure" utilise des photos plus larges : un
   cadrage carré coupait trop les côtés, on l'assouplit en 4/3. */
#service-cuisine .carousel-slide {
  aspect-ratio: 4 / 3;
}

body.service-lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   10ter. PARTENAIRES — carte de présentation + carrousel de logos
   Carrousel classique à fenêtre fixe : le bloc reste toujours centré et à
   la même taille, seule la piste de logos à l'intérieur avance d'un cran
   (voir js/main.js, section "7ter. CARROUSEL PARTENAIRES"). Sans JS, ou
   s'il y a moins de partenaires que d'emplacements visibles, les logos
   s'affichent simplement centrés, sans rotation.
   -------------------------------------------------------------------------- */
.partners-intro {
  max-width: 620px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  text-align: center;
}

.partners-intro .body-text {
  margin-bottom: 0;
}

/* Bloc toujours centré : sa largeur suit exactement le nombre de logos visibles */
.partners-carousel {
  display: flex;
  justify-content: center;
}

/* Fenêtre : largeur fixée par JS (overflow masqué), sinon s'ajuste au contenu */
.partners-viewport {
  max-width: 100%;
  overflow: hidden;
}

/* Piste : les emplacements de logos, translatée d'un cran à la fois par JS */
.partners-track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners-slide {
  flex: 0 0 auto;
}

.partners-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-slide a:hover,
.partners-slide a:focus-visible {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-slide img {
  max-height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   10quater. PLAN DU SITE — colonnes de liens groupés par catégorie
   -------------------------------------------------------------------------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.sitemap-col {
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}

.sitemap-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

.sitemap-links li + li {
  margin-top: 12px;
}

.sitemap-links a {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.sitemap-links a:hover,
.sitemap-links a:focus-visible {
  color: var(--color-accent);
}

/* Visionneuse plein écran des carrousels de services (distincte de la
   lightbox de la galerie de réalisations : classes préfixées "service-") */
.service-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 13, 13, 0.94);
  padding: 24px;
}

.service-lightbox[hidden] {
  display: none;
}

.service-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-lightbox-img {
  /* Hauteur fixe pour que toutes les photos (portrait ou paysage) paraissent
     de la même taille, quasi plein écran en hauteur. */
  height: 92vh;
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.service-lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.service-lightbox-close:hover,
.service-lightbox-close:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.service-lightbox-close svg {
  width: 20px;
  height: 20px;
}

.service-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.service-lightbox-arrow:hover,
.service-lightbox-arrow:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.service-lightbox-arrow svg {
  width: 22px;
  height: 22px;
}

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

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

.service-lightbox-arrow[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .service-lightbox {
    padding: 70px 16px;
  }

  .service-lightbox-img {
    height: 78vh;
    max-height: 78vh;
    max-width: 100%;
  }

  .service-lightbox-close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 42px;
    height: 42px;
  }

  .service-lightbox-arrow {
    width: 44px;
    height: 44px;
  }

  .service-lightbox-arrow--prev {
    left: var(--space-xs);
  }

  .service-lightbox-arrow--next {
    right: var(--space-xs);
  }
}

/* --------------------------------------------------------------------------
   12. CTA DEVIS
   -------------------------------------------------------------------------- */
.cta-devis {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  text-align: center;
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.55);
}

.cta-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-content .body-text {
  max-width: 50ch;
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   13. ZONE D'INTERVENTION
   -------------------------------------------------------------------------- */
.zone-head {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.zone-head .section-title {
  margin-bottom: var(--space-md);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.city-card {
  padding: 20px 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.city-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   14. PAGE À PROPOS — sections spécifiques (hero court, blocs texte/image
   inversables, chiffres clés, étapes du process)
   -------------------------------------------------------------------------- */

/* Hero de page : plus court que le hero d'accueil, pas d'actions */
.hero--page {
  min-height: 62vh;
}

.hero--page .hero-content {
  padding-block: 150px var(--space-lg);
}

/* Espace entre le dernier paragraphe (sans marge basse) et un bouton/lien */
.about-content .btn,
.about-content .link-more {
  margin-top: var(--space-sm);
}

/* Variante inversée du bloc texte/image "about" : image à gauche, texte à droite */
.about-grid--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.about-grid--reverse .about-content {
  order: 2;
}

.about-grid--reverse .about-media {
  order: 1;
}

/* Chiffres clés (section sombre) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  margin-top: var(--space-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat-number {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.6rem);
  letter-spacing: 1px;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  max-width: 22ch;
}

/* Notre méthode : 4 étapes numérotées */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.process-step {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.process-number {
  display: block;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: 1px;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.process-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.process-step .body-text {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.process-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   15. PAGE SERVICES — cartes avec puces
   -------------------------------------------------------------------------- */
.service-features {
  margin-bottom: var(--space-md);
}

.service-feature {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.service-feature:last-child {
  margin-bottom: 0;
}

.service-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 1px;
  background-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   16. PAGE RÉALISATIONS — barre de filtres, galerie & lightbox
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 11px 22px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  background-color: transparent;
  border: 1px solid var(--color-border);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-media {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-media:hover img,
.gallery-media:focus-visible img {
  transform: scale(1.06);
}

.gallery-caption {
  margin-top: var(--space-sm);
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.gallery-text {
  font-size: 0.82rem;
  color: var(--color-text);
}

/* Lightbox : superposition plein écran pour agrandir une vignette */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: rgba(13, 13, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-inner {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.3s ease, color 0.3s ease;
}

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

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   17. PAGE CONTACT — formulaire & coordonnées
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-xl);
}

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

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

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
}

.form-required {
  color: var(--color-accent);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-heading);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-field.has-error .form-input,
.form-field.has-error .form-textarea {
  border-color: var(--color-error-border);
  background-color: var(--color-error-bg);
}

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

.form-field.has-error .form-error {
  display: block;
}

/* Piège anti-spam : masqué visuellement mais présent dans le DOM */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.form-status {
  font-size: 0.85rem;
  color: var(--color-text);
  min-height: 1.3em;
}

.form-status.is-success {
  color: var(--color-success-text);
}

.form-status.is-error {
  color: var(--color-error-text);
}

/* Coordonnées */
.contact-info-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.info-item a {
  transition: color 0.3s ease;
}

.info-item a:hover,
.info-item a:focus-visible {
  color: var(--color-accent);
}

.info-item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-accent);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-heading);
}

.check-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.body-text--small {
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-black);
  padding-top: var(--space-section);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(181, 176, 170, 0.2);
}

.footer-title {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer-contact {
  margin-bottom: var(--space-lg);
}

.footer-contact li + li {
  margin-top: 14px;
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--color-accent);
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.footer-logo {
  width: 130px;
  height: auto;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent);
}

.footer-bottom {
  padding-block: var(--space-md);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. ANIMATIONS D'APPARITION AU SCROLL
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage progressif pour les grilles de cartes */
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .carousel-slide,
  .carousel-slide img {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE — 1400px (nav) / 1024px / 768px / 480px

   Note : le seuil de bascule du menu burger est volontairement plus large
   (1400px) que les seuils des grilles (1024px). Avec 4 liens + le numéro
   de téléphone + le bouton "Devis gratuit" en white-space:nowrap et une
   police agrandie (~17px), la rangée desktop a besoin d'une marge
   confortable pour tenir sans débordement horizontal : en dessous de
   1400px, on préfère donc le panneau burger plutôt que de risquer un
   chevauchement ou un texte tronqué.
   -------------------------------------------------------------------------- */

/* ===== ≤ 1400px : passage en menu burger plein écran ===== */
@media (max-width: 1400px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(100%, 380px);
    background-color: var(--color-black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .nav-list .nav-link {
    font-size: 1.2rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ===== ≤ 1024px : tablette — grilles de contenu en 2 colonnes ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .service-carousel {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  /* Tablette : environ 3 logos visibles à la fois (nombre exact géré par JS) */
  .partners-track {
    gap: var(--space-lg);
  }

  .partners-slide a {
    width: 130px;
    height: 52px;
  }

  .partners-slide img {
    max-width: 130px;
  }

  .about-grid {
    gap: var(--space-lg);
  }

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

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

  .contact-grid {
    gap: var(--space-lg);
  }

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

  .footer-col--main {
    grid-column: 1 / -1;
  }
}

/* ===== ≤ 768px : mobile — grilles en 1 colonne ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .logo-img {
    height: 34px;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--page .hero-content {
    padding-top: 120px;
  }

  .about-grid,
  .about-grid--reverse {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: 2;
  }

  .section-head-row {
    align-items: flex-start;
  }

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

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

  .service-block {
    /* Texte et carrousel rapprochés, à différencier du grand espacement entre services (.services-list) */
    gap: var(--space-sm);
  }

  .service-carousel {
    aspect-ratio: 1 / 1;
    /* Sur mobile : texte d'abord, carrousel ensuite (inverse de la tablette) */
    order: 1;
  }

  .partners-intro {
    padding: var(--space-md);
  }

  /* Mobile : environ 2 logos visibles à la fois (nombre exact géré par JS) */
  .partners-track {
    gap: var(--space-lg);
  }

  .partners-slide a {
    width: 110px;
    height: 44px;
  }

  .partners-slide img {
    max-width: 110px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

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

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

  .filter-bar {
    gap: 10px;
    margin-bottom: var(--space-lg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-lg);
  }

  .services-cta {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .footer-col--main {
    grid-column: auto;
  }
}

/* ===== ≤ 480px : petits mobiles — ajustements fins ===== */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .hero-title,
  .section-title,
  .footer-title {
    letter-spacing: 1px;
  }

  .eyebrow {
    letter-spacing: 1.5px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .btn {
    padding: 15px 24px;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-content .btn {
    width: 100%;
  }

  .services-cta .btn,
  .services-cta .link-more {
    width: 100%;
    text-align: center;
  }

  .trust-list {
    gap: 12px 20px;
  }

  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}
