/* AI Réputation — styles partagés (accueil, méthode, tarifs) */
:root {
  --paper: oklch(96.8% 0.007 185);
  --ink: oklch(23% 0.014 195);
  --sub: oklch(46% 0.016 192);
  --hairline: oklch(80% 0.012 185 / .7);
  --petrol: oklch(44% 0.078 190);
  --petrol-deep: oklch(31% 0.06 190);
  --on-petrol: oklch(98% 0.004 185);
  --brick: oklch(51% 0.1 35);
  --sage: oklch(50% 0.07 140);
  --glass: oklch(98% 0.004 185 / .55);
  --glass-strong: oklch(98.5% 0.004 185 / .78);
  --glass-edge: oklch(100% 0 0 / .65);
  --glass-shadow: 0 24px 70px -28px oklch(30% 0.05 190 / .5);
  --blob-a: oklch(82% 0.06 190 / .55);
  --blob-b: oklch(85% 0.055 45 / .4);
  --blob-c: oklch(84% 0.05 140 / .38);
  --ring-track: oklch(88% 0.012 185);
  --display: "Libre Caslon Display", Georgia, serif;
  --displaytext: "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 32px);
  --section: clamp(88px, 14vw, 160px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(18% 0.012 195);
    --ink: oklch(93% 0.008 185);
    --sub: oklch(72% 0.014 188);
    --hairline: oklch(38% 0.016 188 / .8);
    --petrol: oklch(70% 0.085 186);
    --petrol-deep: oklch(80% 0.075 186);
    --on-petrol: oklch(18% 0.012 195);
    --brick: oklch(70% 0.1 40);
    --sage: oklch(72% 0.08 140);
    --glass: oklch(26% 0.014 192 / .5);
    --glass-strong: oklch(27% 0.014 192 / .8);
    --glass-edge: oklch(100% 0 0 / .14);
    --glass-shadow: 0 24px 70px -24px oklch(5% 0.02 190 / .8);
    --blob-a: oklch(45% 0.08 190 / .5);
    --blob-b: oklch(40% 0.07 45 / .4);
    --blob-c: oklch(42% 0.06 140 / .35);
    --ring-track: oklch(32% 0.014 192);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: oklch(18% 0.012 195);
  --ink: oklch(93% 0.008 185);
  --sub: oklch(72% 0.014 188);
  --hairline: oklch(38% 0.016 188 / .8);
  --petrol: oklch(70% 0.085 186);
  --petrol-deep: oklch(80% 0.075 186);
  --on-petrol: oklch(18% 0.012 195);
  --brick: oklch(70% 0.1 40);
  --sage: oklch(72% 0.08 140);
  --glass: oklch(26% 0.014 192 / .5);
  --glass-strong: oklch(27% 0.014 192 / .8);
  --glass-edge: oklch(100% 0 0 / .14);
  --glass-shadow: 0 24px 70px -24px oklch(5% 0.02 190 / .8);
  --blob-a: oklch(45% 0.08 190 / .5);
  --blob-b: oklch(40% 0.07 45 / .4);
  --blob-c: oklch(42% 0.06 140 / .35);
  --ring-track: oklch(32% 0.014 192);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 680px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; letter-spacing: -0.005em; }
h1 em, h2 em { font-family: var(--displaytext); font-style: italic; color: var(--petrol); }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklch, var(--petrol) 25%, transparent); }
button, input { font: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

/* ambient light */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(90px); }
.ambient .a { width: 55vmax; height: 55vmax; background: var(--blob-a); top: -18vmax; left: -12vmax; }
.ambient .b { width: 44vmax; height: 44vmax; background: var(--blob-b); top: 22vh; right: -16vmax; }
.ambient .c { width: 40vmax; height: 40vmax; background: var(--blob-c); bottom: -14vmax; left: 22vw; }
@media (prefers-reduced-motion: no-preference) {
  .ambient .a { animation: drift 26s ease-in-out infinite alternate; }
  .ambient .b { animation: drift 32s ease-in-out infinite alternate-reverse; }
  .ambient .c { animation: drift 38s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
}

/* type helpers */
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--petrol); }
.lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--sub); line-height: 1.55; }
.sub { color: var(--sub); }
.stamp { color: var(--brick); border: 1.5px solid var(--brick); border-radius: 4px; padding: 0 8px; transform: rotate(-3deg); display: inline-block; font-family: var(--display); letter-spacing: .12em; font-size: 12px; }

/* buttons */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--petrol); color: var(--on-petrol); font-size: 16.5px; font-weight: 700; padding: 15px 30px; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.go:hover { background: var(--petrol-deep); }
.go:active { transform: scale(.98); }
.quietgo { background: color-mix(in oklch, var(--ink) 9%, transparent); color: var(--ink); }
.quietgo:hover { background: color-mix(in oklch, var(--ink) 15%, transparent); }
.textlink { color: var(--petrol); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid color-mix(in oklch, var(--petrol) 40%, transparent); padding-bottom: 1px; }
.textlink:hover { border-bottom-color: var(--petrol); }

