@font-face {
    font-family: 'Calinastiya demo';
    src: url('fonts/Calinastiya demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'title';
    src: url('fonts/title.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: title, normal;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Appliquer le fond flou en arrière-plan */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7c7d2, #d7e4f5, #d9e2cf);
    background-size: cover;
    background-attachment: fixed;
    filter: blur(10px); /* Ajustez l'intensité du flou si nécessaire */
    z-index: -1; /* S'assurer que cela reste en arrière-plan */
    opacity: 0.9; /* Ajustez l’opacité pour un effet plus doux */
}

.navbar {
    position: relative; /* Pour le ::before */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    padding: 20px;
    background-color: transparent;
    z-index: 1;
    margin-bottom: 20px;
}

/* Menu responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        justify-content: flex-start; /* Aligne le menu à gauche sur les petits écrans */
    }

    .menu {
        width: 150px; /* Réduit la largeur du menu sur mobile */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; /* Cacher les liens par défaut sur mobile */
    }

    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 0 0 15px 15px;
        padding: 15px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        gap: 10px;
    }
}


.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row; /* Laisser les éléments alignés en ligne */
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 20px; /* Espace entre les liens */
    text-align: center; /* Centre les textes dans leurs conteneurs */
}

.nav-links a {
    text-decoration: none;
    color: #6E97C2;
    font-weight: 500;
    font-size: 20px;
}

.nav-links a:hover {
    color: #0056b3;
}

/* Menu burger */
.menu-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
  }
  
  .menu-icon button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Menu déroulant */
  .menu {
    position: absolute;
    top: 10px;  /* Réduit l'écart entre la navbar et le menu */
    right: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    width: 200px; /* Largeur fixe */
    display: flex;
    flex-direction: column;
}

  
  .menu.hidden {
    display: none; /* Cache le menu */
  }
  
  .menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .menu li {
    margin: 5px 0; /* Espacement entre les liens */
  }
  
  .menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }
  
  /* Ajout de styles responsive */
  @media (max-width: 768px) {
    .navbar {
      padding: 10px;
    }
  
    .menu {
      width: 150px; /* Réduit la largeur du menu sur mobile */
    }
  }


.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #6E97C2;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Animation pour l'ouverture du menu */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Cacher le menu sur mobile par défaut */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    gap: 10px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; /* Cacher les liens par défaut sur mobile */
    }

    .navbar.open .nav-links {
        display: flex;
    }
}


.nav-links a {
    text-decoration: none;
    color: #6E97C2;
    font-weight: 500;
    font-size: 20px;
}

.main-content {
    text-align: center;
}

.introduction {
    /* Centrage vertical et horizontal du contenu */
    display: flex; /* Utiliser Flexbox */
    flex-direction: column; /* Pour empiler le contenu verticalement */
    align-items: center; /* Centrer horizontalement */
    justify-content: center; /* Centrer verticalement */
}


/* Par défaut, l'espacement sous le titre */
.introduction h1 {
    font-family: Calinastiya demo, normal;
    font-size: 145px;
    font-weight: bold;
    color: #6E97C2;
    margin-bottom: 70px; /* Espacement par défaut */
}

.subtitle {
    font-size: 28px;
    color: #6E97C2;
    margin-bottom: 40px;
}

.product-highlight {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.product-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 25px;
}

.explore-button {
    font-family: title, normal;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 13px 30px;
    font-size: 20px;
    cursor: pointer;
    margin-top: 45px;
}

.explore-button:hover {
    background-color: #0056b3;
}


/* Style pour le titre en dehors du fond coloré */
.titre {
    font-size: 55px;
    font-weight: bold;
    color: #6E97C2;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px; /* Espacement entre le titre et la section */
}

.qui-suis-je {
    background-color: #f5f5f7;
    padding: 20px;
    margin: 0 auto 40px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 25px;
}

.qui-suis-je-content {
    display: flex;
    align-items: flex-start; /* Aligner le contenu en haut */
}

.qui-suis-je-image {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    margin-right: 20px;
}

