:root{
  --color-primary: #024891;
  --color-secondary: #E0B00E;

  --color-bg: #c1c3c5/*#F5F7FB*/;
  --color-bg-alt: #c1c3c5;
  --color-text: #111827;
  --color-muted: #6B7280;

  /* ✅ CARTES CARREES */
  --radius-lg: 0px;
  --radius-card:14px;

  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;

  /* Reveal */
  --reveal-text: clamp(70px, 9vw, 160px);
  --reveal-media: var(--reveal-text);

  /* Diagonale / overlap */
  --diag-shift: 80px;
  --overlap-x: 70px;
  --overlap-y: 18px;
}

/* ===========================
   RESET / BASE
   =========================== */

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #272a2c; /* même couleur que la nav (overrides l'ancien bg) */
  color: var(--color-text);
  line-height: 1.55;
  padding-top: 72px; /* légèrement plus que la navbar */
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
p{ margin: 0 0 1rem; }
h1,h2,h3{ line-height:1.15; margin:0 0 .75rem; }
ul{ margin: .75rem 0 0 1.1rem; padding:0; }
li{ margin: .35rem 0; }

/* ===========================
   LAYOUT / UTILITAIRES
   =========================== */

.container{
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

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

.muted{ color: var(--color-muted); }

/* ===========================
   SPLIT 40 / 60 + CARROUSEL
   =========================== */

.split{
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0 !important; /* 1) supprime l'espace structurel entre colonnes */
  align-items: center;
  overflow: visible !important;
}

.split--reverse{ grid-template-columns: 60% 40%; }

.split__text{
  position: relative;
  text-align: left;
  z-index: 5; /* texte au-dessus de l'image */
  overflow: visible;
  padding-right: 1.2rem; /* 2) air intérieur */
}

/* si texte à droite (reverse) */
.split.split--reverse .split__text{
  padding-right: 0;
  padding-left: 1.2rem;
}

/* Carrousel bords carrés */
.split__carousel{
  position: relative;
  z-index: 1;
  height: 500px;
  border-radius: 0px; /* ✅ carré */
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.split__carousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* ✅ carré */
  opacity: 0;
  transition: opacity 1s ease;
}

.split__carousel img.active{ opacity: 1; }

/* Photo (qui sommes-nous) */
.split__photo{
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin-left: 0;
  top: var(--diag-shift);
}

.split__photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
}



/* ===========================
   CARTE UNIQUE "STACK"
   =========================== */

.card--stack{ padding: 1.35rem 1.35rem; }

.card--stack__title{
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.9rem;
  letter-spacing: -0.3px;
}

.card--stack__block h3{
  margin: 0 0 .5rem;
  color: var(--color-primary);
  font-weight: 900;
}

.card--stack__block ul{ margin: 0 0 .2rem 1.1rem; }




/* Cards verticales */
.cards-vertical{
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.cards-vertical .card{ width: 100%; }


/* ===========================
   HERO
   =========================== */

.hero{
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  margin-top: 0;
  overflow: hidden; /* important pour cacher les bords */
}

/* Carrousel : couche la plus “au fond” */
.hero__carousel{
  position:absolute;
  inset:-18px;
  z-index:-2;
}
.hero__carousel img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;

  opacity:0;
  transition: opacity 1.1s ease;

  filter: blur(3px);
  transform: scale(1.0);
}
.hero__carousel img.is-active{ opacity: 1; }

/* overlay au-dessus du carrousel */
.hero__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  opacity: 0.4;

  background:
    linear-gradient(
      180deg,
      rgba(11,43,76,0.75) 0%,
      rgba(11,43,76,0.65) 40%,
      rgba(11,43,76,0.55) 100%
    );
}

/* ✅ FONDU HERO -> 1ère SECTION */
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 120px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,43,76,0) 0%,
    var(--color-bg-alt) 100%
  );
}

/* le contenu doit rester au-dessus */
.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker{
  color: rgba(255,255,255,.85);
  font-weight: 700;
  margin-bottom: .65rem;
}

.hero h1{
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.5px;
}
.h1-accent{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}
.lead{
  color: rgba(255,255,255,.86);
  max-width: 60ch;
}

