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

/* DARK MODE (défaut) */
[data-theme="dark"] {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --surface2: #222;
  --text: #f0f0f0;
  --text-mid: #aaa;
  --text-dim: #555;
  --border: #2a2a2a;
  --border-mid: #333;
  --accent: #d94fff;
  --accent-dim: #8b2fa8;
  --accent-bg: rgba(217,79,255,0.08);
  --logo-font: 'Rubik Glitch', cursive;
  --body-font: 'Rubik', sans-serif;
  --hero-size: 4rem;
}

/* CORPORATE MODE */
[data-theme="corporate"] {
  --bg: #FAFAFA;
  --surface: #F4F4F2;
  --surface2: #ECECEA;
  --text: #1A1A1A;
  --text-mid: #555;
  --text-dim: #999;
  --border: #E0E0E0;
  --border-mid: #C0C0C0;
  --accent: #7B2FBE;
  --accent-dim: #5a1f9a;
  --accent-bg: #F0E8F9;
  --logo-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
  --hero-size: 3.5rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

/* THEME TOGGLE */
.theme-toggle-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}
.theme-toggle {
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  color: var(--text-mid);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-family: var(--body-font);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-anomalies {
  font-family: var(--logo-font);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.logo-editions {
  font-family: var(--body-font);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.1rem;
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); }
.nav-mobile-toggle { display: none; cursor: pointer; font-size: 1.25rem; color: var(--text-mid); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.6rem 0; font-size: 0.9rem; color: var(--text-mid); border-bottom: 0.5px solid var(--border); }

/* ADS */
.ad-banner { background: var(--surface); border-bottom: 0.5px solid var(--border); padding: 0.5rem 2rem; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.ad-mid { background: var(--surface); border: 0.5px solid var(--border); border-radius: 8px; padding: 0.5rem; min-height: 100px; display: flex; align-items: center; justify-content: center; margin: 0 2rem; }
.ad-bottom { background: var(--surface); border: 0.5px solid var(--border); border-radius: 8px; padding: 0.5rem; min-height: 130px; display: flex; align-items: center; justify-content: center; margin: 0 2rem 2rem; }

/* HERO */
.hero { padding: 6rem 2rem 5rem; overflow: hidden; }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-title {
  font-family: var(--logo-font);
  font-size: var(--hero-size);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
[data-theme="dark"] .hero-title { text-shadow: 0 0 40px rgba(217,79,255,0.15); }
.hero-slogan {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  border: 0.5px solid var(--border-mid);
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.cover-stack { position: relative; width: 220px; height: 300px; margin: 0 auto; }
.cover { position: absolute; width: 160px; height: 220px; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.c1 { top: 0; left: 0; transform: rotate(-6deg); z-index: 1; }
.c2 { top: 20px; left: 30px; transform: rotate(2deg); z-index: 2; }
.c3 { top: 10px; left: 60px; transform: rotate(8deg); z-index: 3; }

/* SECTIONS */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
section h2 {
  font-family: var(--logo-font);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
[data-theme="corporate"] section h2 { font-family: 'Playfair Display', serif; font-weight: 600; }
section h2 em { font-style: italic; color: var(--accent); }
.section-intro { font-size: 0.95rem; color: var(--text-mid); font-weight: 300; line-height: 1.75; margin-bottom: 2.5rem; max-width: 600px; }

/* MANIFESTE */
.manifeste .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.manifeste-text p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; }
.manifeste-text strong { color: var(--text); font-weight: 500; }
.manifeste-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.stat-num { font-family: var(--logo-font); font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
[data-theme="corporate"] .stat-num { font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* OUTILS */
.outils-section { background: var(--surface); }
.outils-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.outil-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s;
  display: block;
}
.outil-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.outil-featured { border-color: var(--accent-dim); background: var(--accent-bg); }
.outil-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0.5px solid var(--accent-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.outil-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.outil-title { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.outil-desc { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; font-weight: 300; margin-bottom: 1rem; }
.outil-link { font-size: 0.78rem; color: var(--accent); }

/* PUBLICATIONS */
.covers-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.cover-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; transition: transform 0.2s; }
.cover-item img:hover { transform: scale(1.04); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card { text-align: center; }
.team-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 2px solid var(--border-mid); }
.team-name { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
.team-role { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.team-desc { font-size: 0.78rem; color: var(--text-mid); line-height: 1.6; font-weight: 300; }

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 2rem;
}
.footer-logo { font-family: var(--logo-font); font-size: 1.2rem; color: var(--accent); margin-bottom: 0.4rem; }
.footer-slogan { font-size: 0.78rem; color: var(--text-dim); font-weight: 300; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { font-size: 0.78rem; color: var(--text-dim); transition: color 0.15s; }
.footer-social a:hover { color: var(--accent); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col-title { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.75rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { font-size: 0.8rem; color: var(--text-mid); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-top: 0.5px solid var(--border);
  padding-top: 1.25rem;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .outils-grid { grid-template-columns: repeat(2, 1fr); }
  .covers-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .manifeste .section-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .outils-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.5rem; }
  .theme-toggle-wrap { top: auto; bottom: 1rem; right: 1rem; }
}
