/* =======================
   Général
======================= */
body {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  background-color: #ffffff;
  color: #333;
}

/* =======================
   Header général
======================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  z-index: 10000;
}

/* Logos à gauche */
.logo-link {
  position: absolute;
  top: 48px;
  left: 40px;
  transform: translateY(-50%);
  height: 22px; /* même hauteur pour les deux logos */
  display: flex;
  align-items: center;
  z-index: 10000;
}

.logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 100%; /* limité à la hauteur du conteneur */
  position: relative; /* éviter absolute sur l'image */
}

.logo-long {
  display: block; /* visible au top */
}

.logo-short {
  display: none; /* caché au top */
}

/* Titre central */
.header-center-container {
  position: absolute;
  top: 48px;
  left: 48%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-center {
  font-weight: 900;
  font-size: 15px;
  font-family: 'IBM Plex Mono', monospace;
  color: #000;
}

/* =======================
   Bouton + dans le header
======================= */
.header-plus {
  position: absolute;
  top: 45px;
  right: 112px;
  width: 40px;
  height: 40px;
  z-index: 10000;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 3.3rem;
  font-weight: 100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;

  transform: translateY(-50%);
  transform-origin: center center;
  transition: transform 0.3s ease;

  color: black !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.header-plus.active {
  transform: translateY(-50%) rotate(45deg);
}

/* =======================
   Version Mobile
======================= */
@media (max-width: 768px) {
  header {
    padding: 0 0px; /* supprimer le padding pour que le logo colle au bord */
    height: 50px;
  }

  .logo-link {
    left: 20px; /* distance depuis le bord de l'écran */
    height: 18px;
  }

  .header-center {
    font-size: 14px;
    left: 20px;
  }

  .header-plus {
    right: 30px;
    font-size: 3.5rem;
    top: 43px;
  }

  .header-center-container {
    opacity: 0;         /* invisible par défaut */
    transition: opacity 0.3s ease;
  }

  .header-center-container.show {
    opacity: 1;         /* devient visible */
  }
}

/* =======================
   Intro
======================= */
.intro {
  padding-top: 120px;
  text-align: center;
}

.intro h2 {
  font-weight: 400;
  font-size: 28px;
  margin-top: 40px;
}

/* =======================
   Projets card index
======================= */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
  padding: 60px;
}

.project-card {
  background-color: #ffffff;
  width: clamp(300px, 80%, 1400px);
  aspect-ratio: 16 / 9; /* ✅ remplace AA par 16:9 */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease, filter 0.2s ease;
  overflow: hidden; /* ✅ pour éviter que l'image déborde */
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ l'image remplit le cadre sans déformation */
}


.project-card:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.project-info {
  position: absolute;
  top: 0%;
  left: 0%;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.8); /* ✅ fond blanc 80% */
  padding: 8px 15px; /* ✅ petit espace autour du texte */
}


.project-card:hover .project-info {
  opacity: 1;
}

.project-info .title {
  font-weight: 500;
  display: block;
  color: #000;
}

.project-info .details {
  font-size: 12px;
  font-weight: 300;
  display: block;
  color: #3a3a3a;
}
.project-info .annee {
  font-size: 12px;
  font-weight: 300;
  display: block;
  color: #3a3a3a;
}

.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplissage total, rogne si ratio ≠ cadre */
  display: block;
  border-radius: inherit;
}

/* =======================
   Version Mobile
======================= */
@media (max-width: 768px) {
  .projects {
    padding: 0;
    padding-top: 22%;
    padding-bottom: 40px;
  }

  .project-card {
    width: 100%;       /* largeur de l’écran */
    max-width: 100%;   /* pas de dépassement */
    aspect-ratio: auto; /* laisse la hauteur automatique via l'image */
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .project-card img,
  .project-card video {
    width: 100%;
    height: auto;     /* image s’adapte à l’écran */
    object-fit: cover;
  }

  .project-info {
    position: relative; /* ✅ titre passe sous l’image */
    top: auto;
    left: auto;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: none;
    text-align: left;
    max-width: 100%;
    padding: 10px 20px; /* respire un peu mais ne compresse pas */
    display: block;
  }

  .project-info.active {
    opacity: 1; /* ✅ visible uniquement si actif via JS */
  }

  .project-info .title {
    font-size: 14px;
    font-weight: 500;
    display: block;
    color: #000;
  }

  .project-info .details,
  .project-info .annee {
    display: none;
  }
}


/* =======================
   Animation scroll cards
======================= */

/* Base commune à tous les médias */
.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;

  /* Transition toujours active */
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* État initial par défaut */
  opacity: 0;
  transform: translateY(60px);
}