.qui-suis-je p {
    font-size: 22px;
    color: #6E97C2;
    margin-top: 0; /* Enlever le margin-top pour aligner le texte en haut */
    line-height: 1.6;
}

.mes-services {
    background-color: #f5f5f7;
    padding: 20px;
    margin: 0 auto 40px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 25px;
}

.mes-services-content {
    display: flex;
    align-items: flex-start; /* Aligner le contenu en haut */
    justify-content: space-between; /* Placer le texte à gauche et l'image à droite */
}

.mes-services-image {
    max-width: 550px;
    width: 100%;
    border-radius: 15px;
    margin-left: 20px; /* Mettre la marge à gauche pour séparer du texte */
    order: 2; /* Positionner l'image après le texte */
}

.mes-services-image2 {
    max-width: 550px;
    width: 100%;
    border-radius: 15px;
    margin-right: 20px;
}

.mes-services p {
    font-size: 25px;
    color: #6E97C2;
    margin-top: 0; /* Enlever le margin-top pour aligner le texte en haut */

}

.explore-button-services {
    font-family: title, normal;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 13px 50px;
    font-size: 20px;
    cursor: pointer;
    margin-top: 45px;
}

.explore-button-services:hover {
    background-color: #0056b3;
}


.faq-section {
    position: relative; /* Nécessaire pour que ::before soit positionné par rapport à .faq-section */
    font-family: title, normal;
    padding: 50px 0;
    background-color: transparent; /* Supprimer la couleur de fond ici */
    z-index: 1; /* Place le contenu au-dessus du fond flou */
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(10px); /* Appliquer un flou */
    opacity: 0.8; /* Ajustez l'opacité pour un effet plus subtil */
    z-index: -1; /* Place le fond flou derrière le contenu de la section */
    border-radius: 15px; /* Ajoute des coins arrondis pour un effet plus doux */
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-container h2 {
    font-family: title, normal;
    font-size: 55px;
    margin-bottom: 20px;
    color: #6E97C2;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #6E97C2;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: title, normal;
    font-size: 25px;
    color: #6E97C2;
    text-align: left;
    padding: 15px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #6E97C2;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, background-color 0.3s ease;
    color: #6E97C2;
    padding: 10 15px;
    border-radius: 10px;
    background-color: transparent;
    margin-bottom: 10px;
}

.faq-answer.open {
    background-color: #f5f5f7;
    color: #6E97C2;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.faq-question {
    font-size: 25px;
    padding: 10px 15px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 25px;
    margin-left: 10px;
    transition: transform 0.3s ease; 
}

.faq-question.active .faq-icon {
    transform: rotate(180deg); 
}

.faq-answer p {
    padding: 10px 0;
    margin-bottom: 40px;
}

.faq-question.active .faq-icon {
    transform: rotate(0deg);
}

.faq-question:not(.active) .faq-icon {
    transform: rotate(45deg);
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.hidden {
    display: none; /* Cache le popup par défaut */
}

.popup-content {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    font-size: 28px;
    color: #6E97C2;
    margin-bottom: 20px;
}

.popup-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.popup-content a {
    color: #007bff;
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    cursor: pointer;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}


/* Global media query pour ajuster la mise en page sur les petits écrans */
@media (max-width: 768px) {

    .introduction {
        padding: 20px;
        text-align: center;
    }

    .introduction h1 {
        font-size: 150px;
    }

    .subtitle {
        font-size: 18px;
    }

    .product-highlight {
        width: 100%;
    }

    .product-video {
        max-width: 100%;
        height: auto;
    }

    .qui-suis-je-content,
    .mes-services-content {
        flex-direction: column;
        align-items: center;
    }

    .qui-suis-je-image,
    .mes-services-image,
    .mes-services-image2 {
        margin: 0 0 20px 0;
        width: 90%;
        max-width: 300px;
    }

    .mes-services p,
    .qui-suis-je p {
        text-align: center;
    }

    .faq-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .introduction h1 {
        font-size: 100px;
    }

    .titre {
        font-size: 35px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer p {
        font-size: 16px;
    }
}
