/* ============================================================
   Lord Brings Solutions — Néo-isométrie
   Clair (défaut) / Sombre · couleurs vives · 3D illustré
   ============================================================ */

:root {
  --bg: #FFFBF7;
  --bg-grad: linear-gradient(150deg, #FFF6EF 0%, #EEF4FF 100%);
  --surface: #FFFFFF;
  --surface-2: #F6F3EC;
  --ink: #18212F;
  --muted: #586173;
  --dim: #8A93A3;
  --border: rgba(24,33,47,.10);
  --border-strong: rgba(24,33,47,.16);

  --coral: #FF6B5C;  --coral-d: #E04E3E;
  --teal: #11B5A4;   --teal-d: #0E9486;
  --amber: #FFB23E;  --amber-d: #E0951F;
  --violet: #7C6CF0; --violet-d: #5B4FD6;

  --shadow-sm: 0 8px 20px -14px rgba(24,33,47,.30);
  --shadow: 0 22px 46px -22px rgba(24,33,47,.30);
  --shadow-coral: 0 16px 30px -12px rgba(255,107,92,.55);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1160px;
  --header-h: 76px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

html[data-mode="dark"] {
  --bg: #10121A;
  --bg-grad: linear-gradient(150deg, #141320 0%, #0F141D 100%);
  --surface: #1A1D28;
  --surface-2: #21252F;
  --ink: #F2F5FB;
  --muted: #A7AFC1;
  --dim: #6E7689;
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --shadow-sm: 0 10px 24px -14px rgba(0,0,0,.6);
  --shadow: 0 26px 54px -22px rgba(0,0,0,.65);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }

h1,h2,h3,h4 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--muted); }

.c-coral { color: var(--coral); } .c-teal { color: var(--teal); } .c-amber { color: var(--amber-d); } .c-violet { color: var(--violet); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-d); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
html[data-mode="dark"] .kicker { color: #4FE3D0; }
.kicker::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .98rem; padding: 13px 24px; border-radius: 100px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -12px rgba(255,107,92,.7); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { transform: translateY(-3px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 41px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.14rem; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--muted); padding: 9px 14px; border-radius: 100px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--coral-d); }
html[data-mode="dark"] .nav a.active { color: var(--coral); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 100px; padding: 3px; background: var(--surface); }
.lang button { font-weight: 700; font-size: .78rem; padding: 6px 10px; border-radius: 100px; color: var(--dim); }
.lang button.active { color: #fff; background: var(--ink); }

.mode-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); }
.mode-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-toggle .ic-moon { display: none; }
html[data-mode="dark"] .mode-toggle .ic-sun { display: none; }
html[data-mode="dark"] .mode-toggle .ic-moon { display: block; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: calc(var(--header-h) + 70px) 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.16rem; max-width: 500px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.chip { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.chip b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.chip span { font-size: .82rem; color: var(--dim); }
.chip.k1 b { color: var(--coral); } .chip.k2 b { color: var(--teal); } .chip.k3 b { color: var(--amber-d); }
.hero__art { display: grid; place-items: center; }
.hero__art svg { width: 100%; max-width: 480px; height: auto; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* Generic grid + cards */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .97rem; }

.ficon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.ficon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-coral { background: var(--coral); box-shadow: var(--shadow-coral); }
.ic-teal { background: var(--teal); box-shadow: 0 14px 26px -12px rgba(17,181,164,.6); }
.ic-amber { background: var(--amber); box-shadow: 0 14px 26px -12px rgba(255,178,62,.6); }
.ic-violet { background: var(--violet); box-shadow: 0 14px 26px -12px rgba(124,108,240,.6); }

.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; color: var(--muted); }
.checklist li strong { color: var(--ink); display: block; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; margin-top: 2px; }
.checklist .tick svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__art { display: grid; place-items: center; }
.split__art svg { width: 100%; max-width: 420px; }

/* Stats band (colored) */
.statband { background: var(--ink); border-radius: var(--radius-xl); padding: 50px 40px; }
html[data-mode="dark"] .statband { background: var(--surface); border: 1px solid var(--border); }
.statband .grid { gap: 18px; }
.statband__item { text-align: center; }
.statband__item strong { display: block; font-size: clamp(2.1rem,4vw,3rem); font-weight: 800; }
.statband__item:nth-child(1) strong { color: var(--coral); }
.statband__item:nth-child(2) strong { color: var(--teal); }
.statband__item:nth-child(3) strong { color: var(--amber); }
.statband__item:nth-child(4) strong { color: var(--violet); }
.statband__item span { color: #C9CEDB; font-size: .92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.step__n { counter-increment: s; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 16px; }
.step__n::before { content: counter(s); }
.step:nth-child(1) .step__n { background: var(--coral); } .step:nth-child(2) .step__n { background: var(--teal); }
.step:nth-child(3) .step__n { background: var(--amber); } .step:nth-child(4) .step__n { background: var(--violet); }
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: .92rem; }

/* Quotes */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote p { color: var(--ink); font-size: 1.04rem; }
.quote__a { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.quote:nth-child(1) .quote__av { background: var(--coral); } .quote:nth-child(2) .quote__av { background: var(--teal); } .quote:nth-child(3) .quote__av { background: var(--violet); }
.quote__a b { display: block; } .quote__a span { font-size: .85rem; color: var(--dim); }

/* Projects */
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__cover { aspect-ratio: 16/10; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 22px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag { font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 100px; background: var(--surface-2); color: var(--muted); }
.project__body h3 { margin-bottom: 7px; }
.project__body p { font-size: .93rem; }

/* Values / Team */
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.value__i { font-size: 1.8rem; margin-bottom: 12px; }
.value h3 { font-size: 1.1rem; margin-bottom: 7px; }
.value p { font-size: .93rem; }
.member { text-align: center; }
.member__ph { aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center; font-weight: 800; font-size: 2.4rem; color: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.member:nth-child(1) .member__ph { background: var(--coral); } .member:nth-child(2) .member__ph { background: var(--teal); }
.member:nth-child(3) .member__ph { background: var(--amber); } .member:nth-child(4) .member__ph { background: var(--violet); }
.member h3 { font-size: 1.08rem; } .member span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* CTA */
.cta { background: var(--coral); border-radius: var(--radius-xl); padding: 60px 44px; text-align: center; box-shadow: var(--shadow); }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .92; max-width: 540px; margin: 14px auto 28px; font-size: 1.08rem; }
.cta .btn--primary { background: #fff; color: var(--coral-d); box-shadow: 0 16px 30px -12px rgba(0,0,0,.3); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cta .hero__cta { justify-content: center; }

/* Page hero (sub) */
.page-hero { padding: calc(var(--header-h) + 60px) 0 40px; text-align: center; }
.page-hero p { max-width: 600px; margin: 16px auto 0; font-size: 1.08rem; }
.crumb { font-size: .85rem; color: var(--dim); margin-bottom: 16px; }
.crumb a:hover { color: var(--coral); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 13px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 19px 22px; font-weight: 700; font-size: 1rem; }
.faq__q svg { width: 20px; height: 20px; flex: none; stroke: var(--coral); fill: none; stroke-width: 2.4; transition: transform .3s; }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 22px 20px; font-size: .96rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; }
.cinfo li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.cinfo .ci { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.cinfo .ci svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cinfo li:nth-child(1) .ci { background: var(--coral); } .cinfo li:nth-child(2) .ci { background: var(--teal); }
.cinfo li:nth-child(3) .ci { background: var(--amber); } .cinfo li:nth-child(4) .ci { background: var(--violet); }
.cinfo b { display: block; } .cinfo a, .cinfo span { color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border-strong); color: var(--ink); font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,92,.16); }
.field textarea { resize: vertical; min-height: 128px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form button[type=submit] { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { margin-top: 14px; font-size: .82rem; color: var(--dim); text-align: center; }
.form__ok { display: none; padding: 15px; border-radius: var(--radius); background: rgba(17,181,164,.12); border: 1px solid var(--teal); color: var(--teal-d); font-weight: 600; margin-bottom: 18px; }
html[data-mode="dark"] .form__ok { color: #4FE3D0; }
.form__ok.show { display: block; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand p { font-size: .95rem; margin: 16px 0; max-width: 300px; }
.footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: .95rem; }
.footer ul a:hover { color: var(--coral); }
.socials { display: flex; gap: 9px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--surface-2); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__bottom p, .footer__bottom a { font-size: .87rem; color: var(--dim); }
.footer__bottom a:hover { color: var(--coral); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* i18n */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-fr] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav, .header__actions .lang { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); padding: 16px; gap: 6px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open .lang { display: inline-flex; margin-top: 8px; align-self: flex-start; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; }
}
.nav .lang { display: none; }
@media (max-width: 720px) { .nav.open .lang { display: inline-flex; } }
