/* ========== VARIABLES ========== */
:root {
    /* Couleurs principales */
    --color-forest: #2C5F2D;
    --color-orange: #45a520;
    --color-blue: #004B87;
    --color-light: #F4F4F4;
    --color-dark: #333333;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Nuances de gris */
    --color-gray-100: #F4F4F4;
    --color-gray-200: #E8E8E8;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #BBBBBB;
    --color-gray-500: #999999;
    --color-gray-600: #777777;
    --color-gray-700: #555555;
    --color-gray-800: #333333;
    --color-gray-900: #1A1A1A;
    
    /* Transparences */
    --color-black-transparent-20: rgba(0, 0, 0, 0.2);
    --color-black-transparent-50: rgba(0, 0, 0, 0.5);
    --color-black-transparent-60: rgba(0, 0, 0, 0.6);
    --color-black-transparent-70: rgba(0, 0, 0, 0.7);
    --color-black-transparent-80: rgba(0, 0, 0, 0.8);
    --color-black-transparent-90: rgba(0, 0, 0, 0.9);
    --color-white-transparent-60: rgba(255, 255, 255, 0.6);
    --color-white-transparent-80: rgba(255, 255, 255, 0.8);
    --color-forest-transparent-90: rgba(44, 95, 45, 0.9);
    --color-orange-transparent-70: rgba(69, 165, 32, 0.7);
    
    /* Dégradés */
    --gradient-hero: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    --gradient-dark: linear-gradient(to top, var(--color-black-transparent-80), transparent);
}

/* ========== TYPOGRAPHIE ========== */
@font-face {
    font-family: 'Handelson';
    src: url('../Font/Handelson.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Open Sans', 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

h3 {
    font-family: 'Handelson', sans-serif;
    font-weight: normal;
    letter-spacing: 0.3px;
    font-size: 35px !important;
}

h3.font-bold, h3.font-semibold {
    font-weight: normal !important;
}

h4 {
    letter-spacing: 0.2px;
    font-size: 1.3rem !important;
}

h5 {
    letter-spacing: 0.2px;
    font-size: 1.15rem !important;
}

.text-shadow {
    text-shadow: 2px 2px 4px var(--color-black-transparent-50);
}

/* ========== LAYOUTS & UTILITAIRES ========== */
.hero-gradient {
    background: var(--gradient-hero);
}

/* Classes spécifiques pour Tailwind */
.text-orange {
    color: var(--color-orange) !important;
}

.bg-orange {
    background-color: var(--color-orange) !important;
}

.hover\:text-orange:hover {
    color: var(--color-orange) !important;
}

.hover\:bg-orange:hover {
    background-color: var(--color-orange) !important;
}

.border-orange {
    border-color: var(--color-orange) !important;
}

/* ========== MENU MOBILE ========== */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: flex;
}

/* ========== CAROUSEL PRINCIPAL ========== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px var(--color-black-transparent-20);
    height: 450px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    position: absolute;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

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

.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-control {
    background-color: var(--color-white-transparent-80);
    color: var(--color-orange);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 4px 6px var(--color-black-transparent-50);
}

.carousel-control:hover {
    background-color: var(--color-white);
    transform: scale(1.1);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-white-transparent-60);
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    box-shadow: 0 2px 4px var(--color-black-transparent-20);
}

.carousel-indicator.active {
    background-color: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--color-white-transparent-80);
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--color-black-transparent-80));
    z-index: 2;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--color-white);
    z-index: 3;
    text-shadow: 2px 2px 4px var(--color-black-transparent-70);
    text-align: center;
    background-color: var(--color-black-transparent-50);
    padding: 0.75rem 1.5rem;
    width: 100%;
}

/* ========== CIRCUIT CAROUSEL ========== */
.circuit-carousel {
    height: 500px;
    position: relative;
}

.circuit-carousel-inner {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.circuit-carousel-item {
    height: 100%;
    position: relative;
    width: calc(100% / 3); /* Afficher 3 slides à la fois */
    flex: 0 0 calc(100% / 3); /* Largeur fixe de 1/3 */
    padding: 0 15px; /* Espacement horizontal entre les cartes */
    min-width: auto;
    flex-shrink: 0;
}

.circuit-card-container {
    background-color: var(--color-white);
    border-radius: 16px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-black-transparent-20);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.circuit-card-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--color-black-transparent-20);
}

.circuit-card {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.circuit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.circuit-card .card-content {
    transform: translateY(100%);
    transition: transform 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-black-transparent-60);
    color: var(--color-white);
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

.circuit-card:hover .card-content {
    transform: translateY(0);
}

.circuit-card:hover .card-title {
    opacity: 0;
}

.circuit-card .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-dark);
    padding: 20px;
    color: var(--color-white);
    transition: all 0.4s ease;
}

.circuit-card .card-content p,
.circuit-card .card-content h3 {
    color: var(--color-white);
}

.circuit-controls-large {
    width: 60px;
    height: 60px;
}

.circuit-section-bg {
    background: linear-gradient(to right, var(--color-gray-100), var(--color-gray-200), var(--color-gray-100));
}

.h-450 {
    height: 450px;
}

/* ========== SWIPER CAROUSEL ========== */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-black-transparent-50);
    color: var(--color-white);
    padding: 1rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
}

.swiper-slide-active .slide-caption {
    transform: translateY(0);
}

.swiper-slide:not(.swiper-slide-active) .slide-caption {
    transform: translateY(100%);
}

.swiper-button-next, 
.swiper-button-prev {
    color: var(--color-orange) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-orange) !important;
}

.swiper-slide a {
    cursor: pointer;
    display: block;
    height: 100%;
    width: 100%;
}

.swiper-slide a img {
    transition: transform 0.3s ease;
}

.swiper-slide a:hover img {
    transform: scale(1.05);
}

/* ========== GRILLE RESPONSIVES ========== */
.grid-cols-2 > div {
    display: flex;
    flex-direction: column;
}

.points-forts-grid {
    min-height: 450px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black-transparent-90);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 4px solid var(--color-white);
    border-radius: 4px;
    box-shadow: 0 10px 30px var(--color-black-transparent-50);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    font-size: 18px;
    padding: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-white);
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px var(--color-black-transparent-50);
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--color-orange);
    transform: scale(1.2);
}

.lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 30px;
    cursor: pointer;
    background-color: var(--color-black-transparent-50);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.lightbox-control:hover {
    background-color: var(--color-orange);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== ANIMATIONS ========== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--color-orange-transparent-70);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 180, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 180, 0, 0);
    }
}

.countdown-box {
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px var(--color-black-transparent-20);
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-flip {
    animation: countdownPulse 0.5s ease-out;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 28px !important; }
    
    .circuit-carousel-item {
        width: 100%;
        flex: 0 0 100%;
        padding: 0 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .circuit-carousel-item {
        width: 50%;
        flex: 0 0 50%;
        padding: 0 12px;
    }
}
