/* ========================================
   JANY INGENIERIES — Palette de couleurs
   Primary:   #87CEEB (bleu ciel)
   Secondary: #BD6537 (brun/orange)
   Dark:      #145A77 (bleu foncé)
   Accent:    #FFA500 (orange)
   Text:      #595959
   ======================================== */

:root {
  --primary:   #87CEEB;
  --secondary: #BD6537;
  --dark:      #145A77;
  --accent:    #FFA500;
  --orange2:   #FF8C00;
  --text:      #595959;
  --text-light:#888;
  --bg:        #F2F2F2;
  --white:     #FFFFFF;
  --border:    #DADADA;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.3s ease;

  --container: 1240px;
  --topbar-h:  40px;
  --nav-h:     72px;
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader.preloader-hidden { pointer-events: none; }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: contain;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.07); opacity: 0.82; }
}
.preloader-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  gap: 4px;
}
.preloader-line1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 5px;
}
.preloader-line2 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 3.5px;
  text-transform: uppercase;
}
.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.preloader-bar span {
  display: block;
  height: 100%;
  background: var(--secondary);
  border-radius: 3px;
  width: 0;
  animation: preloaderLoad 1.8s ease-in-out forwards;
}
@keyframes preloaderLoad {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* Slide-up au départ */
#preloader { background: var(--dark); transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1); }
#preloader.preloader-hidden { transform: translateY(-100%); pointer-events: none; }

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
/* Ré-autoriser la sélection dans les champs de formulaire */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
.mt-24 { margin-top: 24px; }

/* ========== LAYOUT ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}
.section { padding: 80px 0; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 33px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0px;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
}
.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}
.btn-hero {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-hero:hover {
  background: var(--white);
  color: var(--dark);
}

/* ========== SECTION HEADERS ========== */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  text-transform: capitalize;
}
.section-header.light h2 { color: var(--white); }
.section-header.light .section-eyebrow { color: var(--accent); }
.section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.light .section-sub { color: rgba(255,255,255,0.75); }
.section-intro {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  max-width: 720px;
  margin: -16px auto 48px;
  line-height: 1.75;
}
.section-intro.light { color: rgba(255,255,255,0.75); }

/* ========================================
   NAVBAR — fixe, transparente sur hero
   ======================================== */
#header .container {
  max-width: none;
  padding: 0 40px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: var(--white);
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#header.elevated {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}
#header:hover,
#header.nav-transparent:hover,
#header.elevated:hover {
  background: var(--dark);
  box-shadow: none;
}
#header:hover .jy-logo span,
#header.nav-transparent:hover .jy-logo span { color: var(--white); }
#header:hover .jy-nav ul li a,
#header.nav-transparent:hover .jy-nav ul li a { color: rgba(255,255,255,0.88); }
#header:hover .jy-nav ul li a:hover,
#header.nav-transparent:hover .jy-nav ul li a:hover,
#header:hover .jy-nav ul li a.active,
#header.nav-transparent:hover .jy-nav ul li a.active { color: var(--secondary); }
#header:hover .nav-toggle span,
#header.nav-transparent:hover .nav-toggle span { background: var(--white); }
#header:hover .nav-toggle,
#header.nav-transparent:hover .nav-toggle { border-color: rgba(255,255,255,0.35); }

/* État transparent (sur le hero) */
#header.nav-transparent {
  background: transparent;
  box-shadow: none;
}
#header.nav-transparent .jy-logo span { color: var(--white); }
#header.nav-transparent .jy-nav ul li a { color: rgba(255,255,255,0.88); }
#header.nav-transparent .jy-nav ul li a:hover { color: var(--white); }
#header.nav-transparent .nav-toggle span { background: var(--white); }
#header.nav-transparent .nav-toggle { border-color: rgba(255,255,255,0.35); }
#header.nav-transparent .jy-btn-cta { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px); }

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

