/* DML landing pages — plain CSS, no build step.
   Ported from the Lovable (Tailwind) design: same colours, type scale, spacing and hover transitions. */

@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-condensed-latin-400-italic.woff2") format("woff2"); }

:root {
  --radius: 0.25rem;
  --font: "Roboto Condensed", "Arial Narrow", sans-serif;
  --background: oklch(0.985 0.004 250);
  --foreground: oklch(0.24 0.07 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.55 0.2 20);
  --primary-on-dark: oklch(0.72 0.17 20); /* lighter red: the base red is only 3.4:1 on the navy */
  --secondary: oklch(0.3 0.09 262);
  --navy: oklch(0.2 0.06 262);
  --muted: oklch(0.95 0.015 240);
  --muted-foreground: oklch(0.45 0.04 255);
  --accent: oklch(0.96 0.03 225);
  --destructive: oklch(0.577 0.245 27.325);
  --field-border: oklch(0.6 0.03 255); /* ≥ 3:1 on white (WCAG 1.4.11) */
  --white: oklch(1 0 0);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hero-overlay: linear-gradient(100deg, color-mix(in oklab, var(--navy) 94%, transparent) 0%, color-mix(in oklab, var(--navy) 70%, transparent) 55%, color-mix(in oklab, var(--navy) 25%, transparent) 100%);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 400 1rem/1.5 var(--font); background: var(--background); color: var(--foreground); }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.text-secondary { color: var(--secondary); }
.icon { flex-shrink: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.75rem 1rem; background: var(--white); color: var(--secondary); font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--radius); padding: 1rem 1.75rem; font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.025em; text-transform: uppercase; text-decoration: none; transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), filter 150ms var(--ease); }
.btn--cta { background: var(--primary); color: var(--white); }
.btn--cta:hover { filter: brightness(1.1); }
.btn--ghost { border: 2px solid color-mix(in oklab, var(--white) 70%, transparent); color: var(--white); }
.btn--ghost:hover { background: color-mix(in oklab, var(--white) 10%, transparent); }
.btn--outline { border: 2px solid var(--secondary); color: var(--secondary); background: transparent; padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--outline:hover { background: var(--secondary); color: var(--white); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Header ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.site-header__logo img { height: 2.25rem; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.875rem; font-weight: 700; line-height: 1.25rem; text-transform: uppercase; color: var(--white); }
.site-header__nav a { text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.25rem; }
.back-link:hover { text-decoration: underline; }
.lang-switch { padding: 0.5rem 0.25rem; opacity: 0.8; transition: opacity 150ms var(--ease); }
.lang-switch:hover { opacity: 1; }
.site-header__tel { display: none; align-items: center; gap: 0.5rem; }
.site-header__tel .icon { color: var(--primary-on-dark); }
.site-header__cta { border-radius: var(--radius); background: var(--primary); padding: 0.5rem 1rem; transition: filter 150ms var(--ease); }
.site-header__cta:hover { filter: brightness(1.1); }
/* Short label on narrow screens so the EN/FR switch and the button fit next to the logo. */
.cta-short { display: inline; }
.cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background-image: var(--hero-overlay); }
.hero__content { position: relative; padding-block: 6rem; color: var(--white); }
.eyebrow { font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); }
.eyebrow--on-dark { color: var(--primary-on-dark); }
.hero__title { margin-top: 1rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.05; font-weight: 700; text-transform: uppercase; }
.hero__lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.75rem; color: color-mix(in oklab, var(--white) 85%, transparent); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__bar { position: relative; height: 0.5rem; background: var(--primary); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: 5rem; }
.section-title { font-size: 1.875rem; line-height: 1.25; font-weight: 700; text-transform: uppercase; }
.section-title--spaced { margin-top: 0.75rem; max-width: 48rem; }

