/* ===========================================
   DISTRI-FETES - Feuille de style principale
   Site modifiable facilement
   =========================================== */

/* Variables de couleurs - Modifiez ici pour changer le thème */
:root {
    --vert-principal: #1a5c38;
    --vert-fonce: #0d3d24;
    --vert-clair: #2d7a4e;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-texte: #333333;
    --rouge-fete: #c41e3a;
    --or-fete: #d4a835;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gris-texte);
    background-color: var(--blanc);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: var(--blanc);
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
}

.nav-logo span {
    color: var(--or-fete);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Menu Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--blanc);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Page d'accueil */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--blanc);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 0;
}

.hero-content .btn {
    margin-top: auto;
}

/* Sections */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--vert-principal);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--or-fete);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Grille de catalogues */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.catalog-card {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.catalog-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.catalog-card-content {
    padding: 25px;
}

.catalog-card h3 {
    color: var(--vert-principal);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.catalog-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-clair) 100%);
    color: var(--blanc);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-principal) 100%);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--blanc);
    color: var(--vert-principal);
    border: 2px solid var(--vert-principal);
}

.btn-secondary:hover {
    background: var(--vert-principal);
    color: var(--blanc);
}

.btn-festif {
    background: linear-gradient(135deg, var(--rouge-fete) 0%, #e63950 100%);
    color: var(--blanc);
}

.btn-festif:hover {
    background: linear-gradient(135deg, #a01830 0%, var(--rouge-fete) 100%);
}

/* Grille de vidéos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card-content {
    padding: 20px;
    text-align: center;
}

.video-card h3 {
    color: var(--vert-principal);
    font-size: 1.1em;
}

/* Eco-Packs */
.ecopack-section {
    background: var(--gris-clair);
    padding: 60px 20px;
}

.ecopack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ecopack-card {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ecopack-card img {
    width: 100%;
    height: auto;
}

.ecopack-card-content {
    padding: 25px;
}

.ecopack-card h3 {
    color: var(--vert-principal);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.ecopack-price {
    font-size: 1.8em;
    color: var(--rouge-fete);
    font-weight: bold;
}

/* Page CGV */
.cgv-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cgv-content h1 {
    color: var(--vert-principal);
    margin-bottom: 30px;
    text-align: center;
}

.cgv-content h2 {
    color: var(--vert-principal);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.cgv-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.cgv-content ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-principal) 100%);
    color: var(--blanc);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    margin-bottom: 15px;
    color: var(--or-fete);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer a {
    color: var(--or-fete);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        gap: 5px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .ecopack-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-clair) 100%);
    color: var(--blanc);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.highlight-box h2 {
    margin-bottom: 15px;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--vert-clair) 0%, var(--vert-principal) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
