/* ════════════════════════════════════════════════════════════════════════
   Feuille de style du site vitrine (mobile-first). HABIT NK (LOT-MK-NK-01) :
   les couleurs et les polices viennent d'UNE source, nk-tokens.css (kit _MARQUE/NK/, versé au bâti et chargé
   AVANT ce fichier). Ici, aucune couleur écrite : les rôles du site renvoient aux jetons --nk-*, les voiles par
   color-mix(). Règle du rouge (kit) : le rouge ne sert qu'au logo et au bouton « Devis » (l'action principale) ;
   jamais de texte rouge sur fond marine. Le site est en thème CLAIR (html data-theme="light") : son dessin, avec
   ses sections sombres, n'a pas de version sombre.
   Système : colonne centrée + gouttière fluide, échelle fluide, propriétés logiques (RTL ar OK).
   ════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/polices/montserrat-700.woff2?v=025592fc) format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/polices/manrope-latin-ext.woff2?v=3911b66d) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/polices/manrope-latin.woff2?v=a30ddcd3) 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 {
  --g: clamp(20px, 6.2vw, 40px);     /* gouttière horizontale de toutes les sections */
  --maxw: 760px;                     /* colonne centrée (mobile + desktop) */
  --maxw-wide: 1080px;               /* élargissement des grilles sur grand écran */

  --paper: var(--nk-fond);           /* sections claires */
  --paper-2: var(--nk-marine-100);   /* section devis */
  --field: var(--nk-surface);        /* fond des champs */
  --dark: var(--nk-marine-900);      /* réalisations / contact */
  --footer: var(--nk-marine);        /* le marine du fond du logo négatif : le logo s'y fond */

  --navy: var(--nk-marine);          /* titres / texte */
  --muted: var(--nk-texte-doux);     /* texte atténué */
  --mention: var(--nk-texte-doux);   /* mentions */
  --accent: var(--nk-marine);        /* ancien « or sur clair » : l'accent n'est plus une couleur, c'est le marine */
  --accent-sombre: var(--nk-marine-100);  /* ancien « or clair sur fond foncé » */
  --clair: var(--nk-surface);        /* texte clair sur fond sombre */

  --line: color-mix(in srgb, var(--nk-marine) 8%, transparent);
  --line-2: color-mix(in srgb, var(--nk-marine) 16%, transparent);

  --serif: var(--nk-police-titres);
  --sans: var(--nk-police-texte);
  --radius: 16px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }   /* LOT-NKH-04-B : une ancre ou un focus ne passe plus sous l'en-tête collant */
body {
  font-family: var(--sans); color: var(--navy); background: var(--paper);
  line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--g); width: 100%; }
.section { padding-block: clamp(48px, 13vw, 88px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }

.section__head { max-width: 54ch; margin-bottom: clamp(28px, 6vw, 40px); }
.section__head h2 { font-size: clamp(28px, 8vw, 44px); letter-spacing: -.8px; margin: 14px 0 12px; }
.section__head p { font-size: 16px; color: var(--muted); }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; min-height: 58px; padding: 0 24px;
  border-radius: 15px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
/* Le bouton « Devis » : l'ACTION PRINCIPALE, donc rouge (règle du rouge). */
.btn--devis { background: var(--nk-rouge); color: var(--nk-surface); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--nk-rouge) 60%, transparent); }
.btn--devis:hover { background: var(--nk-rouge-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--nk-surface) 28%, transparent); color: var(--clair); }
.btn--ghost:hover { background: color-mix(in srgb, var(--nk-surface) 10%, transparent); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--nk-surface); }

/* ── Bandeau du devis (LOT-NKH-11 C5) ─────────────────────────────────────
   Dans le flux, juste sous l'en-tête, sur toutes les pages publiques sauf /devis. Aucun état : ni position fixe, ni
   fermeture, ni compte à rebours. Marine, texte clair ; le bouton est le bouton rouge existant (.btn--devis).
   Téléphone : deux lignes de titre au plus, bouton pleine largeur, 44 px de haut au moins. */
