:root {
  --site-font: 'Doto', sans-serif;
  --site-font-weight: 600;
  /* gras moyen par défaut */
  --ui-font-size: 16px;
  --margin-top: 75px;
  --margin-left: 75px;
}

/* === Tarteaucitron Custom Font === */
#tarteaucitronRoot * {
  font-family: 'Lato', sans-serif !important;
}

/* === TarteaucitronButton reposition === */
#tarteaucitronIcon {
  position: fixed !important;
  bottom: 40px !important;
  /* distance depuis le bas */
  right: 20px !important;
  /* distance depuis la droite */
  margin: 0 !important;
  z-index: 9999 !important;
}

/* === Styles déplacés depuis l'attribut style de index.html === */
#lang-buttons {
  position: fixed;
  top: 20px;
  right: 30px;
  font-family: inherit;
  z-index: 1000;
}

/* Style pour les boutons de langue (FR/EN) */
#lang-buttons button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page {
  display: none;
  /* Caché par défaut, géré par JS */
}

#page-home {
  display: block;
  /* La page d'accueil est visible par défaut */
}

/* === WEBSITE DESKTOP === */
body {
  position: relative;
  height: 100vh;
  background: #0e0e0e;
  color: white;
  font-family: var(--site-font);
  font-weight: 400;
  margin: 0;
  overflow: hidden;
}

/* === PARTICLES BACKGROUND === */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* pour que les clics passent au travers */
  z-index: -1;
}

#particles-js canvas {
  display: block;
  background: transparent;
}

/* === CONTENEUR PRINCIPAL POUR LAYOUT === */
.main-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  box-sizing: border-box;
}

/* === PARTIE GAUCHE (CERCLE) === */
.left-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(0px);
  animation:
    moveToLeftCenter 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards,
    blurEffect 1s ease-out 0.5s forwards;
}

@keyframes moveToLeftCenter {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  100% {
    top: 50%;
    left: var(--margin-left);
    transform: translate(0, -50%);
  }
}

@keyframes blurEffect {
  0% {
    filter: blur(0px);
  }

  50% {
    filter: blur(1px);
  }

  100% {
    filter: blur(0px);
  }
}

/* === DIVIDER (LIGNE VERTICALE) === */
.divider {
  position: absolute;
  top: 0;
  left: 25%;
  width: 2px;
  height: 0;
  background: white;
  z-index: 0;
  animation: drawLine 1s ease-in-out 1.5s forwards;
}

@keyframes drawLine {
  to {
    height: 100%;
  }
}

/* === PARTIE DROITE (CONTENU TEXTE) === */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 72%;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  box-sizing: border-box;
}

.right-panel.fade-transition {
  transition: opacity 0.3s ease-out;
}

/* Optionnel : custom scrollbar */
.right-panel::-webkit-scrollbar {
  width: 8px;
}

.right-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

@keyframes fadeInContent {
  to {
    opacity: 1;
  }
}

/* === PARTIE DROITE (CONTENU IMAGES) === */
.top-panel {
  margin-left: 25%;
  margin-top: 5%;
  padding: 20px;
  opacity: 0;
  position: absolute;
  width: 1024px;
  height: 1024px;
  animation: fadeInContent 1s ease-in 2.5s forwards;
  max-width: 60%;
}

/* === CONTENEUR DU GRAND CERCLE === */
.big-circle {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0px rgba(255, 255, 255, 0);
}

/* === SVG DU CERCLE === */
.big-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.big-circle-svg circle {
  stroke: white;
  stroke-width: 3;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* === TEXTE NAVIGATION === */
#navigation_hint {
  opacity: 0;
  text-align: center;
  color: #bbbbbb;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  margin-top: 15px;
  font-size: 1rem;
  letter-spacing: normal;
  transition: opacity 0.6s ease, letter-spacing 0.6s ease;
}

#navigation_hint.show {
  opacity: 1;
  letter-spacing: 0.5rem;
}

