/* =========================
   Base / Reset
========================= */
:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted-2: rgba(255,255,255,0.60);
  --shadow: 0 12px 30px rgba(0,0,0,0.35);

  --accent: #6ee7ff;
  --accent-2: #a78bfa;

  --radius: 18px;
  --radius-sm: 12px;

  --max: 1040px;
  --pad: 22px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(110,231,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(167,139,250,0.16), transparent 55%),
    radial-gradient(800px 500px at 40% 110%, rgba(251,113,133,0.10), transparent 60%),
    var(--bg);
  line-height: 1.8;
  font-size: 18px;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding-left: 1.1rem; }
li{ margin: 0.25rem 0; font-size: 1.02rem; }
p{ margin: 0.6rem 0; }

/* =========================
   Layout
========================= */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

main.container{
  padding-top: 18px;
  padding-bottom: 60px;
}

/* =========================
   Hero
========================= */
.hero{
  position: relative;
  padding: 46px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(800px 250px at 35% 0%, rgba(110,231,255,0.22), transparent 60%),
    radial-gradient(600px 240px at 85% 20%, rgba(167,139,250,0.18), transparent 55%);
  pointer-events:none;
  opacity: 0.9;
}

.hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 18px;
  align-items: center;
}

.hero h1{
  margin: 0;
  font-size: clamp(2.3rem, 3.6vw, 3rem);
  letter-spacing: 0.3px;
}

.subtitle{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.tagline{
  margin-top: 10px;
  color: var(--text);
  opacity: 0.92;
}

.links{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
}

.links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.links a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.dot{ opacity: 0.55; }

.hero-photo{
  justify-self: end;
  text-align: center;
}

.hero-photo img{
  width: 190px;
  height: 190px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 12px 30px rgba(0,0,0,0.40);
  background: rgba(255,255,255,0.03);
}
.hero-photo img{
  outline: 3px solid rgba(110,231,255,0.25);
  outline-offset: 4px;
}


.photo-caption{
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--muted);
}

/* =========================
   Navbar
========================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.brand{
  font-weight: 900;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.nav-links{
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.nav-links a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.nav-toggle{
  display: none;
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   Headings
========================= */
h2{
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.2px;
}

h3{
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: 0.15px;
}

h4{
  margin: 14px 0 8px;
  font-size: 1.08rem;
  color: var(--text);
  opacity: 0.95;
}

/* =========================
   Sections (collapsible)
========================= */
section{
  margin-top: 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  overflow: hidden;
}

.section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section-head:hover{
  background: rgba(255,255,255,0.03);
}

.section-body{
  padding: 14px 16px 18px;
  animation: sectionFade .18s ease;
}

@keyframes sectionFade{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.collapse-btn{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.collapse-btn:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

.section-body.collapsed{
  display: none;
}

/* =========================
   Cards / Grid
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.card{
  grid-column: span 6;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(8px);
}

.card ul{
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 860px){
  .card{ grid-column: span 12; }
}

/* =========================
   Timeline
========================= */
.timeline{
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.item{
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.meta{
  margin: 6px 0 10px;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 1.05rem;
}

/* =========================
   Projects
========================= */
.project{
  margin-top: 14px;
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}

.project + .project{ margin-top: 16px; }

.project p{ color: var(--muted); }
.project strong{ color: var(--text); }

.proof{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  background: rgba(110,231,255,0.12);
  border: 1px solid rgba(110,231,255,0.22);
}

.hint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.shot{
  grid-column: span 6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.shot img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(255,255,255,0.03);
}

.shot.placeholder{
  min-height: 180px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.70);
  font-weight: 750;
  text-align: center;
  padding: 18px;
}

/* =========================
   Contact
========================= */
.contact{
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact a{
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.contact a:hover{
  border-bottom-color: rgba(110,231,255,0.65);
}

/* =========================
   Footer
========================= */
.footer{
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  color: var(--muted);
}

/* =========================
   Mobile
========================= */
@media (max-width: 860px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-photo{
    justify-self: start;
    text-align: left;
    margin-top: 10px;
  }

   .hero-photo img{
    width: 140px;
    height: 140px;
  }

  .nav-toggle{
    display: inline-flex;
  }

  .nav-inner{
    flex-wrap: wrap;
  }

  .nav-links{
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 10px 0 6px;
    gap: 8px;
  }

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

/* =========================
   Accessibility / Focus
========================= */
a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(110,231,255,0.7);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===== Active link highlight ===== */
.nav-links a.active{
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Petit “trait” discret (optionnel mais très clean) */
.nav-links a.active{
  position: relative;
}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(110,231,255,0.55);
}

/* ===== Global toggle button ===== */
.all-toggle{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.all-toggle:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

/* Sur mobile, le bouton global prend toute la largeur si menu ouvert */
@media (max-width: 860px){
  .all-toggle{
    width: 100%;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* conserve le format vidéo */
  background: #0b1220;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Légende sous la vidéo */
.video-caption {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
