@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFA500; /* orange vif */
    --secondary-color: #FFD700; /* jaune doré */
    --accent-color: #7CB342; /* vert naturel */
    --dark-color: #2d5016; /* vert foncé */
    --light-color: #FFFEF0; /* crème très clair */
    --text-color: #3d3d3d;
    --border-radius: 16px;
    --card-shadow: 0 4px 12px rgba(124,179,66,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(to bottom, #FFFEF0 0%, #FFF9E6 100%);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Banderole */
.banderole {
    width: 100%;
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.navbar-banderole {
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.brand-bar {
    background: linear-gradient(90deg, #FFA500, #FFB84D);
    text-align: center;
    padding: 6px 0;
}

.brand-bar .navbar-banderole {
    margin: 0 auto;
    height: 70px;
}

.section-block {
    display: block;
    padding: 60px 16px 40px 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.section-alt {
    background: linear-gradient(135deg, rgba(124,179,66,0.08), rgba(255,215,0,0.06));
}

.section-block h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 2.2rem;
    font-weight: 700;
}

/* Collapsible sections */
details.collapsible {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(43,45,66,0.06);
}

details.collapsible summary {
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    pointer-events: none;
    user-select: none;
}

details.collapsible summary::-webkit-details-marker {
    display: none;
}

details.collapsible summary::after {
    content: '-';
    font-size: 1.4rem;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

details.collapsible[open] summary::after {
    content: '-';
}

details.collapsible:not([open]) summary::after {
    content: '+';
}

.collapsible-body {
    margin-top: 14px;
}

.timeline {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 0;
}

.timeline li {
    margin-bottom: 10px;
    padding-left: 0;
}

/* Présentation layout */
.presentation-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 24px;
}

.presentation-photo img {
    width: 100%;
    max-width: 220px;
    max-height: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(43,45,66,0.12);
    display: block;
}

.presentation-text h3 {
    margin: 16px 0 10px;
}

.presentation-text p {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .presentation-photo img {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Header et Navigation */
header {
    background: linear-gradient(135deg, #FFB84D 0%, #FFA500 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(124,179,66,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.18);
    color: var(--dark-color);
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255,255,255,0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(124,179,66,0.50) 0%, rgba(255,165,0,0.30) 100%), url("images-miel/magnifique-photo-ensemble.png") center/cover no-repeat;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #7CB342, #8BC34A);
    color: white;
    box-shadow: 0 4px 12px rgba(124,179,66,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124,179,66,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255,165,0,0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFC107, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,165,0,0.4);
}

/* Features */

.features {
    padding: 50px 20px;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #FFFEF0 100%);
    padding: 1.6rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(124,179,66,0.2);
    border-color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #7CB342, #8BC34A);
    color: white;
    text-align: center;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Pages de contenu */
.page-hero {
    background: linear-gradient(135deg, #7CB342, #5a8930);
    color: white;
    padding: 7px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-content h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin: 30px 0 15px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 20px 0 10px;
}

.page-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 30px 0;
}

.product-grid.two-col {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

@media (max-width: 700px) {
    .product-grid.two-col {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: linear-gradient(to bottom, #ffffff, #FFFEF0);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
    padding: 10px;
}

.product-card > h3,
.product-card > p {
    padding: 0 20px;
}

.product-card > h3:first-of-type {
    padding-top: 20px;
}

.product-card > p:last-child {
    padding-bottom: 20px;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(124,179,66,0.25);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.product-card h3 {
    color: var(--accent-color);
    margin: 15px 0;
    font-weight: 600;
}

/* Formulaire de contact */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(244, 164, 96, 0.3);
}

form .btn {
    width: 100%;
}

.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Tableau Points de vente */
.sales-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sales-table th,
.sales-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.sales-table th {
    background-color: var(--secondary-color);
    color: white;
}

.sales-table tr:hover {
    background-color: var(--light-color);
}

/* Carte et localisation */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */

footer {
    background: linear-gradient(135deg, #2d5016 0%, #3d6820 100%);
    color: #e6eef0;
    padding: 20px 20px 15px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #555;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: linear-gradient(180deg, #FFB84D 0%, #FFA500 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.2);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        margin-left: 0 !important;
    }

    .nav-menu a {
        width: 100%;
        display: block;
        padding: 15px;
        border-radius: 0;
        justify-content: center !important;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .product-grid,
    .features .container {
        grid-template-columns: 1fr;
    }

    .sales-table {
        font-size: 0.9rem;
    }

    .sales-table th,
    .sales-table td {
        padding: 8px;
    }

    .map-container {
        height: 300px;
    }

    .section-block h2 {
        font-size: 1.8rem;
    }

    .navbar-banderole {
        height: 50px;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-section p,
    .footer-section h4 {
        text-align: center;
    }
}

/* Actualités - fix mobile */
@media (max-width: 600px) {
    .actualites-container {
        grid-template-columns: 1fr;
    }
}

/* Actualités */
.actualites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.actualite-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(124,179,66,0.3);
}

.actualite-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.actualite-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.video-container {
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto;
    text-align: center;
}

.video-thumbnail {
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto;
    text-align: center;
}

.video-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(251, 143, 103, 0.3);
}

.video-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(251, 143, 103, 0.4);
}

.play-icon {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
    background: none;
    border: none;
    z-index: 1001;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body .fb-video {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-body {
        padding: 1rem;
    }

    .video-play-btn {
        width: 250px;
        height: 150px;
    }

    .play-icon {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .actualites-container {
        grid-template-columns: 1fr;
    }

    .video-container {
        max-width: 100%;
    }
}

/* Historique - Styles pour les sections */
.historique-section {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(124,179,66,0.1);
    border-left: 4px solid var(--accent-color);
}

.historique-section h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.historique-section h2::before {
    content: '📅';
    font-size: 1.5rem;
}

.historique-intro h2::before {
    content: '🐝';
}

.historique-avenir h2::before {
    content: '🌟';
}

.historique-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.historique-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.historique-section li {
    margin-bottom: 10px;
}
