/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:           #f8f9fb;
  --surface:      #ffffff;
  --border:       #e2e6ed;
  --navy:         #0b1f3a;
  --accent:       #1a56db;
  --accent-light: #eff4ff;
  --text:         #1e293b;
  --muted:        #64748b;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.nav-brand { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--navy); color: white !important; padding: 0.5rem 1.2rem; border-radius: 6px; font-weight: 600 !important; transition: background 0.2s; }
.nav-cta:hover { background: var(--accent) !important; }
.nav-lang { font-size: 0.78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); padding: 0.35rem 0.8rem; border-radius: 6px; cursor: pointer; background: none; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero { padding: 9rem 5% 5rem; background: var(--navy); position: relative; overflow: hidden; }
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26,86,219,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 0% 100%, rgba(13,148,136,0.15) 0%, transparent 60%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(26,86,219,0.2); border: 1px solid rgba(26,86,219,0.4);
  color: #93c5fd; font-size: 0.75rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 2rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.dot-live { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero-sub { color: #94a3b8; font-size: 1rem; max-width: 520px; line-height: 1.7; margin-bottom: 2rem; }
.hero-sub strong { color: #e2e8f0; font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.8rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #e2e8f0; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
section:not(#hero) { padding: 5rem 0; }
.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.section-num { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.section-num-light { color: #60a5fa; }
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-line-dark { background: rgba(255,255,255,0.1); }
h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 2rem; }
h2.light { color: white; }

/* ============================================================
   COMPÉTENCES — grille de tags
   ============================================================ */
.skills-list { display: flex; flex-direction: column; gap: 1.5rem; }

.skill-block { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; transition: all 0.2s; }
.skill-block:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(26,86,219,0.07); }

.skill-block-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.skill-block-ico { font-size: 1rem; }
.skill-block-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

.skill-block-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { background: var(--accent-light); color: var(--accent); font-size: 0.68rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; }

.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.extra-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; transition: all 0.2s; }
.extra-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(26,86,219,0.07); transform: translateY(-2px); }
.extra-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.5rem; }
.extra-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   CYBERSÉCURITÉ
   ============================================================ */
#cyber { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cyber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.cyber-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; transition: all 0.2s; }
.cyber-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cyber-card-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.4rem; }
.cyber-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.cyber-badge { display: inline-flex; align-items: center; background: var(--accent-light); color: var(--accent); font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 4px; margin-top: 0.6rem; }

.thm-wrapper { margin-top: 0.75rem; border-radius: 6px; overflow: hidden; }
.thm-wrapper iframe { width: 100%; height: 80px; border: none; display: block; }

.homelab-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; margin-bottom: 1.5rem; transition: all 0.2s; }
.homelab-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(26,86,219,0.08); }
.homelab-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.75rem; }
.homelab-list { list-style: none; }
.homelab-list li { font-size: 0.82rem; color: var(--muted); padding: 0.2rem 0 0.2rem 1rem; position: relative; line-height: 1.55; }
.homelab-list li::before { content: '◆'; position: absolute; left: 0; color: var(--accent); font-size: 0.5rem; top: 0.38rem; }

.certif-separator { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.certif-separator-label { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.certif-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; margin-bottom: 1rem; transition: all 0.2s; }
.certif-card:last-child { margin-bottom: 0; }
.certif-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(26,86,219,0.08); }
.certif-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.certif-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.25rem; }
.certif-org { font-size: 0.78rem; color: var(--muted); }
.certif-badge-ok { display: inline-block; background: #d1fae5; color: #065f46; font-size: 0.68rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; }
.btn-certif { width: 100%; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(26,86,219,0.2); border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; text-align: center; }
.btn-certif:hover { background: var(--accent); color: white; }
.certif-iframe-wrapper { display: none; margin-top: 0.75rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.certif-iframe-wrapper.open { display: block; }
.certif-iframe-wrapper iframe { width: 100%; height: 480px; border: none; display: block; }

/* ============================================================
   EXPÉRIENCE
   ============================================================ */
#experience { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { display: flex; flex-direction: column; }
.exp-item { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.exp-item:last-child { border-bottom: none; }
.exp-date { font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 0.3rem; }
.exp-type { display: inline-block; font-size: 0.68rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.exp-type.upcoming { background: var(--accent-light); color: var(--accent); border-color: rgba(26,86,219,0.3); }
.exp-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 0.2rem; }
.exp-org { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.exp-list { list-style: none; }
.exp-list li { font-size: 0.85rem; color: var(--text); padding: 0.25rem 0 0.25rem 1rem; position: relative; line-height: 1.55; }
.exp-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* ============================================================
   FORMATION
   ============================================================ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.edu-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; transition: all 0.2s; position: relative; overflow: hidden; }
.edu-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity 0.2s; }
.edu-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.edu-card:hover::before { opacity: 1; }
.edu-card.current { border-top: 3px solid var(--accent); }
.edu-year { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.edu-title { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.3rem; }
.edu-school { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.edu-label { display: inline-block; font-size: 0.65rem; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 0.15rem 0.5rem; border-radius: 4px; margin-top: 0.4rem; }

/* ============================================================
   QUI SUIS-JE
   ============================================================ */
#quisuisje { background: var(--navy); }
#quisuisje .page { padding-top: 5rem; padding-bottom: 5rem; }
.lettre-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 3rem; max-width: 760px; }
.lettre-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.lettre-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: white; margin-bottom: 0.3rem; }
.lettre-info { font-size: 0.78rem; color: #64748b; line-height: 1.8; }
.lettre-objet { font-size: 0.8rem; font-weight: 600; color: #60a5fa; margin-bottom: 1.5rem; padding: 0.5rem 0.9rem; background: rgba(26,86,219,0.15); border-left: 3px solid #1a56db; border-radius: 0 4px 4px 0; }
.lettre-text { font-size: 0.9rem; color: #cbd5e1; line-height: 1.9; }
.lettre-text p { margin-bottom: 1.2rem; }
.lettre-text p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); transition: all 0.2s; min-width: 0; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(26,86,219,0.08); }
.contact-ico { width: 38px; height: 38px; background: var(--accent-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info { min-width: 0; flex: 1; }
.contact-label { font-size: 0.7rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-value { font-size: 0.85rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #060f1e; border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 5%; display: flex; justify-content: space-between; align-items: center; }
.footer-text { font-size: 0.78rem; color: #475569; }
.footer-text span { color: #60a5fa; }
.footer-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: #475569; }
.footer-badge::before { content: ''; width: 6px; height: 6px; background: #4ade80; border-radius: 50%; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  #hero { padding: 7rem 5% 4rem; }
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .cyber-grid, .extra-grid { grid-template-columns: 1fr; }
  .lettre-card { padding: 1.5rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
