/* =========================================================================
   Bati Solutions — styles.css (site public)
   Concept : « minimalisme architectural » — grille de plan en filigrane,
   titres Montserrat serrés, filets dorés comme des cotes de plan.
   Les tokens ci-dessous sont aussi utilisés par css/admin.css.
   ========================================================================= */

/* Polices hébergées sur le site (pas d'appel à Google : RGPD + rapidité). Fichiers variables, sous-ensemble latin. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/montserrat-latin.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs relevées sur le logo :
     bleu roi « BÂTI » + maison, bleu marine du slogan, vert feuille « SOLUTIONS »,
     bleu eau des bulles, et la vague bleu → vert comme signature.
     (Le jeton --gold est l'accent de repère : il porte désormais le vert du logo.) */
  --blue: #1452C9;
  --blue-strong: #0E3FA0;
  --steel: #0B2470;
  --steel-2: #12338F;
  --green: #277A17;
  --green-strong: #1F6412;
  --gold: #277A17;
  --gold-soft: #9ED36F;
  --sky: #2E9BE6;
  --leaf: #3FA02A;
  --wave: linear-gradient(90deg, #1452C9 0%, #2E9BE6 50%, #3FA02A 100%);
  --bg: #FFFFFF;
  --surface: #F3F6FB;
  --surface-2: #E6EDF7;
  --ink: #142045;
  --muted: #4E5B73;
  --line: #D8E0EE;
  --on-strong: #FFFFFF;          /* texte sur fond acier / bleu */
  --on-green: #FFFFFF;
  --danger: #B42318;
  --success: #2F7A1F;
  --warning: #9A6A00;
  --overlay: rgba(10, 24, 44, .72);
  --shadow-1: 0 1px 2px rgba(18, 48, 90, .06), 0 2px 8px rgba(18, 48, 90, .06);
  --shadow-2: 0 10px 30px -10px rgba(18, 48, 90, .25);
  --logo-plate: transparent;

  /* Typo */
  --font-display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 1.6rem + 4.2vw, 5rem);

  /* Espaces / formes */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #6FA8F5; --blue-strong: #8DBBF7; --steel: #0A1B4D; --steel-2: #13296B;
    --green: #6CC24A; --green-strong: #82D062; --gold: #7CC243; --gold-soft: #9ED36F; --sky: #6EC1F5; --leaf: #7CC243;
    --wave: linear-gradient(90deg, #6FA8F5 0%, #6EC1F5 50%, #7CC243 100%);
    --bg: #0B1226; --surface: #121B35; --surface-2: #1A2645; --ink: #E8EDF7; --muted: #A5B0C6; --line: #26335A;
    --on-strong: #F3F6FA; --on-green: #0B1A2E; --danger: #FF8A80; --success: #7FD15E; --warning: #F0C25A;
    --overlay: rgba(4, 10, 20, .78);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --logo-plate: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #6FA8F5; --blue-strong: #8DBBF7; --steel: #0A1B4D; --steel-2: #13296B;
  --green: #6CC24A; --green-strong: #82D062; --gold: #7CC243; --gold-soft: #9ED36F; --sky: #6EC1F5; --leaf: #7CC243;
  --wave: linear-gradient(90deg, #6FA8F5 0%, #6EC1F5 50%, #7CC243 100%);
  --bg: #0B1226; --surface: #121B35; --surface-2: #1A2645; --ink: #E8EDF7; --muted: #A5B0C6; --line: #26335A;
  --on-strong: #F3F6FA; --on-green: #0B1A2E; --danger: #FF8A80; --success: #7FD15E; --warning: #F0C25A;
  --overlay: rgba(4, 10, 20, .78);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --logo-plate: #FFFFFF;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--sky) 35%, transparent); color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--steel); color: var(--on-strong); padding: .7rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: var(--on-strong); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface); }
/* deux sections blanches consécutives (ex. bloc masqué entre les deux) : pas de double marge */
.section:not(.section--alt):not(.section--steel) + .section[hidden] + .section:not(.section--alt):not(.section--steel) { padding-top: 0; }
.section--steel { background: var(--steel); color: var(--on-strong); }
.section--steel h2, .section--steel h3 { color: var(--on-strong); }

/* Surtitre façon cote de plan : filet doré + texte espacé */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 760px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); }
.section--steel .section-head p:not(.eyebrow) { color: color-mix(in srgb, var(--on-strong) 78%, transparent); }

