/* =========================================================
   Allan Plaquiste Jura — feuille de style
   Couleurs et polices modifiables dans :root ci-dessous.
   ========================================================= */

:root {
  --bleu: #1F40A6;        /* bleu roi */
  --bleu-fonce: #18338a;
  --nuit: #0E1B3D;        /* bleu nuit */
  --noir: #111418;
  --blanc: #ffffff;
  --gris: #F2F4F8;
  --gris-ligne: #DDE2EC;
  --texte: #262B36;
  --texte-doux: #5B6375;

  --titres: "Archivo", "Arial Black", Arial, sans-serif;
  --corps: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --header-h: 76px;
  --radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { font-family: var(--titres); color: var(--noir); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.small { font-size: .92rem; }
.muted { color: var(--texte-doux); font-weight: 400; }

.skip { position: absolute; left: -999px; top: 0; background: var(--bleu); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }

/* Repère visuel pour les infos à compléter (à retirer une fois rempli) */
.todo { background: #FFF3B0; color: #6b5200; padding: 0 .3em; font-weight: 600; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.ico--lg { width: 40px; height: 40px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--titres); font-weight: 700; font-size: 1rem;
  padding: .85em 1.4em; border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { font-size: 1.08rem; padding: 1em 1.7em; }
.btn--block { width: 100%; }
.btn--blue { background: var(--bleu); color: #fff; }
.btn--blue:hover { background: var(--bleu-fonce); }
.btn--white { background: #fff; color: var(--nuit); }
.btn--white:hover { background: var(--gris); }
.btn--ghost { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn--ghost:hover { background: var(--bleu); color: #fff; }
:focus-visible { outline: 3px solid #7FA2FF; outline-offset: 2px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--gris-ligne);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(14,27,61,.08); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a:not(.btn) {
  font-family: var(--titres); font-weight: 700; font-size: .97rem; color: var(--noir);
  text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav a:not(.btn):hover, .nav a.is-active { border-bottom-color: var(--bleu); color: var(--bleu); }
.nav__devis { display: none; }
.burger { display: none; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(92vh, 820px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px;
  background-color: var(--nuit);
  /* Photo de chantier + voile bleu nuit pour la lisibilité. Fond de secours : trame façon plaques de plâtre. */
  background-image:
    linear-gradient(100deg, rgba(14,27,61,.94) 0%, rgba(14,27,61,.78) 48%, rgba(14,27,61,.35) 100%),
    url("../img/hero.jpg"),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: cover, cover, 120px 240px, 120px 240px;
  background-position: center, center, 0 0, 0 0;
}
.hero::after { /* fine bande bleue en bas, rappel du logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--bleu) 0 60%, #fff 60% 61%, var(--bleu) 61% 100%);
}
.hero__inner { position: relative; max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 40em; color: #D9E1F5; margin-bottom: 1.8em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.18); max-width: 720px; }
.hero__facts li { flex: 1 1 180px; padding: 18px 24px 0 0; color: #B9C5E6; font-size: .95rem; }
.hero__facts strong { display: block; font-family: var(--titres); font-size: 1.45rem; color: #fff; }

.eyebrow {
  font-family: var(--titres); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bleu); margin-bottom: .9em; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: currentColor; }
.eyebrow--light { color: #8FA8F0; }

/* ---------- Atouts ---------- */
.atouts { background: var(--blanc); border-bottom: 1px solid var(--gris-ligne); }
.atouts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.atout { padding: 38px 26px 34px; border-right: 1px solid var(--gris-ligne); }
.atout:first-child { padding-left: 0; }
.atout:last-child { border-right: 0; }
.atout__ico { width: 44px; height: 44px; color: var(--bleu); margin-bottom: 14px; }
.atout h3 { font-size: 1.15rem; margin-bottom: .35em; }
.atout p { color: var(--texte-doux); font-size: .97rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--grey { background: var(--gris); }
.section--dark { background: var(--nuit); color: #D9E1F5; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__intro { font-size: 1.1rem; color: var(--texte-doux); }
.section--dark .section__intro { color: #B9C5E6; }
.center-cta { text-align: center; margin: 44px 0 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--gris-ligne); border-top: 5px solid var(--bleu);
  padding: 30px 28px 26px; transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,27,61,.10); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.service__ico { width: 52px; height: 52px; color: var(--bleu); }
.service__num { font-family: var(--titres); font-weight: 900; font-size: 2.4rem; color: var(--gris-ligne); line-height: 1; }
.service > p { color: var(--texte-doux); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--gris); font-size: .98rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px;
  border-left: 3px solid var(--bleu); border-bottom: 3px solid var(--bleu); transform: rotate(-45deg);
}

.pro-band {
  margin-top: 32px; background: var(--bleu); color: #E4EAFB;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px;
}
.pro-band__title { font-family: var(--titres); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: .3em; }
.pro-band p:last-child { margin: 0; }

/* ---------- Emplacements photo ---------- */
.ph {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  background: repeating-linear-gradient(135deg, #E3E8F2 0 14px, #EDF0F6 14px 28px);
  border: 1px dashed #AEB8CC;
}
.ph::before { /* texte visible tant que la photo n'est pas déposée */
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 48px 12px 12px; font-family: var(--titres); font-weight: 700; font-size: .9rem; color: #7A859C;
}
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph--portrait { aspect-ratio: 4 / 5; }
.tag {
  position: absolute; z-index: 2; left: 0; top: 14px; background: var(--noir); color: #fff;
  font-family: var(--titres); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px;
}
.tag--blue { background: var(--bleu); }

/* ---------- Réalisations ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project { background: #fff; padding: 12px 12px 18px; border: 1px solid var(--gris-ligne); }
.project__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.project h3 { font-size: 1.1rem; margin: 0 6px .25em; }
.project__meta { margin: 0 6px; color: var(--texte-doux); font-size: .93rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about__photo { box-shadow: 18px 18px 0 var(--bleu); }
.about__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about__list li { background: var(--gris); padding: 12px 16px; font-weight: 600; border-left: 4px solid var(--bleu); font-size: .97rem; }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 26px; }
.review__stars { color: #F5C542; letter-spacing: .15em; font-size: 1.2rem; margin-bottom: .5em; }
.review p { color: #fff; }
.review footer { color: #8FA8F0; font-size: .92rem; font-weight: 600; }
.review--empty { border-style: dashed; text-align: center; grid-column: 1 / -1; }
.review--empty p:last-child { color: #B9C5E6; margin: 0; }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.towns { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { border: 2px solid var(--nuit); padding: 6px 14px; font-family: var(--titres); font-weight: 700; font-size: .92rem; color: var(--nuit); }
.towns li:first-child { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.map { aspect-ratio: 4 / 3; background: var(--nuit); position: relative; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--titres); font-weight: 700; font-size: 1.1rem;
  background:
    linear-gradient(rgba(14,27,61,.88), rgba(14,27,61,.88)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.25) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.25) 39px 40px);
}
.map__load:hover { background-color: var(--bleu); }
.map__load small { font-family: var(--corps); font-weight: 400; font-size: .85rem; color: #B9C5E6; }
.map__load .ico { fill: #8FA8F0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact__phone {
  display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 26px;
  font-family: var(--titres); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--bleu); text-decoration: none;
}
.contact__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; }
.contact__list dt { font-family: var(--titres); font-weight: 700; color: var(--noir); }
.contact__list dd { margin: 0; }

.form { background: #fff; padding: 34px; border-top: 5px solid var(--bleu); box-shadow: 0 14px 40px rgba(14,27,61,.08); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--noir); padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--gris-ligne); border-radius: var(--radius); background: #FBFCFE;
}
.field input:focus, .field textarea:focus { border-color: var(--bleu); outline: none; background: #fff; }
.field input[type="file"] { font: inherit; font-size: .95rem; width: 100%; }
.field .is-invalid, .chips.is-invalid { border-color: #C62828 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 1.5px solid transparent; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--gris-ligne); cursor: pointer;
  font-weight: 600; user-select: none; transition: all .15s;
}
.chip input:checked + span { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #7FA2FF; }
.hint { font-size: .88rem; color: var(--texte-doux); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 4px 0 22px; }
.consent input { margin-top: 5px; flex: none; }
.form__status { margin: 14px 0 6px; font-weight: 600; }
.form__status.ok { color: #1B7F3A; }
.form__status.err { color: #C62828; }

/* ---------- Pied de page ---------- */
.footer { background: var(--noir); color: #AEB6C8; padding: 64px 0 0; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; margin-bottom: 18px; }
.footer__logo img { height: 40px; width: auto; }
.footer__title { font-family: var(--titres); font-weight: 700; color: #fff; margin-bottom: .4em; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.footer__bottom { border-top: 1px solid #2A303B; padding-top: 20px; padding-bottom: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Pages légales ---------- */
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--gris-ligne); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 20px; }
.legal dt { font-weight: 600; color: var(--noir); }
.legal dd { margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1060px) {
  .nav ul { gap: 18px; }
  .header__inner { gap: 18px; }
  .services, .projects { grid-template-columns: 1fr 1fr; }
  .atouts__grid { grid-template-columns: 1fr 1fr; }
  .atout { padding-left: 0; }
  .atout:nth-child(2) { border-right: 0; }
  .atout:nth-child(-n+2) { border-bottom: 1px solid var(--gris-ligne); }
  .atout:nth-child(odd) { padding-right: 26px; }
  .atout:nth-child(even) { padding-left: 26px; }
}

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  body { padding-bottom: 68px; } /* place pour la barre mobile */
  .header__logo img { height: 38px; }
  .header__call { margin-left: auto; padding: .6em 1em; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .burger span { height: 3px; background: var(--noir); transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 30px;
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--gris-ligne); }
  .nav a:not(.btn):hover, .nav a.is-active { border-bottom-color: var(--gris-ligne); }
  .nav__devis { display: inline-flex; margin-top: 24px; }

  .section { padding: 68px 0; }
  .services, .projects, .about, .zone, .contact { grid-template-columns: 1fr; }
  .about { gap: 40px; }
  .about__photo { max-width: 420px; box-shadow: 12px 12px 0 var(--bleu); }
  .pro-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 18px rgba(0,0,0,.15); padding-bottom: env(safe-area-inset-bottom);
    background: var(--nuit);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px;
    font-family: var(--titres); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: #fff;
  }
  .mobile-bar__call { background: var(--bleu); }
  .mobile-bar__devis { background: var(--nuit); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header__call span { display: none; }   /* icône seule à côté du burger */
  .header__call { width: 44px; height: 44px; padding: 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 44px); }
  .hero__cta .btn { width: 100%; }
  .atouts__grid { grid-template-columns: 1fr; }
  .atout, .atout:nth-child(odd), .atout:nth-child(even) { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--gris-ligne); }
  .atout:last-child { border-bottom: 0; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .about__list { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   ANIMATIONS
   Tout est désactivé automatiquement si le visiteur a choisi
   « réduire les animations » sur son appareil.
   ========================================================= */

/* ---------- Intro (plaques → carreaux → lame de parquet → logo) ---------- */
.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro {
  display: flex; position: fixed; inset: 0; z-index: 300; background: var(--nuit);
  flex-direction: column; align-items: center; justify-content: center; gap: 22px; overflow: hidden; cursor: pointer;
}
.intro.is-leaving { animation: introOut .6s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes introOut { to { transform: translateY(-100%); } }

/* les plaques de plâtre qui montent en fond */
.intro__wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 0 3px; opacity: .14; }
.intro__wall span { background: #E9ECF2; transform: translateY(105%); animation: plaque .55s cubic-bezier(.2,.8,.2,1) forwards; }
.intro__wall span:nth-child(1) { animation-delay: .05s; }
.intro__wall span:nth-child(2) { animation-delay: .13s; }
.intro__wall span:nth-child(3) { animation-delay: .21s; }
.intro__wall span:nth-child(4) { animation-delay: .29s; }
.intro__wall span:nth-child(5) { animation-delay: .37s; }
.intro__wall span:nth-child(6) { animation-delay: .45s; }
@keyframes plaque { to { transform: none; } }

.intro__brand { position: relative; display: flex; align-items: center; gap: 18px; }
/* les carreaux qui se posent un par un */
.intro__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 74px; height: 74px; }
.intro__tiles i { background: var(--bleu); transform: scale(0) rotate(-20deg); animation: carreau .35s cubic-bezier(.3,1.6,.5,1) forwards; }
.intro__tiles i:nth-child(2), .intro__tiles i:nth-child(3) { background: #fff; }
.intro__tiles i:nth-child(1) { animation-delay: .7s; }
.intro__tiles i:nth-child(2) { animation-delay: .82s; }
.intro__tiles i:nth-child(4) { animation-delay: .94s; }
.intro__tiles i:nth-child(3) { animation-delay: 1.06s; }
@keyframes carreau { to { transform: none; } }

.intro__words { display: flex; flex-direction: column; overflow: hidden; }
.intro__words strong { font-family: var(--titres); font-weight: 900; font-size: 3.2rem; line-height: 1; color: #fff; letter-spacing: .02em; transform: translateY(110%); animation: monte .5s 1.15s cubic-bezier(.2,.8,.2,1) forwards; }
.intro__words em { font-style: normal; font-family: var(--titres); font-weight: 700; font-size: .95rem; letter-spacing: .32em; color: #8FA8F0; opacity: 0; animation: fondu .5s 1.4s forwards; }
@keyframes monte { to { transform: none; } }
@keyframes fondu { to { opacity: 1; } }

/* la lame de parquet qui glisse sous le logo */
.intro__plank {
  position: relative; width: min(340px, 70vw); height: 12px; transform: scaleX(0); transform-origin: left;
  background: repeating-linear-gradient(90deg, #C89B62 0 92px, #8A6238 92px 94px, #B5864F 94px 170px, #8A6238 170px 172px);
  animation: lame .6s 1.5s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes lame { to { transform: none; } }
.intro__trades { position: relative; margin: 0; font-family: var(--titres); font-weight: 700; color: #B9C5E6; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; opacity: 0; animation: fondu .4s 1.75s forwards; }

/* ---------- Barre de progression de lecture ---------- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--bleu); transform: scaleX(0); transform-origin: left; }

/* ---------- Accueil : apparition en cascade ---------- */
.js .hero__inner > * { opacity: 0; transform: translateY(26px); }
.js .is-ready .hero__inner > * { animation: entree .8s cubic-bezier(.2,.8,.2,1) forwards; }
.is-ready .hero__inner > :nth-child(2) { animation-delay: .08s; }
.is-ready .hero__inner > :nth-child(3) { animation-delay: .2s; }
.is-ready .hero__inner > :nth-child(4) { animation-delay: .3s; }
.is-ready .hero__inner > :nth-child(5) { animation-delay: .42s; }
.is-ready .hero__inner > :nth-child(6) { animation-delay: .55s; }
@keyframes entree { to { opacity: 1; transform: none; } }

/* ---------- Texte qui s'écrit ---------- */
.hero__typer { font-family: var(--titres); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: #8FA8F0; min-height: 1.5em; margin: -.1em 0 .8em; }
.hero__typer::before { content: "→ "; color: #fff; }
.typer::after { content: ""; display: inline-block; width: 3px; height: 1.05em; background: #fff; margin-left: 4px; vertical-align: -.15em; animation: curseur 1s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }

/* ---------- Bandeaux défilants ---------- */
.marquee { overflow: hidden; background: var(--nuit); padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; width: max-content; animation: defile 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--titres); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  color: #fff; white-space: nowrap; display: flex; align-items: center; line-height: 1.1;
}
.marquee span::after { content: ""; width: 14px; height: 14px; background: var(--bleu); margin: 0 30px; flex: none; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); }
.marquee--blue { background: var(--bleu); }
.marquee--blue span::after { background: var(--nuit); }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 30s; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.about__photo.is-in { animation: ombre .9s .3s both; }
@keyframes ombre { from { box-shadow: 0 0 0 var(--bleu); } }

/* les coches des services se cochent une par une */
.js .service .checks li::before { transform: rotate(-45deg) scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.25s + var(--i, 0) * .09s); }
.js .service.is-in .checks li::before { transform: rotate(-45deg) scale(1); }

/* ---------- Filtres de la galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 32px; }
.filter {
  font-family: var(--titres); font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 10px 18px; background: #fff; color: var(--nuit); border: 2px solid var(--nuit); border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.filter b { font-size: .78rem; background: var(--gris); color: var(--nuit); padding: 1px 7px; min-width: 22px; text-align: center; }
.filter:hover { background: var(--gris); }
.filter.is-active { background: var(--nuit); color: #fff; }
.filter.is-active b { background: var(--bleu); color: #fff; }
.project { transition: opacity .35s ease, transform .35s ease; }
.project.is-hidden { display: none; }
.project.is-entering { animation: carte .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes carte { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.project__cat { display: inline-block; margin: 0 6px 6px; font-family: var(--titres); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }

@media (max-width: 560px) {
  .intro__words strong { font-size: 2.4rem; }
  .intro__tiles { width: 58px; height: 58px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -22px; margin-right: -22px; padding: 0 22px 6px; scrollbar-width: none; }
  .filter { flex: none; }
  .marquee { padding: 16px 0; }
  .marquee span::after { width: 10px; height: 10px; margin: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js .reveal, .js .hero__inner > * { opacity: 1; transform: none; }
  .js .service .checks li::before { transform: rotate(-45deg); }
  .typer::after { animation: none; }
}

/* =========================================================
   GALERIE PHOTO + VISIONNEUSE
   ========================================================= */
.gallery__title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-doux); margin: 8px 0 18px; display: flex; align-items: center; gap: 14px; }
.gallery__title::after { content: ""; flex: 1; height: 1px; background: var(--gris-ligne); }
.projects + .gallery__title { margin-top: 48px; }
.gallery__title.is-empty, .projects.is-empty { display: none; }

.zoom { display: block; height: 100%; cursor: zoom-in; }
.project .ph { border-style: solid; }
.project .ph img { transition: transform .5s ease; }
.project .ph:hover img { transform: scale(1.04); }

.gallery { columns: 3 280px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; position: relative; overflow: hidden; background: var(--nuit); }
.shot img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.shot:hover img { transform: scale(1.05); opacity: .85; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .9rem; line-height: 1.35; font-weight: 500;
  background: linear-gradient(transparent, rgba(14,27,61,.92)); pointer-events: none;
}
.shot figcaption span { display: block; font-family: var(--titres); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8FA8F0; margin-bottom: 2px; }
.shot.is-hidden, .shot.is-capped { display: none; }
.shot.is-entering { animation: carte .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.gallery__more { text-align: center; margin: 22px 0 0; }
.gallery__more[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8,14,32,.96); display: flex; align-items: center; justify-content: center; padding: 56px 70px; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__fig figcaption { color: #D9E1F5; margin-top: 14px; text-align: center; font-weight: 500; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; background: rgba(255,255,255,.06); }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--bleu); }
.lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
.lightbox__count { position: absolute; top: 18px; left: 22px; margin: 0; color: #8FA8F0; font-family: var(--titres); font-weight: 700; }
.lightbox__fig.slide-l { animation: slideL .3s ease; } .lightbox__fig.slide-r { animation: slideR .3s ease; }
@keyframes slideL { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-40px); } }

@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 8px; }
  .shot { margin-bottom: 8px; }
  .shot figcaption { font-size: .78rem; padding: 22px 8px 8px; }
  .lightbox { padding: 56px 0 30px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__fig img { max-height: calc(100vh - 190px); }
}
@media (max-width: 560px) {
  .shot figcaption { font-size: 0; padding: 18px 8px 6px; }
  .shot figcaption span { font-size: .62rem; margin: 0; }
}
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--bleu); cursor: pointer; }
.consent { cursor: pointer; }

/* Aucun débordement horizontal (animations latérales, bandeaux défilants) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 880px) {
  .js .reveal--left, .js .reveal--right { transform: translateY(34px); }
}
.contact > *, .about > *, .zone > * { min-width: 0; }
.contact__list { grid-template-columns: auto minmax(0, 1fr); }
.contact__list dd, .footer p { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .center-cta .btn, .pro-band .btn { width: 100%; }
}

/* Corrections de la revue */
.projects { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } }
.shot figcaption { background: linear-gradient(rgba(14,27,61,0), rgba(14,27,61,.78) 45%, rgba(14,27,61,.95)); padding-top: 40px; }
.shot figcaption span { color: #B9CBFF; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn { display: inline-flex !important; align-items: center; gap: 10px; padding: 11px 18px; border: 2px dashed var(--bleu); color: var(--bleu); font-family: var(--titres); font-weight: 700; cursor: pointer; background: #F5F7FD; margin: 2px 0 0 !important; }
.file-btn:hover { background: #E8EDFB; }
.file-input:focus-visible + .file-btn { outline: 3px solid #7FA2FF; outline-offset: 2px; }
.file-input.is-invalid + .file-btn { border-color: #C62828; color: #C62828; }
.field { position: relative; }
.file-input { left: 0; top: 0; }

/* Carte de la zone d'intervention */
.map { aspect-ratio: auto; background: var(--nuit); display: flex; flex-direction: column; }
.map iframe { aspect-ratio: 5 / 4.3; height: auto; }
.zone-map { display: block; width: 100%; height: auto; }
.zone-map .town circle { fill: #fff; }
.zone-map .town text { fill: #D9E1F5; font: 600 13px var(--corps); paint-order: stroke; stroke: #0E1B3D; stroke-width: 4px; }
.zone-map .town--main circle { fill: #fff; stroke: #1F40A6; stroke-width: 4; }
.zone-map .town--main .pulse { fill: rgba(255,255,255,.35); stroke: none; transform-origin: 250px 215px; animation: pulse 2s ease-out infinite; }
.zone-map .town--main text { fill: #fff; font: 900 18px var(--titres); letter-spacing: .04em; }
.zone-map .zone-km { fill: #8FA8F0; font: 700 13px var(--titres); letter-spacing: .08em; }
.zone-map .zone-km--s { fill: rgba(143,168,240,.7); font-size: 11px; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map__bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; background: #0B1530; border-top: 1px solid rgba(255,255,255,.08); }
.map__load { position: static; inset: auto; width: auto; flex: 1 1 auto; flex-direction: row; gap: 8px; padding: 12px 16px; font-size: .98rem; background: var(--bleu); }
.map__load:hover { background: var(--bleu-fonce); }
.map__load .ico { fill: #fff; }
.map__ext { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; padding: 12px 16px; border: 2px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-family: var(--titres); font-weight: 700; font-size: .95rem; }
.map__ext:hover { border-color: #fff; }
.map__note { margin: 0; padding: 0 14px 12px; background: #0B1530; color: #8FA8F0; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .zone-map .pulse { animation: none; } }

@media (max-width: 560px) {
  .zone-map .town text { font-size: 15.5px; }
  .zone-map .town--main text { font-size: 22px; }
  .zone-map .zone-km { font-size: 16px; }
}
