/* Police Melbourne Bold */
@font-face {
  font-family: 'Melbourne';
  src: url('fonts/melbournebold.ttf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'Melbournethin';
  src: url('fonts/melbourne.ttf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'Andaluz';
  src: url('fonts/Andaluz-Regular.otf') format('truetype');
  font-weight: bold;
}

body {
  padding:1vw 1vh;
  overflow-x: hidden;
  display: block;
  font-family: 'Melbourne', sans-serif;
  background-color: #020411;
}
/* Conteneur fixe : aligne logo et menu */
.fixed-container {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 2000px;
  max-height:73px;
  padding: 0 60px;
  display: flex;
  align-items: flex-start; /* aligne en haut */
  justify-content: space-between;
  z-index: 1000;
  box-sizing: border-box;
  pointer-events: none;
}

.fixed-container .logo-bar,
.fixed-container .menu {
  pointer-events: auto;
}

/* Logo */
.logo-bar {
  height: 73px;
  width: 240px;
  background: url(Image/Grand.webp) no-repeat center/contain;
}
.menu a{text-decoration:none;}
/* Menu */
.menu {
  display: flex;
  gap: 23px;
  padding: 14px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.menu-item {
  color: white;
  font-family: 'Melbourne', sans-serif;
  font-size: 25px;
  width: 166px;
  min-height: 53px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.3s ease;
  height: 53px;
}

.menu-item.expanded {
  height: 159px;
}

/* Bouton aide */
.help-button {
  color:white;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  font-family: 'Melbourne', sans-serif;
  transition: background-color 0.2s ease;
}

.help-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Boîte d’aide */
.help-box {
  position: absolute;
  top: 125%; /* juste en dessous du menu */
  right: 55px; /* aligné à droite du menu */
  width: 360px;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 16px;
  font-family: 'Melbourne', sans-serif;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
}

.help-box.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Call-to-action button */
.cta-button {
  width: 645px;
  height: 96px;
  margin: 0 auto;
  border-radius: 90px;
  border: 5px solid white;
  box-shadow: 0px 4px 4px rgba(160, 171, 255, 0.5);
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  font-family: 'Melbourne', sans-serif;
  font-size: 24px;
  color: white;
  background: transparent;
  cursor: pointer;
  transition-duration: 1000ms;
}

.cta-button:hover {
  color: #020411;
  font-size: 30px;
  background-color: white;
}

/* Contenu principal */
main {
  justify-content: center;
  margin-top: 200px;
  text-align: center;
  justify-content: center;
  width: 100vw;
}
.image-box {
  display: flex;
  margin-top: 5%;
  justify-self: center;
  width: fit-content;
}

.img-rect {
  width: 417px;
  height: 590px;
  overflow: visible;
  transition: transform 1s ease;
}

.img-rect img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.4); /* <-- Ombre ici */
}

/* Position initiale */
.rect1 {
  transform: rotate(-12.5deg);
  margin-right: -40px
}
.rect2 {
  transform: rotate(0deg);
}
.rect3 {
  transform: rotate(8deg);
  margin-left: -40px
}

/* Effet hover : éclatement extérieur */
.image-box:hover .rect1 {
  transform: translateX(-150px) rotate(-10deg) translateY(20px);
}
.image-box:hover .rect2 {
  transform: translateY(20px) rotate(0deg) scale(1.1);
}
.image-box:hover .rect3 {
  transform: translateX(150px) rotate(8deg) translateY(20px) ;
}

@keyframes rainbow-text {
  0% { color: red; }
  14% { color: orange; }
  28% { color: yellow; }
  42% { color: green; }
  57% { color: cyan; }
  71% { color: blue; }
  85% { color: violet; }
  100% { color: red; }
}

.cta-button.rainbow {
  animation: rainbow-text 4s linear infinite;
}
.info-section {
  display: flex;
  justify-content: space-between; /* espace entre les deux colonnes */
  align-items: center;           /* centre verticalement */
  gap: 10%; /* espace flexible entre les colonnes */
  width: 100vw;
  max-width: 2000px;
  height:100%;
}
.roman-image {
  justify-content: center;
  width: auto; /* adapte selon le rendu souhaité */
  height: auto;
  transition: transform 1s ease;
  margin-right: 3vw;
}
.roman-image:hover {
transform: scale(1.05);
}

.title-textes {
  margin-top: 10px;
  margin-bottom: -40px;
  font-size: 160px;
  font-family: 'Melbourne', sans-serif;
}
.circle-top {
  width: 260px;
  aspect-ratio:1 ;
  border-radius: 100%;
  background: linear-gradient(
    rgba(161, 173, 255, 1) 0%,
    rgba(161, 173, 255, 1) 50%,
    rgba(161, 173, 255, 0) 100%
);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 140px;
  font-weight: bold;
  margin-bottom:-120px;
}

.grid-textes {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 100px;
  margin-bottom: 100px;
  margin-left: 1vw;
  background-image: url(Image/Grille.svg);
  box-sizing: content-box;
}
.circle-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}
.circle-item:hover {
  transform: scale(1.2);
}
.grid-textes:hover .circle-item:not(:hover) {
  transform: scale(0.9);
  filter: blur(2px);
  opacity: 0.6;
  transition: all 1s ease;
}
/* FOND FLOU uniquement */
.circle-bg {
  position: absolute;
  opacity: 50%;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); /* ou laissé transparent si injecté par JS */
  filter: blur(10px);
  z-index: 0;
}
/* TEXTE NET au-dessus */
.circle-item span {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 130px;
  font-family: 'Melbourne', sans-serif;
  filter: none;
}
.section {
  color:white;
  margin: 15vh auto;
  position: relative;
  width: fit-content;
  display: flex;
  align-items: center;
  height: 100vh;
  max-height: 1000px;
  background-repeat: no-repeat;
  background-position: center;
}

