html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #FAF9F6; /* Blanc cassé */
    color: #212121; /* Noir charbon */
}

/* Menu Spy Styles */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: #D4AF37;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

/* Module Selection Styles */
.btn-gold[href="#inscription"] {
    cursor: pointer;
}

.btn-gold[href="#inscription"]:focus {
    outline: none;
}

/* Hero Section Styles */
#hero {
    position: relative;
    min-height: 600px;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-images .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoom-pan 20s infinite linear;
}

.carousel-images .carousel-image.active {
    opacity: 1;
}

@keyframes zoom-pan {
    0% {
        transform: scale(1.1) translateX(-5%);
    }
    50% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.1) translateX(-5%);
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: 500px;
    }
    
    .carousel-images .carousel-image {
        animation: zoom-pan-mobile 20s infinite linear;
    }
}

@keyframes zoom-pan-mobile {
    0% {
        transform: scale(1.15) translateX(-2%);
    }
    50% {
        transform: scale(1.1) translateX(0);
    }
    100% {
        transform: scale(1.15) translateX(-2%);
    }
}

.gold-text {
    color: #D4AF37; /* Doré */
}
.card {
    background-color: #ffffff;
    border: 1px solid #E8D5B7; /* Beige sable */
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.section-bg-alt {
    background-color: #E8D5B7; /* Beige sable */
}
.faq-toggle {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-toggle.open {
    max-height: 1000px;
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-gold {
    background-color: #D4AF37; /* Doré */
    color: #212121; /* Noir charbon */
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: #c09e2a; /* Darker Doré */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}




/* Timeline */
#timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0;
    background-color: #E8D5B7;
    transform: translateX(-50%);
    transition: height 1.5s ease-out;
}
.timeline-line.visible {
    height: 100%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background-color: #D4AF37;
    border: 4px solid #FAF9F6;
    border-radius: 50%;
    z-index: 10;
    transform: scale(0);
    transition: transform 0.5s ease-out;
}
.timeline-dot.visible {
    transform: scale(1);
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #E8D5B7;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.timeline-content.left {
    transform: translateX(-20px);
}
.timeline-content.right {
    transform: translateX(20px);
}
.timeline-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 1rem;
    color: #555;
}

/* Custom Checkbox Form Styles */
.module-option input[type="checkbox"]:checked + .module-label-card {
    border-color: #D4AF37; /* gold */
    background-color: #FDFBF5; /* very light gold/beige */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.module-option input[type="checkbox"]:checked + .module-label-card .custom-checkbox {
    background-color: #D4AF37;
    border-color: #c09e2a; /* darker gold */
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.module-label-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #d7a831; /* Darker beige for visibility */
    border-radius: 0.75rem; /* 12px */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.module-label-card:hover {
    border-color: #D4AF37; /* Gold color on hover */
    background-color: #FDFBF5;
}

.custom-checkbox {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    flex-shrink: 0;
    border: 2px solid #f3f3f3; /* stone-400 for visibility */
    border-radius: 0.375rem; /* 6px */
    margin-right: 0.75rem; /* 12px */
    transition: all 0.2s ease-in-out;
    display: inline-block;
}
