/* ============================= 1. IMPORTS ET PARAMÈTRES GLOBAUX ============================= */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@700&display=swap');

/* --- Forcer le site en mode clair (desktop + mobile) --- */

/* Indique au navigateur que le site est conçu pour un thème clair */
:root {
  color-scheme: light;
}

/* Applique le fond et la couleur de texte clairs par défaut */
html,
body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Empêche le mode sombre automatique de modifier les couleurs */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
}

/* Correction spéciale pour Safari iOS (qui ignore parfois color-scheme) */
@supports (-webkit-touch-callout: none) {
  html,
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
}

/* --- Police système pour les paragraphes (San Francisco sur Apple) --- */
.system-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
  color: #222;
}



/* ============================= 2. STYLES GÉNÉRAUX ============================= */

body {
  font-family: 'Rubik', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #4AA9A1, #2CA877, #62A78A);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* ============================= 3. HEADER ET NAVIGATION ============================= */

header {
  background: rgba(255 255 255 / 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(44,168,119,0.7);
  border-radius: 0 0 20px 20px;
  border: 1px solid rgba(255 255 255 / 0.2);
  position: relative;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 1.2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* --- Onglets de navigation --- */
.nav-tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0 0 0;
  margin: 0;
  gap: 20px;
  cursor: pointer;
  user-select: none;
  align-items: center;
  font-size: 1rem;
  flex-wrap: wrap;
}

/* --- Cacher les onglets de navigation sur mobile --- */
@media (max-width: 768px) {
  .nav-tabs {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
  }
}

.nav-tabs .tab {
  padding: 8px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: white;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.nav-tabs .tab:hover {
  background: rgba(255 255 255 / 0.35);
  text-decoration: none;
}

/* --- MODIF : appliquer l’effet actif à tous les onglets --- */
.nav-tabs .tab.active,
.nav-tabs .tab:focus,
.nav-tabs .tab:active {
  background: rgba(255, 255, 255, 0.7);
  color: #2CA877;
  box-shadow: 0 0 15px #4AA9A1cc;
  border-color: rgba(255, 255, 255, 0.8);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Structure du header --- */
.header-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

/* --- Logo styling --- */
.logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- Icône burger --- */
.burger-icon {
  display: flex;
  align-items: center;
  padding: 10px 0; /* alignement vertical comme les .tab */
  cursor: pointer;
}

.burger-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.burger-icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.2);
}

/* --- Adaptation mobile du header --- */
@media (max-width: 768px) {
  .logo img {
    height: 70px;
    margin: 0;
  }

  header {
    text-align: left; /* Alignement à gauche */
    padding: 4px 12px;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* logo à gauche, titre centré, hamburger à droite */
    padding: 0 12px; /* un peu de marge horizontale */
    gap: 15px;
  }

  header h1 {
    font-size: 1.6rem;
  }
}



/* ============================= 4. BARRE DE NAVIGATION MOBILE ============================= */

/* Icône burger cliquable avec checkbox pour état ouvert/fermé */
#menuToggle {
  display: none; /* caché, sert juste à capturer le clic */
}

.burger-icon {
  display: flex;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
  z-index: 10001; /* au-dessus du menu */
}

.burger-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.burger-icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.2);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: 180px;
  right: 15px;
  background: transparent;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 15px;
  flex-direction: column;
  gap: 12px;
  z-index: 10001;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-10px);
  opacity: 0;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px) brightness(1);
  -webkit-backdrop-filter: blur(10px) brightness(1);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 900; /* en dessous du menu, au-dessus du contenu */
}

body.menu-open main,
body.menu-open footer {
  filter: blur(10px) brightness(1);
  transition: filter 0.2s ease;
}

/* Quand le menu est ouvert */
body.menu-open .blur-overlay {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu ul li a {
  display: block;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: white;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.35);
  color: white;
}

/* --- Afficher le menu quand le checkbox est coché --- */
#menuToggle:checked ~ .mobile-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease; /* plus doux */
}

/* --- Mobile nav bar --- */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    top: 85px; /* remonte le menu sur mobile */
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 35px;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
  }

  /* --- Pseudo-élément pour l’effet de flou sous la barre --- */
  .mobile-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateY(10px);
    background: inherit;
    filter: blur(30px);
    opacity: 0.7;
    z-index: -1;
  }

  .mobile-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 1;
  }

  .mobile-nav .nav-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.3s ease;
  }

  .mobile-nav .nav-icon:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
  }

  main {
    padding-bottom: 120px;
  }
}



/* ============================= 5. CONTENU PRINCIPAL (MAIN) ============================= */

