/* =====================================================
   SANOU OUSSENI — Style typographique minimaliste
   Inspiré de aahil-khan.xyz | Mode clair + sombre
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ===== THÈMES ===== */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-nav:      #ffffff;
  --text:        #111111;
  --text-muted:  #555555;
  --text-faint:  #888888;
  --border:      #ebebeb;
  --border-input:#dddddd;
  --tag-bg:      #ffffff;
  --tag-border:  #cccccc;
  --btn-bg:      #ffffff;
  --btn-border:  #111111;
  --btn-text:    #111111;
  --btn-hover-bg:#111111;
  --btn-hover-tx:#ffffff;
}

[data-theme="dark"] {
  --bg:          #0f0f0f;
  --bg-nav:      #0f0f0f;
  --text:        #f0f0f0;
  --text-muted:  #aaaaaa;
  --text-faint:  #666666;
  --border:      #222222;
  --border-input:#333333;
  --tag-bg:      #1a1a1a;
  --tag-border:  #333333;
  --btn-bg:      #0f0f0f;
  --btn-border:  #f0f0f0;
  --btn-text:    #f0f0f0;
  --btn-hover-bg:#f0f0f0;
  --btn-hover-tx:#0f0f0f;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

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

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cv {
  font-weight: 600;
  color: var(--text) !important;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

/* Bouton thème */
.nav__theme {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.nav__theme:hover {
  background: var(--border);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__location {
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__name {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__role {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.highlight {
  color: var(--text);
  font-weight: 600;
}

.hero__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.hero__links a:hover {
  border-color: var(--text);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section--border {
  border-top: 1px solid var(--border);
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

.section__intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-top: -1rem;
  margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about__text p:last-child { margin-bottom: 0; }

.about__text strong {
  color: var(--text);
  font-weight: 600;
}

.about__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.meta__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== SKILLS ===== */
.skills {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill__group {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.skill__group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill__group-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 4px;
}

.skill__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill__tags span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--tag-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--tag-border);
}

/* ===== SERVICES ===== */
.services {
  display: flex;
  flex-direction: column;
}

.service {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service:first-child {
  border-top: 1px solid var(--border);
}

.service__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.service__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.service__head h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
