/* Bâti Naboria — page de transition. Couleurs reprises du logo. */
:root {
  color-scheme: light;
  --red: #c8241a;          /* rouge logo assombri : contraste AA sur blanc */
  --red-dark: #a51d14;
  --red-soft: #fdf0ee;
  --ink: #2b2927;
  --grey: #5e5b58;         /* gris du logo */
  --grey-light: #c0c0c0;
  --line: #e7e3df;
  --bg: #ffffff;
  --bg-alt: #f7f5f3;
  --success: #1f7a3d;
  --success-soft: #edf7f0;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(43 41 39 / .06), 0 6px 20px rgb(43 41 39 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
main:focus { outline: none; }

.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 2rem); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; color: #fff; }
.small { font-size: .9rem; color: var(--grey); }
mark.todo { background: #fff3b0; color: #6b4e00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 650; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { min-height: 42px; padding: .45rem 1rem; font-size: .95rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.actions-center { justify-content: center; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: none; }
.logo { width: 190px; }
.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--red); }
@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .logo { width: 138px; }
  .nav-link { display: none; }
}
@media (max-width: 380px) {
  .header-nav .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-nav .btn { padding-inline: .8rem; }
}

/* Héros */
.hero {
  background:
    linear-gradient(135deg, transparent 0 62%, rgb(200 36 26 / .05) 62% 100%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-inner { max-width: 860px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: .75rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--grey); max-width: 70ch; }
.badge-rge {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: .5rem 0 0; padding: .55rem 1rem;
  background: #fff; border: 2px solid var(--red); border-radius: var(--radius);
  color: var(--ink); font-size: .95rem;
}
.badge-rge .icon { color: var(--red); width: 1.6em; height: 1.6em; }
.badge-rge-sm { margin-top: 1.5rem; }

/* Sections */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { position: relative; padding-bottom: .6rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--red); border-radius: 2px; }
.section-intro { color: var(--grey); margin-bottom: 2rem; }

/* Cartes services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card p { color: var(--grey); font-size: 1rem; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 1rem; }
.card-icon .icon { width: 28px; height: 28px; }
.card-title { margin-bottom: .4rem; }
.tag { display: inline-block; align-self: flex-start; margin: 0 0 .6rem; padding: .1rem .55rem; font-size: .78rem !important; font-weight: 700; color: var(--red) !important; background: var(--red-soft); border-radius: 999px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Atouts */
.atouts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.atouts li { display: flex; gap: .85rem; }
.atouts .icon { color: var(--red); margin-top: .15rem; width: 1.5rem; height: 1.5rem; }
.atouts p { color: var(--grey); margin: 0; font-size: 1rem; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.4rem; color: var(--red); line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--grey); padding-bottom: .5rem; }

/* Coordonnées */
.coord-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 860px) { .coord-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.coord { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.coord li { display: flex; gap: .85rem; align-items: flex-start; }
.coord .icon { color: var(--red); width: 1.5rem; height: 1.5rem; margin-top: .2rem; }
.coord-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--grey); }
.coord a { font-weight: 600; }
.cta-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.cta-box p { color: var(--grey); }

/* En-tête de page */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head .lead { margin-bottom: 0; }
.page-head-center { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); }
.page-head-center .lead { margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.form-col:focus { outline: none; }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; align-self: start; }
.aside-title { font-size: 1.2rem; }

.form { display: grid; gap: 1.15rem; }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 650; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9b3ad; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 3px solid rgb(200 36 26 / .2); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.hint { margin: .3rem 0 0; font-size: .88rem; color: var(--grey); }
.field-error { display: flex; gap: .4rem; align-items: flex-start; margin: .35rem 0 0; font-size: .92rem; font-weight: 600; color: var(--red-dark); }
.field-error .icon { margin-top: .15rem; width: 1.1em; height: 1.1em; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--red); }
.field-check label { font-weight: 400; font-size: .95rem; color: var(--grey); margin: 0; }
.field-check .field-error { grid-column: 2; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: .85rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid; }
.notice > .icon { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.notice h2 { font-size: 1.2rem; }
.notice-success { background: var(--success-soft); border-color: #b7dcc3; color: var(--ink); }
.notice-success > .icon { color: var(--success); }
.notice-error { background: #fdf2f1; border-color: #f0c4c0; }
.notice-error > .icon { color: var(--red); }

/* Pages légales */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #45423f; }
.legal-list { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.legal-list dt { font-weight: 650; }
.legal-list dd { margin: 0; color: #45423f; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal-list { grid-template-columns: 1fr; } .legal-list dd { margin-bottom: .6rem; } }
code { font-size: .92em; background: var(--bg-alt); padding: .05em .35em; border-radius: 4px; }

/* Pied de page */
.site-footer { background: #24221f; color: #d9d5d0; margin-top: 0; padding-top: 3rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand p { font-size: .95rem; max-width: 42ch; margin-top: 1rem; }
.logo-footer { width: 190px; background: #fff; padding: .6rem .8rem; border-radius: 8px; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer-legal { border-top: 1px solid #3b3834; padding-block: 1.1rem; font-size: .85rem; color: #b5b0aa; }
.footer-legal p { margin: 0; }