main {
  flex: 1;
  padding: 10px 30px 15px 30px;
  max-width: 1100px;
  margin: 20px auto 30px auto;
  background: rgba(255 255 255 / 0.12);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 40px #2CA877bb;
  border: 1px solid rgba(255 255 255 / 0.25);
  color: white;
  user-select: text;
}

.tab-content {
  display: none;
  color: white;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  main {
    padding: 25px 35px;
    margin-bottom: 20px;
  }
}



/* ============================= 6. ACCUEIL ============================= */

body.home {
  margin: 0;
  padding: 0;
  width: 100%;
  animation: gradientShift 10s ease-in-out infinite alternate;
  overflow-x: hidden;
}

/* Animation douce du dégradé de fond */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Conteneur principal */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Titre central */
.titre-accueil {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Rubik', sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  color: #fff;
  text-align: center;
  font-weight: 700;
  z-index: 2;
  animation: pulse 2s infinite alternate;
  user-select: none;
}

@keyframes pulse {
  from { text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
  to { text-shadow: 0 0 25px rgba(0, 0, 0, 0.6); }
}

/* ===== Bandes horizontales d’images ===== */
.ligne {
  position: absolute;
  display: flex;
  gap: 20px;
  width: max-content;
  left: 0;
  z-index: 1;
  opacity: 0.9;
}

/* Chaque image dans le défilement */
.ligne img {
  border-radius: 1rem;
  height: 200px;
  width: auto;
  object-fit: cover;
  flex: 0 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ligne img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.ligne1 { top: clamp(50px, 10vh, 100px); }
.ligne2 { top: clamp(150px, 45vh, 300px); }

/* Défilement fluide gauche-droite */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.ligne1 .masonry {
  display: flex;
  gap: 20px;
  animation: scroll-left 30s linear infinite;
}

.ligne2 .masonry {
  display: flex;
  gap: 20px;
  animation: scroll-right 35s linear infinite;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ligne img {
    border-radius: 1rem;
    height: auto;
    max-height: 140px;
    width: auto;
    object-fit: cover;
    flex: 0 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .ligne1 { top: clamp(40px, 8vh, 90px); }
  .ligne2 { top: clamp(90px, 35vh, 200px); }

  .titre-accueil {
    top: 28%;
    font-size: clamp(2.4rem, 10vw, 4.2rem);
    white-space: nowrap;
  }
}



/* ------ Section CTA ------ */

.cta-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 20px;
  margin-top: 5px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  box-sizing: border-box;
}

.cta-container {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 60px 40px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.cta-container h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
}

.cta-subtext {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.cta-btn {
  padding: 14px 28px;
  border-radius: 1.5rem;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Spécifique à chaque bouton */
.cta-btn.whatsapp { background: rgba(255, 255, 255, 0.1); }
.cta-btn.portfolio { background: rgba(255, 255, 255, 0.1); }
.cta-btn.about { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 700px) {
  .cta-container {
    padding: 50px 25px;
    width: 100%;
    max-width: 420px; /* garde un format harmonieux sur petits écrans */
    margin: 0 auto;   /* recentrage en cas de flex bug */
  }

  }

  .cta-container h2 {
    font-size: 1.6rem;
  }

  .cta-subtext {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-section {
    left: 50%;
    transform: translateX(-50%);
    padding: 60px 15px; /* un peu moins de padding latéral pour éviter le débord */
  }
}



/* ============================= 7. PORTFOLIO ============================= */

#portfolio {
  text-align: center;
  padding: 10px 30px 15px 30px;
}

#portfolio h2 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: #fff;
}

/* --- Cartes du portfolio --- */
.portfolio-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;           /* espace entre cartes */
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.portfolio-card {
  position: relative;
  width: 320px;        /* desktop */
  height: 220px;
  border-radius: 25px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* --- Bouton glassmorphism au bas de la carte --- */
.portfolio-card span {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 10px 28px;
  border-radius: 50px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

/* --- Hover --- */
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.portfolio-card:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.portfolio-card:hover span {
  background: rgba(255,255,255,0.35);
  transform: translateX(-50%) translateY(-2px);
}

/* --- Responsive portfolio --- */

/* Mobile (jusqu'à 900px) */
@media (max-width: 900px) {
  .portfolio-buttons {
    padding: 0 10px;    /* marges plus petites pour laisser plus de place */
    gap: 10px;          /* espace réduit entre les cartes */
  }

  .portfolio-card {
    width: 100%;        /* carte prend toute la largeur disponible */
    max-width: none;    /* supprime les restrictions */
    height: 180px;      /* hauteur adaptée */
  }

  .portfolio-card span {
    font-size: 1rem;
    padding: 8px 20px;
  }

  main {
    padding-left: 10px; /* réduit la marge main sur mobile */
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  main.portfolio-page {
    padding-left: 0;
    padding-right: 0;
  }
}



/* ============================= 8. CREATIONS ============================= */

/* --- Section Créations --- */
#creations {
  text-align: center;
  padding: 10px 30px 15px 30px;
  background: transparent;
}

#creations h2 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 35px;
  color: #fff;
  letter-spacing: 1px;
}

/* --------- Masonry Grid --------- */
#creations .masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center; /* centre les images dans les colonnes */
}

/* --- Images --- */
#creations .masonry img {
  width: 100%; /* prend toute la largeur de la cellule */
  height: auto; /* conserve les proportions */
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  object-fit: contain; /* pas de rognage */
  cursor: pointer;
  transition: transform 0.2s ease;
}

#creations .masonry img:hover {
  transform: scale(1.03);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  body.creations, section#creations {
    margin: 0;
    padding: 0;
  }

  #creations {
    width: 100%;
    padding: 2px; /* petit padding autour */
    box-sizing: border-box;
  }

  #creations .masonry {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes fixes */
    gap: 6px;                               /* espace entre colonnes et lignes */
    margin: 0 auto;                          /* centrage horizontal */
  }

  #creations .masonry img {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    border-radius: 12px;                      /* coins moins arrondis */
    border: none;
    background: transparent;
  }
}

