@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #0F172A;
  color: #ffffff;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-size: cover;

}

#hero{
  position:relative;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  height:100vh;
  overflow:hidden;
}

#hero .slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0;
  transition:opacity 1.5s ease-in-out;  /* fondu */
  z-index:0;
  pointer-events:none;                  /* clics passent au travers */
  filter:brightness(.20)
}

#hero .slide.active{ 
  opacity:1;
   
}

#hero > *:not(.slide){                  /* tout le contenu “normal” */
  position:relative;
  z-index:1;
}




#Titre {
  font-size: 6rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  font-family: 'Montserrat', sans-serif;
}

.besoin {
  font-size: 1.2rem;
  padding: 2rem;
  text-align: center;
}

header h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 6rem;
  font-family: 'Montserrat', sans-serif;
}

.tabs {
  font-size: 1.3rem;
  letter-spacing: 0.05rem;
  padding: 0.4rem;
  display: flex;
  background-color: #fff;
  border-radius: 1000px;
  list-style: none;
  position: relative;
  color: #121922;
  z-index: 10; /* Ensure tabs are on top */
}

input[type="radio"] {
  display: none;
}

.tab {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
  cursor: pointer;
  z-index: 2;
}

.tabbleue {
  width: 250px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
  cursor: pointer;
  z-index: 2;
}

.tabs .sliderPres {
  width: 250px;
  height: 50px;
  position: absolute;
  border-radius: inherit;
  background-color: #186ddd;
  z-index: 1;
  transition: 0.3s ease;
}

input[type="radio"]:checked + label {
  color: #f1f1f1;
}

input[id="PARTICULIERS"]:checked ~ .sliderPres {
  transform: translateX(0);
}
input[id="PROFESSIONNELS"]:checked ~ .sliderPres {
  transform: translateX(250px);
}

html {
  scroll-behavior: smooth;
}

.tabs-container {
  position: absolute;
  bottom: 0;
  display: flex;
  width: 100%;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
  justify-content: space-around;
  align-items: center;
  height: auto; /* Permet à la hauteur de s'ajuster si les éléments passent à la ligne suivante */
  background-color: #08101d;
  box-shadow: 0 0 20px rgba(111, 111, 111, 0.2);
  z-index: 10; /* Assurez-vous que le conteneur des onglets est au-dessus */
}

.tabs-container.fixed {
  position: fixed; /* Change to fixed when scrolled */
  top: 0; /* Stick to the top when fixed */
  bottom: auto; /* Override the initial bottom position */
}

.tabs-container a,
.tabs-container .dropdown {
  text-decoration: none;
  color: #e8e8e8;
  flex: 1;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}


.tabs-container a:hover {
  background-color: #4c79bd;
  font-weight: bold;
  border-radius: 3px;
}

.tabs-container .dropdown-content {
  visibility: hidden;
  position: absolute;
  background-color: #f1f1f1;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 3px;
}

.tabs-container .dropdown-content a {
  color: black;
  padding: 10px;
  font-size: 1rem;
  text-decoration: none;
  width: 100%;
  display: block;
  font-weight: normal;
}

.tabs-container .dropdown-content a:hover {
  background-color: #dddddd;
  margin-left: 3px;
}

.tabs-container .dropdown:hover .dropdown-content {
  visibility: hidden;
}

.tabs-container .dropdown:hover .dropdown {
  background-color: #4c79bd;
  border-radius: 3px;
  font-weight: bold;
}
.icon {
  width: 3rem;
  margin-right: 1.5rem;
}

.locationheader {
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding-bottom: 5rem;
}

.locationheader p {
  font-size: 1.5rem;
  color: #ffffff;
}

.presentation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 7rem;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 5; /* Ensure presentation is above main content */
}

.plusdinfo {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding-top: 4rem;
  font-family: 'Montserrat', sans-serif;
}

.presentation-text {
  max-width: 48%;
}

/* .presentation-text h3 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
} */

.presentation-text h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

hr {
  width: 100px;
  margin-top: 2rem;
  border: 1px solid #ffffff;
  margin: 2rem auto;
}

.presentation-text p {
  color: #ffffff;
  line-height: 1.6;
  text-align: justify;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.presentation-image {
  max-width: 45%;
}

.presentation-image img {
  width: 100%;
  border-radius: 2px;
}



.carousel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 5rem;
}

main h2 {
  color: #ffffff;
  font-size: 2.5rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  padding-top: 1rem;
}

.carousel hr {
  width: 150px;
  border: 1px solid #ffffff;
  margin: 2rem 0rem 3rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 450px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

.slider {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pCarousel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  position: absolute;
  top: 0;
  text-shadow: 2px 1px 4px rgba(0, 0, 0, 1); /* Ombre noire, bien visible */
  left: 0;
  width: 100%;
  height: 100%;
}

.item .pCarousel {
  transition: opacity 0.3s ease; /* Ajoute une transition pour un effet de fondu */
}

.item.active .pCarousel {
  opacity: 0;
  visibility: hidden;
}


.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255,255,255,0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-child(1) { opacity: 0; }
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  height: 100%;
  transform: none;
  border-radius: 20px;
  box-shadow: none;
  opacity: 1;
}

.item:nth-child(3) { left: 50%; }
.item:nth-child(4) { left: calc(50% + 220px); }
.item:nth-child(5) { left: calc(50% + 440px); }
.item:nth-child(6) { left: calc(50% + 660px); opacity: 0; }
.item:nth-child(7) { left: calc(50% + 660px); opacity: 0; }


