/* ==========================================================================
   ROBS CONSTRUCTION — Système de design
   Épuré haut de gamme : espace, photo, typographie.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700;800&family=Poppins:wght@200;300;400;500;600&display=swap');

/* --------------------------------------------------------------- Tokens */

:root{
  /* Couleurs */
  --ink:        #17120F;
  --ink-2:      #453D37;
  --muted:      #8B8078;
  --line:       #E8E2DA;
  --line-soft:  #F1ECE5;
  --paper:      #FFFFFF;
  --sand:       #F7F4EF;
  --sand-2:     #EFE9E1;
  --red:        #C9584A;
  --red-soft:   #D97161;
  --green:      #2FB44E;

  /* Typo */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-mark: 'Montserrat', sans-serif;

  /* Mesures */
  --nav-h: 82px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1280px;
  --maxw-wide: 1520px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----------------------------------------------------------------- Base */

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll{ overflow: hidden; }

img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection{ background: var(--ink); color: #fff; }

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide{
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section{ padding: clamp(72px, 10vw, 140px) 0; }
.section-tight{ padding: clamp(56px, 7vw, 96px) 0; }
.bg-sand{ background: var(--sand); }
.bg-ink{ background: var(--ink); color: #EFEAE4; }

/* ------------------------------------------------------- Typographie */

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before{
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  flex: 0 0 auto;
}
.eyebrow.center{ justify-content: center; }

.h-display{ font-size: clamp(34px, 5vw, 62px); font-weight: 300; }
.h-section{ font-size: clamp(30px, 3.9vw, 50px); font-weight: 300; }
.h-card{ font-size: clamp(20px, 1.6vw, 25px); font-weight: 500; letter-spacing: -0.01em; }

.lede{
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 62ch;
  margin: 22px 0 0 0;
}

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

.section-head{
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lede{ margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------- Animations */

.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in{ opacity: 1; transform: none; }

/* Le clip-path est appliqué à l'enfant : sur l'élément observé lui-même,
   Chromium calcule une intersection nulle et l'animation ne part jamais. */
.reveal-img > img{
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.15s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal-img.is-in > img{ clip-path: inset(0 0 0 0); transform: scale(1); }

.reveal-img > .service-num{
  opacity: 0;
  transition: opacity .7s var(--ease);
  transition-delay: calc(var(--d, 0ms) + 450ms);
}
.reveal-img.is-in > .service-num{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-img > img, .reveal-img > .service-num{
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  html{ scroll-behavior: auto; }
}

/* -------------------------------------------------------------- Boutons */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 15px; height: 15px; flex: 0 0 auto; transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }

.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: #B94B3E; }

.btn-dark{ background: var(--ink); color: #fff; }
.btn-dark:hover{ background: var(--red); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-light{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-light:hover{ background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.link-arrow svg{ width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover{ border-color: var(--red); color: var(--red); }
.link-arrow:hover svg{ transform: translateX(4px); }

/* --------------------------------------------------------------- Header */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.on-photo{ background: transparent; }
.site-header.on-photo .nav-link,
.site-header.on-photo .brand-mark .seal,
.site-header.on-photo .nav-phone,
.site-header.on-photo .nav-toggle span{ color: #fff; }
.site-header.on-photo .brand-mark .seal{ border-color: #fff; color: #fff; }
.site-header.on-photo .nav-toggle span{ background: #fff; }

.site-header.solid{
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.solid .nav-link,
.site-header.solid .nav-phone{ color: var(--ink); }
.site-header.solid .brand-mark .seal{ border-color: var(--ink); color: var(--ink); }
.site-header.solid .nav-toggle span{ background: var(--ink); }

.nav-inner{
  max-width: var(--maxw-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-mark{ display: flex; align-items: center; flex: 0 0 auto; }
.brand-mark .seal{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.brand-mark:hover .seal{ transform: scale(1.06); }

.main-nav{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
}

.nav-link{
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--ink);
  padding: 8px 0;
  transition: color .35s var(--ease);
}
.nav-link::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after{ transform: scaleX(1); transform-origin: left; }
.nav-link.active{ color: var(--red); }
.site-header.on-photo .nav-link.active{ color: #fff; }

.nav-right{ display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }

.nav-phone{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.nav-phone svg{ width: 15px; height: 15px; }
.nav-phone:hover{ color: var(--red); }

.nav-cta{
  padding: 12px 24px;
  font-size: 11.5px;
  letter-spacing: .14em;
}

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* Panneau mobile */
.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.mobile-nav.open{ opacity: 1; visibility: visible; transform: none; }
.mobile-nav a.m-link{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 300;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .m-foot{ font-size: 14px; color: var(--muted); }
.mobile-nav .m-foot a{ display: block; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.mobile-nav .m-cta{
  display: flex;
  width: 100%;
  margin-bottom: 26px;
  color: #fff;
}
.mobile-nav .m-cta:hover{ color: #fff; }

/* ----------------------------------------------------------------- Hero */

.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media{ position: absolute; inset: 0; }
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom{ to{ transform: scale(1); } }

.hero-media::after{
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 32%),
    linear-gradient(8deg, rgba(0,0,0,.72) 4%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.04) 70%);
}

.hero-inner{
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 104px);
}

.hero-logo{
  display: flex;
  align-items: center;
  line-height: .8;
}
.hero-logo .letter{
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(52px, 8.6vw, 116px);
  color: #fff;
  letter-spacing: -0.035em;
}
.hero-logo .seal-big{
  position: relative;
  width: clamp(50px, 8.1vw, 108px);
  height: clamp(50px, 8.1vw, 108px);
  border-radius: 50%;
  border: 2px solid #fff;
  margin: 0 3px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.hero-logo .seal-big::before{
  content: '';
  position: absolute; inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
}
.hero-logo .seal-big span{
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: clamp(7px, .95vw, 12px);
  letter-spacing: .06em;
  color: #fff;
}

.hero-word{
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(30px, 5.6vw, 74px);
  letter-spacing: clamp(4px, .92vw, 13px);
  color: #fff;
  margin: 10px 0 0 0;
  line-height: 1;
}

.hero-tagline{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 25px);
  color: rgba(255,255,255,.9);
  margin: 26px 0 0 0;
  max-width: 30ch;
  line-height: 1.45;
}

.hero-cta{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn-call{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.btn-call svg{ width: 21px; height: 21px; fill: #fff; }
.btn-call:hover{ transform: scale(1.08); background: #279E43; }

.hero-scroll{
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 104px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-scroll .bar{
  width: 1px; height: 54px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}
.hero-scroll .bar::after{
  content: '';
  position: absolute; top: -54px; left: 0;
  width: 1px; height: 54px;
  background: #fff;
  animation: scrollBar 2.4s var(--ease) infinite;
}
@keyframes scrollBar{ to{ top: 54px; } }

/* Entrée séquencée de la bannière */
.hero-anim > *{
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1s var(--ease) forwards;
}
.hero-anim > *:nth-child(1){ animation-delay: .25s; }
.hero-anim > *:nth-child(2){ animation-delay: .38s; }
.hero-anim > *:nth-child(3){ animation-delay: .5s; }
.hero-anim > *:nth-child(4){ animation-delay: .62s; }
@keyframes heroIn{ to{ opacity: 1; transform: none; } }

/* ----------------------------------------------- Bandeau de confiance */

.trust-bar{
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item{
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust-item:last-child{ border-right: none; }
.trust-item .t-top{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 4px;
}
.trust-item .t-lbl{
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------- Blocs de services */

.service-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(72px, 9vw, 130px);
}
.service-row:last-child{ margin-bottom: 0; }
.service-row.flip .service-visual{ order: 2; }

.service-visual{
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand-2);
}
.service-visual img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
/* Le zoom au survol prend le pas sur l'échelle d'apparition. */
.service-row:hover .service-visual.is-in > img{ transform: scale(1.05); }

.service-num{
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #fff;
  background: rgba(23,18,15,.62);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
}

.service-body h3{ margin-bottom: 18px; }
.service-body .lede{ margin-top: 0; }

.service-list{
  margin: 28px 0 32px 0;
  display: grid;
  gap: 11px;
}
.service-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.service-list li::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
  margin-top: 9px;
}

/* --------------------------------------------------- Pourquoi nous */

.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-item{
  background: var(--paper);
  padding: clamp(30px, 3.4vw, 46px) clamp(24px, 2.6vw, 36px);
  transition: background .4s var(--ease);
}
.why-item:hover{ background: var(--sand); }
.why-item .ico{
  width: 34px; height: 34px;
  color: var(--red);
  margin-bottom: 24px;
}
.why-item .ico svg{ width: 100%; height: 100%; }
.why-item h4{
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.why-item p{
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------- Processus */

.steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  counter-reset: step;
}
.step{ position: relative; padding-top: 34px; }
.step::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step::after{
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.step .s-num{
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 12px;
}
.step h4{
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}
.step p{
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.bg-ink .step::before{ background: rgba(255,255,255,.16); }
.bg-ink .step h4{ color: #fff; }
.bg-ink .step p{ color: rgba(239,234,228,.62); }
.bg-ink .h-section, .bg-ink h2, .bg-ink h3{ color: #fff; }
.bg-ink .lede{ color: rgba(239,234,228,.72); }

/* --------------------------------------------------------- Galerie */

.gallery{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.1vw, 18px);
}
.g-item{
  position: relative;
  overflow: hidden;
  background: var(--sand-2);
  cursor: pointer;
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}
.g-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 1.1s var(--ease);
}
.g-item:hover img{ transform: scale(1.05); }
.g-item::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.g-item:hover::after{ opacity: 1; }
.g-cap{
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.g-item:hover .g-cap{ opacity: 1; transform: none; }
.g-zoom{
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.g-zoom svg{ width: 15px; height: 15px; color: var(--ink); }
.g-item:hover .g-zoom{ opacity: 1; transform: none; }

/* Filtres */
.filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter{
  padding: 10px 22px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 999px;
  transition: all .35s var(--ease);
}
.filter:hover{ border-color: var(--ink); }
.filter.active{ background: var(--ink); border-color: var(--ink); color: #fff; }

.g-item.hidden{ display: none; }

/* Tuile d'appel dans la galerie */
.g-cta{
  grid-column: span 4;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 44px);
  transition: background .4s var(--ease);
}
.g-cta:hover{ background: var(--sand-2); }
.g-cta h3{
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
}
.g-cta p{
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px 0;
}

/* -------------------------------------------------------- Lightbox */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15,11,9,.985);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lb-figure{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lb-figure img{
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lightbox.open .lb-figure img{ opacity: 1; transform: none; }
.lb-caption{
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  letter-spacing: .04em;
  text-align: center;
}
.lb-btn{
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb-btn:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.lb-btn svg{ width: 18px; height: 18px; }
.lb-close{ top: 24px; right: 24px; }
.lb-prev{ left: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.lb-next{ right: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.lb-count{
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: 12px;
  letter-spacing: .16em;
}

/* --------------------------------------------------- Bandeau appel */

.cta-band{
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.cta-band-media{ position: absolute; inset: 0; }
.cta-band-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
}
.cta-band-inner{
  position: relative;
  z-index: 2;
  padding: clamp(70px, 9vw, 130px) 0;
  text-align: center;
}
.cta-band-inner h2{ color: #fff; }
.cta-band-inner .lede{ color: rgba(255,255,255,.78); margin-left: auto; margin-right: auto; }
.cta-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------ En-tête page */

.page-head{
  position: relative;
  min-height: clamp(360px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.page-head-media{ position: absolute; inset: 0; }
.page-head-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.page-head-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.68) 100%);
}
.page-head-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(46px, 6vw, 72px);
  color: #fff;
}
.page-head-inner h1{ color: #fff; }
.page-head-inner .lede{ color: rgba(255,255,255,.82); }
.page-head-inner .eyebrow{ color: #fff; }
.page-head-inner .eyebrow::before{ background: #fff; }

.breadcrumb{
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.breadcrumb a:hover{ color: #fff; }

/* ------------------------------------------------------- Formulaire */

.form-layout{
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

.form-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 52px);
}

.form-grid{ display: grid; gap: 22px; }
.form-grid.two{ grid-template-columns: 1fr 1fr; }

.field label{
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .35s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8078' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
  padding-right: 26px;
  cursor: pointer;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus{ outline: none; border-bottom-color: var(--red); }
.field input::placeholder,
.field textarea::placeholder{ color: #C3BBB2; }

/* Piège à pourriels : invisible pour les humains, rempli par les robots. */
.hp-field{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-actions{ margin-top: 34px; }
.form-actions .btn{ width: 100%; }
.form-note{
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 0 0;
  text-align: center;
  line-height: 1.6;
}

.form-aside{
  background: var(--sand);
  padding: clamp(28px, 3.2vw, 44px);
}
.form-aside h3{ font-size: 21px; font-weight: 500; margin-bottom: 22px; }
.aside-list{ display: grid; gap: 20px; margin-bottom: 34px; }
.aside-list li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.aside-list .n{
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  flex: 0 0 auto;
  padding-top: 3px;
  letter-spacing: .1em;
}
.aside-contact{
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.aside-contact .lbl{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.aside-contact a{
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color .3s var(--ease);
}
.aside-contact a:hover{ color: var(--red); }
.aside-contact .mail{ font-size: 15.5px; font-family: var(--font-body); }

/* -------------------------------------------------- Page politique */

.doc{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.doc-nav{ position: sticky; top: calc(var(--nav-h) + 30px); }
.doc-nav .lbl{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.doc-nav a{
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.doc-nav a:hover{ color: var(--red); padding-left: 6px; }

.doc-body{ max-width: 68ch; }
.doc-body h2{
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 400;
  margin: 56px 0 18px 0;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-body h2:first-of-type{ margin-top: 0; }
.doc-body p{
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 0 0 16px 0;
  font-weight: 300;
}
.doc-body ul{ margin: 0 0 16px 0; display: grid; gap: 10px; }
.doc-body ul li{
  display: flex;
  gap: 13px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  font-weight: 300;
}
.doc-body ul li::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
  margin-top: 12px;
}
.doc-updated{
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.notice{
  background: var(--sand);
  border-left: 2px solid var(--red);
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 44px;
}

/* --------------------------------------------------------- Footer */

.site-footer{
  background: var(--ink);
  color: rgba(239,234,228,.6);
  padding: clamp(64px, 8vw, 100px) 0 34px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr .9fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(44px, 5vw, 68px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .seal{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.4px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 8.5px;
  color: #fff;
  margin-bottom: 22px;
}
.footer-brand p{
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 30ch;
  margin: 0 0 24px 0;
  font-weight: 300;
}
.footer-tagline{
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
}
.site-footer h4{
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 22px 0;
}
.site-footer .f-list a,
.site-footer .f-list p{
  display: block;
  font-size: 14.5px;
  line-height: 2.1;
  color: rgba(239,234,228,.6);
  margin: 0;
  font-weight: 300;
  transition: color .3s var(--ease);
}
.site-footer .f-list a:hover{ color: #fff; }
.footer-phone{
  font-family: var(--font-display);
  font-size: 19px !important;
  color: #fff !important;
  line-height: 1.6 !important;
  margin-bottom: 4px !important;
}
.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(239,234,228,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover{ color: #fff; }

/* -------------------------------------- Bouton d'appel flottant mobile */

.floating-call{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  display: none;
  align-items: center;
  justify-content: center;
}
.floating-call svg{ width: 22px; height: 22px; fill: #fff; }

/* ------------------------------------------------------- Responsive */

@media (max-width: 1080px){
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .form-layout{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .doc{ grid-template-columns: 1fr; }
  .doc-nav{ position: static; display: none; }
}

@media (max-width: 900px){
  .nav-phone, .nav-cta{ display: none; }
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .floating-call{ display: flex; }
  /* Le bouton flottant remplace celui de la bannière : un seul appel visible. */
  .hero-cta .btn-call{ display: none; }
  .hero-cta .btn{ width: 100%; }
  .service-row{ grid-template-columns: 1fr; gap: 30px; }
  .service-row.flip .service-visual{ order: 0; }
  .service-visual{ aspect-ratio: 4 / 3; }
  .trust-grid{ grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2){ border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2){ border-bottom: 1px solid var(--line); }
  .hero-scroll{ display: none; }
}

@media (max-width: 680px){
  .why-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .form-grid.two{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 36px; }
  .g-item{ grid-column: span 6; }
  .g-cta{ grid-column: span 12; aspect-ratio: auto; padding: 30px 26px 34px; }
  .g-cta h3 br{ display: none; }
  .lb-prev{ left: 8px; }
  .lb-next{ right: 8px; }
  .lb-btn{ width: 42px; height: 42px; }
  .hero{ min-height: 92svh; }
}
