/* ===================================================================
   NABOULS RÉNOVATION — Système de design du site
   Source de vérité identité : 04_BRAND/VISUAL_IDENTITY_FINAL.md
   Système de composants papier de référence : 05_APPLICATIONS/06_COMMERCIAL_PACK/COMPONENT_SYSTEM.md
   =================================================================== */

:root{
  --ivoire:#F4F1EA;
  --pierre:#9C9A93;
  --sable:#D8CBB4;
  --anthracite:#2B2D2F;
  --ink:#2B2D2F;
  --muted:#6b6a64;
  --placeholder:#b95c3d;
  --border:#D8CBB4;
  --bg:#F4F1EA;
  --surface:#FFFFFF;
  --focus:#2B6CB0;
  --maxw:1120px;
  --radius:3px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:'IBM Plex Sans', Arial, Helvetica, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
  font-size:16px;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:'IBM Plex Sans', Arial, sans-serif; color:var(--anthracite); line-height:1.25; margin:0 0 0.5em; }
h1{ font-size:clamp(1.7rem, 5vw, 2.6rem); font-weight:700; }
h2{ font-size:clamp(1.3rem, 3.5vw, 1.9rem); font-weight:700; }
h3{ font-size:1.05rem; font-weight:700; }
p{ margin:0 0 1em; color:var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
}

.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--anthracite); color:var(--ivoire);
  padding:10px 16px; z-index:1000; border-radius:0 0 4px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(244,241,234,0.96);
  backdrop-filter:blur(4px);
  border-bottom:1px solid var(--border);
}
.site-header .bar{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px; max-width:var(--maxw); margin:0 auto; }
.site-header .brand{ display:flex; align-items:center; gap:8px; text-decoration:none; }
.site-header .brand img{ height:34px; width:auto; }
.nav-desktop{ display:none; }
.nav-desktop ul{ list-style:none; display:flex; gap:22px; margin:0; padding:0; }
.nav-desktop a{ text-decoration:none; font-size:0.92rem; font-weight:600; color:var(--ink); padding:6px 2px; border-bottom:2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"]{ border-bottom-color:var(--anthracite); }

.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface); cursor:pointer;
}
.nav-toggle svg{ width:22px; height:22px; }

.nav-mobile{
  display:none; flex-direction:column; gap:2px; padding:8px 20px 16px;
  border-top:1px solid var(--border); background:var(--ivoire);
}
.nav-mobile.is-open{ display:flex; }
.nav-mobile a{ display:block; padding:12px 6px; text-decoration:none; font-weight:600; color:var(--ink); border-bottom:1px solid rgba(216,203,180,0.5); min-height:44px; }
.nav-mobile a[aria-current="page"]{ color:var(--anthracite); text-decoration:underline; }

@media (min-width:840px){
  .nav-desktop{ display:block; }
  .nav-toggle{ display:none; }
  .nav-mobile{ display:none !important; }
}

/* ---------- Hero ---------- */
.hero{ padding:56px 20px 44px; text-align:center; }
.hero .symbol{ width:64px; margin:0 auto 18px; }
.hero h1{ margin-bottom:0.3em; }
.hero .g1{ font-size:1.05rem; font-weight:600; max-width:32em; margin:0 auto 14px; color:var(--anthracite); }
.hero .sig{ font-style:italic; color:var(--pierre); margin-bottom:22px; }
.hero.compact{ padding:40px 20px 30px; }

/* ---------- Buttons / CTA ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:12px 24px; border-radius:var(--radius);
  font-weight:700; font-size:0.98rem; text-decoration:none; border:1.5px solid var(--anthracite);
  cursor:pointer; background:var(--anthracite); color:var(--ivoire);
}
.btn:hover{ background:#1c1d1e; }
.btn.btn-outline{ background:transparent; color:var(--anthracite); }
.btn.btn-outline:hover{ background:rgba(43,45,47,0.06); }
.btn.btn-on-dark{ background:var(--ivoire); color:var(--anthracite); border-color:var(--ivoire); }
.btn[aria-disabled="true"]{ opacity:0.5; pointer-events:none; }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* ---------- Sections ---------- */
section, .pad{ padding:44px 20px; }
.section-inner{ max-width:var(--maxw); margin:0 auto; }
.kicker{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--pierre); font-weight:700; margin-bottom:6px; }
.section-lede{ max-width:42em; color:var(--muted); }
.section-alt{ background:var(--surface); padding:44px 20px; }
.section-dark{ background:var(--anthracite); color:var(--ivoire); padding:44px 20px; }
.section-dark h2, .section-dark h3{ color:var(--ivoire); }
.section-dark p{ color:#e6e3da; }

/* ---------- Offer cards ---------- */
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:1fr; }
.grid-4{ grid-template-columns:1fr; }
@media (min-width:640px){ .grid-2{ grid-template-columns:1fr 1fr; } .grid-4{ grid-template-columns:1fr 1fr; } }
@media (min-width:960px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }

