/* --- Polices --- */
@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;
}

/* --- Global --- */
body {
  background-color: #020411;
  font-family: 'Melbourne', sans-serif;
  display: flex;
  justify-content: center;
  padding: 50px;
  padding-top: 200px;
}
h1 {
  color: white;
}

/* --- Menu principal --- */
.Menugrand { display: none; }

/* --- Conteneur fixe --- */
.fixed-container {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1940px;
  max-height: 73px;
  padding: 0 60px;
  display: flex;
  align-items: flex-start;
  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-image: url(../../Image/Grand.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Menu */
.menu {
  display: flex;
  gap: 23px;
  padding: 14px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
}
.menu a { text-decoration: none; }
.menu-item {
  color: white;
  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;
  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%;
  right: 55px;
  width: 360px;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 16px;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
}
.help-box.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Bouton CTA --- */
.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-content: center;
  font-size: 24px;
  color: white;
  background: transparent;
  cursor: pointer;
  transition: all 1s ease;
}
.cta-button:hover {
  color: #020411;
  font-size: 30px;
  background-color: white;
}
.blur-wrapper {
  transition: filter 0.3s ease, opacity 0.3s ease;
}
body.blur-active .blur-wrapper {
  filter: blur(3px) brightness(0.7);
}

/* --- Cartes de prix --- */
.pricing-container {
  display: flex;
  flex-direction: row;
  gap: 1vw;
  flex-wrap: wrap;
  justify-content: center;
  max-height: 800px;
  min-height: fit-content;
  width:100%;
  border-radius: 20px;
}
.pricing-card {
  background-color: transparent;
  transition: all 0.6s ease;
  max-height: 100%;
  width: 25vw;
  height: 30vw;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  color: white;
  position: relative;
  border: 6px solid rgb(221, 221, 221);
  background-clip: padding-box;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.pricing-card img {
  margin-top: 10%;
  width: 460px;
  height: 140px;
  min-height: 50px;
  object-fit: cover;
  margin-bottom: 20px;
  justify-self: bottom;
  border-radius: 15px;
  max-width: 100%;
  transition: all 1s ease;
}
.pricing-card img:hover  {scale: 1.05;}
.pricing-card h2 {
  font-size: 50px;
  margin-bottom: 10px;
  font-family: 'Andaluz', sans-serif;
}
.pricing-card p{
  height:10%;
}
.pricing-container:hover .pricing-card:not(:hover) {
  filter: brightness(0.7);
}

/* --- Boutons --- */
.Choisir {
  justify-self: center;
  width: 40%;
  padding: 20px 40px;
  border: none;
  background-color:  rgb(158, 170, 255, 0.2);
  font-size: 50px;
  font-family: "Melbourne", sans-serif;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.Choisir:hover {
  scale: 1.05;
  background-color:  rgb(158, 170, 255, 0.4);
}

/* --- Switcher --- */
.pricing-switch {
  transition: all 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  color: white;
  font-size: 20px;
}

/* Switch style */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.3);
  border-radius: 34px;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color:  rgb(158 170 255);
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- Transition fluide des cartes --- */
.hidden-card {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease;
  height: 0;
  overflow: hidden;
}
.expanded-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: -5%;
  align-items: center;
}
.expanded-card p {display:none}
.expanded-card .price {
  font-size: 90px;
}
.expanded-card img {
  width: 100%;
  margin-top: 3%;
  margin-bottom: 1%;
  border-radius: 30px;
}
.expanded-card img:hover { scale: 1.02; }
.show-card {
  opacity: 1;
  transform: scale(1);
  height: auto;
  transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease;
}

/* --- Footer --- */
.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;
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;
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);
max-height: 500px;
padding: 20px;
overflow-y: scroll;
}
.footer-columns {
display: flex;
flex-direction: row;
gap: 40px;
flex-wrap: wrap;
}
.footer-column {
flex: 1 1 300px;
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; }
.footer-toggle:hover { color: #FF64D1; }
.footer-toggle.hidden { display: none; }

/* --- Titres --- */
.section-title {
  margin: 10vh auto;
  font-size: 90px;
  width: fit-content;
  font-family: 'Andaluz', serif;
}
.Menugrand {display:none;}
@media screen and (max-width: 1100px) {
  .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);
    height: 70%;
    aspect-ratio: 1;
    padding:5px;
 }
 .menu-item, .help-button, .help-box {display:none;}
 .Menugrand {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    background-color: rgba(2, 4, 17, 0.95);
    color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
 }
 .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: white;
    font-size: 28px;
    text-decoration: none;
 }
 .Menugrand ul li a:hover { color: #FF64D1; }
 .cta-button {
    width: 300px;
    font-size: 20px;
 }
}
/* --- MOBILE --- */
@media (pointer: coarse) and (max-width: 800px) {
  body{
     display:flex;
     width: 100%;
     margin: 0px -10px 0px 0px;
     padding: 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);
     height: 70%;
     aspect-ratio: 1;
     padding:5px;
  }
  .menu-item, .help-button, .help-box {display:none;}
  .Menugrand {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     transform: translateX(100%);
     opacity: 0;
     pointer-events: none;
     background-color: rgba(2, 4, 17, 0.95);
     color: white;
     z-index: 9999;
     display: flex;
     justify-content: center;
     align-items: center;
     transition: transform 0.5s ease, opacity 0.5s ease;
  }
  .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: white;
     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; }
  a { height:100%; width: 100%; text-decoration: none; }
  .Choisir {
      padding: 2px 4px;
      background-color:  rgb(158, 170, 255, 0.2);
      font-size: 15px;
      font-family: "Melbourne", sans-serif;
      color: white;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.3s;
      width: fit-content;
  }
  .Choisir:hover {
      scale: 1.05;
      background-color:  rgb(158, 170, 255, 0.4);
  }
  .pricing-container {
      display: flex;
      flex-direction: column;
      gap: 2vw;
      flex-wrap: wrap;
      justify-content: center;
      width:100%;
      border-radius: 20px;
  }
  .pricing-card {
      width: 80vw;
      height: auto;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      border: 6px solid rgb(221, 221, 221);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }
  .pricing-card img { display:none; }
  .pricing-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Andaluz', sans-serif;
  }
  .section-title {
    margin: 0px auto;
    font-size: 2em;
    text-align: center;
    font-family: 'Andaluz', serif;
  }
}

/* --- TABLETTE --- */
@media screen and (min-width: 801px) and (max-width: 1200px) {
body {
  padding: 30px;
  padding-top: 150px;
}
.fixed-container { top: 60px; padding: 0 30px; }
.cta-button {
  width: 400px;
  height: 80px;
  font-size: 20px;
}
.cta-button:hover { font-size: 26px; }
.pricing-container {
  flex-wrap: wrap;
  gap: 20px;
}
.pricing-card {
  width: 45%;   /* 2 colonnes */
  height: auto;
}
.pricing-card img {
  width: 100%;
  height: auto;
}
.section-title {
  font-size: 50px;
  margin: 8vh auto;
}
.footer-columns { gap: 20px; }
.footer-column { min-width: 200px; }
}