/* Arrive du bas (scroll descendant) */
.init-down {
  opacity: 0;
  transform: translateY(60px); /* vient d’en bas */
}

/* Arrive du haut (scroll montant) */
.init-up {
  opacity: 0;
  transform: translateY(-60px); /* vient du haut */
}

/* État final : toujours posé */
.scrolled {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* =======================
   Footer
======================= */
footer {
  text-align: center;
  padding: 20px 0;
  background: #ed292900;
}

.footer-line {
  border: none;
  border-top: 1px solid #aaaaaa84;
  margin-bottom: 20px;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-content p {
  margin: 0;
  line-height: 0.5; /* ou en px : 20px */
  font-size: 14px;
  font-weight: 400;
  color: #333;
  padding-bottom: 12px;
}

.footer-button {
  display: inline-block;
  margin-bottom: 5px;
  padding: 5px 15px;
  color: #000;
  background-color: transparent;
  font-size: 14px;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-button:hover {
  background-color: #333;
  color: #fff;
}
@media (max-width: 768px) {
  .footer-content {
   gap: 6px;
}

  .footer-content p {
    line-height: 0.5; /* ou en px : 20px */
    font-size: 12px;
    padding-bottom: 8px;
    text-align: center; /* centre le texte */
 }
}

/* =======================
   Contact Overlay
======================= */
#contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  display: flex;               /* toujours flex pour centrer le contenu */
  justify-content: center;
  align-items: center;         /* centré verticalement */
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
  opacity: 0;                  /* invisible par défaut */
  pointer-events: none;        /* bloque interactions quand fermé */
  transition: opacity 0.25s ease; /* fondu entrée/sortie */
  z-index: 20000;
}

#contact-overlay.active {
  opacity: 1;
  pointer-events: auto;        /* interactions possibles quand ouvert */
}

.contact-content {
  background: rgba(255, 255, 255, 0);
  max-width: 1000px;
  width: 100%;
  padding: 50px;
  padding-bottom: 60px;
  padding-top: 60px;
  border-radius: 8px;
  margin: 0px ;       /* centré horizontalement */
  margin-top: 0
  text-align: left;
  position: relative;
}

/* Bouton fermeture */
#close-contact {
  z-index: 2100;
  position: absolute;
  top: 48px;
  right: 0px;
  font-size: 28px;
  font-weight: 100;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  transition: transform 0.2s ease;
}
#close-contact:hover {
  transform: scale(1.2);
}

/* Logo */
.contact-logo img {
  max-width: 300px;
  margin: 0 auto 40px;
  display: block;
  margin-left: 0px;
  margin-bottom: 15px;
}

.about-text h2 {
  font-size: 1rem;      /* taille de police souhaitée */
  font-weight: 600; 
  margin-top: 5px;    /* épaisseur */
  margin-bottom: -5px;  /* espace sous le titre */
  color: #111;          /* couleur */
}

/* Wrapper texte + photo */
.about-me-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.about-text {
  flex: 2;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.6;
}
.about-text p {
  margin-bottom: -10px;
}
.about-photo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.about-photo img {
  max-width: 300px;
  height: auto;
  margin-top: 20px;
  border-radius: 3px;
  object-fit: cover;
  margin-left: 0px;
}

