/* ============================
            styles.css
   ============================ */

/* Reset / base */
html, body {
   margin: 0;
   padding: 0;
   font-family: "Amatic SC", sans-serif;
   font-style: normal;
   font-weight: 400;
   background: none;
   overflow-y: auto;
   overflow-x: hidden;
}

/* Masquer les barres de défilement */
html {
   scrollbar-width: none;
   -ms-overflow-style: none;
}
html::-webkit-scrollbar {
   width: 0;
   background: transparent;
   display: none;
}

/* Protection des images contre le téléchargement */
img {
   user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   pointer-events: auto;
   -webkit-user-drag: none;
   -khtml-user-drag: none;
   -moz-user-drag: none;
   -o-user-drag: none;
}

img[data-gallery] {
   pointer-events: auto !important;
}

/* Désactiver le menu contextuel sur les images */
img, video {
   -webkit-touch-callout: none;
}

/* ============================
   Vidéo de fond
   ============================ */
#video-container {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
   overflow: hidden;
}
#video-bg {
   width: 100%;
   height: 100vh;
   object-fit: cover;
}

/* ============================
   Menu principal
   ============================ */
.menu-bar {
   background-color: rgba(51, 51, 51, 1);
   padding: 10px 0;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1000;
   box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.menu-container {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   justify-content: center;
   align-items: center;
   position: relative;
}
.menu-items {
   display: flex;
   justify-content: center;
   align-items: center;
}
.menu-item {
   color: #fff0ed;
   margin: 0 10px;
   padding: 10px;
   font-weight: lighter;
   font-size: 2.0em;
   text-decoration: none !important;
   transition: all 0.3s ease;
}
.menu-item:hover {
   color: #8B0000;
   transform: translateY(-2px);
}
.menu-item.active {
   color: #8B0000;
   border-bottom: 2px solid #8B0000;
}

/* Bouton hamburger */
.hamburger-menu {
   display: none;
   cursor: pointer;
   padding: 10px;
   z-index: 1001;
}
.bar1, .bar2, .bar3 {
   width: 30px;
   height: 3px;
   background-color: #fff0ed;
   margin: 6px 0;
   transition: 0.4s;
}
.change .bar1 {
   transform: rotate(-45deg) translate(-6px, 6px);
}
.change .bar2 {
   opacity: 0;
}
.change .bar3 {
   transform: rotate(45deg) translate(-6px, -6px);
}

/* Responsive menu */
@media (max-width: 768px) {
   .menu-container {
      justify-content: flex-start;
   }
   .hamburger-menu {
      display: block;
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
   }
   .menu-items {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: rgba(51, 51, 51, 0.95);
      display: none;
      flex-direction: column;
      width: 100%;
      padding: 10px 0;
   }
   .menu-items.show {
      display: flex;
   }
   .menu-item {
      width: 100%;
      text-align: center;
      padding: 15px;
      font-size: 2em;
   }
}

/* ============================
   Sections
   ============================ */
.parallax {
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-size: 2em;
   position: relative;
   padding-top: 60px;
   scroll-margin-top: 60px;
}

.section-title {
   width: 100%;
   text-align: center;
   margin-bottom: 30px;
   color: white;
   font-size: 2em;
}

/* Accueil */
#accueil {
   background: none;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}
.logo-container {
   margin-bottom: 40px;
   transition: transform 0.3s ease;
}
.logo-container:hover {
   transform: scale(1.05);
}
.logo-container img {
   max-width: 500px !important;
   width: 500px !important;
   height: auto !important;
}
.clickable-logo {
  cursor: pointer;
}

/* ============================
   Section À propos
   ============================ */
