/* ============================================================
   REM-INFO — Design System
   Blueprint identity · premium SaaS aesthetic
   Shared across all pages. Single source of truth.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Ink ramp (brand navy) */
  --ink-900: #081627;
  --ink-800: #0d2137;   /* brand ink — preserved */
  --ink-700: #13304c;
  --ink-600: #1a3a5c;
  --ink-500: #2e5f8a;

  /* Blueprint blue ramp */
  --brand-700: #123e86;
  --brand-600: #1a5fd0;  /* primary interactive */
  --brand-500: #2b6fd6;
  --brand-400: #4f93f0;
  --brand-300: #8fbdf7;
  --brand-100: #d6e6fb;
  --brand-050: #eaf2fd;

  /* Cool neutrals (never warm/cream) */
  --bg:        #f4f7fb;
  --bg-2:      #eef3f9;
  --surface:   #ffffff;
  --surface-2: #fafcfe;

  --text:   #0d2137;   /* primary text */
  --text-2: #3a5372;   /* body — contrast ≥6:1 on --bg */
  --muted:  #5f7793;   /* labels / large text only */

  --line:        rgba(20, 48, 77, 0.10);
  --line-strong: rgba(20, 48, 77, 0.16);
  --line-faint:  rgba(20, 48, 77, 0.06);

  /* On-dark tokens */
  --d-text:   rgba(255,255,255,0.94);
  --d-text-2: rgba(255,255,255,0.66);
  --d-muted:  rgba(255,255,255,0.48);
  --d-line:   rgba(255,255,255,0.12);
  --d-line-2: rgba(255,255,255,0.07);

  /* Blueprint grid */
  --grid-fine:  rgba(26, 95, 168, 0.055);
  --grid-major: rgba(26, 95, 168, 0.11);
  --grid-fine-d:  rgba(255,255,255,0.045);
  --grid-major-d: rgba(255,255,255,0.08);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(13,33,55,0.06);
  --shadow-sm: 0 2px 6px rgba(13,33,55,0.06), 0 1px 2px rgba(13,33,55,0.04);
  --shadow-md: 0 12px 28px -12px rgba(13,33,55,0.16), 0 3px 8px -4px rgba(13,33,55,0.08);
  --shadow-lg: 0 30px 64px -24px rgba(13,33,55,0.28), 0 10px 28px -16px rgba(13,33,55,0.14);
  --shadow-brand: 0 18px 44px -14px rgba(26,95,208,0.42);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-14: 56px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Layout */
  --maxw: 1200px;
  --maxw-text: 680px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);

  /* Type */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --fs-display: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.7vw, 3.35rem);
  --fs-h2: clamp(1.7rem, 1.28rem + 1.85vw, 2.7rem);
  --fs-h3: clamp(1.28rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-lg: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.16s;
  --dur-2: 0.28s;
  --dur-3: 0.5s;
  --dur-4: 0.8s;

  /* Z-scale (semantic) */
  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Page blueprint background ---------- */
.bp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
}

/* Organic ambient light (softens the flat horizontal bands) */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora .a1 { width: 40vw; min-width: 460px; aspect-ratio: 1; left: -10%; top: 2%; background: radial-gradient(circle, rgba(79,147,240,0.20), transparent 62%); }
.aurora .a2 { width: 46vw; min-width: 520px; aspect-ratio: 1; right: -14%; top: 40%; background: radial-gradient(circle, rgba(139,189,247,0.16), transparent 62%); }
.aurora .a3 { width: 38vw; min-width: 440px; aspect-ratio: 1; left: 26%; bottom: -14%; background: radial-gradient(circle, rgba(43,111,214,0.12), transparent 64%); }

/* Cursor halo — fine-pointer only */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none; z-index: 4;
  background: radial-gradient(circle, rgba(79,147,240,0.12) 0%, rgba(79,147,240,0.05) 38%, transparent 68%);
  opacity: 0; transition: opacity 0.45s var(--ease-out); will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* Wave dividers — layered organic transition into/out of dark sections */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: clamp(74px, 10vw, 138px); overflow: visible; }
