@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #754ef9;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

span {
    color: var(--main-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
  font-size: 2.2rem;
  color: var(--main-color);
  font-weight: 700;
}

.navbar a {
  display: inline-flex;
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px; /* épaisseur du underline */
  background-color: var(--main-color);
  border-radius: 2px;
}

.navbar a.active::after {
  width: 100%;
  transition: none;
}

.navbar.active {
  background: var(--bg-color);
  box-shadow: 0 .5rem 1rem var(--shadow-color);
}

.navbar a.active,
.navbar a:hover {
  color: var(--main-color);
}

.icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#darkMode-icon {
  font-size: 20px;
}

#Menu-Icon {
  display: none;
}

section {
  padding: 8rem 5%;
}

.home {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  overflow: hidden;
  padding: 0 2rem;
  color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
  z-index: 0;
}

/* Overlay sombre pour contraste */
.overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  z-index: -1;
}

/* Contenu texte centré */
.home-content {
  max-width: 600px;
  text-align: center;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  z-index: 10;
}

/* Titres ultra impactants */
.home-content h1 {
  color: var(--text-color);
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  letter-spacing: 0px;
  text-shadow: 0 0 10px var(--shadow-color);
}

.home-content h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-shadow: 0 0 8px var(--shadow-color);
}

.btn {
  background-color: var(--bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 5px var(--main-color);
  padding: 1.2rem 3rem;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 10px;
  animation: pulse 1.5s infinite;
  transition: 0.4s ease;
  display: inline-block;
}

/* Bouton premium */
.btn:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 0 5px var(--main-color);
}

/* Image/logo stylisée */
.home-img img {
  border-radius: 50%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 0 25px var(--shadow-color);
  animation: fadeInScale 1.5s ease forwards;
  opacity: 0;
  transform: scale(0.7);
}

/* Animations */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--main-color);
  }
  50% {
    box-shadow: 0 0 20px var(--main-color);
  }
}


/* === SECTION STATS === */
.stats {
  padding: 80px 5%;
  background: var(--main-color);
  text-align: center;
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode .stats {
  background: var(--bg-color);
  color: var(--text-color);
}

.stats .heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--bg-color);
}

.stats .heading span {
  color: var(--bg-color);
}

/* === ALIGNEMENT FLEX === */
.stats-content {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Permet de passer à la ligne sur petits écrans */
}

.stat-item {
  flex: 1 1 45%; /* Prend environ la moitié de l’espace */
  max-width: 600px;
  background: var(--bg-color);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-bottom: 30px; /* Espace vertical quand en colonne */
}

