/* ==========================================================================
   Ajuca Sàrl — feuille de style principale
   Mobile-first. Les animations n'utilisent que transform / opacity
   (exception : tracé SVG stroke-dashoffset sur de très petits éléments).
   ========================================================================== */

/* ---------- 1. Jetons de design ----------
   Teintes relevées sur le fichier original du logo (10.png) :
   bleu marine #023764 (symbole) et bleu clair #0872B9 (maison, texte).
   #0872B9 sur blanc = 5,1:1 → conforme AA, utilisable pour du texte.     */
:root {
  --navy: #023764;
  --navy-2: #0a2c4f;
  --blue: #0872b9;
  --blue-dark: #065e98;
  --blue-soft: #e6f0f8;
  --paper: #f7f5f0;          /* blanc cassé */
  --white: #ffffff;
  --ink: #2b2f33;            /* gris anthracite */
  --muted: #565d64;          /* 6,3:1 sur --paper */
  --wood: #a8743e;           /* touche bois naturel */
  --wood-soft: #efe4d3;
  --line: rgba(2, 55, 100, .14);

  --f-title: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Cinzel", "Trajan Pro", Georgia, serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(2, 55, 100, .06), 0 12px 32px -12px rgba(2, 55, 100, .22);
  --shadow-lg: 0 2px 4px rgba(2, 55, 100, .06), 0 28px 60px -20px rgba(2, 55, 100, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 68px;
  --gutter: 16px;
  --max: 1200px;

  /* Délai de départ des animations du héro : s'allonge si l'écran de
     chargement est affiché, se raccourcit après une transition de page. */
  --intro: .15s;
}
html.show-loader { --intro: 2.1s; }
html.pt-enter { --intro: .5s; }

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 80px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--f-title); color: var(--navy); line-height: 1.1; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.4rem, 7.2vw, 4.9rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus visible très net pour la navigation au clavier */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .footer :focus-visible { outline-color: #8cc8f2; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.section { padding-block: clamp(64px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #dfe9f3; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--wood); border-radius: 2px; }
.section--navy .eyebrow { color: #9fd0f5; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: #c9dbec; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--wood); border-radius: 2px; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- 3. Boutons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--f-text); text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease), border-color .35s, color .35s;
}
/* Survol : une « coulée » bleu clair remonte dans le bouton (transform seulement) */
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--blue);
  border-radius: inherit; transform: translateY(102%); transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost::before { background: var(--navy); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light::before { background: #fff; }
.btn--outline-light:hover { color: var(--navy); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__word { font: 700 1.55rem/1 var(--f-logo); letter-spacing: .08em; background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__sarl { font: 500 .7rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: flex-end; margin: 0 0 4px -4px; }
@media (min-width: 768px) { .logo__mark { width: 52px; height: 52px; } .logo__word { font-size: 1.8rem; } }

/* ---------- 5. En-tête fixe ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  background: rgba(247, 245, 240, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(2,55,100,.45); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { position: relative; display: block; padding: 10px 12px; white-space: nowrap; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__tel { display: none; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; padding: 8px 10px; }
.header__tel svg { width: 18px; height: 18px; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header .btn--sm { padding: 0 16px; }
@media (max-width: 400px) { .header .btn--sm { display: none; } }

/* Menu mobile plein écran */
.mnav { position: fixed; inset: var(--header-h) 0 0; z-index: 59; background: var(--paper); padding: 24px var(--gutter) 120px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.mnav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mnav ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line); }
.mnav a.mnav__link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 600 1.6rem/1.1 var(--f-title); color: var(--navy); text-decoration: none; }
.mnav .mnav__contact { display: grid; gap: 8px; color: var(--muted); }

@media (min-width: 1000px) {
  .nav { display: block; }
  .burger { display: none; }
}
@media (min-width: 1180px) { .header__tel { display: inline-flex; white-space: nowrap; } }

main { display: block; padding-top: var(--header-h); }
[tabindex="-1"]:focus { outline: none; }

/* ---------- 6. Écran de chargement (1re visite de la session) ----------
   Entièrement piloté en CSS : même si le JavaScript échoue, il disparaît
   seul après 2,5 s. Il n'est affiché que si <html> porte .show-loader
   (ajoutée par le petit script en <head>).                              */
.loader { display: none; }
html.show-loader .loader {
  display: block; position: fixed; inset: 0; z-index: 100; pointer-events: auto;
  animation: hide-el 0s linear 2.5s forwards;
}
.loader__bg { position: absolute; inset: 0; background: var(--paper); display: grid; place-items: center; animation: hide-el 0s linear 1.86s forwards; }
.loader__logo { width: min(46vw, 220px); display: grid; justify-items: center; gap: 14px; }
.loader__logo svg { width: 100%; height: auto; overflow: visible; }
/* 1) le fer à cheval puis la maison se tracent… */
.loader .lg-stroke { fill: transparent; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-io) .1s forwards, fill-in .4s ease .95s forwards; }
.loader .lg-hs { stroke: var(--navy); --fill: var(--navy); }
.loader .lg-house { stroke: var(--blue); --fill: var(--blue); animation-delay: .35s, 1.05s; }
.loader__word { font: 700 clamp(1.8rem, 7vw, 2.6rem)/1 var(--f-logo); letter-spacing: .22em; color: var(--navy); opacity: 0; transform: translateY(14px); animation: fade-up .7s var(--ease) .75s forwards; }
/* 2) …puis la coulée bleue recouvre l'écran et se retire vers le bas */
.loader__drip { position: absolute; inset: 0; transform: translateY(calc(-100% - 140px)); animation: loader-drip 1.05s var(--ease-io) 1.4s forwards; }
@keyframes loader-drip { 0% { transform: translateY(calc(-100% - 140px)); } 44%, 52% { transform: translateY(0); } 100% { transform: translateY(calc(100% + 10px)); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill: var(--fill); } }
@keyframes hide-el { to { visibility: hidden; opacity: 0; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
html.loader-skip .loader { display: none !important; }

/* La « coulée » : panneau marine dont le bord inférieur dégouline */
.drip-panel { position: absolute; inset: 0; background: var(--navy); }
.drip-panel svg { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: clamp(60px, 12vh, 120px); fill: var(--navy); }

/* ---------- 7. Transition entre les pages (même coulée bleue) ---------- */
.pt { position: fixed; inset: 0; z-index: 95; pointer-events: none; transform: translateY(calc(-100% - 140px)); }
html.is-leaving .pt { transform: translateY(0); transition: transform .55s var(--ease-io); pointer-events: auto; }
html.pt-enter .pt { animation: pt-out .75s var(--ease-io) .05s both; }
@keyframes pt-out { from { transform: translateY(0); } to { transform: translateY(calc(100% + 10px)); } }

/* ---------- 8. Héro ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(96px, 14vw, 170px); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { margin-bottom: 22px; }
/* Titre ligne par ligne, effet masque */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; transform: translateY(110%); animation: line-up 1s var(--ease) both; animation-delay: calc(var(--intro) + var(--d, 0s)); }
.line:nth-child(2) > span { --d: .12s; }
.line:nth-child(3) > span { --d: .24s; }
.line em { font-style: normal; color: var(--blue); }
@keyframes line-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
/* Sous-titre et boutons : fondu décalé avec légère remontée */
.intro-fade { opacity: 0; animation: intro-fade .9s var(--ease) both; animation-delay: calc(var(--intro) + var(--d, .5s)); }
@keyframes intro-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--wood); }

