@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.acceuil_deco {
    width: 100%;
    height: 100%;
}

h1 {
    color: #ffa927;
    text-align: left;
    margin-left: 5%;
    margin-top: 8%;
    text-decoration: underline;
}

.qui-sommes-nous {
    color: #fff;
    text-align: left;
    margin-left: 5%;
    margin-right: 15%;
    margin-top: 2%;
    font-size: 1.5rem;
}

/* -------- Barre de recherche -------- */
.recherche-contenu {
    position: relative;
}

.barre-recherche {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 20px 0 0 20px;
    border: 1px solid #ccc;
    width: 200px;
    outline: none;
}

.recherche-bouton {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #ffa927;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
}

.recherche-bouton img {
    width: 16px;
    height: 16px;
}

.resultats-recherche {
    position: absolute;
    top: 38px; /* en dessous de la barre */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    border-radius: 0 0 10px 10px;
}

.resultats-recherche .article {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
}

.resultats-recherche .article:hover {
    background-color: #f0f0f0;
}

/* -------- Carrousel Swiper -------- */
.swiper {
    width: 90%;
    max-width: 1200px;
    margin: 10% auto 40px auto;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #989aa1;
    border-radius: 25px;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #7f8083;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    width: auto;  /* Laisse Swiper gérer la largeur */
    margin: 0 10px; /* Espace entre les slides */
    box-sizing: border-box;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: #333;
}

.swiper-pagination-bullet {
    background: #ffa927;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.result-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid #eee;
}

.result-item:hover {
  background-color: #f0f0f0;
}

.result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
}

.result-name {
  font-size: 14px;
  color: #333;
}

.voirplus {
    display: block;
    text-align: center;
    margin: 10px auto 40px auto;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: #ffa927;
    position: relative;
    width: fit-content;
    cursor: pointer;
}

.voirplus::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffa927;
    transition: width 0.3s;
}

.voirplus:hover::after {
    width: 100%;
}

.voirplus:hover {
    color: #ff7f00;
}

/* -------- Responsive -------- */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
        margin-left: 4%;
        margin-top: 8%;
    }

    .qui-sommes-nous {
        font-size: 1.1rem;
        margin-left: 4%;
        margin-right: 4%;
    }

    .swiper {
        width: 95%;
        padding: 10px 0;
        margin-top: 15%;
    }

    .swiper-slide {
        height: 150px;
        margin: 0 5px;
    }

    .swiper-slide img {
        width: 100%;
    }

    .voirplus {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .barre-recherche {
        width: 150px;
        font-size: 0.9rem;
    }
}
