/* Variables et styles généraux */
:root {
    --beige: #F5F5DC;
    --beige-clair: #FAF9F6;
    --beige-fonce: #E6D8C3;
    --or: #D4AF37;
    --or-fonce: #B8860B;
    --or-clair: #FFD700;
    --noir: #1A1A1A;
    --gris: #333;
    --blanc: #FFFFFF;
    --rouge: #8B0000;
    --vert: #2E8B57;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--beige-clair);
    color: var(--gris);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--noir);
    font-weight: 700;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--or), transparent);
}

.section-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--or-fonce);
    margin-bottom: 3rem;
}

/* Navigation - Améliorations mobiles */
.navbar {
    background-color: var(--beige);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--or-fonce);
}

.logo .tagline {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: var(--gris);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--noir);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--or);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--or);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--noir);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section - Améliorations mobiles */
.hero {
    height: 100vh;
    max-height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-overlay {
    text-align: center;
    color: var(--blanc);
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--blanc);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    color: var(--or-clair);
    line-height: 1.3;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--or);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--or);
    cursor: pointer;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--or);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Sections */
section {
    padding: 60px 0;
}

/* Présentation */
.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.presentation-card {
    background-color: var(--blanc);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.presentation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.presentation-card i {
    font-size: 2.5rem;
    color: var(--or);
    margin-bottom: 15px;
}

.presentation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--or-fonce);
}

/* Galerie */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.galerie-item {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

/* Calendrier - NOUVEAU STYLE ÉLÉGANT */
.calendar-wrapper {
    background: linear-gradient(135deg, var(--beige-clair) 0%, var(--blanc) 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.calendar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--or), var(--or-fonce));
}

#calendar {
    background-color: transparent;
    min-height: 500px;
}

/* Style élégant pour FullCalendar */
.fc {
    font-family: 'Montserrat', sans-serif;
}

.fc-toolbar {
    margin-bottom: 25px !important;
    flex-wrap: wrap;
}

.fc-toolbar-title {
    font-family: 'Cinzel', serif;
    color: var(--or-fonce);
    font-size: 1.8rem !important;
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.fc-toolbar-chunk {
    display: flex;
    gap: 10px;
}

.fc-button {
    background-color: var(--beige-fonce) !important;
    border: 1px solid var(--beige-fonce) !important;
    color: var(--noir) !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    border-radius: 5px !important;
    padding: 8px 15px !important;
}

.fc-button:hover {
    background-color: var(--or) !important;
    border-color: var(--or) !important;
    color: var(--blanc) !important;
    transform: translateY(-2px);
}

.fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--or) !important;
    border-color: var(--or) !important;
    color: var(--blanc) !important;
}

.fc-daygrid-day {
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    transition: all 0.3s;
}

.fc-daygrid-day:hover {
    background-color: rgba(212, 175, 55, 0.05) !important;
}

.fc-day-today {
    background-color: rgba(212, 175, 55, 0.1) !important;
    position: relative;
}

.fc-day-today::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: var(--or);
    border-radius: 50%;
}

.fc-daygrid-day-number {
    font-weight: 600;
    color: var(--gris);
    padding: 8px !important;
    font-size: 1rem;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--or-fonce);
    font-weight: 700;
}

.fc-day-disabled {
    background-color: rgba(229, 229, 229, 0.3) !important;
    color: #ccc !important;
    pointer-events: none;
}

.fc-day-booked {
    background-color: rgba(139, 0, 0, 0.1) !important;
    position: relative;
}

.fc-day-booked::before {
    content: '✗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rouge);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
}

.fc-day-available {
    background-color: rgba(46, 139, 87, 0.1) !important;
    position: relative;
    cursor: pointer;
}

.fc-day-available:hover {
    background-color: rgba(46, 139, 87, 0.2) !important;
}

.fc-day-available::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--vert);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
}

.fc-day-pending {
    background-color: rgba(255, 215, 0, 0.1) !important;
    position: relative;
}

