/* ============================================================================
   Les Beaux Chantiers Artisans — feuille de style principale
   Charte : bleu (confiance) + vert (soin, durabilité) + gris/blanc (clarté).
   ========================================================================== */

:root {
  /* --- couleurs de marque --- */
  --ink: #0f2a3d;
  --blue-900: #0f2a3d;
  --blue-800: #143b55;
  --blue-700: #17567a;
  --blue-600: #1b6c8c;
  --blue-400: #4a95b0;
  --blue-200: #a9cddc;
  --blue-050: #eaf3f7;

  --green-700: #276f63;
  --green-600: #2e7d6f;
  --green-400: #5da393;
  --green-200: #a8d3c7;
  --green-050: #ecf5f2;

  --grey-800: #34424b;
  --grey-600: #55666f;
  --grey-500: #7b8a92;
  --grey-300: #c6d2d8;
  --grey-200: #dde5e9;
  --grey-100: #eef3f5;
  --paper: #f6f9fa;
  --white: #ffffff;

  /* --- typographie --- */
  --font-title: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- rythme --- */
  --shell: 1200px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* --- ombres --- */
  --shadow-s: 0 2px 8px rgba(15, 42, 61, 0.06);
  --shadow-m: 0 14px 34px -18px rgba(15, 42, 61, 0.35);
  --shadow-l: 0 40px 80px -40px rgba(15, 42, 61, 0.45);

  /* --- mouvement --- */
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --dur: 0.5s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  line-height: 1.65;
  color: var(--grey-800);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.14; margin: 0 0 0.6em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
img, svg { max-width: 100%; }
a { color: var(--blue-700); }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- boutons -- */

.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  font-family: var(--font-title); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(120deg, var(--blue-700), var(--green-600));
  background-size: 180% 180%;
  box-shadow: 0 10px 26px -14px rgba(23, 86, 122, 0.9);
  animation: btnFlow 9s ease infinite;
}
@keyframes btnFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn--ghost { background: transparent; color: var(--blue-800); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--blue-400); background: var(--blue-050); }

.btn--light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, 0.2); }

.btn--lg { padding: 0.95rem 1.85rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--grey-300); background: #fff; color: var(--blue-800);
  cursor: pointer; transition: 0.25s var(--ease);
}
.round-btn:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------- barre de progrès */

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; pointer-events: none; }
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--green-500, #2e7d6f));
  transition: width 0.1s linear;
}

/* ------------------------------------------------------------- en-tête -- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--grey-200);
  box-shadow: 0 10px 30px -24px rgba(15, 42, 61, 0.6);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { border-radius: 12px; box-shadow: var(--shadow-s); transition: transform 0.4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-title); }
.brand__text strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__text em {
  font-style: normal; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-600); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; text-decoration: none; color: var(--grey-800); font-weight: 500; font-size: 0.95rem;
  padding: 0.3rem 0;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600));
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); border-radius: 2px;
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__list a.is-active { color: var(--blue-700); }

.burger { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink); }
.burger__box { display: grid; gap: 5px; width: 26px; }
.burger__box i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: 0.3s var(--ease); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(85vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem;
    padding: 2rem;
    background: #fff; box-shadow: -30px 0 60px -40px rgba(15, 42, 61, 0.6);
    transform: translateX(100%); transition: transform 0.45s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 1.1rem; }
  .nav__list a { font-size: 1.2rem; font-family: var(--font-title); }
  body.no-scroll { overflow: hidden; }
}

/* ---------------------------------------------------------------- héros -- */

.hero { position: relative; padding: clamp(8rem, 15vw, 11rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; background: var(--paper); }

.hero__aurora { position: absolute; inset: 0; filter: blur(70px); opacity: 0.55; }
.hero__aurora span { position: absolute; display: block; border-radius: 50%; }
.hero__aurora span:nth-child(1) { width: 44vw; height: 44vw; left: -10vw; top: -12vw; background: var(--blue-200); animation: drift 22s ease-in-out infinite; }
.hero__aurora span:nth-child(2) { width: 36vw; height: 36vw; right: -8vw; top: 6vw; background: var(--green-200); animation: drift 26s ease-in-out infinite reverse; }
.hero__aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 40vw; bottom: -16vw; background: #d7e6ec; animation: drift 30s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
  66% { transform: translate3d(-3vw, 2vw, 0) scale(0.95); }
}

