/* ================================
   CUSTOM PROPERTIES
================================ */
:root {
  /* Couleurs */
  --color-bg:          #00071C;
  --color-surface:     #0D1825;
  --color-surface-2:   #111F30;
  --color-text:        #DDD9D4;
  --color-text-muted:  #B8C8D8;
  --color-accent:      #1D9E75;
  --color-cta:         #DF2330;
  --color-border:      #1A2535;

  /*
    Typographie
    — Cinzel        : titres → chargé via Google Fonts (voir <head>)
    — Hypatia Sans Pro : corps → police Adobe, à charger via Adobe Fonts ou @font-face
  */
  --font-title: 'Cinzel', Georgia, serif;
  --font-body:  'hypatia-sans-pro', 'Trebuchet MS', system-ui, sans-serif;

  /* Conteneurs */
  --container-max:     1240px;
  --container-medium:  920px;
  --container-narrow:  700px;

  /* Espacements */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   68px;
  --space-xl:   120px;

  /* Arrondis */
  --radius-sm:  4px;
  --radius-md:  10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.phraseMystere{
    text-align: center;
    font-size: 70%;
    margin-top: 15px;
    color: #26355f;
}


/* ================================
   CONTAINERS
================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container-medium {
  max-width: var(--container-medium);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ================================
   UTILITIES
================================ */
.text-center { text-align: center; }

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: var(--color-cta);
  color: #ffffff;
  border-color: var(--color-cta);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-cta);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Bloc partage */
.share-block {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 200px;
}

.share-copied {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.share-copied.is-visible {
  opacity: 1;
}

/* ================================
   PLACEHOLDER IMAGES
================================ */
.placeholder-img {
  display: block;
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

/* ================================
   SECTIONS — espacement global
================================ */
.section {
  padding-block: var(--space-xl);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
}

.section-title::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 18px;
  opacity: 0.5;
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: var(--container-medium);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* ================================
   NAVBAR
   — Fond surface, non sticky
   — Pour rendre sticky : position: sticky; top: 0; z-index: 200;
================================ */
.navbar {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.navbar.scrolled {
  background-color: var(--color-surface);
  border-bottom-color: var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 84px;
}

.navbar-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.navbar-nav {
  flex-shrink: 0;
}

.navbar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navbar-right .btn {
  font-size: 1.05rem;
  padding: 13px 28px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-active {
  color: var(--color-accent);
}

.lang-sep {
  color: var(--color-border);
}

.lang-link {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.lang-link:hover {
  color: var(--color-text);
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  background-color: var(--color-cta);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.navbar-nav ul {
  display: flex;
  gap: 44px;
  align-items: center;
}

.navbar-nav a {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: 10px;
  position: relative;
  transition: color 0.22s ease;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

.navbar-nav a:hover {
  color: var(--color-accent);
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-cta {
  flex-shrink: 0;
}

/* ================================
   HERO
   — Fond vidéo plein écran + overlay + logo + tagline + CTA
================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Conteneur vidéo — remplacer l'intérieur par <video> */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-bg);
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 7, 28, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Placeholder logo texte — à remplacer par .hero-logo-img */
.hero-logo-placeholder {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

/* Vrai logo image */
.hero-logo-img {
  max-width: 560px;
  width: 45vw;
  height: auto;
}


.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.8;
}

/* Scroll indicator — chevron animé bas du hero */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  animation: hero-bounce 2.2s ease-in-out infinite;
  transition: opacity 0.5s ease;
  text-decoration: none;
}

.hero-scroll-chevron {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator { animation: none; }
}

/* ================================
   ACCROCHE
================================ */
.accroche-section .section-title {
  margin-bottom: var(--space-md);
}

.accroche-text {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: justify;
  hyphens: auto;
}

.accroche-text p {
  margin-bottom: var(--space-sm);
}

.accroche-text p:last-child {
  margin-bottom: 0;
}

.accroche-pivot {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text);
  padding-block: var(--space-xs);
}

.accroche-conclusion {
  color: var(--color-accent);
  font-style: italic;
}

/* ================================
   UNIVERS — Carousel pleine largeur
================================ */
.univers-section .section-title {
  margin-bottom: var(--space-lg);
}

.univers-carousel {
  position: relative;
}

.univers-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.univers-track {
  display: flex;
  transition: transform 0.5s ease;
}

.univers-slide {
  flex: 0 0 100%;
  position: relative;
}

.univers-slide-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
}

.univers-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 7, 28, 0.96) 0%,
    rgba(0, 7, 28, 0.7) 45%,
    transparent 100%
  );
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.univers-slide-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.univers-slide-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 720px;
  text-align: justify;
  hyphens: auto;
}

/* Contrôles — flèches + points */
.univers-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
}