/* Infos de contact */
.contact-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0px;
}
.contact-info a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0px;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Réseaux sociaux */
.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}
.social-button {
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 4px;
  background: transparent;
  color: black;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.social-button:hover {
  background-color: #333;
  color: #fff;
}
.project-card,
.project-card a,
.project-card .project-info,
.project-card .project-info .title {
  text-decoration: none !important;
}



/* =======================
   Contact Overlay - MOBILE
======================= */
@media (max-width: 768px) {
  #contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex; /* nécessaire pour centrer */
    justify-content: center;
    align-items: flex-start; /* top align pour scroll naturel */
    overflow-y: auto;
    padding: 20px; /* égal à gauche/droite pour centrage horizontal */
    box-sizing: border-box;
  }

  .contact-content {
    padding: 15px 15px;  
    padding-bottom: 40px;
    padding-top: 28px;      /* réduit le padding interne */             /* supprime le margin négatif */
    max-width: 100%;           /* prend toute la largeur disponible */
    border-radius: 0;          /* coins carrés pour mobile */
  }

  /* Logo centré */
  .contact-logo img {
    max-width: 180px;
    margin: 0 auto 20px;
    margin-left: 0px;
  }

  /* Wrapper texte + photo */
  .about-me-wrapper {
    flex-direction: column;    /* colonne pour mobile */
    gap: 20px;
  }

  .about-text {
    font-size: 0.8rem;
  }

  .about-text p {
    margin-bottom: 10px;       /* espace sous les paragraphes */
  }

  .about-photo {
    justify-content: center;
  }

  .about-photo img {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 3px;
    padding-bottom: 0px;
  }

  /* Infos contact */
  .contact-info {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  .contact-info a {
    font-size: 0.8rem;
    font-weight: 400;
  }

  /* Réseaux sociaux */
  .social-links {
    flex-direction: row;
    justify-content: left;
    gap: 10px;
  }

  .social-button {
    font-size: 13px;
    padding: 5px 12px;
  }

  /* Bouton fermeture */
  #close-contact {
    top: 10px;
    right: 10px;
    font-size: 30px;
  }
}


/* =======================
   Page Projet 1 - Intro
======================= */
.projet-intro {
  padding-top: 130px;
  max-width: 900px;
  margin-left: 40px;
  margin-right: 40px;
  text-align: left;
}

.project-title {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 0px;
  color: #000000;
}

.project-subtitle {
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-top: 0px;
  margin-bottom: 12px;
  color: #000000;
}

.project-date {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: -1.2px;
  margin-top: 0px;
  margin-bottom: 28px;
  color: #000000;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .projet-intro {
    padding-top: 120px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px 10px; /* marges internes */
  }
  .project-title {
    padding-top: 170px;
    font-size: 1.4rem;   /* ajustable pour mobile */
    line-height: 1.1;
  }

  .project-subtitle {
    font-size: 1.2rem;   /* ajustable pour mobile */
    line-height: 1.1;
  }

  .project-date {
    font-size: 0.8rem;   /* ajustable pour mobile */
  }

  .project-description {
    font-size: 0.75rem;   /* ajustable pour mobile */
    line-height: 1.5;
    margin-bottom: 8px;
  }
}

/* =========================
   Toggle "..." - bouton + (option 1)
   ========================= */
.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: black;
  -webkit-tap-highlight-color: transparent; /* supprime le flash bleu sur mobile */
  outline: none; /* supprime le contour au clic */
}

/* Structure des 3 points */
.toggle-btn .dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 34px;
  position: relative; /* pour rotation autour du centre */
  transition: transform 0.3s ease;
}

/* Points pleins */
.toggle-btn .dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Actif : rotation des points pour passer à la verticale autour du point du milieu */
.toggle-btn.active .dots {
  transform: rotate(90deg); /* rotation globale autour du centre */
}

/* Fallback : cacher l’ancien + si présent */
.toggle-btn .plus {
  display: none;
}

.more-text {
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.more-text.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

/* =======================
   Version mobile page projet 
======================= */
@media (max-width: 768px) {

  .toggle-btn {
   background: none;
   border: none;
   cursor: pointer;
   font-size: 1.3rem;
   padding: 5px;
   transition: transform 0.3s ease;
  }
  /* Texte principal */
  .project-description {
    font-size: 0.75rem;   /* ajustable pour mobile */
    line-height: 1.6;
    margin-bottom: 8px;
  }

  /* Texte additionnel + */
  .more-text {
    font-size: 0.75rem;  /* ajustable pour mobile */
    line-height: 1.6;
    margin-top: 8px;
  }
}

/* =======================
   Menu déroulant du bouton +
======================= */
.header-menu {
  position: absolute;
  top: 30px;
  right: 160px;px; /* coin supérieur droit aligné au bouton */
  width: max-content;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, transform 0.2s ease;
  transform: translateX(100%); /* caché à droite */
  z-index: 1500;
  background: rgba(255, 255, 255, 0.801); /* transparent */
  border: none;
  box-shadow: none;
}

/* Liste verticale des projets */
.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.header-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.header-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.158);
}