.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 42, 61, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 42, 61, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 78%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-title); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700);
  background: rgba(46, 125, 111, 0.09); border: 1px solid rgba(46, 125, 111, 0.18);
  padding: 0.42rem 0.9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow--light { color: var(--green-200); background: rgba(168, 211, 199, 0.12); border-color: rgba(168, 211, 199, 0.26); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulseDot 2.4s ease-out infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 111, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(46, 125, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 125, 111, 0); } }

.hero__title { font-size: clamp(2.05rem, 4.4vw, 3.5rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero__line { display: block; }
.gradient-text {
  background: linear-gradient(100deg, var(--blue-600) 10%, var(--green-600) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead { font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem); color: var(--grey-600); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.4rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--grey-200);
}
.stat__value { font-family: var(--font-title); font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 700; color: var(--ink); margin: 0; }
.stat__label { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--grey-500); }
@media (max-width: 460px) { .hero__stats { grid-template-columns: 1fr 1fr; } }

.hero__media { position: relative; }
.hero__card {
  background: #fff; border-radius: var(--radius-l); padding: 0.9rem;
  box-shadow: var(--shadow-l); border: 1px solid var(--grey-200);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
}
.hero__card:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
/* Hauteur plafonnee pour que la carte du heros reste au-dessus de la ligne de flottaison. */
.hero__card .ba { aspect-ratio: auto; height: min(52vh, 470px); }
.hero__card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.35rem 0.5rem 0.8rem; }
.hero__card-title { font-family: var(--font-title); font-size: 0.9rem; color: var(--grey-600); }
.hero__card-foot { margin: 0.75rem 0.4rem 0.25rem; font-size: 0.82rem; color: var(--grey-500); text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: 999px; background: var(--blue-050); color: var(--blue-700);
}
.pill--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); animation: pulseDot 2s infinite; }

.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 0.65rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--grey-200); border-radius: 16px; padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow-m); font-size: 0.78rem; color: var(--grey-600); line-height: 1.35;
}
.hero__badge strong { color: var(--ink); font-family: var(--font-title); }
.hero__badge svg { color: var(--green-600); flex: none; }
.hero__badge--a { left: -1.5rem; top: 32%; animation: floatY 6s ease-in-out infinite; }
.hero__badge--b { right: -1rem; bottom: 22%; animation: floatY 7.5s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { transform: none; }
  .hero__badge--a { left: -0.5rem; }
  .hero__badge--b { right: -0.5rem; }
}
@media (max-width: 540px) {
  .hero__badge { display: none; }
}

/* -------------------------------------------------------------- marquee -- */

.marquee {
  background: var(--ink); color: rgba(255, 255, 255, 0.82);
  padding: 0.9rem 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  font-family: var(--font-title); font-size: 0.94rem; letter-spacing: 0.06em; text-transform: uppercase;
  animation: scrollX 34s linear infinite;
}
.marquee__track i { color: var(--green-400); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- sections -- */

.section { padding: var(--section-y) 0; position: relative; }
.section--soft { background: var(--paper); }
.section--dark { background: linear-gradient(165deg, var(--blue-900), #123549 55%, #14453f); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.72); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.section__title { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.section__lead { color: var(--grey-600); font-size: 1.05rem; }

/* ---------------------------------------------------------------- duo --- */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }
.duo__card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-l);
  padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.duo__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.duo__card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 5px;
}
.duo__card--blue::before { background: linear-gradient(180deg, var(--blue-600), var(--blue-400)); }
.duo__card--green::before { background: linear-gradient(180deg, var(--green-600), var(--green-400)); }
.duo__num {
  font-family: var(--font-title); font-size: 3.4rem; font-weight: 700; line-height: 1;
  color: var(--grey-100); display: block; margin-bottom: 0.6rem;
}
.duo__card h3 { font-size: 1.35rem; }
.duo__card p { color: var(--grey-600); }

.ticks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: 0.95rem; color: var(--grey-800); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d6f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

/* -------------------------------------------------------------- cartes -- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.3rem; perspective: 1200px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-m);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--green-600));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--blue-200); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-050), var(--green-050)); color: var(--blue-700);
  margin-bottom: 1.1rem; transition: transform 0.4s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { color: var(--grey-600); font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------- avant / après ----- */

