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

:root {
  --primary:      #0d1a2e;
  --accent:       #00b8d9;
  --accent-lt:    #e6f8fc;
  --text:         #1c2b3a;
  --muted:        #6b7d8c;
  --border:       #ccdde8;
  --bg:           #f2f6f9;
  --white:        #ffffff;
  --radius:       8px;
  --shadow:       0 2px 24px rgba(13,26,46,.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Karla', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 46, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; opacity: .85; }

.nav-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); text-decoration: none; }

.nav-links a.active {
  color: var(--white);
  background: rgba(0,184,217,.15);
  border: 1px solid rgba(0,184,217,.3);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}

.nav-toggle:hover { color: var(--white); }
.nav-toggle svg { display: block; }

/* ── Hero ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(0,184,217,.20) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(0,184,217,.12) 0%, transparent 55%),
    var(--primary);
  color: var(--white);
  padding: 120px 2rem 100px;
  text-align: center;
}

.hero-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 28px rgba(0,0,0,.4));
  opacity: .95;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0;
}

.hero-rule {
  width: 52px;
  height: 2px;
  background: var(--accent);
  margin: 1.6rem auto;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  letter-spacing: .3px;
  margin-bottom: 2.5rem;
  min-height: 1.6em;
}

.typed-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink .7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
}

.tag {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: all .2s;
}

.tag:hover {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: .8rem 2.2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,184,217,.35);
}

.btn-primary:hover { box-shadow: 0 8px 28px rgba(0,184,217,.5); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  margin-left: .8rem;
}

.btn-outline:hover { border-color: rgba(255,255,255,.65); color: var(--white); }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 90px 0; }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  max-width: 100%;
  margin-bottom: 3.5rem;
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Atouts (cards) ── */
#atouts { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: all .25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,26,46,.10);
  border-top-color: var(--accent);
}

.card-featured {
  border-top-color: var(--accent);
}

.card-secondary {
  opacity: .75;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.card-icon svg { width: 24px; height: 24px; fill: var(--accent); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .7rem;
  line-height: 1.2;
}

.card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ── Approche IA ── */
#approche { background: var(--white); }

.approche-block {
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.approche-block p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.approche-block strong { color: var(--accent); font-weight: 700; }

/* ── Services ── */
#services { background: var(--bg); }

/* ── Expérience ── */
#experience { background: var(--white); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  position: relative;
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}

.tl-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tl-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}


.tl-period {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: .35rem;
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: .2rem;
}

.tl-company {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .75rem;
}

.tl-desc {
  font-size: .93rem;
  color: var(--text);
  line-height: 1.65;
}

.tl-missions {
  margin-top: .9rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.tl-missions li {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.55;
}

.tl-missions li strong { color: var(--primary); font-weight: 700; }

.badge-promo {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-left: .5rem;
  vertical-align: middle;
  letter-spacing: .3px;
}

/* ── Compétences ── */
#competences { background: var(--bg); }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.skill-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  transition: all .2s;
  cursor: default;
}

.skill-item:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.skill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.skill-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
}

/* ── Formation ── */
#formation { background: var(--white); }

.edu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .2s;
}

.edu-card:hover { border-color: var(--accent); }

.edu-year {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: .55rem;
}

.edu-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: .4rem;
}

.edu-school {
  font-size: .85rem;
  color: var(--muted);
}

/* ── Contact ── */
#contact {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,184,217,.16) 0%, transparent 55%),
    var(--primary);
  color: var(--white);
  text-align: center;
}

#contact h2 {
  color: var(--white);
  font-family: var(--font-display);
}

#contact .section-label { color: var(--accent); }

#contact .section-intro {
  color: rgba(255,255,255,.55);
  margin: 0 auto 2.5rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  padding: .7rem 1.6rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
}

.contact-chip:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  text-decoration: none;
  color: var(--white);
}

/* ── Footer ── */
footer {
  background: #070f1c;
  color: rgba(255,255,255,.28);
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: .78rem;
  letter-spacing: .6px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; align-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 26, 46, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
  }

  .nav-links.open { display: flex; }

  .nav-links a { font-size: .9rem; }

  .hero { padding: 80px 1.5rem 70px; }
  .hero h1 { letter-spacing: -1px; }
  .btn-outline { display: none; }

  .approche-block { padding: 1.75rem; }

  .tl-dot { box-shadow: 0 0 0 3px var(--bg); }
}