.wave--top { top: 1px; transform: translateY(-100%); }
.wave--bottom { bottom: 1px; transform: translateY(100%) scaleY(-1); }
.wave--soft { top: 0; left: 50%; width: 100vw; transform: translateX(-50%) translateY(-58%); }
.wave--soft svg { height: clamp(60px, 8vw, 112px); }
.wave::before {
  content: ""; position: absolute; left: 50%; bottom: -6%;
  width: 78%; height: 150%; transform: translateX(-50%);
  background: radial-gradient(55% 78% at 50% 100%, rgba(79,147,240,0.24), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: var(--z-base); padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
main { position: relative; z-index: var(--z-base); }

/* ---------- Typography ---------- */
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--muted); }
.prose { color: var(--text-2); text-wrap: pretty; }
strong, b { font-weight: 650; color: var(--text); }

/* Mono kicker — used sparingly, not on every section */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand-600);
  text-transform: none;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.kicker--center { justify-content: center; }
.on-dark .kicker { color: var(--brand-300); }

/* Section heading block */
.head { max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; }
.head .h2 { margin-top: var(--s-4); }
.head .lead { margin-top: var(--s-5); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 46px;
  padding-inline: var(--s-6);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 550;
  letter-spacing: 0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  box-shadow: var(--shadow-brand);
  transition: transform var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -14px rgba(26,95,208,0.5); background: var(--brand-700); }
.btn:active { transform: translateY(0); }
.btn .i { width: 17px; height: 17px; }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--brand-300); box-shadow: var(--shadow-md); }

.btn--dark {
  --btn-bg: var(--ink-800);
  --btn-fg: #fff;
  box-shadow: var(--shadow-md);
}
.btn--dark:hover { background: var(--ink-700); box-shadow: var(--shadow-lg); }

.btn--on-dark-ghost {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-fg: var(--d-text);
  border-color: var(--d-line);
  box-shadow: none;
}
.btn--on-dark-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }

.btn--lg { height: 52px; padding-inline: var(--s-8); font-size: var(--fs-body); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--brand-600);
}
.link-arrow .arrow { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 30px;
  padding-inline: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.pill .dot--live { box-shadow: 0 0 0 0 rgba(43,111,214,0.5); animation: pulse 2.4s var(--ease-out) infinite; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-500);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  padding: 3px 9px;
  border-radius: var(--r-xs);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244, 247, 251, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.06rem; color: var(--ink-800); }
.brand__mark { height: 30px; width: auto; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: var(--s-8); }
.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-1) var(--ease-out);
}
.nav__links a:hover { color: var(--ink-800); }
.nav__right { display: flex; align-items: center; gap: var(--s-4); }
.nav__cta { height: 42px; padding-inline: var(--s-5); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 20px; height: 20px; color: var(--ink-800); }

