/* JALON : papier clair, encre, rouge de signalisation et vert sapin. Le motif du jalon d'arpenteur (rayures rouge et blanc)
   sert de signature. Les noms de variables --bg, --surface… sont aussi utilisés par stats.css. */
/* Polices hébergées sur le site (licence SIL OFL, voir assets/fonts/OFL-*.txt) : aucun appel à Google Fonts */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f2ea;
  --bg-2: #ece7db;
  --surface: #fffdf8;
  --surface-2: #e7e1d3;
  --line: #d8d2c4;
  --field-line: #7a7f87; /* contour des champs : contraste ≥ 3:1 sur leur fond (WCAG 1.4.11) */
  --text: #15171a;
  --muted: #565b63;
  --accent: #c8321e;
  --accent-strong: #a82715;
  --accent-soft: rgba(200, 50, 30, 0.1);
  --sapin: #1d3a32;
  --sapin-2: #264a40;
  --on-dark: #f5f2ea;
  --on-dark-muted: #c3cfc9;
  --radius: 6px;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
/* L'attribut hidden masque toujours, même un élément qui déclare son propre display */
[hidden] { display: none !important; }

a { color: inherit; }
/* overflow-wrap : un mot plus large que l'écran (« Référencement » à 320 px) se coupe au lieu de déborder */
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Sur fond sapin, l'anneau rouge ne contraste pas (2,3:1) : anneau clair */
.section-dark :focus-visible, .cta-band :focus-visible, .hero-3d model-viewer:focus-visible { outline-color: var(--on-dark); }
/* Texte réservé aux lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 242, 234, 0.94); border-bottom: 1px solid var(--line); }
/* Le contenu qui passe sous la barre est flouté : la barre reste lisible sans devenir opaque */
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(245, 242, 234, 0.82); backdrop-filter: blur(12px) saturate(1.4); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: 0.14em; text-decoration: none; }
/* Le jalon : piquet rayé rouge et blanc, cerné d'encre */
.brand-mark {
  width: 9px; height: 30px; border: 1px solid var(--text);
  background: repeating-linear-gradient(to bottom, var(--accent) 0 7px, var(--surface) 7px 14px);
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 42px; color: var(--surface); background: var(--text); padding: 8px 18px; border-radius: 4px; font-weight: 500; }
.nav .nav-cta:hover { background: var(--accent); color: var(--surface); }
/* Menu mobile : sur grand écran, les liens restent dans la barre et le bouton « Menu » est masqué */
.nav-menu { display: contents; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 7px 14px;
  font: 500 15px var(--font); color: var(--text); background: none;
  border: 1px solid var(--field-line); border-radius: 4px; cursor: pointer;
}
.nav-toggle::before {
  content: ""; width: 14px; height: 10px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--accent); }