/* Les photos de chantier sont majoritairement verticales : le comparateur
   adopte un format portrait pour ne pas les recadrer a l'exces. */
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius-m);
  aspect-ratio: 4 / 5; background: var(--grey-100);
  cursor: ew-resize; touch-action: pan-y; user-select: none;
  isolation: isolate;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px;
  background: rgba(255, 255, 255, 0.9); transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(15, 42, 61, 0.18);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--blue-700);
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(15, 42, 61, 0.5);
  transition: transform 0.25s var(--ease);
}
.ba:hover .ba__grip { transform: translate(-50%, -50%) scale(1.08); }
.ba__grip svg { width: 22px; height: 22px; }
.ba__tag {
  position: absolute; bottom: 0.85rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; color: #fff;
  backdrop-filter: blur(4px);
}
.ba__tag--before { left: 0.85rem; background: rgba(52, 66, 75, 0.72); }
.ba__tag--after { right: 0.85rem; background: rgba(39, 111, 99, 0.82); }
/* Le curseur natif reste dans le DOM pour le clavier et les lecteurs d'ecran ;
   le glisser-deposer a la souris est gere en JS sur le conteneur. */
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0;
  pointer-events: none;
}
.ba__range:focus-visible + .ba__handle { box-shadow: 0 0 0 3px var(--green-400); }

/* ---------------------------------------------------------- galerie ----- */

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--font-title); font-size: 0.88rem; font-weight: 500;
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.28s var(--ease);
}
.filter:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.filter.is-active { background: #fff; color: var(--blue-800); border-color: #fff; }

/* Realisation sans photo "avant" : une seule image, meme cadre que le comparateur. */
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 4 / 5; background: var(--grey-100); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__tag {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px; color: #fff;
  background: rgba(39, 111, 99, 0.82); backdrop-filter: blur(4px);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.6rem; }
.gallery__empty { text-align: center; color: rgba(255, 255, 255, 0.7); padding: 2rem 0; }

.work {
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-l); padding: 0.75rem; backdrop-filter: blur(4px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  animation: fadeUp 0.5s var(--ease) both;
}
.work:hover { transform: translateY(-6px); border-color: rgba(168, 211, 199, 0.5); background: rgba(255, 255, 255, 0.09); }
.work__body { padding: 1.05rem 0.8rem 0.6rem; }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: var(--green-200); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.45rem; }
.work__meta span:not(:first-child)::before { content: '·'; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.4); }
.work h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.work p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.9rem; }
.work__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.work__lots { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.work__lots li {
  font-size: 0.73rem; padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8);
}
.work__more {
  background: none; border: 0; cursor: pointer; color: var(--green-200);
  font-family: var(--font-title); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0;
}
.work__more svg { transition: transform 0.3s var(--ease); }
.work__more:hover svg { transform: translateX(4px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.realisations__cta {
  margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.realisations__cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------- réseau -- */

.reseau { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .reseau { grid-template-columns: 1fr; } }

.criteres { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.criteres li { display: flex; gap: 1rem; align-items: flex-start; }
.criteres__num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--green-600)); color: #fff;
  font-family: var(--font-title); font-weight: 700;
}
.criteres h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.criteres p { margin: 0; color: var(--grey-600); font-size: 0.95rem; }

.reseau__panel {
  background: linear-gradient(160deg, var(--blue-050), var(--green-050));
  border: 1px solid var(--grey-200); border-radius: var(--radius-l);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.reseau__panel-title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.reseau__panel-lead { color: var(--grey-600); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.chips li {
  font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--grey-200); color: var(--grey-800);
  transition: 0.25s var(--ease);
}
.chips li:hover { border-color: var(--green-400); color: var(--green-700); transform: translateY(-2px); }
.reseau__note {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--grey-300);
  font-size: 0.92rem; color: var(--grey-600);
}
.reseau__note svg { color: var(--blue-700); flex: none; }
.reseau__note p { margin: 0; }

/* -------------------------------------------------------------- méthode -- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-m);
  padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow-s);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.step__index {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; color: var(--green-700); background: var(--green-050);
  padding: 0.25rem 0.6rem; border-radius: 8px; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; color: var(--grey-600); margin: 0; }

.guarantees {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
  margin-top: 2.5rem; padding-top: 2.2rem; border-top: 1px solid var(--grey-200);
}
.guarantee { display: flex; flex-direction: column; gap: 0.15rem; }
.guarantee strong { font-family: var(--font-title); color: var(--ink); }
.guarantee span { font-size: 0.9rem; color: var(--grey-500); }

/* --------------------------------------------------------------- équipe -- */

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.team__shot {
  margin: 0; overflow: hidden; border-radius: var(--radius-m);
  background: #fff; border: 1px solid var(--grey-200); box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team__shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.team__shot img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease);
}
.team__shot:hover img { transform: scale(1.04); }
.team__shot figcaption {
  padding: 0.85rem 1rem 1rem; font-size: 0.88rem; color: var(--grey-600);
  border-top: 1px solid var(--grey-100);
}

/* ------------------------------------------------------------------ faq -- */

.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq__list { display: grid; gap: 0.7rem; }

.acc {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-m);
  overflow: hidden; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.acc[open] { border-color: var(--blue-200); box-shadow: var(--shadow-s); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
  font-family: var(--font-title); font-weight: 600; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  position: relative; flex: none; width: 20px; height: 20px;
}
.acc summary i::before, .acc summary i::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--blue-700);
  border-radius: 2px; transition: transform 0.3s var(--ease);
}
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0deg); }
.acc__body { padding: 0 1.3rem 1.2rem; color: var(--grey-600); font-size: 0.96rem; }
.acc__body p { margin: 0; }
.acc[open] .acc__body { animation: fadeUp 0.35s var(--ease) both; }

