﻿:root {
  --bg:#050915;
  --panel:#0e1323;
  --surface:#11182c;
  --text:#e7e9f2;
  --muted:#a7b3c7;
  --accent:#22d3ee;
  --accent-soft:#60a5fa;
  --highlight:#facc15;
  --border:rgba(255,255,255,.08);
  --shadow:0 22px 45px rgba(5,9,21,.38);
}
* {box-sizing:border-box}
html,body {
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
  scroll-behavior:smooth;
}
img {max-width:100%;display:block}
a {color:inherit;text-decoration:none}
section {scroll-margin-top:96px}
.container {max-width:1280px;margin:0 auto;padding:0 24px}

/* Navigation */
.nav {
  position:sticky;top:0;z-index:60;
  backdrop-filter:blur(16px);
  background:linear-gradient(180deg,rgba(11,15,25,.92),rgba(11,15,25,.62));
  border-bottom:1px solid var(--border);
  transition:background .3s ease,box-shadow .3s ease;
}
.nav .inner {display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.logo {font-weight:700;letter-spacing:.18px;font-size:18px}
.logo b {color:var(--highlight)}
.menu {display:flex;gap:20px;align-items:center}
.menu a {padding:8px 12px;border-radius:999px;font-size:14px;color:#cfd5e8;transition:all .2s ease}
.menu a:hover {background:rgba(255,255,255,.1);color:var(--text)}

/* Amélioration de la barre de navigation pour les téléphones */
@media (max-width: 768px) {
  .nav .menu {
    display: none;
  }

  .nav .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
  }

  .nav .menu.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--panel);
    padding: 10px;
    border-radius: 8px;
  }

  .menu a {
    padding: 10px;
    text-align: center;
  }
}

