/* ==========================================================================
   BE EFFICACE · SOCLE COMMUN DE L'UNIVERS
   À copier tel quel à côté de la page (public/univers.css).
   Pour changer d'univers, remplacer uniquement le bloc « ACCENT » par celui
   de references/univers.md (livre, Opéra, nutrition, marque/média).
   Polices à charger dans le <head> :
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet">
   ========================================================================== */

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* Socle (identique sur tous les sites) */
  --bg: #04030b;
  --text: #f4f1ff;
  --text-strong: rgba(244, 241, 255, .88);
  --dim: rgba(226, 222, 255, .64);
  --faint: rgba(226, 222, 255, .42);
  --line: rgba(255, 255, 255, .09);
  --glass: linear-gradient(140deg, rgba(255,255,255,.065), rgba(255,255,255,.015) 60%);
  --glass-bg: rgba(12, 10, 28, .62);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --maxw: 1080px;

  /* ACCENT — univers « marque / média » (violet → cyan). Remplacer ce bloc pour un autre univers. */
  --accent: #a78bfa;
  --accent-rgb: 167, 139, 250;
  --accent-light: #ddd6fe;
  --accent-grad: linear-gradient(100deg, #fff 0%, #ddd6fe 30%, #a5b4fc 50%, #7dd3fc 65%, #fff 85%);
  --btn-grad: linear-gradient(110deg, #7c3aed, #6366f1 55%, #0ea5e9);
  --btn-text: #ffffff;
}

/* ---------- Bases ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; min-height: 100svh;
  background: transparent; /* la couleur est sur html, pour laisser voir les lueurs */
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }

/* Lueurs de nébuleuse fixes. Hauteur en lvh : stable quand la barre d'adresse mobile bouge. */
body::before {
  content: "";
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 0% 0%, rgba(124, 58, 237, .22), transparent 70%),
    radial-gradient(55vmax 55vmax at 100% 100%, rgba(14, 165, 233, .12), transparent 70%),
    radial-gradient(40vmax 40vmax at 100% 0%, rgba(var(--accent-rgb), .08), transparent 70%);
}

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

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.2; }
/* La signature : un groupe de mots en italique dégradé dans chaque grand titre */
h1 em, h2 em, .brand em {
  font-style: italic;
  background: var(--accent-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h1 em { animation: shimmer 9s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
p { color: var(--dim); }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--text-strong); max-width: 640px; line-height: 1.6; text-wrap: pretty; }

/* Petit titre en majuscules espacées, précédé d'un trait fin */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

/* Gros chiffre : serif + dégradé de l'accent */
.big {
  font-family: var(--serif); font-size: clamp(64px, 11vw, 112px); line-height: .9;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons (pilule + flèche ↗) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s, border-color .4s;
}
a.btn::after {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.btn-primary {
  background: var(--btn-grad); color: var(--btn-text);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), .95), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
/* Petit bouton (en-tête) : reste sur une ligne, sans flèche */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
a.btn-sm::after { display: none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }

/* ---------- Surfaces en verre ---------- */
.card {
  position: relative; isolation: isolate;
  background: var(--glass), var(--glass-bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 44px -18px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .3); } }
/* Bordure lumineuse qui tourne : réservée aux 1 à 3 éléments mis en avant d'une page */
.card--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--a), rgba(var(--accent-rgb), .15) 0 55%, rgba(var(--accent-rgb), .95) 72%, rgba(var(--accent-rgb), .15) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-a 8s linear infinite;
}
@keyframes spin-a { to { --a: 360deg; } }

/* Étiquette pilule */
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-light); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .38);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; scroll-margin-top: 72px; }
section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Apparition douce du haut de page */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(8px); animation: in 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Mobile d'abord ---------- */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