/* ---------- 3. Boutons + micro-interactions ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-bd: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: var(--radius-pill); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); color: var(--btn-fg); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: var(--green); --btn-fg: var(--on-green); }
.btn--primary:hover { --btn-bg: var(--green-strong); }
.btn--primary::after {   /* filet doré subtil sous le CTA */
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 7px; height: 1px;
  background: var(--gold); opacity: .0; transition: opacity .2s;
}
.btn--primary:hover::after { opacity: .9; }
.btn--blue { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--light { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: currentColor; opacity: .25; transform: scale(0);
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- 4. Header ---------- */
.progress {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 120;
  background: var(--wave);
  transform-origin: 0 50%; transform: scaleX(0);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Le fond flouté est porté par un pseudo-élément : un backdrop-filter posé sur le header
   lui-même en ferait le bloc conteneur du menu mobile (position: fixed) et l'enfermerait
   dans la hauteur du bandeau. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-1); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; background: var(--logo-plate); padding: 2px 6px; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  border-radius: var(--radius-pill); position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.tool-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink);
}
.tool-btn:hover { background: var(--surface-2); }
.lang-btn { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .06em; width: auto; padding: 0 .7rem; border-radius: var(--radius-pill); }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  /* Panneau plein écran, fond acier OPAQUE (lisibilité garantie quel que soit le contenu dessous) */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; height: 100dvh; z-index: 110; margin: 0;
    background: var(--steel); color: var(--on-strong);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem) var(--gutter-r) calc(1.5rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
    display: flex; flex-direction: column; gap: 1.5rem;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-list a {
    display: flex; width: 100%; min-height: 60px; padding: 0; border-radius: 0;
    color: var(--on-strong); font-family: var(--font-display); font-size: clamp(1.35rem, 4.5vw, 2rem); font-weight: 700; letter-spacing: -.01em;
  }
  .header-tools { margin-left: auto; }
  .nav-list a:hover, .nav-list a:focus-visible { color: var(--gold-soft); }
  .nav a:focus-visible { box-shadow: none; outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
  :root[data-theme="dark"] .nav-list a:hover { color: var(--gold); }
  .nav-list a::after { left: 0; right: auto; width: 2.5rem; bottom: 10px; }
  .nav .nav-cta { display: flex; width: 100%; margin-top: auto; min-height: 56px; }

  /* Menu ouvert : le bandeau passe en acier opaque, logo sur pastille blanche, outils en blanc */
  /* Le verrouillage du défilement neutralise "sticky" : on fixe le bandeau pendant que le menu est ouvert */
  .menu-open .site-header { position: fixed; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); border-color: transparent; box-shadow: none; }
  .menu-open main { margin-top: var(--header-h); }
  .menu-open .site-header::before { background: var(--steel); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .brand, .menu-open .header-tools { position: relative; z-index: 120; }
  .menu-open .brand { background: #fff; }
  .menu-open .tool-btn { color: var(--on-strong); }
  .menu-open .tool-btn:hover { background: rgba(255, 255, 255, .12); }
}
@media (min-width: 1101px) { .nav .nav-cta { display: none; } }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 860px);
  display: grid; align-items: end;
  color: #fff;
  padding-block: clamp(6rem, 12vh, 9rem) clamp(2.5rem, 6vh, 4rem);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(9, 30, 96, .92) 0%, rgba(9, 30, 96, .7) 45%, rgba(9, 30, 96, .15) 100%),
    linear-gradient(0deg, rgba(9, 30, 96, .6), transparent 40%);
}
.hero::after {   /* grille de plan en filigrane */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero .eyebrow { color: var(--gold-soft); }
:root[data-theme="dark"] .hero .eyebrow { color: var(--leaf); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .35em; }
.hero-text { font-size: var(--fs-lg); max-width: 54ch; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.trust {
  list-style: none; margin: clamp(2rem, 5vh, 3.5rem) 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  font-weight: 600; font-size: var(--fs-sm); color: rgba(255,255,255,.92);
}
.trust li { display: inline-flex; align-items: center; gap: .55rem; }
.trust .icon { color: var(--gold-soft); }
.rge-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem;
  border-radius: var(--radius-pill); border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: var(--fs-xs);
}

/* ---------- 6. À propos ---------- */
.about-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.about-text p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lg); }
.about-text .eyebrow + h2 + p { color: var(--ink); }
/* Engagement : citation à filet doré, sans encadré */
.commitment { position: relative; padding: .25rem 0 .25rem clamp(1.25rem, 2.5vw, 2rem); border-left: 2px solid var(--gold); align-self: center; }
.commitment h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.commitment h3 .icon { width: 18px; height: 18px; color: var(--gold); }
.commitment p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); max-width: none; }
/* Chiffres clés : une ligne de cotes, filets fins, pas de cartes */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem) 0 0; }
.stat + .stat { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); }
@media (max-width: 759px) { .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { margin-top: 1.5rem; } }
.stat-value {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.4rem); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-weight: 600; margin-top: .6rem; font-size: var(--fs-sm); }
.stat-label::before { content: ""; display: block; width: 1.5rem; height: 2px; background: var(--gold); margin-bottom: .6rem; }

