* {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f0;
    color: #333;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

section {
    padding: 60px 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 40px 15px;
    }
}

a {
    transition: all 0.3s ease;
    color: #0052CC;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

button {
    background: linear-gradient(135deg, #0052CC, #0041AA);
    color: white;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    font-weight: 600;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.3);
}

.banniere-container {
    position: relative;
    width: 100%;
}
.banniere {
    height: 280px;
    min-height: 280px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
}

.banniere-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
    object-position: center;
    -o-object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    /* Fallback pour Safari ancien */
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .banniere {
        height: 200px;
    }
}

.banniere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Overlay crème léger pour subtilité */
    background: rgba(255, 244, 230, 0.44);
    z-index: 1;
    pointer-events: none;
}

.banniere h1 {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 12px;
    z-index: 2;
    position: relative;
}

/* Améliorer visibilité du logo uniquement dans la bannière */
.banniere .logo {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .banniere h1 {
        padding: 15px 25px;
        font-size: 1.5rem;
    }
}

/* Menu déroulant */
.menuBtn {
    position: relative;
    z-index: 500;
    background-color: #333 !important;
    padding: 10px 15px !important;
    font-size: 24px !important;
    height: 44px !important;
    min-height: 44px !important;
    cursor: pointer;
    border-radius: 4px !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    min-width: fit-content;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 10px !important;
    margin-left: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.language-switcher {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    margin-left: 8px;
    z-index: 500;
    position: relative;
}

.lang-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,245,250,0.92) 100%);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(20,20,20,0.1),
        inset 0 1px 3px rgba(255,255,255,0.8),
        inset 0 -2px 6px rgba(0,0,0,0.06);
    color: inherit;
    backdrop-filter: blur(4px);
    opacity: 0.88;
    position: relative;
}

.lang-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 8px 20px rgba(20,20,20,0.14),
        inset 0 1px 3px rgba(255,255,255,0.8),
        inset 0 -2px 6px rgba(0,0,0,0.06);
    opacity: 1;
}

.lang-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 2px 6px rgba(20,20,20,0.1),
        inset 0 2px 4px rgba(0,0,0,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.04);
}

/* état actif visuel : drapeau plus sombre avec relief crème */
.lang-btn.active,
.lang-btn[aria-pressed="true"] {
    border-color: rgba(210,180,140,0.8);
    background: linear-gradient(135deg, rgba(255,248,220,0.4) 0%, rgba(245,235,210,0.3) 100%);
    filter: brightness(0.95) saturate(1.1);
    box-shadow: 
        0 6px 18px rgba(210,180,100,0.2),
        inset 0 1px 3px rgba(255,255,255,0.95),
        inset 0 -2px 6px rgba(180,150,100,0.12);
    opacity: 1;
}

.lang-btn.active:hover {
    box-shadow: 
        0 8px 24px rgba(210,180,100,0.28),
        inset 0 1px 3px rgba(255,255,255,0.95),
        inset 0 -2px 6px rgba(180,150,100,0.12);
}

/* style du drapeau ou texte initiale pour meilleure lisibilité */
.lang-btn > svg.flag-icon,
.lang-btn > img.flag-icon {
    width: 22px;
    height: 22px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0.5px 1px rgba(0,0,0,0.1));
    pointer-events: none;
}

.lang-btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

.menuBtn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7) !important;
}

.menuBtn:active {
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.1);
}

.menuBtn.active {
    background-color: white !important;
    color: black !important;
}

.menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 500;
    background-color: #333;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.menu.active {
    transform: scaleY(1);
}

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

.menu ul li {
    padding: 0;
}

.menu ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 14px;
}

