@import url("https://fonts.googleapis.com/css?family=Raleway:900&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap');

/* ==============================================
   VARIABLES GLOBALES
   ============================================== */
   :root {
    /* Couleurs */
    --color-primary: #5555ff;
    --color-error: #dc3545;
    --color-success: #28a745;
    --color-dark: #333;
    --color-light: #f1f1f1;
    --color-text: black;
    --color-text-inverse: white;
  
    /* Dimensions */
    --header-height: 60px;
    --footer-height: 60px;
    --max-content-width: 1200px;
    --mobile-nav-width: min(50%, 200px);
  
    /* Breakpoints */
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
  
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
  }

  body {
  transition: background-color 0.2s ease-in-out, background-image 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  
}

  #page-content {
  opacity: 1;
   transition: opacity 0.2s ease-in-out;
}

#page-content.fade-out {
  opacity: 0;
}




  /* ==============================================
     RESET & BASE
     ============================================== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    transition: opacity 600ms cubic-bezier(0.4, 0.0, 0.2, 1);
  }
  
  html {
    scroll-behavior: smooth; /* UX fluidité: smooth scrolling naturel */
  }
  
  body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    /* color: var(--color-text); */
    line-height: 1.5;
    transition: background-color var(--transition-normal), color var(--transition-normal); /* UX fluidité: transition douce lors changement thème */
  }
  
  /* ==============================================
     LAYOUT PRINCIPAL
     ============================================== */
  .site-content {
    flex: 1;
    padding: 1rem 2rem;
    margin-bottom: var(--footer-height);
    transition: padding var(--transition-slow); /* UX fluidité: évite sauts brutaux lors resize */
  }
  
  /* ==============================================
     HEADER
     ============================================== */
  .site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* color: var(--color-text); */
    transition: all var(--transition-normal); /* UX fluidité: effet doux quand header change (ex: fond transparent -> opaque) */
    width: 100%;
    
  }


  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  

  
  .site-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-right: 0;
    transition: color var(--transition-fast); /* UX fluidité: changement de couleur fluide */
  }
  
  .site-header a {
    color: inherit;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast), background-color var(--transition-fast); /* UX fluidité: hover fluide */
  }
  
  .site-header a:hover,
  .site-header a:focus {
   /*  color: var(--color-primary); */
   color:#b6b6dd ;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    transition: color var(--transition-fast), outline var(--transition-fast); /* UX fluidité: transition douce pour focus/hover */
  }
  
  /* ==============================================
     NAVIGATION
     ============================================== */
  .desktop-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
  }
  
  .desktop-nav,
  .desktop-nav ul,
  .desktop-nav li {
    text-align: left;
  }
  
  /* ==============================================
     MENU MOBILE
     ============================================== */

     /* Mobile Menu Styles */

     .mobile-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: var(--mobile-nav-width);;
      height: 100vh;
      background: white;
      z-index: 1000;
      backdrop-filter: blur(10px);
      background-color: rgba(255, 255, 255, 0.8);
      transition: right 0.3s ease-out;
      padding: 80px 20px 20px;
      box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .mobile-nav[aria-hidden="false"] {
      right :0;
    }

  .page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}
  


  .mobile-nav[aria-hidden="false"] {
    right :0;
  }
 
  
  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    list-style: none;
  }
  
  .mobile-nav a {
    display: block;
    padding: 0.75rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color var(--transition-fast), color var(--transition-fast); /* UX fluidité: hover fluide */
  }
  
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background-color: #f5f5f5;
  }
  
  /* Overlay nav */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  .nav-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #333;
}

.mobile-menu__list {
  padding: 70px 20px 20px;
  list-style: none;
}

.mobile-menu__link {
  display: block;
  padding: 0.8rem 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover, .mobile-menu__link.active {
  color: #b6b6dd ;
}

.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  z-index: 1001; /* Au-dessus du menu */
  background: transparent;
  border: none;
  cursor: pointer;
  display: block; 
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



  /* Style par défaut (noir) */
 .hamburger span {
    background-color: white;
    transition: background-color 0.3s ease;
  }
  
  .hamburger.black span {
    background-color: transparent;
    color: black;
  }

  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #imageOverlay #closeOverlayBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* ================================
   Lien contextuel "Autres galeries"
   ================================ */

.galleryNavLink {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  padding: 0.5rem 1rem;

  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color:white ;
  cursor: pointer;
}
  
  /* ==============================================
     FOOTER
     ============================================== */
  .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8em;
  background-color: #111;
  color: white;
  transform: translateY(6.5em); /* "cache" le footer sauf le bouton */
  transition: transform 2s ease;
  overflow: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#button {
  width: 50px;
  height: 50px;
  border: #b6b6dd 12px solid;
  border-radius: 35px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  line-height: 2em;
  cursor: pointer;
  z-index: 1000;
}

