/* ALEAU — fondations : tokens, reset, typographie, boutons, utilitaires */

/* Police Inter hébergée sur le site (licence OFL, voir assets/fonts) : aucune requête
 * vers Google Fonts, donc aucune adresse IP de visiteur transmise à un tiers (RGPD/CNIL). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;

  --white: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #ececf0;
  --ink: #111111;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e3e3e8;
  --bar: #141414;

  --green: #1a9e57;
  --green-wa: #25d366;
  --green-soft: #e8f6ee;
  --gold: #f5b301;
  --red: #d93b30;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04), 0 2px 8px rgb(0 0 0 / 0.04);
  --shadow: 0 10px 30px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 24px 60px rgb(0 0 0 / 0.18);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 280ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Typographie */
.h-display {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h-card {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.42;
  color: var(--ink-2);
  letter-spacing: -0.012em;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Prix « 49€99 » */
.price {
  display: inline-flex;
  align-items: flex-start;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price__int { font-size: 2.6rem; }
.price__cents { font-size: 1.15rem; margin-top: 0.2em; letter-spacing: -0.01em; }
.price--compare {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: line-through;
  letter-spacing: -0.01em;
}

/* Boutons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 1.5em;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover { background: var(--soft); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { background: #f0f0f0; }
.btn--green { --btn-bg: var(--green-wa); --btn-fg: #fff; }
.btn--green:hover { background: #1fbe5b; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 1rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.38em 0.9em;
  border-radius: var(--pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.badge--dark { background: var(--ink); color: #fff; box-shadow: none; }
.badge--green { background: var(--green-soft); color: #0f7a40; box-shadow: none; }

/* Information à compléter dans config.js / products.js (pages légales, fiches produit) */
.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff4d6;
  color: #7a5200;
  font-size: 0.9em;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #f0d48a;
}

/* Mise en page */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(36px, 6vw, 72px); }

.icon { width: 24px; height: 24px; flex: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--ink); color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Apparition douce au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