/* Menu ouvert */
.header-menu.show {
  max-height: 500px;
  transform: translateX(0);
}

/* Séparateur entre projets et contact */
.header-menu ul li.menu-separator {
  border-top: 1px solid #ccc; /* couleur du trait, ajustable */
  margin: 0.5rem 0;           /* espace avant/après */
  list-style: none;
  pointer-events: none;        /* pour que le trait ne soit pas cliquable */
}

/* Mettre le lien contact en gras */
.header-menu ul li a.menu-contact {
  font-weight: 700;  /* déjà renforcé par <strong>, mais CSS force */
}


/* menu mobile et overlay du menu */
/* menu mobile et overlay du menu */
@media (max-width: 900px) {
  .header-menu {
    max-height: 90vh;
    position: fixed;
    top: 20%;                     /* centre vertical */
    left: -18px;                      /* colle au bord gauche */
    width: 100%;                  /* prend toute la largeur */
    background: rgba(255, 255, 255, 0); 
    overflow-y: auto;
    word-wrap: break-word;
    padding: 1rem;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-menu.show {
    opacity: 1;
  }

  .header-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .header-menu li a {
    font-size: 1rem;
    padding: 10px 15px;
  }

  /* Overlay mobile blanc semi-transparent */
  #menu-overlay {
    display: none;              /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1400;              /* sous le menu */
  }

  #menu-overlay.show {
    display: block;
  }
}

/* Animation fade */
#menu-overlay.show {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#menu-overlay.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* =======================
   Page Projet 1 - Galerie d'images
======================= */
.galerie-projet.big-images {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 100%;
  margin-left: 40px;
  margin-right: 40px;
  margin-bottom: 60px;
}

.galerie-projet.big-images .placeholder-image {
  width: 100%;       /* largeur du conteneur */
  height: auto;      /* hauteur proportionnelle à l'image */
  object-fit: contain; /* l'image reste entière sans se déformer */
  background-color: #ffffff; /* couleur de fond si l'image ne charge pas */
  border-radius: 8px;
}
.instagram-post {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  padding: 0 16px; /* garde un peu d'espace sur mobile */
  box-sizing: border-box;
}

.instagram-post .instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 326px !important;
  margin: 0 auto !important;
}


/* =======================
   Galerie d'images - Mobile bord à bord
======================= */
@media (max-width: 768px) {
  .galerie-projet.big-images {
    margin-left: 0;
    margin-right: 0;
    gap: 20px;
  }

  .galerie-projet.big-images .placeholder-image {
    width: 100%;
    border-radius: 0;
  }
}

/* =======================
   Sélecteur de langue
======================= */
.language-selector {
  margin: 15px 0;
  font-size: 0.8rem;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
}

.language-selector .lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 0 5px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.language-selector .lang-btn:hover {
  color: #000;
}
/* ======================
   Lightbox
====================== */
.lightbox {
  display: none; /* masqué par défaut */
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* fond blanc */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

/* Image quasiment plein écran */
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh; /* garde une marge pour le titre */
  cursor: pointer;
  object-fit: contain; /* s’adapte sans déformation */
}

/* Titre sous l'image */
.lightbox-content p {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: #000;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: black;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
  z-index: 2100; /* ✅ flèches au-dessus de l’image */
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: gray;
}
/* Image dans la lightbox */
.lightbox img,
.lightbox video {
  cursor: zoom-in;              /* main ouverte par défaut */
  transition: transform 0.2s ease; /* transition douce pour zoom/déplacement */
  user-select: none;         /* empêche la sélection de l’image au drag */
  max-width: 100%;           /* ne dépasse pas du conteneur au départ */
  max-height: 100%;
  display: block;
  margin: 0 auto;
}

/* Quand on clique pour déplacer */
.lightbox img:active {
  cursor: zoom-in;          /* main fermée quand on déplace */
}

