/* ─────────────────────────────────────────────────────────────
   Emaginer — chrome éditorial CLAIR.
   Le studio est neutre/papier, presque monochrome ; chaque produit
   occupe un BANDEAU pleine largeur, plongé dans ses propres couleurs
   (variables --bg / --ink / --accent… posées en inline sur le bandeau).
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #F7F6F3;
  --paper-2: #FFFFFF;
  --ink: #1A1720;
  --muted: #6B6570;
  --line: #E5E2DC;
  --studio-accent: #5B4BD6;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand__name--sm { font-size: 1.15rem; }

.brand__tag {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ── Hero d'intro ── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px 24px 64px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--studio-accent);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 16ch;
}

.hero p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

/* ── Étiquette de section ── */
.section-title {
  max-width: var(--maxw);
  margin: 64px auto 20px;
  padding: 0 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─────────────────────────────────────────────────────────────
   BANDEAU PRODUIT — pleine largeur, grande hauteur
   ───────────────────────────────────────────────────────────── */
.band {
  --bg: #fff;
  --ink: #18181B;
  --muted: #52525B;
  --border: rgba(0,0,0,0.08);
  --accent: #5B4BD6;
  --accent2: #5B4BD6;

  position: relative;
  width: 100%;
  min-height: clamp(440px, 60vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  /* Chaque bandeau baigne dans son univers : fond + halo d'accent. */
  background:
    radial-gradient(130% 120% at 100% 0%,
      color-mix(in srgb, var(--accent) 24%, var(--bg)) 0%,
      var(--bg) 52%),
    radial-gradient(120% 120% at 0% 100%,
      color-mix(in srgb, var(--accent2) 16%, var(--bg)) 0%,
      transparent 46%);
}

/* Filet de séparation discret entre deux bandeaux voisins */
.band + .band { border-top: 1px solid rgba(0,0,0,0.06); }
.band[data-card='dark'] + .band { border-top: 1px solid rgba(255,255,255,0.06); }

.band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

/* Filigrane : grand logo en fond, très discret */
.band__watermark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 420px;
  max-width: 46%;
  opacity: 0.06;
  pointer-events: none;
  filter: saturate(0.6);
}

.band__main { min-width: 0; position: relative; z-index: 1; }

.band__toprow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.band__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.35);
  flex: none;
}

.band__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}

.band__headline {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 26px 0 14px;
}

.band__desc {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 8px;
}

/* Badge de statut */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.badge--prod {
  color: #0F7A38;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.35);
}
.band[data-card='dark'] .badge--prod {
  color: #7EE6A6;
  background: rgba(126, 230, 166, 0.12);
  border-color: rgba(126, 230, 166, 0.35);
}
.badge--prod .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}

.badge--eta {
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.band[data-card='dark'] .badge--eta {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Badge catégorie (nature du produit) — neutre, en retrait */
.badge--cat {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.band__badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Liens du bandeau */
.band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 30px;
}

.link-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
/* Accent clair sur bandeau clair → texte foncé pour le contraste */
.band[data-card='light'] .link-primary {
  color: color-mix(in srgb, var(--ink) 88%, #000);
}
.link-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* CTA GuessMyBaby : aligné sur le bouton du site guessmybaby.fr (violet plein, texte blanc) */
#guessmybaby .link-primary {
  background: #8B5CF6;
  color: #FFFFFF;
}

.link-quiet {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-quiet:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.link-disabled {
  font-size: 0.92rem;
  color: var(--muted);
  opacity: 0.5;
  cursor: not-allowed;
}

.link-sep { color: var(--muted); opacity: 0.4; }

/* Colonne droite : QR / mention */
.band__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: none;
  position: relative;
  z-index: 1;
}

.qr {
  width: 132px; height: 132px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.45);
}
.qr img, .qr svg { width: 100%; height: 100%; display: block; }

.qr-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.soon {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  opacity: 0.6;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 48px 24px;
  background: var(--paper);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.site-footer__legal {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__nav { display: flex; gap: 18px; }
.site-footer__nav a { color: var(--muted); font-size: 0.86rem; }
.site-footer__nav a:hover { color: var(--ink); }

/* ── Pages de contenu (légal, cours) ── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 24px;
}
.doc h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.doc .doc__sub { color: var(--muted); margin: 0 0 32px; }
.doc h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 32px 0 8px;
}
.doc p, .doc li { color: #33303A; }
.doc a { color: var(--studio-accent); border-bottom: 1px solid transparent; }
.doc a:hover { border-bottom-color: var(--studio-accent); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.doc th { background: var(--paper-2); font-weight: 600; color: var(--ink); }

.back-link {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.back-link a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .band__inner { grid-template-columns: 1fr; gap: 32px; }
  .band__aside { align-items: flex-start; }
  .soon { writing-mode: horizontal-tb; }
  .band { min-height: clamp(400px, 70vh, 560px); }
}

@media (max-width: 560px) {
  .band__toprow { flex-direction: column; align-items: flex-start; gap: 14px; }
  .band__logo { width: 68px; height: 68px; }
  .band__inner { padding: 56px 22px; }
}
