/* Fond global */
html {
    background-image: url(village10.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Reset body */
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Style des boutons génériques */
input[type="submit"] {
    background: linear-gradient(45deg, #F4D03F, #ffed4e);
    color: #333;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.4);
}

/* Conteneur de boutons */
.button-container {
    background-color: transparent;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.button-container input[type="submit"] {
    min-width: 100px;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 10px;
}

/* Boutons Contacter et Réserver */
.contact-button-annonce, .reserve-button-annonce {
    background: linear-gradient(45deg, #F4D03F, #ffed4e);
    color: #333;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-button-annonce:hover, .reserve-button-annonce:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.4);
}

/* Boutons Modifier et Supprimer */
.modif-button-annonce, .delete-button-annonce {
    background: linear-gradient(45deg, #F4D03F, #ffed4e);
    color: #333;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.delete-button-annonce {
    background: linear-gradient(45deg, #ff4d4d, #ff6666); /* Rouge pour Supprimer */
}

.modif-button-annonce:hover, .delete-button-annonce:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.4);
}

.delete-button-annonce:hover {
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4); /* Ombre rouge pour Supprimer */
}

/* Top banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.h1inscri {
    font-size: 24px;
    margin: 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Footer navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.5);
}

.footer-nav .lignecobis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav .lignecobis li {
    margin: 0;
}

.footer-nav .lignecobis a {
    color: #F4D03F;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 25px;
    border-radius: 25px;
    background: rgba(244, 208, 63, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(244, 208, 63, 0.3);
    display: inline-block;
}

.footer-nav .lignecobis a:hover {
    background: #F4D03F;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

/* Conteneur global des annonces */
.containerRecap {
    background-color: transparent;
    width: 58%;
    margin: 80px auto 60px; /* Ajusté pour top-banner et footer-nav */
    text-align: center;
}

/* Conteneur d'une annonce */
.containerAnn {
    height: auto;
    max-height: 200px;
    overflow-y: auto;
    font-size: 16px;
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 25, 35, 0.95);
    color: #e0e0e0;
    font-weight: normal;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.containerAnn .annonce-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    background: transparent;
    justify-content: space-between;
}

.containerAnn .img-gauche {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.containerAnn .img-droite {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.containerAnn .texte-annonce {
    flex-grow: 1;
    text-align: center;
    background: transparent;
    min-width: 0;
}

.containerAnn .premiere-ligne {
    color: #F4D03F;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.1;
}

.containerAnn .p-annonce {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 5px;
}

.containerAnn .p-annonce a {
    color: #F4D03F;
    text-decoration: none;
}

.containerAnn .p-annonce a:hover {
    text-decoration: underline;
}

.containerAnn .styleannonce {
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 5px;
}

.containerAnn #ras {
    font-weight: normal;
    font-size: 18px;
    color: #e0e0e0;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 25, 35, 0.95);
    border-radius: 15px;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.popup img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #F4D03F;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}

.popup .close-popup:hover {
    color: #ffed4e;
}

/* Liste des boutons Modifier/Supprimer */
.Modif {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    background-color: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background-color: #444444;
    border-radius: 3px;
}

::-webkit-scrollbar-corner {
    background-color: #1A1A1A;
}

/* Media query pour mobile */
@media (max-width: 480px) {
    html {
        background-image: url(afficheMV1.png);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        touch-action: auto;
        overflow-x: hidden;
    }

    .top-banner {
        padding: 15px 0;
    }

    .h1inscri {
        font-size: 20px;
    }

    .containerRecap {
        width: 100%;
        margin: 60px auto 60px;
    }

    .containerAnn {
        font-size: 12px;
        max-height: 250px;
        padding: 8px;
    }

    .containerAnn .annonce-content {
        gap: 10px;
    }

    .containerAnn .img-gauche, .containerAnn .img-droite {
        width: 70px;
        height: 70px;
    }

    .containerAnn .premiere-ligne {
        font-size: 14px;
    }

    .containerAnn .p-annonce {
        font-size: 14px;
    }

    .containerAnn .styleannonce {
        font-size: 12px;
    }

    .containerAnn #ras {
        font-size: 14px;
    }

    .button-container {
        gap: 5px;
        margin-top: 8px;
    }

    .contact-button-annonce, .reserve-button-annonce {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .modif-button-annonce, .delete-button-annonce {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .Modif {
        gap: 5px;
    }

    .footer-nav .lignecobis a {
        font-size: 14px;
        padding: 10px 20px;
    }

    .popup img {
        width: 200px;
        height: 200px;
    }
}