/* Variables et styles de base */
:root {
    --primary: #ff681a;
    --primary-dark: #e55c17;
    --dark: #1a1a1a;
    --light: #f8f8f8;
    --text: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.admin-link {
    color: var(--primary);
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* Styles pour les statistiques de pages */
.pages-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.page-stat:hover {
    background: #e9ecef;
}

.page-name {
    font-weight: 600;
    color: var(--dark);
}

.page-visits {
    color: var(--primary);
    font-weight: 700;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Hero Section */
/* === HERO SECTION LISIBILITÉ AMÉLIORÉE === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), 
        url('<?php echo htmlspecialchars($heroImage); ?>') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin-bottom: 35px;
}

.hero .btn {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255,104,26,0.4);
}

.hero .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,104,26,0.6);
}


/* About Section */
.about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Circuits Section */
.circuits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.circuit-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.circuit-card:hover {
    transform: translateY(-10px);
}

.circuit-image {
    height: 200px;
    overflow: hidden;
}

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

.circuit-card:hover .circuit-image img {
    transform: scale(1.1);
}

.circuit-content {
    padding: 20px;
}

.circuit-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.circuit-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.circuit-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery {
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 5px;
}

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

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

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text:before, .testimonial-text:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    position: absolute;
}

.testimonial-text:before {
    top: -10px;
    left: -20px;
}

.testimonial-text:after {
    bottom: -20px;
    right: -20px;
}

.testimonial-author {
    font-weight: 600;
}

/* CTA Section */
.cta {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: #333;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
/* Styles pour les modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
} 
/* Styles améliorés pour l'administration */
.admin-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-nav {
    background-color: white;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary);
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
}

.admin-nav a {
    font-weight: 600;
    padding: 18px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text);
    border-bottom: 3px solid transparent;
}

.admin-nav a.active {
    background-color: rgba(255, 104, 26, 0.1);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-nav a:hover:not(.active) {
    background-color: rgba(255, 104, 26, 0.05);
    color: var(--primary);
}

.admin-section {
    display: none;
    margin-bottom: 40px;
    animation: fadeIn 0.3s ease;
}

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

.admin-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.admin-card h2 {
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.5rem;
}

.admin-card h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 104, 26, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.btn-admin {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 104, 26, 0.3);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 104, 26, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.item-list {
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.item-list li:hover {
    background-color: white;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.preview-image {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    transition: transform 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.05);
}

.logout-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.logout-btn:hover {
    background-color: white;
    color: var(--primary);
}

/* Styles pour les modals améliorés */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-30px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

/* Notifications modernes */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
}

.notification.info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.notification-icon {
    font-size: 1.5rem;
}

/* Page Flux Visiteur */
.visitor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-left: 5px solid var(--primary);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.visitor-activity {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.activity-list {
    list-style: none;
}

.activity-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 104, 26, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive pour l'administration */
@media (max-width: 768px) {
    .admin-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid transparent;
    }
    
    .admin-nav a.active {
        border-left-color: var(--primary);
        border-bottom-color: #f0f0f0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .item-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .visitor-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
}
/* Styles pour le bouton reset stats */
#resetStatsBtn {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.stat-card {
    position: relative;
}

.stat-trend {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trend-up {
    color: #2ecc71;
}

.trend-down {
    color: #e74c3c;
}
    /* Améliorations pour la page d'accueil */
    .section {
        padding: 80px 0;
    }
    
    .section:nth-child(even) {
        background-color: #f8f9fa;
    }
    
    .section-title {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 15px;
        position: relative;
    }
    
    .section-title h2:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(45deg, #ff681a, #ff8c42);
    }
    
    .section-title p {
        font-size: 1.2rem;
        color: #7f8c8d;
        max-width: 600px;
        margin: 20px auto 0;
    }
    
    /* Hero amélioré */
    .hero {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('<?php echo htmlspecialchars($heroImage); ?>');
        background-size: cover;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        color: white;
        text-align: center;
        padding: 180px 0 120px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 25px;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        animation: fadeInUp 1s ease;
    }
    
    .hero p {
        font-size: 1.4rem;
        margin-bottom: 40px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        animation: fadeInUp 1s ease 0.3s both;
    }
    
    .hero .btn {
        animation: fadeInUp 1s ease 0.6s both;
    }
    
    /* About amélioré */
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .about-text h3 {
        font-size: 2rem;
        color: #2c3e50;
        margin-bottom: 25px;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 20px;
        color: #5d6d7e;
    }
    
    .about-image {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .about-image:hover {
        transform: translateY(-10px);
    }
    
    .about-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
    
    
    /* Circuits améliorés */
    .circuits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .circuit-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
    }
    
    .circuit-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }
    
    .circuit-image {
        height: 200px;
        overflow: hidden;
    }
    
    .circuit-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .circuit-card:hover .circuit-image img {
        transform: scale(1.1);
    }
    
    .circuit-content {
        padding: 30px;
    }
    
    .circuit-content h3 {
        font-size: 1.4rem;
        color: #2c3e50;
        margin-bottom: 15px;
    }
    
    .circuit-content p {
        color: #7f8c8d;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .circuit-price {
        background: linear-gradient(45deg, #ff681a, #ff8c42);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        display: inline-block;
        font-weight: 600;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    
    /* Gallery améliorée */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        border-radius: 10px;
        overflow: hidden;
        height: 250px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .gallery-item:hover {
        transform: scale(1.05);
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Testimonials améliorés */
    .testimonials-slider {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 40px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .testimonial {
        background: white;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
        border-left: 4px solid #ff681a;
    }
    
    .testimonial-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #5d6d7e;
        font-style: italic;
        margin-bottom: 25px;
        position: relative;
    }
    
    .testimonial-text p:before {
        content: '"';
        font-size: 4rem;
        color: #ff681a;
        position: absolute;
        top: -20px;
        left: -10px;
        opacity: 0.3;
        font-family: serif;
    }
    
    .testimonial-author {
        font-weight: 600;
        color: #2c3e50;
        font-size: 1.1rem;
    }
    
    /* CTA amélioré */
    .cta {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        text-align: center;
        padding: 100px 0;
    }
    
    .cta h2 {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .cta p {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 0 auto 40px;
        opacity: 0.9;
    }
    
    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .about-content {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        
        .hero h1 {
            font-size: 2.5rem;
        }
        
        .hero p {
            font-size: 1.2rem;
        }
        
        .circuits-grid {
            grid-template-columns: 1fr;
        }
        
        .testimonials-slider {
            grid-template-columns: 1fr;
        }
    }
    
    /* Accessibilité - Skip link */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #ff681a;
        color: white;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 1000;
        transition: top 0.3s;
    }
    
    .skip-link:focus {
        top: 6px;
    }
    /* === SECTION DÉFILANTE HORIZONTALE (commune à circuits / galerie / témoignages) === */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: #eee;
}

/* Cartes circuits */
.circuit-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.circuit-card:hover { transform: translateY(-5px); }

.circuit-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Galerie */
.gallery-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Témoignages */
.testimonial {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.testimonial:hover { transform: translateY(-3px); }

.testimonial-text p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .circuit-card,
    .testimonial,
    .gallery-item {
        flex: 0 0 80%;
    }
}

/* === Slider 1 circuit à la fois === */
.horizontal-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
}

.slides-track {
  display: flex;
  transition: transform 0.5s ease;
  scroll-snap-type: x mandatory;
  overflow-x: hidden;
}

.circuit-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.circuit-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Navigation flèches */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

@media (max-width: 768px) {
  .circuit-slide img { height: 250px; }
}

/* === Sections Buggy Modifiées === */

/* Section 1 : Introduction aux circuits buggy */
.buggy-circuits-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.buggy-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.buggy-intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #5d6d7e;
}

.buggy-intro-text .btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Section 2 : Explorez le Brésil en buggy */
.buggy-explore {
    padding: 100px 0;
    background-color: white;
}

.buggy-explore-content {
    max-width: 900px;
    margin: 0 auto;
}

.explore-image-link {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    text-decoration: none;
}

.explore-image-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.explore-image-link img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.explore-image-link:hover img {
    transform: scale(1.05);
}

.explore-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 104, 26, 0.9) 0%, rgba(229, 92, 23, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.explore-image-link:hover .explore-overlay {
    opacity: 1;
}

.explore-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .buggy-circuits-intro,
    .buggy-explore {
        padding: 60px 0;
    }
    
    .buggy-intro-text p {
        font-size: 1.1rem;
    }
    
    .explore-image-link img {
        height: 300px;
    }
    
    .explore-text {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .buggy-intro-text .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .buggy-intro-text p {
        font-size: 1rem;
    }
    
    .explore-image-link img {
        height: 250px;
    }
    
    .explore-text {
        font-size: 1.1rem;
    }
}
