/* ════════════════════════════════════════════════════════════════
   style.css — Feuille de style globale du portfolio
   À inclure dans chaque page via :
   <link rel="stylesheet" href="style.css">
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600;700&family=Syne:wght@400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');


/* ═══════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════ */
:root {
  --bg:           #0a0a0f;
  --bg2:          #11111a;
  --bg3:          #18182a;
  --violet:       #7c3aed;
  --violet-light: #a855f7;
  --violet-glow:  rgba(124, 58, 237, 0.18);
  --white:        #f0f0f8;
  --grey:         #8888aa;
  --border:       rgba(124, 58, 237, 0.22);
  --mono:         'Space Mono', monospace;
  --sans:         'Syne', sans-serif;
  --body-font:    'Inter', sans-serif;
}


/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* Grain de bruit subtil sur toutes les pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.010;
  pointer-events: none;
  z-index: 9999;
}


/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 999px; }


/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(10,10,15,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo-class {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.logo-class img {
  width: 64px; height: 64px;
  object-fit: contain;
}
.logo-class span { color: var(--violet-light); }

nav { display: flex; gap: 0.25rem; }

nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--grey);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--violet-light);
  transition: left 0.2s, right 0.2s;
  border-radius: 2px;
}
nav a:hover            { color: var(--white); }
nav a:hover::after     { left: 1rem; right: 1rem; }
nav a.active           { color: var(--violet-light); }


/* ═══════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════ */
section {
  min-height: 100vh;
  padding: 100px 3rem 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 0.6rem;
  font-family: var(--mono);
}
/*
h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
  line-height: 1.1;
}
  */

h2 {
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  margin: 0;
}


/* ═══════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════ */
.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 28px rgba(124,58,237,0.4);
}
.btn-primary:hover { box-shadow: 0 0 42px rgba(124,58,237,0.65); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--violet-light); color: var(--violet-light); }


/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.7; }
}

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


/* ═══════════════════════════════════════
   HERO (page accueil)
   ═══════════════════════════════════════ */
#accueil {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
.hero-bg2 {
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.10) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite reverse;
}

.hero-inner {
  max-width: 760px;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-light);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  background: var(--violet-glow);
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
  animation: blink 1.4s ease-in-out infinite;
}

.hero-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  animation: fadeUp 0.8s ease both;
}
.hero-name .first { color: var(--white); }
.hero-name .last {
  color: var(--violet-light);
}

.hero-title {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-title .bracket { color: var(--violet); }

.hero-bio {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--grey);
  max-width: 560px;
  border-left: 2px solid var(--violet);
  padding-left: 1.2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-bio strong { color: var(--white); }

.projet-gallery-img img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  transform-origin: center center;
  transition: transform 0.2s ease;
  cursor: zoom-out;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}


.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.8s 0.45s ease both;
}


/* ═══════════════════════════════════════
   LANGAGES — CAROUSEL
   ═══════════════════════════════════════ */
#langages { background: var(--bg); }

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.lang-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.lang-card:hover               { border-color: var(--violet-light); transform: translateY(-4px); }
.lang-card:hover::before       { opacity: 1; }

.lang-icon                     { font-size: 3rem; line-height: 1; }
.lang-icon img                 { width: 64px; height: 64px; object-fit: contain; }
.lang-name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.lang-level {
  font-size: 0.72rem;
  color: var(--violet-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}
.lang-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  border-radius: 999px;
  width: 0;
  transition: width 1s ease;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.carousel-btn:hover { border-color: var(--violet-light); background: var(--violet-glow); }

.carousel-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grey);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--violet-light); transform: scale(1.4); }


/* ═══════════════════════════════════════
   OUTILS
   ═══════════════════════════════════════ */
#outils { background: var(--bg2); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.tool-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.tool-chip:hover           { border-color: var(--violet-light); transform: translateY(-3px); }
.tool-chip-icon img        { width: 64px; height: 64px; object-fit: contain; }
.tool-chip-name {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-align: center;
}

.add-placeholder {
  background: transparent;
  border: 1px dashed rgba(124,58,237,0.35);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(124,58,237,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
}
.add-placeholder span:first-child { font-size: 1.5rem; }


/* ═══════════════════════════════════════
   PARCOURS — FRISE HORIZONTALE
   ═══════════════════════════════════════ */
#parcours { background: var(--bg); }

.timeline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--violet-light), var(--violet), transparent);
}

.tl-icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
}

.tl-item {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--violet);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(124,58,237,0.7);
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.tl-connector {
  width: 1px;
  height: 28px;
  background: var(--violet);
  opacity: 0.5;
  margin-top: 14px;
  flex-shrink: 0;
}
.tl-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  width: 100%;
  transition: border-color 0.2s, transform 0.2s;
  margin-top: 6px;
}
.tl-content:hover { border-color: var(--violet-light); transform: translateY(-3px); }

.tl-date {
  font-size: 0.68rem;
  color: var(--violet-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.tl-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.tl-sub {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.65;
}


/* ═══════════════════════════════════════
   LANGUES
   ═══════════════════════════════════════ */
#langues { background: var(--bg2); }

.langs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.langue-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.langue-card:hover { border-color: var(--violet-light); transform: translateY(-3px); }

.langue-flag       { font-size: 2.2rem; }
.langue-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.langue-level-text {
  font-size: 0.72rem;
  color: var(--violet-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.langue-stars { margin-top: 0.4rem; display: flex; gap: 3px; }
.star         { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); }
.star.filled  { background: var(--violet-light); }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.06em;
}
footer span { color: var(--violet-light); }


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  header  { padding: 0 1.2rem; }
  nav a   { padding: 0.4rem 0.55rem; font-size: 0.68rem; }
  section { padding: 100px 1.5rem 50px; }

  .lang-card { flex: 0 0 calc(100% - 1rem); }
  .tl-item   { flex: 1 1 160px; min-width: 150px; }
}
