
/* Styles de base */
.container-t {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    margin-top: -40px;
}

.h1-t {
    font-size: 3em;
    margin-bottom: 40px;
}

#country-name {
    margin-top: -40px;
    margin-bottom: -5px;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffff;
}

/* Section des boutons de navigation */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.country-button {
    background-color: #1f2e4e;
    padding: 10px 90px;
    font-size: 1.1em;
    color: #ffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    min-width: 200px;
}

.country-button:hover {
    background-color: #198754;
    color: white;
}

.country-button.selected {
    background-color: #198754;
    color: white;
    box-shadow: none;
}

.country-details-r {
    background-color: #fff;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* padding: 40px 60px; */
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    position: relative;
}

.country-details-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#country-name, #country-description, #view-tours-button {
    position: relative;
    z-index: 4;
    padding-left: 40px;
    padding-top: 40px;
}

#view-tours-button {
    background-color: #198754;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 5px;
    margin-bottom: 15px;
    text-decoration: none;
    align-self: end;
    margin-right: 40px;
}

#view-tours-button:hover {
    background-color: #155d42;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .country-details-r {
        width: 90%;
    }
}

@media screen and (max-width: 992px) {
    .buttons-container {
        gap: 20px;
    }

    .country-button {
        padding: 10px 60px;
        font-size: 1em;
    }

    #country-name {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .container-t {
        padding: 15px;
    }

    .buttons-container {
        gap: 15px;
    }

    .country-button {
        padding: 10px 40px;
        min-width: 160px;
    }

    .country-details-r {
        width: 95%;
        padding: 30px 25px;
        min-height: 250px;
    }

    #country-name {
        font-size: 2.5rem;
        margin-top: -20px;
    }

    #country-description {
        font-size: 0.9em;
    }

    #view-tours-button {
        font-size: 1em;
        padding: 8px 25px;

    }
}

@media screen and (max-width: 576px) {
    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .country-button {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
    }

    .country-details-r {
        width: 100%;
        padding: 25px 20px;
    }

    #country-name {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }

    #country-description {
        text-align: center;
        width: 100%;
    }

    #view-tours-button {
        align-self: center;
        width: 100%;
        max-width: 200px;
        text-align: center;
        position: relative;
        left: 30px;
    }
    #country-name, #country-description, #view-tours-button {
        margin-left: -20px;
    }
}

@media screen and (max-width: 375px) {
    .country-button {
        font-size: 0.9em;
    }

    #country-name {
        font-size: 1.8rem;
    }

    .country-details-r {
        min-height: 220px;
    }
}