/* Logo */
.jy-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.jy-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.jy-logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.jy-logo-line1 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.jy-logo-line2 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 2.5px;
  white-space: nowrap;
}

/* Nav links — centrés */
.jy-nav { display: flex; justify-content: center; }
.jy-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.jy-nav ul li a {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--transition);
}
.jy-nav ul li a:hover,
.jy-nav ul li a.active { color: var(--secondary); }

/* CTA + toggle */
.nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.jy-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white) !important;
  background: var(--secondary);
  padding: 12px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s;
}
.jy-btn-cta:hover {
  background: var(--dark);
  transform: translateY(-2px);
}
.jy-btn-cta svg { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: transparent;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
  margin: 0 auto;
}

/* ========================================
   HERO — full-viewport, texte centré bas
   ======================================== */

.jy-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Image de fond — deux couches pour crossfade */
.jy-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform, opacity;
}
.jy-hero-bg.hero-bg-active { opacity: 1; }

/* Ken Burns — 3 variations cyclées */
.jy-hero-bg.kb-zoom-out {
  animation: kbZoomOut 7s ease-out forwards;
}
.jy-hero-bg.kb-zoom-in {
  animation: kbZoomIn 7s ease-in-out forwards;
}
.jy-hero-bg.kb-pan-left {
  animation: kbPanLeft 7s ease-out forwards;
}
@keyframes kbZoomOut {
  from { transform: scale(1.10); }
  to   { transform: scale(1.00); }
}
@keyframes kbZoomIn {
  from { transform: scale(1.00) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.5%, -1%); }
}
@keyframes kbPanLeft {
  from { transform: scale(1.07) translateX(2.5%); }
  to   { transform: scale(1.03) translateX(-2%); }
}

/* Overlay : uniquement un dégradé bas pour lisibilité du texte */
.jy-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.02) 100%
  );
}

/* Dégradé orange depuis le bas jusqu'à la ligne */
.hero-orange-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    to top,
    rgba(189,101,55,0.55) 0%,
    rgba(189,101,55,0.15) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Zone bas — contient le texte + les dots */
.jy-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: 48px;
}

.hero-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Titre massif */
.jy-hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.93;
  margin-bottom: 28px;
  text-align: center;
}

/* Animation slide-out / slide-in pour changement de texte */
.jy-hero-title.txt-out {
  animation: txtOut 0.3s ease forwards;
}
.jy-hero-title.txt-in {
  animation: txtIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes txtOut {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes txtIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jy-hero-line {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.8vw, 66px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0px;
  white-space: nowrap;
  display: block;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.jy-hero-line:nth-child(1) { animation-delay: 0.1s; }
.jy-hero-line:nth-child(2) { animation-delay: 0.25s; }

/* Couleurs : ligne 1 blanc, ligne 2 doré */
.hero-line-white { color: #FFFFFF; }
.hero-line-gold  { color: #C8A06A; }

/* Ligne animée entre titre et dots */
.hero-grow-line {
  height: 1px;
  width: 0;
  background: rgba(255,255,255,0.45);
  margin: 22px 0 18px;
  animation: lineGrow 1.4s 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* Dots de slider */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  animation: fadeSlideUp 0.8s 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-dot {
  height: 5px;
  width: 20px;
  border-radius: 3px;
  background: rgba(255,255,255,0.30);
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.hero-dot-active {
  width: 52px;
}
/* Remplissage progressif sur 6 secondes */
.hero-dot-active::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  background: rgba(255,255,255,0.92);
  transform: scaleX(0);
  transform-origin: left center;
  animation: dotFill 6s linear forwards;
}
@keyframes dotFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-dot:hover { background: rgba(255,255,255,0.55); }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button (utilisé ailleurs) */
.vl-btn3 {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white) !important;
  background: var(--secondary);
  padding: 11px 20px;
  border-radius: 7px;
  transition: background 0.3s, transform 0.3s;
}
.vl-btn3:hover { background: var(--dark); transform: translateY(-3px); }


/* ========== SUCCESS / STATS SECTION ========== */
.success-section {
  background: var(--white);
  padding: 80px 0;
}

.success-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

/* --- Colonne gauche --- */
.success-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.success-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(189,101,55,0.1);
  border: 1px solid rgba(189,101,55,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}

.success-title {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0;
}

.success-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.success-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--secondary);
  padding: 14px 28px;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(189,101,55,0.3);
}
.success-cta:hover {
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(20,90,119,0.3);
}

/* --- Colonne droite : grille 2×2 --- */
.success-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.scard {
  background: #F7F6F4;
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.scard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.scard-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(189,101,55,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
  transition: background 0.3s;
}
.scard:hover .scard-icon {
  background: rgba(189,101,55,0.18);
}
.scard-icon svg {
  width: 32px;
  height: 32px;
}

.scard-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scard-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -1.5px;
}

.stat-suffix {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.scard-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
}

/* ========== ABOUT — 3 colonnes : texte | image | accordéon ========== */
.about3-section { background: var(--white); }

.about3-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Col 1 : Texte */
.about3-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.about3-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(189,101,55,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}

.about3-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
}

.about3-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.about3-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--secondary);
  padding: 14px 28px;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.3s, transform 0.3s;
}
.about3-btn:hover { background: var(--dark); transform: translateY(-2px); }