.menu ul li a:hover {
    border: 2px solid white;
    padding: 13px 18px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.search-bar-banniere {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #f5f5f0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    margin: 0;
    transition: display 0.3s ease;
}

.search-wrapper {
    position: relative;
    width: 80%;
}

@media (max-width: 768px) {
    .search-bar-banniere {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }
    
    .search-wrapper {
        width: 100%;
    }
}

.search-input {
    padding: 10px 15px;
    width: 80%;
    border: 2px solid #333;
    border-radius: 15px;
    font-size: 16px;
}

.search-btn {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .search-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.search-bar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.search-bar-banniere.hidden {
    display: none;
}

.search-bar-sticky .search-input {
    padding: 10px 15px;
    width: 80%;
    border: 2px solid #333;
    border-radius: 15px;
    font-size: 16px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 2px solid #333;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 1005;
}

.suggestions.active {
    display: block;
}

.suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestions li:hover {
    background-color: #f0f0f0;
}

/* Photos section */
.photos-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
}

@media (max-width: 768px) {
    .photos-section {
        padding: 40px 15px;
    }
}

.photos-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    animation: fadeInDown 0.8s ease;
}

@media (max-width: 768px) {
    .photos-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

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

.photo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .photo-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .photo-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.photo-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd, #ccc);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.photo-placeholder:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .photo-placeholder {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a) !important;
}

/* Calendrier section */
.calendrier-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #f5f5f0, #e8e8e0);
}

.calendrier-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    animation: fadeInUp 0.8s ease;
}

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

.calendar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-btn {
    display: block;
    margin: 0 auto 40px auto;
    padding: 15px 40px;
    background-color: #4E80A5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
    will-change: transform;
}

.booking-btn:hover {
    background-color: #32475b;
    box-shadow: 0 6px 18px rgba(50, 71, 91, 0.28);
    transform: translateY(-4px);
}

.booking-btn:active {
    background-color: #263543;
    transform: translateY(-1px) scale(0.98);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.18);
}

.booking-btn:focus-visible {
    outline: 3px solid rgba(78,128,165,0.25);
    outline-offset: 3px;
}

.photo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.photo-placeholder {
    width: 100%;
    height: 250px;
    background-color: #000;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-placeholder:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    background-color: #1a1a1a;
}

/* Galerie Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
    }
}

.gallery-grid-black {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .gallery-grid-black {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-black {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
    }
}

.gallery-grid-black .photo-placeholder {
    width: 100%;
    height: 250px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: #f0f0f0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Modal pour les photos */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 99%;
    height: 99%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-display {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

@media (max-width: 768px) {
    .prev-slide, .next-slide {
        font-size: 28px;
        padding: 12px 15px;
    }
    
    .prev-slide {
        left: 10px;
    }
    
    .next-slide {
        right: 10px;
    }
}

.photo-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #f5f5f0, #e8e8e0);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #ddd;
}

.footer p {
    font-size: 12px;
    margin: 0 0 20px 0;
    color: #666;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }
}

.footer-links a {
    font-size: 12px;
    color: #0052CC;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-links a:hover {
    color: #0041AA;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0052CC;
    transition: width 0.3s ease;
}

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

.footer-links a:hover {
    color: #666;
    text-decoration: underline;
}

