/* SL Web Agency · solutions digitales */

:root {
  --bg: #061624;
  --bg-2: #0A2236;
  --panel: #0E2A42;
  --line: rgba(160, 190, 215, 0.16);
  --line-strong: rgba(160, 190, 215, 0.3);
  --grid: rgba(120, 160, 195, 0.07);
  --text: #EEF3F7;
  --text-soft: #A9BDCE;
  --text-dim: #7F97AB;
  --gold: #D6AA4E;
  --gold-hi: #E6BF68;
  --gold-wash: rgba(214, 170, 78, 0.12);
  --ok: #7FC8A9;

  --font: "Archivo", system-ui, sans-serif;
  --mono: "Archivo", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --section: clamp(88px, 11vw, 148px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #2B4A63 var(--bg); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2B4A63; border: 3px solid var(--bg); border-radius: 12px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; caret-color: var(--gold);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--text-soft); max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 1.0625rem/1 var(--font); padding: 1.05em 1.5em; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out), color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #08192A; box-shadow: 0 12px 28px -16px rgba(214,170,78,.9); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); background: transparent; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text-soft); background: rgba(255,255,255,.03); }
.note { color: var(--text-dim); font-size: .95rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 22, 36, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.02em; }
.wordmark .mono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--gold); color: #08192A; font-weight: 700; font-size: 1rem; letter-spacing: -0.04em; }
.wordmark b { font-weight: 700; }
.wordmark span.t { color: var(--text-soft); font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav a:not(.btn) { color: var(--text-soft); text-decoration: none; font-size: .975rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: .78em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: 500 1rem var(--font); cursor: pointer; padding: 10px 4px; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav { position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 20px; justify-content: center; padding: 1.05em 1.5em; }
}

/* hero */
.hero { padding: clamp(56px, 8vw, 112px) 0 var(--section); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 78% 35%, rgba(30, 72, 108, .55), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }
.by { margin-top: 44px; display: flex; align-items: center; gap: 14px; color: var(--text-dim); font-size: .95rem; }
.by img { height: 30px; width: auto; opacity: .9; }
.by a { color: var(--text-soft); }

/* flow diagram */
.flow { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.flow-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.flow-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #08192A; font-weight: 700; font-size: .95rem; letter-spacing: .01em; padding: 7px 14px 7px 12px; border-radius: 999px; }
.flow-badge .pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #08192A; flex: none; }
.flow-head .t { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; font-stretch: 115%; line-height: 1.2; margin-top: 6px; }
.flow-intro { color: var(--text-soft); font-size: .975rem; line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .flow-badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #08192A; animation: pulse 1.8s var(--ease-out) infinite; }
  @keyframes pulse { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }
}
.flow ol { position: relative; }
.flow li { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 14px; border-radius: 10px; border: 1px solid transparent; transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out); }
.flow li + li { margin-top: 18px; }
.flow li + li::before { content: ""; position: absolute; left: 33px; top: -19px; height: 20px; width: 1.5px; background: var(--line-strong); }
.flow .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-soft); transition: all .5s var(--ease-out); }
.flow .ic svg { width: 20px; height: 20px; }
.flow .lbl { font-size: 1rem; line-height: 1.35; }
.flow .lbl small { display: block; color: var(--text-dim); font-size: .85rem; margin-top: 2px; }
.flow .when { font-family: var(--mono); font-size: .8rem; color: var(--text-dim); white-space: nowrap; }
.flow li.on { background: var(--gold-wash); border-color: rgba(214,170,78,.35); }
.flow li.on .ic { background: var(--gold); border-color: var(--gold); color: #08192A; }
.flow li.done .ic { color: var(--ok); border-color: rgba(127,200,169,.4); }
.flow-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: .9rem; }
.flow-foot b { color: var(--text); font-weight: 600; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section.solid { background: var(--bg-2); }
.head { max-width: 760px; }
.head .lead { margin-top: 20px; }

/* before / after table */
.ba { margin-top: 56px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(6, 22, 36, .6); }
.ba-row { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr 1fr; }
.ba-row + .ba-row { border-top: 1px solid var(--line); }
.ba-row > * { padding: 24px 28px; }
.ba-row.th > * { padding-top: 16px; padding-bottom: 16px; font-family: var(--mono); font-size: .8rem; color: var(--text-dim); letter-spacing: .02em; background: rgba(255,255,255,.02); }
.ba-row.th .after { color: var(--gold); }
.ba-row h3 { font-size: 1.15rem; }
.ba-row .before { color: var(--text-soft); border-left: 1px solid var(--line); }
.ba-row .after { border-left: 1px solid var(--line); background: linear-gradient(90deg, rgba(214,170,78,.06), transparent 70%); }
.ba-row .after p { position: relative; padding-left: 26px; }
.ba-row .after p::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
@media (max-width: 860px) {
  .ba-row, .ba-row.th { grid-template-columns: 1fr; }
  .ba-row.th { display: none; }
  .ba-row > * { padding: 14px 22px; }
  .ba-row h3 { padding-top: 24px; }
  .ba-row .before, .ba-row .after { border-left: 0; }
  .ba-row .before::before { content: "Aujourd'hui"; display: block; font-family: var(--mono); font-size: .75rem; color: var(--text-dim); margin-bottom: 4px; }
  .ba-row .after { padding-bottom: 24px; }
  .ba-row .after::before { content: "Une fois automatisé"; display: block; font-family: var(--mono); font-size: .75rem; color: var(--gold); margin-bottom: 4px; }
}

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.sliders { display: grid; gap: 6px; }
.slider { padding: 18px 0; border-bottom: 1px solid var(--line); }
.slider:first-child { border-top: 1px solid var(--line); }
.slider label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.slider output { font-family: var(--mono); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; margin-top: 14px; accent-color: var(--gold); height: 28px; cursor: pointer; background: transparent; -webkit-appearance: none; appearance: none; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.slider input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.slider input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.slider input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }
.result { position: sticky; top: 110px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.result .k { color: var(--text-soft); font-size: 1rem; }
.result .big { font-size: clamp(3.2rem, 6vw, 4.75rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.result .big .unit { font-size: .4em; letter-spacing: -0.01em; color: var(--text-soft); font-weight: 500; margin-left: 6px; }
.result .year { margin-top: 12px; color: var(--text-soft); }
.result .year b { color: var(--gold); font-weight: 600; }
.result hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.result p.small { color: var(--text-dim); font-size: .9rem; margin-top: 16px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .result { position: static; } }

/* method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: 64px; counter-reset: m; }
.method li { position: relative; padding-top: 44px; counter-increment: m; }
.method li::before { content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--text-soft); z-index: 1; }
.method li:not(:last-child)::after { content: ""; position: absolute; top: 15.5px; left: 16px; right: -28px; height: 1.5px; background: var(--line-strong); }
.method li.lit::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-wash); }
.method li.lit::after { background: linear-gradient(90deg, var(--gold), var(--line-strong)); }
.method li.lit h3 { color: var(--gold); }
.method p { margin-top: 10px; color: var(--text-soft); font-size: 1rem; }
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; gap: 0; }
  .method li { padding: 0 0 36px 44px; }
  .method li::before { top: 4px; }
  .method li:not(:last-child)::after { top: 20px; left: 7.25px; right: auto; bottom: 0; width: 1.5px; height: auto; }
  .method li.lit::after { background: linear-gradient(180deg, var(--gold), var(--line-strong)); }
}

/* case + why */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.case { border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 4vw, 44px); background: rgba(6,22,36,.5); }
.case .who { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.case .role { color: var(--text-dim); }
.case p { margin-top: 18px; color: var(--text-soft); }
.case ul { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.case ul li { font-family: var(--mono); font-size: .8rem; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }
.why h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.why p { margin-top: 18px; color: var(--text-soft); max-width: 58ch; }
.why .link { display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; color: var(--text); font-weight: 500; }
.why .link svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* closing */
.closing { text-align: center; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 80% at 50% 115%, rgba(214,170,78,.18), transparent 70%); pointer-events: none; }
.closing .wrap { position: relative; display: grid; justify-items: center; }
.closing h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 18ch; }
.closing .lead { margin: 22px auto 0; }
.closing .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--text-dim); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer a { color: var(--text-soft); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .hero .actions .note { width: 100%; text-align: center; }
  .flow { padding: 18px 14px; }
  .flow li { grid-template-columns: 36px 1fr; padding: 10px; }
  .flow .when { grid-column: 2; }
  .flow li + li::before { left: 27px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-rise] { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .hero .flow { animation: rise 1.2s var(--ease-out) both .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
}

/* the agency speaks in wide lettering */
h1, h2, .result .big, .wordmark b { font-stretch: 115%; font-weight: 650; }
.hero h1 { font-weight: 700; }
