/* L'Auberge Boischatel - Enhanced Styles V4 */
/* Innovation Bienveillante - Modern Design System */

/* CSS Variables matching new brand identity */
:root {
    --blue-grey: #5A7D8C;
    --sage-green: #A9C7B5;
    --cream: #F5F4F2;
    --anthracite: #1F1F1F;
    --copper: #C9A472;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-muted: #6B7280;
}

/* Utility animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll reveal animations */
.section-header {
    animation: fadeInUp 0.8s ease-out;
}

.value-card,
.activity-card,
.room-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-grey);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--anthracite);
}

/* Selection color */
::selection {
    background: var(--sage-green);
    color: white;
}

::-moz-selection {
    background: var(--sage-green);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

/* Enhanced button styles */
.hero-cta,
.submit-btn {
    position: relative;
    overflow: hidden;
}

.hero-cta::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before,
.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects enhanced */
.value-card,
.activity-card,
.room-card,
.security-card {
    position: relative;
    overflow: hidden;
}

.value-card::before,
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(169, 199, 181, 0.1), transparent);
    transition: left 0.5s;
}

.value-card:hover::before,
.activity-card:hover::before {
    left: 100%;
}

/* Enhanced gallery item effects */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Stat item pulse animation */
.stat-item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Form field enhancements */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--sage-green);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-grey);
    box-shadow: 0 0 0 3px rgba(90, 125, 140, 0.1);
}

/* Loading state for submit button */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact item hover effect */
.contact-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
}

.contact-item:hover {
    background: rgba(169, 199, 181, 0.05);
    transform: translateX(5px);
}

/* Security list enhanced */
.security-list li {
    transition: all 0.3s ease;
    padding-left: 0;
}

.security-list li:hover {
    padding-left: 10px;
    color: var(--blue-grey);
}

/* Room features enhanced */
.room-features li {
    transition: all 0.3s ease;
}

.room-features li:hover {
    color: var(--anthracite);
    transform: translateX(5px);
}

.room-features li:hover i {
    transform: scale(1.2);
}

/* Meal feature hover */
.meal-feature {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
}

.meal-feature:hover {
    background: rgba(169, 199, 181, 0.05);
}

.meal-feature i {
    transition: transform 0.3s ease;
}

.meal-feature:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* Value icon animations */
.value-icon {
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(90, 125, 140, 0.3);
}

/* Activity icon animations */
.activity-icon {
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    transform: scale(1.1);
}

/* Enhanced image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Map container enhanced */
.map-container {
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--sage-green);
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-container:hover::before {
    opacity: 0.3;
}

/* Footer enhancements */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--copper);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Badge animations */
.hero-badge,
.section-badge {
    animation: slideIn 0.6s ease-out;
}

/* Text gradient effects */
.section-title {
    background: linear-gradient(135deg, var(--anthracite) 0%, var(--blue-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    nav,
    .hero-cta-group,
    .contact-form,
    footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-muted: var(--text-dark);
    }
    
    .value-card,
    .activity-card,
    .room-card,
    .security-card {
        border: 2px solid var(--anthracite);
    }
}

/* Dark mode support (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .contact-container {
        gap: 2rem;
    }
    
    .about-stats {
        gap: 1rem;
    }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    
    .hero-left {
        padding: 2rem;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-left {
        max-width: 600px;
    }
    
    section {
        padding: 4rem 2rem;
    }
}

/* Large desktops */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}
