/* ========================= */
/* GOOGLE FONT */
/* ========================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ========================= */
/* RESET & FONDS GLOBAUX */
/* ========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fffaf5;
    color:#111111;
    line-height: 1.6;
}

/* ========================= */
/* VARIABLES */
/* ========================= */

:root{
    --primary:#B85A12;
    --secondary:#F59A4A;
    --dark:#111111;
    --white:#ffffff;
    --gray:#f5f5f5;
    --gradient:linear-gradient(135deg,#B85A12,#F59A4A);
    --shadow:0 10px 30px rgba(0,0,0,0.06);
    --shadowHover:0 15px 35px rgba(184,90,18,0.18);

    /* COULEURS CATEGORIES */
    --chocolat-bg:#fff1e6;
    --saucisson-bg:#fff5f5;
    --jambon-bg:#fff0f6;
    --nature-bg:#f5fff2;

    --chocolat-color:#7a3b00;
    --saucisson-color:#c0392b;
    --jambon-color:#c2185b;
    --nature-color:#2e7d32;
}

/* ========================= */
/* CUSTOM SCROLLBAR */
/* ========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#fff;
}

::-webkit-scrollbar-thumb{
    background:var(--gradient);
    border-radius:50px;
}

/* ========================= */
/* HEADER & NAVIGATION */
/* ========================= */

.header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:1000;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(12px);
    box-shadow:0 2px 20px rgba(0,0,0,0.04);
}

.navbar{
    width:100%;
    max-width:1200px; /* Aligné sur le standard pro */
    margin:auto;
    padding:14px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid var(--secondary);
}

.logo h2{
    font-size:1.3rem;
    color:var(--primary);
    font-weight:800;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:35px;
    list-style:none;
}

.nav-links li a{
    text-decoration:none;
    color:var(--dark);
    font-weight:600;
    font-size:0.95rem;
    position:relative;
    transition:0.3s;
}

.nav-links li a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:3px;
    background:var(--gradient);
    border-radius:10px;
    transition:0.3s;
}

.nav-links li a:hover::after{
    width:100%;
}

.nav-links li a:hover{
    color:var(--primary);
}

.nav-btn{
    text-decoration:none;
    background:var(--gradient);
    color:var(--white);
    padding:12px 26px;
    border-radius:50px;
    font-weight:700;
    font-size:0.9rem;
    box-shadow:0 6px 20px rgba(184,90,18,0.2);
    transition:0.3s;
}

.nav-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 25px rgba(184,90,18,0.3);
}

/* ========================= */
/* HAMBURGER */
/* ========================= */

.hamburger{
    display:none;
    flex-direction:column;
    gap:6px;
    cursor:pointer;
}

.hamburger span{
    width:28px;
    height:3px;
    background:var(--primary);
    border-radius:20px;
    transition:0.3s;
}

/* ========================= */
/* HERO SECTION (ACCUEIL) */
/* ========================= */

.hero{
    width:100%;
    max-width:1200px;
    margin: 110px auto 30px auto; /* Évite l'espace vide sous le menu fixe */
    padding: 40px 24px;
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items:center;
    gap:40px;
    background:
    radial-gradient(circle at top left,rgba(245,154,74,0.15),transparent 30%),
    radial-gradient(circle at bottom right,rgba(184,90,18,0.1),transparent 30%);
}

.hero-content{
    animation:fadeLeft 0.8s ease;
}

.hero-content h1{
    font-size:3.5rem; /* Ajusté pour éviter de repousser le contenu vers le bas */
    line-height:1.15;
    font-weight:900;
    margin-bottom:20px;
    color:var(--primary);
}

.hero-content p{
    font-size:1.05rem;
    line-height:1.7;
    max-width:580px;
    color:#555;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.hero-btn{
    text-decoration:none;
    padding:14px 30px;
    border-radius:50px;
    font-weight:700;
    font-size:0.95rem;
    transition:0.3s;
}

.hero-btn:first-child{
    background:var(--gradient);
    color:var(--white);
    box-shadow:0 8px 25px rgba(184,90,18,0.2);
}

.hero-btn:first-child:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(184,90,18,0.3);
}

.second-btn{
    border:2px solid var(--primary);
    color:var(--primary);
    background:transparent;
}

.second-btn:hover{
    background:var(--gradient);
    color:var(--white);
    transform:translateY(-4px);
}

.delivery-banner{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#fff;
    padding:12px 22px;
    border-radius:50px;
    box-shadow:var(--shadow);
    color:var(--primary);
    font-weight:700;
    font-size:0.9rem;
}