.univers-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 7, 28, 0.55);
  color: var(--color-text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.univers-prev { left: 16px; }
.univers-next { right: 16px; }

.univers-btn:hover {
  background: rgba(0, 7, 28, 0.85);
  color: var(--color-accent);
}

.univers-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.univers-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.univers-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ================================
   GAMEPLAY
   — 3 grands visuels cliquables + panneau texte lié
   — Toggle JS : .gameplay-item.is-open → affiche .gameplay-panel
================================ */
.gameplay-section .section-title {
  margin-bottom: var(--space-lg);
}

.gameplay-section .container {
  max-width: 1440px;
}

.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.gameplay-item {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.25s;
}

.gameplay-item:hover {
  border-color: var(--color-accent);
}

/* Zone visuelle — cœur de la carte */
.gameplay-visual {
  position: relative;
  overflow: hidden;
}

.gameplay-img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  border: none;
  display: block;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gameplay-item:hover .gameplay-img {
  transform: scale(1.04);
}

/* Overlay dégradé avec titre + hint */
.gameplay-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 7, 28, 0.92) 0%,
    rgba(0, 7, 28, 0.25) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  gap: var(--space-xs);
}

.gameplay-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.gameplay-toggle-hint {
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.gameplay-item:hover .gameplay-toggle-hint {
  color: var(--color-text);
}

/* Panneau texte — masqué par défaut, ouvert via .is-open */
.gameplay-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  background-color: var(--color-surface);
}

.gameplay-item.is-open .gameplay-panel {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--color-border);
}

.gameplay-panel-inner {
  overflow: hidden;
  padding: 0 var(--space-md);
  transition: padding 0.4s ease;
  font-size: 18px;
}

.gameplay-item.is-open .gameplay-panel-inner {
  padding: var(--space-md);
}

/* Flèche rotative au clic */
.gameplay-arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.gameplay-item.is-open .gameplay-arrow {
  transform: rotate(180deg);
}

.gameplay-panel p {
  font-family: var(--font-body);
  font-size: 18px !important;
  color: var(--color-text);
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}

/* ================================
   GALERIE
   — 2 colonnes · 3 lignes · visuels immersifs · prête pour lightbox
================================ */
.galerie-section .section-title {
  margin-bottom: var(--space-lg);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.galerie-item {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.22s, transform 0.22s;
}

.galerie-item:hover {
  opacity: 0.85;
  transform: scale(1.01);
}

/* ================================
   LIGHTBOX
================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
  cursor: pointer;
}

.lightbox-img-wrapper {
  cursor: default;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 28, 0.94);
}

.lightbox-img-wrapper {
  position: relative;
  z-index: 1;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ================================
   STUDIO
================================ */
.studio-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
}

.studio-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.studio-logo-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.studio-text p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.9;
  text-align: justify;
  hyphens: auto;
  margin-bottom: var(--space-md);
}

.studio-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .studio-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .studio-logo-img {
    max-width: 300px;
    margin-inline: auto;
  }

  .studio-text p {
    font-size: 1rem;
    text-align: left;
  }
}

/* ================================
   ÉQUIPE
   — 10 membres, 2 lignes de 5
================================ */
.equipe-section .section-title {
  margin-bottom: var(--space-lg);
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg) var(--space-lg);
}

.equipe-membre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  text-decoration: none;
  color: inherit;
}

/* Indicateur lien discret sur les cartes cliquables */
.equipe-membre--link {
  position: relative;
}