/* Sur mobile : occuper toute la page */
@media (max-width: 768px) {
  .lightbox-content img {
    max-width: 100vw;
    max-height: 100vh;
  }

  .lightbox-content p {
    font-size: 0.9rem;
    margin-top: 5px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    top: 90%; /* flèches en bas */
  }
}

@media (prefers-color-scheme:) {
  body {
    background-color: #000;
    color: #fff;
  }

  header, footer {
    background-color: #000;
    color: #fff;
  }

  header a, footer a, nav a,
  .lang-btn, .toggle-btn,
  h1, h2, h3, h4, h5, h6,
  .project-title, .project-subtitle,
  .subtitle, .header-center, .header-plus {
    color: #fff !important;
  }

  .toggle-btn, .lang-btn {
    border: 1px solid #000000;
    background: none;
  }

  /* Logos inversés si noirs par défaut */
  header img.logo {
    filter: brightness(0) invert(1);
  }

  /* Bouton + du header sur toutes les pages */
  body.dark-page #open-plus {
    color: #fff !important;
    border: none !important;
    background-color: transparent !important;
  }

  /* ===== Menu déroulant en mode sombre ===== */
  .header-menu {
    background-color: #00000000 !important; /* fond noir */
    color: #fff !important;           /* texte blanc */
  }

  .header-menu ul li a {
    color: #fff !important;
  }

  .header-menu ul li a:hover {
    color: gray !important; /* couleur au survol */
  }

  /* Overlay mobile du menu */
  #menu-overlay {
    background-color: rgba(0,0,0,0.8) !important;
  }
}


/* ================================ */
/* MODE SOMBRE FORCÉ PAGE 4 */
/* ================================ */
body.dark-page {
  background-color: #000;
  color: #fff;
}

/* Header et footer */
body.dark-page header,
body.dark-page footer {
  background-color: #00000000;
  color: #fff;
}

/* Logos spécifiques projet 4 */
body.dark-page header img.logo-short {
  content: url("images/ofa_blanc.png");
}
body.dark-page header img.logo-long {
  content: url("images/orfeo-furcy-architecture_blanc.png");
}

/* Tous les textes */
body.dark-page h1,
body.dark-page h2,
body.dark-page h3,
body.dark-page h4,
body.dark-page h5,
body.dark-page h6,
body.dark-page p,
body.dark-page span,
body.dark-page .project-title,
body.dark-page .project-subtitle,
body.dark-page .subtitle,
body.dark-page .lang-btn,
body.dark-page .toggle-btn,
body.dark-page .header-center,
body.dark-page #open-plus {
  color: #fff !important;
}

/* Boutons + sans cadre */
body.dark-page .toggle-btn,
body.dark-page #open-plus {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ================================ */
/* Menu déroulant du header en mode sombre forcé */
body.dark-page .header-menu {
  background-color: #000000c9 !important; /* fond noir */
  color: #fff !important;           /* texte blanc */
}

body.dark-page .header-menu ul li a {
  color: #fff !important;
}

body.dark-page .header-menu ul li a:hover {
  color: gray !important; /* couleur au survol */
}

/* Optionnel : si tu as un overlay mobile pour le menu */
body.dark-page #menu-overlay {
  background-color: rgba(0,0,0,0.8) !important;
}


.video-container {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Splash screen en plein écran */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* fond blanc */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001; /* toujours au-dessus */
  opacity: 1;
  transition: opacity 1s ease;
}

/* Logo */
.splash-logo {
  max-width: 180px; /* taille du logo */
  opacity: 0;
  animation: fadeIn 2s forwards;
}

/* Animation apparition logo */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Classe qui cache le splash */
#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .splash-logo {
  max-width: 110px; /* taille du logo */
}
}

/* ===========================
   Couche de transition
=========================== */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease; /* fade blanc */
  z-index: 9998;
}

#page-transition.active {
  opacity: 1;
}

/* ===========================
   Container de page
=========================== */
#page-container {
  opacity: 0; /* invisible par défaut */
  transition: opacity 0.8s ease; /* fade-in/out */
}

/* fade-in */
#page-container.fade-in {
  opacity: 1;
}

/* fade-out */
#page-container.fade-out {
  opacity: 0;
}

/* ===========================
   Reset interférences
=========================== */
body {
  opacity: 1 !important;
  transition: none !important;
}




.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

