:root {
    --primary: #f39200;
    /* Orange exact du flyer */
    --bg-black: #0f110f;
    /* Conservé pour les overlays et fallbacks */
    --card-dark: rgba(26, 29, 26, 0.9);
    /* Rendu plus opaque pour la lisibilité sur image */
    --text-light: #e0e0e0;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-light);
    scroll-behavior: smooth;
    /* --- NOUVEAU FOND DE NATURE --- */
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('assets/rando-caroux.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Effet parallaxe élégant */
}

/* --- NAV --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    background: rgba(15, 17, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- BURGER BUTTON --- */
.burger {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/rando-caroux.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 5px solid var(--primary);
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary);
}

/* --- SECTIONS --- */
section {
    padding: 80px 8%;
    position: relative;
}

.section-title {
    font-family: 'Oswald';
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary);
    padding-left: 20px;
    color: #fff;
}

/* --- GRID UNIVERS (Contenu Flyer) --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--card-dark);
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(34, 34, 34, 0.95);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Oswald';
    color: var(--primary);
}

/* --- PRODUITS FLYER (Tags) --- */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: rgba(243, 146, 0, 0.15);
    border: 1px solid var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- SORTIES & BALLADES --- */
.event-box {
    background: linear-gradient(45deg, rgba(26, 29, 26, 0.9), rgba(10, 10, 10, 0.9));
    padding: 40px;
    border-radius: 15px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 102, 0, 0.1);
    border-left: 5px solid var(--primary);
    backdrop-filter: blur(5px);
}

.event-date {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    min-width: 100px;
}

/* --- AVIS GOOGLE --- */
.reviews {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* chips for product list */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(243,146,0,0.15);
    border: 1px solid var(--primary);
    color: white;
    padding: 4px 10px; /* same as .tag */
    border-radius: 4px; /* same as .tag */
    font-size: 0.7rem; /* same as .tag */
    font-weight: 600; /* same as .tag */
}

/* custom scrollbar for reviews */
.reviews::-webkit-scrollbar {
    height: 6px;
}
.reviews::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.reviews::-webkit-scrollbar-thumb {
    background: rgba(243, 146, 0, 0.4);
    border-radius: 3px;
}
.reviews::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
.reviews {
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 146, 0, 0.4) rgba(255, 255, 255, 0.05);
}

.review {
    background: var(--card-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.review .stars {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.review .text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.review .via {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #bbb;
}

.google-logo {
    width: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

/* --- FOOTER --- */
footer {
    padding: 60px 8% 100px;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid #222;
    text-align: center;
    backdrop-filter: blur(5px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    text-align: left;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-map {
    display: flex;
    align-items: center;
}

.btn-order {
    background: var(--primary);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    transition: 0.3s;
    text-transform: uppercase;
    border: 2px solid var(--primary);
}

.btn-order:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
}

/* chips used in product list */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(243,146,0,0.15);
    border: 1px solid var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.chip i {
    font-size: 1rem;
}

/* smaller button for downloads */
.btn-download {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid var(--primary);
    display: inline-block;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-download:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
}

/* --- BOUTON GALERIE --- */
.btn-gallery {
    display: inline-block;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

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

/* --- PHOTO GALLERY --- */
.photo-gallery.hidden {
    display: none;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    flex-basis: 100%;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    filter: brightness(0.9) contrast(1.08) saturate(1.1);
    cursor: pointer;
}

.photo-gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.05) saturate(1.15);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.3);
}

/* --- LIGHTBOX (agrandissement photo) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: default;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(243, 146, 0, 0.25), 0 0 100px rgba(0, 0, 0, 0.5);
    filter: contrast(1.05) saturate(1.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.lightbox-arrow:hover {
    background: var(--primary);
    color: white;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 2001;
}

.lightbox-close:hover {
    background: var(--primary);
    color: white;
}

/* --- FADE IN ANIMATION --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BOUTON APPELER (mobile) --- */
.btn-call {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.btn-call.visible {
    opacity: 1;
    visibility: visible;
}

/* --- SCROLL TO TOP --- */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background: white;
    color: var(--primary);
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 17, 15, 0.98);
        flex-direction: column;
        padding: 20px 5%;
        gap: 15px;
        border-bottom: 2px solid var(--primary);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        height: 60vh; /* less tall on small screens */
        padding: 0 4%;
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/rando-caroux.jpg');
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem; /* smaller on mobile */
        margin-bottom: 20px;
        padding-left: 15px;
    }

    .event-box {
        flex-direction: column;
        text-align: center;
    }

    .card {
        padding: 20px; /* slightly tighter */
    }

    .btn-order, .btn-download {
        padding: 12px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-map {
        justify-content: center;
    }

    .btn-call {
        display: flex;
    }

    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .photo-gallery img {
        aspect-ratio: 1;
        border-radius: 8px;
    }

    .lightbox img {
        max-width: 75%;
    }

    .lightbox-arrow {
        font-size: 1.5rem;
        padding: 10px 13px;
        flex-shrink: 0;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        padding: 6px 11px;
    }
}
