:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --border: #e9e7e0;
  --text: #131519;
  --muted: #5f6a74;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --accent-dark: #b45309;
  --accent-soft: #fdf0df;
  --accent-text: #92400e;
  --dark: #0f172a;
  --dark-2: #16233a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19,21,25,0.05), 0 4px 16px rgba(19,21,25,0.05);
  --shadow: 0 10px 40px rgba(19,21,25,0.10);
  --shadow-lg: 0 24px 60px rgba(19,21,25,0.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 10px 18px; z-index: 300; }
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(217,119,6,0.3);
}
.brand small { display: block; font-weight: 600; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.brand-logo-img { height: 80px; width: auto; display: block; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; color: var(--muted);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); }
.nav .btn-cta { margin-left: 10px; background: var(--dark); color: #fff; padding: 11px 20px; border-radius: 12px; }
.nav .btn-cta:hover { background: var(--accent); color: #fff; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); padding: 9px 12px; border-radius: 10px; font-size: 0.95rem; }
.nav-phone:hover { color: var(--accent-dark); background: var(--surface-2); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; place-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem; padding: 14px 26px; border-radius: 13px;
  border: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(217,119,6,0.32); }
.btn-primary:hover { background: #b45309; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-phone { background: #fff; color: var(--dark); border: 1px solid var(--border); font-weight: 700; }
.btn-phone:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-phone svg { color: var(--accent); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 88px 0 80px; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(217,119,6,0.12), transparent 60%),
    radial-gradient(600px 400px at 5% 100%, rgba(15,23,42,0.06), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.hero-points svg { color: var(--accent); }

.hero-visual { position: relative; }
.hero-visual img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; bottom: -22px; left: -22px; background: var(--dark); color: #fff;
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 240px;
}
.hero-card .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-2); }
.hero-card .lbl { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: #fff; }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section.dark .section-head p { color: rgba(255,255,255,0.7); }

/* ===== Services ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { border-radius: 0; aspect-ratio: 16/9; object-fit: cover; }
.service-body { padding: 28px; }
.service-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-body p { color: var(--muted); margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.78rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.stat .lbl { color: var(--muted); font-weight: 500; }
.section.dark .stat .lbl { color: rgba(255,255,255,0.7); }

/* ===== Process ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num { font-size: 0.85rem; font-weight: 800; color: var(--accent); letter-spacing: 0.05em; }
.step h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ===== Features / About ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { display: flex; gap: 16px; }
.feature .icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.feature h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--dark), var(--dark-2));
  border-radius: 26px; padding: 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(217,119,6,0.4), transparent 70%);
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ===== Blog cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.post-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.post-body .read { margin-top: auto; font-weight: 600; color: var(--accent); }

/* ===== Blog article ===== */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 18px; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }
.article figure { margin: 32px 0; }
.article figure img { width: 100%; border-radius: var(--radius); }
.article figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.article h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.article p { margin-bottom: 18px; color: #2a2f36; font-size: 1.05rem; }
.article ul, .article ol { margin: 0 0 20px 24px; color: #2a2f36; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic;
}

/* ===== Table des matières (TOC) ===== */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 28px 0;
}
.toc strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--accent); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* ===== Devis form ===== */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 0.98rem; background: var(--bg); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217,119,6,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop {
  border: 2px dashed var(--border); border-radius: 14px; padding: 24px; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s; background: var(--bg-soft);
}
.file-drop:hover, .file-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { display: none; }
.file-drop .icon { color: var(--accent); margin-bottom: 8px; }
.file-drop p { font-weight: 600; font-size: 0.95rem; }
.file-drop small { color: var(--muted); }
.file-list { margin-top: 12px; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; }
.file-item button { background: none; border: none; color: var(--accent); cursor: pointer; font-weight: 700; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.hs-form-frame { width: 100%; }
.hs-form-frame iframe { width: 100%; border: 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; }
.form-status.ok { display: block; background: #e8f7ee; color: #157347; border: 1px solid #b7e4c7; }
.form-status.err { display: block; background: #fdecec; color: #b42318; border: 1px solid #f5c6c6; }

/* ===== Contact info ===== */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.info-item .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-item a { color: var(--accent); font-weight: 600; }
.info-item a:hover { text-decoration: underline; }
.info-item .label { font-size: 0.82rem; color: var(--muted); }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 22px 0; font-size: 0.88rem; color: var(--muted); }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: #c3c7cc; }

/* ===== Page hero ===== */
.page-hero { padding: 56px 0 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h3 { font-size: 0.95rem; margin-bottom: 18px; }
.footer p, .footer a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer a { display: block; margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .btn { display: inline-flex; margin: 14px 0 0; }
.footer .btn-primary { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid, .form-wrap, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .hero-card { left: 16px; bottom: -16px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 8px; align-items: stretch;
  }
  .nav.open a { padding: 12px 16px; }
  .nav-toggle { display: grid; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps, .stats, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .form-card { padding: 24px; }
}

/* ===== Bandeau cookies (RGPD) ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  padding: 16px;
  pointer-events: none;
}
.cookie-card {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-head { display: flex; align-items: center; gap: 12px; }
.cookie-head .icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
}
.cookie-head h3 { font-size: 1.05rem; margin: 0; }
.cookie-text { color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.6; }
.cookie-text a { color: var(--accent-2); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-btn {
  border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem;
  padding: 11px 18px; border-radius: 11px; transition: transform .15s, background .15s, border-color .15s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn.accept { background: var(--accent); color: #fff; }
.cookie-btn.accept:hover { background: var(--accent-dark, #b45309); }
.cookie-btn.decline { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn.decline:hover { border-color: rgba(255,255,255,0.5); }
.cookie-btn.custom { background: transparent; color: var(--accent-2); }

.cookie-prefs { display: none; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.cookie-card.settings .cookie-prefs { display: block; }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.cookie-opt .desc { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.cookie-opt .desc strong { color: #fff; display: block; font-size: 0.92rem; }
.cookie-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(255,255,255,0.2); transition: background .2s;
}
.cookie-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--accent); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-slider { opacity: 0.5; cursor: not-allowed; }

.footer-bottom .legal a { color: rgba(255,255,255,0.5); margin-left: 14px; }
.footer-bottom .legal a:hover { color: #fff; }

@media (max-width: 640px) {
  .cookie-card { padding: 20px; }
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-btn { text-align: center; }
}