.hero-image{
    display:flex;
    justify-content:center;
    position:relative;
    animation:fadeRight 0.8s ease;
}

.hero-image::before{
    content:'';
    position:absolute;
    width:400px;
    height:400px;
    background:var(--gradient);
    border-radius:50%;
    filter:blur(100px);
    opacity:0.2;
    z-index:0;
}

.hero-image img{
    width:100%;
    max-width:480px; /* Évite les images trop géantes */
    max-height:420px;
    object-fit:contain;
    position:relative;
    z-index:2;
    animation:float 4s ease-in-out infinite;
    filter:drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes float{
    0% { transform:translateY(0px); }
    50% { transform:translateY(-15px); }
    100% { transform:translateY(0px); }
}

@keyframes fadeLeft{
    from { opacity:0; transform:translateX(-30px); }
    to { opacity:1; transform:translateX(0); }
}

@keyframes fadeRight{
    from { opacity:0; transform:translateX(30px); }
    to { opacity:1; transform:translateX(0); }
}

/* ========================= */
/* SECTION TITLE GLOBAUX */
/* ========================= */

.section-title{
    text-align:center;
    margin-bottom:40px; /* Rapproche le titre du contenu */
}

.section-title h2{
    font-size:2.4rem;
    color:var(--primary);
    margin-bottom:10px;
    font-weight:800;
}

.section-title p{
    font-size:1rem;
    color:#666;
}

/* ========================= */
/* MENU CATEGORIES SECTION */
/* ========================= */

.menu-section{
    padding:60px 24px;
    background:#fff;
}

.menu-section .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.menu-categories{
    display:grid;
    grid-template-columns:repeat(4, 1fr); /* Grille stable à 4 colonnes sur PC */
    gap:24px;
    max-width:1200px;
    margin:0 auto;
}

.menu-box{
    padding:35px 24px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:0.4s ease;
    position:relative;
    overflow:hidden;
}

.menu-box::before{
    content:'';
    position:absolute;
    top:-100%;
    left:-100%;
    width:200px;
    height:200px;
    background:rgba(255,255,255,0.15);
    border-radius:50%;
    transition:0.5s;
}

.menu-box:hover::before{
    top:-30px;
    left:-30px;
}

.menu-box:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadowHover);
}

.menu-box h3{
    font-size:1.35rem;
    margin-bottom:12px;
    position:relative;
    z-index:2;
}

.menu-box p{
    font-size:0.9rem;
    line-height:1.6;
    position:relative;
    z-index:2;
}

/* COULEURS MENU */
.chocolat-box { background:var(--chocolat-bg); }
.chocolat-box h3 { color:var(--chocolat-color); }
.saucisson-box { background:var(--saucisson-bg); }
.saucisson-box h3 { color:var(--saucisson-color); }
.jambon-box { background:var(--jambon-bg); }
.jambon-box h3 { color:var(--jambon-color); }
.nature-box { background:var(--nature-bg); }
.nature-box h3 { color:var(--nature-color); }

/* ========================= */
/* PRODUCTS SECTION */
/* ========================= */

.products-section{
    padding:60px 24px;
    background:#fffaf5;
}

.products-section > .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================= */
/* CATEGORY SECTION */
/* ========================= */

.category-section{
    padding:40px 30px;
    border-radius:24px;
    margin-bottom:50px;
    max-width:1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-title{
    text-align:center;
    margin-bottom:35px;
}

.category-title h2{
    font-size:1.8rem;
    margin-bottom:8px;
    font-weight:800;
}

.category-title p{
    color:#555;
    font-size:0.95rem;
}

/* COULEURS SECTIONS */
.chocolat-section { background:var(--chocolat-bg); }
.chocolat-section .category-title h2 { color:var(--chocolat-color); }
.saucisson-section { background:var(--saucisson-bg); }
.saucisson-section .category-title h2 { color:var(--saucisson-color); }
.jambon-section { background:var(--jambon-bg); }
.jambon-section .category-title h2 { color:var(--jambon-color); }
.nature-section { background:var(--nature-bg); }
.nature-section .category-title h2 { color:var(--nature-color); }

.nature-section .products-container{
    align-items:start;
}

.products-container{
    display:grid;
    grid-template-columns:repeat(4, 1fr); /* 4 Colonnes fixes pour éviter les trous sur PC */
    gap:24px;
}

.product-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    box-shadow:var(--shadow);
    transition:0.4s ease;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadowHover);
}

