/* ==========================================================================
   QONOD — v3 « papier de chantier »
   Papier millimétré clair par défaut ; mode nuit = blueprint
   ([data-theme="dark"] sur <html>).
   Types : Anton (titres pochoir) · Public Sans (texte) · IBM Plex Mono (cotes).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8f7f3;
  --card: #ffffff;
  --ink: #1a2e40;
  --ink-soft: #4a6076;
  --ink-faint: #8195a8;
  --blue: #17548a;
  --blue-wash: #e9f0f7;
  --orange: #e8500f;
  --orange-hover: #c94508;
  --line: #d9dfe6;
  --line-strong: #b7c4d0;
  --grid: rgba(23, 84, 138, 0.055);
  --grid-major: rgba(23, 84, 138, 0.11);
  --panel-ink: #14344f;      /* panneau CTA bleu nuit */
  --panel-ink-text: #eef4fa;
  --shadow: 0 1px 2px rgba(20, 46, 66, 0.06), 0 12px 32px rgba(20, 46, 66, 0.07);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

:root[data-theme="dark"] {
  --bg: #0e2b45;
  --card: #113450;
  --ink: #eaf2f9;
  --ink-soft: #a9c0d4;
  --ink-faint: #7c97ac;
  --blue: #85b8e2;
  --blue-wash: rgba(133, 184, 226, 0.13);
  --orange: #ff6a2a;
  --orange-hover: #ff8047;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --grid: rgba(255, 255, 255, 0.05);
  --grid-major: rgba(255, 255, 255, 0.09);
  --panel-ink: #0a2036;
  --panel-ink-text: #eaf2f9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 36px rgba(0, 0, 0, 0.3);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* papier millimétré : grille fine + grille majeure */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px, 80px 80px, 80px 80px;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- Typographie ---------- */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 0.98;
}

h3 {
  font-weight: 800;
  line-height: 1.25;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex-shrink: 0;
  background: var(--orange);
}

.center .eyebrow {
  justify-content: center;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 54px);
  margin-bottom: 18px;
}

.section-title .accent {
  color: var(--orange);
}

.section-lead {
  max-width: 580px;
  font-size: 17px;
  color: var(--ink-soft);
}

.center .section-lead {
  margin-inline: auto;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---------- Structure ---------- */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 92px;
}

.section-head {
  margin-bottom: 56px;
}

.center {
  text-align: center;
}

/* Panneau « feuille » posé sur le papier millimétré */
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-ghost {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: var(--card);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}

:root[data-theme="dark"] .site-header {
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.active {
  color: var(--ink);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  background: var(--card);
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--blue);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--card);
}

.burger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  padding-top: 84px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 86px);
  margin-bottom: 26px;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 36px;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* Héros de page intérieure */
.page-hero {
  padding-top: 84px;
  padding-bottom: 56px;
}

.page-hero h1 {
  max-width: 800px;
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
}

.page-hero h1 .accent {
  color: var(--orange);
}

.page-hero .section-lead {
  font-size: 18px;
}

.page-hero.center h1 {
  margin-inline: auto;
}

/* ---------- Cotes (statistiques en ligne de cote) ---------- */
.dims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1.5px solid var(--line-strong);
}

.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
}

.dim-line {
  position: relative;
  flex: 1;
  height: 1.5px;
  background: currentColor;
}

.dim-line:first-child::before,
.dim-line:last-child::after {
  content: "";
  position: absolute;
  top: -5.5px;
  width: 1.5px;
  height: 13px;
  background: currentColor;
}

.dim-line:first-child::before { left: 0; }
.dim-line:last-child::after { right: 0; }

.dim-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.dim-label {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Démo : le devis qui s'écrit tout seul ---------- */
.demo {
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
}

/* Hauteur réservée pour l'animation : le contenu change (texte qui se tape,
   lignes qui apparaissent, bulle de remise) sans jamais pousser la page.
   Valeur = hauteur maximale mesurée de l'animation. */
[data-demo] {
  min-height: 620px;
}

.demo-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.demo-caption .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.voice-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  background: var(--blue-wash);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.voice-bubble .voice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
}

.wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  height: 30%;
  animation: wave 0.9s ease-in-out infinite;
}

.wave i:nth-child(1) { animation-delay: 0s; }
.wave i:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.wave i:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.wave i:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.wave i:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.15); }
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  margin-left: 2px;
  vertical-align: middle;
  background: var(--orange);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* La feuille de devis */
.devis-sheet {
  position: relative;
  min-height: 380px;
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.devis-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}

:root[data-theme="dark"] .devis-top {
  border-bottom-color: var(--line-strong);
}

