/* Contact - Page contact refaite avec calendrier */

.contact-header {
    background: linear-gradient(135deg, #5a67d8 0%, #434190 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contact Content */
.contact-content {
    padding: 5rem 0;
    background: #f8f9fa;
}

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

/* Section Disponibilités */
.availability-section {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.availability-section h2 {
    color: #5a67d8;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Notice de réservation */
.booking-notice {
    background: linear-gradient(135deg, #e7edff 0%, #d6e0ff 100%);
    border: 2px solid #5a67d8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(90, 103, 216, 0.15);
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.notice-text strong {
    color: #5a67d8;
    font-weight: 600;
}

/* Calendrier */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.calendar-header h3 {
    color: #5a67d8;
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

.calendar-nav-btn {
    background: #5a67d8;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #434190;
    transform: scale(1.1);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #d4edda;
}

.legend-color.reserved {
    background: #f8d7da;
}

.legend-color.selected {
    background: #5a67d8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #5a67d8;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: #fff;
    color: #333;
}

.calendar-day:hover:not(.disabled):not(.reserved) {
    border-color: #5a67d8;
    transform: scale(1.05);
}

.calendar-day.disabled {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.calendar-day.available {
    background: #d4edda;
    border-color: #c3e6cb;
}

.calendar-day.reserved {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.selected {
    background: #5a67d8;
    color: #fff;
    border-color: #434190;
    font-weight: 600;
}

.calendar-day.in-range {
    background: #e7edff;
    border-color: #5a67d8;
}

.selected-dates-info {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 1rem;
}

.selected-dates-info p {
    font-size: 1.1rem;
    color: #5a67d8;
    font-weight: 600;
    margin: 0;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Contact Form */
.contact-form-section {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(90, 103, 216, 0.15);
    border: 1px solid rgba(90, 103, 216, 0.1);
}

.contact-form-section h2 {
    color: #5a67d8;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5a67d8, #434190);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #5a67d8;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding-left: 0.5rem;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, #5a67d8, #434190);
    border-radius: 2px;
    transition: height 0.3s;
}

.form-group:focus-within label::before {
    height: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.1), 0 4px 12px rgba(90, 103, 216, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    transition: opacity 0.3s;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.form-group input[readonly] {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    cursor: not-allowed;
    border-color: #d0d0d0;
    color: #666;
}

.form-group input[readonly]:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-color: #d0d0d0;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a67d8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group select option {
    padding: 1rem;
    background: #fff;
    color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #5a67d8 0%, #434190 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(90, 103, 216, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #434190 0%, #5a67d8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(90, 103, 216, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(90, 103, 216, 0.3);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.2), 0 6px 20px rgba(90, 103, 216, 0.4);
}

/* Contact Info */
.contact-info-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(90, 103, 216, 0.15);
    border: 1px solid rgba(90, 103, 216, 0.1);
}

.contact-info-section h2 {
    color: #5a67d8;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5a67d8, #434190);
    border-radius: 2px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 103, 216, 0.2);
    border-color: #5a67d8;
}

.info-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5a67d8 0%, #434190 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.4);
}

.info-icon {
    font-size: 2.5rem;
    filter: grayscale(100%) brightness(2);
}

.info-content {
    width: 100%;
}

.info-content h3 {
    color: #5a67d8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.info-content a {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.info-content a:hover {
    color: #434190;
    transform: translateX(3px);
}

/* Social Links */
.social-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.social-links h3 {
    color: #5a67d8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.3);
}

/* Booking Info */
.booking-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.booking-info h3 {
    color: #5a67d8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.booking-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-info li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.booking-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5a67d8;
    font-weight: bold;
}

/* Form Success Message */
.form-success {
    display: none;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    color: #155724;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

.form-success::before {
    content: '✓';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    line-height: 30px;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-success.active {
    display: block;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 3rem 0;
    }

    .contact-header h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        padding: 3rem 0;
    }

    .availability-section {
        padding: 2rem;
    }

    .availability-section h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .booking-notice {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .notice-icon {
        font-size: 1.5rem;
    }

    .notice-text {
        font-size: 0.95rem;
    }

    .calendar-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-header {
        padding: 0.75rem;
    }

    .calendar-header h3 {
        font-size: 1.2rem;
    }

    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .calendar-legend {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .legend-item {
        font-size: 0.85rem;
    }

    .legend-color {
        width: 18px;
        height: 18px;
    }

    .calendar-grid {
        gap: 0.4rem;
    }

    .calendar-day-header {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }

    .calendar-day {
        font-size: 0.85rem;
        min-height: 40px;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 2rem;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .info-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .availability-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .availability-section h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .booking-notice {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .notice-icon {
        font-size: 1.25rem;
    }

    .calendar-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-header {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .calendar-header h3 {
        font-size: 0.9rem;
    }

    .calendar-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .calendar-legend {
        gap: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .legend-item {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }

    .calendar-grid {
        gap: 0.25rem;
        margin-bottom: 1rem;
        min-width: 100%;
        width: 100%;
    }

    .calendar-day-header {
        padding: 0.4rem 0.25rem;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .calendar-day {
        padding: 0.25rem;
        font-size: 0.7rem;
        min-height: 35px;
        aspect-ratio: 1;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.8rem;
    }

    .contact-info-grid {
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .info-icon {
        font-size: 1.8rem;
    }

    .info-content h3 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

/* Très petits écrans (moins de 360px) */
@media (max-width: 360px) {
    .calendar-day-header {
        padding: 0.3rem 0.2rem;
        font-size: 0.65rem;
    }

    .calendar-day {
        font-size: 0.65rem;
        min-height: 30px;
        padding: 0.2rem;
    }

    .calendar-header h3 {
        font-size: 0.85rem;
    }

    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .legend-color {
        width: 14px;
        height: 14px;
    }
}
