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

:root {
  /* DARK THEME (Défaut pour correspondre à la DA institutionnelle/Relations Internationales) */
  --navy:       #0d1b2a;
  --navy2:      #1a2e45;
  --navy-light: #2a3f5a;
  --gold:       #c9a84c;
  --gold-l:     #e8c97a;
  --bg:         #050b14;
  --bg-alt:     #0d1b2a;
  --bg-card:    #152336;
  --text:       #e2e8f0;
  --text-mute:  #9ca3af;
  --border:     #2a3f5a;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);

  --radius:  12px;
  --trans:   .3s ease;

  /* FONTS : Bebas Neue (titres) & Hind/Frutiger-like (texte) */
  --font-h: 'Bebas Neue', sans-serif;
  --font-s: 'Hind', 'Frutiger', 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --navy:       #0d1b2a;
  --navy2:      #1a2e45;
  --navy-light: #2a3f5a;
  --gold:       #b5933c;
  --gold-l:     #d4b256;
  --bg:         #ffffff;
  --bg-alt:     #f7f6f3;
  --bg-card:    #ffffff;
  --text:       #2c2c2c;
  --text-mute:  #6b7280;
  --border:     #e5e7eb;
  --shadow:     0 4px 24px rgba(13,27,42,.08);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-s); color: var(--text); background: var(--bg); line-height: 1.7; transition: background 0.4s ease, color 0.4s ease; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); font-weight: normal; letter-spacing: 0.05em; line-height: 1.1; }

/* ─── NAVBAR & LOGO ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(5,11,20,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: background var(--trans);
}
[data-theme="light"] #navbar { background: rgba(255,255,255,0.9); }

.nav-inner { max-width: 1200px; margin: 0 auto; padding: .6rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; object-fit: contain; filter: drop-shadow(0px 0px 1px var(--gold)); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500;
  transition: color var(--trans); position: relative; font-family: var(--font-s);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ─── OUTILS NAVBAR (Langue & Thème) ─── */
.nav-tools { display: flex; align-items: center; gap: 1rem; }

/* Menu Langue */
.lang-selector, .cv-dropdown { position: relative; }
.lang-btn, .cv-btn {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 0.3rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
  font-family: var(--font-s); transition: border var(--trans); display: flex; align-items: center; gap: 0.3rem;
}
.lang-btn:hover, .cv-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-menu, .cv-menu {
  position: absolute; top: 120%; right: 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.2s ease; min-width: 130px; z-index: 100;
}
.lang-selector:hover .lang-menu, .lang-selector:focus-within .lang-menu,
.cv-dropdown:hover .cv-menu, .cv-dropdown:focus-within .cv-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu a, .cv-menu a {
  display: block; padding: 0.6rem 1rem; color: var(--text); text-decoration: none;
  font-size: 0.9rem; border-bottom: 1px solid var(--border);
}
.lang-menu a:last-child, .cv-menu a:last-child { border-bottom: none; }
.lang-menu a:hover, .cv-menu a:hover, .lang-menu a.active { background: var(--border); color: var(--gold); }

/* Bouton Thème */
#theme-toggle {
  background: transparent; border: none; font-size: 1.2rem; cursor: pointer;
  padding: 0.3rem; color: var(--text); border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
#theme-toggle:hover { background: var(--border); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
.burger { display:none; background:none; border:none; color:var(--text); font-size:1.4rem; cursor:pointer; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--bg); padding-top: 60px;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; padding: 2rem; }
.hero-tag {
  display: inline-block; background: rgba(201,168,76,.15); color: var(--gold-l);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; font-weight: 600;
}
.hero-name { font-size: clamp(4rem, 9vw, 6.5rem); color: var(--text); margin-bottom: 1rem; }
.hero-name .accent { color: var(--gold); }
.hero-sub { color: var(--text-mute); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-sub strong { color: var(--gold); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BOUTONS */
.btn { display: inline-block; padding: .8rem 2rem; border-radius: 30px; font-size: 1rem; font-family: var(--font-h); letter-spacing: 0.05em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all var(--trans); }
.btn-primary { background: var(--gold); color: #0d1b2a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-l); border-color: var(--gold-l); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); font-family: var(--font-s); font-weight: 500; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.cv-btn { padding: .8rem 1.5rem; border-radius: 30px; font-family: var(--font-h); font-size: 1rem; }
.cv-dropdown { margin: 0; }
.cv-menu { top: 110%; border-radius: 12px; }

/* ─── SECTIONS BASE ─── */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1000px; margin: 0 auto; }
.container--narrow { max-width: 700px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .15em; color: var(--gold); margin-bottom: .6rem; }
.section-header h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--text); }
.section-intro { color: var(--text-mute); margin-top: .8rem; font-size: 1.1rem; }

/* ─── ABOUT ─── */
.about-grid { display: grid; gap: 3rem; align-items: start; }
.about-text p { margin-bottom: 1.2rem; font-size: 1.1rem; color: var(--text); }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content:''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--border)); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-marker { position: absolute; left: -2rem; top: 1.5rem; width: 14px; height: 14px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.timeline-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.timeline-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.timeline-years { font-size: .9rem; color: var(--gold); font-weight: 600; }
.timeline-badge { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.3); font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 12px; text-transform: uppercase; }
.timeline-card h3 { font-size: 1.8rem; color: var(--text); margin-bottom: .3rem; }
.timeline-org { color: var(--gold); font-size: .95rem; font-weight: 500; margin-bottom: .8rem; }
.timeline-desc { color: var(--text-mute); font-size: 1rem; margin-bottom: 1rem; }

/* ─── CONTACT FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .9rem; font-weight: 600; color: var(--text); }
.form-group label span { color: var(--gold); }
.form-group input, .form-group textarea {
  padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-s); font-size: 1rem; background: var(--bg-card); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,76,.2); }

/* ─── FOOTER ─── */
footer { background: var(--bg-card); color: var(--text-mute); padding: 2.5rem 2rem; text-align: center; border-top: 1px solid var(--border); }
.footer-name { font-family: var(--font-h); color: var(--gold); font-size: 1.8rem; letter-spacing: 0.05em; margin-bottom: .3rem; }
.footer-sub { font-size: .9rem; margin-bottom: 1rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-tools { gap: 0.5rem; }
}