.bandeau-devis { background: var(--nk-marine); color: var(--nk-surface); border-bottom: 1px solid color-mix(in srgb, var(--nk-surface) 18%, transparent); }   /* le filet : sur l’accueil, le héros est marine lui aussi */
.bandeau-devis__in { display: flex; flex-direction: column; gap: 12px; padding-block: 14px; }
.bandeau-devis__titre { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.bandeau-devis__note { margin-top: 2px; font-size: .8125rem; line-height: 1.35; color: color-mix(in srgb, var(--nk-surface) 72%, var(--nk-marine)); }
.bandeau-devis__cta { width: 100%; min-height: 44px; padding-inline: 18px; font-size: .9375rem; box-shadow: none; }
@media (min-width: 720px) {
  .bandeau-devis__in { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .bandeau-devis__titre { font-size: 1.0625rem; }
  .bandeau-devis__cta { width: auto; flex: none; }
}
@media (min-width: 1160px) { .bandeau-devis .wrap { max-width: 1180px; } }

/* ── Session expirée (LOT-NKH-12 C2) : le titre, une ligne, le bouton que le visiteur clique lui-même. Pas de rouge :
   ce n'est pas une faute du visiteur, et le rouge est réservé au bouton Devis. */
.session { display: block; color: var(--nk-texte); }
.session__titre { display: block; font-weight: 700; }
.session__ligne { display: block; margin-top: 4px; font-weight: 400; }
.session__recharger { display: flex; margin-top: 12px; min-height: 44px; padding-inline: 18px; font-size: .9375rem; }

/* ── Header ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--nk-surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--nk-marine) 10%, transparent);
}
.header__bar { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__logo, .brand svg { width: 150px; height: auto; display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.brand__tag { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 3px; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 9px 12px; border-radius: 9px; font-weight: 500; font-size: .95rem; color: var(--navy); }
.nav > a:hover { background: color-mix(in srgb, var(--nk-marine) 6%, transparent); }
.header__cta { margin-inline-start: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang select {
  appearance: none; -webkit-appearance: none; font-family: var(--sans); font-size: .85rem; font-weight: 600;
  color: var(--navy); background: transparent; border: 1.5px solid var(--line-2); border-radius: 999px;
  padding-block: 8px; padding-inline: 32px 30px; cursor: pointer;
}
.lang::before { content: "🌐"; position: absolute; inset-inline-start: 10px; pointer-events: none; font-size: .85rem; }
.lang::after { content: "▾"; position: absolute; inset-inline-end: 12px; color: var(--muted); pointer-events: none; font-size: .7rem; }

.burger {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 13px;
  background: var(--nk-surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-inline-start: 6px;
}
.burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ── Hero (colonne centrée) ────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--clair); overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, var(--nk-marine), var(--nk-marine-900) 70%);
}
.hero__grid { display: block; padding-inline: var(--g); padding-block: clamp(40px, 11vw, 72px) clamp(48px, 13vw, 84px); }
.hero .eyebrow { color: var(--accent-sombre); }
.hero .eyebrow::before { background: var(--accent-sombre); }
.hero h1 { color: var(--clair); font-size: clamp(38px, 11.5vw, 68px); line-height: 1.04; letter-spacing: -1.5px; margin: 16px 0 18px; }
.hero h1 .accent { color: var(--accent-sombre); }
.hero p { color: color-mix(in srgb, var(--nk-surface) 82%, transparent); font-size: clamp(16px, 4.4vw, 19px); max-width: 54ch; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero__actions .btn { width: 100%; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--nk-surface) 18%, transparent);
  border-radius: 999px; padding: 9px 15px; font-size: .82rem; font-weight: 600; color: var(--clair);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-sombre); }
.hero__panel {
  margin-top: 30px; background: linear-gradient(135deg, var(--nk-marine), var(--nk-marine-900));
  border: 1px solid color-mix(in srgb, var(--nk-surface) 12%, transparent); border-radius: var(--radius); padding: 20px;
}
.hero__panel h2 { color: var(--clair); font-size: 1.05rem; margin-bottom: 14px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { text-align: center; }
.stat b { white-space: nowrap; display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--accent-sombre); }
.stat span { font-size: .76rem; color: color-mix(in srgb, var(--nk-surface) 72%, transparent); }

/* ── Prestations ───────────────────────────────────────────────────────── */
.presta { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; }
.card {
  background: var(--nk-surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--nk-marine-900) 50%, transparent); border-color: color-mix(in srgb, var(--nk-marine) 14%, transparent); }
.card__ico { width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--nk-marine) 8%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card__ico svg { width: 26px; height: 26px; color: var(--accent); }
.card h3 { font-size: 1.18rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: .72rem; font-weight: 600; color: var(--navy); background: color-mix(in srgb, var(--nk-marine) 6%, transparent); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ── Réalisations (galerie, fond foncé) ────────────────────────────────── */
.realisations { background: var(--dark); color: var(--clair); }
.realisations h2 { color: var(--clair); }
.realisations .eyebrow { color: var(--accent-sombre); }
.realisations .eyebrow::before { background: var(--accent-sombre); }
.realisations .section__head p { color: color-mix(in srgb, var(--nk-surface) 72%, transparent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--nk-marine-900); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-bloc { margin: 0; }
.shot__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 12px; color: var(--nk-surface); font-weight: 600; font-size: .9rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--nk-marine-900) 88%, transparent), transparent);
}