/* === LOGO AU CENTRE === */
.logo-center {
  width: 165px;
  opacity: 0;
  transform: scale(0.5);
  animation: fadeInScale 1s forwards, pulse 2s 1.5s infinite ease-in-out;
  z-index: 2;
  cursor: pointer;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* === PETITS CERCLES === */
.small-circle {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid white;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  /* centre l'icône de base */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
  z-index: 3;
  padding: 0;
  /* pas de padding par défaut */
  max-width: 60px;
  /* pour l'animation fluide */
  white-space: nowrap;
  /* empêche le texte de passer à la ligne */
}

.c1 {
  transform: rotate(-90deg) translate(150px) rotate(90deg);
}

.c2 {
  transform: rotate(-210deg) translate(150px) rotate(210deg);
}

.c3 {
  transform: rotate(-330deg) translate(150px) rotate(330deg);
}

.small-circle:hover {
  width: auto;
  /* s'adapte au contenu */
  max-width: 300px;
  /* largeur max pour l'animation */
  height: 50px;
  border-radius: 5px;
  justify-content: flex-start;
  /* texte à droite de l'icône */
  padding-left: 12px;
  /* espace pour l'icône */
  padding-right: 15px;
  /* espace à droite du texte */
  gap: 10px;
  /* espace entre l'icône et le texte */
  border-color: #ffffffa6;
  /* couleur accent */
  box-shadow: 0 0 15px #ffffffa6, 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Simulation du hover par JavaScript */
.small-circle.auto-hover {
  width: auto;
  max-width: 300px;
  height: 50px;
  border-radius: 5px;
  justify-content: flex-start;
  padding-left: 12px;
  padding-right: 15px;
  gap: 10px;
}

.small-circle.auto-hover .default-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.small-circle.auto-hover .hover-icon {
  opacity: 1;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  filter: blur(2px);
  animation: removeBlur 0.6s forwards;
}

.small-circle.auto-hover .text-wrapper {
  display: flex;
}

.small-circle.auto-hover .circle-text {
  opacity: 1;
}

/* Icônes */
.icon-wrapper {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin: 0;
  /* s'assurer qu'il n'y a pas de marge */
}

.default-icon,
.hover-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.default-icon {
  opacity: 1;
}

.hover-icon {
  opacity: 0;
}

/* Cercle hover → cacher icône par défaut */
.small-circle:hover .default-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Cercle hover → afficher icône rectangle */
.small-circle:hover .hover-icon {
  opacity: 1;
  left: 50%;
  /* reste centrée dans son wrapper */
  transform: translate(-50%, -50%) scale(1.05);
  filter: blur(2px);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.3s ease;
}

.small-circle:hover .hover-icon {
  animation: removeBlur 0.6s forwards;
}

@keyframes removeBlur {
  0% {
    filter: blur(2px);
  }

  100% {
    filter: blur(0);
  }
}

.text-wrapper {
  flex: 1;
  display: none;
  /* caché par défaut */
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  padding-left: 0;
  /* supprimé pour utiliser gap du parent */
}

.small-circle:hover .text-wrapper {
  display: flex;
  /* apparaît au hover */
}

.circle-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: white;
  font-family: "Doto", sans-serif;
  font-weight: 600;
  font-size: var(--ui-font-size);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.small-circle:hover .circle-text {
  opacity: 1;
}

#lang-buttons span:hover {
  cursor: pointer;
  pointer-events: all;
  color: #06ca20;
}

.Text-lisibility {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #bbbbbb;
}

.Text-lisibility strong,
.Text-lisibility .bold {
  font-family: 'Roboto', sans-serif !important;
  /* assure que Roboto s'applique */
  font-weight: bold !important;
  /* force le gras */
}

.bold {
  font-weight: bold !important;
  /* Bold */
}

/* === PAGE 404 === */
body.page-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #1d1d1d;
  color: #fff;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.title-404 {
  font-family: 'Doto', sans-serif;
  font-weight: 900;
  /* ou le poids que tu préfères */
  font-size: 6rem;
  /* ajuste selon la taille souhaitée */
  color: #ffffff;
  /* ou la couleur de ton site */
  margin-bottom: 1rem;
}

/* Lien Retour à l'accueil sur fond noir */
main a {
  color: #ffffff;
  /* Couleur normale */
  text-decoration: none;
  /* Ou none si tu préfères */
}

/* Forcer la couleur même après clic */
main a:visited,
main a:hover,
main a:active,
main a:focus {
  color: #ffffff;
}

/* === GRID DES VIGNETTES === */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
}

.project-thumb {
  cursor: pointer;
  text-align: center;
  width: var(--project-thumb-size, 150px);
  /* taille personnalisable */
  transition: transform 0.3s;
  margin-left: 30px;
  margin-bottom: 10px;
  margin-right: 20px;
}

.project-thumb:hover {
  transform: scale(1.15);
}

.project-thumb img {
  width: 100%;
  border-radius: 8px;
}

/* === PAGE SERIOUS GAME === */
#page-seriousgames {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-40%);
  padding-left: 0;
  text-align: left;
  overflow: hidden !important;
}

/* === LIGHTBOX === */
#project-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  /* toujours flex */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  /* bloqué tant qu'inactif */
  transition: opacity 0.25s ease;
}

#project-lightbox.active {
  opacity: 1;
  pointer-events: auto;
  /* activé quand ouvert */
}

#project-lightbox .lb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1;
  /* inutile de mettre pointer-events:auto, il hérite de .active */
}

#project-lightbox .lb-content {
  position: relative;
  background: #111;
  padding: 30px;
  /* plus d'air à l’intérieur */
  border-radius: 14px;
  max-width: 950px;
  /* lightbox un peu plus large */
  width: 90%;
  color: white;
  z-index: 2;

  /* Animation d’apparition */
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#project-lightbox.active .lb-content {
  transform: scale(1);
  opacity: 1;
}

#lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
}

/* Quand on ferme, on joue l’anim inverse */
#project-lightbox.closing .lb-content {
  transform: scale(0.9);
  opacity: 0;
}

.lb-images {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.lb-images img {
  max-width: 150px;
  /* ou la taille que tu veux pour les miniatures */
  max-height: 100px;
  margin: 0 10px;
  border-radius: 6px;
  display: block;
  transition: opacity 0.2s ease;
  opacity: 1;
}

/* Image principale */
#lb-main-image {
  max-width: 60vw;
  max-height: 40vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  transition: opacity 0.2s ease;
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  /* ombre portée */
  position: relative;
  /* pour positionner les flèches par rapport à elle */
}

/* Flèches sur les côtés */
#lb-prev,
#lb-next {
  position: absolute;
  top: 65%;
  transform: translateY(-65%);
  background: rgba(0, 0, 0, 0);
  border: none;
  color: white;
  font-size: 36px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  pointer-events: auto;
}

#lb-prev {
  left: 5px;
  /* côté gauche */
}

#lb-next {
  right: 5px;
  /* côté droit */
}

#lb-prev:hover,
#lb-next:hover {
  background: rgba(0, 0, 0, 0);
}

.lb-images button {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

/* Description des projets dans la lightbox */
#lb-desc {
  font-family: 'Lato', sans-serif;
  /* changer la police */
  font-size: 15px;
  /* ajuster la taille */
  line-height: 1.5;
  /* améliorer la lisibilité */
  color: #ddd;
  /* couleur si besoin */
}

/* === BANNER SERIOUS GAMES (DANS RIGHT PANEL) === */
.sg-banner {
  width: 100%;
  /* occupe toute la largeur de la page */
  display: flex;
  /* pour centrer le contenu facilement */
  justify-content: left;
  margin-bottom: 20px;
  /* espace sous la bannière */
}

.sg-banner img {
  width: 50%;
  /* largeur maximale = conteneur */
  max-width: 1024px;
  /* limite la largeur si écran large */
  height: auto;
  /* garde les proportions */
  border-radius: 10px;
  /* optionnel, arrondir les coins */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* optionnel, ombre */
}

/* === PAGE TEAM === */
#page-team {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-40%);
  padding-left: 0;
  text-align: left;
  overflow: hidden !important;
}

#page-team h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: left;
}

#page-team p {
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  max-width: 800px;
  color: #bbbbbb;
}

#team_descr {
  margin: 0 0 30px 0;
  /* top right bottom left */
  text-align: left;
  max-width: 800px;
  /* tu peux garder la largeur max si tu veux */
}

/* === MEMBRES === */
.team-members {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.team-members .member {
  flex: 1 1 200px;
  max-width: 250px;
  text-align: center;
}

.team-members .member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.team-members .member img:hover {
  transform: scale(1.15);
}

.team-members .member h3 {
  font-size: 1.1rem;
  margin: 5px 0 0 0;
  color: #fff;
}

.team-members .member p {
  font-size: 0.95rem;
  color: #ccc;
  margin: 2px 0 0 0;
}

/* === COOP'ALPHA === */
.coop-container {
  display: flex;
  align-items: left center;
  justify-content: left center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  /* pour que ça passe en colonne sur mobile */
  text-align: left center;
  /* texte aligné à gauche */
  text-align: justify;
  margin-left: 30px;
}

.coop-container img {
  width: 120px;
  /* logo plus petit */
  height: auto;
  flex-shrink: 0;
  /* ne pas réduire le logo */
  align-items: left center;
  justify-content: left center;
  transition: transform 0.3s;
}

.coop-container img:hover {
  transform: scale(1.15);
}

.coop-container p {
  max-width: 300px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #bbbbbb;
  line-height: 1.5;
  margin: 0;
  /* pas d’espace supplémentaire autour du texte */
  display: flex;
  align-items: center;
}

/* === PARTENAIRES === */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: left;
  gap: 25px;
  margin-top: 30px;
  margin-left: 30px;
  margin-bottom: 10px;
}

.partners-logos a img,
.partners-logos img.partner-logo {
  /* tous les logos, même sans lien */
  width: 120px;
  /* même largeur pour tous */
  height: auto;
  transition: transform 0.3s, filter 0.3s;
}

.partners-logos a img:hover,
.partners-logos img.partner-logo:hover {
  transform: scale(1.15);
}

/* Ligne de base */
.section-separator {
  height: 2px;
  width: calc(100% - 30px);
  max-width: 100vh;
  margin-top: -20px;
  margin-bottom: 20px;
  margin-left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 85%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  overflow: hidden;
}

