/* Landing autonome alternative-dlex.be. Reprend la charte eLaw (tokens de public/assets/css/tokens.css). */
:root {
  --c-night-blue: #0f1c2e;
  --c-night-blue-soft: #142742;
  --c-night-blue-deep: #0a1422;
  --c-royal-blue: #2f6fed;
  --c-gold: #c9a24d;
  --c-gold-bright: #e0bd6c;
  --c-bg: #f4f6f9;
  --c-surface: #ffffff;
  --c-surface-soft: #edf2f7;
  --c-text: #1b2635;
  --c-text-muted: #526070;
  --c-heading: #0f1c2e;
  --c-border: #d7e0ea;
  --c-border-strong: #b7c4d2;
  --font-title: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-raised: 0 24px 70px rgba(10, 20, 34, .34);
  --maxw: 1220px;
  --header-h: 70px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0b1522;
    --c-surface: #111b2a;
    --c-surface-soft: #152236;
    --c-text: #e7ecf4;
    --c-text-muted: #a6b2c2;
    --c-heading: #e7ecf4;
    --c-border: #253348;
    --c-border-strong: #3a4a62;
    --c-royal-blue: #7fa8ff;
    --c-gold: #d9b76a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--c-heading); }

h1, h2 { font-family: var(--font-title); font-weight: 700; }
h1 { font-size: clamp(2.6rem, 1.45rem + 3.2vw, 4.1rem); line-height: 1; }
h2 { max-width: 26ch; text-wrap: balance; font-size: clamp(2rem, 1.35rem + 2.2vw, 3.2rem); line-height: 1.04; }
h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.35rem); font-weight: 700; line-height: 1.2; }
p { max-width: 68ch; }
sup { font-size: .6em; line-height: 0; }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

.container { width: min(var(--maxw), calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .5rem 1rem;
  background: var(--c-gold);
  color: var(--c-night-blue);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin-bottom: .85rem;
  color: var(--c-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10, 20, 34, .22); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--gold { background: var(--c-gold); color: var(--c-night-blue-deep); }
.btn--gold:hover { background: var(--c-gold-bright); }
.btn--light { background: #f8fafc; color: var(--c-night-blue); }
.btn--ghost-dark { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(15, 28, 46, .96), rgba(20, 39, 66, .96));
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 42px; }
.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.site-nav a { padding-block: .35rem; text-decoration: none; }
.site-nav a:hover { color: var(--c-gold-bright); }
.site-header__cta { min-height: 2.6rem; padding: .65rem 1.2rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 5vw, 4.5rem);
  border-bottom: 3px solid var(--c-gold);
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 111, 237, .24), transparent 36%),
    linear-gradient(120deg, rgba(201, 162, 77, .16), transparent 34%),
    linear-gradient(135deg, var(--c-night-blue-deep), var(--c-night-blue-soft));
  color: #fff;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; color: #fff; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--c-gold-bright); }
.hero__lead {
  max-width: 52ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__visual { position: relative; padding-bottom: 4.5rem; }
.browser-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-raised);
}
.browser-frame__bar {
  height: 2.2rem;
  display: flex;
  gap: .45rem;
  align-items: center;
  padding: 0 .9rem;
  background: #e7edf4;
}
.browser-frame__bar span { width: .58rem; height: .58rem; border-radius: 50%; background: var(--c-gold); }
.browser-frame img { width: 100%; }