/* Col 2 : Image */
.about3-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
}
.about3-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.about3-img-wrap:hover .about3-img { transform: scale(1.04); }

/* Col 3 : Accordéon — item ouvert = fond orange (comme référence) */
.about3-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.acc-item {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: border-color 0.3s;
}

.acc-item.acc-open {
  background: var(--secondary);
  border-color: var(--secondary);
}

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  gap: 12px;
  transition: color 0.25s;
}
.acc-item.acc-open .acc-header { color: var(--white); }
.acc-header:hover { color: var(--secondary); }
.acc-item.acc-open .acc-header:hover { color: var(--white); }

/* Chevron : rotate 180° quand ouvert */
.acc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--dark);
}
.acc-item.acc-open .acc-icon {
  transform: rotate(180deg);
  color: var(--white);
}

/* Corps : animation max-height */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-item.acc-open .acc-body { max-height: 220px; }
.acc-body p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin: 0;
  padding: 0 20px 18px;
}



/* ========== SERVICES 3 (tab-panel layout) ========== */
.services3-section { background: var(--bg); }

.services3-header {
  text-align: center;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.services3-title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
}

/* -- Card grid (replaces tabs/panels) -- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.svc-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.svc-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(189, 101, 55, 0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.svc-card-icon svg {
  width: 26px;
  height: 26px;
}

.svc-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.svc-card-desc {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* -- Orphan card centering at 3-col breakpoint -- */
@media (max-width: 1200px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-card:last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .svc-card:last-child:nth-child(odd) {
    grid-column: span 2;
    max-width: calc(50% - 8px);
    justify-self: center;
  }
}
@media (max-width: 500px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card:last-child { grid-column: span 1; max-width: none; justify-self: auto; }
}

/* -- Layout : onglets à gauche | carte à droite -- */
.services3-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "left  center"
    "right center";
  gap: 10px 28px;
  align-items: start;
}

.s3-col-left  { grid-area: left; }
.s3-col-right { grid-area: right; }
.s3-center-panel { grid-area: center; }

.s3-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* -- Carte centrale image + texte -- */
.s3-center-panel { position: relative; }

.s3-center-panel .s3-panel {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.s3-center-panel .s3-panel.s3-panel-active {
  display: flex;
  animation: s3FadeIn 0.35s ease;
}

.s3cp-img {
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
}
.s3cp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.s3-center-panel .s3-panel:hover .s3cp-img img { transform: scale(1.04); }

.s3cp-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s3cp-body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
}
.s3cp-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
}

