/* ========== CONTENEUR GLOBAL ========== */
.rs-reservation-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* TITRES */
.rs-reservation-wrapper h2,
.rs-reservation-wrapper h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2a2a2a;
}

/* TEXTES */
.rs-texte-intro {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}


/* ========== FORMULAIRE : STRUCTURE ========== */
.rs-reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rs-reservation-form p {
    margin: 0;
}

.rs-reservation-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}

/* Inputs modernes */
.rs-reservation-form input,
.rs-reservation-form select,
.rs-reservation-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #d8d8d8;
    background: #fafafa;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.rs-reservation-form input:focus,
.rs-reservation-form select:focus,
.rs-reservation-form textarea:focus {
    background: #fff;
    border-color: #6ca8ff;
    box-shadow: 0 0 0 2px rgba(108,168,255,0.3);
    outline: none;
}

.rs-required {
    color: #ff4040;
    font-weight: 700;
}

/* Bouton principal */
.rs-reservation-form button[type="submit"] {
    background: #0069ff;
    color: white;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
}

.rs-reservation-form button[type="submit"]:hover {
    background: #0052cc;
    transform: translateY(-1px);
}


/* ========== SUCCESS & ERRORS ========== */
.rs-success,
.rs-errors {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.rs-success {
    background: #e8ffef;
    color: #187d3d;
    border-left: 4px solid #2ecc71;
}

.rs-errors {
    background: #ffeaea;
    color: #9e1b1b;
    border-left: 4px solid #e74c3c;
}

.rs-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}


/* ========== CALENDRIER ========== */
.rs-calendrier-block {
    background: #f9fafc;
    border: 1px solid #e1e4eb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.rs-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
}

.rs-calendar-controls button {
    border: none;
    background: #e8ecf3;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.rs-calendar-controls button:hover {
    background: #d9dee8;
}

.rs-cal-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

.rs-cal-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.rs-cal-table th {
    background: #eef2f7;
    padding: 0.6rem;
    font-weight: 600;
    color: #4a4a4a;
}

.rs-cal-table td {
    padding: 0.7rem;
    border: 1px solid #ececec;
    cursor: pointer;
    transition: 0.2s;
}

/* Jours vides */
.rs-cal-empty {
    background: #f2f4f6;
}

/* Disponibles */
.rs-cal-dispo {
    background: #e8ffe8;
}

.rs-cal-dispo:hover {
    background: #d6ffd6;
}

/* Occupés */
.rs-cal-occupe {
    background: #ffd6d6;
    color: #8a0000;
    cursor: not-allowed;
}

/* Fermé */
.rs-cal-ferme {
    background: #ececec;
    color: #999;
    cursor: not-allowed;
}

/* En attente */
.rs-cal-en_attente {
    background: #fff3cd;
    color: #6d5200;
    cursor: not-allowed;
    border: 1px solid #eed28a;
}

/* Sélectionné */
.rs-cal-selected {
    background: #0069ff !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 0 0 2px #004ecc inset;
}

/* Légende */
.rs-calendar-legend {
    margin-top: .75rem;
    font-size: .9rem;
}

.rs-legende {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.85rem;
}

.rs-legende-dispo { background: #e8ffe8; }
.rs-legende-occupe { background: #ffd6d6; }
.rs-legende-ferme { background: #ececec; }
.rs-legende-selected { border: 2px solid #0069ff; }


/* ========== CHAMPS DYNAMIQUES ========== */
.rs-dynamic-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Pleine largeur */
.rs-field-full {
    flex: 0 0 100%;
}

/* Demi largeur */
.rs-field-half {
    flex: 0 0 calc(50% - 10px);
}

/* Masquage conditionnel */
.rs-field-hidden {
    display: none !important;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .rs-field-half {
        flex: 0 0 100%;
    }
}
