/* ==========================================================================
   PureFlow — page professionnelle (/professionnel)
   Feuille propre a index.html. style.css reste utilise par 404.html et
   50x.html : ne pas le supprimer.
   ========================================================================== */

:root {
  --ink: #1E2320;          /* texte principal, anthracite */
  --ink-soft: #4A514C;     /* texte secondaire */
  --muted: #646B66;        /* aides, legendes (contraste AA sur blanc) */
  --bg: #FFFFFF;
  --bg-alt: #F7F6F0;       /* blanc casse des sections alternees */
  --paper: #FBFAF5;
  --line: #E3E1D7;
  --line-strong: #CFCCBE;
  --action: #2D5A22;       /* vert sombre des actions (7,6:1 sur blanc) */
  --action-hover: #22461A;
  --green: #4C7A2E;        /* vert PureFlow historique */
  --green-soft: #E7EFDC;   /* vert clair, avec parcimonie */
  --yellow-soft: #F6F1D3;  /* jaune pale, avec parcimonie */
  --error: #A4231A;
  --error-bg: #FCEDEB;
  --ok-bg: #EDF4E4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(30, 35, 32, .06), 0 4px 14px -8px rgba(30, 35, 32, .14);
  --shadow: 0 2px 4px rgba(30, 35, 32, .04), 0 18px 40px -22px rgba(30, 35, 32, .28);
  --ff: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  /* Ancres (#contact, #faq...) : le titre ne passe pas sous l'en-tete fixe. */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--action); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

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

/* Focus visible partout, clavier uniquement. */
:focus { outline: none; }
:focus-visible { outline: 3px solid #1D6FD8; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .75; cursor: progress; }

.eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}

