* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    color : black;
    background-color: beige;
    padding-bottom: 40px;
}

body {
    background-color: beige;

}

.img_back {
    display: grid;
    grid-template-areas: "stack";
    height: 100vh; 
    width: 100%;
    overflow: hidden;
    align-items: center; 
    justify-items: center; 
}

.img_back img, 
.img_back .texte_accueil {
    grid-area: stack;
}

.img_back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); 
}


.texte_accueil {
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    margin-bottom: 40vh; 
}

.texte_accueil h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.texte_accueil p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.search-container {
    display: flex;
    gap: 0; 
    justify-content: center;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.search-container input {
    padding: 15px 25px;
    width: 400px;
    border: none;
    border-radius: 30px 0 0 30px; 
    font-size: 1rem;
}

.search-container button {
    padding: 15px 30px;
    border: none;
    border-radius: 0 30px 30px 0; 
    background: #007bff; 
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #0056b3;
}

.card-img-top {
    height: 200px; 
    object-fit: cover; 
    width: 100%;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff; 
}

.carousel .card {
    height: 370px; /* hauteur fixe */
    overflow: hidden;
}

.carousel .card-img-top {
    height: 130px; /* hauteur fixe pour l'image */
    object-fit: cover; /* recadre proprement */
    width: 100%;
}

.carousel .card-body {
    height: 170px;
    overflow: hidden;
}

.carousel .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.icon {
    height: 50px;
    width: 50px;
}

footer {
    border-radius: 30px 30px 0 0;
}