/* Contacts sous le logo */
.hero__contacts{
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: center;
}

/* Boutons principaux du hero */
.hero__cta{
  margin: 1.6rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}

.hero__mainBtn{
  font-size: 1.05rem;
  padding: 1rem 1.2rem;
  text-align: center;
}

/* Ligne téléphone */
.hero__phone{
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}

.hero__phone:hover{
  transform: translateY(-2px);
  opacity: 1;
}

/* Petit point jaune */
.hero__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.hero__links{
  margin: 1.2rem 0 1rem;
  display:grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  max-width: 560px;
}

.heroLink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.heroLink__title{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .2px;
}

/* quick calls */
.hero__quick{
  display:flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .35rem;
}
.quick-call{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 650;
  opacity: .95;
}
.quick-call:hover{ opacity: 1; text-decoration: underline; }

.dot{
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-right: .55rem;
}

/* logo colonne droite */
.hero__brand{
  text-align:center;
  padding: 1rem;
}
.hero__logo{
  width: min(520px, 70%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,.35));
}

/* ===========================
   SECTIONS + FONDUS
   =========================== */

.section{
  padding: 5.5rem 0;
  position: relative;
  background: var(--color-bg);
  overflow: visible;
}
.section--alt{ background: var(--color-bg-alt); }

.section .container{
  position: relative;
  z-index: 1;
}