/* Flèches — cachées sur desktop */
.s3cp-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--dark);
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.s3cp-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.s3cp-prev { left: 12px; }
.s3cp-next { right: 12px; }

/* -- Tab list (left column) -- */
.services3-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.s3-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.s3-tab:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}
.s3-tab:hover .s3-tab-icon {
  background: rgba(189,101,55,0.1);
  color: var(--secondary);
}

.s3-tab.s3-tab-active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(189,101,55,0.35);
}
.s3-tab.s3-tab-active .s3-tab-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.s3-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dark);
  transition: all 0.3s;
}
.s3-tab-icon svg {
  width: 18px;
  height: 18px;
}

/* -- Content panels (right column) -- */
.services3-panels {
  position: relative;
}

.s3-panel {
  display: none;
}
.s3-panel.s3-panel-active {
  display: block;
  animation: s3FadeIn 0.35s ease;
}
@keyframes s3FadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.s3-panel-inner {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 340px;
}

.s3-panel-img {
  overflow: hidden;
}
.s3-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.s3-panel-inner:hover .s3-panel-img img {
  transform: scale(1.04);
}

.s3-panel-text {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.s3-panel-text h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
}
.s3-panel-text p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.s3-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.s3-checklist li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.s3-checklist li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

.s3-learn-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--secondary);
  padding: 13px 28px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 4px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(189,101,55,0.3);
}
.s3-learn-btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,90,119,0.3);
}



/* ========== PLOMBERIE ========== */
.plomberie-section { background: var(--white); }
.plomberie-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.plomberie-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}
.plomberie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.plomberie-content h2 {
  font-family: var(--font-head);
  font-size: 31px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  text-transform: capitalize;
}
.plomberie-sub {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 28px;
}
.plomberie-tab {
  display: none;
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}
.plomberie-tab.active { display: block; }
.plomberie-tab h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.plomberie-tab p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}
.plomberie-tab-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

/* ========== HOW WE WORK ========== */
.how-section {
  background: var(--bg); /* Light background for new cards */
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  background: var(--white);
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--transition);
  margin-top: 15px; /* space for the absolute badge */
}
.step-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.step-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(189,101,55,0.3);
}

.step-icon {
  color: var(--secondary);
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ========== DISTINCTIONS ========== */
.distinctions-section { background: var(--bg); }
.distinctions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.distinction-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--secondary);
}
.distinction-year {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.distinction-card p {
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

/* ========== PROJECTS ========== */
.projects-section { background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}
.project-card:hover {
  border-top-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.project-year {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(189,101,55,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.project-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.project-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Projects — voir plus */
.projects-body {
  position: relative;
  overflow: hidden;
  max-height: 390px; /* desktop : 2 lignes × 3 cartes — écrasé par JS */
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 767px) {
  .projects-body { max-height: 600px; } /* mobile fallback : ~4 cartes avant JS */
}
.projects-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 80%);
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 2;
}
.projects-body.proj-expanded .projects-fade { opacity: 0; }
.projects-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.projects-voir-plus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.projects-voir-plus:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}
.projects-voir-plus svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.projects-voir-plus.is-expanded svg { transform: rotate(180deg); }

/* ========== CLIENTS ========== */
.clients-section {
  background: var(--bg);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.clients-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 36px;
}

/* Marquee défilant */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients-marquee-track {
  display: flex;
  width: max-content;
  animation: clientsMarquee 32s linear infinite;
}
.clients-marquee-track:hover { animation-play-state: paused; }

.clients-marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
}

.clients-marquee-group img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.clients-marquee-group img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========== WHY US ========== */
.why-section { background: var(--secondary); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}
.why-icon svg { width: 32px; height: 32px; }
.why-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact-section { background: var(--white); }

/* Ligne 1 : 3 cartes */
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 4px solid var(--secondary);
}
.contact-card-body h4 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-card-body a,
.contact-card-body span {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition);
}
.contact-card-body a:hover { color: var(--secondary); }