.product-card img{
    width:100%;
    height:180px; /* Dimensionné parfaitement pour ordinateur */
    object-fit:cover;
    transition:0.4s ease;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-card h3{
    font-size:1.2rem;
    margin:18px 20px 8px;
    color:var(--primary);
    font-weight:700;
}

.product-card p{
    margin:0 20px 14px;
    font-size:0.88rem;
    line-height:1.6;
    color:#666;
}

.product-card span{
    display:inline-block;
    align-self: flex-start;
    margin:0 20px 18px;
    background:#fff2e6;
    color:var(--primary);
    padding:6px 14px;
    border-radius:50px;
    font-size:1.05rem;
    font-weight:800;
}

.order-btn{
    display:block;
    margin:0 20px 20px;
    text-align:center;
    text-decoration:none;
    padding:12px;
    border-radius:50px;
    background:var(--gradient);
    color:#fff;
    font-weight:700;
    font-size:0.9rem;
    transition:0.3s;
    box-shadow:0 4px 15px rgba(184,90,18,0.15);
}

.order-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(184,90,18,0.25);
}

/* ========================= */
/* GALLERY SECTION */
/* ========================= */

.gallery-section{
    padding:60px 24px;
    background:#fff;
}

.gallery-section .section-title {
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr); /* Alignement pro en 4 colonnes sur PC */
    gap:20px; /* Espacement resserré et moderne */
    max-width:1200px;
    margin:auto;
}

.gallery-item{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    height:260px; /* Hauteur ajustée pour ordinateur */
    cursor:pointer;
}

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s ease;
}

.gallery-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(to top, rgba(184,90,18,0.95), rgba(245,154,74,0.4));
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:20px;
    opacity:0;
    transition:0.3s ease;
}

.gallery-overlay h3{
    color:var(--white);
    font-size:1.25rem;
    font-weight:700;
    transform:translateY(15px);
    transition:0.3s ease;
}

.gallery-overlay p{
    color:rgba(255,255,255,0.9);
    font-size:0.9rem;
    margin-top:4px;
    transform:translateY(15px);
    transition:0.3s ease 0.05s;
}

/* HOVER GALLERY */
.gallery-item:hover img{
    transform:scale(1.05);
}

.gallery-item:hover .gallery-overlay{
    opacity:1;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p{
    transform:translateY(0);
}

/* ========================= */
/* REVIEWS SECTION (TEMOIGNAGES) */
/* ========================= */

.reviews-section{
    padding:60px 24px;
    background:#fffaf5;
}

.reviews-section .section-title {
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.reviews-container{
    display:grid;
    grid-template-columns:repeat(3, 1fr); /* 3 colonnes parfaites pour le texte */
    gap:24px;
    max-width:1200px;
    margin:auto;
}

.review-card{
    background:var(--white);
    border-radius:20px;
    padding:35px 30px;
    box-shadow:var(--shadow);
    transition:0.3s ease;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.review-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadowHover);
}

.review-stars{
    color:#FFB100;
    font-size:1.1rem;
    margin-bottom:15px;
}

.review-card p{
    color:#444;
    font-size:0.95rem;
    line-height:1.7;
    font-style:italic;
    margin-bottom:20px;
}

.review-user{
    display: block;
    border-top: 1px solid #f5e6d8;
    padding-top:15px;
}

.review-user-info h4{
    color:var(--primary);
    font-size:1.05rem;
    font-weight:700;
    margin-bottom:2px;
}

.review-user-info span{
    color:#777;
    font-size:0.85rem;
    font-weight:500;
}

/* ========================= */
/* DELIVERY SECTION */
/* ========================= */

.delivery-section{
    padding:70px 24px;
    background:
    linear-gradient(rgba(0,0,0,0.65),rgba(0,0,0,0.65)),
    url("images/delivery-bg.jpg");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    text-align:center;
    color:#fff;
}

.delivery-content h2{
    font-size:2.8rem;
    margin-bottom:12px;
    font-weight:900;
}

.delivery-content p{
    font-size:1.1rem;
    margin-bottom:24px;
    line-height:1.6;
}

.delivery-btn{
    text-decoration:none;
    background:var(--gradient);
    color:#fff;
    padding:14px 35px;
    border-radius:50px;
    font-weight:700;
    font-size:0.95rem;
    transition:0.3s;
    display:inline-block;
}

.delivery-btn:hover{
    transform:translateY(-4px);
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-section{
    padding:60px 24px;
    background:#fff;
}

.contact-section .section-title {
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.contact-container{
    display:grid;
    grid-template-columns:repeat(3, 1fr); /* Évite l'étirement des blocs contact */
    gap:24px;
    max-width:1200px;
    margin:0 auto;
}

.contact-box{
    background:#fff;
    border-radius:20px;
    padding:40px 24px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:0.3s;
    border: 1px solid #fdf8f4;
}

.contact-box:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadowHover);
}

.contact-box i{
    font-size:2.5rem;
    color:var(--primary);
    margin-bottom:18px;
}

.contact-box h3{
    font-size:1.4rem;
    margin-bottom:10px;
}

.contact-box p{
    color:#666;
    font-size:0.9rem;
    margin-bottom:20px;
}

.contact-box a{
    text-decoration:none;
    background:var(--gradient);
    color:#fff;
    padding:12px 24px;
    border-radius:50px;
    display:inline-block;
    font-weight:600;
    font-size:0.88rem;
    transition:0.3s;
}

.contact-box a:hover{
    transform:translateY(-3px);
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
    background:#111111;
    padding:60px 24px 30px;
    color:#fff;
}

.footer-content{
    text-align:center;
    max-width:1200px;
    margin:0 auto;
}

.footer-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.footer-logo img{
    width:60px;
    height:60px;
    border-radius:50%;
}

.footer-logo h2{
    color:var(--secondary);
    font-size:1.6rem;
}

.footer-content p{
    color:#ccc;
    font-size:0.9rem;
    line-height:1.7;
}

.footer-socials{
    display:flex;
    justify-content:center;
    gap:16px;
    margin:25px 0;
}

.footer-socials a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:var(--gradient);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:1.1rem;
    transition:0.3s;
}