/* Point avec traînée */
.section-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  /* départ légèrement hors écran */
  transform: translateY(-50%);
  width: 8px;
  /* taille du point */
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 1;
  /* Traînée : ajustable avec shadowLength */
  box-shadow: -10px 0 8px rgba(255, 255, 255, 0.2), -20px 0 16px rgba(255, 255, 255, 0.1);
  animation: movePointTrail 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes movePointTrail {
  0% {
    left: -10px;
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
    /* disparaît progressivement */
  }
}

/* === PARTICLES BACKGROUND === */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

#particles-js canvas {
  display: block;
  background: transparent;
}

/* FIX pour s'assurer que les particules restent visibles */
html {
  overflow-x: hidden;
  /* évite le scroll horizontal */
}

@media (max-width: 900px) {
  .team-members {
    gap: 30px;
  }

  .team-members .member img {
    width: 130px;
    height: 130px;
  }

  .coop-container img {
    width: 100px;
  }

  .partners-logos a img,
  .partners-logos img.partner-logo {
    width: 100px;
  }
}

@media (max-width: 600px) {
  #page-team h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .team-members {
    flex-direction: column;
    gap: 25px;
  }

  .coop-container p {
    font-size: 0.95rem;
  }

  .partners-logos a img,
  .partners-logos img.partner-logo {
    width: 80px;
  }
}

/* ===== HOME ===== */
#page-home {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-40%);
  display: flex;
  flex-direction: column;
  align-items: left center;
  justify-content: left center;
  /* centre verticalement */
  gap: 2rem;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden !important;
}

.right-panel:has(#page-home) {
  display: flex;
  justify-content: left center;
  align-items: left center;
}

/* Titres */
#home_title {
  font-size: 3rem;
  font-weight: bold;
}

#home_intro {
  font-size: 1.25rem;
  color: #aaa;
  margin-top: -2%;
}

#home_mailinfo {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #bbbbbb;
}

.project-banner {
  position: absolute;
  width: 100%;
  max-width: 800px;
  margin: 2rem;
  margin-left: 0;
  overflow: hidden;
  cursor: pointer;

  opacity: 0;
  /* corrigé -> invisible par défaut */
  transform: translateX(-30px);
  animation: reveal-bg 1s ease forwards;
}

.project-banner .banner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent, #ffffff), transparent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.project-banner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.banner-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banner-line.top {
  top: 0;
}

.banner-line.bottom {
  bottom: 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 3rem;
  min-height: 100px;
  /*background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.02) 5%,
      rgba(255, 255, 255, 0.01) 70%,
      rgba(255, 255, 255, 0) 100%
    ); */
  border-left: 2px solid var(--accent, #ffffff00);
  border-radius: 12px;

  opacity: 0;

  position: relative;
  z-index: 1;
  /* contenu au-dessus */
}

/* image ronde */
.banner-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* texte */
.banner-text h2 {
  font-size: 1.5rem;
  margin: 0;
}

.banner-text p {
  font-size: 1rem;
  margin: 0.2rem 0 0;
  color: #ccc;
}

@keyframes draw-line {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes reveal-bg {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-content {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Timing précis */
#banner-illtower .banner-line {
  animation: draw-line 1s ease forwards;
}

#banner-illtower .banner-inner {
  animation: fade-in-content 0.8s ease forwards;
  animation-delay: 1s;
  /* après les lignes */
}

#banner-serious .banner-line {
  animation: draw-line 1s ease forwards;
  animation-delay: 0.5s;
  /* commence un peu plus tard */
}

#banner-serious .banner-inner {
  animation: fade-in-content 0.8s ease forwards;
  animation-delay: 1.5s;
  /* après ses lignes */
}

/* === Ill Tower Page === */
#page-illtower {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 0 80px 0;
  color: white;
  font-family: "Doto", sans-serif;
  padding-bottom: 80px;
  box-sizing: border-box;
  margin-right: 100px;
}

/* HEADER */
.illtower-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.illtower-logo {
  max-width: 250px;
  height: auto;
}

.presskit-btn {
  padding: 12px 24px;
  background: #e63946;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.presskit-btn:hover {
  background: #b92d37;
}

/* INTRO */
.illtower-subtitle {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  text-align: left;
}

.illtower-intro {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 50px;
  font-family: 'Lato', sans-serif;
  color: #bbbbbb;
  font-weight: 300;
}

/* SECTIONS ALTERNÉES */
.illtower-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 5px;
}

.illtower-section.reverse {
  flex-direction: row-reverse;
}

.illtower-text {
  flex: 1;
}

.illtower-text h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.illtower-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #bbbbbb;
}

.illtower-video {
  flex: 1;
  display: flex;
  justify-content: center;
}

.illtower-video video {
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* FOOTER */
.illtower-footer {
  text-align: center;
  margin-top: 60px;
}

.illtower-footer p {
  margin: 20px 0 10px;
}

.steam-logo {
  max-width: 200px;
  margin: 10px auto 30px;
  display: block;
}

.region-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: #bbbbbb;
}