.Forme { 
  color:white;
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover; /* adapte la taille de l'image */
}
.Forme-Texte {
  width: 90%;
  display: flex;
  flex-direction: column;
  width:80%;
}
.Forme-Texte h2 {
  text-align: right;
  width: 90%;
  position: relative;
  color:#ffffff;
  font-family: 'Melbourne', sans-serif;
  font-size: 160px;
  font-weight: bold;
  margin: 0;
}
.Forme-Texte p {
  font-family: 'Melbournethin', sans-serif;
  font-size: clamp(20px,2vw,40px);
  line-height: 1.2;
  width: 90%;
}
.droite {max-width: 1260px; background: url(Image/Forme2.svg) no-repeat left}
.droite .Forme-Texte {  position: absolute;
  top: 50%;       /* le bloc commence au milieu */
  right: 0;       /* aligné à droite */
  transform: translateY(-50%); /* centrage vertical */}

.gauche {max-width: 1260px; background: url(Image/Forme1.svg) no-repeat right}
.gauche .Forme-Texte {  position: absolute;
  top: 18%;       /* le bloc commence au milieu */
  right: 1%;       /* aligné à droite */
text-align: left;}

.blur-wrapper {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

body.blur-active .blur-wrapper {
  filter: blur(3px) brightness(0.7);
}
.Menugrand {display:none;}

.site-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  color: white;
  font-family: 'Melbourne';
  font-size: 16px;
  line-height: 1.5;
  z-index: 9999;
}
.footer-toggle {
  font-size: 25px;
  color:white;
  font-family: 'Andaluz', sans-serif;
  position: fixed;       /* fixé indépendamment */
  bottom: 10px;
  right: 10px;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 16px;
  z-index: 10000;         /* au-dessus du footer */
  transition: color 0.5s ease;
}
.footer-panel {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 20px;
}

.footer-panel.open {
  background-color: rgba(2, 4, 17, 0.95); /* fond sombre semi-transparent */
  max-height: 500px; /* reduit grace aux colonnes */
  padding: 20px;
  overflow-y: scroll;
}

.footer-columns {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 300px; /* responsive */
  min-width: 300px;
}

.footer-column h2 {
  font-family: 'Melbourne', sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-column p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.4;
}

.footer-column a {
  color: #7893FF;
  text-decoration: underline;
}

.footer-panel .copyright {
  margin-top: 20px;
  font-size: 0.85em;
  opacity: 0.7;
}
.footer-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  font-family: 'Melbourne', sans-serif;
  z-index: 10001;
  transition: color 0.5s ease;
}

.footer-close:hover {
  color: #FF64D1; /* rose du gradient par exemple */
}
.footer-toggle:hover {
  color: #FF64D1; /* rose du gradient par exemple */
}
.footer-toggle.hidden {
  display: none;
}

.story-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  width: 100%;
  height: 100%;
  color: white;
  font-family: 'Melbourne', sans-serif;
}

/* Mockup téléphone */
.phone-mockup {
  perspective: 1200px;
}

.phone-frame {
  width: 400px;
  height: 725px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #333;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);

  transform: rotateY(-10deg) rotateX(5deg);
  transition: all 0.3s cubic-bezier(.19,1,.22,1), 
              box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  position: relative;
}
/* Reflet dynamique simulé */
.phone-frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: all 0.3s ease;
}
.phone-frame.hovered::after {
  opacity: 1;
}

.story-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.story {
  min-width: 100%;
  height: 100%;
}

.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texte à droite */
.story-text {
  max-width: 1000px;
}

.story-text h2 {
  font-size: 8em;
  margin-bottom: 20px;
}

.story-text h2 span {
  color: #8d86f1; /* couleur d'accent */
}