/* Au hover du bouton, le footer remonte */
#button:hover ~ ul,
#button:hover {
  pointer-events: auto;
}

/* Hover du bouton déclenche la translation du footer */
.site-footer:hover {
  transform: translateY(0);
}

  .site-footer ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
     color: white; 
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  
  
  .site-footer a {
    color: inherit;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    transition: opacity var(--transition-fast); /* UX fluidité: hover fluide */
  }
  
    .site-footer a:hover,
  .site-footer a:focus {
   /*  color: var(--color-primary); */
    color:#b6b6dd ;
    border-radius: 20px;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    transition: color var(--transition-fast), outline var(--transition-fast); /* UX fluidité: transition douce pour focus/hover */
  }
  
  
  .site-footer img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    transition: filter var(--transition-fast); /* UX fluidité: effet hover image fluide possible */
  }
  
  /* ==============================================
     STYLES COMMUNS AUX PAGES
     ============================================== */
  body[class^="page-"] {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background var(--transition-slow), color var(--transition-slow); /* UX fluidité: transition douce changement thème */
  }

   
  /* ---------- HOME ---------- */
  .page-home {
    position: fixed;
    background: 
    url("../assets/photo/gaya/home.webp") center/cover no-repeat fixed;
    color: var(--color-text-inverse);
    margin: 0;
    top: 0;
    bottom: 50px;
    height: 100vh;
    width: 100vw;
    display: flex;
 
  }
.page-home .desktop-nav,
.page-home .site-header,
.page-home .site-footer,
.page-home .site-title 
 {
   background-color: transparent;
    color:color var(--color-text-inverse);
}

  #text1{
  margin-top: 1rem;
    position: absolute;
    width: 100%;
    display: inline-block;
    color: white;
    font-family: "Raleway", sans-serif;
    font-size: 50px;
    text-align: center;
    user-select: none;
  }
  #text2 {
  margin-top: 1rem;
    position: absolute;
    width: 100%;
    display: inline-block;
    color: white;
    font-family: "Raleway", sans-serif;
    font-size: 50px;
    text-align: center;
    user-select: none;
  }
    .container {
    position: absolute;
    margin: auto;
    width: 100vw;
    height: 150pt;
    top: 0;
    bottom: 0;

    filter: url(#threshold) blur(0.6px);
}

  
  /* ---------- ABOUT ---------- */
  .page-about {
    position: absolute;
    background: 
      url("../assets/photo/model/about.webp") center/cover no-repeat fixed;
    color: var(--color-text-inverse);
    margin: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    
  }
  .about-container{
    margin-left: 45px;
  }

  .page-about .site-header,
  .page-about .site-footer {
    background-color: transparent;
    color: var(--color-text-inverse);
  }
  

  #str {
  width: 320px;
  padding: 4px;
  height: auto;
  text-align: center;
  font-size: 30px;
  margin: 110px auto;
  right: 30%;
  color: #fff;
  font-weight: bold;
}
/* text end */
.text {
  padding-top: 5px;
}
 /* Video Player en fullscreen */
 
.video-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
   overflow: hidden; 
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Vidéo prend tout l'espace dispo */
video #video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover; /* pleine surface en gardant ratio */
  background: black;
  outline: none;
}
/* Barre de contrôle en bas */
#controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%); /* Centre horizontalement */
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 100;
  /* Supprimez top/right contradictoires */
}
 

#controls.visible {
  opacity: 1;
}
/* Boutons et sliders */
#controls button,
#controls input[type="range"] {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  padding: 5px 10px;
  transition: background 0.2s;
}
#controls button:hover {
  background: rgba(255, 255, 255, 0.5);
}

#progress {
  width: 200px;
  margin: 0 10px;
}

