/* ====== RESET ====== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#0f0f11;--panel:#1c1c20;--text:#f3f3f3;--muted:#a9a9b2;
  --line:rgba(255,255,255,.08);--acc1:#7c3aed;--acc2:#2563eb
}
html,body{height:100%}
body{font-family:Inter,system-ui,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.7}

/* ====== LAYOUT ====== */
.container{max-width:1200px;margin:0 auto;padding:3rem 1rem}
.section{margin-bottom:3rem}
h1,h2,h3{font-weight:700;letter-spacing:.2px}
h1{font-size:2.6rem;margin-bottom:.5rem}
h2{font-size:1.8rem;margin-bottom:1rem}
p.lead{color:#ddd;max-width:720px}

/* ====== NAV ====== */
header{position:sticky;top:0;z-index:1000;backdrop-filter:blur(10px);
  background:rgba(15,15,17,.75);border-bottom:1px solid var(--line)}
nav ul{display:flex;gap:2rem;list-style:none;justify-content:center;padding:1rem}
nav a{color:#cfcfd6;text-decoration:none;font-weight:600}
nav a:hover{color:#fff}

/* ====== HERO ====== */
.hero {
  text-align: center;
  padding: calc(5.5rem + 70px) 1rem 5.5rem 1rem; 
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  border-bottom: 1px solid var(--line);
  color: #fff;
}
.hero .content {
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #eef;
  margin: .5rem 0 1rem;
  line-height: 1.6;
}
.hero p.lead {
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.6;
  margin: 0 auto 2rem auto;   /* Centré */
  max-width: 720px;
  text-align: center;         /* Texte centré */
}
.hero .actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Boutons stylisés ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.btn.primary {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.btn.primary:hover {
  background: #f3f3f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn.ghost {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}



/* ====== Portfolio Cards ====== */
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.project-card .content {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: .3rem;
  color: #fff;
}
.project-card .meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.project-card p {
  font-size: .9rem;
  color: #ddd;
  margin-bottom: auto;
}
.project-card .tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.project-card .tag {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ===== Filtres portfolio ===== */
.filters button,
#filters button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}

.filters button:hover,
#filters button:hover {
  color: #fff;
  border-color: #fff;
}

.filters button.active,
#filters button.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* Grille */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Zoom au hover */
.media-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Lightbox */
.lightbox {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9); /* fond sombre */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #ddd;
  text-align: center;
}

/* Bouton fermer */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #bbb;
}

/* HEADER fixé au-dessus du contenu */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background: #0f0f11; /* opaque quand on est tout en haut */
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: flex;
  align-items: center;
}

header.hide {
  transform: translateY(-100%);
}

/* Quand on a scrollé → semi-transparent + blur + ombre */
header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 17, 0.75);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Conteneur principal du header */
/* Conteneur principal */
.navbar {
  display: flex;
  justify-content: flex-end; /* pousse le switcher à droite */
  align-items: center;
  width: 100%;
  max-width: 1400px; /* tu peux ajuster si besoin */
  margin: 0 auto;
  padding: 0 2rem; /* espace intérieur gauche/droite */
  position: relative;
}

/* Liens centrés */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #cfcfd6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Switcher langues à droite */
.lang-switcher {
  display: flex;
  gap: .5rem;
  margin-right: 1rem; /* espace entre les drapeaux et le bord droit */
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.lang-btn:hover {
  transform: scale(1.2);
}

.flag-icon {
  width: 28px;   /* largeur du drapeau */
  height: auto;  /* garde le ratio */
  border-radius: 3px; /* coins arrondis */
  display: block;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.lang-btn:hover .flag-icon {
  transform: scale(1.1);
}


.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 1rem;
  margin-top: 3rem;
}

.site-footer p {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #cfcfd6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* Couleurs par catégorie */
button[data-cat="QA"].active { background: #7c3aed; color:#fff; border-color:#7c3aed; }
button[data-cat="Sound"].active { background: #2563eb; color:#fff; border-color:#2563eb; }
button[data-cat="Other"].active { background: #10b981; color:#fff; border-color:#10b981; }

/* Couleurs par contexte */
button[data-ctx="Pro"].active { background: #f59e0b; color:#111; border-color:#f59e0b; }
button[data-ctx="Études"].active { background: #ec4899; color:#fff; border-color:#ec4899; }
button[data-ctx="Perso"].active { background: #06b6d4; color:#fff; border-color:#06b6d4; }


/* ====== FOOTER ====== */
footer{border-top:1px solid var(--line);text-align:center;color:var(--muted);padding:1.2rem}
