/* =========================================
   1. VARIABLES & RESET GLOBAL
   ========================================= */
:root {
  --color-bg: transparent;
  --color-text: #ffffff;
  --color-accent: #cccccc;
  --color-border: rgba(255, 255, 255, 0.2);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fond sombre global pour éviter les "trous" lors du scroll élastique */
html {
  background-color: #1a1a1a;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Arrière-plan IMAGE (Par défaut sur toutes les pages) */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('../img/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

/* Filtre sombre par-dessus l'image */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

/* Arrière-plan VIDÉO (page d'accueil uniquement) */
#bg-video {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  display: none;
  opacity: 0.6;
}

body.home-page #bg-video { display: block; }
body.home-page::before { display: none; }
body.home-page::after  { display: none; }


/* =========================================
   2. LAYOUT & CONTAINERS
   ========================================= */
.page,
.site-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.page .container {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  justify-content: flex-end;
}

.page {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Classe .bio utilisée sur plusieurs pages */
.bio {
  color: var(--color-accent);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.bio a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}

.bio a:hover { border-color: #fff; }


/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  margin-bottom: 50px;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}

.brand {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.nav a.nav-link {
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 5px 0;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav a.nav-link:hover,
.nav a.nav-link.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Sélecteur de langue */
.language-selector {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 20px; margin-bottom: -20px;
}

.lang-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 300;
  cursor: pointer;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.1); }

.lang-dropdown {
  opacity: 0; visibility: hidden;
  position: absolute; top: 100%; right: 0;
  width: 140px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  transform: translateY(10px);
  display: flex; flex-direction: column;
  z-index: 2000; margin-top: 5px;
}

.language-selector:hover .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-dropdown a {
  color: #ccc; text-decoration: none;
  padding: 10px 20px; font-size: 1rem;
  display: block; text-align: left;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.15); color: #fff;
}

/* Bouton burger quand fenetre trop fine */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}


@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none; /* cachée par défaut */
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
  }

  .nav.open {
    display: flex; /* visible quand ouverte */
  }
}


/* =========================================
   4. TYPOGRAPHIE & ÉLÉMENTS COMMUNS
   ========================================= */
section { margin-bottom: var(--space-xl); }

h1, h2, h3 { font-weight: 600; color: #fff; }

.page-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.header-line {
  width: 80px; height: 2px;
  background: var(--color-text);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  font-weight: 500;
  border-radius: 6px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}


/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  flex-shrink: 0;
}

.hidden-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.hidden-link:hover { text-decoration: none; }


/* =========================================
   6. MEDIA QUERIES COMMUNES
   ========================================= */
@media (max-width: 900px) {
  .header-inner { padding: 0 20px; }
  .nav { gap: 15px; flex-direction: column; }
  .language-selector {
    margin-left: 0; padding-left: 0; border-left: none;
    margin-top: 15px; width: 100%; display: flex; justify-content: center;
  }
  .lang-dropdown {
    left: 50%; right: auto; transform: translateX(-50%);
  }
}

/* =========================================
   7. Sccroll bar
   ========================================= */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111; /* fond */
}

::-webkit-scrollbar-thumb {
  background: #444; /* barre */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #444 #111;
}