.region-logo {
  max-width: 150px;
  margin: 30px auto 30px;
  display: block;
}

/* RÉSEAUX SOCIAUX */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 70px;
}

.social-links a img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-links a img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* === Responsive === */
@media (max-width: 900px) {
  .illtower-section {
    flex-direction: column;
    text-align: center;
  }

  .illtower-section.reverse {
    flex-direction: column;
  }
}

/* === Pages Mentions et Cookies === */
#dynamic-pages {
  display: none;
  /* CACHÉ par défaut */
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
  box-sizing: border-box;
  margin-left: -210px;
}

#dynamic-pages.active {
  display: block;
  /* VISIBLE uniquement quand actif */
}

#dynamic-pages .page {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.text-lato {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.lang-switcher button {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Doto', sans-serif;
  transition: all 0.3s;
}

.lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mentions-fr,
.mentions-en {
  transition: opacity 0.3s ease;
}

/* === FOOTER === */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  /* discret, semi-transparent */
  color: #bbb;
  backdrop-filter: blur(4px);
  /* optionnel, pour un effet plus moderne */
  z-index: 1000;
}

#site-footer p {
  margin: 0;
  font-size: 14px;
}

#site-footer nav {
  display: flex;
  gap: 0;
}

#site-footer nav a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  margin-right: 50px;
  transition: color 0.3s ease;
}

#site-footer nav a:hover {
  color: #fff;
}

/* Focus visible pour accessibilité (déplacé depuis main.js) */
.small-circle:focus,
#logoCenter:focus {
  outline: 3px solid #ffffffff;
  outline-offset: 4px;
}

/* ========================================
   RESPONSIVE - GRAND CERCLE
======================================== */

/* Large écrans (1025px - 1280px) */
/*@media (max-width: 1280px) {
  :root {
    --margin-left: 60px;
  }

  .big-circle {
    width: 300px;
    height: 300px;
  }

  .logo-center {
    width: 150px;
  }

  .small-circle {
    width: 55px;
    height: 55px;
  }

  .c1 {
    transform: rotate(-90deg) translate(135px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(135px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(135px) rotate(330deg);
  }

  .divider {
    left: 23%;
  }

  .right-panel {
    width: 74%;
  }
}*/