/* Ligne 2 : Carte + Formulaire */
.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.contact-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}
.contact-box h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-box a {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition);
}
.contact-box a:hover { color: var(--secondary); }
.contact-cta-box {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--white);
}
.contact-cta-box p {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 20px;
  line-height: 1.5;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  text-transform: capitalize;
}
.form-group input,
.form-group textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
}
.form-success {
  display: none;
  color: #15803d;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  background: #dcfce7;
  border-radius: 4px;
  border: 1px solid #86efac;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--secondary);
  overflow: hidden;
  position: relative;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 48px;
  min-height: 300px;
}

/* Image + cercle décoratif */
.cta-banner-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 300px;
}
.cta-img-circle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.cta-banner-img img {
  position: relative;
  z-index: 2;
  height: 290px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

/* Contenu */
.cta-banner-content {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-banner-content h2 {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
}
.cta-banner-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

/* Infos de contact dans le banner */
.cta-banner-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-contact-item:hover { opacity: 0.85; }
.cta-contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.cta-contact-icon svg { width: 22px; height: 22px; stroke: var(--white); }
.cta-contact-item span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3px;
}
.cta-contact-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

/* Boutons */
.cta-banner-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn-main {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--white);
  transition: all 0.3s;
  white-space: nowrap;
}
.cta-btn-main:hover {
  background: transparent;
  color: var(--white);
}
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.3s;
  white-space: nowrap;
}
.cta-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .cta-banner-inner { grid-template-columns: 1fr; min-height: auto; gap: 0; }
  .cta-banner-img { height: 200px; }
  .cta-img-circle { width: 180px; height: 180px; }
  .cta-banner-img img { height: 195px; }
  .cta-banner-content { padding: 32px 0; gap: 16px; text-align: center; align-items: center; }
  .cta-banner-content h2 { font-size: 28px; }
  .cta-banner-content p { max-width: 100%; }
  .cta-banner-contacts { flex-direction: column; gap: 12px; align-items: center; }
  .cta-banner-btns { justify-content: center; flex-wrap: nowrap; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-logo span {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  color: var(--white);
}
.social-links svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  line-height: 1.4;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 13px; }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--white); }

/* ========== WHATSAPP FLOTTANT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: transform 0.35s ease, box-shadow 0.3s, opacity 0.35s ease;
}
.whatsapp-float.wa-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* Bulle tooltip WhatsApp */
.wa-bubble {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  line-height: 1.4;
}
.wa-bubble::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: var(--white);
}
.whatsapp-float:hover .wa-bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ========== BOUTON RETOUR EN HAUT (mobile) ========== */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  z-index: 997;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
}
.scroll-top-btn svg { width: 20px; height: 20px; }
.scroll-top-btn:hover  { background: var(--secondary); }
.scroll-top-btn:active { transform: translateY(12px) scale(0.9); }
.scroll-top-btn.stt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
@media (max-width: 768px) {
  .scroll-top-btn { display: flex; }
}

/* ========== SECTION NAV (desktop) ========== */
.section-nav {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(189,101,55,0.38);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  z-index: 999;
}
.section-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.snav-btn {
  width: 46px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
.snav-btn:hover { background: rgba(255,255,255,0.18); }
.snav-btn:active { background: rgba(255,255,255,0.28); }
.snav-btn:disabled { opacity: 0.28; cursor: default; pointer-events: none; }
.snav-btn svg { width: 19px; height: 19px; pointer-events: none; }
.snav-sep {
  width: 26px;
  height: 1px;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
/* Masqué sur mobile/tablette */
@media (max-width: 768px) { .section-nav { display: none; } }

/* ========== GALERIE DES RÉALISATIONS ========== */
.galerie-section { background: var(--bg); }

.galerie-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.gal-filter {
  padding: 9px 22px;
  border-radius: 40px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  white-space: nowrap;
}
.gal-filter:hover { border-color: var(--secondary); color: var(--secondary); }
.gal-filter-active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white) !important;
}

