/* ============================================================
   Trombi 3000 - feuille de style partagee du site
   Theme sombre par defaut + theme clair (data-theme="light").
   Typo : Space Grotesk (titres) + DM Sans (corps).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

:root{
  --bg:#101114;
  --surface:#191b1f;        /* fond des cartes */
  --surface-2:#141518;      /* fin de degrade / eleve */
  --card:#23272e;
  --fg:#f5f3ef; --fg2:#aeaba3; --fg3:#83817b;
  --accent:#ce9b4e; --accent-grad:#e6c281; --accent-2:#d9b572; --accent-ink:#e0bd7c;
  --bonus:#34d399; --malus:#fb7185;
  --border:#33363d; --border-hover:#474a52;
  --band-1:#10331f; --band-2:#0d2218; --band-border:#1f5236; --band-fg:#bff0d6; --band-ico-border:#2a7350;
  --warn-bg:#2a1d22; --warn-border:#5a2f3a; --warn-fg:#f0c8d2;
  --field-bg:#191b1f;
  --header-bg:rgba(16,17,20,.72);
  --glow1:#2a2c33; --glow2:#1c1d22;

  --radius:16px; --radius-sm:12px; --radius-lg:22px; --radius-pill:999px;
  --maxw:1080px;
  --shadow-sm:0 2px 8px rgba(0,0,0,.25);
  --shadow:0 12px 34px rgba(0,0,0,.38);
  --shadow-lg:0 26px 70px rgba(0,0,0,.5);
  --glow:0 0 0 1px rgba(206,155,78,.25), 0 14px 40px rgba(206,155,78,.28);

  --font-head:'Space Grotesk',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:'DM Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;

  /* alias de compatibilite (anciennes references) */
  --bg2:var(--surface); --accent2:var(--accent-2);
}

[data-theme="light"]{
  --bg:#f6f4ef;
  --surface:#ffffff;
  --surface-2:#faf8f3;
  --card:#f1ede4;
  --fg:#1b1c1f; --fg2:#55585f; --fg3:#8a8780;
  --accent:#b9863a; --accent-grad:#cf9c4e; --accent-2:#a9781d; --accent-ink:#946614;
  --bonus:#0f9e78; --malus:#e23b54;
  --border:#e7e3da; --border-hover:#d4cdbf;
  --band-1:#e7f7ef; --band-2:#dcf3e7; --band-border:#a9dcc1; --band-fg:#0f5a3c; --band-ico-border:#7fc9a6;
  --warn-bg:#fdeef0; --warn-border:#f2c4cc; --warn-fg:#9a3a4a;
  --field-bg:#ffffff;
  --header-bg:rgba(255,255,255,.8);
  --glow1:#efeadf; --glow2:#f4efe6;
  --shadow-sm:0 1px 4px rgba(20,25,50,.07);
  --shadow:0 12px 30px rgba(30,36,80,.12);
  --shadow-lg:0 24px 60px rgba(30,36,80,.16);
  --glow:0 0 0 1px rgba(206,155,78,.35), 0 14px 40px rgba(206,155,78,.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  background:
    radial-gradient(1200px 620px at 82% -12%, var(--glow1) 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 0%, var(--glow2) 0%, transparent 55%),
    var(--bg);
  background-attachment:fixed;
  color:var(--fg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background-color .3s ease, color .3s ease;
}
h1,h2,h3,.brand{font-family:var(--font-head);font-weight:700;letter-spacing:-.02em;line-height:1.1}
a{color:var(--accent-ink);text-decoration:none;transition:color .15s ease}
a:hover{color:var(--fg)}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

.wrap{max-width:var(--maxw);margin:0 auto;padding-left:22px;padding-right:22px}
.center{text-align:center}

/* ---------- boutons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5em;
  border:1px solid transparent;border-radius:var(--radius-pill);
  padding:.85em 1.55em;font-family:var(--font-body);font-size:1rem;font-weight:700;
  cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn svg{width:1.1em;height:1.1em}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-grad));color:#fff;box-shadow:0 10px 26px rgba(206,155,78,.42)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(206,155,78,.55);color:#fff}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{background:var(--surface);color:var(--fg);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--accent);color:var(--fg);transform:translateY(-2px)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:30;backdrop-filter:saturate(140%) blur(12px);background:var(--header-bg);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.6em;font-weight:700;font-size:1.18rem;color:var(--fg)}
.brand .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:grid;place-items:center;box-shadow:0 6px 16px rgba(206,155,78,.4)}
.brand .logo svg{width:21px;height:21px;color:#fff}
.nav-links{display:flex;gap:1.4em;align-items:center}
.nav-links a:not(.btn){color:var(--fg2);font-weight:500;font-size:.95rem}
.nav-links a:not(.btn):hover{color:var(--fg)}
@media(max-width:820px){.nav-links a:not(.btn){display:none}}

/* bouton theme clair/sombre */
.theme-toggle{width:40px;height:40px;flex:0 0 auto;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--fg2);display:grid;place-items:center;cursor:pointer;transition:color .15s ease,border-color .15s ease,transform .15s ease}
.theme-toggle:hover{color:var(--fg);border-color:var(--accent);transform:translateY(-1px)}
.theme-toggle svg{width:19px;height:19px}
.theme-toggle .i-sun{display:none}
.theme-toggle .i-moon{display:block}
[data-theme="light"] .theme-toggle .i-sun{display:block}
[data-theme="light"] .theme-toggle .i-moon{display:none}

/* ---------- sections ---------- */
section{padding:110px 0}
h2{font-size:clamp(1.7rem,3.4vw,2.4rem);margin:0 0 .35em}
.eyebrow{display:inline-block;font-family:var(--font-head);font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:.74rem;color:var(--accent-2);margin-bottom:.8em}
.sub{color:var(--fg2);max-width:640px;margin:0 auto 44px;font-size:1.02rem}
.tag{display:inline-flex;align-items:center;gap:.5em;background:var(--surface);border:1px solid var(--border);color:var(--accent-2);font-weight:600;font-size:.82rem;padding:.4em .95em;border-radius:var(--radius-pill)}
.tag svg{width:1em;height:1em}

/* ---------- grilles & cartes ---------- */
.grid{display:grid;gap:20px}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:880px){.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.cols-3,.cols-2{grid-template-columns:1fr}}

.card{
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border:1px solid var(--border);border-radius:var(--radius);padding:26px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature{position:relative}
.feature:hover{transform:translateY(-4px);border-color:var(--border-hover);box-shadow:var(--shadow)}
.feature .ico{
  width:46px;height:46px;border-radius:13px;display:grid;place-items:center;margin-bottom:16px;
  background:radial-gradient(120% 120% at 30% 20%, rgba(206,155,78,.28), rgba(51,214,166,.12));
  border:1px solid rgba(206,155,78,.3);color:var(--accent-ink);
}
.feature .ico svg{width:23px;height:23px}
.feature h3{margin:0 0 .35em;font-size:1.1rem;color:var(--fg)}
.feature p{margin:0;color:var(--fg2);font-size:.95rem}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border);padding:40px 0;color:var(--fg2);font-size:.88rem;margin-top:20px}
.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:center}
.foot-links{display:flex;gap:20px;flex-wrap:wrap}
.foot a{color:var(--fg2)}
.foot a:hover{color:var(--fg)}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
