/* ============================================================
   expertise-ads.fr — v2
   Direction : studio performance. Papier froid quadrillé,
   encre marine, cobalt électrique. Signature : la maquette
   d'annonce Google flottante dans le héro.
   ============================================================ */

:root {
  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #0d1526;
  --ink-2: #1a2540;
  --slate: #5b6477;
  --slate-light: #8a92a6;
  --cobalt: #2447e0;
  --cobalt-dark: #1c38b4;
  --cobalt-glow: rgba(36, 71, 224, 0.45);
  --chip: #e9edfd;
  --line: #e3e6ef;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.05), 0 2px 8px rgba(13, 21, 38, 0.04);
  --shadow-lg: 0 4px 12px rgba(13, 21, 38, 0.06), 0 24px 60px -12px rgba(13, 21, 38, 0.18);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--cobalt), #7c9aff);
  display: inline-block;
}

/* ---------- Header ---------- */
header.site {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 20px;
  color: var(--ink); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 9px;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cobalt) 0%, #5d7bff 100%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -2px var(--cobalt-glow);
  flex: none;
}
.logo .mark svg { display: block; }
.logo span.dot { color: var(--cobalt); }
nav.main { display: flex; gap: 30px; align-items: center; }
nav.main a { color: var(--slate); font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--ink); text-decoration: none; }
nav.main a.cta {
  color: var(--white);
  background: var(--ink);
  padding: 10px 20px; border-radius: 999px; font-weight: 600;
  transition: background .18s ease, transform .18s ease;
}
nav.main a.cta:hover { background: var(--cobalt); transform: translateY(-1px); }

/* ---------- Héro ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(36, 71, 224, 0.09), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  /* papier millimétré : le motif du métier de la mesure */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 21, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 21, 38, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 600px at 30% 20%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 30% 20%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 110px;
}

.searchbar {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.searchbar svg { flex: none; }
.searchbar .caret {
  display: inline-block; width: 8px; height: 16px;
  background: var(--cobalt); margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 24px;
  max-width: 560px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--cobalt) 0%, #6d8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18.5px; color: var(--slate);
  max-width: 540px; margin-bottom: 38px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cobalt) 0%, #4565f0 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -6px var(--cobalt-glow);
}
.btn-primary:hover { box-shadow: 0 14px 32px -6px var(--cobalt-glow); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Signature : la maquette d'annonce ---------- */
.serp {
  position: relative;
  perspective: 1200px;
}
.serp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 34px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.6deg);
  position: relative;
  z-index: 2;
}
.serp-card .ad-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.serp-card .favicon {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), #6d8bff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  flex: none;
}
.serp-card .ad-src { line-height: 1.3; }
.serp-card .ad-src .site { font-size: 14px; font-weight: 600; color: var(--ink); }
.serp-card .ad-src .url { font-size: 12.5px; color: var(--slate-light); }
.serp-card .sponsored {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}
.serp-card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: #1a0dab00; /* fallback neutralisé, vraie couleur ci-dessous */
  color: var(--cobalt);
  font-size: 20px; line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 7px;
}
.serp-card p.desc { font-size: 14.5px; color: var(--slate); margin-bottom: 16px; }
.serp-card .sitelinks {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px;
}
.serp-card .sitelinks span { color: var(--cobalt); }

.metric-chip {
  position: absolute;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -10px rgba(13, 21, 38, 0.45);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  z-index: 3;
}
.metric-chip .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #93a0c2; display: block; margin-bottom: 3px; }
.metric-chip .v { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.metric-chip .v small { font-size: 12px; color: #6ee7a0; margin-left: 6px; }
.chip-1 { top: -30px; right: -16px; transform: rotate(-2deg); }
.chip-2 { bottom: -58px; left: -24px; transform: rotate(1.5deg); }

.serp::after {
  /* seconde carte fantôme derrière, profondeur */
  content: "";
  position: absolute; inset: 18px -14px -18px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: .55;
  transform: rotate(-1.8deg);
  z-index: 1;
}

/* ---------- Bande de repères ---------- */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 28px;
}
.strip .item {
  display: flex; gap: 12px; align-items: center;
  font-size: 14px; color: var(--slate);
}
.strip .item svg { flex: none; }
.strip .item strong { color: var(--ink); font-weight: 600; display: block; font-size: 14.5px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 16px; }
section p.intro { color: var(--slate); max-width: 640px; margin-bottom: 52px; font-size: 17.5px; }

/* ---------- Services ---------- */
.grid-services {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cobalt), #7c9aff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6dcf0; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--chip);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15.5px; }

/* ---------- Méthode ---------- */
.methode { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.step {
  padding: 36px 32px;
  position: relative;
}
.step + .step { border-left: 1px solid var(--line); }
.step .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: 0.12em;
  color: var(--cobalt);
  display: inline-block; margin-bottom: 16px;
  background: var(--chip);
  padding: 5px 11px; border-radius: 6px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 15px; }
.step .arrow {
  position: absolute; top: 50%; right: -13px;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* ---------- À propos ---------- */
.about .cols {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: start;
}
.about p + p { margin-top: 16px; }
.about p { color: var(--slate); font-size: 16.5px; }
.about p strong { color: var(--ink); }
.about .facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.about .facts dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--slate-light);
  margin-top: 18px;
}
.about .facts dt:first-child { margin-top: 0; }
.about .facts dd { margin: 3px 0 0; color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-box {
  position: relative;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(70, 104, 255, 0.28), transparent 65%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  overflow: hidden;
}
.contact-box::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(600px 400px at 80% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 400px at 80% 30%, black, transparent 75%);
  pointer-events: none;
}
.contact-box > * { position: relative; }
.contact-box h2 { color: var(--white); }
.contact-box p { color: #a9b3cc; margin-top: 14px; max-width: 460px; }
.contact-box .btn-primary { margin-top: 28px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 0;
  font-size: 17px;
}
.contact-list li + li { border-top: 1px solid rgba(255,255,255,0.1); }
.contact-list .lbl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em;
  color: #7e89a8; min-width: 92px;
}
.contact-list a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--white); }
.contact-list .addr { color: #c6cde0; font-size: 15px; line-height: 1.5; }

/* ---------- Footer ---------- */
footer.site {
  padding: 40px 0 52px;
  font-size: 14px; color: var(--slate);
}
footer.site .wrap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
footer.site nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--slate); }
footer.site a:hover { color: var(--ink); }

/* ---------- Pages légales ---------- */
.legal { padding: 76px 0 100px; max-width: 800px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.legal p.updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--slate-light); margin-bottom: 46px;
}
.legal h2 { font-size: 21px; margin: 42px 0 12px; }
.legal p, .legal li { color: #414a60; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .searchbar .caret { animation: none; }
  .btn, .card, nav.main a.cta { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 64px; padding-top: 64px; padding-bottom: 72px; }
  .serp { max-width: 480px; margin: 0 auto; }
  .chip-1 { top: -22px; right: 0; }
  .chip-2 { bottom: -24px; left: 0; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  nav.main a:not(.cta) { display: none; }
  .grid-services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); }
  .step .arrow { display: none; }
  .about .cols { grid-template-columns: 1fr; gap: 36px; }
  .contact-box { grid-template-columns: 1fr; padding: 44px 30px; }
  section { padding: 64px 0; }
  .strip .wrap { grid-template-columns: 1fr; gap: 14px; }
}

@media (min-width: 961px) {
  .hero .actions { flex-wrap: nowrap; }
}