/* Mobile panel */
.nav__panel {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: var(--z-nav);
  background: rgba(244,247,251,0.96);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) var(--gutter) var(--s-8);
  display: none;
  flex-direction: column;
  gap: var(--s-2);
}
.nav__panel.is-open { display: flex; animation: panelIn var(--dur-2) var(--ease-out); }
.nav__panel a {
  padding: var(--s-4) var(--s-3);
  border-radius: var(--r-sm);
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink-800);
  border-bottom: 1px solid var(--line-faint);
}
.nav__panel a:hover { background: var(--surface); }
.nav__panel .btn { margin-top: var(--s-4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 15vw, 168px); padding-bottom: clamp(60px, 8vw, 104px); overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  width: min(1100px, 120vw); height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 40%, rgba(79,147,240,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(44px, 6vw, 104px); grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; }
.hero__copy { max-width: 640px; min-width: 0; }
.hero__visual { min-width: 0; }
.hero__title {
  margin-top: var(--s-5);
  font-size: clamp(1.95rem, 1.3rem + 2.35vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__title .accent { color: var(--brand-600); }
.hero__etsi { display: block; color: var(--text); }

/* Rotating "Et si…" headline — grid overlay keeps text wrapping within the column */
.rotator { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 0.08em; }
.rotator__sizer, .rotator__text { grid-area: 1 / 1; min-width: 0; overflow-wrap: break-word; }
.rotator__sizer { visibility: hidden; }
.rotator__text { color: var(--brand-600); }
.caret {
  display: inline-block;
  width: 0.055em; height: 0.92em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.06em;
  border-radius: 1px;
  animation: blink 1.05s steps(1) infinite;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.hero__sub { margin-top: var(--s-6); max-width: 520px; }
.hero__actions { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__trust { margin-top: var(--s-10); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.hero__trust-label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.hero__trust-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.hero__trust-list span { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.hero__trust-list span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }

/* Hero visual: browser mock being drafted */
.hero__visual { position: relative; }
.browser {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser__url {
  margin-left: 8px; flex: 1;
  height: 26px; border-radius: var(--r-pill);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px;
  padding-inline: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
}
.browser__url svg { width: 12px; height: 12px; color: var(--brand-500); }
.browser__view { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.browser__view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.browser__badge {
  position: absolute;
  right: -14px; bottom: -14px;
  background: var(--ink-800);
  color: #fff;
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
}
.browser__badge .n { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.browser__badge .l { font-size: 0.66rem; line-height: 1.3; color: var(--d-text-2); font-family: var(--font-mono); }

/* Hero entrance — autoplay on load (never gated behind JS class; visible by default) */
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
html.js .draw { animation: draw var(--dur-4) var(--ease-out) both; animation-delay: var(--d, 0s); }
html:not(.js) .draw { stroke-dashoffset: 0; }
html.js .hero__soft { animation: heroIn var(--dur-3) var(--ease-out) both; animation-delay: var(--d, 0s); }

/* ---------- Statement / présentation ---------- */
.statement { text-align: center; }
.statement .big {
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 940px;
  margin-inline: auto;
  text-wrap: balance;
}
.statement .big b { color: var(--brand-600); font-weight: 650; }
.statement .big .dim { color: var(--muted); }
.statement__row { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.stmt-card {
  text-align: left;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stmt-card .ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); margin-bottom: var(--s-4); }
.stmt-card .ic svg { width: 20px; height: 20px; }
.stmt-card h3 { margin-bottom: var(--s-2); font-size: 1.08rem; }
.stmt-card p { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: var(--s-4); margin-top: var(--s-12); align-items: stretch; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200, var(--brand-100)); }
.tile__ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); margin-bottom: var(--s-4); flex-shrink: 0; }
.tile__ic svg { width: 21px; height: 21px; }
.tile h3 { font-size: 1.12rem; margin-bottom: var(--s-2); }
.tile p { font-size: var(--fs-sm); color: var(--text-2); }
.tile__foot { margin-top: auto; padding-top: var(--s-4); }
.tile__spacer { flex: 1; }

/* Bento spans */
.tile--a { grid-column: span 3; grid-row: span 2; }  /* Création de site (hero tile) */
.tile--b { grid-column: span 3; grid-row: span 1; }  /* SEO */
.tile--c { grid-column: span 3; grid-row: span 1; }  /* Google Business */
.tile--d { grid-column: span 2; grid-row: span 1; }  /* Hébergement */
.tile--e { grid-column: span 2; grid-row: span 1; }  /* Maintenance */
.tile--f { grid-column: span 2; grid-row: span 1; }  /* Accompagnement */
.tile--g { grid-column: span 3; grid-row: span 1; }  /* Identité visuelle */
.tile--h { grid-column: span 3; grid-row: span 1; }  /* Cartes de visite */

/* Dark hero tile */
.tile--dark { background: var(--ink-800); border-color: var(--ink-700); color: var(--d-text); }
.tile--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(var(--grid-major-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major-d) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 75%);
}
.tile--dark h3 { color: #fff; font-size: var(--fs-h3); }
.tile--dark p { color: var(--d-text-2); }
.tile--dark .tile__ic { background: rgba(255,255,255,0.08); color: var(--brand-300); }
.tile--dark .link-arrow { color: var(--brand-300); }

.tile__mock { position: relative; z-index: 1; margin-top: var(--s-5); border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; border: 1px solid var(--d-line); border-bottom: none; flex: 1; min-height: 0; }
.tile__mock svg { width: 100%; height: 100%; }

/* SEO tile chart */
.seo-chart { display: flex; align-items: flex-end; gap: 7px; height: 54px; margin-top: auto; }
.seo-chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand-100); }
.seo-chart span.up { background: linear-gradient(180deg, var(--brand-500), var(--brand-400)); }
.stat-inline { display: flex; align-items: baseline; gap: 8px; margin-top: var(--s-3); }
.stat-inline .n { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.stat-inline .u { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }

/* Google business mini card */
.gbp {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: var(--s-4);
  display: flex; gap: var(--s-3); align-items: center;
}
.gbp__pin { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--brand-050); display: grid; place-items: center; color: var(--brand-600); flex-shrink: 0; }
.gbp__pin svg { width: 19px; height: 19px; }
.gbp__name { font-weight: 600; font-size: var(--fs-sm); }
.gbp__stars { display: flex; align-items: center; gap: 3px; margin-top: 2px; color: #e8a13a; font-size: 0.72rem; }
.gbp__stars svg { width: 12px; height: 12px; }
.gbp__stars .c { color: var(--muted); font-family: var(--font-mono); margin-left: 4px; }

/* Hosting status */
.status-row { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-2); }
.status-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; }
.status-line .dot { width: 7px; height: 7px; border-radius: 50%; background: #24b47e; box-shadow: 0 0 0 3px rgba(36,180,126,0.15); }
.status-line .k { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.status-line .v { font-family: var(--font-mono); color: var(--muted); }

/* swatches for identité */
.swatches { display: flex; gap: 8px; margin-top: auto; }
.swatches i { flex: 1; height: 34px; border-radius: var(--r-xs); border: 1px solid var(--line); }

/* business card mock */
.card-mock { margin-top: auto; aspect-ratio: 1.75 / 1; max-width: 210px; border-radius: var(--r-sm); background: linear-gradient(145deg, var(--ink-800), var(--ink-600)); box-shadow: var(--shadow-md); padding: var(--s-4); position: relative; overflow: hidden; }
.card-mock::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--grid-fine-d) 1px,transparent 1px),linear-gradient(90deg,var(--grid-fine-d) 1px,transparent 1px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(100% 100% at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 100%, #000, transparent 70%); }
.card-mock .cm-name { color:#fff; font-weight:650; font-size:0.82rem; letter-spacing:-0.01em; position:relative; }
.card-mock .cm-role { color: var(--d-text-2); font-family: var(--font-mono); font-size:0.6rem; margin-top:2px; position:relative; }
.card-mock .cm-line { position:absolute; bottom: var(--s-4); left: var(--s-4); right: var(--s-4); height:1px; background: rgba(255,255,255,0.14); }

/* ---------- Section: dark (why / method) ---------- */
.dark-section { position: relative; background: var(--ink-900); color: var(--d-text); z-index: var(--z-base); }
.dark-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(var(--grid-major-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major-d) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  -webkit-mask-image: radial-gradient(130% 100% at 20% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(130% 100% at 20% 0%, #000 30%, transparent 80%);
}
.dark-section .h2 { color: #fff; }
.dark-section .lead, .dark-section .prose { color: var(--d-text-2); }
.on-dark { color: var(--d-text); }

/* Why: reasons */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.why__sticky { position: sticky; top: 100px; }
.reasons { display: flex; flex-direction: column; }
.reason { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--d-line); }
.reason:first-child { border-top: none; padding-top: 0; }
.reason__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brand-300); padding-top: 3px; }
.reason h3 { color: #fff; font-size: 1.16rem; margin-bottom: var(--s-2); }
.reason p { color: var(--d-text-2); font-size: var(--fs-sm); }

/* ---------- Process / method ---------- */
.steps { position: relative; margin-top: var(--s-12); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); list-style: none; }
.steps::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px; background: repeating-linear-gradient(90deg, var(--d-line) 0 8px, transparent 8px 16px); }
.step { position: relative; }
.step__dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-800); border: 1px solid var(--d-line);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--brand-300);
  position: relative; z-index: 1; margin-bottom: var(--s-5);
}
.step h3 { color: #fff; font-size: 1.04rem; margin-bottom: var(--s-2); }
.step p { color: var(--d-text-2); font-size: var(--fs-sm); }

/* ---------- Réalisations ---------- */
.rea { display: grid; grid-template-columns: 1fr; gap: var(--s-8); margin-top: var(--s-12); }
.rea__feature { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.rea__shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.rea__shot .browser__bar { border-radius: 0; }
.rea__shot img { width: 100%; height: auto; display: block; }
.rea__meta .tag { margin-bottom: var(--s-4); }
.rea__meta h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: var(--s-3); }
.rea__meta p { color: var(--text-2); font-size: var(--fs-body); margin-bottom: var(--s-5); }
.rea__facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.rea__sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.sector {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  background: var(--surface-2);
}
.sector .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-600); margin-bottom: var(--s-4); }
.sector .ic svg { width: 20px; height: 20px; }
.sector h4 { font-size: 1rem; margin-bottom: 6px; }
.sector p { font-size: var(--fs-sm); color: var(--text-2); }
.sector .note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

/* ---------- SEO / Google Business showcase ---------- */
.seo-show { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.serp {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
}
.serp__bar { height: 34px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding-inline: 14px; margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--text-2); }
.serp__bar svg { width: 15px; height: 15px; color: var(--muted); }
.serp__result { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid transparent; }
.serp__result + .serp__result { margin-top: var(--s-2); }
.serp__result.is-you { border-color: var(--brand-200, var(--brand-100)); background: var(--brand-050); box-shadow: var(--shadow-sm); }
.serp__result .u { font-size: 0.72rem; color: #3a7d3a; display: flex; align-items: center; gap: 6px; }
.serp__result .u .pin { width: 15px; height: 15px; border-radius: 50%; background: var(--brand-600); color:#fff; display:grid; place-items:center; font-size: 8px; }
.serp__result .t { color: #1a4b9c; font-weight: 550; margin-top: 3px; font-size: 0.95rem; }
.serp__result .d { color: var(--text-2); font-size: 0.78rem; margin-top: 3px; }
.serp__result.dim { opacity: 0.5; }
.serp__result.dim .t { color: var(--text-2); }
.serp__you-tag { display:inline-flex; align-items:center; gap:6px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--brand-600); }

.feature-list { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); }
.feature-list .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; flex-shrink: 0; }
.feature-list .ic svg { width: 18px; height: 18px; }
.feature-list h4 { font-size: 1rem; margin-bottom: 3px; }
.feature-list p { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; margin-top: var(--s-10); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-6) 0;
  text-align: left;
  font-size: 1.08rem; font-weight: 600; color: var(--text);
}
.faq__q .chev { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-600); transition: transform var(--dur-2) var(--ease-out); }
.faq__item[open] .chev { transform: rotate(180deg); }
.faq__a { padding: 0 0 var(--s-6); color: var(--text-2); font-size: var(--fs-body); max-width: 68ch; }
.faq__q::-webkit-details-marker { display: none; }
details.faq__item summary { list-style: none; cursor: pointer; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact__card {
  position: relative;
  border-radius: var(--r-2xl);
  background: var(--ink-900);
  color: var(--d-text);
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow-lg);
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine-d) 1px, transparent 1px),
    linear-gradient(var(--grid-major-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major-d) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  -webkit-mask-image: radial-gradient(120% 120% at 85% 15%, #000, transparent 70%);
          mask-image: radial-gradient(120% 120% at 85% 15%, #000, transparent 70%);
}
.contact__glow { position: absolute; top: -30%; right: -10%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(79,147,240,0.22), transparent 65%); pointer-events: none; }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact__title { color: #fff; }
.contact__sub { color: var(--d-text-2); margin-top: var(--s-4); max-width: 420px; }
.contact__methods { display: flex; flex-direction: column; gap: var(--s-3); }
.method {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--d-line);
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.method:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); transform: translateY(-2px); }
.method__ic { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(79,147,240,0.14); color: var(--brand-300); display: grid; place-items: center; flex-shrink: 0; }
.method__ic svg { width: 20px; height: 20px; }
.method > span { min-width: 0; }
.method__k { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--d-muted); }
.method__v { display: block; font-size: 1.02rem; font-weight: 600; color: #fff; margin-top: 3px; }
.method__meta { margin-left: auto; font-size: var(--fs-xs); color: var(--d-muted); text-align: right; }
.contact__note { margin-top: var(--s-6); display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--d-muted); }
.contact__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: var(--z-base); background: var(--bg-2); border-top: 1px solid var(--line); padding-block: var(--s-16) var(--s-8); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer__brand .brand { margin-bottom: var(--s-4); }
.footer__brand p { font-size: var(--fs-sm); color: var(--text-2); max-width: 280px; }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-4); font-weight: 500; }
.footer__col a { display: block; font-size: var(--fs-sm); color: var(--text-2); padding: 5px 0; transition: color var(--dur-1) var(--ease-out); }
.footer__col a:hover { color: var(--brand-600); }
.footer__bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.footer__bottom p { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.footer__bottom .footer__legal { display: flex; gap: var(--s-5); }
.footer__bottom a { font-size: var(--fs-xs); color: var(--text-2); }
.footer__bottom a:hover { color: var(--brand-600); }

/* ---------- Reveal animation (non-destructive) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
html.js .reveal[data-delay="1"].is-in { transition-delay: 0.07s; }
html.js .reveal[data-delay="2"].is-in { transition-delay: 0.14s; }
html.js .reveal[data-delay="3"].is-in { transition-delay: 0.21s; }
html.js .reveal[data-delay="4"].is-in { transition-delay: 0.28s; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,111,214,0.5); } 70% { box-shadow: 0 0 0 7px rgba(43,111,214,0); } 100% { box-shadow: 0 0 0 0 rgba(43,111,214,0); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Interior (annex) pages ---------- */
.page-hero { position: relative; padding-top: clamp(118px, 15vw, 168px); padding-bottom: clamp(28px, 4vw, 52px); }
.page-hero .h1 { margin-top: var(--s-4); }
.page-hero .lead { margin-top: var(--s-5); max-width: 640px; }
.section-head .h2 { margin-top: var(--s-3); }
.section-head .lead { margin-top: var(--s-4); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: var(--s-4); margin-top: var(--s-8); }
.svc-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: var(--s-6); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.svc-card__ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); margin-bottom: var(--s-4); }
.svc-card__ic svg { width: 21px; height: 21px; }
.svc-card h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.svc-card p { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-4); }
.svc-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.legal { max-width: 820px; margin-inline: auto; }
.legal-block { padding: var(--s-8) 0; border-bottom: 1px solid var(--line); }
.legal-block:last-child { border-bottom: none; }
.legal-block .kicker { margin-bottom: var(--s-3); }
.legal-block h2 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.legal-block p { color: var(--text-2); margin-bottom: var(--s-2); }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--brand-600); }