/* --- Animation --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* --- Animation décalée pour chaque image --- */
#creations .masonry img:nth-child(1) { animation-delay: 0.1s; }
#creations .masonry img:nth-child(2) { animation-delay: 0.2s; }
#creations .masonry img:nth-child(3) { animation-delay: 0.3s; }
#creations .masonry img:nth-child(4) { animation-delay: 0.4s; }
#creations .masonry img:nth-child(5) { animation-delay: 0.5s; }
#creations .masonry img:nth-child(6) { animation-delay: 0.6s; }
#creations .masonry img:nth-child(7) { animation-delay: 0.7s; }
#creations .masonry img:nth-child(8) { animation-delay: 0.8s; }
#creations .masonry img:nth-child(9) { animation-delay: 0.9s; }

/* --- Hover --- */
#creations .masonry img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Animation --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  #creations .masonry {
    column-count: 2;
    column-gap: 16px;
  }
}

@media (max-width: 700px) {
  #creations .masonry {
    column-count: 1;
    column-gap: 0;
  }
  #creations h2 {
    font-size: 2rem;
    margin-bottom: 25px;
  }
}

/* --------- Lightbox popup --------- */

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 9999;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-window {
  background: rgba(255, 255, 255, 0.15); /* fond translucide */
  color: #fff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-left img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.lightbox-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.lightbox-right h3 {
  font-family: 'Rubik', sans-serif;
  margin-top: 0;
  font-size: 2rem;
}

.lightbox-right p {
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
}

.lightbox-right p strong {
  font-weight: 700;
}

.lightbox-extra-images {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lightbox-extra-images img {
  max-width: 100px; /* ou la taille max que tu veux */
  height: auto;
  border-radius: 8px;
  object-fit: contain; /* ou cover si tu veux remplir le cadre */
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 700px) {
  .lightbox-window {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px 10px; /* padding plus adapté pour mobile */
    gap: 15px; /* espace entre image et texte */
  }

  .lightbox-left img {
    max-width: 90%; /* image plus large mais pas full */
    height: auto;
  }

  .lightbox-right {
    max-height: 60vh; /* limite la hauteur sur mobile */
    overflow-y: auto; /* scroll si besoin */
    padding-bottom: 10px;
  }

  .lightbox-right h3 {
    font-size: 1.5rem; /* titre plus grand mais proportionnel */
  }

  .lightbox-right p {
    font-size: 1rem; /* texte un peu plus lisible */
  }

  .lightbox-extra-images img {
    max-width: 70px; /* miniatures adaptées au mobile */
    justify-content: flex-start;
  }

  .lightbox-close {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
}



/* ============================= 9. RECHERCHER ============================= */

/* --- Boutons flottant Reechercher sur Desktop --- */

.search-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.search-float-btn img {
  width: 30px;
  height: 30px;
}

.search-float-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

@media (max-width: 899px) {
  .search-float-btn {
    display: none;
  }
}



/* ------ Page Rechercher ------ */
.search-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  background: url('background.jpg') no-repeat center center/cover; /* optionnel */
  padding: 15px;
  box-sizing: border-box;
}

.search-bubble {
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 10px 10px 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.search-logo {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  padding: 8px 12px 8px 12px;
  font-size: 1rem;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 600px) {
  .search-bubble {
    padding: 12px 15px;
  }

  .search-logo {
    width: 25px;
    height: 25px;
    margin-right: 10px;
  }

  .search-input {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
}


body.search header .nav-tabs a {
  display: inline-block;
  padding: 15px 0 0 0;
  margin: 0;
  gap: 20px;
  border-radius: 25px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-tabs {
  justify-content: center;
  list-style: none;
  cursor: pointer;
  user-select: none;
  align-items: center;
  font-size: 1rem;
  flex-wrap: wrap;
}

body.search header .nav-tabs a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}



/* ============================= 9. À PROPOS ============================= */

#about h2 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 25px;
}

#about h3 {
  font-weight: 600;
  font-size: 1.6rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #A4EBCD;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#about p.system-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 1.2rem auto;
  text-align: justify;
}

/* --- Ajustement des marges internes du texte pour #about sur mobile --- */
@media (max-width: 768px) {
  #about {
    padding: 10px 16px; /* espace entre les bords de la fenêtre et le texte */
  }

  #about p.system-font,
  #about h2,
  #about h3 {
    margin-left: 0;   /* enlever marges automatiques si nécessaire */
    margin-right: 0;
  }
}



