/* Bricks Dynamics — feuille de style unique du site statique */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0c10;
  --bg-2: #101219;
  --surface: #161922;
  --surface-2: #1c202b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #9ba1ae;
  --accent: #ff5b2e;
  --accent-2: #ff9a72;
  --accent-soft: rgba(255, 91, 46, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 44px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 0.32em; }
.logo-text span { font-size: 9.5px; letter-spacing: 0.52em; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.25s, background 0.25s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff6f47; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Sections communes ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-flush { border-top: none; }
.section-contact { padding-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 8px; border-radius: 2px; background: var(--accent); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 16ch; }
.section-lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 58ch; margin-top: 22px; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head .section-lead { margin-top: 0; }
.accent { color: var(--accent); }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.8rem); letter-spacing: -0.035em; }
.hero-lead { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 50ch; margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; margin-bottom: 28px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted);
}
.hero-badge b { background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.04em; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
.brick-pulse { animation: pulse 4.5s ease-in-out infinite; }
.brick-pulse.d1 { animation-delay: 0.6s; }
.brick-pulse.d2 { animation-delay: 1.2s; }
.brick-pulse.d3 { animation-delay: 1.8s; }
.brick-pulse.d4 { animation-delay: 2.4s; }
.brick-pulse.d5 { animation-delay: 3s; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Bande de chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Approche (piliers) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 36px; transition: border-color 0.3s, transform 0.3s;
}
.pillar:hover { border-color: rgba(255, 91, 46, 0.45); transform: translateY(-4px); }
.pillar-num { font-family: var(--font-head); font-size: 14px; color: var(--accent); letter-spacing: 0.1em; }
.pillar h3 { font-size: 1.6rem; margin: 46px 0 14px; }
.pillar p { color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 4.5vw, 56px);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 28px;
}
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.service-intro { color: var(--muted); }
.check-list li {
  position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line);
}
.check-list li:first-child { padding-top: 4px; }
.check-list li:first-child::before { top: 6px; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5b2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list strong { display: block; font-weight: 600; }
.check-list span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 2px; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 18px;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--accent); }
.step h3 { font-size: 1.4rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Secteurs ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry {
  position: relative; overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.industry::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.22), transparent);
  transition: transform 0.4s;
}
.industry:hover::before { transform: scale(1.4); }
.industry svg { position: absolute; top: 26px; left: 28px; width: 30px; height: 30px; color: var(--accent); }
.industry h3 { font-size: 1.3rem; margin-bottom: 8px; }
.industry p { color: var(--muted); font-size: 15px; }

/* ---------- Pourquoi nous ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.why-list { display: grid; gap: 34px; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.why-item svg { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.why-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 88px);
  background: linear-gradient(135deg, #ff5b2e 0%, #e2431b 55%, #b8320f 100%);
  color: #fff;
}
.cta-box::after {
  content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.9) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.9) 2px, transparent 2px);
  background-size: 96px 36px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.cta-box h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
.cta-box p { margin-top: 20px; font-size: 1.12rem; max-width: 46ch; color: rgba(255, 255, 255, 0.88); }
.cta-box .btn-primary { background: #0b0c10; color: #fff; margin-top: 34px; }
.cta-box .btn-primary:hover { background: #1c202b; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 14px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; font-weight: 500; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); margin-top: clamp(80px, 12vw, 140px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 20px; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col address { color: var(--text); text-decoration: none; font-size: 15px; font-style: normal; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Pages légales ---------- */
.legal-hero { padding: clamp(56px, 9vw, 100px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.legal-hero p { color: var(--muted); margin-top: 16px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 6vw, 72px); }
.legal-nav { position: sticky; top: 108px; align-self: start; }
.legal-nav h2 { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-nav li + li { margin-top: 4px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--muted); border-left: 2px solid transparent; }
.legal-nav a:hover { color: var(--text); background: var(--surface); }
.legal-nav a[aria-current="page"] { color: var(--text); background: var(--surface); border-left-color: var(--accent); }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.55rem; margin: 52px 0 16px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 10px; }
.prose p, .prose li { color: #c9cdd6; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 4px; border-radius: 1px; background: var(--accent); }
.prose ol { margin: 14px 0; padding-left: 0; list-style: none; counter-reset: li; display: grid; gap: 10px; }
.prose ol li { position: relative; padding-left: 38px; counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.prose a { color: var(--accent-2); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); }
.prose address { font-style: normal; }
.prose code { font-size: 0.88em; background: var(--surface-2); color: var(--text); padding: 2px 7px; border-radius: 6px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; margin: 18px 0; }
.info-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.info-card dt { color: var(--muted); font-size: 14.5px; }
.info-card dd { margin: 0; color: var(--text); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9cdd6; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 13rem); line-height: 0.9; letter-spacing: -0.05em; }
.error-page p { color: var(--muted); margin: 18px auto 34px; max-width: 42ch; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .steps, .industries { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .industries { row-gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: none; }
  .section-head, .service, .why, .cta-grid, .legal-layout { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar h3 { margin-top: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 8px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav li + li { margin-top: 0; }
  .legal-nav a { border-left: none; border: 1px solid var(--line); }
  .legal-nav a[aria-current="page"] { border-color: var(--accent); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .industries { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .info-card dl { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