.offer-card{
  display:block; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px; border-left:4px solid var(--sable);
  transition:transform .15s ease, box-shadow .15s ease;
}
.offer-card:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(43,45,47,0.08); }
.offer-card .code{ font-size:0.75rem; color:var(--pierre); font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.offer-card h3{ margin:4px 0 8px; }
.offer-card .more{ display:inline-block; margin-top:10px; font-weight:700; font-size:0.9rem; }

.type-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; text-align:center; }
.type-card h3{ font-size:0.98rem; margin-bottom:4px; }
.type-card p{ font-size:0.85rem; color:var(--muted); margin:0; }

/* ---------- Process steps ---------- */
.steps{ list-style:none; margin:0; padding:0; counter-reset:step; max-width:42em; }
.steps li{ counter-increment:step; display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--border); }
.steps li:last-child{ border-bottom:none; }
.steps li::before{
  content:counter(step); flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  background:var(--anthracite); color:var(--ivoire); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:0.85rem;
}
.steps .txt b{ display:block; margin-bottom:2px; }
.steps .txt span{ color:var(--muted); font-size:0.92rem; }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:16px 4px; font-weight:700; font-size:1rem; color:var(--anthracite);
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  min-height:48px;
}
.faq-q .ic{ transition:transform .15s ease; flex:0 0 auto; }
.faq-q[aria-expanded="true"] .ic{ transform:rotate(45deg); }
.faq-a{ padding:0 4px 16px; color:var(--muted); }
.faq-a[hidden]{ display:none; }

/* ---------- Photo placeholders ---------- */
.photo-ph{
  background:repeating-linear-gradient(45deg,#e9e6dd,#e9e6dd 8px,#f4f2ec 8px,#f4f2ec 16px);
  border:1.5px dashed var(--pierre); border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center; text-align:center;
  color:var(--placeholder); font-style:italic; font-size:0.85rem; padding:16px; min-height:160px;
}
.before-after{ display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:640px){ .before-after{ grid-template-columns:1fr 1fr; } }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; gap:28px; grid-template-columns:1fr; }
@media (min-width:840px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.contact-list{ list-style:none; margin:0; padding:0; }
.contact-list li{ padding:10px 0; border-bottom:1px solid var(--border); }
.contact-list a{ text-decoration:none; font-weight:600; }
.contact-list a:hover{ text-decoration:underline; }

.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-weight:600; font-size:0.9rem; margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:12px; border:1px solid var(--border); border-radius:var(--radius);
  font-family:inherit; font-size:1rem; background:var(--surface); min-height:44px;
}
.form-field textarea{ min-height:110px; resize:vertical; }
.form-note{ font-size:0.82rem; color:var(--muted); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--anthracite); color:var(--ivoire); padding:40px 20px 24px; margin-top:40px; }
.site-footer .grid{ grid-template-columns:1fr; gap:24px; margin-bottom:24px; }
@media (min-width:640px){ .site-footer .grid{ grid-template-columns:1fr 1fr 1fr; } }
.site-footer h3{ color:var(--ivoire); font-size:0.85rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-bottom:6px; }
.site-footer a{ color:#e6e3da; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.footer-sig{ font-style:italic; color:var(--sable); }
.footer-bottom{ border-top:1px solid rgba(244,241,234,0.15); padding-top:16px; font-size:0.78rem; color:var(--pierre); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:90;
  background:var(--anthracite); padding:10px 16px; display:flex; justify-content:center;
  box-shadow:0 -2px 10px rgba(0,0,0,0.15);
}
.sticky-cta .btn{ width:100%; max-width:420px; }
@media (min-width:840px){ .sticky-cta{ display:none; } }
body.has-sticky-cta{ padding-bottom:70px; }
@media (min-width:840px){ body.has-sticky-cta{ padding-bottom:0; } }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size:0.85rem; color:var(--muted); }
.placeholder{ color:var(--placeholder); font-style:italic; }