/* ============================= 10. CONTACT ============================= */

#contact h2 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 25px;
}

#contact ul {
  list-style: none;
  padding-left: 0;
}

#contact ul li {
  margin-bottom: 12px;
}

#contact a {
  color: #56DB85;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #ffffff;
}

/* Surcharge pour la page contact */
#contact .system-font {
  color: white;
  font-weight: 600;
}




/* ============================= 11. MENTIONS LEGALES ============================= */

.mentions-content h1 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 25px;
  text-align: center;
}

.mentions-content h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

/* Si tu utilises des <h3> dans les mentions, reprendre #about h3 */
.mentions-content h3 {
  font-weight: 600;
  font-size: 1.6rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #A4EBCD;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Paragraphe principal — reproduit #about p.system-font
   (s'applique à tous les <p> dans .mentions-content, et aussi aux p.system-font pour rétro-compatibilité) */
.mentions-content p,
.mentions-content p.system-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 1.2rem auto;
  text-align: justify;
}

/* Date et retour */
.mentions-date {
  text-align: center;
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* --- Responsive --- */

@media (max-width: 992px) {
  .mentions-content {
    padding: 32px;
  }

  .mentions-content h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
  }

  .mentions-content h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .mentions-content p,
  .mentions-content p.system-font {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .mentions-content {
    padding: 10px;
    border-radius: 14px;
  }

  .mentions-content h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: center;
  }

  .mentions-content h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .mentions-content h3 {
    font-size: 1.1rem;
  }
  .mentions-content p,
  .mentions-content p.system-font {
    font-size: 0.95rem;
    line-height: 1.40;
  }
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.12);
  padding: 10px 18px;
  box-shadow: 0 0 20px rgba(44,168,119,0.7);
  border-radius: 30px;
  border: 1px solid rgba(255 255 255 / 0.2);
  transition: background 0.3s;
}
.back-home:hover {
  background: rgba(255,255,255,0.25);
}

/* ----- Lien hébergeur (style Perspikative) ----- */
.host-link {
  position: relative;
  color: #9EF0C2;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.host-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #4EC28A;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 1px;
}

.host-link:hover {
  color: #ffffff;
}

.host-link:hover::after {
  width: 100%;
  background-color: #ffffff;
}



/* ============================= 12. FOOTER ============================= */

footer {
  background: rgba(255 255 255 / 0.12);
  color: white;
  text-align: center;
  padding: 15px;
  padding-top: 0px;
  font-size: 0.9rem;
  box-shadow: inset 0 0 10px #2CA877cc;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255 255 255 / 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

footer p {
  line-height: 1.3; /* Diminue l'interligne (par défaut souvent 1.4 ou 1.5) */
  margin: 0;         /* Supprime le margin vertical par défaut */
}

footer a.footer-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Même police que les paragraphes */
  font-weight: 700; /* Gras */
  color: #56DB85; /* Couleur douce pour contraster */
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
}

footer a.footer-link:hover {
  color: #fff;
  background: rgba(86, 219, 133, 0.2); /* Légère lueur façon glass */
  text-shadow: 0 0 5px #56DB85; /* Glow subtil */
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Effet doux au survol */
.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 1;
}