.dark-mode .stat-item {
  background: var(--bg-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.chart-container {
  width: 100%;
  height: 300px;
}

.chart-container h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: inherit;
}

.about {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  border-radius: 50%;
  width: 75%;
}

.about-content {
  max-width: 75%;
}

.about-content .heading {
  font-size: 3.5rem;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.services {
  padding: 10rem 5%;
  background: var(--bg-color);
}

.services .heading {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.services-box.special-offer {
  position: relative;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color) 100%);
  border-radius: 30px;
  border: 3px dashed #3498db;
  box-shadow: 0 10px 40px rgba(52, 152, 219, 0.3);
  overflow: hidden;
  padding: 3rem 2.5rem;
  text-align: center;
}

/* Bande promo rouge diagonale */
.services-box.special-offer .ribbon {
  position: absolute;
  top: 15px;
  left: -35px;
  transform: rotate(-45deg);
  background: #e74c3c;
  color: #fff;
  padding: 5px 50px;
  font-weight: bold;
  font-size: 1.6rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Icône cadeau */
.services-box.special-offer .icon-container {
  font-size: 4rem;
  color: #3498db;
  margin-bottom: 1rem;
}

/* Titre */
.services-box.special-offer h3 {
  color: #3498db;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-top: 5.2rem;
}

.services-box.special-offer h3 span {
  color: #3498db;
}

/* Liste */
.services-box.special-offer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.services-box.special-offer ul li {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 0.6rem;
}

/* Box prix */
.services-box.special-offer .price-box {
  background: #3498db;
  color: var(--bg-color);
  font-size: 1.6rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  line-height: 1.6;
  text-align: center; /* texte centré ici */
  font-weight: 600;
}

/* Bouton CTA */
.services-box.special-offer .btn-resa .cta-button {
  display: inline-block;
  font-size: 14px;
  background: #e74c3c;
  margin-bottom: 1.5rem;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
    border: 2px solid #e74c3c;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}

.services-box.special-offer .btn-resa .cta-button:hover {
  background: var(--bg-color);
  color: #e74c3c;
  border: 2px solid #e74c3c;
  transform: translateY(-3px);
  transition: 0.3s ease;
}



.services-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform .3s ease, box-shadow .3s ease;
  border-top: 5px solid var(--main-color);
}

.services-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(18, 18, 18, 0.15);
}

.services-box i {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.services-box h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.services-box h3 span {
  color: var(--main-color);
}

.services-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.services-box ul li {
  font-size: 1.6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--bg-color);
}

.price-box {
  background: var(--main-color);
  color: var(--bg-color);
  font-size: 1.6rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: auto;
}

.price-box span {
  color: var(--bg-color);
  font-weight: bold;
}

.gallery .heading {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* pour montrer que c'est cliquable */
}

.gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.testimonials {
    flex-direction: column;
    padding: 100px 0;
}

.container {
    max-width: 1170px;
    margin: auto;
    padding: 0 15px;
}

.testimonials .heading {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
}

.testimonials-item {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--main-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonials-item .info {
    display: flex;
    align-items: center;
}

.testimonials-item img {
    max-width: 8rem;
    border-radius: 50%;
    margin-right: 2rem;
    vertical-align: middle;
}

.testimonials-item .name {
    font-size: 24px;
    text-transform: capitalize;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.testimonials-item .service {
    text-transform: capitalize;
    color: #666666;
    font-weight: 500;
}

.testimonials-item p {
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.testimonials-item .rating {
    margin-top: 15px;
    font-size: 14px;
    color: #fffb00;
}

.testimonials .swiper-pagination {
    position: relative;
    margin-top: 4rem;
    margin-bottom: -4rem;
    bottom: auto;
}

.testimonials .swiper-pagination-bullet {
    height: 12px;
    width: 12px;
    background-color: var(--main-color);
}

.booking .heading {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.booking-form {
  max-width: 600px;
  margin: 0 auto 5rem auto;
  background: var(--container-color);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.booking-form .field {
  margin-bottom: 0;
}

.booking-form .item {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--main-color);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-color);
  background: var(--bg-color);
}

.booking-form .item option {
  color: var(--text-color);
  background-color: var(--bg-color);
}

.booking-form .error-text {
  font-size: 12px;
  color: red;
  margin-top: 5px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.booking-form .field.error .error-text {
  display: block;
  opacity: 1;
}

.booking-form button {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  background: var(--main-color);
  border-radius: .6rem;
  font-size: 1.6rem;
  color: var(--white-color);
  letter-spacing: .1rem;
  font-weight: 600;
  border: .2rem solid transparent;
  cursor: pointer;
  transition: .5s ease;
  
}

.booking-form button:hover {
  background: transparent;
  color: var(--main-color);
  border-color: var(--main-color);
}



.contact .heading {
    text-align: center;
    font-size: 30px;
}

.contact form {
    width: 75%;
    text-align: center;
    margin-left: 12.5%;
    margin-bottom: 5rem;
}

form .input-box {
    display: flex;
    justify-content: space-between;
}

.input-box .input-field {
    width: 49%;
} 

.form .btn {
  background-color: var(--bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 5px var(--main-color);
  padding: 1.2rem 3rem;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 10px;
  animation: pulse 1.5s infinite;
  transition: 0.4s ease;
  display: inline-block;
}

/* Bouton premium */
.form .btn:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 0 5px var(--main-color);
}

.field .item {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--main-color);
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-color);
    margin: 12px 0;
}

.field.error .item {
    border-color: red;
}

.field .item::placeholder {
    color: var(--text-color);
}

.field .error-text {
    font-size: 12px;
    color: red;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.field.error .error-text {
    display: block;
    opacity: 1;
}

form .textarea-field textarea {
    height: 150px;
}

form .textarea-field .item {
    resize: none;
}

form .textarea-field .error-text {
    margin-top: -10px;
}

.footer {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  background: var(--main-color);
  color: var(--white-color);
  padding: 2rem;
  padding-bottom: 6rem;
}

.footer p {
  font-size: 16px;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .home,
  .about {
    flex-direction: column;
    text-align: center;
  }
  #Menu-Icon {
    display: block;
    font-size: 3rem;
    cursor: pointer;
  }
  #darkMode-icon {
    font-size: 2.5rem;
  }
  .icons {
    gap: 0.5rem;
  }
  .navbar {
    display: none;
    flex-direction: column;
    background: var(--bg-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding-bottom: 2rem;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    font-size: 18px;
    position: relative;
    display: inline-block; /* important pour l’underline */
    padding-bottom: 2px;
    margin: 0 auto; /* Centre le texte dans le lien */
    margin-bottom: 8px;
  }

  .navbar a.active::after,
  .navbar a:hover::after {
    width: 100%;
  }

  .navbar a.active,
  .navbar a:hover {
    color: var(--main-color);
  }
  .home-content {
    padding-top: 15rem;
  }
  .home-img img {
    display: none;
  }
  .about-img img {
    width: 50%;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-content h1 {
    font-size: 2.5rem;
  }
  .home-content h2 {
    font-size: 2rem;
    max-width: 250px;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-iconTop {
    margin-top: 1rem;
  }
  .stats-content {
    flex-direction: column;
  }
  
  .stat-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 425px) {
  body {
    font-size: 90%;
  }
  .gallery-container {
    grid-template-columns: 1fr;
  }
  .about-content p {
    font-size: 18px;
  }
  .services-box.special-offer .btn-resa {
    margin-bottom: 2rem;
  }
}

@media (max-width: 320px) {
  .booking-form .item option {
    font-size: 14px;
  }
}