/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #a8e063, #56ab2f) !important;
    color: #3c403d; /* Gris foncé pour le texte */
}

.sticky-top {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 1030 !important;
}

.navbar-nav .nav-link {
    font-size: 16px; /* Taille de police relative */
}

.navbar-nav .nav-item {
    margin-left: 1rem; /* Marges relatives */
}


.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Header */
h1 {
    font-size: 2.5em !important;
    color: #2c662d !important; /* Vert forêt */
    margin-bottom: 20px !important;
}

h2 {
    font-size: 2em !important;
    color: #2c662d !important; /* Vert forêt */
    border-bottom: 2px solid #a3d2a4 !important; /* Vert clair */
    padding-bottom: 5px !important;
}

p {
    font-size: 1.2em !important;
    color: #3c403d !important;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 550px;
}

.carousel-item {
    height: 600px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: black !important;
    border-radius: 100%;
    padding: 25px;
}
/* Images */
img {
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.img-fluid {
    max-width: 100% !important;
    height: auto !important;
}

/* Lists */
ul {
    list-style-type: none !important;
    padding: 0 !important;
}

ul li {
    padding: 5px 0 !important;
    font-size: 1.2em !important;
    color: #3c403d !important;
}

/* Sections */
section {
    margin-bottom: 40px !important;
    background-color: rgba(195, 255, 195, 1) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.section-title {
    font-size: 1.8em !important;
    color: #2c662d !important;
    margin-bottom: 10px !important;
}

/* Grid for animals */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
    justify-content: center;
}

.col-md-3 {
    flex: 1 1 calc(25% - 20px) !important; /* Ajuste automatiquement les colonnes */
    max-width: calc(25% - 20px) !important;
    text-align: center;
}

.col-md-3 img {
    width: 100% !important;
    height: 175px !important;
}

.col-md-3 p {
    margin-top: 10px !important;
    font-size: 1.1em !important;
    color: #3c403d !important;
}

.card {
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(195, 255, 195, 1) !important;

}

.card-img-top {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    height: 300px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.card-text {
    color: #6c757d;
}

.list-group-item {
    padding: 10px 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-group-item:first-child {
        background-color: rgba(195, 255, 195, 1) !important;

}

.list-group-item:last-child {
    background-color: rgba(195, 255, 195, 1) !important;
}

.animals {
    text-decoration-line: none !important;
    color: darkgreen !important;
}

.animal-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px; /* Espacement entre les colonnes */
}

.animal-details .animal-image {
    flex: 1; /* Largeur automatique, mais jamais plus grande que nécessaire */
    max-width: 40%; /* Limite à 40% de la largeur de l'écran */
}

.animal-details .animal-info {
    flex: 2; /* Prend plus de place que l'image */
}

/* Radio etoiles */
#rating {
        gap: 55px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    input {
        display: none;
    }
    .star {
        font-size: 1.5rem;
        color: gray;
        cursor: pointer;
        transition: color 0.2s;
    }
    input[type="radio"]:checked ~ label.star {
        color: gold;
    }

/* Buttons */
button {
    background-color: #2c662d; /* Vert forêt */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1e4620; /* Vert plus foncé */
}

/* Footer or additional sections */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
}

#foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer a {
    color: #1abc9c !important;
    text-decoration: none;
}

footer a:hover {
    color: #16a085 !important;
    text-decoration: underline;
}

footer h5 {
    margin-bottom: 15px;
}

.policy {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
}

/* Responsiveness */

@media (min-width: 768px) and (max-width: 992px) {
    .carousel-inner {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 400px;
    }
    .col-md-3 {
        flex: 1 1 calc(33% - 20px) !important;
        max-width: calc(33% - 20px) !important;
    }

    h1, h2 {
        font-size: 2em;
    }

    ul li {
        font-size: 1.2em;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .carousel-inner {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 275px;
    }
    .col-md-3 {
        flex: 1 1 calc(50% - 20px) !important; /* Passe à deux colonnes sur petit écran */
        max-width: calc(50% - 20px) !important;
    }

    h1, h2 {
        font-size: 1.8em;
    }

    ul li {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .carousel-inner {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 200px;
    }
    .col-md-3 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    ul li {
        font-size: 0.9em;
    }
}