.equipe-membre--link::after {
  content: '↗';
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.equipe-membre--link:hover::after {
  opacity: 1;
}

.avatar-circle {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  margin-bottom: var(--space-xs);
}

/* Vrai photo de profil */
.avatar-img {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  margin-bottom: var(--space-xs);
}

.membre-nom {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.3;
}

.membre-role {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ================================
   SOUTENIR
================================ */
.soutenir-header {
  margin-bottom: var(--space-lg);
}

.soutenir-header .section-intro {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 18px 22px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.form-submit {
  display: flex;
  justify-content: flex-start;
  padding-top: var(--space-xs);
}

/* Checkbox "je ne suis pas un robot" */
.form-group--checkbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: 2px solid #00071c;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"].has-error + .checkbox-custom {
  border-color: #e05c5c;
}

/* ================================
   FOOTER
   — 3 colonnes horizontales : liens | identité | réseaux
================================ */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

/* Colonne gauche — navigation + copyright */
.footer-col--left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 32px;
  justify-content: start;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  opacity: 0.45;
}

/* Colonne centre — identité */
.footer-col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.footer-studio-logo {
  height: 110px;
  width: auto;
  display: block;
}

/* Colonne droite — réseaux sociaux */
.footer-col--right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

/*
  Icônes réseaux — <img> + CSS filter
  brightness(0) invert(1) → blanc par défaut
  hover → vert #1D9E75 via chaîne de filtres
*/
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon img {
  width: 35px;
  height: 35px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.22s ease;
}

.social-icon:hover img {
  /* Approximation de #1D9E75 à partir d'un SVG noir */
  filter: invert(51%) sepia(44%) saturate(705%) hue-rotate(115deg) brightness(92%) contrast(82%);
}

/* ================================
   RESPONSIVE — TABLETTE (≤ 1024px)
================================ */
@media (max-width: 1024px) {

  :root {
    --space-xl: 88px;
    --space-lg: 52px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .navbar-nav ul {
    gap: var(--space-md);
  }

  .hero-logo-placeholder {
    font-size: 2.2rem;
  }

  .gameplay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gameplay-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .gameplay-item:nth-child(3) .gameplay-img {
    aspect-ratio: 16 / 7;
  }

  .equipe-grid {
    grid-template-columns: repeat(5, 1fr);
  }

}

/* ================================
   RESPONSIVE — TABLETTE (≤ 768px)
================================ */
@media (max-width: 768px) {

  :root {
    --space-xl: 72px;
    --space-lg: 44px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .gameplay-grid {
    grid-template-columns: 1fr;
  }

  .gameplay-item:nth-child(3) {
    grid-column: unset;
  }

  .gameplay-item:nth-child(3) .gameplay-img {
    aspect-ratio: 4 / 5;
  }

  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .equipe-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .footer-col--left,
  .footer-col--right {
    justify-content: center;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

}

/* ================================
   RESPONSIVE — MOBILE (≤ 640px)
================================ */
@media (max-width: 640px) {

  :root {
    --space-xl: 56px;
    --space-lg: 36px;
    --space-md: 20px;
  }

  body {
    font-size: 16px;
  }

  /* Désactiver justify sur mobile — évite les trous dans les lignes */
  .accroche-text,
  .univers-slide-text,
  .gameplay-panel p,
  .studio-text p {
    text-align: left;
    hyphens: none;
  }

  /* NAVBAR */
  .navbar-inner {
    height: 72px;
  }

  .navbar-left {
    display: none;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-right {
    display: none;
  }

  .navbar-burger {
    margin-left: auto;
  }

  /* HERO */
  .hero {
    min-height: 85vh;
  }

  .hero-logo-img {
    width: 75vw;
    max-width: 340px;
  }

  /* TITRES */
  .section-title {
    font-size: 1.7rem;
  }

  /* ACCROCHE */
  .accroche-text {
    font-size: 0.95rem;
  }

  /* UNIVERS carousel */
  .univers-slide-img {
    aspect-ratio: 4 / 3;
  }

  .univers-slide-overlay {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .univers-slide-title {
    font-size: 1.3rem;
  }

  .univers-slide-text {
    font-size: 0.9rem;
  }

  /* GAMEPLAY */
  .gameplay-grid {
    grid-template-columns: 1fr;
  }

  .gameplay-item:nth-child(3) {
    grid-column: unset;
  }

  /* GALERIE */
  .galerie-grid {
    grid-template-columns: 1fr;
  }

  /* ÉQUIPE */
  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-sm);
  }

  .avatar-circle,
  .avatar-img {
    width: 80px;
    height: 80px;
  }

  .membre-nom {
    font-size: 0.85rem;
  }

  .membre-role {
    font-size: 0.75rem;
  }

  /* FORMULAIRE */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-inner {
    grid-template-columns: 1fr;
    padding-inline: var(--space-md);
    gap: var(--space-md);
    text-align: center;
  }

  .footer-col--left,
  .footer-col--right {
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .footer-studio-logo {
    height: 100px;
  }

  .footer-socials {
    justify-content: center;
  }

}

/* ================================
   MOBILE LANG SWITCHER (dans menu burger)
================================ */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================
   BURGER BUTTON
================================ */
.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.navbar-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.navbar-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   MENU MOBILE
================================ */
.navbar-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--color-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar-mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.navbar-mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.navbar-mobile-menu nav ul li a {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}

.navbar-mobile-menu nav ul li a:hover {
  color: var(--color-accent);
}

.navbar-mobile-menu nav ul li a.btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

@media (max-width: 640px) {
  .navbar-burger {
    display: flex;
  }

  .navbar-mobile-menu {
    display: flex;
  }

}

/* ================================
   REVEAL — animations au scroll
================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger sur les cartes gameplay */
.gameplay-item.reveal:not(.is-visible):nth-child(2) { transition-delay: 0.1s; }
.gameplay-item.reveal:not(.is-visible):nth-child(3) { transition-delay: 0.2s; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================
   NAV — lien actif au scroll
================================ */
.navbar-nav a {
  transition: color 0.2s;
}
.navbar-nav a.is-active {
  color: var(--color-accent);
}

/* ================================
   FORMULAIRE — validation
================================ */
.form-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-cta);
  margin-top: 5px;
  min-height: 1.1em;
}
.form-group input.has-error,
.form-group textarea.has-error {
  border-color: var(--color-cta) !important;
}

/* ================================
   BARRE DE PROGRESSION DU SCROLL
================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ================================
   BOUTON RETOUR EN HAUT
================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, color 0.2s;
  z-index: 400;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ================================
   SÉPARATEURS DE SECTIONS
================================ */
section.section + section.section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border) 25%, var(--color-border) 75%, transparent);
  margin-bottom: var(--space-xl);
}

/* ================================
   ÉQUIPE — hover sur les membres
================================ */
.equipe-membre {
  transition: transform 0.3s ease;
  cursor: default;
}
.equipe-membre:hover {
  transform: translateY(-6px);
}
.avatar-circle,
.avatar-img {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.equipe-membre:hover .avatar-circle,
.equipe-membre:hover .avatar-img {
  border-color: var(--color-accent);
  box-shadow:
    0 0 12px rgba(29, 158, 117, 0.5),
    0 0 32px rgba(29, 158, 117, 0.25),
    0 0 60px rgba(29, 158, 117, 0.1);
}
.equipe-membre:hover .membre-nom {
  color: var(--color-accent);
}

/* ================================
   STUDIO — compteur animé
================================ */
.studio-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.studio-stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.studio-stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ================================
   PAGE LOADER
================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  pointer-events: all;
}
#page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-symbol {
  animation: loader-pulse 1.8s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%       { opacity: 0.85; transform: scale(1.08); }
}