/* ✅ FONDU ENTRE SECTIONS (alt -> normal) */
.section--alt + .section::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-70px;
  height:70px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(to bottom, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

/* ✅ FONDU ENTRE SECTIONS (normal -> alt) */
.section + .section--alt::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-70px;
  height:70px;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.section__head{
  text-align:center;
  margin-bottom: 1.7rem;
}
.section__intro{
  max-width: 70ch;
  margin: 0.6rem auto 0;
  color: var(--color-muted);
}
.section__cta{
  margin-top: 1.6rem;
  display:flex;
  justify-content:center;
}

/* ===========================
   MARQUEE (1 ligne)
   =========================== */

.marquee{ margin-top: .75rem; }

.marquee__viewport{
  overflow: hidden;
  border-radius: 0px; /* ✅ carré */
  border: none;
  box-shadow: none;
  background: transparent;
}

.marquee__track{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

.marquee__track img{
  flex: 0 0 auto;
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 0px; /* ✅ carré */
  border: 1px solid rgba(2,72,145,.10);
  display:block;
}



/* ===========================
   CARTES + BOUTONS
   =========================== */

.card{
  position: relative;
  background: #272a2c;
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.8rem;
  z-index: 1;
}

/* fondu progressif externe */
.card::before{
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: calc(var(--radius-card) + 30px);
  background: radial-gradient(
    ellipse at center,
    rgba(39,42,44,0.35) 0%,
    rgba(39,42,44,0.20) 35%,
    rgba(39,42,44,0.08) 55%,
    rgba(39,42,44,0.02) 70%,
    transparent 85%
  );
  z-index: -1;
  pointer-events: none;
}

/* texte */
.card h2,
.card h3{ color:#fff; margin-bottom:.6rem; }
.card ul{ color: rgba(255,255,255,0.86); }

/* carousel snap */
.carousel__track{ scroll-snap-type: x mandatory; }
.carousel__slide{ scroll-snap-align: start; }

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.16); }

/* ===========================
   GALLERY
   =========================== */

.galleryBlock{ margin-top: 2rem; }
.galleryTitle{ margin-bottom: .35rem; color: #0b2b4c; }
.galleryIntro{ margin-bottom: 1rem; color: var(--color-muted); }

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

.gitem{
  display:block;
  text-decoration:none;
  border-radius: 0px; /* ✅ carré */
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(2,72,145,.10);
  background: rgba(255,255,255,0.92);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gitem:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,23,42,.14);
}
.gitem img{
  width:100%;
  height: 220px;
  object-fit: cover;
}
.gitem--video video{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
  background: #000;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #272a2c;
  padding: 0.9rem 0;
  z-index: 999;
}

.navbar__container{
  width: min(1120px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__phone{
  display: flex;
  align-items: center;
  gap: 10px; /* espace logo / numéro */
}

.navbar__logo{
  display: flex;
  align-items: center;
  height: 3em;
  width: auto;
}

.navbar__logo img{
  height: 12px; /* 🔥 taille idéale pour ne pas casser la navbar */
  width: auto;
  display: block;
}

.navbar__phone a{
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.navbar__links{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar__links a{
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.navbar__links a:hover{ opacity: 0.7; }


/* =========================================
   MOBILE NAV : HAMBURGER SEUL (TOP LEFT)
   ========================================= */

/* =========================================
   MOBILE MENU - PREMIUM
   ========================================= */

/* ===========================
   FOOTER
   =========================== */

.footer{
  background: #272a2c;
  color: rgba(255,255,255,.92);
  padding: 3rem 0 2rem;
}

.footer__top{
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 5rem;
}

.footer__left{
  display: flex;
  align-items: center;
}

.footer__logo{
  height: 70px;
  width: auto;
}

.footer__right h3{
  margin-bottom: .6rem;
  font-size: 1.1rem;
}

.footer__right a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}
.footer__right a:hover{ text-decoration: underline; }

/* contact (tel + mail) */
.footer__contact-line{
  display: flex;
  gap: 1.5rem;
  margin-bottom: .8rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer__phone,
.footer__mail{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease;
}

.footer__phone:hover,
.footer__mail:hover{
  opacity: .7;
  text-decoration: underline;
}

/* bas de page */
.footer__bottom{
  margin-top: 2.5rem;
  text-align: center;
  font-size: .9rem;
  opacity: .85;
}

.footer__bottom a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.footer__bottom a:hover{
  text-decoration: underline;
  color: #fff;
}


/* ===========================
   QUI SOMMES-NOUS
   =========================== */

.aboutGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.aboutCard{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(2,72,145,.10);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  padding: 1.2rem;
}
.aboutCard h3{ color: var(--color-primary); }



/* Ajustement spécifique QUI SOMMES-NOUS */
#qui-sommes-nous .container{
  position: relative;
  left: 100px;
}

/* ===========================
   MAP
   =========================== */

.map{
  height: 460px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(2,72,145,.10);
}

.mapNote{
  margin-top: 1rem;
  text-align: center;
}



/* On n’applique les états “cachés” que si JS est actif */
html.js .split__text,
html.js .split__carousel,
html.js .split__photo,
html.js .section__head,
html.js .map,
html.js .mapNote{
  opacity: 0;
  will-change: transform, opacity;
}

/* Par défaut : texte vient de la gauche, image de la droite */
html.js .split__text{ transform: translateX(calc(var(--reveal-text) * -1)); }
html.js .split__carousel,
html.js .split__photo{ transform: translateX(var(--reveal-media)); }

/* Inversé (clim) : on inverse */
html.js .split.split--reverse .split__text{ transform: translateX(var(--reveal-text)); }
html.js .split.split--reverse .split__carousel{ transform: translateX(calc(var(--reveal-media) * -1)); }
html.js .split.split--reverse .split__photo{ transform: translateX(calc(var(--reveal-media) * -1)); }

/* Zone intervention : petit “lift” vers le haut */
html.js #zone-intervention .section__head,
html.js #zone-intervention .map,
html.js #zone-intervention .mapNote{
  transform: translateY(28px);
}

.split.is-in .split__text,
.split.is-in .split__carousel,
.split.is-in .split__photo{
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 1500ms cubic-bezier(.16,1,.3,1),
    opacity 900ms ease;
}

/* l’image arrive un peu après le texte */
.split.is-in .split__carousel,
.split.is-in .split__photo{
  transition-delay: 260ms;
}

.section.is-in .section__head,
.section.is-in .map,
.section.is-in .mapNote{
  opacity: 1;
  transform: translateY(0);
  transition: transform 850ms cubic-bezier(.2,.9,.2,1), opacity 650ms ease;
}
.section.is-in .map{ transition-delay: 80ms; }
.section.is-in .mapNote{ transition-delay: 140ms; }

/* FIX: quand la section est visible, on force la position finale */
html.js .split.is-in .split__text,
html.js .split.is-in .split__carousel,
html.js .split.is-in .split__photo{
  transform: translateX(0) !important;
  opacity: 1;
}

/* ===========================
   DIAGONALE / OVERLAP
   =========================== */

/* Important : crée un contexte de calques propre */
.split__carousel, .split__photo{ position: relative; }

/* NORMAL : media plus haut, texte plus bas */
.split:not(.split--reverse) .split__carousel,
.split:not(.split--reverse) .split__photo{
  top: calc(var(--diag-shift) * -1);
}
.split:not(.split--reverse) .split__text{ top: var(--diag-shift); }

/* INVERSE : media plus bas, texte plus haut */
.split.split--reverse .split__carousel,
.split.split--reverse .split__photo{
  top: var(--diag-shift);
}
.split.split--reverse .split__text{ top: calc(var(--diag-shift) * -1); }

/* Recouvrement (mordre) */
.container, .split { overflow: visible; }

/* NORMAL : texte mord VERS LA DROITE */
.split:not(.split--reverse) .split__text{
  margin-left: 0 !important;
  margin-right: calc(var(--overlap-x) * -1) !important;
  margin-top: calc(var(--overlap-y) * -1);
}

/* REVERSE : texte mord VERS LA GAUCHE */
.split.split--reverse .split__text{
  margin-right: 0 !important;
  margin-left: calc(var(--overlap-x) * -1) !important;
  margin-top: calc(var(--overlap-y) * -1);
}



/* ===========================
   NOS CHANTIERS PREVIEW
   =========================== */

.chantiers-preview{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.chantier-item{
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.chantier-item img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .4s ease;
}
.chantier-item:hover img{ transform: scale(1.05); }

#nos-chantiers h2{
  color: #111827;
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

#nos-chantiers .section__intro{ color: #111; }



/* ===========================
   LIGHTBOX MODAL
   =========================== */

body.no-scroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,.85);
  z-index: 200000; /* 🔥 au-dessus de la navbar */
}
.lightbox.is-open{ display: flex; }

.lightbox__panel{
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
}

.lightbox__img{
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

/* 🔥 IMPORTANT : bouton en FIXED, pas absolute */
.lightbox__close{
  position: fixed;
  top: 20px;
  right: 20px;

  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;

  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 32px;
  cursor: pointer;

  z-index: 200001;
}
.lightbox__close:hover{ background: rgba(0,0,0,.8); }

/* ===========================
   PAGES LEGALES
   =========================== */

.legalSection{
  padding: 140px 20px 80px;
  min-height: 100vh;
}

.legalContainer{
  max-width: 900px;
  margin: 0 auto;
}

.legalSection h1{
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #f3f4f5;
}

.legalBlock{
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.legalBlock h2{
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #f3f4f5;
}

.legalBlock p,
.legalBlock li{
  color: #f3f4f5;
  line-height: 1.6;
  font-size: 0.95rem;
}

.legalBlock ul{ padding-left: 20px; }

.legalBack{
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  text-decoration: none;
  color: #f3f4f5;
  transition: 0.3s;
}
.legalBack:hover{ opacity: 0.7; }


/* =========================================
   Harmonisation titres sections
   ========================================= */

.section__head h2{
  color: var(#111);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}
/* =========================================
   MOBILE MENU - PREMIUM
   ========================================= */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden{
  display: none;
}

.modal img{
  max-width: 90%;
  max-height: 85vh;
  border-radius: 14px;
}

.modal__close{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.modal__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
}

.modal__arrow--left{
  left: 30px;
}

.modal__arrow--right{
  right: 30px;
}

/* ===== LIGHTBOX ===== */

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open{
  display: flex;
}

.lightbox__content{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox__img{
  max-width: 100%;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ===== CROIX ===== */

.lightbox__close{
  position: absolute;
  top: -45px;
  right: -10px;
  font-size: 36px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.lightbox__close:hover{
  background: rgba(255,255,255,0.35);
}

/* ===== FLÈCHES ===== */

.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav:hover{
  background: rgba(255,255,255,0.3);
}

.lightbox__nav--prev{
  left: -80px;
}

.lightbox__nav--next{
  right: -80px;
}

/* Responsive mobile */
@media (max-width: 768px){
  .lightbox__nav--prev{
    left: 10px;
  }
  .lightbox__nav--next{
    right: 10px;
  }

  .lightbox__close{
    top: 10px;
    right: 10px;
  }
}

/* Sections chantiers */
.chantier-section{
  margin: 40px auto;
  width: min(1120px, calc(100% - 2rem));
}

.chantier-section .section__head{
  margin-bottom: 14px;
}

.chantier-section h2{
  margin: 0;
  text-align: left; /* tu peux mettre center si tu veux */
}

/* Grille photos */
.gallery.gallery--cat{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* Chaque vignette */
.gallery.gallery--cat .gitem{
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

/* Image */
.gallery.gallery--cat img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px){

  /* On évite tout décalage nav en mobile */
  body{ padding-top: 0; }

  /* NAV invisible (comme tu voulais) */
  .navbar{
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .navbar__container{
    display: block;
    height: 0;
    overflow: visible;
  }

  .navbar__phone,
  .navbar__logo{
    display: none !important;
  }

  /* Hamburger transparent top-left */
  .navbar__toggle{
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 4000;

    width: 44px;
    height: 44px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .navbar__toggle span{
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 999px;
    transition: transform .25s ease, opacity .2s ease, width .25s ease;
    transform-origin: center;
  }

  /* Animation vers croix */
  body.menu-open .navbar__toggle span:nth-child(1){
    transform: translateY(9px) rotate(45deg);
    width: 28px;
  }
  body.menu-open .navbar__toggle span:nth-child(2){
    opacity: 0;
  }
  body.menu-open .navbar__toggle span:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
    width: 28px;
  }

  /* MENU PANEL (drawer) */
  .navbar__links{
    position: fixed;
    inset: 0 auto 0 0;      /* top right bottom left */
    width: min(82vw, 340px);
    height: 100vh;

    margin: 0;
    padding: 92px 22px 24px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    list-style: none;

    /* look premium */
    background: #121316;   /* couleur pleine, nette */

    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 18px 0 40px rgba(0,0,0,0.35);

    transform: translateX(-105%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    z-index: 3500;
  }

  /* Ouvert */
  body.menu-open .navbar__links{
    transform: translateX(0);
  }

  /* Liens */
  .navbar__links li{
    padding: 0;
  }

  .navbar__links a{
    display: block;
    padding: 14px 14px;

    border-radius: 14px;
    text-decoration: none;

    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;

    transition: background .18s ease, transform .18s ease;
  }

  .navbar__links a:hover{
    background: rgba(255,255,255,0.08);
    transform: translateX(2px);
  }
.navbar__links{ z-index: 3600; }
.navbar__toggle{ z-index: 3700; }
  /* Overlay derrière le menu (sans toucher au HTML) */
  body::before{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 3200;
  }

  body.menu-open::before{
    opacity: 1;
    pointer-events: auto; /* permet le clic dehors */
  }

  /* Bloque le scroll quand le menu est ouvert */
  body.menu-open{
    overflow: hidden;
    touch-action: none;
  }
}
/* =====================================================
   MOBILE VERSION PROPRE – SEMP'ELEC
   Supprimer tous les anciens @media mobile
   ===================================================== */
/* =====================================================
   MOBILE (<= 900px) — VERSION SIMPLE
   - Texte centré (titre + résumé)
   - Plus de cartes
   - Espace net entre texte et photo
   - 1 seule image visible
   ===================================================== */
@media (max-width: 900px){

  :root{
    --mobile-gap: 34px;     /* espace texte -> photo */
    --mobile-pad: 24px;     /* padding horizontal */
    --mobile-radius: 18px;  /* arrondi photo */
  }

  /* ✅ Stop reveal JS (sinon opacity:0 / translate) */
  html.js .split__text,
  html.js .split__carousel,
  html.js .split__photo,
  html.js .section__head,
  html.js .map,
  html.js .mapNote{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* ✅ Annule tous les décalages desktop */
  #qui-sommes-nous .container{ left: 0 !important; }
  .split__text{ top: 0 !important; left: 0 !important; }
  .split__carousel, .split__photo{ top: 0 !important; }
  .split:not(.split--reverse) .split__text,
  .split.split--reverse .split__text{
    margin: 0 !important; /* kill margins négatifs desktop */
  }

  /* ✅ Layout vertical : TEXTE puis PHOTO */
  .split{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--mobile-gap) !important;
  }

  /* =========================
     TEXTE — CENTRÉ
     ========================= */
  .split__text{
    order: 1 !important;
    width: 100% !important;
    padding: 0 var(--mobile-pad) !important;
    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    text-align: center !important;
    overflow: visible !important;
  }

  /* =========================
     SUPPRIMER LES CARDS (mobile)
     ========================= */
  .card,
  .card--stack{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    filter: none !important;
  }
  .card::before{
    content: none !important;
    display: none !important;
  }

  /* Cache le contenu détaillé */
  .card--stack__block,
  .card--stack__sep{
    display: none !important;
  }

  /* =========================
     TITRE + RÉSUMÉ
     ========================= */
  .card--stack__title,
  .split__text h2{
    width: 100% !important;
    text-align: center !important;

    color: #111827 !important;
    font-weight: 900 !important;
    font-size: 2.25rem !important;
    line-height: 1.12 !important;

    margin: 0 !important;
  }

  .card--stack__title::after{
    display: block !important;
    margin-top: 14px !important;

    text-align: center !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    color: #6b7280 !important;
    font-weight: 600 !important;

    max-width: 44ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    content: "" !important;
  }

  /* Résumés */
  #electricite .card--stack__title::after{
    content: "Installation, rénovation, mise aux normes, interphonie et dépannage rapide." !important;
  }
  #clim .card--stack__title::after{
    content: "Pose mono & multi-split, conseil personnalisé et entretien complet." !important;
  }
  #qui-sommes-nous .card--stack__title::after{
    content: "Travail soigné, conseils clairs et solutions durables pour particuliers et professionnels." !important;
  }

  /* =========================
     PHOTO / CARROUSEL — ESPACE + STYLE
     ========================= */
  .split__carousel,
  .split__photo{
    order: 2 !important;
    width: calc(100% - (var(--mobile-pad) * 2)) !important;
    margin: 0 auto 26px auto !important; /* ✅ espace sous l’image */
    border-radius: var(--mobile-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
  }

  /* Image du carrousel : visible en mobile + 1 seule image */
  .split__carousel{
    height: auto !important;
  }
  .split__carousel img{
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;

    display: block !important;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  .split__carousel img:not(:first-child){
    display: none !important;
  }

  /* Image "Qui sommes-nous" */
  .split__photo img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important; /* l’arrondi est sur le conteneur */
  }

  /* =========================================
   HERO MOBILE — LOGO EN PREMIER
   ========================================= */

.hero__grid{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 28px !important;
}

/* Logo en premier */
.hero__brand{
  order: 1 !important;
  padding: 0 !important;
}

/* Texte en second */
.hero__text{
  order: 2 !important;
  padding: 0 24px !important;
}

/* Ajustement taille logo mobile */
.hero__logo{
  width: 75% !important;
  max-width: 340px !important;
}

/* Centre parfaitement le texte */
.hero__text h1,
.hero__text .lead,
.hero__text .kicker{
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================
   FOOTER MOBILE — logo au-dessus, contact dessous
   ========================================= */
.footer__top{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  text-align: center !important;
}

.footer__left{
  order: 1 !important;
  justify-content: center !important;
}

.footer__logo{
  height: 80px !important;
  width: auto !important;
  margin: 0 auto !important;
}

.footer__right{
  order: 2 !important;
  width: 100% !important;
}

.footer__right h3{
  margin-top: 6px !important;
  margin-bottom: 10px !important;
}

/* Contact : en colonne en mobile (tel puis mail) */
.footer__contact-line{
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
  align-items: center !important;
}

/* Liens bas : espace + centrage */
.footer__bottom{
  margin-top: 22px !important;
  text-align: center !important;
}
}