/* Page content */
.page-content {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
    min-height: 400px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-content {
        padding: 50px 15px;
    }
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.page-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-form-section h2,
.contact-map-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-form {
        gap: 15px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0052CC, #0041AA);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.4);
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

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

.contact-info {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info strong {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-content h1 {
        font-size: 36px;
    }
}

/* Réservation Container */
.reservation-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
}

.reservation-form-section h2,
.reservation-info-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Booking Section */
.booking-section {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: visible;
}

@media (max-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Carousel */
.carousel-container {
    position: absolute;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    z-index: 1;
    aspect-ratio: 16/10;
    width: calc(100% + 30px);
    height: auto;
}

@media (max-width: 1024px) {
    .carousel-container {
        position: relative;
        width: 100%;
        aspect-ratio: 4/3;
        transform: none;
        top: auto;
    }
}

.carousel-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 80px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.carousel-btn:hover {
    opacity: 0.8;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: auto !important;
    left: 45% !important;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 50%;
    transform: scaleX(1);
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

@media (max-width: 1024px) {
    .property-card {
        grid-column: 1;
        grid-row: auto;
        padding: 20px;
    }
}

.property-header {
    margin-bottom: 24px;
}

.property-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.rating-stars {
    color: #FFB81C;
    font-size: 16px;
    letter-spacing: 2px;
}

.property-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.highlight-item .icon {
    font-size: 18px;
}

.show-more {
    display: inline-block;
    color: #0066CC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.show-more:hover {
    text-decoration: underline;
}

.package-section {
    background: #f9f9f7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.package-section h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.package-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.package-icon {
    font-size: 18px;
}

.package-details span:last-child {
    font-weight: 600;
    color: #333;
}

.package-description {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.show-details {
    display: inline-block;
    color: #0066CC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.show-details:hover {
    text-decoration: underline;
}

.price-section {
    background: #f9f9f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.price-label {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.price-unit {
    font-size: 14px;
    color: #666;
}

.total-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.total-label {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}

.total-amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tax-note {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.btn-reserve {
    width: 100%;
    padding: 14px 20px;
    background-color: #0052CC;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-reserve:hover {
    background-color: #0041AA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.disclaimer {
    font-size: 11px;
    color: #999;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    line-height: 1.4;
}

/* Reservation Form Section */
.reservation-form-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 150px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reservation-form-section h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 30px 0;
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modern label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group-modern input,
.form-group-modern textarea {
    padding: 14px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    border-color: #0052CC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.1);
}

.guest-counter {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #0052CC;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: #f5f5f0;
}

.guest-counter input {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 600;
}

.guest-counter input:focus {
    outline: none;
}

.terms-agreement {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #f0f5ff;
    border-radius: 6px;
}

.terms-agreement input {
    margin-top: 2px;
    cursor: pointer;
}

.terms-agreement label {
    font-size: 13px;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.terms-agreement a {
    color: #0052CC;
    text-decoration: none;
}

.submit-btn {
    padding: 14px 20px;
    background-color: #0052CC;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0041AA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

/* Booking Gallery */
.booking-gallery {
    background: white;
    border-radius: 12px 0 0 12px;
    padding: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: #4E80A5;
}

.thumbnail.active {
    border-color: #4E80A5;
    box-shadow: 0 0 0 1px #4E80A5;
}

/* Booking Form Container */
.booking-form-container {
    background: white;
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    overflow-y: auto;
    max-height: 800px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.booking-form h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* Dates Section */
.dates-section {
    display: flex;
    flex-direction: column;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.date-input-group {
    display: flex;
    flex-direction: column;
}

.date-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.date-input-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.date-input-group input:focus {
    border-color: #4E80A5;
    outline: none;
}

.calendar-widget {
    background: #f9f9f7;
    border-radius: 6px;
    padding: 16px;
}

/* Guests Section */
.guests-section {
    display: flex;
    flex-direction: column;
}

.guest-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .guest-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.guest-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Guest Info Section */
.guest-info-section {
    display: flex;
    flex-direction: column;
}

.form-group-modern {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group-modern label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.form-group-modern input,
.form-group-modern textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    border-color: #4E80A5;
    outline: none;
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-modern .form-group-modern {
    margin-bottom: 0;
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #f0f5ff;
    border-radius: 6px;
    margin: 20px 0;
}

.terms-agreement input {
    margin-top: 2px;
    cursor: pointer;
}

.terms-agreement label {
    font-size: 13px;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.terms-agreement a {
    color: #4E80A5;
    text-decoration: none;
}

/* Submit Button */
.submit-booking-btn {
    padding: 14px 20px;
    background-color: #4E80A5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-booking-btn:hover {
    background-color: #32475b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 128, 165, 0.3);
}

/* Booking Sidebar */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 800px;
}

@media (max-width: 1024px) {
    .booking-sidebar {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
}

@media (max-width: 768px) {
    .booking-sidebar {
        flex-direction: column;
        border-top: none;
        border-left: 1px solid #e0e0e0;
    }
}

.price-summary,
.property-details {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.price-summary:last-child,
.property-details:last-child {
    border-bottom: none;
    border-radius: 0 12px 12px 0;
}

.price-summary h3,
.property-details h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.price-summary h4,
.property-details h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.summary-details,
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row,
.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.price-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 12px 0;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #FFB81C;
    font-size: 16px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

.property-details p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.amenities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.amenity span:first-child {
    font-size: 14px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .gallery-main {
        aspect-ratio: 1;
    }
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f5f5f0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: #4E80A5;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #4E80A5;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #4E80A5;
}

.property-info {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #FFB81C;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.property-info h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.property-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    padding: 10px;
    background: #f9f9f7;
    border-radius: 6px;
}

.feature-icon {
    font-size: 16px;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 350px;
    gap: 40px;
}

@media (max-width: 1200px) {
    .booking-wrapper {
        grid-template-columns: 1fr 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .booking-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.booking-form-container {
    background: white;
    border-radius: 0 12px 12px 0;
    padding: 40px;
    box-shadow: none;
}

@media (max-width: 768px) {
    .booking-form-container {
        padding: 20px;
        border-radius: 8px;
    }
}

/* Modern Form Groups */
.form-group-modern {
    margin-bottom: 24px;
}

.form-group-modern label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    border-color: #4E80A5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 128, 165, 0.1);
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Summary Card - obsolète, supprimé */

/* Terms Agreement */
.terms-agreement {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    background: #f0f5ff;
    border-radius: 8px;
}

.terms-agreement input {
    margin-top: 2px;
}

.terms-agreement label {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.terms-agreement a {
    color: #4E80A5;
    text-decoration: none;
    font-weight: 600;
}

/* Form Buttons - obsolète, supprimé */

/* Booking Sidebar */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 800px;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .booking-sidebar {
        flex-direction: row;
    }
    
    .booking-sidebar .sidebar-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .booking-hero {
        padding: 50px 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .booking-form-container {
        padding: 20px;
    }
    
    .date-picker-row {
        flex-direction: column;
    }
    
    .date-separator {
        transform: rotate(90deg);
        margin: 0 0 0 20px;
    }
    
    .guest-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row-modern {
        grid-template-columns: 1fr;
    }
    
    .booking-steps {
        flex-wrap: wrap;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4E80A5;
    box-shadow: 0 0 5px rgba(78, 128, 165, 0.2);
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

/* Info Section */
.reservation-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4E80A5;
}

.info-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

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

.info-card ul li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.info-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.info-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4E80A5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.info-link:hover {
    background-color: #32475b;
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .social-media {
        gap: 15px;
        padding: 20px 10px;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.snapchat {
    background: linear-gradient(135deg, #FFFC00, #FFE500);
    color: black;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #0A66C2);
}


.social-link.snapchat:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 252, 0, 0.4);
}

.social-link.facebook:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Responsive pour la galerie booking */
@media (max-width: 1200px) {
    .booking-wrapper {
        grid-template-columns: 1fr 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .booking-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .booking-sidebar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .price-summary,
    .property-details {
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
    }
    
    .property-details {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .booking-sidebar {
        grid-template-columns: 1fr;
    }
    
    .price-summary,
    .property-details {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .booking-form-container {
        padding: 20px;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
    }
    
    .form-row-modern {
        grid-template-columns: 1fr;
    }
    
    .guest-selector {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        aspect-ratio: 1;
    }
    
    /* Booking container responsive */
    .booking-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-container {
        aspect-ratio: 4/3;
    }
    
    .property-card {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  opacity: 1;
  animation: fadeOutPreloader 0.8s ease-out 1.8s forwards;
}

html[data-theme="dark"] #preloader {
  background: #ffffff !important;
  color-scheme: light !important;
}

html[data-theme="dark"] .preloader-background {
  background: #ffffff !important;
}

html[data-theme="dark"] .logo-container {
  filter: none !important;
}

.preloader-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000000;
  animation: backgroundShift 4s ease-in-out forwards;
}

.preloader-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 2.4s ease-in-out forwards;
  filter: blur(40px);
}

html[data-theme="dark"] .preloader-glow {
  background: radial-gradient(circle, rgba(0, 82, 204, 0.15) 0%, transparent 70%) !important;
}

html[data-theme="dark"] .logo-glow {
  background: radial-gradient(circle, rgba(0, 82, 204, 0.25) 0%, transparent 70%) !important;
}

.logo-container {
  position: relative;
  z-index: 10;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: revealLogo 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
  filter: drop-shadow(0 0 30px rgba(0, 82, 204, 0.3)) drop-shadow(0 20px 60px rgba(255, 255, 255, 0.05));
}

html[data-theme="dark"] .logo {
  opacity: 1 !important;
  filter: none !important;
}

html[data-theme="dark"] .preloader-text {
  color: rgba(0, 0, 0, 0.6) !important;
}

.logo-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowRotate 3s linear forwards;
  filter: blur(30px);
  opacity: 0;
  animation-delay: 0.4s;
}

html[data-theme="dark"] .logo-glow {
  background: radial-gradient(circle, rgba(0, 82, 204, 0.05) 0%, transparent 70%) !important;
}

.reveal-line {
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.15) 50%, 
    rgba(255, 255, 255, 0.05) 75%, 
    transparent 100%);
  animation: moveLine 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.4s;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.preloader-text {
  position: absolute;
  bottom: 60px;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  text-transform: uppercase;
  opacity: 0;
  animation: textFadeIn 0.8s ease-out 0.8s forwards;
}

html[data-theme="dark"] .preloader-text {
  color: rgba(0, 0, 0, 0.6) !important;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 82, 204, 0.6);
  border-radius: 50%;
  opacity: 0;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 10px rgba(0, 82, 204, 0.8);
}

.particle-1 {
  animation: particle1 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.5s;
}

.particle-2 {
  animation: particle2 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.6s;
}

.particle-3 {
  animation: particle3 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.7s;
}

.particle-4 {
  animation: particle4 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

@keyframes fadeOutPreloader {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes backgroundShift {
  0% {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes glowRotate {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(360deg) scale(1.1);
  }
}

@keyframes logoFloat {
  0% {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes moveLine {
  0% {
    left: -50%;
    opacity: 0;
  }
  to {
    left: 110%;
    opacity: 1;
  }
}

@keyframes revealLogo {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.01) translateY(-1px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes particle1 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(250px, -250px) scale(0);
  }
}

@keyframes particle2 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-250px, -250px) scale(0);
  }
}

@keyframes particle3 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(250px, 250px) scale(0);
  }
}

@keyframes particle4 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-250px, 250px) scale(0);
  }
}

#content {
  display: none;
  padding: 50px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 8px;
    z-index: 500;
    position: relative;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,245,250,0.92) 100%);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease, background 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(20,20,20,0.1),
        inset 0 1px 3px rgba(255,255,255,0.8),
        inset 0 -2px 6px rgba(0,0,0,0.06);
    opacity: 0.88;
    font-size: 20px;
    position: relative;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.theme-label:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 8px 20px rgba(20,20,20,0.14),
        inset 0 1px 3px rgba(255,255,255,0.8),
        inset 0 -2px 6px rgba(0,0,0,0.06);
    opacity: 1;
}

.theme-label:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 2px 6px rgba(20,20,20,0.1),
        inset 0 2px 4px rgba(0,0,0,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.04);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg);
}

.theme-checkbox:checked + .theme-label,
.theme-checkbox:checked ~ .theme-label {
    background: linear-gradient(135deg, rgba(45,50,60,0.95) 0%, rgba(35,40,50,0.92) 100%) !important;
    border-color: rgba(100,120,150,0.6);
    box-shadow: 
        0 6px 18px rgba(210,180,100,0.15),
        inset 0 1px 3px rgba(255,255,255,0.15),
        inset 0 -2px 6px rgba(0,0,0,0.3);
}

.theme-checkbox:checked ~ .theme-label .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-checkbox:checked ~ .theme-label .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* Dark mode theme */
html[data-theme="dark"] {
    color-scheme: dark;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

html[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

html[data-theme="dark"] main,
html[data-theme="dark"] article,
html[data-theme="dark"] div {
    background-color: inherit;
}

html[data-theme="dark"] section {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

html[data-theme="dark"] .banniere-container {
    background-color: #222;
}

html[data-theme="dark"] .page-content {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0;
}

html[data-theme="dark"] .search-bar-banniere {
    background-color: rgba(40,40,40,0.9);
}

html[data-theme="dark"] .search-bar-sticky {
    background-color: rgba(40,40,40,0.95);
}

html[data-theme="dark"] .menuBtn {
    background-color: rgba(50,50,50,0.95);
    color: #e0e0e0;
}

html[data-theme="dark"] .menu {
    background-color: rgba(30,30,30,0.98);
}

html[data-theme="dark"] .menu a {
    color: #e0e0e0;
}

html[data-theme="dark"] .menu a:hover {
    background-color: rgba(100,100,100,0.2);
}

html[data-theme="dark"] .search-bar-banniere,
html[data-theme="dark"] .search-bar-sticky {
    background-color: rgba(40,40,40,0.9);
}
html[data-theme="dark"] .search-input {
    background-color: rgba(60,60,60,0.8);
    color: #e0e0e0;
    border-color: rgba(100,100,100,0.5);
}

html[data-theme="dark"] .search-input::placeholder {
    color: rgba(200,200,200,0.5);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #f0f0f0;
}

html[data-theme="dark"] .footer {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-top-color: rgba(100,100,100,0.3) !important;
}

html[data-theme="dark"] .footer p {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .footer a {
    color: #90b8ff !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .footer a:hover {
    color: #f0f0f0 !important;
}

html[data-theme="dark"] .footer-links {
    background-color: transparent !important;
}

html[data-theme="dark"] .lang-btn {
    background: linear-gradient(135deg, rgba(50,50,50,0.95) 0%, rgba(40,45,55,0.92) 100%);
    border-color: rgba(100,100,100,0.4);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 3px rgba(100,100,120,0.2),
        inset 0 -2px 6px rgba(0,0,0,0.2);
    color: #e0e0e0;
}

html[data-theme="dark"] .lang-btn:hover {
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 1px 3px rgba(100,100,120,0.2),
        inset 0 -2px 6px rgba(0,0,0,0.2);
}

html[data-theme="dark"] .lang-btn.active,
html[data-theme="dark"] .lang-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(100,90,70,0.3) 0%, rgba(90,80,60,0.2) 100%);
    border-color: rgba(210,180,140,0.6);
    box-shadow: 
        0 6px 18px rgba(210,180,100,0.15),
        inset 0 1px 3px rgba(255,255,255,0.1),
        inset 0 -2px 6px rgba(0,0,0,0.25);
}

/* ===== DARK MODE TEXT COLORS ===== */
html[data-theme="dark"] .page-content {
    color: #e0e0e0;
}

html[data-theme="dark"] .page-content p,
html[data-theme="dark"] .page-content li,
html[data-theme="dark"] .page-content a {
    color: #d0d0d0;
}

html[data-theme="dark"] .page-content a:hover {
    color: #f0f0f0;
}

html[data-theme="dark"] section {
    color: #e0e0e0;
}

html[data-theme="dark"] section p,
html[data-theme="dark"] section li {
    color: #d0d0d0;
}

html[data-theme="dark"] section a {
    color: #b8b8b8;
}

html[data-theme="dark"] section a:hover {
    color: #e0e0e0;
}

html[data-theme="dark"] .contact-form-section {
    color: #e0e0e0;
}

html[data-theme="dark"] .contact-form label {
    color: #d0d0d0;
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
    background-color: rgba(60,60,60,0.8);
    color: #e0e0e0;
    border-color: rgba(100,100,100,0.5);
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
    color: rgba(200,200,200,0.6);
}

html[data-theme="dark"] .contact-form button {
    background-color: rgba(100,120,150,0.8);
    color: #e0e0e0;
    border-color: rgba(150,170,200,0.5);
}

html[data-theme="dark"] .contact-form button:hover {
    background-color: rgba(120,140,170,0.9);
}

html[data-theme="dark"] .social-media {
    background-color: transparent;
}

html[data-theme="dark"] .social-link {
    opacity: 0.8;
}

html[data-theme="dark"] .social-link:hover {
    opacity: 1;
}

html[data-theme="dark"] .calendrier-section {
    color: #e0e0e0;
}

html[data-theme="dark"] .calendar-container {
    background-color: rgba(40,40,40,0.9);
}

html[data-theme="dark"] .calendar-container iframe {
    filter: invert(0.9) hue-rotate(180deg);
}

html[data-theme="dark"] .contact-container {
    color: #e0e0e0;
}

html[data-theme="dark"] .contact-location-section {
    color: #e0e0e0;
}

html[data-theme="dark"] .contact-location-section h2 {
    color: #f0f0f0;
}

html[data-theme="dark"] .contact-location-section p {
    color: #d0d0d0;
}

/* ===== COMPREHENSIVE DARK MODE BACKGROUNDS ===== */
html[data-theme="dark"] body,
html[data-theme="dark"] html {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] main,
html[data-theme="dark"] article,
html[data-theme="dark"] div {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] section {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] .banniere-container {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] .footer {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .gallery-item,
html[data-theme="dark"] .item-card,
html[data-theme="dark"] .photo-placeholder {
    background-color: #2a2a2a !important;
}

html[data-theme="dark"] .form-section,
html[data-theme="dark"] .contact-section {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: rgba(60,60,60,0.8) !important;
    color: #e0e0e0 !important;
    border-color: rgba(100,100,100,0.5) !important;
}

html[data-theme="dark"] button,
html[data-theme="dark"] a.button,
html[data-theme="dark"] input[type="submit"] {
    background-color: #0052CC !important;
    color: white !important;
}

html[data-theme="dark"] button:hover,
html[data-theme="dark"] a.button:hover,
html[data-theme="dark"] input[type="submit"]:hover {
    background-color: #0041AA !important;
}

/* ===== DARK MODE TEXT COLORS FOR ALL ELEMENTS ===== */
html[data-theme="dark"] * {
    color: #e0e0e0 !important;
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f0f0f0 !important;
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th {
    color: #d0d0d0 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] a {
    color: #90b8ff !important;
    background-color: transparent !important;
}

html[data-theme="dark"] a:hover {
    color: #b8d4ff !important;
    background-color: transparent !important;
}

html[data-theme="dark"] label {
    color: #d0d0d0 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: rgba(200,200,200,0.6) !important;
}

html[data-theme="dark"] .page-content {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .photos-section,
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .photos-title {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
}

html[data-theme="dark"] .photo-modal {
    background-color: rgba(0,0,0,0.95) !important;
}

html[data-theme="dark"] .close-modal,
html[data-theme="dark"] .prev-slide,
html[data-theme="dark"] .next-slide {
    color: #f0f0f0 !important;
    background-color: transparent !important;
}

/* ===== FORCE ALL SECTIONS TO DARK MODE ===== */
html[data-theme="dark"] section,
html[data-theme="dark"] .section,
html[data-theme="dark"] .page-section,
html[data-theme="dark"] .content-section,
html[data-theme="dark"] .photos-section,
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .social-media,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .contact-container {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] section p,
html[data-theme="dark"] section h1,
html[data-theme="dark"] section h2,
html[data-theme="dark"] section h3,
html[data-theme="dark"] section span,
html[data-theme="dark"] section label,
html[data-theme="dark"] section li {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}