#about {
   background-image: url('../media/images-de-fond/fond.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   min-height: 100vh;
   padding: 80px 0;
}
.about-container {
   width: 70%;
   max-width: 100%;
   background-color: rgba(0, 0, 0, 0.7);
   padding: 40px;
   border-radius: 10px;
   display: flex;
   box-shadow: 0 5px 15px rgba(0,0,0,0.5);
   margin: 0 auto;
}
.video-container-about {
   width: 45%;
   display: flex;
   justify-content: center;
   align-items: center;
}
.video-container-about video {
   width: 90%;
   border-radius: 10px;
}
.text-container {
   padding-left: 50px;
   color: white;
   display: flex;
   flex-direction: column;
   justify-content: center;
   width: 50%;
}
.text-container h1 {
   font-size: 2.0em;
   margin-bottom: 60px;
   color: #fff;
}
.text-container p {
   font-family: "Smooch Sans", sans-serif;
   font-size: 1em;
   line-height: 1.2;
}

/* ============================
   Bande dessinée
   ============================ */
#bande-dessinee {
   background-image: url('../media/images-de-fond/Fumée45.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   min-height: 100vh;
   padding: 80px 0;
}
.bd-wrapper {
   width: 100%;
   max-width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   background-color: rgba(0, 0, 0, 0.6);
   padding: 40px 0;
   border-radius: 0;
   box-shadow: 0 5px 15px rgba(0,0,0,0.5);
   margin: 0;
   position: relative;
}

.bd-container {
   width: 100%;
   position: relative;
   -webkit-mask-image: linear-gradient(to right, 
     transparent 0%, 
     rgba(0,0,0,0.5) 100px, 
     rgba(0,0,0,1) 250px, 
     rgba(0,0,0,1) calc(100% - 250px), 
     rgba(0,0,0,0.5) calc(100% - 100px), 
     transparent 100%);
   mask-image: linear-gradient(to right, 
     transparent 0%, 
     rgba(0,0,0,0.5) 100px, 
     rgba(0,0,0,1) 250px, 
     rgba(0,0,0,1) calc(100% - 250px), 
     rgba(0,0,0,0.5) calc(100% - 100px), 
     transparent 100%);
}
.scroll-wrapper {
   display: flex;
   flex-wrap: nowrap;
   gap: 20px;
   overflow-x: auto;
   scroll-snap-type: x proximity;
   -webkit-overflow-scrolling: touch;
   align-items: center;
   padding: 20px 120px;
   width: 100%;
   scrollbar-width: none;
   -ms-overflow-style: none;
   scroll-behavior: smooth;
}
.scroll-wrapper::-webkit-scrollbar {
   display: none;
}
.scroll-item {
   flex: 0 0 auto;
   scroll-snap-align: center;
}
.bd-item {
   width: 350px;
   height: 490px;
   overflow: hidden;
   border-radius: 10px;
   transition: transform 0.3s ease;
}
.bd-item:hover { 
   transform: scale(1.05); 
}
.bd-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   cursor: pointer;
}

/* Contrôles de scroll - FLÈCHES */
.scroll-controls {
   position: absolute;
   top: 50%;
   left: 0;
   right: 0;
   width: 100%;
   height: 0;
   pointer-events: none;
   z-index: 10;
   transform: translateY(-50%);
}

.scroll-button {
   background-color: transparent;
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   border: none;
   padding: 0;
   cursor: pointer;
   transition: all 0.3s ease;
   width: 80px;
   height: 80px;
   pointer-events: all;
   position: absolute;
   top: 0;
   z-index: 11;
   font-size: 0;
   color: transparent;
   text-indent: -9999px;
   overflow: hidden;
}

.scroll-button.scroll-left {
   left: 40px;
   background-image: url('../media/flecheg.png');
}

.scroll-button.scroll-right {
   right: 40px;
   background-image: url('../media/fleched.png');
}

.scroll-button:hover:not(:disabled) { 
   transform: scale(1.1);
   opacity: 0.8;
}
.scroll-button.scroll-left:hover:not(:disabled) {
   border-color: transparent rgba(139,0,0,1) transparent transparent;
}
.scroll-button.scroll-right:hover:not(:disabled) {
   border-color: transparent transparent transparent rgba(139,0,0,1);
}

