:root {
  --bg: #0b0f1a;
  --panel: #121826;
  --text: #e6e9ef;
  --muted: #a0a8b8;
  --accent: #b0b338;
  --accent-2: #e7d216;
  --border: #1f2636;
}

[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f6f7fb;
  --text: #0b0f1a;
  --muted: #4b5565;
  --accent: #b0b338;
  --accent-2: #e7d216;
  --border: #e5e7ef;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(11, 15, 26, 0.92);
  border-bottom: 1px solid var(--border);
}

/* Header en thème clair: fond clair pour garder un bon contraste */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.brand-logo { width: 110px; height: 110px; display: block; border: none; margin-right: -6px; }
.site-header .brand-logo { filter: invert(1) brightness(1.1); }
[data-theme="light"] .site-header .brand-logo { filter: none; }
.brand-name { color: var(--text); font-family: 'Quicksand'; font-weight: 200; font-size: 50px; margin-left: -6px; line-height: 1; }
.site-header, .site-header * { color: var(--text); }
.theme-toggle .icon { width: 20px; height: 20px; }

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.site-nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.site-nav a:hover { background: #172037; }
/* Hover plus lisible en thème clair */
[data-theme="light"] .site-nav a:hover { background: #eceff7; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.a-propos-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.a-propos-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.a-propos-text {
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .a-propos-container { flex-direction: column; align-items: flex-start; }
  .a-propos-image { width: 200px; height: 200px; margin-right: 0; }
  .a-propos-text { font-size: 17px; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover { background: var(--panel); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: inline; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

/* Titres avec soulignement dégradé */
.section-title {
  position: relative;
  padding-bottom: 8px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* (supprimé) Effet deglissement au scroll */

@media (prefers-reduced-motion: reduce) {
  /* (supprimé) scroll-slide reduce motion */
}

.hero {
  padding-top: 96px;
  position: relative;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial;
  font-weight: 300;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; }
h3 { font-size: clamp(22px, 3.5vw, 28px); line-height: 1.3; }

.hero h1 { font-size: clamp(44px, 7vw, 72px); }

/* Décor subtil du hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 20%, rgba(184, 255, 0, 0.1), transparent 60%),
              radial-gradient(40% 40% at 10% 10%, rgba(231, 210, 22, 0.08), transparent 60%);
  pointer-events: none;
}
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a;
  border: none;
}

.btn.primary { transition: transform 160ms ease, box-shadow 160ms ease; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn.ghost { transition: background 160ms ease, transform 160ms ease; }
.btn.ghost:hover { transform: translateY(-1px); }

.btn.ghost:hover {
  background: var(--panel);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.card-animated {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card-animated:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

.stack {
  margin: 8px 0 0;
  padding-left: 18px;
}
.stack li { color: var(--muted); }

.link {
  color: var(--accent-2);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.form-row {
  display: grid;
  gap: 6px;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.site-footer {
  padding: 32px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(11, 15, 26, 0.95); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px; }
  .nav-toggle { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

