/* =========================================================
   LAST TRY — style commun à toutes les pages
   ========================================================= */
:root {
  --bg: #0a0a0c;
  --bg-2: #16161b;
  --card: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.09);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --nav-bg: rgba(10,10,12,0.7);
  --g1: #4285f4;
  --g2: #9b72cb;
  --g3: #d96570;
  --g4: #f4a261;
  --ok: #34c759;
}
:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #ececf0;
  --card: rgba(0,0,0,0.035);
  --card-border: rgba(0,0,0,0.08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --nav-bg: rgba(251,251,253,0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Dégradé animé de GAUCHE à DROITE ===== */
.gradient {
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g3), var(--g2), var(--g1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 6s linear infinite;
}
@keyframes flow {
  from { background-position: 200% 50%; }
  to   { background-position: 0% 50%; }
}

/* ================= NAVIGATION ================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--card-border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { font-weight: 600; }
.theme-btn {
  background: var(--card); border: 1px solid var(--card-border);
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  transition: transform .2s;
}
.theme-btn:hover { transform: scale(1.08); }
.theme-btn svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

@media (max-width: 600px) {
  .logo { display: none; }
  nav .container { justify-content: center; }
  .nav-right { gap: 14px; width: 100%; justify-content: space-between; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

/* ================= BOUTONS ================= */
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .2s; display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); color: #fff; }
.btn-ghost { background: var(--card); border: 1px solid var(--card-border); color: var(--text); }
.btn svg { width: 20px; height: 20px; }

/* ================= EN-TÊTE DES PAGES ================= */
.page-head { padding: 150px 0 60px; text-align: center; position: relative; }
.page-head::before {
  content: ""; position: absolute; width: 600px; height: 400px; max-width: 110vw;
  background: radial-gradient(circle, rgba(155,114,203,0.22), rgba(66,133,244,0.1) 45%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%, -50%); filter: blur(60px); z-index: -1;
}
.eyebrow { font-size: 14px; color: var(--text-2); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; padding-bottom: 6px; margin-bottom: 20px; }
.page-head p { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 640px; margin: 0 auto; }

/* ================= SECTIONS & CARTES ================= */
section { padding: 60px 0 100px; }
.section-title { font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 16px; text-align: center; }
.section-sub { font-size: 18px; color: var(--text-2); text-align: center; max-width: 620px; margin: 0 auto 48px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 32px; transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(155,114,203,0.4); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--g1), var(--g3));
  display: grid; place-items: center; color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 16px; }

/* ================= PIED DE PAGE ================= */
footer { padding: 40px 0; text-align: center; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--card-border); }

/* ================= ANIMATIONS AU SCROLL ================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= LOGO DANS LE MENU ================= */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