.nav .lang { display: inline-flex; align-items: center; min-height: 42px; font: 500 13px var(--mono); padding: 4px 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 4px;
  font: 600 16px var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .15s;
}
/* Retour tactile discret au clic */
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--surface); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn-ghost-dark:hover { background: var(--on-dark); color: var(--sapin); }
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; padding: 88px 0 96px; }
.eyebrow { color: var(--accent-strong); font-size: 14px; letter-spacing: .02em; margin: 0 0 22px; }
h1 { font-size: clamp(46px, 7.4vw, 96px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.lede { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); max-width: 620px; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-contact { color: var(--muted); font-size: 16px; margin: 22px 0 0; }
.hero-contact a { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* Le piquet vertical : chaque étape du projet est plantée dessus */
.jalons { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; display: grid; gap: 34px; }
.jalons::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px;
  border: 1px solid var(--text);
  background: repeating-linear-gradient(to bottom, var(--accent) 0 40px, var(--surface) 40px 80px);
  transform-origin: top; animation: planter .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes planter { from { transform: scaleY(0); } }
.jalons li { position: relative; display: flex; gap: 14px; align-items: baseline; }
.jalons li::before { content: ""; position: absolute; left: -31px; top: .7em; width: 22px; height: 1px; background: var(--text); }
.jalon-n { font-size: 13px; color: var(--accent-strong); }
.jalons h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 4px; }
.jalons p { color: var(--muted); font-size: 16px; margin: 0; }

/* 3D (page de la roue) */
.hero-3d { margin: 0; position: relative; }
.hero-3d model-viewer {
  /* display:block réserve la place avant le chargement du composant (pas de saut de mise en page) */
  display: block; width: 100%; height: min(560px, 80vw);
  background: var(--sapin);
  --poster-color: transparent;
  cursor: grab; border-radius: var(--radius);
}
/* Pause / reprise de la rotation 3D (WCAG 2.2.2), affiché par main.js */
.rotate-toggle {
  display: flex; align-items: center; width: fit-content; min-height: 42px; margin: 12px auto; padding: 8px 16px;
  font: 500 15px var(--font); color: var(--text); background: var(--surface);
  border: 1px solid var(--field-line); border-radius: 4px; cursor: pointer;
}
.rotate-toggle:hover { border-color: var(--accent); }
.hero-3d figcaption { text-align: center; color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section.wrap { padding: 96px 0; }
.section-tint { background: var(--bg-2); }
.section-dark { background: var(--sapin); color: var(--on-dark); }
.section-head { margin-bottom: 44px; max-width: 760px; }
.kicker { color: var(--accent-strong); font-size: 14px; margin: 0 0 14px; letter-spacing: .02em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section-sub { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* Prestations : liste numérotée, comme un relevé */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.services li { border-bottom: 1px solid var(--line); }
.services li > * { display: grid; grid-template-columns: 70px 1fr 1.25fr; gap: 20px; align-items: baseline; padding: 24px 0; text-decoration: none; }
.services a { transition: padding-left .25s ease; }
.services a:hover { padding-left: 12px; }
.services a:hover h3 { color: var(--accent-strong); }
.services span { font-size: 14px; color: var(--accent-strong); }
.services h3 { font-size: clamp(21px, 2.3vw, 28px); transition: color .2s; }
.services p { color: var(--muted); margin: 0; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.prices-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.price { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-vedette { border: 1px solid var(--text); box-shadow: inset 0 4px 0 var(--accent); }
.price h3 { font-size: 24px; letter-spacing: -0.015em; }
.price-for { color: var(--muted); font-size: 16px; margin: 8px 0 0; min-height: 3.2em; }
.amount { font-size: 50px; font-weight: 600; letter-spacing: -0.035em; margin: 18px 0 4px; line-height: 1; }
.amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.amount span { font-size: 18px; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.launch { color: var(--accent-strong); font-size: 15px; font-weight: 600; margin: 8px 0 20px; }
.launch-vide { color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 16px; flex: 1; align-content: start; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--accent); }
.price-note { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.prices-foot { color: var(--muted); font-size: 16px; margin: 24px 0 0; }
.tarifs-suite { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 56px; }
.tarifs-suite > div { min-width: 0; }
.tarifs-suite h3 { font-size: 24px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); }
.plans th, .plans td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.plans thead th { font: 500 13px var(--mono); color: var(--muted); border-bottom: 1px solid var(--text); white-space: nowrap; }
.plans tbody th { font-weight: 600; }
.plan-price { font-weight: 600; white-space: nowrap; }
.rates { margin: 0; border-top: 1px solid var(--text); }
.rates div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rates dt { color: var(--text); }
.rates dd { margin: 0; font-weight: 600; white-space: nowrap; }
section > .rates, .section.wrap > .rates { max-width: 620px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--text); }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 34px; height: 7px; background: repeating-linear-gradient(to right, var(--accent) 0 11.33px, var(--surface) 11.33px 22.66px); border: 1px solid var(--text); }
.step-n { color: var(--accent-strong); font-size: 13px; }
.step h2, .step h3 { font-size: 22px; letter-spacing: -0.015em; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Réalisations */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { grid-column: span 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.card-featured { grid-column: span 6; }
.grid-home .card { grid-column: span 7; }
.card:hover, .card:focus-within { border-color: var(--text); box-shadow: 0 10px 28px rgba(21, 23, 26, .08); transform: translateY(-2px); }
.card-link { display: block; height: 100%; text-decoration: none; }
.card-link:focus-visible { outline-offset: -3px; }
.card-media { aspect-ratio: 16 / 9; background: var(--sapin); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.025); }
.card-placeholder { color: var(--on-dark); font-size: 14px; padding: 16px; text-align: center; }
/* Démos : bloc à part sous les vrais clients, deux cartes côte à côte, badge visible sur la capture */
.grid-home .card-demo { grid-column: span 6; }
.demos-head { margin: 56px 0 24px; max-width: 720px; }
.demos-head h3 { font-size: 24px; margin-bottom: 8px; }
.card-media { position: relative; }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 3px; background: var(--text); color: var(--surface); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.demo-note { margin: 16px 0 28px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--text); max-width: 680px; }
.card-body { padding: 20px 22px 24px; }
.card-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.card h3 { font-size: 23px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card-body > p:not(.card-meta) { color: var(--muted); font-size: 16px; margin: 0; }
.others { grid-column: span 5; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.others h3, .projets-vide h3 { font-size: 24px; margin-bottom: 10px; }
.projets-vide { grid-column: span 7; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.projets-vide p { color: var(--muted); }
.launch-note { margin: 24px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); font-size: 16px; max-width: 880px; }
.contact-direct li { color: var(--on-dark); }
.others p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: 500 15px var(--font); color: var(--text); background: transparent; border: 1px solid var(--field-line); padding: 8px 14px; min-height: 42px; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s; }
/* Compteur : même couleur que le libellé (pas d'opacité réduite, contraste ≥ 4,5:1) */
.chip .count { font-family: var(--mono); font-size: 13px; margin-left: 4px; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }

.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.skill { border-top: 1px solid var(--text); padding-top: 14px; }
.skill h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.skill ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font: 14px var(--mono); color: var(--muted); }

.project-hero { margin-bottom: 8px; }
.project-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sapin); border-radius: var(--radius); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; }
.tags li { font: 13px var(--mono); padding: 3px 9px; border-radius: 3px; background: var(--surface-2); color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-2); aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:hover { border-color: var(--text); }

/* Avis */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 18px; font-size: 19px; line-height: 1.5; }
.quote figcaption { color: var(--muted); font-size: 15px; }
.quote figcaption b { color: var(--text); font-weight: 600; }

/* À propos, FAQ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about .section-head { margin-bottom: 0; }
.about-body p { color: var(--muted); font-size: 19px; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 24px var(--mono); color: var(--accent-strong); transition: rotate .2s; }
.faq-list summary:hover { color: var(--accent-strong); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 0 20px; color: var(--muted); font-size: 17px; margin: 0; }
/* La réponse apparaît en fondu à l'ouverture */
.faq-list details[open] p { animation: faq-in .25s ease both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -4px; } }

/* Contact */
.contact-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.section-dark .kicker { color: var(--on-dark-muted); }
/* Titre focalisé par script après un bouton de devis au doigt (repère pour les lecteurs d'écran, non interactif) */
.contact-intro h2:focus { outline: none; }
.contact-intro > p:not(.kicker) { color: var(--on-dark-muted); font-size: 19px; margin: 18px 0 28px; }
.contact-direct { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sapin-2); }
.contact-direct li { padding: 14px 0; border-bottom: 1px solid var(--sapin-2); overflow-wrap: anywhere; }
.contact-direct span { display: block; font: 13px var(--mono); color: var(--on-dark-muted); margin-bottom: 2px; }
.contact-direct a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; }
.link-copy { min-height: 32px; font: 500 14px var(--font); color: var(--on-dark-muted); background: none; border: 1px solid var(--on-dark-muted); border-radius: 3px; padding: 4px 10px; margin-left: 6px; cursor: pointer; }
.link-copy:hover { color: var(--on-dark); border-color: var(--on-dark); }

