:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #2d3748;
  --muted: #64748b;
  --title: #1a2b4c;
  --accent: #3b6fb6;
  --accent-soft: #e8eff9;
  --border: #e2e8f0;
  --shadow: 0 6px 24px rgba(26, 43, 76, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1623;
    --surface: #172133;
    --text: #d6deeb;
    --muted: #94a3b8;
    --title: #f1f5fb;
    --accent: #6c9be0;
    --accent-soft: #1e2d47;
    --border: #26344d;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
nav .brand { font-weight: 800; letter-spacing: 2px; color: var(--title); text-decoration: none; }
nav ul { display: flex; gap: 20px; list-style: none; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
nav ul a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; color: var(--title); line-height: 1.15; letter-spacing: 1px; }
.hero .role { color: var(--accent); font-weight: 600; font-size: 1.1rem; margin: 8px 0 18px; }
.hero .quote { font-size: 1.2rem; color: var(--title); border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 16px; }
.hero p { color: var(--text); max-width: 620px; }
.hero .photo { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 4px solid var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--accent); color: var(--accent);
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { opacity: 0.88; }

/* Sections */
section { padding: 48px 0; }
section h2 { font-size: 1.6rem; color: var(--title); margin-bottom: 8px; }
section .lead { color: var(--muted); margin-bottom: 28px; }

/* Cartes atouts */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card .icon { font-size: 1.8rem; }
.card h3 { color: var(--title); margin: 8px 0 6px; font-size: 1.1rem; }
.card p { font-size: 0.95rem; }

/* Projets */
.project { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 28px; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.project h3 { font-size: 1.35rem; color: var(--title); }
.project .context { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.project ul { margin: 14px 0 0 20px; }
.project li { margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 9px; font-size: 0.82rem; font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.shots figure { text-align: center; }
.shots img { display: block; }
.shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.shots.wide img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Parcours */
.timeline { border-left: 2px solid var(--border); margin-left: 8px; }
.step { position: relative; padding: 0 0 22px 24px; }
.step::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.step .date { color: var(--muted); font-size: 0.88rem; }
.step h3 { color: var(--title); font-size: 1.05rem; }
.step p { font-size: 0.95rem; }

/* Chiffres clés */
.hero .wrap.stats { display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; gap: 12px; margin-top: 36px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.stat strong { display: block; font-size: 1.7rem; color: var(--accent); line-height: 1.2; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* Icônes */
.icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cadres téléphone */
.phone { border: 7px solid #10131a; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); max-width: 250px; margin: 0 auto; background: #10131a; }
.phone img { width: 100%; }
.phone .crop-status { margin-top: -11.6%; }

/* Étude de cas */
.case { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.case div { border-top: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 0 10px 10px; padding: 12px 14px; font-size: 0.93rem; }
.case h4 { color: var(--title); margin-bottom: 4px; font-size: 0.95rem; }

.lesson { margin-top: 14px; font-size: 0.93rem; padding: 10px 14px; border-left: 3px solid var(--muted); background: var(--bg); border-radius: 0 8px 8px 0; }

.why { margin-top: 12px; font-size: 0.95rem; }

/* IA */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.steps .card { position: relative; padding-left: 58px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }

/* Langue */
nav .lang { border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-weight: 600; }

/* Compétences et langues */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Contact */
.contact { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px 24px; box-shadow: var(--shadow); }
.contact .actions { justify-content: center; }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 28px 0 40px; }

/* Mobile */
@media (max-width: 760px) {
  .hero { padding: 36px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .photo { width: 150px; height: 150px; order: -1; }
  .hero h1 { font-size: 2rem; }
  .cards, .grid2, .case, .steps { grid-template-columns: 1fr; }
  .hero .wrap.stats { grid-template-columns: repeat(2, 1fr); }
  nav ul { display: flex; } nav ul li:not(.keep) { display: none; }
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: center; }
  .shots.wide { grid-template-columns: repeat(3, 88%); }
  .project { padding: 20px; }
}
.switch { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 20px; }
.switch a { color: var(--accent); }