.materials__intro { margin-top: 1rem; max-width: 42rem; color: var(--muted-foreground); }
.materials__list { margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.materials__list li { display: flex; align-items: center; gap: 0.75rem; background: var(--muted); padding: 1rem 1.25rem; font-weight: 700; color: var(--secondary); }
.materials__list .icon { color: var(--primary); }
.materials__note { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; font-style: italic; color: var(--muted-foreground); }

/* Estimation (form) */
.estimation { scroll-margin-top: 5rem; background: var(--navy); padding-block: 6rem; text-align: center; color: var(--white); }
.estimation__inner { max-width: 48rem; margin-inline: auto; padding-inline: 1.25rem; }
.estimation__title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; text-transform: uppercase; }
.estimation__text { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; color: color-mix(in oklab, var(--white) 80%, transparent); }
.estimation__form { margin-top: 2.5rem; }
.estimation__phone { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.estimation__mail { margin-top: 2rem; color: color-mix(in oklab, var(--white) 80%, transparent); }
.estimation__mail a { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; text-decoration: underline; }

/* Why */
.eyebrow + .section-title { margin-top: 0.75rem; }
.why__grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
.why__card { border-top: 4px solid var(--primary); background: var(--card); padding: 1.75rem; box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.why__num { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: color-mix(in oklab, var(--primary) 25%, transparent); }
.why__card h3 { margin-top: 0.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--secondary); }
.why__card p { margin-top: 0.5rem; color: var(--muted-foreground); }

/* How */
.how { background: var(--secondary); padding-block: 5rem; color: var(--white); }
.how__steps { margin-top: 3rem; display: grid; gap: 2rem; }
.how__num { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--primary); font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.how__steps h3 { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.how__steps p { margin-top: 0.25rem; color: color-mix(in oklab, var(--white) 75%, transparent); }
.how__cta { margin-top: 3rem; }

/* About / growth */
.about { background: var(--accent); padding-block: 5rem; }
.about__grid { display: grid; gap: 3rem; }
.about__lead { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.about__p { margin-top: 1rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.about__p--tight { margin-top: 0.75rem; }
.quote { margin-top: 1.5rem; border-left: 4px solid var(--primary); background: var(--card); padding: 1.5rem; }
.quote .icon { color: var(--primary); }
.quote blockquote { margin-top: 0.5rem; font-style: italic; }
.quote figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; color: var(--secondary); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid color-mix(in oklab, var(--white) 10%, transparent); background: var(--navy); padding-block: 2rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--white) 60%, transparent); }
.site-footer address { font-style: normal; }
.site-footer__links { margin-top: 0.75rem; font-size: 0.8125rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.site-footer__links a, .site-footer__links button { padding: 0.25rem 0.25rem; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__links button { background: none; border: 0; color: inherit; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--white); }

/* ── Form ──────────────────────────────────────────────────── */
.lead-form { display: grid; gap: 1.25rem; border-radius: var(--radius); background: var(--card); padding: 1.5rem; text-align: left; color: var(--foreground); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.field { min-width: 0; margin: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.hp { display: none; }
.label { display: block; margin-bottom: 0.25rem; padding: 0; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; color: var(--secondary); }
.label span { color: var(--primary); }
.input { display: block; width: 100%; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--background); padding: 0.75rem 1rem; color: var(--foreground); }
.input:focus { outline: 3px solid var(--primary); outline-offset: 1px; }
textarea.input { resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--destructive); border-width: 2px; }
.input:user-invalid { border-color: var(--destructive); border-width: 2px; }
.field-error, .form-error { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: var(--destructive); }
.form-hint { font-size: 0.875rem; color: var(--muted-foreground); }
.form-note { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.25rem; color: var(--muted-foreground); }
.form-note a { color: var(--secondary); }
.form-success { border-radius: var(--radius); background: var(--card); padding: 2rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: var(--secondary); }

.choice { border: 0; }
.choice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice__item { position: relative; display: block; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__item span { display: block; border: 2px solid var(--field-border); border-radius: var(--radius); padding: 0.75rem; text-align: center; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; color: var(--secondary); transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease); }
.choice__item input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--white); }
.choice__item input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Consent banner (Loi 25) ───────────────────────────────── */
.consent { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 50; width: auto; max-width: 30rem; margin: 0; border: 0; border-top: 4px solid var(--primary); border-radius: var(--radius); background: var(--card); padding: 1.25rem; color: var(--foreground); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.2); font-size: 0.9375rem; line-height: 1.4; }
.consent:not([open]) { display: none; }
.consent__title { font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--secondary); }
.consent p { margin-top: 0.5rem; }
.consent p a { color: var(--secondary); font-weight: 700; }
.consent__actions { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Privacy / 404 pages ───────────────────────────────────── */
.legal { max-width: 48rem; padding-block: 4rem; }
.legal h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 700; text-transform: uppercase; color: var(--secondary); }
.legal__updated { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.legal section { margin-top: 2rem; }
.legal h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--secondary); }
.legal p, .legal ul { margin-top: 0.5rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; }
.legal a { color: var(--secondary); font-weight: 700; }
.legal__back { margin-top: 3rem; }
.notfound__links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.notfound .btn { color: var(--white); font-weight: 700; }
.notfound__en { font-weight: 400; color: var(--muted-foreground); }

/* ── Breakpoints (same as Tailwind: sm 640 · md 768 · lg 1024) ─ */
@media (min-width: 480px) {
  .cta-short { display: none; }
  .cta-long { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
}
@media (min-width: 640px) {
  .materials__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .site-header__tel { display: flex; }
  .hero__content { padding-block: 9rem; }
  .hero__title { font-size: 3.75rem; }
  .section-title { font-size: 2.25rem; line-height: 2.5rem; }
  .estimation__title { font-size: 3rem; line-height: 1; }
  .lead-form { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .consent { left: 1.5rem; bottom: 1.5rem; right: auto; }
}
@media (min-width: 1024px) {
  .materials__list { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .lead-form { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