/* Visuel en arche, encadré par le fer à cheval tracé */
.hero__visual { position: relative; width: min(100%, 520px); margin-inline: auto; }
.hero__frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); transform: translateZ(0); }
.hero__parallax { position: absolute; inset: -8% 0; will-change: transform; }
.hero__parallax img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 55%; animation: ken-burns 14s cubic-bezier(.25,.6,.3,1) both; animation-delay: calc(var(--intro) - .1s); }
@keyframes ken-burns { from { transform: scale(1.22); } to { transform: scale(1.02); } }
.hero__hs { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; overflow: visible; }
.hero__hs path { fill: none; stroke: var(--wood); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease-io) both; animation-delay: calc(var(--intro) + .3s); }
.hero__badge { position: absolute; left: -6px; bottom: 26px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; animation-delay: calc(var(--intro) + .9s); }
.hero__badge strong { font: 650 1.9rem/1 var(--f-title); color: var(--navy); }
.hero__badge span { font-size: .85rem; line-height: 1.3; color: var(--muted); }

/* Coulée bleue de transition héro → bandeau */
.hero__flow { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 10vw, 130px); color: var(--navy); transform-origin: 50% 100%; animation: flow-up 1.2s var(--ease-io) both; animation-delay: calc(var(--intro) + .8s); }
.hero__flow svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes flow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); }
  .hero__title { font-size: clamp(2.4rem, 5.6vw, 4.9rem); }
}
@media (min-width: 900px) {
  .hero__visual { margin-right: 0; }
  .hero__badge { left: -40px; }
}