/* ── Confiance ─────────────────────────────────────────────────────────── */
.confiance { background: var(--paper); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; background: var(--nk-surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust__item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.trust__item b { display: block; color: var(--navy); }
.trust__item span { color: var(--muted); font-size: .9rem; }
/* NKH-84 : le futur espace d'accueil (image de synthèse) dans « En images », et le badge « Image de synthèse ». */
.futur-local { margin: 26px 0 0; max-width: 360px; }
.futur-local__titre { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--clair); }
.futur-local__cadre { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--nk-marine-900); }
.futur-local__cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.futur-local figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.5; font-style: italic; color: color-mix(in srgb, var(--nk-surface) 78%, transparent); }
.synth-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  color: var(--nk-marine-900); background: color-mix(in srgb, var(--nk-surface) 92%, transparent); box-shadow: 0 1px 4px color-mix(in srgb, var(--nk-marine-900) 35%, transparent); }
.adresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.adr { background: var(--nk-surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.adr .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.adr p { color: var(--navy); margin-top: 6px; }

/* ── Devis ─────────────────────────────────────────────────────────────── */
.devis { background: var(--paper-2); }
.devis__grid { display: grid; gap: 24px; }
.form { background: var(--nk-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--nk-marine-900) 55%, transparent); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; font-family: var(--sans); font-size: 16px; color: var(--navy);
  background: var(--field); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nk-marine) 12%, transparent); background: var(--nk-surface); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
/* LOT-NKH-04-B : le piège est masqué SANS être poussé hors champ. left:-9999px faisait défiler la page arabe (RTL) de 9 999 px. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { margin-top: 12px; font-size: .92rem; min-height: 1.2em; font-weight: 600; }
.form__status.is-success { color: var(--nk-ok); }
/* Une erreur porte une icône dessinée ET sa phrase, jamais la couleur seule (kit, jetons). */
.form__status.is-error { color: var(--nk-erreur); }
.form__status.is-error::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: -2px;
  border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box;
  background: linear-gradient(currentColor, currentColor) center 2px / 2px 5px no-repeat;
}
.rgpd { font-size: .78rem; color: var(--mention); margin-top: 12px; }
.devis__aside h3 { font-size: 1.15rem; margin-bottom: 6px; }
.devis__aside ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.devis__aside li { display: flex; gap: 11px; align-items: flex-start; }
.devis__aside li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.devis__aside b { color: var(--navy); }
.devis__aside span { color: var(--muted); }

