
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pacifico&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');




/* Styles de base pour la page Sud - Version Embellie */
:root {
    --primary-color: #B22222;
    --secondary-color: #F4A460;
    --accent-color: #8B4513;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --gold: #FFD700;
    --success: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation améliorée */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* En-tête hero amélioré */
.hero {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.048) 0%, rgba(139, 69, 19, 0.678) 100%), 
                url('../Follio/Img/Bao3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(178, 34, 34, 0.3), rgba(244, 164, 96, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    background: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(178, 34, 34, 0.3);
}

.btn-hero {
    font-size: 1.2rem;
    padding: 18px 40px;
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #D2691E;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Indicateur de progression amélioré */
.circuit-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.circuit-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.progress-step:hover {
    transform: translateY(-5px);
}

.progress-step::before {
    content: attr(data-step);
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

.progress-step.active::before {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.visited::before {
    background: var(--secondary-color);
    color: white;
}

.progress-step::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #666;
}

/* Styles améliorés pour l'affichage des photos */
.circuits-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.circuit-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
}

.circuit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.circuit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.circuit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.path-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    border: 3px solid white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.circuit-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.circuit-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.circuit-title p {
    color: #666;
    font-size: 1.1rem;
}

.circuit-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.circuit-card.active .circuit-toggle {
    transform: rotate(180deg);
}

.circuit-details {
    display: none;
    padding: 0;
}

.circuit-card.active .circuit-details {
    display: flex;
    flex-wrap: wrap;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.circuit-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.circuit-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.circuit-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.circuit-info ul {
    list-style: none;
    margin: 25px 0;
}

.circuit-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.circuit-info li:last-child {
    border-bottom: none;
}

.circuit-info li i {
    color: var(--success);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 1.1rem;
    min-width: 20px;
}

.circuit-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Galerie améliorée */
.circuit-gallery {
    flex: 1;
    min-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.slide.active {
    opacity: 1;
}

.circuit-gallery:hover .slide.active {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.carousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Effet de chargement pour les images */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.slide.active::before {
    display: none;
}

/* Section CTA améliorée */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer amélioré */
footer {
    background: linear-gradient(135deg, #1a2533 0%, #2c3e50 100%);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.copyright i {
    color: var(--primary-color);
}

/* Bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Galerie étendue */
.expanded-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    padding: 50px;
}

.expanded-gallery.active {
    display: block;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .circuit-progress {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .circuit-progress::before {
        display: none;
    }
    
    .progress-step::before {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .circuit-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .circuit-details {
        flex-direction: column;
    }
    
    .circuit-info {
        padding: 20px;
    }
    
    .circuit-gallery {
        min-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .slides-container {
        height: 300px;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .circuit-details {
        flex-wrap: nowrap;
    }
    
    .circuit-info {
        flex: 1;
        min-width: 300px;
        padding: 30px;
    }
    
    .circuit-gallery {
        flex: 1;
        min-width: 350px;
        margin: 20px;
    }
}

@media (min-width: 1025px) {
    .circuit-details {
        flex-wrap: nowrap;
    }
    
    .circuit-info {
        flex: 1;
        min-width: 400px;
        padding: 40px;
    }
    
    .circuit-gallery {
        flex: 1;
        min-width: 500px;
        margin: 30px;
    }
}

/* Animation pour le scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.circuit-card {
    animation: fadeInUp 0.6s ease forwards;
}

.circuit-card:nth-child(1) { animation-delay: 0.1s; }
.circuit-card:nth-child(2) { animation-delay: 0.2s; }
.circuit-card:nth-child(3) { animation-delay: 0.3s; }
.circuit-card:nth-child(4) { animation-delay: 0.4s; }
.circuit-card:nth-child(5) { animation-delay: 0.5s; }
.circuit-card:nth-child(6) { animation-delay: 0.6s; }
.circuit-card:nth-child(7) { animation-delay: 0.7s; }

/* Amélioration de la lisibilité */
strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Style pour les icônes Font Awesome */
.fas, .fab {
    line-height: 1;
}

/* Amélioration du contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #8B0000;
        --secondary-color: #CD853F;
        --text-color: #000;
    }
}

/* Support du mode sombre */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .circuit-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .circuit-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    }
}