/* Buttons */
.btns {display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:center}
.btn {
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 28px;border-radius:18px;font-weight:600;font-size:15px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);
  color:var(--text);
  transition:transform .2s ease,box-shadow .25s ease,background .25s ease,color .25s ease;
}
.btn:hover {transform:translateY(-2px);box-shadow:0 18px 34px rgba(8,11,24,.45)}
.btn.gradient {background:linear-gradient(93deg,var(--highlight) 0%,var(--accent) 55%,var(--accent-soft) 100%);color:#061018;border:none;box-shadow:0 22px 38px rgba(34,211,238,.32)}
.btn.gradient:hover {filter:brightness(1.06)}
.btn.outline {border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.08);color:var(--text)}
.btn.outline:hover {background:rgba(255,255,255,.18);color:#061018}

/* Hero */
.hero {padding:120px 0 96px;position:relative;overflow:hidden}
.hero::before {content:"";position:absolute;inset:-40% auto auto -25%;width:520px;height:520px;background:radial-gradient(55% 55% at 50% 45%,rgba(96,165,250,.16),transparent 72%);opacity:.7;z-index:-1}
.hero::after {content:"";position:absolute;top:-160px;right:-220px;width:500px;height:500px;background:radial-gradient(60% 60% at 50% 40%,rgba(34,211,238,.22),transparent 70%);filter:blur(16px);opacity:.55;z-index:-1}
.hero-content {display:flex;flex-direction:column;align-items:center;text-align:center;gap:32px;padding:0;max-width:980px;margin:0 auto}
.about-video {width:100%}
.hero-line {display:inline}
.hero-content h1 {font-size:clamp(44px,6vw,72px);line-height:1.12;margin:0;font-weight:800;letter-spacing:-.5px}
.hero-sub {font-size:18px;color:#cfdae6;max-width:640px;margin:0 auto}
.hero-cta {margin-top:4px}

/* Sections */
.section {padding:70px 0}
.section h2 {font-size:30px;margin:0 0 18px}

/* About */
.about-layout {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 20px;
}

.about-photo {
  flex-shrink: 0;
}

.about-content {
  flex-grow: 1;
  text-align: justify;
  line-height: 1.8;
}

.about-photo img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .nav .menu {
    flex-direction: column;
    gap: 10px;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .btns {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-photo img {
    width: 80%;
  }
}

.about-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center}
.about-photo img {width:100%;max-width:420px;border-radius:28px;object-fit:cover;border:1px solid rgba(255,255,255,.18);box-shadow:0 32px 60px rgba(10,13,23,.52)}
.about-content {display:flex;flex-direction:column;gap:16px;color:#d0d8e6}

.about-badges,
.partner-badges {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 6px;
}

.about-badges .badge,
.partner-badges .badge {
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  color:#e4e8f7;
}

.about-video {
  margin-top: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--surface);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 820px) {
  .hero-content {max-width: 1120px}
}

.about-video-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.inline-link {
  color: #cfd5e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--text);
}

/* Vision (video + description) */
.share-layout {
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: start;
}

.share-content {
  display:flex;
  flex-direction:column;
  gap: 12px;
  color: #d0d8e6;
}

.share-content h3 {
  margin: 0;
  font-size: 20px;
  color: #f2f5ff;
}

.share-title {
  margin: 0;
  font-weight: 700;
  color: #f8fafc;
}

.contact-lines {
  margin-top: 18px;
  color: #c9d3e4;
}

.contact-lines p {
  margin: 8px 0;
}

/* Experience */
.experience-intro {display:flex;flex-direction:column;gap:18px;margin-bottom:32px;color:#c9d3e4}
.experience-badges {display:flex;flex-wrap:wrap;gap:10px}
.experience-badges .badge {background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);padding:7px 12px;border-radius:999px;font-size:12px;color:#e4e8f7}
.experience-timeline {position:relative;padding-left:28px}
.experience-timeline::before {content:"";position:absolute;left:7px;top:6px;bottom:0;width:2px;background:linear-gradient(180deg,rgba(96,165,250,.38),transparent)}
.exp-item {position:relative;padding:0 0 28px 0}
.exp-marker {position:absolute;left:-1px;top:6px;width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,var(--highlight),var(--accent));box-shadow:0 0 0 5px rgba(34,211,238,.16)}
.exp-card {background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border:1px solid var(--border);border-radius:20px;padding:20px 22px;box-shadow:var(--shadow)}
.exp-meta {font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#90c8ff;margin-bottom:8px}
.exp-card h3 {margin:0 0 8px;font-size:18px;color:#f2f5ff}
.exp-card p {margin:0;color:var(--muted)}

/* Projects */
.projects {display:flex;flex-direction:column;gap:36px}
.project {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:32px;padding:30px;border-radius:26px;background:linear-gradient(180deg,var(--panel),rgba(14,19,35,.6));border:1px solid rgba(255,255,255,.06);box-shadow:var(--shadow);transition:transform .25s ease,box-shadow .25s ease}
.project:hover {transform:translateY(-6px);box-shadow:0 28px 55px rgba(5,9,21,.55)}
.project-info {display:flex;flex-direction:column;gap:16px}
.project-info h3 {margin:0;font-size:22px;color:#f5f7ff}
.project-info p {margin:0;color:#d0d8e6}
.project-flow {margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:14px;color:#b5c2d8}
.project-flow li {position:relative;padding-left:22px;line-height:1.58}
.project-flow li::before {content:"➜";position:absolute;left:0;top:0;color:#60a5fa;font-size:14px}
.project-flow strong {color:#f5f8ff}
.project-tags {display:flex;gap:10px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.project-tags li {padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(148,163,184,.1);font-size:12px;color:#dbe4f7}
.project-impact {display:flex;gap:10px;flex-wrap:wrap}
.project-impact .badge {background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);color:#f2f4ff;font-size:12px;padding:7px 12px;border-radius:999px}
.project-notes {margin-top:10px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#d6def0;font-size:13px}
.project-media {display:flex;flex-direction:column;gap:16px}
.project-preview {position:relative;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:var(--surface);box-shadow:0 24px 45px rgba(6,9,18,.46)}
.project-preview img {width:100%;height:100%;object-fit:cover;aspect-ratio:16/10}
.project-nav {position:absolute;top:50%;transform:translateY(-50%);background:rgba(8,11,24,.72);border:1px solid rgba(255,255,255,.18);color:#eaf0ff;font-size:22px;width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease}
.project-nav:hover {background:rgba(255,255,255,.22);color:#04070f}
.project-nav.prev {left:14px}
.project-nav.next {right:14px}
.project-thumbs {display:flex;gap:12px}
.project-thumb {width:52px;height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.16);background-size:cover;background-position:center;background-repeat:no-repeat;cursor:pointer;opacity:.6;transition:transform .2s ease,opacity .2s ease}
.project-thumb.is-active {opacity:1;transform:scale(1.05);border-color:rgba(34,211,238,.6)}

/* Contact */
.contact-cta {justify-content:center;gap:20px;margin-top:24px}
.punchline {text-align:center;font-size:18px;font-weight:600;color:#f8fafc;margin-top:26px}
.footer {margin:48px 0 30px;color:#98a4bc;font-size:13px;text-align:center}

/* Lightbox */
.lightbox {position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;padding:24px;z-index:60}
.lightbox img {max-width:94vw;max-height:90vh;border-radius:16px;border:1px solid rgba(255,255,255,.2)}
.lightbox.show {display:flex}
.close {position:absolute;top:16px;right:18px;font-size:32px;color:#e5e9f5;cursor:pointer}

/* Responsive */
@media (max-width:1080px) {
  .about-layout {grid-template-columns:1fr;gap:32px;text-align:center}
  .about-content {align-items:center}
  .share-layout {grid-template-columns: 1fr;gap: 18px}
  .projects .project {grid-template-columns:1fr;gap:24px}
  .project-media {order:2}
  .project-info {order:1;text-align:center}
  .project-flow li {text-align:left}
}
@media (max-width:820px) {
  .nav .inner {flex-direction:column;gap:12px}
  .menu {flex-wrap:wrap;justify-content:center;gap:14px}
  .hero {padding:100px 0 80px}
  .hero-cta .btn {min-width:180px}
  .project-preview img {aspect-ratio:4/3}
}
@media (max-width:640px) {
  .container {padding:0 18px}
  .hero {padding:90px 0 70px}
  .hero-content {gap:24px}
  .hero-content h1 {font-size:clamp(34px,8vw,52px)}
  .hero-sub {font-size:16px}
  .btn {width:100%}
  .project-preview img {aspect-ratio:3/2}
  .project-thumb {width:48px;height:48px}
  .experience-timeline {padding-left:0}
  .experience-timeline::before {left:calc(50% - 1px)}
  .exp-marker {left:calc(50% - 9px)}
  .exp-card {margin:0 auto;max-width:360px}
}
@media (max-width:480px) {
  .nav .inner {padding:12px 0}
  .menu a {font-size:13px}
  .hero {padding:84px 0 64px}
  .project-tags li {font-size:11px}
  .punchline {font-size:16px}
}