/* -------------------------------------------------------------- contact -- */

.section--contact {
  background: linear-gradient(160deg, #123549, var(--blue-900) 60%, #10382f);
  color: rgba(255, 255, 255, 0.82);
}
.section--contact h2 { color: #fff; }
.section--contact .section__lead { color: rgba(255, 255, 255, 0.72); }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__infos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__infos li { display: flex; align-items: center; gap: 0.8rem; }
.contact__infos svg { color: var(--green-200); flex: none; }
.contact__infos a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: 0.25s var(--ease); }
.contact__infos a:hover { border-color: var(--green-200); color: var(--green-200); }

.form {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.2rem); backdrop-filter: blur(6px);
  display: grid; gap: 1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.78rem 0.95rem; font: inherit; font-size: 0.95rem; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-s); transition: 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-200); background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(168, 211, 199, 0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.4rem; }
.field select option { color: #14212a; }
.field__error { color: #ffbcae; font-size: 0.8rem; min-height: 1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff9d88; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
.check input { margin-top: 0.25rem; accent-color: var(--green-400); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form__status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--green-200); }
.form__status.is-error { color: #ffbcae; }

/* --------------------------------------------------------------- footer -- */

.footer { background: #0b2130; color: rgba(255, 255, 255, 0.68); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
@media (max-width: 780px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer__brand strong { display: block; font-family: var(--font-title); color: #fff; font-size: 1.05rem; }
.footer__brand p { margin: 0.3rem 0 0; font-size: 0.9rem; max-width: 22rem; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.footer__nav h3 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__nav a { color: rgba(255, 255, 255, 0.68); text-decoration: none; font-size: 0.92rem; transition: 0.25s var(--ease); }
.footer__nav a:hover { color: var(--green-200); padding-left: 4px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.83rem;
}
.footer__legal p { margin: 0; }
.footer__legal a { color: rgba(255, 255, 255, 0.68); }

/* ---------------------------------------------------------------- modale -- */

.modal {
  width: min(94vw, 900px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius-l);
  background: #fff; color: var(--grey-800); box-shadow: var(--shadow-l); overflow: auto;
}
.modal::backdrop { background: rgba(9, 26, 37, 0.62); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn 0.35s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--grey-200); color: var(--ink); cursor: pointer;
}
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__body { padding: 0 0 1.8rem; }
.modal__media { border-radius: 0; }
/* Dans la modale, on plafonne la hauteur : le texte doit rester visible. */
.modal__media .ba,
.modal__media .shot {
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  aspect-ratio: auto; height: min(58vh, 560px);
}
.modal__vues { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-bottom: 1.5rem; }
.modal__vues img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-s); display: block; }
.modal__text { padding: 1.6rem clamp(1.3rem, 3vw, 2.2rem) 0; }
.modal__text h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.modal__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1.4rem 0; padding: 1.2rem 0; border-block: 1px solid var(--grey-200); }
.modal__facts div span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); }
.modal__facts div strong { font-family: var(--font-title); color: var(--ink); }
.modal__lots { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.modal__lots li { font-size: 0.8rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); }

/* --------------------------------------------------- mentions légales --- */

.legal { padding-top: clamp(7rem, 12vw, 9rem); background: var(--paper); }
.legal__shell { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2 {
  font-size: 1.15rem; margin: 2.4rem 0 0.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--grey-200);
}
.legal p, .legal li { color: var(--grey-600); }
.legal ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.legal em { color: var(--blue-700); font-style: normal; background: var(--blue-050); padding: 0.05em 0.4em; border-radius: 5px; }
.legal__back { margin-top: 2.5rem; }

/* ------------------------------------------------------------- reveal --- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }
[data-reveal-delay="4"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