/* Tablette (769px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --margin-top: 50px;
    --margin-left: 45px;
  }

  /* === LEFT PANEL (CERCLE) === */
  .left-panel {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto;
    filter: blur(0px);
    animation: moveToTopCenter 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  }

  @keyframes moveToTopCenter {
    0% {
      transform: translateY(0);
      opacity: 1;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .divider {
    left: 20%;
  }

  .right-panel {
    width: 77%;
  }

  .big-circle {
    width: 260px;
    height: 260px;
  }

  .logo-center {
    width: 130px;
  }

  .small-circle {
    width: 52px;
    height: 52px;
  }

  .c1 {
    transform: rotate(-90deg) translate(117px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(117px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(117px) rotate(330deg);
  }

  .icon-wrapper {
    width: 26px;
    height: 26px;
  }

  .default-icon,
  .hover-icon {
    width: 26px;
    height: 26px;
  }

  .circle-text {
    font-size: 15px;
  }

  .small-circle:hover,
  .small-circle.auto-hover {
    max-width: 220px;
    height: 47px;
  }
}

/* Tablette étroite (769px - 900px) */
/*@media (max-width: 900px) {
  :root {
    --margin-left: 40px;
  }

  .left-panel {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto;
    filter: blur(0px);
    animation: moveToTopCenter 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  }

  @keyframes moveToTopCenter {
    0% {
      transform: translateY(0);
      opacity: 1;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .big-circle {
    width: 240px;
    height: 240px;
  }

  .logo-center {
    width: 120px;
  }

  .small-circle {
    width: 48px;
    height: 48px;
  }

  .c1 {
    transform: rotate(-90deg) translate(108px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(108px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(108px) rotate(330deg);
  }

  .icon-wrapper {
    width: 24px;
    height: 24px;
  }

  .default-icon,
  .hover-icon {
    width: 24px;
    height: 24px;
  }

  .divider {
    left: 22%;
  }

  .right-panel {
    width: 76%;
  }
}*/

/* ========================================
   RESPONSIVE - MOBILE & TABLET
======================================== */

/* Tablette (768px - 1024px) */
/*@media (max-width: 1024px) {
  :root {
    --margin-top: 50px;
    --margin-left: 50px;
  }

  .divider {
    left: 20%;
  }

  .right-panel {
    width: 75%;
  }
}*/

/* Menu vertical (900px - 1628px) */
@media (max-width: 1628px) and (min-width: 900px) {
  :root {
    --margin-left: 30px;
  }

  /* === LEFT PANEL (MENU VERTICAL) === */
  .left-panel {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    margin: 0;
    filter: blur(0px);
    animation: none;
  }

  /* === GRAND CERCLE DEVIENT CONTENEUR VERTICAL === */
  .big-circle {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: none;
  }

  /* Le SVG du cercle disparaît */
  .big-circle-svg {
    display: none;
  }

  /* Logo en haut */
  .logo-center {
    position: relative;
    width: 120px;
    margin-bottom: 10px;
  }

  /* Petits cercles en colonne */
  .small-circle {
    position: relative !important;
    transform: none !important;
    width: 55px;
    height: 55px;
  }

  .c1,
  .c2,
  .c3 {
    transform: none !important;
  }

  .icon-wrapper {
    width: 26px;
    height: 26px;
  }

  .default-icon,
  .hover-icon {
    width: 26px;
    height: 26px;
  }

  .circle-text {
    font-size: 15px;
  }

  .small-circle:hover,
  .small-circle.auto-hover {
    max-width: 200px;
    height: 50px;
  }

  /* Texte navigation */
  #navigation_hint {
    margin-top: 15px;
    font-size: 0.9rem;
  }

  /* === DIVIDER === */
  .divider {
    left: 180px;
  }

  /* === RIGHT PANEL === */
  .right-panel {
    width: calc(100% - 200px);
    left: 200px;
  }
}

/* Tablette (769px - 899px) */
@media (max-width: 899px) and (min-width: 769px) {
  :root {
    --margin-top: 50px;
    --margin-left: 45px;
  }

  /* === LEFT PANEL (CERCLE) === */
  .left-panel {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto;
    filter: blur(0px);
    animation: moveToTopCenter 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  }

  @keyframes moveToTopCenter {
    0% {
      transform: translateY(0);
      opacity: 1;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .divider {
    left: 20%;
  }

  .right-panel {
    width: 77%;
  }

  .big-circle {
    width: 260px;
    height: 260px;
  }

  .logo-center {
    width: 130px;
  }

  .small-circle {
    width: 52px;
    height: 52px;
  }

  .c1 {
    transform: rotate(-90deg) translate(117px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(117px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(117px) rotate(330deg);
  }

  .icon-wrapper {
    width: 26px;
    height: 26px;
  }

  .default-icon,
  .hover-icon {
    width: 26px;
    height: 26px;
  }

  .circle-text {
    font-size: 15px;
  }

  .small-circle:hover,
  .small-circle.auto-hover {
    max-width: 220px;
    height: 47px;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  :root {
    --ui-font-size: 14px;
    --margin-top: 60px;
    --margin-left: 50%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* === CONTENEUR PRINCIPAL === */
  .main-container {
    flex-direction: column;
    padding: 10px;
    height: auto;
    min-height: 100vh;
  }

  /* === BOUTONS LANGUE === */
  #lang-buttons {
    position: fixed;
    top: 10px;
    right: 15px;
    font-size: 14px;
    z-index: 2000;
    font-family: inherit;
  }

  #lang-buttons button {
    all: unset;
    background: none !important;
    border: none !important;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
  }

  #lang-buttons button:hover,
  #lang-buttons button:focus {
    color: #06ca20;
    outline: none;
  }

  #lang-buttons button:focus-visible {
    outline: 2px solid #06ca20;
    outline-offset: 2px;
  }

  #lang-buttons button[aria-pressed="true"] {
    font-weight: bold;
  }

  /* === LEFT PANEL (CERCLE) === */
  .left-panel {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto;
    filter: blur(0px);
    animation: moveToTopCenter 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  }

  @keyframes moveToTopCenter {
    0% {
      transform: translateY(0);
      opacity: 1;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* === CERCLE === */
  .big-circle {
    width: 280px;
    height: 280px;
  }

  .logo-center {
    width: 140px;
  }

  /* Petits cercles - adaptation */
  .small-circle {
    width: 50px;
    height: 50px;
  }

  .c1 {
    transform: rotate(-90deg) translate(125px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(125px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(125px) rotate(330deg);
  }

  .small-circle:hover,
  .small-circle.auto-hover {
    max-width: 200px;
    height: 45px;
    padding-left: 10px;
    padding-right: 12px;
    gap: 8px;
  }

  .icon-wrapper {
    width: 24px;
    height: 24px;
  }

  .default-icon,
  .hover-icon {
    width: 24px;
    height: 24px;
  }

  .circle-text {
    font-size: 14px;
  }

  /* === TEXTE NAVIGATION === */
  #navigation_hint {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  /* === DIVIDER === */
  .divider {
    display: none;
  }

  /* === RIGHT PANEL === */
  .right-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 15px;
    margin-top: 20px;
    opacity: 1;
    overflow-y: visible;
  }

  /* === PAGES === */
  .page {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #page-home,
  #page-seriousgames,
  #page-team {
    position: relative !important;
    transform: none !important;
  }

  /* === HOME === */
  #page-home {
    margin-bottom: 60px;
  }

  #home_title {
    font-size: 2rem;
    text-align: center;
  }

  #home_intro {
    font-size: 1rem;
    text-align: center;
  }

  #home_mailinfo {
    font-size: 14px;
    text-align: center;
  }

  .project-banner {
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }

  .banner-icon img {
    width: 60px;
    height: 60px;
  }

  .banner-text h2 {
    font-size: 1.2rem;
  }

  .banner-text p {
    font-size: 0.9rem;
  }

  /* === ILL TOWER === */
  #page-illtower {
    padding: 20px 0 100px 0;
    margin-right: 0;
  }

  .illtower-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .illtower-logo {
    max-width: 180px;
  }

  .presskit-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .illtower-subtitle {
    font-size: 1.2rem;
  }

  .illtower-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .illtower-section {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .illtower-section.reverse {
    flex-direction: column;
  }

  .illtower-text h3 {
    font-size: 1.1rem;
    text-align: left;
  }

  .illtower-text p {
    font-size: 0.95rem;
    text-align: left;
  }

  .illtower-video video {
    width: 100%;
    max-width: 100%;
  }

  .steam-logo {
    max-width: 150px;
  }

  .region-logo {
    max-width: 120px;
  }

  .social-links {
    gap: 15px;
    padding-bottom: 50px;
    margin-bottom: 20px;
  }

  .social-links a img {
    width: 35px;
    height: 35px;
  }

  /* === SERIOUS GAMES === */
  .sg-banner img {
    width: 100%;
    max-width: 100%;
  }

  #page-seriousgames h1 {
    font-size: 1.3rem;
    text-align: center;
  }

  #page-seriousgames h3 {
    font-size: 1.1rem;
  }

  .projects-grid {
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .project-thumb {
    width: 120px;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.75rem;
  }

  /* === TEAM === */
  #page-team h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  #page-team p,
  #team_descr {
    font-size: 15px;
    text-align: center;
  }

  .team-members {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .team-members .member {
    max-width: 100%;
  }

  .coop-container {
    flex-direction: column;
    text-align: center;
    margin-left: 0;
  }

  .coop-container img {
    width: 100px;
  }

  .coop-container p {
    max-width: 100%;
    text-align: center;
  }

  .partners-logos {
    justify-content: center;
    margin-left: 0;
    margin-bottom: 70px;
  }

  .partners-logos a img,
  .partners-logos img.partner-logo {
    width: 90px;
  }

  .section-separator {
    width: 100%;
  }

  /* === LIGHTBOX === */
  #lb-main-image {
    max-width: 90vw;
    max-height: 50vh;
  }

  #lb-prev,
  #lb-next {
    font-size: 28px;
    padding: 8px 12px;
  }

  .lb-content {
    padding: 20px;
    max-width: 95%;
  }

  #lb-title {
    font-size: 1.2rem;
  }

  #lb-desc {
    font-size: 14px;
  }

  /* === PAGES DYNAMIQUES === */
  #dynamic-pages {
    margin-left: 0;
  }

  #dynamic-pages .page {
    width: 100%;
    padding-bottom: 100px;
  }

  /* === FOOTER === */
  #site-footer {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 5px;
    text-align: center;
  }

  #site-footer nav {
    flex-direction: column;
    gap: 5px;
  }

  #site-footer nav a {
    margin-right: 0;
    font-size: 13px;
  }

  #site-footer p {
    font-size: 13px;
  }

  /* === TEXTE === */
  .Text-lisibility {
    font-size: 15px;
  }
}