.scroll-button:disabled {
   opacity: 0.3;
   cursor: not-allowed;
}
.scroll-button.scroll-left:disabled {
   border-color: transparent rgba(139,0,0,0.3) transparent transparent;
}
.scroll-button.scroll-right:disabled {
   border-color: transparent transparent transparent rgba(139,0,0,0.3);
}

/* ============================
   Illustrations
   ============================ */
#illustration {
   background-image: url('../media/images-de-fond/15- fire.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   min-height: 100vh;
   padding: 80px 0;
}
.illustration-wrapper {
   width: 100%;
   max-width: 100%;
   background-color: rgba(0, 0, 0, 0.6);
   padding: 40px 0;
   border-radius: 0;
   box-shadow: 0 5px 15px rgba(0,0,0,0.5);
   display: flex;
   flex-direction: column;
   align-items: center;
   margin: 0;
   position: relative;
}

.illustration-container {
   width: 100%;
   display: flex;
   flex-wrap: nowrap;
   gap: 20px;
   overflow-x: auto;
   scroll-snap-type: x proximity;
   -webkit-overflow-scrolling: touch;
   justify-content: flex-start;
   padding: 20px 120px;
   scrollbar-width: none;
   -ms-overflow-style: none;
   scroll-behavior: smooth;
   -webkit-mask-image: linear-gradient(to right, 
     transparent 0%, 
     rgba(0,0,0,0.5) 100px, 
     rgba(0,0,0,1) 250px, 
     rgba(0,0,0,1) calc(100% - 250px), 
     rgba(0,0,0,0.5) calc(100% - 100px), 
     transparent 100%);
   mask-image: linear-gradient(to right, 
     transparent 0%, 
     rgba(0,0,0,0.5) 100px, 
     rgba(0,0,0,1) 250px, 
     rgba(0,0,0,1) calc(100% - 250px), 
     rgba(0,0,0,0.5) calc(100% - 100px), 
     transparent 100%);
}
.illustration-container::-webkit-scrollbar {
   display: none;
}
.illustration-item {
   flex: 0 0 auto;
   width: 490px;
   height: 490px;
   overflow: hidden;
   border-radius: 10px;
   transition: transform 0.3s ease;
}
.illustration-item:hover { 
   transform: scale(1.05); 
}
.illustration-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   cursor: pointer;
}

/* ============================
   Contact
   ============================ */
#contact {
   background-image: url('../media/images-de-fond/BG-39.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   min-height: 100vh;
}
.contact-container {
   width: 75%;
   max-width: 1200px;
   background-color: rgba(0, 0, 0, 0.6);
   padding: 30px;
   border-radius: 10px;
   box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.contact-container h2 {
   font-size: 2.0em;
}
.contact-form {
   display: flex;
   flex-direction: column;
   gap: 15px;
}
.form-control {
   background-color: rgba(255,255,255,0.1);
   border: none;
   border-bottom: 2px solid #8B0000;
   color: white;
   padding: 10px;
   border-radius: 5px;
   font-family: "Smooch Sans", sans-serif;
   font-size: 0.9em;
}
.form-control::placeholder {
   color: rgba(255,255,255,0.7);
}
.btn-submit {
   font-family: "Smooch Sans", sans-serif;
   background-color: #8B0000;
   color: white;
   border: none;
   padding: 10px 20px;
   border-radius: 5px;
   cursor: pointer;
   transition: all 0.3s ease;
}
.btn-submit:hover {
   background-color: #bb0000;
   transform: scale(1.02);
}

/* Icônes réseaux sociaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(139, 0, 0, 0.7);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white;
}

.social-icon svg {
  width: 30px;
  height: 30px;
}

.social-icon:hover {
  background-color: rgba(139, 0, 0, 1);
  transform: scale(1.1);
}

/* ============================
   Galerie modale
   ============================ */
.modal {
   display: none !important;
   opacity: 0;
   visibility: hidden;
   position: fixed;
   z-index: 1100;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0,0,0,0.95);
   align-items: center;
   justify-content: center;
   transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
   display: flex !important;
   opacity: 1;
   visibility: visible;
}
.gallery-container {
   position: relative;
   width: 100%;
   height: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 80px 20px 100px 20px;
}
.modal-content {
   max-width: 85%;
   max-height: 85%;
   width: auto;
   height: auto;
   opacity: 0;
   transition: opacity 0.25s ease;
   box-shadow: 0 5px 25px rgba(139,0,0,0.5);
   object-fit: contain;
}
.modal.show .modal-content {
   opacity: 1;
}
.gallery-navigation {
   width: 100%;
   position: fixed;
   top: 50%;
   left: 0;
   transform: translateY(-50%);
   display: flex;
   justify-content: space-between;
   padding: 0 20px;
   pointer-events: none;
   z-index: 1102;
}
.gallery-nav {
   background-color: rgba(139, 0, 0, 0.7);
   color: white;
   border: none;
   border-radius: 50%;
   width: 50px;
   height: 50px;
   font-size: 24px;
   cursor: pointer;
   transition: all 0.3s ease;
   pointer-events: all;
}
.gallery-nav:hover {
   background-color: rgba(139, 0, 0, 0.9);
   transform: scale(1.1);
}
.gallery-counter {
   position: fixed;
   bottom: 20px;
   left: 0;
   right: 0;
   text-align: center;
   color: white;
   font-size: 18px;
   background-color: rgba(0, 0, 0, 0.5);
   padding: 5px 0;
   z-index: 1102;
}
.close {
   position: fixed;
   top: 15px;
   right: 25px;
   font-size: 35px;
   color: #fff;
   cursor: pointer;
   z-index: 1102;
   transition: all 0.3s ease;
   background: none;
   border: none;
}
.close:hover { 
   color: #8B0000;
   transform: scale(1.2);
}