.story-text p {
  font-size: 22px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Conteneur des boutons sous le téléphone */
.story-nav-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px; /* espace sous le téléphone */
}
/* Boutons slider */
.story-nav {
  width: 60px;
  height: 40px;
  background: rgba(160, 171, 255, 1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: rotateY(-10deg) rotateX(5deg); /* inclinaison téléphone */
}

/* Bouton gauche = arrondir coins extérieurs gauche */
.story-nav.prev {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Bouton droit = arrondir coins extérieurs droit */
.story-nav.next {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Survol = relief + zoom léger */
.story-nav:hover {
  transform: rotateY(-10deg) rotateX(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(160,171,255,0.6);
}

/* Flèches */
.story-nav svg {
  width: 20px;
  height: 20px;
  fill: white;
}



@media (max-width: 800px) {
body{
   display:flex;
   width: 100%;
   margin: 0px -10px 0px 0px;
  }
 main {
  margin-top: 100px;
 }
   .logo-bar {
     background-position: center center;
     margin-top:0px ;
     background: url("Image/S.webp") no-repeat center / contain;
     height: 100%;
     width: 5vw;
   }
   .fixed-container{
   z-index:10000;
   top: 40px;
   min-width: 100px;
   width: 100%;
   max-width: 100vw;
   justify-content:space-between;
   gap:auto;
   height: 50px;
   }

  .menu {
   flex-direction: flex-start;
   background-image: url(Image/MenuMobile.webp);
   background-size: 25%;
   background-position:center;
   background-repeat:no-repeat;
     background-color:rgba(27, 29, 40, 1) ;
     color: none;
     height: 70%;
     aspect-ratio: 1;
     padding:5px;
   }
   .menu-item, .help-button, .help-box {display:none;}
   .GrandLogo {
    justify-self: center  ;
   }
   .GrandLogo img {
     width: 80%;
     height: 80%;
     object-fit: cover;
   }
   .Menugrand {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  
    /* état fermé */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  
    background-color: rgba(2, 4, 17, 0.95);
    color: white;
    z-index: 999999;
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
 
 
 /* Quand .clicked est activé → visible */
 .Menugrand.clicked {
   opacity: 1;
   position:fixed;
   display: flex;
   justify-content: center;
   align-items: center;
   transform: translateX(0);
   width: 100vw;
   height: 100vh;
 }
 
 .Menugrand ul {
   list-style: none;
   padding: 0;
   text-align: center;
 }
 
 .Menugrand ul li {
   margin: 20px 0;
 }
 
 .Menugrand ul li a {
   color: #ffffff;
   font-size: 28px;
   text-decoration: none;
 }
 
 .Menugrand ul li a:hover {
   color: #FF64D1;
 }
   .cta-button {
     width: 300px;
     font-size: 20px;
   }
   .cta-button:hover {
     font-size: 27px;;
   }
   .image-box {
    box-shadow: none;
    max-width: 100vw;
    margin: 10vh;
  }
  .image-box:hover .rect1 {
    transform: translateX(-75px) rotate(-10deg) translateY(10px);
  }
  .image-box:hover .rect2 {
    transform: translateY(10px) rotate(0deg) scale(1.1);
  }
  .image-box:hover .rect3 {
    transform: translateX(75px) rotate(8deg) translateY(10px) ;
  }
  .img-rect {
    width: 209px;
    height: 295px;
    transition: transform 1s ease;
  }
  .img-rect img {
    box-shadow: none; /* pas d'ombre */
  }
  .gauche-section,.roman-image {
    display:none;
    margin: 0 auto;
    padding: 0 20px;
  }
  .section {
    width: auto;
    max-width: 100vw;
    aspect-ratio: 1;
    height: 100vh;
    max-height: fit-content;
  margin: 1%;}
  .Forme-Texte h2 {
    text-align: right;
    width: 90%;
    position: relative;
    color:#ffffff;
    font-family: 'Melbourne', sans-serif;
    font-size: 120px;
    font-weight: bold;
    margin: 0;
  }
  .Forme { 
    color:white;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 500px; /* adapte la taille de l'image */
  }
  .Forme-Texte p {
    font-family: 'Melbournethin', sans-serif;
    font-size: clamp(15px,2vw,30px);
    line-height: 1.2;
    width: 90%;
}

    .droite {max-width: 100vw;background:none ;}
.droite .Forme-Texte {  
  text-align: right;
  position: absolute;
  top: 50%;       /* le bloc commence au milieu */
  right: 0;       /* aligné à droite */
  transform: translateY(-50%); /* centrage vertical */}

.gauche {max-width: 100vw;background:none ;}
.gauche .Forme-Texte {
    position: absolute;
  top: 18%;       /* le bloc commence au milieu */
  right: 10%;       /* aligné à droite */
text-align: left;}

.gauche .Forme-Texte h2 {
  left:15%;
  font-size: 100px;
}
.gauche .Forme-Texte p {
  width: 100%;
}
.droite .Forme-Texte h2 {
  right:10%;
  font-size: 100px;
}
.story-section {
  flex-direction: column;
  margin-top:1vh;
}
.phone-frame {
  border-radius: 30px;
  width: 150px;
  height: 272px;
  transform: rotateY(0deg) rotateX(0deg);
  margin-top: 10vh;
}
.story-text h2 {
  font-size: 60px;
}
.story-text p {
  font-size: 16px;
  padding: 0 10px;
  text-align: center;
  margin-bottom: 10vh;
}
}
 