.footer-socials a:hover{
    transform:translateY(-5px) rotate(8deg);
}

.footer h4{
    margin-bottom:10px;
    color:var(--secondary);
}

.copyright{
    margin-top:20px;
    font-size:0.8rem;
    color:#777;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
}

/* ========================= */
/* WHATSAPP FLOAT */
/* ========================= */

.whatsapp-float{
    position:fixed;
    right:24px;
    bottom:24px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:1.8rem;
    z-index:999;
    box-shadow:0 10px 25px rgba(37,211,102,0.3);
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0% { transform:scale(1); }
    50% { transform:scale(1.08); }
    100% { transform:scale(1); }
}

/* ========================= */
/* RESPONSIVE (MEDIA QUERIES) */
/* ========================= */

@media(max-width:1100px){
    .hero{
        grid-template-columns: 1fr;
        text-align:center;
        margin-top: 90px;
    }
    .hero-content p{
        margin:auto auto 30px;
    }
    .hero-buttons{
        justify-content:center;
    }
    .menu-categories, .products-container, .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:991px){
    .nav-links{
        position:fixed;
        top:80px;
        right:-100%;
        width:280px;
        height:100vh;
        background:#fff;
        flex-direction:column;
        align-items:flex-start;
        padding:40px 30px;
        gap:24px;
        transition:0.4s;
        box-shadow:-10px 0 30px rgba(0,0,0,0.05);
    }
    .nav-links.active{
        right:0;
    }
    .hamburger{
        display:flex;
    }
    .nav-btn{
        display:none;
    }
    .hero-content h1{
        font-size:3rem;
    }
    .menu-categories, .products-container, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-container, .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px){
    .hero{
        padding-top:100px;
    }
    .hero-content h1{
        font-size:2.5rem;
    }
    .section-title h2{
        font-size:2.2rem;
    }
    .category-title h2{
        font-size:1.8rem;
    }
    .delivery-content h2{
        font-size:2.4rem;
    }
    .category-section{
        padding:30px 20px;
    }
    .delivery-section{
        padding:50px 20px;
    }
    .gallery-grid {
        gap:20px;
    }
    .gallery-item {
        height:240px;
    }
    .review-card {
        padding:25px;
    }
}

@media(max-width:560px){
    .menu-categories, .products-container, .gallery-grid, .reviews-container, .contact-container {
        grid-template-columns: 1fr; /* 1 seule colonne sur les petits téléphones */
    }
    .hero{
        padding-left:16px;
        padding-right:16px;
    }
    .hero-content h1{
        font-size:2rem;
    }
    .hero-content p{
        font-size:0.95rem;
    }
    .hero-btn{
        width:100%;
        text-align:center;
    }
    .section-title h2{
        font-size:1.8rem;
    }
    .delivery-content h2{
        font-size:1.9rem;
    }
    .logo h2{
        font-size:1.1rem;
    }
    .category-title h2{
        font-size:1.5rem;
    }
}