/* ============================
   Responsive adjustments
   ============================ */

/* Desktop - Montrer les flèches */
@media (min-width: 1025px) {
   .scroll-button {
      display: flex;
   }
}

/* Tablettes */
@media (max-width: 1024px) {
   .scroll-button {
      display: none;
   }
   
   .about-container {
      width: 96%;
      margin: 0 2%;
   }
   
   .bd-wrapper, .illustration-wrapper {
      width: 96%;
      margin: 0 2%;
   }
   
   #about, #bande-dessinee, #illustration, #contact {
      background-attachment: fixed;
      min-height: 100vh;
   }
}

@media (max-width: 992px) {
   .about-container {
      flex-direction: column;
      padding: 30px;
   }
   .video-container-about, .text-container {
      width: 100%;
      padding: 10px 0;
   }
   .text-container {
      padding-left: 0;
      padding-top: 20px;
   }
   .text-container h1 {
      font-size: 1.8em;
   }
   .text-container p {
      font-size: 1em;
   }
   .contact-container {
      width: 85%;
   }
   .bd-item {
      width: 320px;
      height: 448px;
   }
   .illustration-item {
      width: 280px;
      height: 280px;
   }
}

/* Smartphones - VERSION AVEC FIX VH */
@media (max-width: 768px) {
   .scroll-button {
      display: none !important;
   }
   
   .scroll-controls {
      display: none;
   }
   
   /* Utiliser la variable CSS --vh calculée par JavaScript */
   #about, #bande-dessinee, #illustration, #contact {
      background-attachment: scroll !important;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      height: calc(var(--vh, 1vh) * 100);
      min-height: calc(var(--vh, 1vh) * 100);
      max-height: calc(var(--vh, 1vh) * 100);
      padding: 0;
      position: relative;
   }
   
   .parallax {
      font-size: 1.5em;
      padding-top: 60px;
      padding-bottom: 0;
      height: calc(var(--vh, 1vh) * 100);
      min-height: calc(var(--vh, 1vh) * 100);
   }
   
   /* Wrappers en quasi plein écran */
   .bd-wrapper, .illustration-wrapper {
      width: 100%;
      margin: 0;
      padding: 10px 0;
      background-color: transparent;
      box-shadow: none;
   }
   
   .about-container {
      width: 90%;
      margin: 0 auto;
      padding: 20px;
   }
   
   .contact-container {
      width: 90%;
      margin: 0 auto;
      padding: 20px;
   }
   
   .section-title {
      font-size: 1.8em;
      margin-bottom: 10px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
   }
   
   /* BD et Illustrations en quasi plein écran */
   .bd-item {
      width: 85vw;
      height: calc(85vw * 1.4);
      max-width: 400px;
      max-height: 560px;
   }
   
   .illustration-item {
      width: 85vw;
      height: 85vw;
      max-width: 400px;
      max-height: 400px;
   }
   
   .logo-container img {
      max-width: 250px !important;
   }
   
   .gallery-nav {
      width: 40px;
      height: 40px;
      font-size: 20px;
   }
   
   .scroll-wrapper {
      gap: 15px;
      padding: 10px 5px;
   }
   
   .modal-content {
      max-width: 95%;
      max-height: 85%;
   }
   
   .gallery-container {
      padding: 60px 10px 80px 10px;
   }
   
   .bd-container,
   .illustration-container {
      -webkit-mask-image: none;
      mask-image: none;
   }
   
   .social-icon {
      width: 50px;
      height: 50px;
   }
   
   .social-icon svg {
      width: 25px;
      height: 25px;
   }
}

