/* Chrome partagee entre les sous-pages du portfolio (police, logo,
   bouton retour, gabarits de base). fonts.css doit etre charge avant
   celui-ci. */

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

html, body {
  width: 100%;
  min-height: 100%;
  background: #0b0b0b;
  color: #f2f2f0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.top-right-bar {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  all: unset;
  cursor: pointer;
  display: flex;
  padding: 5px;
  border-radius: 4px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease, background 0.25s ease;
}
.lang-switch button svg { display: block; width: 22px; height: 15px; border-radius: 2px; }
.lang-switch button:hover { opacity: 0.75; }
.lang-switch button.active { opacity: 1; filter: grayscale(0); background: rgba(255,255,255,0.1); }

#back {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2f2f0;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  z-index: 5;
}
#back:hover { background: #f2f2f0; color: #0b0b0b; border-color: #f2f2f0; }

.legal-link {
  position: fixed;
  bottom: 20px;
  left: 32px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  z-index: 5;
}
.legal-link:hover { color: #8a8a8a; }

/* Titres de rubrique : police système en extra-bold, distincte du
   corps de texte en Nunito. */
.title-font {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 32px 100px;
}

h1.page-title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  text-align: center;
}

.video-frame {
  width: 100%;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---- Ecrans etroits : telephones, telephones pliants ferme, tablettes en portrait ---- */
@media (max-width: 640px) {
  .top-right-bar { top: 18px; right: 18px; gap: 10px; }
  #back { font-size: 11px; padding: 8px 14px; }
  .lang-switch button svg { width: 19px; height: 13px; }
  main { padding: 110px 20px 72px; }
  .legal-link { left: 18px; bottom: 14px; font-size: 9px; }
}

/* ---- Tres petits ecrans : telephones pliants ferme, vieux telephones etroits ---- */
@media (max-width: 340px) {
  .top-right-bar { right: 14px; top: 14px; gap: 8px; }
  #back { font-size: 10px; padding: 7px 10px; }
  .lang-switch button svg { width: 17px; height: 11px; }
  main { padding: 96px 14px 64px; }
}