/* ============================================================
   Responsive — each breakpoint is designed, not just stacked
   ============================================================ */

/* Large desktop / 1440p+ : let it breathe, cap width */
@media (min-width: 1600px) {
  :root { --maxw: 1320px; }
}
@media (min-width: 2200px) {
  :root { --maxw: 1440px; }
  html { font-size: 18px; }
}

/* Laptop / small desktop */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .hero__visual { order: 2; max-width: 520px; }
  .why { grid-template-columns: 1fr; gap: var(--s-8); }
  .why__sticky { position: static; }
  .seo-show { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

/* Tablet */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .statement__row { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); }
  .tile--a { grid-column: span 4; grid-row: span 2; }
  .tile--b, .tile--c, .tile--g, .tile--h { grid-column: span 4; }
  .tile--d, .tile--e, .tile--f { grid-column: span 2; }
  .tile--f { grid-column: span 4; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  .steps::before { display: none; }
  .rea__feature { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 620px) {
  :root { --section-y: clamp(56px, 14vw, 80px); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { min-height: 190px; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f, .tile--g, .tile--h { grid-column: span 1; grid-row: auto; }
  .tile--a { min-height: 320px; }
  .statement__row { margin-top: var(--s-8); }
  .steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "dot title" "dot desc";
    column-gap: var(--s-4); row-gap: var(--s-2);
    align-items: start;
  }
  .step__dot { grid-area: dot; margin-bottom: 0; align-self: start; }
  .step h3 { grid-area: title; align-self: center; }
  .step p { grid-area: desc; }
  .rea__sectors { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .hero__soft { opacity: 1 !important; }
  .draw { stroke-dashoffset: 0 !important; }
}