.content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: white;
  text-shadow: 2px 1px 4px rgba(0, 0, 0, 1);
  opacity: 0;
  display: none;
}

.content .title {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.content .description {
  line-height: 1.7;
  font-size: 1rem;
  padding: 0.5rem;
  text-align: justify;
  background-color: #42424238;
  border-radius: 5px;
}

.content button {
  width: fit-content;
  background-color: rgba(0,0,0,0.1);
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
}

.nav .btn {
  background-color: rgba(255,255,255,0.5);
  color: rgba(0,0,0,0.7);
  border: 2px solid rgba(0,0,0,0.6);
  margin: 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.nav .btn:hover {
  background-color: rgba(255,255,255,0.3);
}

.gallery {
  padding: 4rem 2rem;
}

.gallery-container {
  display: grid;
  padding: 3rem 2rem 0rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* fond plus sombre */
  z-index: 1;
}


.gallery-item span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
  text-shadow: 0 0 5px black;
}



@media (width > 650px) and (width < 900px) {
  .content .title { font-size: 1rem; }
  .content .description { 
    font-size: 0.7rem; 
  }
  .content button { font-size: 0.7rem; }
  .item {
    width: 160px;
    height: 270px;
  }
  .item:nth-child(3) { left: 50%; }
  .item:nth-child(4) { left: calc(50% + 170px); }
  .item:nth-child(5) { left: calc(50% + 340px); }
  .item:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
}

address {
  line-height: 2;
}

@media (width < 650px) {
  .tabbleue {
    width: 150px;
    height: 30px;
  }
  
  @supports(height: 100svh){
    #hero{ height:100svh; }   /* “small” viewport = barre toujours visible */
  }

  
  input[id="PROFESSIONNELS"]:checked ~ .sliderPres {
    transform: translateX(150px);
  }
  .tabs .sliderPres {
    width: 150px;
    height: 30px;
  }
  .tabs {
    font-size: 0.7rem;
    letter-spacing: 0.02rem;
    padding: 0.2rem;
  }
  .content .title {
    font-size: 0.9rem;
  }
  main h2 {
    font-size: 1.5rem;
  }
  .besoin {
    font-size: 0.9rem;
    padding: 2rem;
    text-align: center;
  }
  .locationheader p {
    font-size: 0.9rem;
  }
  .content .title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin-bottom: 20rem;
  }

  .content .description { 
    font-size: 0.6rem;
    width: 50%; 
  }
  .content button { 
    font-size: 0.5rem; 
    padding: 0.35rem 1rem;
    margin-top: 0.5rem;
  }
  .item {
    width: 130px;
    height: 220px;
  }
  .item:nth-child(3) { left: 50%; }
  .item:nth-child(4) { left: calc(50% + 140px); }
  .item:nth-child(5) { left: calc(50% + 280px); }
  .item:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
}

/* ----------- Responsive Téléphones max-width 500px ----------- */
@media (max-width: 1000px) {
  #Titre {
    font-size: 4.5rem;
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  header h2 {
    font-size: 1.5rem;
    padding-bottom: 7rem;
  }

  .presentation {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }
  .presentation-text, 
  .presentation-image {
    max-width: 100%;
  }
  .carousel {
    padding: 0rem 5rem;
  }
}

@media (max-width: 650px) {
  
  /* Taille du titre plus petite */
  #Titre {
    font-size: 2.5rem;
    text-align: center;
  }

  header h2 {
    font-size: 1rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
  }

  .icon {
    width: 2rem;
    margin-right: 1rem;
  }

  .presentation h1 {
    font-size: 0.9rem;
  }
  .presentation p {
    font-size: 0.8rem;
  }

  .tabs-container a,
  .tabs-container .dropdown {
    width: 50%;
    flex: none;
  }
  a.tab.dropdown {
    width: 100%;
  }
  .tabs-container .dropdown-content a {
    font-size: 0.7rem;
  }


  /* Les onglets sont plus petits */
  .tab {
    width: 100%;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Contenu du carousel adapté */
  .content {
    width: 90%;
    left: 3%;
    font-size: 0.8rem;
  }

  .carousel {
    padding: 0rem 1.5rem;
  }

  .content .description {
    line-height: 1.4;
    font-size: 0.65rem;
    padding: 0.5rem;
  }
  .gallery-item {
    position: relative;
    height: 10rem;
    width: 8rem;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  .gallery-container {
    display: grid;
    padding: 0rem;
    justify-items: center;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
  }
  /* Footer centré et petit */
  footer p {
    font-size: 0.7rem;
    text-align: center;
    padding: 1rem;
  }
}


footer a {
  color: #FF7900;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-container {
  display: flex;
  border-top: 1px solid #4c79bd44;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  padding: 3rem 2rem 1rem 2rem;
  background-color: #08101d;
  color: #ccc;
  text-align: center;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.footer-section h4 {
  font-size: 1.3rem;
  color: #4c79bd;
  margin-bottom: 0.5rem;
}

.footer-hr {
  width: 60px;
  border: 1px solid #4c79bd;
  margin: 0 auto 1.5rem auto;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-section p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #4c79bd44;
  background-color: #08101d;
  padding: 1.5rem;
}

.icon-footer {
  width: 1.2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