.devis-brand {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.devis-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.devis-client {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.devis-client b {
  font-size: 13.5px;
  color: var(--ink);
}

.devis-lines {
  display: flex;
  flex-direction: column;
  padding: 10px 0 4px;
  min-height: 132px;
}

.devis-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6.5px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  animation: lineIn 0.35s ease both;
}

.devis-line b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes lineIn {
  from { opacity: 0; transform: translateX(-7px); }
  to { opacity: 1; transform: none; }
}

.devis-totals {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--ink);
  font-size: 13px;
  animation: lineIn 0.35s ease both;
}

:root[data-theme="dark"] .devis-totals {
  border-top-color: var(--line-strong);
}

.devis-trow {
  display: flex;
  justify-content: space-between;
  padding: 2.5px 0;
  color: var(--ink-soft);
}

.devis-trow b,
.devis-trow .val {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.devis-trow .strike {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  text-decoration: line-through;
}

.devis-trow.remise {
  color: var(--orange);
}

.devis-trow.remise .val {
  color: var(--orange);
}

.devis-trow.ttc {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed var(--line-strong);
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}

.devis-trow.small {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.devis-trow.small .val {
  color: var(--ink-faint);
}

/* Tampons */
.stamp {
  position: absolute;
  right: 20px;
  bottom: 88px;
  padding: 7px 16px;
  border: 3px solid var(--blue);
  border-radius: 5px;
  transform: rotate(-9deg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  animation: stampIn 0.4s cubic-bezier(0.15, 1.5, 0.4, 1) both;
  pointer-events: none;
}

.stamp.orange {
  border-color: var(--orange);
  color: var(--orange);
}

@keyframes stampIn {
  from { opacity: 0; transform: rotate(-9deg) scale(2); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

/* ---------- Cartes / notes ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.note {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--blue-wash);
  color: var(--blue);
}

.note h3 {
  margin-bottom: 8px;
  font-size: 16.5px;
}

.note p {
  font-size: 14px;
  color: var(--ink-soft);
}

.note--flag {
  border-top: 3px solid var(--orange);
}

/* ---------- Chronologie 72 h ---------- */
.timeline {
  display: grid;
  gap: 36px;
}

.tl-step {
  position: relative;
  padding-left: 26px;
  border-left: 2px dashed var(--line-strong);
}

.tl-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--card);
}

.tl-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.tl-step p {
  max-width: 300px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Fiches services (pages Services) ---------- */
.fiche {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: 52px;
}

.fiche + .fiche {
  border-top: 1px dashed var(--line-strong);
}

.fiche-ref {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.fiche h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 16px;
}

.fiche p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.fiche-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  color: var(--blue);
}

.fiche-visual svg {
  width: 72px;
  height: 72px;
}

/* ---------- Listes à cocher ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- Métiers ---------- */
.metier-card {
  padding: 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.metier-card svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--blue);
}

.metier-card h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.metier-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Témoignage / cas réel ---------- */
.case-sheet {
  display: grid;
  gap: 36px;
  padding: 40px;
}

.case-quote {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  line-height: 1.45;
}

.case-quote .accent {
  color: var(--orange);
}

.case-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Formules (tarifs en fiches devis) ---------- */
.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.formule.featured {
  border: 2px solid var(--orange);
}

.formule-stamp {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: 4px 12px;
  border: 2.5px solid var(--orange);
  border-radius: 4px;
  transform: rotate(4deg);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.formule-ref {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.formule h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.formule-desc {
  min-height: 42px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.formule-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line-strong);
}

.formule-price .amount {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.formule-price .period {
  font-size: 14px;
  color: var(--ink-soft);
}

.formule .check-list {
  flex: 1;
  margin-top: 0;
  margin-bottom: 26px;
}

.formule-footnote {
  margin-top: -14px;
  margin-bottom: 18px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- Garanties ---------- */
.guarantees {
  display: grid;
  gap: 18px;
}

.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.guarantee svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.guarantee strong {
  display: block;
  font-size: 14.5px;
}

.guarantee span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.faq-item + .faq-item {
  border-top: 1px dashed var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--orange);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Panneau CTA (bleu nuit + hirondelles) ---------- */
.cta-panel {
  position: relative;
  padding: 60px 36px;
  background: var(--panel-ink);
  color: var(--panel-ink-text);
  border-radius: 4px;
  text-align: center;
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange);
}

.cta-panel::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.cta-panel::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.cta-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}

.cta-panel h2 .accent {
  color: var(--orange);
}

.cta-panel p {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: color-mix(in srgb, var(--panel-ink-text) 78%, transparent);
}

.cta-panel .mono-note {
  margin-top: 16px;
  color: color-mix(in srgb, var(--panel-ink-text) 55%, transparent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 44px;
  align-items: start;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-card + .contact-card {
  margin-top: 14px;
}

.contact-card svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.contact-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14.5px;
}

.contact-card span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Formulaire « fiche de chantier » ---------- */
.form-sheet {
  padding: 34px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.form-sheet-head {
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
}

:root[data-theme="dark"] .form-sheet-head {
  border-bottom-color: var(--line-strong);
}

.form-sheet-head h2 {
  font-size: 26px;
}

.form-sheet-head .mono-note {
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field label .opt {
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-field textarea {
  min-height: 116px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.form-consent input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-consent a {
  color: var(--blue);
  font-weight: 600;
}

.form-success {
  position: relative;
  padding: 44px 36px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.form-success .success-stamp {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 3px solid var(--blue);
  border-radius: 5px;
  transform: rotate(-4deg);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.form-success h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.form-success p {
  font-size: 14px;
  color: var(--ink-soft);
}

.form-success a {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Équipe ---------- */
.team-grid {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin-inline: auto;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.team-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 2.5px solid var(--blue);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--blue);
  transform: rotate(-3deg);
}

.team-card h3 {
  font-size: 18px;
}

.team-card .role {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.team-card .bio {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Prose (histoire, pages légales) ---------- */
.prose {
  max-width: 700px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 22px;
}

.prose p,
.prose li {
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose ul {
  margin-bottom: 11px;
  padding-left: 22px;
}

.prose strong {
  color: var(--ink);
}

.prose .date {
  display: block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1.5px solid var(--ink);
  padding-block: 40px;
}

:root[data-theme="dark"] .site-footer {
  border-top-color: var(--line-strong);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a,
.footer-links button {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
}

/* ---------- Bandeau consentement cookies ---------- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--panel-ink);
  color: var(--panel-ink-text);
  border-top: 3px solid var(--orange);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-text {
  flex: 1;
  min-width: 240px;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--panel-ink-text) 85%, transparent);
}

.cookie-consent-text a {
  color: var(--panel-ink-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--panel-ink-text);
}

.cookie-consent .btn-ghost:hover {
  border-color: var(--panel-ink-text);
  color: var(--panel-ink-text);
}

@media (max-width: 640px) {
  .cookie-consent {
    justify-content: flex-start;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1;
  }
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* ---------- Apparition au scroll (activée par .js sur <html>) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wave i,
  .type-cursor,
  .demo-caption .dot {
    animation: none;
  }
  .devis-line,
  .devis-totals,
  .stamp {
    animation: none;
  }
}

/* ---------- CTA sticky mobile ---------- */
.sticky-cta {
  display: none;
}

.sticky-cta.is-dismissed {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dims { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .fiche { grid-template-columns: 1.15fr 0.85fr; }
  .fiche.reverse > .fiche-visual { order: -1; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .guarantees { grid-template-columns: repeat(3, 1fr); }
  .case-sheet { grid-template-columns: 1.1fr 0.9fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline .tl-step {
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 2px dashed var(--line-strong);
  }
}

@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero { padding-top: 104px; }
}

@media (max-width: 919px) {
  .pricing-grid { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 767px) {
  .site-nav {
    position: absolute;
    top: 64px;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: var(--bg);
    border-bottom: 1.5px solid var(--ink);
  }

  :root[data-theme="dark"] .site-nav {
    border-bottom-color: var(--line-strong);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 15.5px;
  }

  .site-nav a.active::after {
    left: 14px;
    right: auto;
    width: 22px;
    bottom: 6px;
  }

  .burger {
    display: flex;
  }

  .hide-mobile {
    display: none !important;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-hero {
    padding-top: 56px;
  }

  .case-sheet {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-panel {
    padding: 44px 24px;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  /* Sur mobile le texte se retourne davantage : on réserve un peu plus haut. */
  [data-demo] {
    min-height: 675px;
  }

  body.has-sticky-cta {
    padding-bottom: 78px;
  }

  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1.5px solid var(--ink);
    box-shadow: 0 -8px 24px rgba(20, 46, 66, 0.14);
  }

  :root[data-theme="dark"] .sticky-cta {
    border-top-color: var(--line-strong);
  }

  .sticky-cta-text {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
  }

  .sticky-cta-text span {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
  }

  .sticky-cta .btn {
    flex-shrink: 0;
    padding: 11px 18px;
    font-size: 13px;
  }

  .sticky-cta-close {
    position: absolute;
    top: -13px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-soft);
    box-shadow: var(--shadow);
  }
}