/* ---------- 9. Bandeau d'engagements ---------- */
.values { background: var(--navy); color: #fff; padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.values__list { list-style: none; margin: 0; padding: 0 clamp(0px, 5vw, 72px); display: grid; gap: clamp(8px, 2vw, 18px); }
.values__item { display: flex; align-items: baseline; gap: clamp(14px, 3vw, 32px); font: 600 clamp(2.3rem, 9vw, 6.5rem)/1 var(--f-title); letter-spacing: -.03em; will-change: transform; }
.values__item:nth-child(2) { justify-content: center; color: #9fd0f5; }
.values__item:nth-child(3) { justify-content: flex-end; }
.values__item small { font: 500 clamp(.8rem, 1.2vw, .95rem)/1.4 var(--f-text); letter-spacing: 0; color: #b8cde2; max-width: 22ch; }
.values__word { display: block; overflow: hidden; padding-bottom: .08em; }
.values__word > span { display: inline-block; }
.values .hs-dot { width: clamp(22px, 3vw, 40px); color: var(--wood); flex: none; align-self: center; }

/* ---------- 10. Révélations au défilement (n'agissent que si JS actif) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal="mask"] { opacity: 1; transform: none; }
html.js [data-reveal="mask"] > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
html.js [data-reveal="scale"] { transform: scale(.96); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="mask"].is-in > span { transform: none; }
/* Filet de sécurité : si main.js ne s'exécute pas, tout redevient visible */
html.reveal-safe [data-reveal], html.reveal-safe [data-reveal] > span { opacity: 1 !important; transform: none !important; }

/* ---------- 11. Séparateur signature : fer à cheval tracé ---------- */
.hs-divider { display: flex; align-items: center; justify-content: center; gap: 18px; padding-block: 8px; color: var(--navy); }
.hs-divider::before, .hs-divider::after { content: ""; height: 1px; width: min(26vw, 220px); background: var(--line); transform: scaleX(0); transition: transform 1.1s var(--ease) .3s; }
.hs-divider::before { transform-origin: right; }
.hs-divider::after { transform-origin: left; }
.hs-divider svg { width: 46px; height: 46px; overflow: visible; }
.hs-divider path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io); }
.hs-divider path + path { stroke: var(--blue); transition-delay: .5s; }
.hs-divider.is-in::before, .hs-divider.is-in::after, html.no-js .hs-divider::before, html.no-js .hs-divider::after { transform: scaleX(1); }
.hs-divider.is-in path, html.no-js .hs-divider path, html.reveal-safe .hs-divider path { stroke-dashoffset: 0; }

/* ---------- 12. Cartes de prestations ---------- */
.services { display: grid; gap: 18px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } .services .card--wide { grid-column: span 2; } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wood-soft); }
.card--wide .card__media { aspect-ratio: 16 / 8; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__body { padding: 22px 24px 26px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card__body h3 { margin: 0; padding-right: 48px; }
.card__body p { margin: 0; color: var(--muted); }
.card__num { position: absolute; top: 14px; left: 14px; z-index: 1; font: 600 .78rem/1 var(--f-text); letter-spacing: .1em; background: rgba(255,255,255,.92); color: var(--navy); padding: 7px 10px; border-radius: 999px; }
.card__arrow { position: absolute; right: 20px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; transform: translate(-10px, 0) scale(.8); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.card__arrow svg { width: 18px; height: 18px; }
/* Survol : élévation, zoom de l'image, apparition de la flèche */
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.07); }
.card:hover .card__arrow, .card:focus-visible .card__arrow { opacity: 1; transform: none; }
@media (hover: none) { .card__arrow { opacity: 1; transform: none; width: 36px; height: 36px; } .card__body p { padding-right: 44px; } }
.card--cta { background: var(--navy); color: #dbe7f3; justify-content: space-between; padding: 28px; min-height: 260px; }
.card--cta h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.card--cta .card__arrow { position: static; opacity: 1; transform: none; background: #fff; color: var(--navy); margin-top: 18px; }
.card--cta:hover { color: #fff; }
.card--cta .hs-bg { position: absolute; right: -40px; bottom: -40px; width: 220px; color: rgba(255,255,255,.07); z-index: -1; }

/* ---------- 13. Réalisations : filtres, grille, avant/après ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; gap: 18px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery.gallery--duo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 22px; } .gallery .g-item--wide { grid-column: span 2; } }
.g-item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.g-item[hidden] { display: none; }
.g-item.is-filtered-in { animation: g-in .5s var(--ease) both; }
@keyframes g-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.g-item__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wood-soft); }
.g-item__media .px { position: absolute; inset: -6% 0; will-change: transform; }
.g-item__media img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { padding: 16px 20px 20px; }
.g-item figcaption strong { display: block; font: 600 1.1rem/1.3 var(--f-title); color: var(--navy); }
.g-item figcaption span { font-size: .92rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); }
.tag--wood { background: var(--wood-soft); color: #6b4520; }

/* Curseur comparatif avant / après — uniquement des transforms :
   le calque « avant » est décalé de -(100-p)% et son image de +(100-p)%.  */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #222; --p: 50; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.g-item--wide .ba { aspect-ratio: 16 / 9; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; overflow: hidden; transform: translateX(calc((var(--p) - 100) * 1%)); will-change: transform; }
.ba__before img { transform: translateX(calc((100 - var(--p)) * 1%)); will-change: transform; }
.ba__line { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; transform: translateX(calc(var(--p) * 1%)); will-change: transform; }
.ba__line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba__knob { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.ba__knob svg { width: 26px; height: 26px; }
.ba:hover .ba__knob, .ba.is-dragging .ba__knob { transform: scale(1.08); }
.ba__label { position: absolute; top: 14px; z-index: 2; font: 600 .75rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; background: rgba(2,55,100,.82); color: #fff; pointer-events: none; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; background: rgba(255,255,255,.92); color: var(--navy); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- 14. À propos (teaser), clientèle, démarche ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.split__media .px { position: absolute; inset: -8% 0; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.wood-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, #b9824a 0 34px, #a8743e 34px 36px, #c3915c 36px 80px, #a06a35 80px 82px); opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 30px; }
.stat { border-left: 2px solid var(--wood); padding-left: 14px; }
.stat strong { display: block; font: 650 clamp(1.6rem, 3.2vw, 2.3rem)/1 var(--f-title); color: var(--navy); }
.stat span { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }

.audiences { display: grid; gap: 16px; }
@media (min-width: 800px) { .audiences { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.audience { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
.audience__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(159,208,245,.14); color: #9fd0f5; margin-bottom: 22px; }
.audience__icon svg { width: 26px; height: 26px; }
.audience h3 { margin-bottom: 10px; }
.audience p { margin: 0; color: #c9dbec; font-size: 1.05rem; }

.steps-outer { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.steps__track { position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps__progress { position: absolute; inset: 0; background: linear-gradient(var(--blue), var(--navy)); transform: scaleY(0); transform-origin: top; will-change: transform; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); color: var(--navy); display: grid; place-items: center; font: 650 1.3rem/1 var(--f-title); position: relative; z-index: 1; transition: background .5s, color .5s; }
.step.is-in .step__num { background: var(--navy); color: #fff; }
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps__track { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .steps__progress { transform: scaleX(0); transform-origin: left; }
  .step { grid-template-columns: 1fr; }
  .step h3 { margin-top: 8px; }
}

/* ---------- 15. Formulaire de devis et coordonnées ---------- */
.contact { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .contact { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.form { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field .req { color: #b42318; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9d2db; border-radius: var(--radius-sm); background: #fbfcfd; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(8,114,185,.18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; max-width: 420px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 10px; text-align: center; border-radius: 999px; border: 1.5px solid #c9d2db; cursor: pointer; font-weight: 500; transition: all .2s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; }
.form__status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form__status.is-ok { color: #1a7f37; }
.form__status.is-err { color: #b42318; }
.form .btn { justify-self: start; }

.coords { display: grid; gap: 18px; }
.coords__card { background: var(--navy); color: #d6e3f0; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); position: relative; overflow: hidden; }
.coords__card h3 { color: #fff; margin-bottom: 18px; }
.coords__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.coords__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.coords__list svg { width: 20px; height: 20px; margin-top: 3px; color: #9fd0f5; }
.coords__list a { color: #fff; text-decoration: none; font-weight: 600; }
.coords__list a:hover { color: #9fd0f5; text-decoration: underline; }
.coords__list small { display: block; color: #a9c1d8; font-size: .82rem; }
.coords__card .hs-bg { position: absolute; right: -50px; bottom: -60px; width: 240px; color: rgba(255,255,255,.06); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--wood-soft); aspect-ratio: 4 / 3; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__link { display: inline-block; margin-top: 10px; font-size: .9rem; }

/* ---------- 16. Pages intérieures : bandeau, FAQ, CTA ---------- */
.page-hero { position: relative; padding: clamp(36px, 7vw, 90px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.page-hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 720px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); } .page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 4rem); } }
.page-hero__media { position: relative; aspect-ratio: 4 / 3; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.page-hero__media .px { position: absolute; inset: -8% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: ken-burns 12s cubic-bezier(.25,.6,.3,1) both; }
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; max-width: 820px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa3ab; }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.2rem, 5.8vw, 4rem); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose .muted { margin-top: 2.4em; font-size: .88rem; opacity: .7; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0 0 1.5em; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23023764' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 1.08rem/1.4 var(--f-title); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }

.cta-band { position: relative; background: var(--navy); color: #d6e3f0; border-radius: clamp(18px, 3vw, 28px); padding: clamp(32px, 6vw, 64px); overflow: hidden; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band .hs-bg { position: absolute; right: -60px; top: -40px; width: 300px; color: rgba(255,255,255,.06); pointer-events: none; }
.cta-band .btn-row { position: relative; }

.other-services { display: flex; flex-wrap: wrap; gap: 10px; }
.other-services a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; transition: border-color .3s, background .3s, color .3s; }
.other-services a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.values-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--wood); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { margin: 0; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.timeline strong { display: block; font: 650 1.25rem/1.2 var(--f-title); color: var(--navy); margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

.legal-note { background: var(--wood-soft); border-left: 4px solid var(--wood); padding: 16px 20px; border-radius: 8px; color: #5a3b1b; margin-bottom: 2em; }

/* ---------- 17. Pied de page ---------- */
.footer { background: var(--navy-2); color: #b9cbdd; padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.footer .hs-bg { position: absolute; right: -80px; bottom: -120px; width: 420px; color: rgba(255,255,255,.035); pointer-events: none; }
.footer__grid { display: grid; gap: 40px; position: relative; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.25fr .7fr .9fr 1.1fr; } }
.footer .logo__word { background: linear-gradient(180deg, #9fd0f5, #fff); -webkit-background-clip: text; background-clip: text; }
.footer .logo__sarl { color: #9fb5cb; }
.footer__brand p { margin: 18px 0 22px; max-width: 34ch; }
.footer h2, .footer__title { font: 600 .8rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #e3edf6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .btn--light { color: var(--navy); text-decoration: none; }
.footer .btn--light:hover { color: #fff; }
.footer .logo__mark path[fill="#023764"] { fill: #e3edf6; }
.footer address { font-style: normal; display: grid; gap: 8px; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; position: relative; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- 18. Barre d'actions mobile flottante ---------- */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 110; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 40px -12px rgba(2,55,100,.45); }
.mbar .btn { min-height: 48px; padding: 0 14px; }
.mbar .btn--ghost { border-color: transparent; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
/* Pulsation discrète du « Devis gratuit » après quelques secondes */
.mbar .btn--pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(8,114,185,.55); opacity: 0; }
.mbar.is-pulsing .btn--pulse::after { animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(8,114,185,.55); } 70% { opacity: 0; transform: scale(1.12); box-shadow: 0 0 0 10px rgba(8,114,185,0); } 100% { opacity: 0; } }

/* ---------- 19. Curseur personnalisé (ordinateur uniquement) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid var(--blue); pointer-events: none; opacity: 0; transition: opacity .3s, width .3s, height .3s; will-change: transform; }
.cursor__in { position: absolute; inset: 0; border-radius: 50%; background: var(--blue); opacity: 0; transform: scale(.2); transition: transform .35s var(--ease), opacity .35s; }
.cursor.is-visible { opacity: .7; }
.cursor.is-hover .cursor__in { opacity: .18; transform: scale(1.5); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 20. Utilitaires ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.gap-top { margin-top: clamp(28px, 4vw, 44px); }
.hs-bg { display: block; }

/* ---------- 21. Réduire les mouvements ----------
   On coupe tout ce qui n'est pas essentiel : écran de chargement,
   Ken Burns, parallaxe, coulées, révélations, pulsation, curseur. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.show-loader .loader, .pt, .cursor { display: none !important; }
  .line > span, .intro-fade, .hero__flow, .hero__parallax img, .page-hero__media img { animation: none !important; transform: none !important; opacity: 1 !important; }
  .hero__hs path { animation: none !important; stroke-dashoffset: 0; }
  html.js [data-reveal], html.js [data-reveal] > span { opacity: 1 !important; transform: none !important; }
  .hs-divider path { stroke-dashoffset: 0; }
  .hs-divider::before, .hs-divider::after { transform: none; }
}

/* ---------- 22. Impression ---------- */
@media print { .header, .mbar, .loader, .pt, .cursor, .hero__flow { display: none !important; } main { padding: 0; } }

/* ---------- 23. Ajustements petits écrans ---------- */
@media (max-width: 479px) {
  .eyebrow { font-size: .7rem; letter-spacing: .1em; gap: 8px; }
  .eyebrow::before { width: 18px; }
  .btn-row > .btn { flex: 1 1 100%; }
  .form { padding: 20px 16px; }
  .hero__visual { width: min(100%, 340px); }
  .hero__badge { padding: 10px 14px; bottom: 16px; }
  .hero__badge strong { font-size: 1.5rem; }
  .card__body { padding: 18px 18px 22px; }
  .cta-band { padding: 28px 20px; }
  .faq summary { padding: 18px 48px 18px 18px; font-size: 1rem; }
  .faq details > div { padding: 0 18px 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359px) {
  .logo__sarl { display: none; }
  .logo__word { font-size: 1.35rem; }
}
/* Téléphone en paysage : visuel du héro plus petit */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__visual { width: min(100%, 360px); }
}
