body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fdf8f3;
    color: #333;
}

/* ===== BOUTON DE CONTACT EN HAUT À DROITE ===== */
.contact-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.contact-btn {
    background: linear-gradient(135deg, #16a34a, #0d9488);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    font-size: 1em;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

.contact-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    min-width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.contact-button:hover .contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-menu a {
    display: block;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.contact-menu a:last-child {
    border-bottom: none;
}

.contact-menu a:hover {
    background: #f5f7fa;
    color: #16a34a;
    padding-left: 20px;
}

header .hero {
    background: url("../images/gitesARMILIN--qPmxOd.png") center 60%/cover no-repeat;
    text-align: center;
    padding: 5em 20px;
    color: #fef9ee;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3.6em;
    margin: 0;
}

header p {
    font-size: 1.4em;
    margin-top: 10px;
}

.listing {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px auto;
    padding: 20px;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.listing .info {
    flex: 1;
    padding-right: 20px;
}

.listing h2 {
    color: #2c3e50;
}

.capacity {
    font-weight: bold;
    margin-top: 10px;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    color: #16a34a;
    margin-top: 8px;
}

.price-reserve-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.price-reserve-container .price {
    margin: 0;
}

.btn-reserve {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    border-color: #16a34a;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-reserve:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
    background: linear-gradient(135deg, #15922f, #0a7a6f);
    cursor: pointer;
}

.btn-reserve:active {
    transform: translateY(-1px);
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btn-disponibilite {
    background: #e2e8f0;
    border: 0;
    border-radius: 25px;
    color: #1e293b;
    cursor: pointer;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-disponibilite:hover {
    background: #cbd5e1;
    transform: translateY(-3px);
}

.modal-disponibilite {
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.modal-disponibilite.show {
    display: block;
}

.modal-content-disponibilite {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: 5% auto;
    max-width: 900px;
    padding: 30px;
    position: relative;
    width: 90%;
}

.close-disponibilite {
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 16px;
}

.close-disponibilite:hover {
    color: #1e293b;
}

#modal-title {
    color: #1e293b;
    margin: 0 36px 20px 0;
}

#calendar-container {
    min-height: 400px;
}

.booking-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.back-link {
    color: #0d9488;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
}

.booking-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 28px;
}

.booking-heading h1 {
    color: #2c3e50;
    margin: 4px 0 10px;
}

.eyebrow {
    color: #0d9488;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.notice {
    border-radius: 8px;
    font-weight: 600;
    margin: 18px 0;
    padding: 14px 16px;
}

.notice.success {
    background: #dcfce7;
    color: #166534;
}

.notice.error {
    background: #fee2e2;
    color: #991b1b;
}

.booking-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-form label {
    color: #2c3e50;
    display: grid;
    font-weight: 700;
    gap: 8px;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font: inherit;
    padding: 12px;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
    outline: none;
}

.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-secondary {
    background: #e2e8f0;
    border: 0;
    border-radius: 25px;
    color: #1e293b;
    cursor: pointer;
    font-weight: 700;
    padding: 12px 24px;
}

.carousel {
    position: relative;
    width: 400px;
    height: 280px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    color: #fff;
    border: none;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 1.4em;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel button:hover {
    background: rgba(22, 163, 74, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.carousel button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel .prev {
    left: 15px;
}

.carousel .next {
    right: 15px;
}

/* ===== ANIMATIONS AU SCROLL ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.listing.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.listing.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.listing.animate-in .info {
    animation: slideInLeft 0.8s ease forwards;
}

.listing.animate-in .carousel {
    animation: slideInRight 0.8s ease forwards;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

footer h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

footer p {
    margin: 8px 0;
}

.footer-contact {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 400px;
}

.footer-contact a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #0d9488;
    text-decoration: underline;
}

/* ===== BOUTONS DÉSACTIVÉS ===== */
.btn-reserve:disabled,
.btn-secondary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* ===== ÉTAPES FORMULAIRE RÉSERVATION ===== */
.booking-step {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
}

.booking-step-title {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 18px;
}

.modal-actions {
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
}

/* ===== CALENDRIER DE DISPONIBILITÉ ===== */

.cal-loading {
    color: #64748b;
    font-style: italic;
    padding: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cal-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #0d9488;
    border-radius: 50%;
    flex-shrink: 0;
    animation: cal-spin 0.8s linear infinite;
}

@keyframes cal-spin {
    to { transform: rotate(360deg); }
}

.cal-rates-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.82rem;
    margin-bottom: 12px;
    padding: 10px 14px;
}

.cal-wrapper {
    width: 100%;
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-nav-btn {
    background: #e2e8f0;
    border: 0;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    font-size: 1.5rem;
    height: 38px;
    line-height: 1;
    transition: background 0.2s;
    width: 38px;
}

.cal-nav-btn:hover:not(:disabled) {
    background: #cbd5e1;
}

.cal-nav-btn:disabled {
    color: #cbd5e1;
    cursor: default;
}

.cal-months {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
}

.cal-month-label {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-weekdays span {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.cal-grid {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    justify-content: center;
    position: relative;
    user-select: none;
}

.cal-cell.cal-empty {
    background: transparent;
}

.cal-cell.cal-past {
    color: #e2e8f0;
}

.cal-cell.cal-blocked {
    background: #f8fafc;
    color: #cbd5e1;
    text-decoration: line-through;
}

.cal-cell.cal-avail {
    background: #f0fdf4;
    color: #166534;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.cal-cell.cal-avail:hover {
    background: #dcfce7;
    transform: scale(1.1);
    z-index: 1;
}

/* Date sélectionnable mais sans info de prix (API indisponible ou date hors plage tarifaire) */
.cal-cell.cal-unknown {
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.cal-cell.cal-unknown:hover {
    background: #e2e8f0;
    transform: scale(1.08);
    z-index: 1;
}

.cal-cell.cal-start,
.cal-cell.cal-end,
.cal-cell.cal-unknown.cal-start,
.cal-cell.cal-unknown.cal-end {
    background: #16a34a !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 700;
}

.cal-cell.cal-start {
    border-radius: 6px 0 0 6px;
}

.cal-cell.cal-end {
    border-radius: 0 6px 6px 0;
}

.cal-cell.cal-in-range {
    background: #bbf7d0;
    border-radius: 0;
    color: #166534;
}

.cal-day-num {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}

.cal-price {
    color: #0d9488;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.cal-cell.cal-start .cal-price,
.cal-cell.cal-end .cal-price {
    color: rgba(255, 255, 255, 0.8);
}

.cal-hint {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 16px;
    text-align: center;
}

.cal-summary {
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
    padding: 12px 16px;
}

.cal-summary-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-summary-label {
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.cal-summary-arrow {
    color: #16a34a;
    font-size: 1.1rem;
}

.cal-summary-nights {
    background: #16a34a;
    border-radius: 20px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: auto;
    padding: 4px 12px;
}

.cal-summary-price {
    color: #166534;
    font-size: 1rem;
    font-weight: 700;
}

.cal-clear {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 4px 10px;
    transition: all 0.2s;
}

.cal-clear:hover {
    border-color: #fca5a5;
    color: #991b1b;
}

/* ===== RESPONSIVE ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    .listing {
        flex-direction: column;
        margin: 20px auto;
        padding: 15px;
        max-width: 100%;
    }

    .listing .info {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 400px;
        margin: 0 auto;
    }

    .carousel button {
        padding: 6px 10px;
        font-size: 1em;
    }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 0.9em;
    }

    .listing {
        padding: 10px;
        margin: 15px auto;
    }

    .listing h2 {
        font-size: 1.2em;
    }

    .carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }

    .carousel button {
        padding: 5px 8px;
        font-size: 0.9em;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cal-months {
        grid-template-columns: 1fr;
    }

    .cal-price {
        display: none;
    }

    .cal-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .cal-summary-nights {
        margin-left: 0;
    }
}

/* ── Dialog indisponibilité ─────────────────────────────────────────────────── */

.availability-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.availability-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.availability-dialog-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.availability-dialog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c0392b;
    margin: 0;
}

.availability-dialog-content p:not(.availability-dialog-title) {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.availability-dialog-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ── Page de confirmation réservation ──────────────────────────────────────── */

.booking-confirmation {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.confirmation-icon--success {
    background: #d1fae5;
    color: #065f46;
}

.confirmation-icon--error {
    background: #fee2e2;
    color: #991b1b;
}

.confirmation-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.confirmation-ref {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.confirmation-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.confirmation-message--error {
    color: #991b1b;
}