/* ——— header ——— */
.mast { position: sticky; top: 10px; z-index: 20; margin-top: 10px; }
.mast .inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .wm { font-family: var(--display); font-size: 19px; line-height: 1; }
.brand .wm b { font-weight: 400; color: var(--petrol); }
.navr { display: flex; align-items: center; gap: 6px; }
.nav { display: none; gap: 2px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in oklch, var(--ink) 7%, transparent); }
.lang { display: flex; gap: 2px; border-radius: 999px; padding: 3px; background: color-mix(in oklch, var(--ink) 7%, transparent); }
.lang button { border: 0; background: transparent; color: var(--sub); padding: 6px 11px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; cursor: pointer; border-radius: 999px; }
.lang button[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: 0 2px 10px -4px oklch(30% 0.04 190 / .4); }
.menu { position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: color-mix(in oklch, var(--ink) 7%, transparent); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu .panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(260px, calc(100vw - 2 * var(--gutter))); border-radius: 22px; padding: 8px; display: grid; gap: 2px; background: color-mix(in oklch, var(--paper) 94%, transparent); }
.menu .panel a { text-decoration: none; font-size: 16px; font-weight: 600; padding: 13px 16px; border-radius: 14px; }
.menu .panel a:hover { background: color-mix(in oklch, var(--ink) 7%, transparent); }
.menu .panel .go { margin-top: 6px; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .menu { display: none; }
  .navr { gap: 10px; }
}

/* ——— sections ——— */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.shead { margin-bottom: clamp(36px, 6vw, 56px); }
.shead h2 { font-size: clamp(32px, 5.4vw, 52px); margin-top: 14px; }
.shead p { margin-top: 16px; max-width: 34em; }
.center { text-align: center; }
.center .shead p { margin-inline: auto; }
.rule { border: 0; border-top: 1px solid var(--hairline); }

/* page header for inner pages */
.pagehead { padding: clamp(64px, 12vw, 128px) 0 clamp(48px, 8vw, 88px); }
.pagehead h1 { font-size: clamp(40px, 8vw, 76px); margin-top: 16px; }
.pagehead .lede { margin-top: 20px; max-width: 30em; }

/* closing call to action */
.closer { text-align: center; padding-block: var(--section); }
.closer h2 { font-size: clamp(34px, 6vw, 60px); }
.closer p { margin: 18px auto 32px; max-width: 26em; }

/* ——— footer ——— */
footer { border-top: 1px solid var(--hairline); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 24px; font-size: 14px; color: var(--sub); }
footer .brand .wm { font-size: 17px; }
footer .brand svg { width: 26px; height: 26px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .links a { text-decoration: none; font-weight: 600; }
footer .links a:hover { color: var(--ink); }
footer .fine { font-size: 12.5px; letter-spacing: .02em; }
footer .fine a { color: var(--petrol); font-weight: 700; text-decoration: none; }
@media (min-width: 760px) {
  footer { grid-template-columns: 1fr auto; align-items: center; }
  footer .fine { grid-column: 1 / -1; }
}

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* very small phones (iPhone SE and narrower) */
@media (max-width: 380px) {
  .mast .inner { padding: 6px 6px 6px 10px; gap: 6px; }
  .brand { gap: 7px; }
  .brand svg { width: 26px; height: 26px; }
  .brand .wm { font-size: 16px; }
  .navr { gap: 4px; }
  .lang button { padding: 6px 8px; }
  .menu summary { width: 36px; height: 36px; }
}

/* ——— scorecard: one hero figure + meters on a shared 0–100 scale ——— */
.scorecard { display: grid; gap: 22px; }
.sc-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--sub); }
.sc-hero { display: grid; gap: 10px; }
.sc-hero .v { font-family: var(--sans); font-weight: 600; font-size: clamp(48px, 9vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.sc-hero .v small { font-size: .32em; font-weight: 600; color: var(--sub); letter-spacing: 0; margin-left: 4px; }
.sc-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sc-sub { display: grid; gap: 8px; }
.sc-sub .v { font-family: var(--sans); font-weight: 600; font-size: 26px; line-height: 1; color: var(--ink); }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--ring-track); }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); border-radius: 4px; background: var(--petrol); }
.meter.lg { height: 10px; border-radius: 5px; }
.meter.lg > i { border-radius: 5px; }
.meter-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .reveal .meter > i { width: 0; transition: width 1.1s cubic-bezier(.16,1,.3,1) .35s; }
  .reveal.in .meter > i { width: calc(var(--v) * 1%); }
}