/* ---------- 7. Services : index éditorial des métiers ----------
   Liste numérotée (filets fins, typographie forte) + planche d'image fixe qui suit le métier
   survolé. Les illustrations fournies sont teintées en planches monochromes acier ;
   les vraies photos (hors assets/img/illustrations) restent en couleur. */
.svc-head { display: grid; gap: 1.25rem 4rem; align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem); }
.svc-head h2 { margin: 0; max-width: 16ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; }
.svc-head-side p { margin: 0; color: var(--muted); font-size: var(--fs-lg); max-width: 38ch; }
.svc-head-side .svc-count { margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink); letter-spacing: .02em; }
.svc-count b { font-family: var(--font-display); font-weight: 800; color: var(--gold); margin-right: .35rem; }
@media (min-width: 900px) { .svc-head { grid-template-columns: 1.3fr 1fr; } }

.services-index { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; border-bottom: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem) 0; border-top: 1px solid var(--line);
}
.service::before { /* filet doré qui se dessine sur le métier actif */
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--wave); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service.is-active::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem); min-width: 2.2ch;
  color: transparent; -webkit-text-stroke: 1.25px var(--blue);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s;
}
.service.is-active .svc-num { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.svc-main { display: grid; gap: .55rem; min-width: 0; transition: transform .5s var(--ease); }
.service.is-active .svc-main { transform: translateX(4px); }
.svc-title { margin: .1rem 0 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.15; letter-spacing: -.015em; }
.svc-desc { margin: 0; color: var(--muted); max-width: 58ch; }
.svc-tags { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: var(--fs-sm); color: var(--ink); }
.svc-tags li { display: inline-flex; align-items: center; gap: .5rem; }
.svc-tags li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.svc-cta {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem;
  min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
  transition: background .3s var(--ease), color .3s, border-color .3s, gap .3s var(--ease);
}
.svc-cta .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc-cta:hover, .svc-cta:focus-visible { background: var(--green); border-color: var(--green); color: #fff; gap: .75rem; }
.svc-cta:hover .icon { transform: translateX(2px); }

/* Planches : vignette (mobile) et grande figure fixe (bureau) */
.svc-thumb, .svc-fig { position: relative; overflow: hidden; background: var(--surface-2); }
.svc-thumb { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 4px; margin-bottom: .6rem; }
.svc-thumb img, .svc-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-plate img { filter: grayscale(1) contrast(1.08) brightness(1.06); }
/* Planches techniques (assets/img/plans/*.svg) : affichées entières, sur leur fond papier */
.is-drawing { background: #F4F7FB; }
.is-drawing img { object-fit: contain; }
.svc-thumb.is-drawing { aspect-ratio: 4 / 3; }
.svc-fig.is-drawing .svc-fig-cap { display: none; }   /* la planche porte déjà son cartouche */
.is-plate::after { content: ""; position: absolute; inset: 0; background: var(--steel); mix-blend-mode: color; opacity: .75; pointer-events: none; }
.svc-figure { display: none; margin: 0; }

@media (min-width: 1024px) {
  .services-index { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .svc-thumb { display: none; }
  .service { grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: start; }
  .svc-cta { grid-column: 3; grid-row: 1; margin-top: .2rem; padding: 0; width: 48px; justify-content: center; }
  .svc-cta > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .service.is-active .svc-cta { background: var(--green); border-color: var(--green); color: #fff; }
  .svc-figure {
    display: block; position: sticky; top: calc(var(--header-h) + 2rem);
    aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 4rem); width: 100%;
  }
  .svc-figure::before { /* cadre doré décalé : profondeur */
    content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); z-index: 0;
  }
  .svc-fig { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1.2s var(--ease); box-shadow: var(--shadow-2); }
  .svc-fig.is-active { opacity: 1; transform: none; }
  .svc-fig-cap {
    position: absolute; left: 0; bottom: 0; z-index: 2; display: flex; gap: .75rem; align-items: baseline;
    padding: .9rem 1.1rem; background: var(--bg); color: var(--ink); font-weight: 700; font-size: var(--fs-sm); max-width: 85%;
  }
  .svc-fig-cap b { font-family: var(--font-display); color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .service::before, .svc-main, .svc-fig, .svc-num { transition: none; }
}

/* ---------- 8. Garanties ---------- */
/* Garanties : 4 colonnes numérotées, séparées par des filets (fond acier) */
.guarantees { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); counter-reset: gar; border-top: 1px solid rgba(255,255,255,.22); }
@media (min-width: 700px) { .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .guarantees { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guarantee { counter-increment: gar; padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2rem) 0; display: grid; gap: .6rem; align-content: start; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 700px) { .guarantee:nth-child(even) { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid rgba(255,255,255,.22); } }
@media (min-width: 1100px) { .guarantee { border-bottom: 0; } .guarantee + .guarantee { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid rgba(255,255,255,.22); } }
.guarantee::before { content: counter(gar, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.1px var(--sky); }
.guarantee .icon { display: none; }
.guarantee h3 { font-size: var(--fs-lg); margin: .5rem 0 0; }
.guarantee p { margin: 0; color: color-mix(in srgb, var(--on-strong) 78%, transparent); font-size: var(--fs-sm); }
.guarantee .policy { font-size: var(--fs-xs); color: var(--gold-soft); font-weight: 600; letter-spacing: .02em; }
:root[data-theme="dark"] .guarantee .policy { color: var(--leaf); }
.guarantees-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- 9. Réalisations : présentation éditoriale ----------
   1re réalisation mise en avant (photo + texte), suivantes en mosaïque. Les photos gardent
   leur format réel (portrait 4:5, paysage 3:2 sur deux colonnes) ; légende sous l'image. */
.portfolio-bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.chip {
  position: relative; min-height: 44px; padding: .5rem 0; border: 0; background: none; border-radius: 0;
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em; transition: color .2s;
}
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--wave); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"]::after { transform: scaleX(1); }
.pj-tv { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 700; font-size: var(--fs-sm); }
.pj-tv .icon { width: 20px; height: 20px; color: var(--gold); }
.pj-tv:hover span { text-decoration: underline; text-underline-offset: 4px; }

.projects-grid { display: grid; gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.project-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 4 / 5; cursor: zoom-in; color: inherit;
}
.project.is-landscape .project-card { aspect-ratio: 3 / 2; }
.pj-media, .pj-media picture { display: block; width: 100%; height: 100%; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.025); }
.pj-zoom {
  position: absolute; right: .9rem; bottom: .9rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--steel); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.pj-zoom .icon { width: 20px; height: 20px; }
.project-card:hover .pj-zoom, .project-card:focus-visible .pj-zoom { opacity: 1; transform: none; }
.project .badge-ba { position: absolute; top: .9rem; left: .9rem; background: var(--bg); color: var(--ink); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 2px; }
.pj-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem 1rem; align-items: baseline; }
.pj-num { grid-row: 1 / span 3; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.1px var(--blue); }
.pj-meta .cat { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pj-meta h3 { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.2; }
.pj-meta .place { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.pj-desc { grid-column: 2; margin: .6rem 0 0; color: var(--muted); max-width: 52ch; }
.pj-open { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font-weight: 700; font-size: var(--fs-sm); transition: background .3s, color .3s, border-color .3s; }
.pj-open .icon { width: 18px; height: 18px; }
.pj-open:hover, .pj-open:focus-visible { background: var(--green); border-color: var(--green); color: #fff; }
/* Réalisation mise en avant : photo à gauche, texte à droite, sur toute la largeur */
@media (min-width: 900px) {
  .projects-grid .project.is-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  .project.is-featured .project-card { max-height: 78vh; }
  .project.is-featured .pj-meta h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); letter-spacing: -.02em; }
  .project.is-featured .pj-num { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); }
}
@media (min-width: 1100px) { .projects-grid .project.is-landscape:not(.is-featured) { grid-column: span 2; } }
.empty-state {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1rem; justify-items: center; text-align: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  background-blend-mode: normal;
}
.empty-state .icon-wrap { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--blue); }
.empty-state .icon-wrap .icon { width: 32px; height: 32px; }
.empty-state h3 { margin: 0; }
.empty-state p { color: var(--muted); margin: 0 auto; }

/* Comparateur avant / après */
.compare { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; max-width: 100%; background: var(--surface-2); --pos: 50%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--steel);
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-2);
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl { position: absolute; top: .75rem; padding: .2rem .6rem; border-radius: var(--radius-pill); background: rgba(8,20,38,.75); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.compare .lbl-before { left: .75rem; } .compare .lbl-after { right: .75rem; }

/* ---------- 10. Zone d'intervention ---------- */
.zone-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 960px) { .zone-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.zone-map { width: 100%; height: auto; max-width: 100%; }
.zone-map .dep { fill: var(--bg); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.4; transition: fill .3s; cursor: pointer; }
.zone-map .dep:hover, .zone-map .dep.is-active, .zone-map .dep:focus { fill: color-mix(in srgb, var(--sky) 22%, var(--bg)); outline: none; }
.zone-map .dep:focus-visible { stroke: var(--gold); stroke-width: 4; }
.zone-map .dep-code { font-family: var(--font-display); font-weight: 800; font-size: 34px; fill: transparent; stroke: var(--blue); stroke-width: 1.1; pointer-events: none; }
.zone-map .city { fill: var(--ink); }
.zone-map .city-label { font-size: 15px; font-weight: 600; fill: var(--muted); pointer-events: none; }
.zone-map .hq { fill: var(--green); stroke: var(--bg); stroke-width: 2; }
.zone-map .hq-ring { fill: none; stroke: var(--green); stroke-width: 2; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.zone-map .hq-label { font-family: var(--font-display); font-weight: 800; font-size: 17px; fill: var(--ink); pointer-events: none; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.deps { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.dep-item {
  position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: .2rem 1rem; align-items: baseline;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.dep-item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--wave); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dep-item.is-active::before { transform: scaleX(1); }
.dep-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: transparent; -webkit-text-stroke: 1.1px var(--blue); grid-row: span 2; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.dep-item.is-active .dep-num { color: var(--blue); }
.dep-name { font-weight: 700; }
.dep-cities { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 11. Méthode (timeline) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline .fill { position: absolute; left: 23px; top: 8px; width: 2px; height: 0; background: var(--wave); transition: height .2s linear; }
.step { position: relative; display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 1.25rem; padding-block: 1rem; counter-increment: step; }
.step-num {
  width: 48px; height: 48px; display: grid; place-items: center; z-index: 1; background: var(--bg);
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.1px var(--blue); transition: color .4s var(--ease);
}
.section--alt .step-num { background: var(--surface); }
.step.is-done .step-num { color: var(--blue); }
.step h3 { margin: .55rem 0 .25rem; font-size: var(--fs-lg); }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .timeline::before { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 1px; }
  .timeline .fill { left: 0; top: 22px; height: 2px !important; width: 0; transition: width .2s linear; }
  .step-num { justify-content: start; width: auto; padding-right: .75rem; justify-self: start; }
  .step { grid-template-columns: 1fr; gap: .5rem; padding: 0; }
}

/* ---------- 12. Avis ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.review { flex: 0 0 100%; padding: clamp(1.5rem, 4vw, 3rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 1rem; }
.review blockquote { margin: 0; font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 600; line-height: 1.5; }
.review footer { display: flex; align-items: center; gap: .9rem; }
.review .reply { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); font-size: var(--fs-sm); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 18px; height: 18px; }
.stars .on { fill: currentColor; }
.carousel-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.dots { display: flex; gap: .4rem; margin-right: auto; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .3s; }
.dot[aria-current="true"]::before { background: var(--gold); width: 28px; border-radius: 6px; }
.review-cta {
  display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .review-cta { grid-template-columns: .8fr 1.2fr; } }

/* ---------- 13. Équipe (bloc anonyme : métiers, sans noms ni photos) ---------- */
.team-block { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .team-block { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4rem; } .team-block .section-head { margin-bottom: 0; } }
/* Métiers de l'équipe : liste numérotée sur deux colonnes, filets fins */
.trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; counter-reset: trade; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trades li {
  counter-increment: trade; display: flex; align-items: baseline; gap: 1rem; min-height: 56px; padding: .95rem 0;
  border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -.01em;
}
.trades li::before { content: counter(trade, decimal-leading-zero); flex: none; min-width: 2ch; font-size: var(--fs-sm); color: var(--gold); font-weight: 800; }
/* Monogramme (avis clients) */
.monogram {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1.5px solid var(--gold); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: .02em;
}

/* ---------- 14. Blog ---------- */
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit; width: 100%; }
.post-card:hover { box-shadow: var(--shadow-2); }
.post-card .cover { aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface-2); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.25rem; display: grid; gap: .5rem; }
.post-card .cat { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { margin: 0; font-size: var(--fs-lg); }
.post-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-2);
}
.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-body { padding: 1.5rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }

/* ---------- 15. Contact + formulaires ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.25fr .75fr; } }
.form { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--danger); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); outline: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--green); }
.field-msg { font-size: var(--fs-xs); min-height: 1.1em; color: var(--muted); }
.field.is-invalid .field-msg { color: var(--danger); font-weight: 600; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--green); }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.form-status.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-status.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.star-input { display: inline-flex; gap: .25rem; }
.star-input button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--line); display: grid; place-items: center; padding: 0; }
.star-input button.on { color: var(--gold); }
.star-input button.on .icon { fill: currentColor; }
.star-input .icon { width: 28px; height: 28px; }

.contact-card { background: var(--steel); color: var(--on-strong); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; align-content: start; }
.contact-card h3 { color: var(--on-strong); margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; }
.contact-list .icon { color: var(--gold-soft); margin-top: .2rem; }
.contact-list a { color: var(--on-strong); }
.contact-list small { display: block; color: color-mix(in srgb, var(--on-strong) 70%, transparent); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.map-routes { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin-top: .9rem; font-size: var(--fs-sm); }
.map-routes span { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.map-routes .icon { width: 16px; height: 16px; color: var(--gold-soft); }
.map-routes a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold-soft) 80%, transparent); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.map-routes a:hover { text-decoration-color: currentColor; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--steel); color: color-mix(in srgb, var(--on-strong) 80%, transparent); padding-block: clamp(3rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-strong); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-strong); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
@media (min-width: 1100px) { .footer-grid:has(> [hidden]) { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 1rem; }
.footer-brand img { height: 52px; width: auto; }
.footer-title { font-family: var(--font-display); color: var(--on-strong); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 200px; min-height: 48px; padding: .6rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--on-strong); }
.newsletter input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-msg { font-size: var(--fs-xs); min-height: 1.2em; margin-top: .4rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: var(--fs-xs); }

/* ---------- 17. Flottants : retour en haut, curseur, crayon admin, toast ---------- */
.to-top {
  position: fixed; z-index: 90;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--steel); color: var(--on-strong);
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
:root[data-theme="dark"] .to-top { background: var(--blue); color: #0b1a2e; }

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2000; border-radius: 50%; display: none; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid color-mix(in srgb, var(--blue) 60%, transparent); transition: width .25s, height .25s, margin .25s, background-color .25s; }
.cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: var(--gold); }