/* ── Contact (fond foncé) ──────────────────────────────────────────────── */
.contact { background: var(--dark); color: var(--clair); }
.contact h2 { color: var(--clair); }
.contact .eyebrow { color: var(--accent-sombre); }
.contact .eyebrow::before { background: var(--accent-sombre); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.contact__item { display: flex; gap: 13px; align-items: flex-start; background: color-mix(in srgb, var(--nk-surface) 5%, transparent); border: 1px solid color-mix(in srgb, var(--nk-surface) 12%, transparent); border-radius: 14px; padding: 16px; }
.contact__item svg { width: 24px; height: 24px; color: var(--accent-sombre); flex-shrink: 0; }
.contact__item .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--nk-surface) 60%, transparent); font-weight: 700; }
.contact__item a, .contact__item p { color: var(--clair); font-weight: 600; margin-top: 4px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
/* LOT-NKH-04-B C3 : trois colonnes (la marque · nous joindre · le cadre), une seule sous 640 px ; puis un filet, la ligne
   des artisans et le copyright. Le logo seul : le nom et la signature ne sont écrits qu'une fois, dans le logo. */
.footer { background: var(--footer); color: color-mix(in srgb, var(--nk-surface) 78%, transparent); padding-block: 40px 26px; }
.footer__wrap { max-width: var(--maxw-wide); }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer__brand img { width: 150px; height: auto; }
.footer__titre { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clair); margin-bottom: 10px; }
.footer__liste { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--nk-surface) 35%, transparent); text-underline-offset: 3px; }
.footer a:hover { color: var(--clair); text-decoration-color: currentColor; }
.footer__artisans { margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--nk-surface) 16%, transparent); font-size: .95rem; color: var(--clair); }
.footer__artisans span { font-weight: 700; }
.footer__copy { margin-top: 14px; font-size: .82rem; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1.2fr 1fr 1fr; } }

/* LOT-NKH-04-B C3 : la section Contact dit la zone (deux niveaux) et le délai avant le bouton. */
.contact__zone { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; max-width: 62ch; }
.contact__zone li { display: flex; gap: 12px; align-items: flex-start; color: var(--clair); }
.contact__zone svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--accent-sombre); }

/* ── L'atelier connecté (LOT-NKH-04) : bandeau pleine largeur, titre en surimpression, légende et texte dessous ── */
.atelier { padding-inline: 0; }
.atelier__figure { margin: 0; }
.atelier__bandeau { position: relative; }
.atelier__bandeau img { display: block; width: 100%; height: auto; }
.atelier__titre { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 48px max(var(--g), calc((100% - var(--maxw)) / 2 + var(--g))) 18px;
  color: var(--nk-surface); font-size: clamp(1.5rem, 4vw, 2.6rem);
  background: linear-gradient(to top, color-mix(in srgb, var(--nk-marine-900) 85%, transparent), transparent); }
.atelier__legende { margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: italic; }   /* porte aussi .wrap : même colonne que le texte */
.atelier__texte { margin: 18px 0 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.6; }

/* ── Apparition au scroll ──────────────────────────────────────────────── */
/* LOT-NKH-03 : le masquage n'a lieu que si le script peut le lever. Sans JavaScript (ou sur un navigateur qui ignore
   « scripting »), le contenu reste visible, sans animation — mesuré : sans cette garde, la page était vide sous le haut. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ── Breakpoints ───────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}
@media (min-width: 940px) {
  .presta .wrap, .realisations .wrap { max-width: var(--maxw-wide); }
  .devis__grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

/* ── Menu mobile (burger) ──────────────────────────────────────────────── */
/* LOT-NKH-04-B C4 : cinq entrées, la langue et le bouton ne tiennent qu'à partir de 1160 px (mesuré : le menu débordait de
   82 px à 1280 dans la colonne de 760 px). En dessous, le burger ; au-dessus, l'en-tête prend la colonne large. */
@media (min-width: 1160px) { .header .wrap { max-width: 1180px; } }
@media (max-width: 1159px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset-block-start: 68px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--g) 22px;
    box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--nk-marine-900) 45%, transparent); transform: translateY(-135%); transition: transform .28s ease; margin-inline-start: 0;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav > a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .lang { margin-top: 10px; }
  .nav .header__cta { display: inline-flex; margin-top: 12px; }
}