.gal-carousel-wrap {
  overflow: hidden;
  width: 100%;
}

.gal-track {
  display: flex;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gal-carousel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.gal-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.gal-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}
.gal-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.gal-arrow svg { width: 20px; height: 20px; }

.gal-hidden { display: none !important; }

.gal-item {
  flex: 0 0 calc(25% - 10.5px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d0dde8 0%, #b8ccda 100%);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gal-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gal-item:hover img { transform: scale(1.07); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,90,119,0.88) 0%, rgba(20,90,119,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-cat-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.3;
}

.gal-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s;
}
.gal-zoom-btn:hover { background: var(--secondary); }
.gal-zoom-btn svg { width: 15px; height: 15px; }


/* Lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.gal-lightbox.gal-lb-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.gal-lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,20,30,0.93);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.gal-lb-backdrop.gal-lb-open {
  opacity: 1;
  visibility: visible;
}

.gal-lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: auto;
  height: 44px;
  border-radius: 22px;
  padding: 0 16px 0 12px;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}
.gal-lb-close:hover { background: var(--secondary); }
.gal-lb-close svg { width: 20px; height: 20px; flex-shrink: 0; }
.gal-lb-close-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.gal-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.gal-lb-nav:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 0 6px rgba(189,101,55,0.25);
}
.gal-lb-nav:active {
  transform: translateY(-50%) scale(0.92);
  box-shadow: none;
  background: var(--dark);
}
.gal-lb-nav svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.gal-lb-prev:hover svg { transform: translateX(-3px); }
.gal-lb-next:hover svg { transform: translateX(3px); }
.gal-lb-prev { left: 16px; }
.gal-lb-next { right: 16px; }

.gal-lb-figure {
  position: relative;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 92vh;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.3s ease;
}
.gal-lightbox.gal-lb-open .gal-lb-figure {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.gal-lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gal-lb-img.lb-no-transition { transition: none !important; }
.gal-lb-img.lb-out-left  { transform: translateX(-80px); opacity: 0; }
.gal-lb-img.lb-out-right { transform: translateX(80px);  opacity: 0; }
.gal-lb-img.lb-in-right  { transform: translateX(80px);  opacity: 0; }
.gal-lb-img.lb-in-left   { transform: translateX(-80px); opacity: 0; }
.gal-lb-caption {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== ANIMATIONS ========== */
.scard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Overlay navigation — masqué partout par défaut, visible uniquement via JS (.open) */
.nav-overlay {
  position: fixed;
  top: 72px; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  /* Nav → hamburger dès 1100px */
  .nav-toggle { display: flex; }
  /* Passer de grid 3 colonnes à flex : logo gauche, nav-right droite */
  .nav-inner { display: flex; justify-content: space-between; align-items: center; }
  /* CTA navbar : icône uniquement dès que le hamburger apparaît */
  .jy-btn-cta { font-size: 0; padding: 10px 12px; gap: 0; }
  .jy-btn-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
  /* Drawer latéral droit — commence sous le header (72px) */
  .jy-nav {
    display: block;
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: 270px;
    background: var(--white);
    padding: 24px 20px 32px;
    box-shadow: -6px 0 32px rgba(0,0,0,0.18);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .jy-nav.open { transform: translateX(0); }
  .jy-nav ul { flex-direction: column; gap: 4px; }
  .jy-nav ul li a {
    padding: 12px 16px;
    display: block;
    border-radius: 8px;
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
  }
  .jy-nav ul li a:hover { background: var(--bg-light); color: var(--primary) !important; }
  /* Grille contenu */
  .services3-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "center";
  }
  .s3-col { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .s3-tab { flex: 1 1 calc(50% - 4px); min-width: 160px; }
  .services3-title { font-size: 32px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .success-container { gap: 48px; }
  .success-title { font-size: 32px; }
  .about3-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about3-accordion { display: none; }
  .about3-title { font-size: 28px; }
  .about3-img-wrap { height: 320px; }
  .gal-item { flex: 0 0 calc(33.333% - 9.34px); }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .plomberie-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item { flex: 0 0 calc(50% - 7px); }
  .galerie-filters { gap: 8px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .distinctions-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-bottom { grid-template-columns: 1fr; }
  .success-container { grid-template-columns: 1fr; gap: 40px; }
  .success-desc { max-width: 100%; }
  .about3-grid { grid-template-columns: 1fr; gap: 28px; }
  .about3-accordion { display: flex; }
  .about3-img-wrap { height: 260px; }
  .about3-title { font-size: 26px; }
  .s3-panel-inner { grid-template-columns: 1fr; min-height: auto; }
  .s3-panel-img { height: 220px; }
  .jy-hero { min-height: 560px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .success-section { padding: 60px 0; }
  .gal-lb-prev { left: 6px; }
  .gal-lb-next { right: 6px; }
  .gal-lb-nav { width: 44px; height: 44px; top: auto; bottom: 80px; transform: none; }
  .gal-lb-nav:hover { transform: scale(1.08); }
  .gal-lb-nav:active { transform: scale(0.92); }
  /* Header mobile : flex simple, logo à gauche / hamburger à droite */
  #header .container { padding: 0 20px; }
  .nav-inner { display: flex; justify-content: space-between; align-items: center; }
  /* CTA mobile : bouton carré icône seulement */
  .jy-btn-cta {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    gap: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .jy-btn-cta svg { width: 18px; height: 18px; }
  /* Logo légèrement réduit */
  .jy-logo-img { height: 38px; }
  .jy-logo-line1 { font-size: 15px; }
  .jy-logo-line2 { font-size: 9px; letter-spacing: 2px; }
  /* Hero mobile */
  .jy-hero { height: 96svh; min-height: 700px; }
  .jy-hero-bottom { padding-bottom: 36px; }
  .jy-hero-title { margin-bottom: 20px; }
  /* Texte hero: réduit + retour à la ligne autorisé */
  .jy-hero-line { font-size: clamp(26px, 8vw, 42px); white-space: normal; text-align: center; }
  /* General */
  .section-header h2 { font-size: 30px; letter-spacing: -1px; }
  .services3-title { font-size: 26px; }
  /* Services mobile : cacher les colonnes d'onglets, plein écran + flèches */
  .s3-col { display: none; }
  .services3-layout { grid-template-columns: 1fr; grid-template-areas: "center"; }
  .s3-center-panel { position: relative; }
  .s3cp-arrow { display: flex; top: 100px; transform: translateY(-50%); }
  .s3cp-arrow:hover { transform: translateY(-50%) scale(1.1); }
  /* Carte verticale sur mobile */
  .s3-center-panel .s3-panel { flex-direction: column; min-height: auto; }
  .s3cp-img { width: 100%; height: 200px; }
  .s3cp-body { padding: 20px; }
  .s3cp-body h3 { font-size: 16px; }
  .s3-panel-text { padding: 24px 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 24px 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  /* Galerie filtres: scroll horizontal */
  .galerie-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .galerie-filters::-webkit-scrollbar { display: none; }
  .gal-filter { flex-shrink: 0; font-size: 12px; padding: 7px 14px; }
  /* nav-links compat */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .success-section { padding: 48px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .success-right { grid-template-columns: 1fr; }
  .success-title { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .clients-marquee-group { gap: 36px; padding: 0 18px; }
  .clients-marquee-group img { height: 42px; max-width: 110px; }
  /* Galerie: 1 item par vue — sync avec le JS */
  .gal-item { flex: 0 0 100%; }
  /* CTA banner: empêche le contenu de dépasser */
  .cta-banner-content h2 { font-size: 24px; }
  .cta-contact-item strong { font-size: 14px; }
}
