@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
h3 {
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.8rem;
    color: #ffffff; /* Couleur claire pour les titres */
}
body {
    font-family: "Roboto", sans-serif;
    color: white;
    background-color: #1d1d1d;
}
body::before {
    z-index: 0; /* Assure que le fond reste en dessous */
}
/* Navigation */
nav {
    display: flex;
    justify-content: space-between; /* Espacement entre le logo et les liens */
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.transparent {
    background-color: transparent;
    backdrop-filter: none;
}

nav.scrolled {
    background-color: rgba(29, 29, 29, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav img {
    max-height: 50px;
    margin-right: 20px;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.8);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Background header */
.background-header {
    margin: 0;
    width: 100%;
    height: 80vh;
    background: repeating-conic-gradient(
        from 30deg,
        #0000 0 120deg,
        #3c3c3c 0 180deg
    )
    calc(0.5 * 200px) calc(0.5 * 200px * 0.577),
    repeating-conic-gradient(
        from 30deg,
        #1d1d1d 0 60deg,
        #4e4f51 0 120deg,
        #3c3c3c 0 180deg
    );
    background-size: 200px calc(200px * 0.577);
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-header {
    text-align: center;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
}

.title-header h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.title-header h2 {
    font-size: 3rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 12px;
    color: transparent;
    background-color: black;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, white, rgba(255, 255, 255, 0.5));
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
    display: inline-block;
    animation: fade-in-text 2s ease-out;
}

.title-header a {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: transparent;
    transition: all 0.3s ease;
}

.title-header a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Animation de texte */
@keyframes fade-in-text {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#avantage{
    margin-bottom: 50px;
}

/*description */
.description {
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    text-align: justify;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.1); /* Fond léger pour contraster */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.description p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #eaeaea;
}

.description strong {
    color: #ffffff; /* Texte plus clair pour les mots importants */
    font-weight: 700;
}


/* Galerie */
.galerie {
    margin-top: 20px;
    display: flex; /* Affichage en ligne */
    gap: 40px; /* Espacement entre les images */
    justify-content: center; /* Centre horizontalement */
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire (utile pour le responsive) */
    margin: 50px;
}

.galerie img {
    width: 400px;
    height: 400px;
    object-fit: cover; /* S'assure que l'image s'adapte bien */
    position: relative; /* Nécessaire pour la superposition */
    transition: transform 0.3s ease; /* Effet de zoom (facultatif) */
}

.galerie img:hover {
    transform: scale(1.05); /* Zoom au survol (facultatif) */
}

/* Pseudo-élément pour ajouter le filtre noir */
.galerie img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Transparent par défaut */
    transition: background-color 0.3s ease;
    pointer-events: none; /* Empêche l'élément de bloquer le survol */
}

.galerie img:hover::after {
    background-color: rgba(0, 0, 0, 0.5); /* Noir semi-transparent au survol */
}

/*service*/
.icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espace entre les div */
  }
  
  .icon-container > div {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px; 
    height: 300px; 
    border-radius: 10px;
    transition: background-color 0.3s ease;
  }
  
  .icon-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px; 
    height: 300px; 
    border-radius: 10px;
    transition: background-color 0.3s ease;
  }
  .icon-container > div img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .icon-container > div img:hover {
    padding: 20px;
    width: 75px;
    height: 75px;
 background: rgba(255, 255, 255, 0.1); /* Légère transparence pour les div */
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Effet d'ombre subtile */
    border-radius: 50%;
  }
  
  .icon-container > div h4 {
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
  }
  
  .icon-container > div p {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
  }
  #prestation {
    font-family: 'Arial', sans-serif;
    padding: 20px;
    background: rgba(0, 0, 0, 0.33);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.5px);
    -webkit-backdrop-filter: blur(6.5px);
    max-width: 1200px; /* Largeur maximale */
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
    gap: 20px; /* Espacement entre les sections */
}

#prestation h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #eaeaea;
    margin-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    display: inline-block;
    padding-bottom: 5px;
}

#prestation section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#prestation section div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2); /* Transparence supplémentaire pour différencier les cartes */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#prestation section div p:first-child {
    font-style: italic;
    font-family: 'Cursive', sans-serif;
    font-size: 1rem;
    color: #eaeaea;
}

#prestation section div p:last-child {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
}
/*contacte */
#contacte {
    padding: 20px;
    background: rgba(0, 0, 0, 0.33);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.5px);
    -webkit-backdrop-filter: blur(6.5px);
    max-width: 80%;
    margin: 40px auto;
    color: white;
}