/* ── LOT-MK-NK-01 ──────────────────────────────────────────────────────── */
/* LE NUMÉRO DE VERSION (loi « point 11 ») : en coin haut droit, au-dessus de tout, jamais sous le doigt. */
.version {
  position: fixed; top: 0; right: 0; z-index: 100; padding: 1px 6px; pointer-events: none; direction: ltr;
  font: 600 11px/15px var(--sans); font-variant-numeric: tabular-nums;
  color: var(--nk-surface); background: var(--nk-marine-900);
}
/* Contact : WhatsApp (sans lien tant que le numéro n'est pas connu) et « Nous écrire » ; jamais de lien d'appel. */
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.contact__actions .btn { flex: 1 1 220px; white-space: normal; text-align: center; }
.btn--whatsapp { background: transparent; border-color: color-mix(in srgb, var(--nk-surface) 40%, transparent); color: var(--clair); }
.btn--whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact .btn--outline { border-color: var(--clair); color: var(--clair); }
.contact .btn--outline:hover { background: var(--clair); color: var(--nk-marine-900); }
.legal__provisoire { margin: 14px 0 24px; font-weight: 600; }
/* L'en-tête : le bouton « Devis » garde son texte clair (la règle .nav > a le repeignait en marine sur rouge),
   et aucun lien du menu ne se coupe en deux lignes. */
.nav > a { white-space: nowrap; }
.nav > a.btn--devis { color: var(--nk-surface); }
.nav > a.btn--devis:hover { background: var(--nk-rouge-700); }
/* LOT-NKH-12 C4 : UN SEUL ROUGE PAR ÉCRAN. Le bouton de l'en-tête est un CONTOUR marine sur fond blanc (même texte, même
   place, 44 px) ; le rouge reste au bandeau. Contraste : marine #32375B sur blanc, 11,46:1 ; blanc sur rouge #D80F19, 5,25:1 (AA tous deux, mesurés le 27/09). */
.nav > a.header__cta { border: 1.5px solid var(--navy); border-radius: 12px; color: var(--navy); background: var(--nk-surface); min-height: 44px; padding: 0 18px; }
.nav > a.header__cta:hover { background: var(--navy); color: var(--nk-surface); }
/* Le héros de l'accueil : un bouton CLAIR (blanc, texte marine), plus un pavé rouge — le bandeau porte le rouge juste
   au-dessus, dans le même écran (mesuré au NKH-11 : 360 px, bandeau à 195 px, héros à 630 px, écran de 780 px). */
.btn--clair { background: var(--nk-surface); color: var(--nk-marine); }
.btn--clair:hover { background: var(--nk-marine-100); transform: translateY(-2px); }

/* ── LOT-NKH-04-B C4 : la page des artisans poseurs (/artisans) ─────────────────────────────────────────── */
/* Le bouton marine : l'action d'une page où le rouge (réservé au « Devis ») n'a rien à faire. */
.btn--marine { background: var(--nk-marine); color: var(--nk-surface); }
.btn--marine:hover { background: var(--nk-marine-900); }
.btn--marine:disabled { opacity: .6; cursor: progress; }
.art-tete { background: var(--dark); color: var(--clair); }
.art-tete h1 { color: var(--clair); font-size: clamp(32px, 9vw, 52px); letter-spacing: -.8px; margin: 14px 0 12px; }
.art-tete .eyebrow { color: var(--accent-sombre); }
.art-tete .eyebrow::before { background: var(--accent-sombre); }
.art-tete__sous { font-size: 1.1rem; max-width: 54ch; color: color-mix(in srgb, var(--nk-surface) 82%, transparent); }
.art-tete__cta { margin-top: 24px; background: var(--nk-surface); color: var(--nk-marine); }
.art-tete__cta:hover { background: var(--nk-marine-100); }
.art-methode h2, .art-bloc h2 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 18px; }
.art-etapes { list-style: none; counter-reset: etape; display: flex; flex-direction: column; gap: 14px; }
.art-etapes li { counter-increment: etape; position: relative; padding: 16px 16px 16px 64px; background: var(--nk-surface); border: 1px solid var(--line); border-radius: var(--radius); }
.art-etapes li::before { content: counter(etape); position: absolute; inset-inline-start: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--nk-marine); color: var(--nk-surface); font-family: var(--serif); font-weight: 700; }
[dir="rtl"] .art-etapes li { padding: 16px 64px 16px 16px; }
.art-etapes b { display: block; color: var(--navy); }
.art-etapes span { color: var(--muted); }
.art-deux { background: var(--paper-2); }
.art-deux__grille { display: grid; gap: 28px; }
.art-liste { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.art-liste li { position: relative; padding-inline-start: 28px; }
.art-liste li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 12px; height: 7px;
  border-inline-start: 2px solid var(--nk-marine); border-bottom: 2px solid var(--nk-marine); transform: rotate(-45deg); }