.fc-day-pending::before {
    content: '...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--or);
    font-size: 1.2rem;
    font-weight: bold;
}

.fc-event {
    border-radius: 3px;
    border: none !important;
    padding: 2px 5px !important;
    background-color: var(--or) !important;
}

.fc-event-title {
    font-weight: 600 !important;
}

/* Contrôles mobiles pour le calendrier */
.calendar-mobile-controls {
    display: none;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-cal-btn {
    padding: 10px 15px;
    background-color: var(--or);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-cal-btn:hover {
    background-color: var(--or-fonce);
}

/* Container du calendrier */
.calendar-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Formulaire de réservation */
.booking-form {
    background: linear-gradient(135deg, var(--beige-clair) 0%, var(--blanc) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--or), var(--or-fonce));
}

.booking-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--or-fonce);
    text-align: center;
}

.booking-form h3 i {
    color: var(--or);
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gris);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--beige-fonce);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: white;
}

.form-group input[readonly] {
    background-color: rgba(245, 245, 220, 0.5);
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--or), var(--or-fonce));
    color: var(--blanc);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.legend {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.legend h4 {
    margin-bottom: 15px;
    color: var(--or-fonce);
    font-size: 1.1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.legend-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-box.available {
    background-color: rgba(46, 139, 87, 0.2);
}

.legend-box.booked {
    background-color: rgba(139, 0, 0, 0.2);
}

.legend-box.pending {
    background-color: rgba(255, 215, 0, 0.2);
}

.legend-box.today {
    background-color: rgba(212, 175, 55, 0.2);
}

/* Info WhatsApp */
.whatsapp-info {
    background: linear-gradient(135deg, var(--beige-clair) 0%, var(--blanc) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #25D366, #128C7E);
}

.whatsapp-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #128C7E;
}

.whatsapp-info h3 i {
    color: #25D366;
    margin-right: 10px;
}

.whatsapp-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-info .small {
    font-size: 0.9rem;
    color: var(--gris);
    margin-top: 20px;
    font-style: italic;
    line-height: 1.4;
}

/* Modal de confirmation */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--blanc);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--gris);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--or);
}

.modal-icon {
    font-size: 4rem;
    color: var(--vert);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--or-fonce);
}

.modal-content p {
    margin-bottom: 10px;
    color: var(--gris);
}

.modal-btn {
    padding: 12px 30px;
    background-color: var(--or);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.modal-btn:hover {
    background-color: var(--or-fonce);
    transform: translateY(-2px);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--or-fonce);
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info h3 i {
    color: var(--or);
    margin-right: 10px;
}

.contact-info p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.whatsapp-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.whatsapp-contact:hover {
    background-color: #128C7E;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--beige);
    padding: 40px 0 20px;
    color: var(--gris);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: var(--or-fonce);
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--beige-fonce);
    color: var(--gris);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--or);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--beige-fonce);
    font-size: 0.9rem;
}

.mobile-notice {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--or-fonce);
    font-style: italic;
}

/* =========================================== */
/* RESPONSIVE DESIGN - MOBILE OPTIMIZATION */
/* =========================================== */

/* Tablettes */
@media (max-width: 992px) {
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.6rem !important;
    }
}

/* Mobiles (portrait) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--beige);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }
    
    .hero {
        height: 80vh;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .presentation-card {
        padding: 20px;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .galerie-item {
        height: 200px;
    }
    
    .calendar-wrapper {
        padding: 15px;
    }
    
    #calendar {
        min-height: 400px;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-title {
        font-size: 1.4rem !important;
        order: 0;
        margin-bottom: 10px;
    }
    
    .fc-toolbar-chunk {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .fc-button {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.9rem;
        padding: 5px !important;
    }
    
    /* Afficher les contrôles mobiles */
    .calendar-mobile-controls {
        display: flex;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .whatsapp-info {
        padding: 20px;
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .fc-toolbar-title {
        font-size: 1.2rem !important;
    }
    
    .fc-button {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .mobile-cal-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .whatsapp-contact {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Orientation paysage */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    
    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}