/* Compte à rebours : posé à cheval sur la capture pour lier l'échéance à la solution. */
.countdown {
  position: absolute;
  left: -2.5rem;
  bottom: 0;
  padding: 1.1rem 1.35rem 1.2rem;
  border: 1px solid rgba(224, 189, 108, .55);
  border-radius: var(--radius-md);
  background: rgba(10, 20, 34, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.countdown__label {
  margin-bottom: .75rem;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.countdown__fallback { margin: 0; font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--c-gold-bright); }
.countdown.is-live .countdown__fallback { display: none; }
.countdown__cells { display: flex; gap: 1.5rem; margin: 0; }
.countdown__cells[hidden] { display: none; }
.countdown__cells div { min-width: 3.4rem; }
.countdown__cells dd {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
.countdown__cells div:first-child dd { color: var(--c-gold-bright); }
.countdown__cells dt { margin-top: .35rem; color: rgba(255, 255, 255, .7); font-size: .8rem; }

/* Engagements */
.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-block: 0;
  padding: 1.75rem 0;
  list-style: none;
  border-bottom: 1px solid var(--c-border);
}
.promises li { padding-left: 1rem; border-left: 2px solid var(--c-gold); }
.promises strong { display: block; }
.promises span { color: var(--c-text-muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--c-surface-soft); }
.section--dark {
  background:
    linear-gradient(120deg, rgba(201, 162, 77, .14), transparent 34%),
    linear-gradient(135deg, var(--c-night-blue-deep), var(--c-night-blue-soft));
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 800px; margin-bottom: 2.5rem; }
/* Sur grand écran, les titres occupent la largeur disponible ; les paragraphes restent limités à 68ch. */
@media (min-width: 1024px) {
  h2, .section__head { max-width: none; }
}
.section__head h2 { margin-bottom: 1.25rem; }
.section__head p:not(.eyebrow) { margin-bottom: 0; color: var(--c-text-muted); font-size: 1.12rem; }
.section--dark .section__head p { color: rgba(255, 255, 255, .82); }

/* Échéance : progression de l'année + étapes */
.year { margin-bottom: 3rem; }
.year__status { margin-bottom: 1rem; max-width: none; color: var(--c-text-muted); font-size: 1.1rem; }
.year__status strong {
  margin-right: .35rem;
  color: var(--c-heading);
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
.year__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--c-border);
}
.year__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-night-blue-soft), var(--c-gold));
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1);
}
.year__pin {
  position: absolute;
  top: 50%;
  left: var(--progress);
  width: 22px;
  height: 22px;
  border: 4px solid var(--c-bg);
  border-radius: 50%;
  background: var(--c-gold);
  transform: translate(-50%, -50%);
  transition: left 1.4s cubic-bezier(.16, 1, .3, 1);
}
.js .year:not(.is-visible) .year__fill { width: 0; }
.js .year:not(.is-visible) .year__pin { left: 0; }
.year__scale {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
  color: var(--c-text-muted);
  font-size: .9rem;
  font-weight: 700;
}
.year__scale span:last-child { color: var(--c-heading); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { padding-top: 1rem; border-top: 1px solid var(--c-border-strong); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: .75rem;
  color: var(--c-gold);
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { margin-bottom: 0; color: var(--c-text-muted); }

/* Reprise des données */
.recovery {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 3rem;
  align-items: start;
}
.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
}
.scope div { padding-top: 1rem; border-top: 1px solid var(--c-border-strong); }
.scope dt { margin-bottom: .4rem; font-weight: 700; }
.scope dd { margin: 0; color: var(--c-text-muted); }
.cleanup {
  padding: 2rem;
  border-left: 3px solid var(--c-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--c-surface);
}
.cleanup h3 { font-size: 1.5rem; }
.cleanup p, .cleanup li { color: var(--c-text-muted); }
.cleanup strong { color: var(--c-text); }
.cleanup ul { display: grid; gap: .8rem; margin-bottom: 0; padding-left: 1.2rem; }
.cleanup li::marker { color: var(--c-gold); }

/* Local ou cloud */
.hosting { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hosting article { padding: .5rem 3rem .5rem 0; }
.hosting article + article { padding: .5rem 0 .5rem 3rem; border-left: 1px solid rgba(255, 255, 255, .2); }
.hosting__tag {
  margin-bottom: .6rem;
  color: var(--c-gold-bright);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}
.hosting h3 { margin-bottom: 1.25rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.hosting ul { display: grid; gap: .7rem; margin: 0; padding-left: 1.2rem; color: rgba(255, 255, 255, .84); }
.hosting li::marker { color: var(--c-gold-bright); }

/* Solution */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 2; }
.bento figure, .bento article { margin: 0; border-radius: var(--radius-md); }
.bento__shot { overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface); }
.bento__shot img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--c-border); }
.bento__shot figcaption { padding: 1.1rem 1.35rem 1.25rem; color: var(--c-text-muted); }
.bento__shot figcaption strong { display: block; margin-bottom: .2rem; color: var(--c-text); font-size: 1.12rem; }
.bento__stack { display: grid; gap: 1.25rem; }
.bento__note { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.bento__note p:last-child { margin-bottom: 0; }
.bento__note--gold { background: linear-gradient(160deg, rgba(201, 162, 77, .3), rgba(201, 162, 77, .1)); border: 1px solid rgba(201, 162, 77, .45); }
.bento__note--gold p { color: var(--c-text-muted); }
.bento__note--night { background: linear-gradient(150deg, var(--c-night-blue-deep), var(--c-night-blue-soft)); color: rgba(255, 255, 255, .84); }
.bento__note--night h3 { color: #fff; }
.bento__note--day { border: 1px solid var(--c-border); background: var(--c-surface); }
.bento__note--day p { color: var(--c-text-muted); }
.bento__note--day .bento__big {
  margin: 0 0 auto;
  padding-bottom: 1.5rem;
  color: var(--c-gold);
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 2rem + 3.6vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: .25rem .7rem;
  border: 1px solid rgba(201, 162, 77, .6);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: .88rem;
  font-weight: 700;
}
.more-link { margin: 2rem 0 0; }
.text-link { color: var(--c-royal-blue); font-weight: 800; text-underline-offset: .25em; }

/* FAQ */
#questions h2 { margin-bottom: 2rem; }
.faq { padding: 1.1rem 0; border-top: 1px solid var(--c-border-strong); }
.faq:last-child { border-bottom: 1px solid var(--c-border-strong); }
.faq summary { cursor: pointer; color: var(--c-heading); font-size: 1.1rem; font-weight: 800; }
.faq summary::marker { color: var(--c-gold); }
.faq p { margin: .85rem 0 0; color: var(--c-text-muted); }

/* Appel final */
.cta {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 3px solid var(--c-gold);
  background:
    radial-gradient(circle at 12% 110%, rgba(47, 111, 237, .22), transparent 40%),
    linear-gradient(135deg, var(--c-night-blue-deep), var(--c-night-blue-soft));
  color: #fff;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}
.cta h2 { margin-bottom: 1rem; color: #fff; }
.cta p { margin-bottom: 0; color: rgba(255, 255, 255, .84); }
.cta__actions { display: grid; gap: 1rem; justify-items: start; }
.cta__actions .btn { min-height: 3.4rem; padding-inline: 2rem; font-size: 1.1rem; }
.cta__contact { font-size: .98rem; }
.cta__contact a { color: #fff; font-weight: 700; text-underline-offset: .2em; }

/* Pied de page */
.footer { padding: 3rem 0 1.5rem; background: var(--c-night-blue-deep); color: rgba(255, 255, 255, .8); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { margin-bottom: 1rem; }
.footer h2 { max-width: none; margin-bottom: .75rem; color: #fff; font-family: var(--font-body); font-size: .98rem; }
.footer__grid a:not(.brand) { display: block; margin-bottom: .45rem; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
}
.footer__legal p { max-width: 90ch; margin-bottom: .6rem; }

/* Bannière de consentement (assets/js/analytics.js) */
.btn--ghost { border-color: var(--c-border-strong); background: transparent; color: var(--c-text); }
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  width: min(880px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--c-border-strong);
  border-top: 3px solid var(--c-gold);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-raised);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { max-width: none; margin-bottom: .25rem; font-size: 1.1rem; }
.cookie-banner p { max-width: none; margin: 0; color: var(--c-text-muted); font-size: .92rem; line-height: 1.5; }
.cookie-banner p a { color: var(--c-royal-blue); }
.cookie-banner__actions { display: flex; flex-shrink: 0; gap: .75rem; }
.cookie-banner .btn { cursor: pointer; font: inherit; font-weight: 800; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Apparition au défilement : le contenu reste visible sans JavaScript. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.steps li:nth-child(2), .bento__stack > :nth-child(2) { transition-delay: .08s; }
.steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4), .bento > :nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .countdown__seconds { display: none; }
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .hero__grid, .recovery, .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 span { display: inline; }
  .countdown { left: 1rem; }
  .promises, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > :nth-child(1), .bento > :nth-child(4) { grid-column: auto; }
  .bento__stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .promises, .steps, .scope, .hosting, .bento__stack, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .promises { gap: 1rem; }
  .hosting article, .hosting article + article { padding: 0; border-left: 0; }
  .hosting article + article { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .2); }
  .hero__visual { display: flex; flex-direction: column-reverse; gap: 1.25rem; padding-bottom: 0; }
  .countdown { position: static; }
  .countdown__cells { gap: 1rem; justify-content: space-between; }
  .countdown__cells div { min-width: 0; }
  .cleanup { padding: 1.5rem; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .cta__actions { justify-items: stretch; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--maxw)); }
  .brand img { height: 36px; }
  .site-header__inner { gap: .75rem; }
  .site-header__cta { padding-inline: .9rem; font-size: .92rem; }
}