.editable { position: relative; }
.edit-pencil {
  position: absolute; top: 1rem; right: max(1rem, env(safe-area-inset-right, 0px)); z-index: 20;
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; min-height: 40px;
  border-radius: var(--radius-pill); background: var(--gold); color: #1c1608; font-weight: 700; font-size: var(--fs-xs);
  text-decoration: none; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(-4px); transition: all .2s;
}
.editable:hover > .edit-pencil, .edit-pencil:focus { opacity: 1; transform: none; color: #1c1608; }
@media (hover: none) { .edit-pencil { opacity: 1; transform: none; } }

.toast-zone { position: fixed; z-index: 3000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--steel); color: var(--on-strong); padding: .9rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); display: flex; gap: .6rem; align-items: center; animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 18. Apparition au scroll (part d'un état visible) ---------- */
/* État de repos = visible. L'animation ne joue qu'à l'entrée dans l'écran. */
.reveal.is-in { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- 19. Mode Présentation TV ---------- */
.tv {
  position: fixed; inset: 0; z-index: 5000; background: #050B14; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  font-size: clamp(16px, 1.1vw, 28px);
}
.tv-stage { position: absolute; inset: 0; overflow: hidden; }
.tv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.tv-slide.is-active { opacity: 1; z-index: 1; }
.tv[data-transition="glissement"] .tv-slide { opacity: 1; transform: translateX(100%); transition: transform 1.1s var(--ease); }
.tv[data-transition="glissement"] .tv-slide.is-active { transform: none; }
.tv[data-transition="glissement"] .tv-slide.is-prev { transform: translateX(-100%); }
.tv[data-transition="zoom"] .tv-slide { transform: scale(1.08); transition: opacity 1.2s ease, transform 1.2s var(--ease); }
.tv[data-transition="zoom"] .tv-slide.is-active { transform: none; }
.tv-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Photo entière, jamais recadrée : fond flou de la même photo derrière */
.tv-bg, .tv-photo, .tv-bg picture, .tv-photo picture { position: absolute; inset: 0; display: block; }
.tv-bg img { filter: blur(36px) brightness(.45) saturate(1.1); transform: scale(1.15); }
.tv-photo img { object-fit: contain; }
.tv.kb .tv-slide.is-active .tv-photo img { animation: tv-kb var(--tv-dur, 7s) linear forwards; }
@keyframes tv-kb { from { transform: scale(1); } to { transform: scale(1.03); } }
.tv-slide .compare { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.tv-slide .compare .handle::after { width: 64px; height: 64px; }
.tv-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 11, 20, .9) 0%, rgba(5, 11, 20, 0) 45%), linear-gradient(180deg, rgba(5, 11, 20, .65), transparent 22%); pointer-events: none; }
.tv-top, .tv-bottom { position: relative; z-index: 2; padding: clamp(1rem, 2.5vw, 3rem) clamp(1.25rem, 4vw, 5rem); }
.tv-top { display: flex; align-items: center; gap: 1rem; }
.tv-top .brand { background: #fff; }
.tv-top .brand img { height: clamp(40px, 4vw, 80px); }
.tv-count { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1em; letter-spacing: .06em; }
.tv-btn { width: clamp(52px, 4vw, 88px); height: clamp(52px, 4vw, 88px); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.tv-btn:hover, .tv-btn:focus-visible { background: rgba(255,255,255,.2); }
.tv-btn:focus-visible { box-shadow: 0 0 0 4px var(--sky); }
.tv-btn .icon { width: 45%; height: 45%; }
.tv-caption { max-width: 70ch; }
.tv-cat { color: #9ED36F; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85em; }
.tv-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(2rem, 3.6vw, 5.5rem); line-height: 1.05; margin: .2em 0; color: #fff; }
.tv-desc { color: rgba(255,255,255,.85); font-size: 1.1em; margin: 0; }
.tv-progress { height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; margin-top: 1.5rem; }
.tv-progress span { display: block; height: 100%; width: 100%; background: var(--wave); transform-origin: left; transform: scaleX(0); }
.tv-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.tv-thumbs { display: flex; gap: .5rem; }
.tv-thumb { width: 14px; height: 14px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); padding: 0; }
.tv-thumb[aria-current="true"] { background: #9ED36F; width: 36px; border-radius: 8px; }
.tv-help { margin-left: auto; color: rgba(255,255,255,.6); font-size: .8em; }
.tv-help kbd { font-family: var(--font-body); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: .05em .45em; }
.tv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.tv-nav.prev { left: clamp(.75rem, 2vw, 2.5rem); } .tv-nav.next { right: clamp(.75rem, 2vw, 2.5rem); }
.tv.is-idle { cursor: none; }
.tv.is-idle .tv-nav, .tv.is-idle .tv-help { opacity: 0; transition: opacity .6s; }

/* ---------- 20. Pages simples (mentions, 404) ---------- */
.page-simple { padding-block: clamp(3rem, 8vw, 6rem); }
.legal-list { display: grid; gap: .25rem 2rem; grid-template-columns: minmax(0, 1fr); margin: 0 0 2rem; }
@media (min-width: 700px) { .legal-list { grid-template-columns: 260px minmax(0, 1fr); } }
.legal-list dt { font-weight: 700; color: var(--muted); }
.legal-list dd { margin: 0 0 .75rem; }
.todo { color: var(--warning); font-style: italic; }

/* ---------- 21. Responsive : tablette / desktop / grand écran / TV ---------- */
@media (max-width: 639px) {
  .hero-ctas .btn { width: 100%; }
  .brand img { height: 40px; }
  .portfolio-bar { flex-direction: column; align-items: stretch; }
}
@media (min-width: 1920px) {
  html { font-size: clamp(16px, .55vw + 6px, 26px); }
  :root { --wrap: 1600px; }
}
/* TV / écrans tactiles géants : cibles agrandies, focus très visible, contraste renforcé */
@media (min-width: 1920px) and (pointer: coarse) {
  :root { --focus: 0 0 0 4px var(--bg), 0 0 0 9px var(--gold); --muted: var(--ink); }
  .btn, .chip, .tool-btn, .nav-list a { min-height: 64px; }
  .tool-btn { width: 64px; height: 64px; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
.is-tv-device { --focus: 0 0 0 4px var(--bg), 0 0 0 9px var(--gold); }
.is-tv-device .btn, .is-tv-device .chip { min-height: 64px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-media img { animation: none; }
  .reveal.is-in { animation: none; }
}
@media print {
  .site-header, .to-top, .progress, .cursor-dot, .cursor-ring, .edit-pencil { display: none !important; }
}


/* =========================================================================
   Direction artistique « portfolio d'architecte » (révision 2026-10)
   - sections numérotées dans les surtitres (01 — À propos, 02 — Nos métiers…)
   - angles nets sur le site public (les pilules restent pour les boutons)
   - couleurs à rôle : encre pour le texte, or pour les repères, vert pour l'action
   ========================================================================= */
body:not(.admin) { --radius: 6px; --radius-sm: 4px; }
main { counter-reset: sec; }
main > section.section:not([hidden]) { counter-increment: sec; }
main > section.section .eyebrow:first-child::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none;
  padding-right: 3rem; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(currentColor, currentColor) right center / 2.25rem 1px no-repeat;
}
.contact-card { align-self: start; border-radius: var(--radius); }
.field input, .field select, .field textarea { border-radius: var(--radius-sm); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }

/* Vague du logo (bleu → eau → vert) : sous le bandeau d'accueil et en tête du pied de page */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wave); }
#accueil { border-bottom: 4px solid transparent; border-image: var(--wave) 1; }
.section--steel .eyebrow { color: var(--gold-soft); }
:root[data-theme="dark"] .section--steel .eyebrow { color: var(--leaf); }