/* Petits smartphones */
@media (max-width: 576px) {
   #about, #bande-dessinee, #illustration, #contact {
      height: calc(var(--vh, 1vh) * 100);
      min-height: calc(var(--vh, 1vh) * 100);
   }
   
   .parallax {
      font-size: 1.2em;
      padding-top: 60px;
      height: calc(var(--vh, 1vh) * 100);
   }
   
   .section-title {
      font-size: 1.6em;
      margin-bottom: 8px;
   }
   
   .bd-wrapper, .illustration-wrapper {
      padding: 8px 0;
   }
   
   .about-container, .contact-container {
      width: 95%;
      padding: 15px;
   }
   
   /* Images encore plus grandes sur petits écrans */
   .bd-item {
      width: 90vw;
      height: calc(90vw * 1.4);
      max-width: 350px;
      max-height: 490px;
   }
   
   .illustration-item {
      width: 90vw;
      height: 90vw;
      max-width: 350px;
      max-height: 350px;
   }
   
   .logo-container img {
      max-width: 200px !important;
   }
   
   .text-container h1 {
      font-size: 1.5em;
      margin-bottom: 20px;
   }
   
   .text-container p {
      font-size: 0.9em;
   }
   
   .scroll-wrapper {
      gap: 12px;
      padding: 8px 5px;
   }
}

/* Très petits écrans */
@media (max-width: 375px) {
   .menu-item {
      font-size: 1.5em;
      padding: 12px;
   }
   
   .parallax {
      font-size: 1em;
   }
   
   .section-title {
      font-size: 1.4em;
   }
   
   .bd-item {
      width: 92vw;
      height: calc(92vw * 1.4);
   }
   
   .illustration-item {
      width: 92vw;
      height: 92vw;
   }
   
   .text-container h1 {
      font-size: 1.3em;
   }
   
   .text-container p {
      font-size: 0.8em;
      line-height: 1.4;
   }
   
   .logo-container img {
      max-width: 180px !important;
   }
   
   .gallery-nav {
      width: 35px;
      height: 35px;
      font-size: 18px;
   }
   
   .modal-content {
      max-width: 95%;
      max-height: 80%;
   }
   
   .bd-wrapper, .illustration-wrapper {
      padding: 5px 0;
   }
}

/* Ultra petits écrans */
@media (max-width: 320px) {
   .bd-item {
      width: 95vw;
      height: calc(95vw * 1.4);
   }
   
   .illustration-item {
      width: 95vw;
      height: 95vw;
   }
   
   .text-container h1 {
      font-size: 1.1em;
   }
   
   .text-container p {
      font-size: 0.75em;
   }
   
   .logo-container img {
      max-width: 150px !important;
   }
   
   .section-title {
      font-size: 1.2em;
   }
}