/* ===========================================
   MES RÉSERVATIONS & MDPOUBLI - Master-Village
   Style "village" : pancartes crème, plaques de
   bois, boutons par fonction
   ===========================================
   Palette :
   - Crème murs   : #FBF3D8 → #F2E2B0
   - Brun trait   : #5C3A1E   Brun toit : #6B4226
   - Bleu fenêtre : #1E4A63
   - Jaune soleil : #F4D03F
   - Vert prés    : #4C8C2B
   - Rouge tuile  : #C0522A
   - Texte        : #3E2A14
   =========================================== */

/* RESET BODY */
body.reservations-fond {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background-image: url(fondiaordi.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Arial', sans-serif;
    color: #3E2A14;
    font-weight: bold;
    overflow-x: hidden;
}

/* TOP BANNER : poutre de bois, liseré soleil */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(62, 42, 20, 0.95);
    border-bottom: 3px solid #F4D03F;
    color: #FBF3D8;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.h1inscri {
    font-size: 24px;
    margin: 0;
    color: #F4D03F;
    letter-spacing: 0.5px;
}

/* FOOTER NAV */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(62, 42, 20, 0.95);
    border-top: 3px solid #F4D03F;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}

.footer-nav .lignecobis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav .lignecobis li {
    margin: 0;
}

.footer-nav .lignecobis a {
    color: #F4D03F;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 25px;
    background: rgba(244, 208, 63, 0.12);
    transition: all 0.25s ease;
    border: 2px solid rgba(244, 208, 63, 0.4);
    display: inline-block;
}

.footer-nav .lignecobis a:hover {
    background: #F4D03F;
    color: #3E2A14;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
    text-decoration: none;
}

/* CONFIRMATION MESSAGE (organisation.php) */
.confirmation-message {
    text-align: center;
    margin: 80px 20px 0;
}

.confirmation-message p {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    display: inline-block;
    background-color: #FBF3D8;
    border: 3px solid #5C3A1E;
    color: #3E2A14;
    box-shadow: 0 5px 0 rgba(20, 25, 35, 0.28);
}

.confirmation-message.confirmation-ok p {
    border-color: #4C8C2B;
    color: #2F6B1C;
}

.confirmation-message.confirmation-no p {
    border-color: #C0392B;
    color: #A93226;
}