/* ---------- En-tete ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(30, 35, 32, .4); }

.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; flex: none; }
.brand .logo-mark { width: 32px; height: 32px; }
.brand .flow { color: var(--green); }
.brand-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--green-soft); color: var(--action);
}

.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-secondary { color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-secondary:hover { color: var(--ink); text-decoration: underline; }
.lbl-short { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  border-top: 1px solid var(--line); background: #fff;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-panel nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.mobile-panel nav > a:not(.btn) {
  padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.mobile-panel .btn { margin-top: 18px; }
.mobile-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* Selecteur de langue (partage avec i18n.js) */
.lang-switch { position: relative; font-size: .88rem; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 700; color: var(--ink); user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--line-strong); }
.lang-switch summary svg { width: 16px; height: 16px; flex: none; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; z-index: 120;
}
.lang-switch a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lang-switch a:hover { background: var(--bg-alt); }
.lang-switch a[aria-current] { color: var(--action); }
.lang-switch a[aria-current]::after { content: " ✓"; }
.lang-switch-up ul { top: auto; bottom: calc(100% + 8px); }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-top: 10px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- 1. Presentation ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 88px; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; margin-top: 16px; }
.h1-sub { display: block; color: var(--green); }
.lead { margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; }
.hero-proof li { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.hero-proof svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.starter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.starter-title { font-size: 1.08rem; font-weight: 800; }
.starter-list { margin-top: 18px; border-top: 1px solid var(--line); }
.starter-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.starter-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; }
.starter-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--action); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.starter-list strong { display: block; font-size: 1rem; }
.starter-list small { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.starter-link { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 700; text-decoration: none; min-height: 44px; align-items: center; }
.starter-link:hover { text-decoration: underline; }

/* ---------- 2. Besoins ---------- */
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.need { position: relative; padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.need:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.need-num { font-size: .85rem; font-weight: 800; color: var(--green); letter-spacing: .08em; }
.need h3 { font-size: 1.32rem; font-weight: 800; margin-top: 10px; }
.need > p { margin-top: 12px; color: var(--ink-soft); }
.need dl { margin: 18px 0 0; display: grid; gap: 4px; font-size: .96rem; }
.need dt { font-weight: 700; color: var(--ink); margin-top: 8px; }
.need dd { margin: 0; color: var(--ink-soft); }
.need-link { margin-top: auto; padding-top: 20px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; min-height: 44px; align-items: center; align-self: flex-start; }
.need-link:hover { text-decoration: underline; }

.means { margin-top: 64px; background: var(--bg-alt); border-radius: var(--radius); padding: 36px 40px; }
.means-title { font-size: 1.15rem; font-weight: 800; }
.means-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.mean { border-top: 2px solid var(--green); padding-top: 14px; }
.mean h4 { font-size: 1.02rem; font-weight: 800; }
.mean p { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- 3. Realisations ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-media { margin: 0; position: relative; background: var(--bg-alt); }
.work-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-media figcaption {
  position: absolute; left: 12px; bottom: 12px; font-size: .74rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--ink-soft); padding: 4px 9px; border-radius: 999px;
}
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-tag { font-size: .78rem; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.work h3 { font-size: 1.22rem; font-weight: 800; margin-top: 8px; }
.work-body > p:not(.work-tag) { margin-top: 10px; color: var(--ink-soft); font-size: .97rem; }
.work-shows strong { color: var(--ink); }
.work-link { margin-top: auto; padding-top: 16px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; min-height: 44px; align-items: center; align-self: flex-start; }
.work-link:hover { text-decoration: underline; }

/* ---------- 4. Deroulement ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.step { position: relative; padding-top: 58px; }
.step::before { content: ""; position: absolute; top: 20px; left: 52px; right: -24px; height: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--action);
  border: 1.5px solid var(--action);
}
.step h3 { font-size: 1.1rem; font-weight: 800; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: .97rem; }
.validation {
  margin-top: 44px; display: flex; gap: 12px; align-items: center;
  background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--ink);
}
.validation svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--action); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 5. Capacites ---------- */
.caps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.specs { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.spec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec:last-child { border-bottom: 0; }
.spec dt { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.spec dd { margin: 6px 0 0; color: var(--ink); font-size: .98rem; }

.materials { min-width: 0; }
.mat-scroll { overflow-x: auto; }
.materials h3 { font-size: 1.3rem; font-weight: 800; }
.materials-intro { margin-top: 8px; color: var(--ink-soft); }
.mat-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mat-table th, .mat-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mat-table thead th { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); }
.mat-table tbody th { font-weight: 800; white-space: nowrap; }
.mat-table tbody tr:last-child > * { border-bottom: 0; }
.mat-table td { color: var(--ink-soft); }
.note { margin-top: 12px; font-size: .9rem; color: var(--muted); }

.caps-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.cap-note { background: #fff; border-left: 3px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; }
.cap-note h3 { font-size: 1.1rem; font-weight: 800; }
.cap-note p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }

/* ---------- 6. Atelier ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow); }
.about-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.about-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-top: 10px; }
.about-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .98rem; }
.facts li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D5A22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- 7. FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 700; font-size: 1.06rem; min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2320' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover span { color: var(--action); }
.faq-a { padding: 0 48px 22px 0; color: var(--ink-soft); }

/* ---------- 8. Devis ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.fs { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.fs legend { font-size: 1.05rem; font-weight: 800; padding: 0; margin-bottom: 16px; }
.fs-optional { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 20px 4px; }
.fs-optional legend { float: left; width: 100%; margin-bottom: 14px; }
.fs-optional legend + * { clear: both; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.req, .opt { font-weight: 500; color: var(--muted); font-size: .86rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2320' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--action); box-shadow: 0 0 0 3px rgba(45, 90, 34, .18); outline: none; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; font-size: .92rem; color: var(--ink-soft); }
.field-help ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.field-help li { margin: 2px 0; }
.hint { font-size: .86rem; color: var(--muted); margin-top: 7px; }

.dropzone {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 112px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s;
  margin-bottom: 0 !important;
}
.dropzone svg { width: 26px; height: 26px; fill: none; stroke: var(--action); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-main { font-weight: 700; color: var(--action); }
.dz-sub { font-weight: 500; font-size: .88rem; color: var(--muted); }
.dropzone:hover, .dropzone.is-over { border-color: var(--action); background: var(--green-soft); }
#fichiers:focus-visible + .hint, .field:focus-within .dropzone { border-color: var(--action); }
.field:has(#fichiers:focus-visible) .dropzone { outline: 3px solid #1D6FD8; outline-offset: 3px; }
.file-list { margin-top: 10px; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { color: var(--muted); flex: none; }
.file-remove { flex: none; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: .86rem; }
.file-remove:hover { border-color: var(--error); color: var(--error); }

.btn-submit { width: 100%; min-height: 54px; font-size: 1.05rem; }
.btn-submit.is-loading .btn-label::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: pf-spin .8s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }

.form-status, .form-error { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .97rem; }
.form-status { background: var(--ok-bg); border: 1px solid #C8DDB4; color: #1F4318; font-weight: 600; }
.form-error { background: var(--error-bg); border: 1px solid #F0C5C0; color: var(--error); }
.form-status[hidden], .form-error[hidden] { display: none; }

/* Retire du flux sans display:none, que certains robots savent detecter. */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-block h3 { font-size: 1.08rem; font-weight: 800; }
.aside-block p { margin-top: 10px; color: var(--ink-soft); font-size: .97rem; }
.contact-links { margin-top: 12px; display: grid; gap: 4px; }
.contact-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-links a:hover span { text-decoration: underline; }
.contact-links svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--action); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aside-note { font-size: .9rem !important; color: var(--muted) !important; }

/* ---------- 9. Pied de page ---------- */
.site-footer { background: #1C211E; color: #D9DDD6; padding: 72px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .95rem; color: #BFC5BC; max-width: 340px; }
.footer-brand .signature { font-style: italic; color: #E3E8DC; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col h2 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #9EA69B; margin-bottom: 8px; }
.footer-col a, .footer-cookies {
  color: #E9ECE5; text-decoration: none; font-size: .95rem; min-height: 36px; display: inline-flex; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.footer-col a:hover, .footer-cookies:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 10px; }
.socials a { width: 44px; height: 44px; border: 1px solid #3A423C; border-radius: 50%; display: grid !important; place-items: center; }
.socials a:hover { border-color: #fff; }
.socials svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid #333A35; font-size: .88rem; color: #A6ADA3; }
.site-footer .lang-switch summary { background: transparent; color: #fff; border-color: #3A423C; }
.site-footer .lang-switch ul { right: 0; left: auto; }

/* ---------- Bandeau cookies (consent.js) ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 44px; }

/* ---------- Apparition au defilement ----------
   Uniquement si script.js a pu s'executer (classe posee sur <html>) et que
   le visiteur n'a pas demande a limiter les animations : sans script, tout
   reste visible. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ----------
   Points de rupture en em : ils suivent aussi la taille de texte choisie
   dans les reglages du navigateur (1em = 16px par defaut). */
@media (max-width: 70em) {
  .nav-links { gap: 20px; margin-left: 4px; }
  .nav-secondary { display: none; }
  .means-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60em) {
  .nav-links, .lang-switch-header { display: none; }
  .nav-toggle { display: flex; }
  .mobile-panel .nav-secondary { display: inline; }
  .hero-grid, .caps-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .hero-grid { gap: 40px; }
  .starter { max-width: 560px; }
  .about-photo { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::before { display: none; }
  .works { gap: 16px; }
  .work-body { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 47.5em) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 56px; }
  .lead { font-size: 1.06rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { flex-direction: column; gap: 10px; }
  .starter { padding: 22px; }
  .needs { grid-template-columns: minmax(0, 1fr); }
  .need, .need:nth-child(even) { padding: 28px 0; border-left: 0; }
  .means { padding: 26px 20px; margin-top: 40px; }
  .means-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work-media img { aspect-ratio: 1 / 1; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step { padding: 0 0 28px 60px; }
  .step::before { top: 46px; bottom: 4px; left: 20px; right: auto; width: 1px; height: auto; display: block !important; }
  .step:last-child::before { display: none !important; }
  .validation { align-items: flex-start; }
  .specs { padding: 4px 18px; }
  .caps-notes { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  /* Tableau des materiaux : une fiche par matiere sur petit ecran. */
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table th, .mat-table td { display: block; width: 100%; }
  .mat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mat-table tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .mat-table tbody tr:last-child { border-bottom: 0; }
  .mat-table th, .mat-table td { padding: 0; border: 0; }
  .mat-table tbody th { font-size: 1.05rem; margin-bottom: 6px; }
  .mat-table td + td { margin-top: 8px; }
  .mat-table td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
  .about-grid { gap: 32px; }
  .faq-a { padding-right: 0; }
  .quote-form { padding: 22px 18px; }
  .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); }
  .fs-optional { padding: 16px 16px 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 26.25em) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
  .brand-tag { display: none; }
}

/* ==========================================================================
   MOUVEMENT
   Trois familles seulement, pour que la page reste lisible :
   1. l'entree du premier ecran, au chargement ;
   2. l'apparition des blocs au defilement, en cascade ;
   3. les reactions au survol (fleches, photos, cartes).
   Tout est pose par script.js via la classe .js-anime sur <html> : sans
   JavaScript, ou si le visiteur a demande de limiter les animations, la page
   s'affiche telle quelle, complete et immobile (voir le bloc
   prefers-reduced-motion plus haut, qui coupe animations et transitions).
   ========================================================================== */

/* ---------- 1. Entree du premier ecran ---------- */
.js-anime [data-anime="hero"] > * { opacity: 0; transform: translateY(18px); }
.js-anime [data-anime="hero"].in > * { animation: pf-monte .62s cubic-bezier(.22,.7,.3,1) forwards; }
.js-anime [data-anime="hero"].in > *:nth-child(1) { animation-delay: .04s; }
.js-anime [data-anime="hero"].in > *:nth-child(2) { animation-delay: .12s; }
.js-anime [data-anime="hero"].in > *:nth-child(3) { animation-delay: .20s; }
.js-anime [data-anime="hero"].in > *:nth-child(4) { animation-delay: .28s; }
.js-anime [data-anime="hero"].in > *:nth-child(5) { animation-delay: .36s; }
@keyframes pf-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.js-anime [data-anime="carte"] { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.7,.3,1); }
.js-anime [data-anime="carte"].in { opacity: 1; transform: none; }

/* ---------- 2. Apparition en cascade ----------
   Le delai de chaque enfant est calcule par script.js (--d) : une liste de
   quatre elements se pose en 0,3 s, pas une par seconde. */
.js-anime [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.7,.3,1); transition-delay: var(--d, 0ms); }
.js-anime [data-stagger].in > * { opacity: 1; transform: none; }

/* Le trait qui relie les etapes se trace quand la rubrique arrive. */
.js-anime .steps .step::before { transform: scaleX(0); transform-origin: left center; transition: transform .7s cubic-bezier(.22,.7,.3,1); transition-delay: calc(var(--d, 0ms) + 120ms); }
.js-anime .steps.in .step::before { transform: scaleX(1); }
@media (max-width: 47.5em) {
  .js-anime .steps .step::before { transform: scaleY(0); transform-origin: center top; }
  .js-anime .steps.in .step::before { transform: scaleY(1); }
}

/* Le numero d'etape se pose apres son texte. */
.js-anime .steps .step-num { transform: scale(.7); opacity: 0; transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; transition-delay: calc(var(--d, 0ms) + 60ms); }
.js-anime .steps.in .step-num { transform: none; opacity: 1; }

/* La coche de validation se dessine. */
.js-anime .validation svg path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.js-anime .validation.in svg path { animation: pf-trace .5s .15s ease forwards; }
@keyframes pf-trace { to { stroke-dashoffset: 0; } }

/* La photo de l'atelier se rapproche legerement en apparaissant. */
.js-anime .about-photo img { transform: scale(1.06); transition: transform 1.1s cubic-bezier(.22,.7,.3,1); }
.js-anime .about-photo.in img { transform: none; }

/* ---------- 3. Reactions au survol ---------- */
.fleche { display: inline-block; transition: transform .25s cubic-bezier(.22,.7,.3,1); }
a:hover .fleche, a:focus-visible .fleche { transform: translateX(5px); }

.need { transition: transform .3s ease; }
.need::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--green); transition: width .45s cubic-bezier(.22,.7,.3,1);
}
.need:nth-child(even)::after { left: 40px; }
.need:hover::after { width: 64px; }
.need:hover h3 { color: var(--action); }
.need h3 { transition: color .25s ease; }

.work { transition: transform .35s cubic-bezier(.22,.7,.3,1), box-shadow .35s ease; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-media { overflow: hidden; }
.work-media img { transition: transform .7s cubic-bezier(.22,.7,.3,1); }
.work:hover .work-media img { transform: scale(1.05); }

.mean { transition: transform .3s ease, border-color .3s ease; }
.mean:hover { transform: translateY(-4px); border-color: var(--action); }

.spec { transition: background-color .25s ease; border-radius: 8px; }
.spec:hover { background: var(--paper); }

.mat-table tbody tr { transition: background-color .25s ease; }
.mat-table tbody tr:hover { background: var(--paper); }

/* La reponse d'une question glisse a l'ouverture. */
.faq-item[open] .faq-a { animation: pf-deplie .35s ease; }
@keyframes pf-deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Boutons : une reponse nette au survol, sans clignotement. */
.btn-primary { transition: background-color .15s, border-color .15s, color .15s, transform .18s cubic-bezier(.22,.7,.3,1), box-shadow .25s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(45, 90, 34, .8); }
.btn-primary:active { transform: translateY(0); }

/* ==========================================================================
   ILLUSTRATIONS
   Des dessins, jamais des photos truquees : aucune de ces images ne pretend
   montrer une piece client. Les vraies photos (lampes de la collection,
   atelier) restent les seules images photographiques de la page.
   ========================================================================== */

/* Le fil du schema multicolore se devide en continu. */
@keyframes pf-devide { to { stroke-dashoffset: -14; } }

/* ---------- Services : quatre cartes illustrees, cliquables ---------- */
.cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.carte {
  display: block; padding: 28px 24px 26px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s cubic-bezier(.22,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--action); }
.carte-illu { display: block; width: 64px; height: 64px; }
.carte-illu svg { width: 100%; height: 100%; fill: none; stroke: var(--action); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.carte-illu svg path:first-child { fill: var(--green-soft); }
.carte h3 { margin-top: 18px; font-size: 1.12rem; font-weight: 800; }
.carte p { margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }
.carte::after {
  content: "→"; display: block; margin-top: 14px; font-weight: 800; color: var(--action);
  transform: translateX(-4px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.carte:hover::after, .carte:focus-visible::after { transform: none; opacity: 1; }

/* ---------- Realisations ---------- */
.works-note { margin-top: 26px; text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- Etapes : un pictogramme par etape ---------- */
.step-illu { display: block; width: 46px; height: 46px; margin: 14px 0 12px; }
.step-illu svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Capacites : deux schemas ---------- */
.caps-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.caps-visuels { display: grid; gap: 22px; }
.schema {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; text-align: center;
}
.schema svg { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.schema figcaption { margin-top: 8px; font-weight: 800; font-size: .95rem; }
.schema-cube path, .schema-cotes path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.schema-piece path { fill: var(--green-soft); stroke: var(--action); stroke-width: 2; stroke-linejoin: round; }
.schema-bobines circle { fill: var(--yellow-soft); stroke: var(--action); stroke-width: 2; }
.schema-bobines circle:nth-child(2) { fill: var(--green-soft); }
.schema-bobines circle:nth-child(3) { fill: #E8DCCB; }
.schema-bobines circle:nth-child(4) { fill: #DCE6D0; }
.schema-bobines path { fill: none; stroke: var(--line-strong); stroke-width: 1.8; }
.caps-donnees { display: grid; gap: 26px; }

/* Les quatre fils du schema multicolore se devident en continu, comme celui
   du premier ecran : meme cadence, meme lecture. */
.js-anime .caps-visuels.in .schema-bobines path {
  stroke-dasharray: 7 4; animation: pf-devide 1.2s linear infinite;
}

/* Le trait des schemas se dessine a l'arrivee de la rubrique. */
.js-anime .schema svg path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.js-anime .caps-visuels.in .schema svg path { animation: pf-trait 1.1s ease forwards; }
.js-anime .caps-visuels.in .schema:nth-child(2) svg path { animation-delay: .15s; }
@keyframes pf-trait { to { stroke-dashoffset: 0; } }

/* ---------- Devis : les precisions facultatives se deplient ---------- */
.fs-optional { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; margin-bottom: 22px; background: var(--paper); }
.fs-optional > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center; min-height: 48px;
}
.fs-optional > summary::-webkit-details-marker { display: none; }
.fs-optional > summary::after { content: "+"; font-size: 1.2rem; color: var(--action); }
.fs-optional[open] > summary::after { content: "–"; }
.fs-optional[open] > summary { border-bottom: 1px solid var(--line); }
.fs-optional .form-row { padding: 18px 18px 0; }

@media (max-width: 70em) {
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60em) {
  .caps-grid { grid-template-columns: minmax(0, 1fr); }
  .caps-visuels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.5em) {
  .cartes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .carte { padding: 22px 20px; }
  .caps-visuels { grid-template-columns: minmax(0, 1fr); }
  .hero-illu svg { max-width: 300px; }
  .step-illu { margin: 10px 0 8px; }
}

/* ==========================================================================
   PREMIER ECRAN : LA PHOTO DE L'ATELIER, PLEIN ECRAN
   Le texte est pose dessus, sur un voile sombre qui garantit le contraste
   quelle que soit la zone de la photo qui se trouve derriere.
   ========================================================================== */
.hero-photo {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 9vh, 96px);
  overflow: hidden; border-bottom: 0; background: #14100D;
}
.hero-fond { position: absolute; inset: 0; z-index: 0; display: block; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* Zoom tres lent : la photo respire, sans jamais attirer l'oeil plus que le
   texte. Coupe si le visiteur a demande moins d'animations. */
.js-anime .hero-fond img { animation: pf-respire 26s ease-in-out infinite alternate; }
@keyframes pf-respire { from { transform: scale(1); } to { transform: scale(1.07); } }

.hero-voile {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Assez de voile pour que le texte blanc reste lisible, pas assez pour
     eteindre la photo : elle est deja sombre d'elle-meme. */
  background:
    linear-gradient(180deg, rgba(12, 9, 7, .42) 0%, rgba(12, 9, 7, .10) 34%, rgba(12, 9, 7, .58) 100%),
    linear-gradient(90deg, rgba(12, 9, 7, .58) 0%, rgba(12, 9, 7, .12) 52%, rgba(12, 9, 7, 0) 72%);
}
/* Le bloc garde la colonne de la page (meme gouttiere que le logo et que
   les sections) ; ce sont ses enfants qui sont bornes et cales a gauche,
   pour que le texte ne parte jamais du bord brut de l ecran. */
.hero-contenu { position: relative; z-index: 2; text-align: left; }
.hero-contenu > * { max-width: 680px; margin-right: auto; }
.hero-photo .eyebrow { color: #EBD9B8; }
.hero-photo h1 { color: #fff; margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-photo .h1-sub { color: #CFE0B8; }
.hero-photo .hero-actions { margin-top: 30px; }
.hero-photo .hero-proof { margin-top: 30px; color: #F1EDE6; }
.hero-photo .hero-proof li { color: #F1EDE6; }
.hero-photo .hero-proof svg { stroke: #CFE0B8; }

/* Bouton clair, lisible sur la photo. */
.btn-clair { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-clair:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }

/* En-tete transparent tant qu'on est sur la photo, plein des qu'on descend
   (script.js pose .scrolled). */
.site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header:not(.scrolled) .brand, .site-header:not(.scrolled) .nav-links a { color: #fff; }
.site-header:not(.scrolled) .brand .flow { color: #CFE0B8; }
.site-header:not(.scrolled) .brand-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.site-header:not(.scrolled) .nav-secondary { color: rgba(255, 255, 255, .82); }
.site-header:not(.scrolled) .lang-switch summary { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); color: #fff; }
.site-header:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.site-header:not(.scrolled) .skip-link:focus { color: #fff; }

/* L'atelier : sans photo (elle est en haut), le bloc tient en une bande. */
.about-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-simple .facts { margin-top: 0; }

@media (max-width: 60em) {
  .about-simple { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 47.5em) {
  .hero-photo { min-height: 92svh; padding-bottom: 42px; }
  .hero-fond img { object-position: 50% 42%; }
  .hero-voile { background: linear-gradient(180deg, rgba(12, 9, 7, .34) 0%, rgba(12, 9, 7, .12) 28%, rgba(12, 9, 7, .72) 78%, rgba(12, 9, 7, .82) 100%); }
}