/* Volume */
.volume {
  display: flex;
  align-items: center;
  gap: 5px;
}
#volumeControl {
  display: flex;
  width: 200px;
}

/* Titre vidéo en haut à gauche */
.video-title {
  position: absolute;
  top: 45px;
  left: 40px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.2rem;
  z-index: 10;
}

@media (max-width: 780px) {
  #controls {
    gap: 40px;
  }
  #controls button{
    padding: 2px 4px;
  }
  #progress {
    display: none;
  }

  #volumeControl {
     display: none;
  }
}



  /* ---------- MUSIC ---------- */
  .page-music {
 background: black;
 color: var(--color-text-inverse);
 margin: 0;
 bottom: 0;
 height: 100vh;
 width: 100vw;
 display: flex;
 align-items: center;
 justify-content: center;
  }
  .page-music .site-header,
  .page-music .site-footer {
    background-color: transparent;
    color: var(--color-text-inverse);
  }
  
  /* ---------- SHORTFILM ---------- */
   .page-shortfilm {
     margin: 0;
     bottom: 0;
     height: 100vh;
     width: 100vw;
     display: flex;
     align-items: center;
     justify-content: center;
     background-color: black;
     color: var(--color-text-inverse);
  }
  .page-shortfilm .site-header,
  .page-shortfilm .site-footer {
    background-color: transparent;
    color: var(--color-text-inverse);
  }
  /* ---------- PHOTOGRAPHY ---------- */

  .page-photography {
    top: 0;
    margin-top: 10px;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    background-color: black;
     }

  .page-photography .site-footer{
    background-color: black;
    color: white;
  }   
     
  .page-photography .site-header {
    background-color: black;
  }
  .page-photography .site-header a{
    color: white;
  }

.gallery-container {
  background-color: black;
  top: 0;
  display: flex;
  flex-wrap: wrap; /* Permet le passage à la ligne */
  gap: 50px; /* espace entre les images */
}

/* Vignettes dans la galerie */
#galleryList,
#imageContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* centrer la grille */
  margin: 80px auto;
  max-width: 1000px; /* optionnel, pour garder la grille compacte */
}
.gallery-container img {
  flex: 2 2 100px; /* base : minimum 200px, peut rétrécir */
  max-width: 90%;
  height: auto;
  object-fit: cover;
}

#galleryList img,
#imageContainer img {
  width: 600px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.9s ease;
  margin: 0; /* margin autour des images géré par gap */
}

.gallery-label {
  position: absolute;
  top: 2px;
  right: 47px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family:'Cormorant Garamond', serif ;
  pointer-events: none;
}

.gallery-item {
  position: relative;
  width: 480px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* /* Overlay pour l'image agrandie */
/* Arrière-plan flouté et centré */
#imageOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Active l'overlay */
#imageOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Image dans l'overlay avec effet de zoom */
#imageOverlay img.overlay-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

/* Zoom effect lors de l’activation */
#imageOverlay.active img.overlay-img {
  transform: scale(1);
}

/* Empêche le scroll arrière */
body.overlay-open {
  overflow: hidden;
}

/* modale amélioré  */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;          /* caché par défaut */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;          /* visible quand active */
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}

#closeModalBtn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #333;
  transition: color 0.2s ease;
}

#closeModalBtn:hover {
  color: #007bff;
}

/* Grid pour les galeries */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Items galeries */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item span {
  margin-top: 0.5rem;
  font-weight: bold;
  text-transform: capitalize;
  user-select: none;
}

/* Ligne retour */
.gallery-item.return {
  grid-column: 1 / span 3;
  justify-content: center;
  font-size: 1.2rem;
  color: #007bff;
  border: 2px dashed #007bff;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.return:hover {
  background-color: rgba(0, 123, 255, 0.1);
}



  /* ---------- MODEL ---------- */
  .page-model {
    background: black;
    color: var(--color-text-inverse);
    margin: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
     }
    

  /* ---------- CREDITS ---------- */
.page-credits::before {
  content: "";
  position: fixed;
  background: url("../assets/photo/Paint/paint.webp") center/cover no-repeat fixed;
  opacity: 0.6;
  z-index: -1;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}

