:root 


body {
    margin: 0;
    padding: 0;
    font-family: 'Epilogue', sans-serif;
    text-align: center;
    
}

    .etape {
    width: 50px;
    height: auto;
    margin: 1em;
}
/*section nav*/

/* Structure générale */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff; 
    position: relative;
    z-index: 1000;
}

.navbar-logo img {
    width: 300px; 
    height: auto;
}

/* Liens de navigation - mode desktop */
.nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e99f01; /* Couleur survol */
}

/* Menu burger - caché en mode desktop */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu img {
    width: 40px;
    height: auto;
}

/* Responsive - mode mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: block; /* Affiche le menu burger */
    }

    .nav-links {
        display: none; /* Cache les liens */
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f8f9fa;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Affiche les liens lorsque le menu burger est cliqué */
    }

    .nav-links li {
        margin: 0.5rem 0;
    }
}

/*section menu*/

.main-top {
    display: flex;
    justify-content: end;
}

#accueil-recherche {
    padding-bottom: 40px; /* Espace sous les autres éléments */
}


.bg-custom {
    background-color:#fff2c2; 

}

.bg-custom1 {
    background-color:rgba(137, 169, 245, 0.37)

}

.btn-rechercher {
    border-radius: 20px;            /* Coins arrondis */
    background-color: #ffffff;     /* Fond blanc */
    color: #4583BC;                /* Texte bleu (ajustez si besoin) */
    border: 2px solid #4583BC;     /* Bordure bleue de 2px */
    padding: 10px 20px;            /* Espacement intérieur pour rendre le bouton plus esthétique */
    font-size: 1rem;               /* Taille du texte */
    font-weight: bold;             /* Texte en gras */
    transition: all 0.3s ease;     /* Transition douce pour le hover */
}

.btn-rechercher:hover {
    background-color: #4583BC;     /* Fond bleu au survol */
    color: #ffffff;                /* Texte blanc au survol */

}

.illu-img-petit {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    min-width: 50px;
    max-width: 100px;
    height: auto;

}

#services h2 {
    margin-bottom: 30px;
}

#services .col {
    display: flex; /* Activer Flexbox pour chaque élément */
    align-items: center; /* Aligner verticalement */
    justify-content: flex-start; /* L'image reste à gauche */
    text-align: left; /* Texte aligné à gauche */
}

#services .col img {
    margin-right: 15px; /* Espacement entre l'image et le texte */
}

@media (max-width: 991px) {
    #services .col {
        flex-direction: column; /* Empile l'image au-dessus du texte */
        text-align: center; /* Centrer le texte */
    }
    #services .col img {
        margin-right: 0; /* Supprime la marge sur mobile */
        margin-bottom: 15px; /* Ajoute un espacement sous l'image */
    }
}

/* Conteneur principal du carrousel */
.carousel-container {
    width: 100%;
    padding: 20px 0; /* Espacement vertical autour du carrousel */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Conteneur des cartes */
  .container1 {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 20px; 
    width: 90%; 
    max-width: 1200px; 
  }
  
  /* Style des cartes */
  .container1 .glass {
    flex: 1 1 calc(25% - 20px); 
    max-width: 300px; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    background:rgba(255, 255, 255);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 10px;
    cursor: pointer;
   }
  
  /* Texte des avis */
  .container1 .glass p {
    color: #000000;
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
  }
  
  /* Info supplémentaire sur les cartes */
  .container1 .glass::before {
    content: attr(data-text);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e99f01;
    font-size: 0.9em;
    font-weight: bold;
  }
  
  .etapes {
    background-color: #ccdcf1;
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .services {
    background-color: #fff2c2;
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  .services h3{
    text-align: left;
  }
  .container1 .glass:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  }
  
  
  @media (max-width: 1024px) {
    .container1 .glass {
      flex: 1 1 calc(33.33% - 20px); 
    }
  }
  
  @media (max-width: 768px) {
    .container1 .glass {
      flex: 1 1 calc(50% - 20px); 
    }
  }
  
  @media (max-width: 480px) {
    .container1 .glass {
      flex: 1 1 100%; 
    }
  }

  .illu-img-moyen {
    display: block;
    margin: 0 auto; 
    max-width: 100%; 
    height: auto; 
    max-height: 300px; 
    object-fit: contain; 
  }

  .illu-img-grand {
    display: flex;
    margin: 0 auto; 
    max-width: 100%; 
    height: auto; 
    max-height: 500px; 
    object-fit: contain; 
  }


  
@font-face {
    font-family: 'Epilogue';
    src: url('Epilogue-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

.propos {
    background-color:#ccdcf1 ;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 4em;
    padding-right: 4em;
}


.user-name {
    position: absolute;
    left: 8em;
}

/*mentions legales*/
.legale {
    text-align: left;
    margin-left: 2em;
    margin-right: 2em;
    padding-top: 1em;
    padding-bottom: 1em;
}
@media (max-width: 768px) {
    img.col-md-1 {
        width:15%;
    }
}
.mentions {
    margin-top: 2em;
    margin-bottom: 2em;
}
.photo-profil {
    height: 300px;
    width: 300px;
}
.infos {
    background-color:#ccdcf1;
}

/*navigateur filtre*/

#myInput {
    background-image: url('/css/searchicon.png');
    background-position: 10px 10px;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
  }
  
  #myTable {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
    font-size: 18px;
  }
  
  #myTable th, #myTable td {
    text-align: left;
    padding: 12px;
  }
  
  #myTable tr {
    border-bottom: 1px solid #ddd;
  }
  
  #myTable tr.header, #myTable tr:hover {
    background-color: #f1f1f1;
  }

  #serviceFilter {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    background-color: #f9f9f9;
  }
  
  #serviceFilter option {
    padding: 10px;
  }

  /* Styles pour la barre de recherche */
#searchInput {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Styles pour la liste déroulante */
#serviceFilter {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Styles pour le tableau */
#userTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    margin-top: 20px;
}

#userTable th, #userTable td {
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
}

#userTable tr:hover {
    background-color: #f1f1f1;
}

#userTable th {
    background-color: #f4f4f4;
    font-weight: bold;
}


/* Conteneur principal pour les cartes */
#results-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espacement entre les cartes */
    justify-content: center; /* Centre les cartes dans le conteneur */
    padding: 20px;
}

.sitter-card {
    flex: 1 1 calc(25% - 20px); /* Chaque carte occupe 25% de la largeur */
    max-width: 300px; /* Limite la largeur */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sitter-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 1024px) {
    .sitter-card {
        flex: 1 1 calc(33.333% - 20px); /* Chaque carte occupe un tiers */
    }
}

@media (max-width: 768px) {
    .sitter-card {
        flex: 1 1 calc(50% - 20px); /* Chaque carte occupe 50% */
    }
}

@media (max-width: 480px) {
    .sitter-card {
        flex: 1 1 100%; /* Pleine largeur */
    }
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(100% - 1rem); /* 50% de largeur sur mobiles */
    }

}

@media (max-width: 480px) {
    .card {
        flex: 1 1 calc(100% - 1rem); /* Pleine largeur sur très petits écrans */
    }
}


/*section footer*/

.footer {
    display: grid;
    gap: 20px;
    font-weight: bold;
}

.footer-top {
    background-color: #212121;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

.footer-top p {
    margin: 0;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-icons img {
    width: 24px;
    height: 24px;
}


.footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    color: #212121;
    font-size: 14px;
}

.footer-bottom span a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom span a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-bottom {
        grid-template-columns: repeat(4, auto);
        gap: 15px;
    }
}