/* Très petits écrans (max 480px) */
@media (max-width: 480px) {
  .big-circle {
    width: 240px;
    height: 240px;
  }

  .logo-center {
    width: 120px;
  }

  .c1 {
    transform: rotate(-90deg) translate(105px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(105px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(105px) rotate(330deg);
  }

  .small-circle {
    width: 45px;
    height: 45px;
  }

  #home_title {
    font-size: 1.7rem;
  }

  .illtower-logo {
    max-width: 150px;
  }

  .project-thumb {
    width: 100px;
  }
}

/* Mode PAYSAGE mobile (largeur > hauteur) */
@media (max-width: 932px) and (max-height: 430px) {

  /* === LEFT PANEL === */
  .left-panel {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    margin: 0;
    animation: none;
    /* désactive l'animation portrait */
  }

  /* === DIVIDER === */
  .divider {
    display: block;
    left: 27%;
  }

  /* === RIGHT PANEL === */
  .right-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    /* IMPORTANT : hauteur complète */
    padding: 15px;
    margin-top: 0;
    opacity: 1;
    overflow-y: auto;
    /* scroll actif */
    overflow-x: hidden;
  }

  /* === PAGES === */
  .page {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding: 20px 0 !important;
    overflow: visible !important;
  }

  #page-home,
  #page-seriousgames,
  #page-team,
  #page-illtower {
    position: relative !important;
    transform: none !important;
    overflow: visible !important;
    /* retire le overflow hidden */
    min-height: 100vh;
    /* force une hauteur minimale pour activer le scroll */
  }

  /* === FIX PAGES DYNAMIQUES === */
  #dynamic-pages {
    margin-left: 0 !important;
    /* retire le margin négatif */
    padding-left: 0;
  }

  #dynamic-pages.active {
    display: block;
    margin-left: 0 !important;
  }

  #dynamic-pages .page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    padding-bottom: 80px;
  }

  /* S'assurer que le contenu ne passe pas sous le left-panel */
  .mentions-fr,
  .mentions-en,
  .cookies-fr,
  .cookies-en {
    width: 100%;
    max-width: 100%;
  }

  .partners-logos {
    margin-bottom: 100px;
  }

  /* === CERCLE === */
  .big-circle {
    width: 150px;
    height: 150px;
  }

  .logo-center {
    width: 75px;
  }

  .small-circle {
    width: 35px;
    height: 35px;
  }

  .c1 {
    transform: rotate(-90deg) translate(65px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(65px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(65px) rotate(330deg);
  }

  .icon-wrapper {
    width: 18px;
    height: 18px;
  }

  .default-icon,
  .hover-icon {
    width: 18px;
    height: 18px;
  }

  .circle-text {
    font-size: 11px;
  }

  .small-circle:hover,
  .small-circle.auto-hover {
    max-width: 140px;
    height: 35px;
    padding-left: 8px;
    padding-right: 10px;
  }

  #navigation_hint {
    font-size: 0.7rem;
    margin-top: 5px;
  }

  /* === UI === */
  #lang-buttons {
    top: 5px;
    right: 10px;
    font-size: 11px;
  }

  /* === HOME === */
  #home_title {
    font-size: 1.3rem;
  }

  #home_intro {
    font-size: 0.8rem;
  }

  .banner-inner {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .banner-icon img {
    width: 45px;
    height: 45px;
  }

  .banner-text h2 {
    font-size: 0.95rem;
  }

  .banner-text p {
    font-size: 0.75rem;
  }

  /* === FOOTER === */
  #site-footer {
    height: 30px;
    padding: 5px 10px;
    font-size: 11px;
  }

  #site-footer p,
  #site-footer nav a {
    font-size: 11px;
  }
}