.quote-form { display: grid; gap: 16px; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: 15px; font-weight: 500; }
.field em { color: var(--accent-strong); font-style: normal; }
.field small { color: var(--muted); font-weight: 400; font-size: 14px; }
.field input, .field select, .field textarea {
  /* 16px : Safari iOS ne zoome plus automatiquement à la saisie */
  width: 100%; font: 16px var(--font); color: var(--text); min-height: 46px;
  background: #fff; border: 1px solid var(--field-line); border-radius: 4px; padding: 10px 12px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent-strong); }
/* Message d'erreur sous le champ (texte, pas seulement la couleur du contour) */
.field-error { color: var(--accent-strong); font-size: 15px; font-weight: 500; }
.form-hint { margin: 0; color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-legal { color: var(--muted); font-size: 14px; margin: 0; }
.form-legal a { color: inherit; }
.quote-form .btn { justify-self: start; }
.quote-form .btn[aria-disabled="true"] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 16px; min-height: 1.4em; }
.form-status.ok { color: var(--sapin); font-weight: 600; }
.form-status.err { color: var(--accent-strong); font-weight: 500; }

/* Pages intérieures */
.crumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-underline-offset: 3px; }
.page-head { padding: 52px 0 72px; }
.page-head h1 { font-size: clamp(40px, 6.2vw, 78px); max-width: 16ch; }
.page-head .lede { margin-bottom: 0; }
.detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; border-top: 1px solid var(--line); }
.section.wrap.detail { padding: 64px 0; }
.detail-head p { color: var(--accent-strong); font-size: 14px; margin: 0 0 12px; }
.detail-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.detail-body p { color: var(--muted); }
.detail-body a { color: var(--text); text-underline-offset: 3px; }
.detail-body h3 { font-size: 20px; margin: 26px 0 12px; letter-spacing: -0.01em; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-cols h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.two-cols p { color: var(--muted); }
.checks, .limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li, .limits li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .74em; width: 13px; height: 2px; background: var(--accent); }
.limits li::before { content: ""; position: absolute; left: 0; top: .74em; width: 13px; height: 2px; background: var(--field-line); }
.cta-band { background: var(--sapin); color: var(--on-dark); padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.cta-inner p { color: var(--on-dark-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.site-footer { padding: 56px 0 28px; color: var(--muted); font-size: 16px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 0 0 4px; }
.footer-name { color: var(--text); font-weight: 700; letter-spacing: .14em; font-size: 20px; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-end a { text-decoration: none; }
.contact-bar { display: none; }

/* Pages légales */
.legal { max-width: 760px; padding: 48px 0 90px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: 23px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 14px; line-height: 1.7; overflow-wrap: anywhere; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; }
.legal .back:hover { color: var(--text); }

/* Visionneuse */
dialog { color: var(--text); padding: 0; border: 0; background: transparent; }
dialog::backdrop { background: rgba(21, 23, 26, .82); }
.dlg-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 16px; cursor: pointer; }
#lightbox { max-width: 96vw; max-height: 96vh; }
#lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 4px; cursor: zoom-out; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .card:focus-within, .btn:active { transform: none; }
}
/* Fenêtre très basse (zoom 400 %, téléphone en paysage) : en-tête et barre de contact rendent la place */
@media (max-height: 520px) {
  html { scroll-padding-top: 0; }
  .site-header, .contact-bar { position: static; }
  body { padding-bottom: 0; }
}

/* Responsive */
/* Le tableau de maintenance a besoin d'environ 520 px : sous 1100 px, il passe sous la liste des prestations */
@media (max-width: 1100px) {
  .tarifs-suite { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .prices, .prices-2 { grid-template-columns: 1fr; max-width: 560px; }
  .price-for { min-height: 0; }
  .about, .faq, .contact-card, .detail, .two-cols { grid-template-columns: 1fr; gap: 28px; }
  .about .section-head { margin-bottom: 0; }
  .steps, .skills { grid-template-columns: repeat(2, 1fr); }
  .card, .card-featured, .grid-home .card, .others, .projets-vide { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
  .section, .section.wrap { padding: 72px 0; }
}
@media (max-width: 860px) {
  /* Menu mobile : liens derrière le bouton « Menu » (activé par main.js) */
  .nav.is-enhanced .nav-toggle { display: inline-flex; }
  .nav.is-enhanced .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 6px 20px 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-enhanced.is-open .nav-menu { display: flex; }
  .nav-menu a { padding: 12px 4px; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-menu a:last-child { border-bottom: 0; }
  /* Sans JavaScript : liens masqués, les pages restent accessibles depuis le pied de page */
  .nav:not(.is-enhanced) .nav-menu { display: none; }
}
@media (max-width: 680px) {
  html { scroll-padding-bottom: 70px; }
  body { font-size: 17px; padding-bottom: 58px; }
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 8px; }
  .header-inner { height: 64px; }
  .services li > * { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .steps, .skills { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 20px 16px; }
  /* Maintenance : chaque formule devient une carte, avec le libellé de chaque ligne */
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans { background: none; }
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plans tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
  .plans tbody th { font-size: 21px; padding: 0 0 8px; border: 0; }
  .plans td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 0; border-top: 1px solid var(--line); text-align: right; }
  .plans td::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section, .section.wrap { padding: 60px 0; }
  .page-head { padding: 36px 0 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .amount { font-size: 44px; }
  /* Barre de contact : appeler, écrire ou demander un devis en un geste */
  .contact-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--text); border-top: 1px solid var(--text);
  }
  .contact-bar a { display: flex; align-items: center; justify-content: center; min-height: 54px; color: var(--surface); font-weight: 600; font-size: 16px; text-decoration: none; }
  .contact-bar a + a { border-left: 1px solid #3a3e44; }
  .contact-bar .contact-bar-cta { background: var(--accent); }
  /* Anneau de focus clair, à l'intérieur : visible sur le fond encre comme sur le fond rouge */
  .contact-bar a:focus-visible { outline: 2px solid var(--on-dark); outline-offset: -5px; }
}
@media (max-width: 380px) {
  .brand { font-size: 18px; gap: 8px; letter-spacing: .1em; }
  .nav .nav-cta { padding-inline: 12px; }
}
/* Très petits écrans : le bouton Menu n'affiche que son icône (le mot « Menu » reste lu par les lecteurs d'écran) */
@media (max-width: 359px) {
  .nav-toggle { width: 42px; padding: 0; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Page 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.nf .code { font: 500 clamp(90px, 20vw, 170px)/1 var(--font); letter-spacing: -0.05em; color: var(--accent); }
.nf h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; letter-spacing: -0.02em; }
.nf p { color: var(--muted); margin: 0 0 6px; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Parcours de devis : ce qui se passe après la demande */
.apres-demande { margin: 0 0 28px; padding-left: 22px; color: var(--on-dark-muted); display: grid; gap: 8px; font-size: 17px; }
.apres-demande b { color: var(--on-dark); font-weight: 600; }
.apres-demande li::marker { color: var(--on-dark); font-family: var(--mono); }