/* ERROR MESSAGE (mdpoubli.php) */
.error-message {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #A93226;
    background: rgba(231, 76, 60, 0.12);
    border-left: 4px solid #C0392B;
    padding: 10px;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* SECTIONS (organisation.php)
   (avant : 80px de padding haut sur les DEUX sections,
   d'où un grand vide entre les deux listes) */
.reservations-received {
    margin: 0 20px;
    padding: 90px 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reservations-sent {
    margin: 0 20px;
    padding: 20px 20px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* RECUP SECTION (mdpoubli.php)
   + vignettage pour détacher la maisonnette du décor */
.recup-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 100px 20px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
    background: radial-gradient(
        ellipse 70% 90% at center,
        rgba(20, 25, 35, 0.35) 0%,
        rgba(20, 25, 35, 0.12) 55%,
        rgba(20, 25, 35, 0) 100%
    );
}

/* Maisonnette crème avec toit et lucarne */
.containerRecup {
    position: relative;
    background-color: #F7ECC6;
    background-image: linear-gradient(180deg, #FBF3D8 0%, #F2E2B0 100%);
    border: 3px solid #5C3A1E;
    border-radius: 0 0 16px 16px;
    padding: 40px;
    box-shadow:
        0 8px 0 rgba(20, 25, 35, 0.32),
        0 22px 45px rgba(20, 25, 35, 0.40);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.containerRecup::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: 0;
    border-bottom: 26px solid #6B4226;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    pointer-events: none;
}

.containerRecup::after {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 10px;
    background: #F1DFAE;
    border: 2px solid #1E4A63;
    border-radius: 2px;
    pointer-events: none;
}

.recup-info {
    font-size: 16px;
    color: #3E2A14;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
}

.recup-info strong {
    color: #6B4226;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    color: #5C3A1E;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
}

/* Champs : fenêtres de la maison */
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #FFFDF5;
    border: 2px solid #1E4A63;
    border-radius: 8px;
    font-size: 16px;
    color: #14324A;
    font-weight: normal;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 3px rgba(30, 74, 99, 0.12);
}

.form-group input:focus {
    outline: none;
    border-color: #E0A800;
    box-shadow:
        0 0 0 4px rgba(244, 208, 63, 0.35),
        inset 0 2px 3px rgba(30, 74, 99, 0.08);
    background: #FFFFFF;
}

.form-group input::placeholder {
    color: rgba(20, 50, 74, 0.45);
}

.form-group input:focus::placeholder {
    color: rgba(20, 50, 74, 0.3);
}

.form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #FFFDF5 inset;
    -webkit-text-fill-color: #14324A;
    transition: background-color 5000s ease-in-out 0s;
}

/* Bouton d'envoi : le soleil du village */
.submit-button {
    background: linear-gradient(180deg, #FFE066 0%, #F4C531 100%);
    color: #3E2A14;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #5C3A1E;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 0 #B98A1F;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #B98A1F, 0 10px 18px rgba(244, 208, 63, 0.45);
}

.submit-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #B98A1F;
}

/* Titres de section : plaques de bois */
.section-title {
    display: inline-block;
    font-size: 20px;
    color: #F4D03F;
    margin: 0 0 20px;
    text-align: center;
    background: rgba(62, 42, 20, 0.92);
    border: 2px solid #F4D03F;
    border-radius: 25px;
    padding: 8px 28px;
    box-shadow: 0 4px 0 rgba(20, 25, 35, 0.28);
}

.reservations-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* RÉSERVATION = pancarte crème à bandeau brun */
.containerAnn {
    background-color: #F7ECC6;
    background-image: linear-gradient(180deg, #FBF3D8 0%, #F2E2B0 100%);
    border-radius: 10px;
    padding: 20px;
    padding-top: 24px;
    box-shadow:
        0 4px 0 rgba(20, 25, 35, 0.22),
        0 8px 16px rgba(20, 25, 35, 0.20);
    border: 3px solid #5C3A1E;
    border-top: 8px solid #6B4226;
    text-align: center;
}

.containerAnn p {
    margin: 10px 0;
    font-size: 16px;
    color: #3E2A14;
    font-weight: normal;
}

.containerAnn strong {
    color: #6B4226;
}

#ras {
    color: #A93226;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.premiere-ligne {
    font-size: 18px;
    font-weight: bold;
    color: #6B4226;
}

.p-annonce {
    font-size: 16px;
    margin: 10px 0;
}

.styleannonce {
    font-size: 14px;
    color: #3E2A14;
    margin: 10px 0;
}

.bronoff {
    display: none;
}

/* BUTTON GROUP (organisation.php) */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

/* Accepter : vert prés (action positive) */
.modif-button-annonce {
    background: linear-gradient(180deg, #6BA84A 0%, #4C8C2B 100%);
    color: #FBF3D8;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #5C3A1E;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 3px 0 #33601C;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modif-button-annonce:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #33601C, 0 8px 15px rgba(76, 140, 43, 0.45);
}

.modif-button-annonce:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #33601C;
}

/* Refuser / Annuler : rouge tuile */
.delete-button-annonce {
    background: linear-gradient(180deg, #E06B4A 0%, #C0522A 100%);
    color: #FBF3D8;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #5C3A1E;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 3px 0 #8A3A1E;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.delete-button-annonce:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #8A3A1E, 0 8px 15px rgba(192, 82, 42, 0.45);
}

.delete-button-annonce:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #8A3A1E;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    background-color: #F2E2B0;
}

::-webkit-scrollbar-thumb {
    background-color: #6B4226;
    border-radius: 4px;
}

::-webkit-scrollbar-corner {
    background-color: #F2E2B0;
}

/* MOBILE */
@media (max-width: 767px) {
    body.reservations-fond {
        background-image: url(bureauphone.png);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        padding: 0;
        overflow-x: hidden;
    }

    .top-banner {
        padding: 15px 0;
    }

    .h1inscri {
        font-size: 20px;
    }

    .recup-section {
        margin: 10px;
        padding: 80px 10px 60px;
    }

    .containerRecup {
        width: 100%;
        max-width: 350px;
        padding: 25px 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .submit-button {
        padding: 10px;
        font-size: 13px;
    }

    .error-message {
        font-size: 13px;
        padding: 8px;
    }

    /* organisation.php */
    .reservations-received {
        margin: 0 10px;
        padding: 80px 10px 10px;
    }

    .reservations-sent {
        margin: 0 10px;
        padding: 15px 10px 90px;
    }

    .reservations-container {
        max-width: 100%;
    }

    .containerAnn {
        margin: 10px;
        padding: 15px;
        padding-top: 18px;
        border-top-width: 6px;
    }

    .section-title {
        font-size: 18px;
        padding: 7px 22px;
    }

    .p-annonce, .styleannonce {
        font-size: 14px;
    }

    .premiere-ligne {
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .modif-button-annonce, .delete-button-annonce {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    .footer-nav .lignecobis a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Accessibilité : moins d'animations si demandé par le système */
@media (prefers-reduced-motion: reduce) {
    .submit-button, .modif-button-annonce, .delete-button-annonce,
    .footer-nav .lignecobis a, .form-group input {
        transition: none;
    }
}