/* iPhone 14 Pro paysage */
@media (max-width: 844px) and (max-height: 390px) {

  #page-home,
  #page-seriousgames,
  #page-team {
    overflow: visible !important;
    min-height: 100vh;
  }

  #dynamic-pages {
    margin-left: 0 !important;
    margin-bottom: 200px !important;
  }

  #dynamic-pages .page {
    width: 100%;
    padding: 20px;
    margin-bottom: 200px !important;
  }

  .partners-logos {
    margin-bottom: 100px;
  }

  .left-panel {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    animation: none;
  }

  .divider {
    display: block;
    left: 27%;
  }

  .right-panel {
    position: fixed;
    width: 70%;
    height: 100vh;
    overflow-y: auto;
  }

  .page {
    position: relative !important;
    transform: none !important;
  }

  .big-circle {
    width: 140px;
    height: 140px;
  }

  .logo-center {
    width: 70px;
  }

  .c1 {
    transform: rotate(-90deg) translate(60px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(60px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(60px) rotate(330deg);
  }

  .small-circle {
    width: 32px;
    height: 32px;
  }
}

/* iPhone SE paysage - GARDE LE MODE DESKTOP */
@media (max-width: 667px) and (max-height: 375px) {
  /* On force le layout desktop pour iPhone SE paysage */

  body {
    overflow: hidden;
  }

  #page-home,
  #page-seriousgames,
  #page-team {
    overflow: visible !important;
    min-height: 100vh;
  }

  #dynamic-pages {
    margin-left: 0 !important;
  }

  #dynamic-pages .page {
    width: 100%;
    padding: 20px;
  }

  .main-container {
    flex-direction: row;
  }

  .left-panel {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translate(-50%, -50%);
    animation: none;
  }

  .divider {
    display: block;
    left: 22%;
  }

  .right-panel {
    position: fixed;
    width: 75%;
    height: 100vh;
    overflow-y: auto;
  }

  .big-circle {
    width: 130px;
    height: 130px;
  }

  .logo-center {
    width: 65px;
  }

  .c1 {
    transform: rotate(-90deg) translate(55px) rotate(90deg);
  }

  .c2 {
    transform: rotate(-210deg) translate(55px) rotate(210deg);
  }

  .c3 {
    transform: rotate(-330deg) translate(55px) rotate(330deg);
  }

  .small-circle {
    width: 30px;
    height: 30px;
  }
}