.art-bcw .wrap { border-inline-start: 4px solid var(--nk-marine); }
.art-bcw__titre { font-size: clamp(22px, 5vw, 30px); margin-bottom: 12px; }
.art-bcw__texte { max-width: 64ch; font-size: 1.05rem; }
.art-fiche { background: var(--paper-2); }
.art-interets { border: 0; margin: 4px 0 14px; }
.art-interets legend { font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 8px; }
.case { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--field); cursor: pointer; }
.case input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--nk-marine); }
/* Le message d'un champ : marine, avec l'icône des erreurs — jamais rouge, jamais pendant la frappe (loi des formulaires). */
.champ__msg { font-size: .88rem; font-weight: 600; color: var(--navy); margin-top: 6px; }
.champ__msg:empty { display: none; }
.champ__msg.is-on::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: -2px;
  border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box;
  background: linear-gradient(currentColor, currentColor) center 2px / 2px 5px no-repeat;
}
.field [aria-invalid="true"] { border-color: var(--navy); border-width: 2px; }
.art-relecture { margin-top: 20px; background: var(--nk-surface); border: 2px solid var(--nk-marine); border-radius: var(--radius-lg); padding: 22px; }
.art-relecture h3 { font-size: 1.2rem; margin-bottom: 14px; }
.art-recap { display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.art-recap dt { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.art-recap dd { overflow-wrap: break-word; white-space: pre-wrap; }
.art-relecture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.art-relecture__actions .btn { flex: 1 1 200px; }
.art-etat { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.art-etat.is-recu { font-size: 1.15rem; padding: 18px; background: var(--nk-surface); border-inline-start: 4px solid var(--nk-ok); border-radius: 12px; }
@media (min-width: 640px) { .art-recap { grid-template-columns: minmax(160px, 1fr) 2fr; } .art-recap dt { margin-top: 0; } }
@media (min-width: 940px) { .art-deux__grille { grid-template-columns: 1fr 1fr; max-width: var(--maxw-wide); } }

/* ══ Le Devis en portes (LOT-NKH-07 C3) — jetons NK seuls ; aucun rouge (réservé au bouton « Devis ») ; messages en marine. ══ */
.dp { background: var(--paper-2); min-height: 70vh; }
.dp__wrap { max-width: 680px; }
.dp-barre { margin-bottom: 22px; }
.dp-barre__txt { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.dp-barre__piste { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dp-barre__plein { height: 100%; width: 33%; background: var(--nk-marine); border-radius: inherit; transition: width .25s ease; }
.dp-porte { outline: none; }
.dp-porte h1, .dp-porte h2 { font-size: clamp(26px, 7vw, 38px); letter-spacing: -.6px; margin-bottom: 10px; }
.dp-intro { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dp-actions .btn { flex: 1 1 200px; }
.dp-actions--egales .btn { flex: 1 1 240px; }
/* LOT-NKH-45-B : « Je préfère qu'on me contacte pour un rendez-vous », sous les boutons de la porte ; long dans toutes
   les langues : il passe à la ligne au lieu de déborder. */
.dp-rdv { margin-top: 12px; }
.dp-rdv .btn { white-space: normal; text-align: center; padding-block: 10px; }
.dp-etat { margin-top: 14px; font-weight: 600; color: var(--navy); min-height: 1.2em; }
.dp-etat:empty { display: none; }
.dp-zone { font-size: 1.1rem; font-weight: 700; color: var(--navy); background: var(--nk-surface); border-inline-start: 4px solid var(--nk-ok); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.dp-nb { background: var(--nk-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 18px; }
.dp-nb__lbl { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 10px; }
.dp-nb__reglage { display: flex; align-items: center; gap: 14px; }
.dp-nb__btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--nk-marine); background: var(--nk-surface); color: var(--nk-marine); font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; }
.dp-nb__btn:disabled { opacity: .35; cursor: default; }
.dp-nb__val { min-width: 2ch; text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.dp-compteur { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dp-compteur__case { width: 22px; height: 28px; border: 2px solid var(--nk-marine); border-radius: 3px; background: color-mix(in srgb, var(--nk-marine) 12%, transparent); }
.dp-ouvertures { list-style: none; display: grid; gap: 4px; }
.dp-vie { background: var(--nk-surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin-bottom: 18px; }
.dp-vie a { color: var(--navy); font-weight: 700; }
.dp-viseur { margin: 0 auto 8px; max-width: 220px; }
.dp-viseur__cadre, .dp-apercu__image { position: relative; }
.dp-viseur__cadre { aspect-ratio: 3 / 4; background: var(--nk-surface); border: 2px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; }
.dp-viseur__fenetre { width: 55%; fill: none; stroke: var(--nk-marine); stroke-width: 3; }
.dp-trait { position: absolute; inset-inline: 6%; height: 0; border-top: 3px solid var(--nk-marine); }
.dp-trait span { position: absolute; inset-inline-start: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nk-surface); background: var(--nk-marine); padding: 1px 6px; border-radius: 4px; }
.dp-trait--haut { top: 9%; }
.dp-trait--haut span { top: 4px; }
.dp-trait--bas { bottom: 9%; }
.dp-trait--bas span { bottom: 6px; }
.dp-consigne { text-align: center; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.dp-photos-compte { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.dp-photos { list-style: none; display: grid; gap: 10px; }
.dp-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--nk-surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dp-photo__nom { flex: 1 1 180px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.dp-photo__statut { font-size: .85rem; font-weight: 700; color: var(--nk-ok); }
.dp-photo__statut:empty { display: none; }
/* LOT-NKH-40-C : la vignette de la photo gardée (objet local, aucun second envoi), sous « Photo gardée ». */
.dp-photo__vignette { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line); }
.dp-p4-photo { margin: 0 0 16px; }
.dp-p4-photo__img { display: block; width: 160px; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin-top: 6px; border: 1px solid var(--line); }
.dp-photo.is-gardee { border-color: var(--nk-ok); }
.dp-photo__btn { flex: 0 0 auto; }
.dp-apercu { margin-top: 18px; background: var(--nk-surface); border: 2px solid var(--nk-marine); border-radius: var(--radius-lg); padding: 16px; outline: none; }
.dp-apercu__image { max-width: 360px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.dp-apercu__image img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.dp-apercu__q { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-top: 14px; }
.dp-apercu__aide { color: var(--muted); margin-top: 6px; }
.dp-retour-lien { margin-top: 16px; background: none; border: 0; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.dp-fin__txt { font-size: 1.25rem; font-weight: 700; color: var(--navy); background: var(--nk-surface); border-inline-start: 4px solid var(--nk-ok); border-radius: 12px; padding: 22px; }
/* LOT-NKH-07-B : le code d'erreur de l'anti-robot, sous le message, en petit et en gris (on lit une panne, on ne la devine pas). */
.robot-attente { color: var(--navy); font-weight: 600; }   /* LOT-NKH-45 : l'attente du jeton, en marine, jamais rouge */
.robot-code { display: block; margin-top: 4px; font-size: .78rem; font-weight: 400; color: var(--muted); }
/* LOT-NKH-08 — portes 4 à 7. Jamais de rouge : les messages de la porte 5 sont GRIS, sous le champ, au clic seulement. */
.dp-cotes { font-size: clamp(1.3rem, 5.5vw, 1.7rem); font-weight: 800; color: var(--navy); background: var(--nk-surface); border-inline-start: 4px solid var(--nk-marine); border-radius: 12px; padding: 16px 18px; overflow-wrap: anywhere; }
.dp-note { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.dp-plafond { color: var(--muted); font-size: .88rem; margin-top: 18px; }
.dp-lien { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.dp-plafond-champ { margin-top: 10px; display: grid; gap: 8px; max-width: 280px; }
#porte-5 .champ__msg { color: var(--muted); font-weight: 500; }
#porte-5 .field [aria-invalid="true"] { border-color: var(--line-2); border-width: 1.5px; }
.dp-case { margin-top: 14px; }
.dp-choix { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.dp-choix legend { font-weight: 700; color: var(--navy); margin-bottom: 10px; padding: 0; }
.dp-jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.dp-jours .case { margin: 0; padding: 10px 12px; font-size: .92rem; }
.dp-jours .case:has(input:disabled) { opacity: .45; cursor: default; }
.dp-appel { width: 100%; margin-top: 12px; }
/* LOT-NKH-45-C : « + Ajouter une menuiserie », un lien texte (souligné, marine), jamais un bouton ; son choix de type en place. */
.dp-ajout { margin-top: 14px; }
.dp-ajout__lien { padding: 8px 0; }
.dp-ajout__max { margin-top: 6px; }
.dp-ajout__choix { margin-top: 8px; padding: 14px; background: var(--nk-surface); border: 1px solid var(--line); border-radius: 12px; }
.dp-ajout__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; }
.dp-ajout__actions .btn { flex: 0 1 auto; }
/* LOT-NKH-45-C : délai et financement ; la phrase manquante est en MARINE, jamais rouge, sous la question. */
.dp-question .case { margin-bottom: 8px; }
.dp-question__msg { font-size: .9rem; font-weight: 600; color: var(--navy); margin-top: 4px; }
.dp-question__msg:empty { display: none; }
.dp-fin__txt p + p { margin-top: 8px; }
.dp-fin__sous { font-size: 1rem; font-weight: 500; color: var(--muted); }
.dp-fin__souhait { font-size: 1.0625rem; font-weight: 600; }   /* LOT-NKH-45-F : le souhait, sous la référence */
.dp-fin__souhait:empty { display: none; }
.dp-ref { user-select: all; -webkit-user-select: all; white-space: nowrap; letter-spacing: .04em; }
/* NKH-08 : un bloc qui pose son propre display ne doit jamais écraser [hidden] (le champ plafond s'affichait d'office). */
.dp [hidden] { display: none !important; }

/* ══ LOT-NKH-40 — Fondamental du 02/10/2026, ROUGE / VERT : le refus au clic en rouge, l'acceptation en vert, RIEN pendant la
   frappe (les messages ne naissent qu'au clic : plus aucun contrôle à la sortie d'un champ). Le rouge porte toujours son icône
   et sa phrase (jamais la couleur seule). La porte 5 du devis garde ses avis en gris : ils ne bloquent pas (forcer). ══ */
.champ__msg { color: var(--nk-erreur); }
.field [aria-invalid="true"] { border-color: var(--nk-erreur); }
.art-etat:not(.is-recu):not(:empty) { color: var(--nk-erreur); }
.dp-etat:not(:empty) { color: var(--nk-erreur); }
.art-etat.is-recu { color: var(--nk-ok); }
/* LOT-NKH-40 (addendum A) : la ligne d'identité du pied ; la page des mentions, lisible au téléphone, sans rouge. */
.footer__legal { margin-top: 14px; font-size: .82rem; overflow-wrap: anywhere; }
.footer__legal [data-i18n="footer.statut"]::first-letter { text-transform: none; }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.15rem, 1rem + .8vw, 1.4rem); margin: 30px 0 10px; }
.legal p { margin: 0 0 10px; overflow-wrap: break-word; }
.legal a { overflow-wrap: anywhere; }
.legal__maj { margin-top: 26px; color: var(--muted); }
.legal__retour { margin-top: 28px; }
.legal__langue { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