#contacte h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

#contacte form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contacte form label {
    font-size: 1rem;
}

#contacte form input, 
#contacte form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

#contacte form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contacte form button:hover {
    background: rgba(255, 255, 255, 0.4);
}
/*pop up mail*/
#notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 128, 0, 0.9); /* Fond vert pour succès */
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999; /* Assure que la notification passe au-dessus de tout */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#notification {
    position: fixed; /* Toujours au-dessus */
    top: 20px;
    left: 20px;
    z-index: 99999; /* Priorité maximale */
    background: rgba(0, 128, 0, 0.95); /* Fond opaque pour bien se démarquer */
}

#notification.error {
    background: rgba(255, 0, 0, 0.9); /* Fond rouge pour les erreurs */
}

#notification.show {
    opacity: 1;
    visibility: visible;
}

#notification button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/*footer*/
#footer {
    background-color: #1d1d1d;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

#footer .footer-logo {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

#footer .footer-logo img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

#footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

#footer .footer-column {
    flex: 1;
    max-width: 300px;
}

#footer .footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #ffffff;
}

#footer .footer-column ul {
    list-style: none;
    padding: 0;
}

#footer .footer-column ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #cccccc;
}

#footer .footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

#footer .footer-column ul li a:hover {
    color: #b5b5b5;
}

#footer .footer-column p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
}

#footer .footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #aaaaaa;
}

#footer .footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    #footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    #footer .footer-column {
        max-width: none;
        text-align: center;
    }
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Colonne pour le menu */
        align-items: center;
        padding: 10px;
    }

    nav img {
        margin-bottom: 10px; /* Logo au-dessus des liens */
    }

    nav ul {
        flex-direction: row; /* Lier horizontalement */
        justify-content: space-between;
        width: 100%;
        align-items: flex-start;
    }

    nav ul li {
        margin: 5px 0; /* Espacement vertical */
    }

    .title-header h1 {
        font-size: 5rem; /* Réduction de la taille du titre */
    }

    .title-header h2 {
        font-size: 2.5rem; /* Réduction de la taille du sous-titre */
    }

    .title-header a {
        font-size: 1rem; /* Réduction de la taille du bouton */
    }
    .galerie {
        display: grid;
        grid-template-rows: 3fr;
        justify-content: center; /* Aligne les éléments comme avant */
    }

    .galerie img {
        width: 350px; /* Redimensionne les images pour mobile */
        height: 350px; /* Ajuste aussi la hauteur */
    }
    .icon-container {
        margin: auto;
        flex-direction: column;
        max-width: 80%;
      }
    
      .icon-container > div {
        width: 100%;
        height: auto;
      }
      #prestation {
        grid-template-columns: repeat(1, 1fr); /* Deux colonnes */
    }
}
/*animation*/
/* Animation d'apparition pour les sections */
@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px); /* Translation vers le bas */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Position finale */
    }
}

/* Animation d'apparition pour les enfants (textes) */
/* Sections */
#prestation section {
    opacity: 0; /* Caché au départ */
    transform: translateY(30px); /* Position initiale en bas */
    transition: opacity 0.8s ease, transform 0.8s ease; /* Transition douce */
}

/* Enfants */
#prestation section > div {
    opacity: 0; /* Caché au départ */
    transform: translateY(20px); /* Position initiale en bas */
    transition: opacity 0.6s ease, transform 0.6s ease; /* Transition douce */
}

/* Animation pour les enfants */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px); /* Translation légère */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Position finale */
    }
}





/* Animation d'apparition depuis le bas */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px); /* Légère translation vers le bas */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Position finale */
    }
}

/* État initial */
/* Animation depuis la gauche */
@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px); /* Départ à gauche */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Arrivée à la position initiale */
    }
}

/* Animation depuis le haut */
@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px); /* Départ en haut */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Arrivée à la position initiale */
    }
}

/* Animation depuis la droite */
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px); /* Départ à droite */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Arrivée à la position initiale */
    }
}

/* Par défaut, les images sont cachées */
.galerie .image-container {
    opacity: 0; /* Caché avant l'animation */
}
/* Animation pour faire monter depuis le bas */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px); /* Départ légèrement en dessous */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Arrivée à sa position finale */
    }
}


/* Animation activée */
.animated-link.active {
    animation: slideUp 2s ease forwards; /* Applique l'animation */
}

.cursor {
    font-size: 3rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        color: white;
    }
    50% {
        color: gray;
    }
    100% {
        color: white;
    }
}