.page-credits {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.page-credits .content {
  width: 80%;
  max-width: 800px;
  background: rgba(255,255,255,0.1);   /* opacité + visibilité de l’image */
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(5px);
  color: #000;
}

@media(max-width: 640px) {
  .page-credits .content {
    width: 90%;
    padding: 1.5rem;
  }
}

   .page-credits .site-title,
   .page-credits .site-footer,
   .page-credits .footer__link{
    background-color:transparent ;
  color: black;
  }

  .page-credits .hamburger span {
      background-color: black; 
   }
  

  /* ---------- IMPRESSUM ---------- */
  .page-impressum {
    background: 
      linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
      color: var( --color-text);
      margin: auto;
      display: flex;
      width: 100vw;
      height: 100vw;
      
  }
  .page-impressum .content{
    padding-top: 100px;
    margin: auto;
    width: 80%;
    margin-right: auto;

  }
  
  
  .page-impressum .site-header,
  .page-impressum .site-footer,
  .page-impressum .footer__link{
  background-color:white ;
  color: black ;
}
 .page-impressum .hamburger span {
    background-color: black; 
   }

  /* ---------- CONTACT ---------- */
.page-contact::before {
    content: "";
    position: fixed;
    background: url("../assets/photo/Paint/paint.webp") center/cover no-repeat fixed;
    opacity: 0.7;
    z-index: -1;
    margin: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
}

.page-contact .hamburger span {
    background-color: black; 
}

.page-contact .site-header,
.page-contact .site-footer,
.page-contact .footer__link {
    background-color: transparent;
    color: black;
}

.page-contact .hamburger {
    background-color: transparent;
}

.page-contact .gallery-link {
    display: none;
}

/* ==============================================
   FORMULAIRE DE CONTACT MODERNISÉ
   ============================================== */
.contact-form-section {
    padding: 2rem 1rem;
    max-width: 800px;
     height: 100vh;
    margin: auto;
    background: transparent;
    overflow-y: auto;
    backdrop-filter: blur(3px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.contact-form {
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    transition: all var(--transition-fast);
}

.form-group input,
.form-group textarea {
    background: transparent;
     padding: 0.75rem;
    border: 1px solid #a2c2ec;
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(85, 85, 255, 0.2);
    outline: none;
    background: white;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* Bouton amélioré */
.form-submit {
    margin-top: 1rem;
    text-align: center;
}

.submit-button {
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: #6b6bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button .button-text {
    transition: opacity 0.2s ease;
}

.submit-button .loading-spinner {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.submit-button.is-loading .button-text {
    opacity: 0;
}

.submit-button.is-loading .loading-spinner {
    opacity: 1;
}

/* Animations améliorées */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Messages d'erreur améliorés */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(229, 62, 62, 0.05);
    border-radius: 4px;
    transform-origin: top;
    transform: scaleY(0);
    height: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-message:not(.hidden) {
    transform: scaleY(1);
    height: auto;
    opacity: 1;
}

/* Messages globaux modernisés */
.message {
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #f0fff4;
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.message.error {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #f56565;
}

/* Honeypot (inchangé) */
.honeypot-container {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Focus visible amélioré */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
  
  /* ==============================================
     MEDIA QUERIES
     ============================================== */
  @media (max-height: 800px) {
  .contact-form {
    gap: 0.1rem;
  }
  .contact-form-section {
    padding: 1rem;
     gap: 0.1rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  .form-row {
    gap: 1rem;
  }
}

@media (max-height: 700px) {
  .contact-form {
    gap: 0.1rem;
  }
  
  .form-group input {
    padding: 0.6rem;
  }
}
  @media (max-width: 960px) {
    .desktop-nav {
      display: none;
    }
  
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    }
  }
@media (max-width: 768px) {
  #controls button,
  #controls input[type="range"] {
    transform: scale(1.5);
  }
  

  .video-title {
    font-size: 1rem;
    padding: 4px 8px;
  }
}
  @media (max-width: 600px) {
    .foothide {
      display: none;
    }
    
    .site-header h1 {
    font-size: 1.2rem;
      
  }
  
    #text1{
 font-size: 30px;
    
  }
  
   #text2{
 font-size: 30px;
    
  }
  #str {
 width: 230px;
  font-size: 20px;
}

  }
  @media (min-width: 960px) {
   
  .hamburger span {
    display: none;
  }
  }
  
  @media (min-width: 600px) {
    .form-row {
      flex-direction: row;
  }
}