/* ================================
   INTRO — ÉCRAN D'ENTRÉE
================================ */
#site-intro {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9998;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.8s ease;
}
#site-intro.is-active {
  display: flex;
}
#site-intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.intro-lines {
  max-width: 560px;
  text-align: center;
}
.intro-line {
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 2;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s ease;
}
.intro-line.is-visible {
  opacity: 1;
  transform: none;
}
.intro-skip {
  position: absolute;
  bottom: 2.2rem;
  right: 2.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.intro-skip:hover {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ================================
   TERMINAL EASTER EGG
================================ */
#terminal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#terminal-overlay.is-open {
  display: flex;
}
.terminal-window {
  background: #050a05;
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  width: 100%;
  max-width: 620px;
  height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 40px rgba(29, 158, 117, 0.18),
    0 0 80px rgba(29, 158, 117, 0.06);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84rem;
}
.terminal-titlebar {
  background: #0a100a;
  border-bottom: 1px solid rgba(29, 158, 117, 0.4);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.terminal-titlebar-text {
  color: var(--color-accent);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.terminal-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.55;
  line-height: 1;
  transition: opacity 0.2s;
  padding: 0;
}
.terminal-close:hover { opacity: 1; }
.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  color: var(--color-accent);
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 158, 117, 0.3) transparent;
}
.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(29, 158, 117, 0.2);
  flex-shrink: 0;
}
.terminal-prompt-char {
  color: var(--color-accent);
  margin-right: 0.5rem;
  flex-shrink: 0;
  opacity: 0.65;
}
.terminal-input {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84rem;
  flex: 1;
  outline: none;
  caret-color: var(--color-accent);
}

/* ================================
   CODEX DE LORE
================================ */
.codex-glyph-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-md);
}
.codex-glyph {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-accent);
  opacity: 0.18;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.codex-glyph:hover,
.codex-glyph:focus-visible {
  opacity: 0.75;
  transform: scale(1.2);
}
.codex-glyph.is-discovered {
  opacity: 0.5;
}
#codex-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(5px);
}
#codex-overlay.is-open {
  display: flex;
}
.codex-card {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2.8rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(29, 158, 117, 0.12);
}
.codex-card-label {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.codex-card-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--color-text-muted);
  font-style: italic;
}
.codex-card-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s;
  line-height: 1;
}
.codex-card-close:hover { opacity: 1; }
.codex-card-counter {
  margin-top: 1.8rem;
  font-family: var(--font-title);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.38;
}
