/* =====================================================================
   GlowUpLive — Base : reset, typographie, layout, utilitaires
   ===================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -8%, rgba(255,122,89,0.16), transparent 60%),
    radial-gradient(820px 520px at -5% 8%, rgba(177,74,237,0.14), transparent 58%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gul-coral); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
p  { color: var(--text-muted); }

::selection { background: rgba(255,122,89,0.35); color: var(--text); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--sp-11); }
.section-sm { padding-block: var(--sp-9); }

.row { display: flex; gap: var(--sp-4); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1);} .gap-2 { gap: var(--sp-2);} .gap-3 { gap: var(--sp-3);}
.gap-4 { gap: var(--sp-4);} .gap-5 { gap: var(--sp-5);} .gap-6 { gap: var(--sp-6);}
.flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---- Texte utilitaire ---- */
.text-gradient { background: var(--gul-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-center { text-align: center; }
.text-sm { font-size: var(--fs-sm); } .text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.fw-semibold { font-weight: var(--fw-semibold); } .fw-bold { font-weight: var(--fw-bold); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--gul-sunset); font-weight: var(--fw-semibold); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: var(--lh-snug); }

/* ---- Spacing helpers ---- */
.mt-2{margin-top:var(--sp-2);} .mt-3{margin-top:var(--sp-3);} .mt-4{margin-top:var(--sp-4);}
.mt-5{margin-top:var(--sp-5);} .mt-6{margin-top:var(--sp-6);} .mt-8{margin-top:var(--sp-8);}
.mb-2{margin-bottom:var(--sp-2);} .mb-3{margin-bottom:var(--sp-3);} .mb-4{margin-bottom:var(--sp-4);}
.mb-6{margin-bottom:var(--sp-6);} .mb-8{margin-bottom:var(--sp-8);}
.hidden { display: none !important; }

/* ---- Divers ---- */
.divider { height: 1px; background: var(--divider); border: 0; margin-block: var(--sp-5); }
.pill { border-radius: var(--r-pill); }
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--glass-border); }

/* ---- Responsive helpers ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: var(--fs-3xl); } h2 { font-size: var(--fs-2xl); }
}
@media (max-width: 640px) {
  .container { padding-inline: var(--sp-4); }
  .section { padding-block: var(--sp-9); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) { .only-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
