/* =========================================================
PACK4U — STYLE
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --vert-950: #0F2A1E;
    --vert-700: #1B7A47;
    --vert-600: #229356;
    --vert-100: #E7F3EA;

    --kraft: #C9A25F;

    --blanc: #FFFFFF;
    --papier: #FAF9F6;

    --noir: #17191A;
    --gris: #5B6660;
    --gris-clair: #E3E6E1;

    --rayon: 14px;
    --rayon-sm: 8px;

    --ombre:
        0 10px 30px -12px rgba(15,42,30,.25);

    --transition: .25s ease;

    --police-titre: 'Poppins', sans-serif;
    --police-texte: 'Inter', sans-serif;
}

/* =========================================================
BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 78px;

    background: var(--papier);
    color: var(--noir);

    font-family: var(--police-texte);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--vert-950);
    font-family: var(--police-titre);
}

p {
    margin: 0;
    color: var(--gris);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 78px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 6vw;

    background: var(--vert-950);

    box-shadow:
        0 5px 20px rgba(0,0,0,.15);
}

.logo {
    display: block;
}

.logo img {
    width: auto;
    height: 48px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;

    font-family: var(--police-titre);
    font-size: 14px;
    font-weight: 600;

    position: relative;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    background: var(--kraft);

    transition: .25s;
}

nav a:hover::after {
    width: 100%;
}

/* =========================================================
MENU MOBILE
========================================================= */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 8px;

    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;

    height: 2px;

    margin: 5px 0;

    background: white;

    border-radius: 5px;
}

/* =========================================================
HERO
========================================================= */

.hero {
    position: relative;

    min-height: 88vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;
}

.hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(15,42,30,.78),
            rgba(15,42,30,.55),
            rgba(15,42,30,.85)
        );
}

.hero-contenu {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding: 40px 25px;
}

.hero-marque {
    color: var(--kraft);

    font-family: var(--police-titre);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: .25em;

    margin-bottom: 18px;
}

.hero h1 {
    color: white;

    font-size: clamp(32px,5vw,54px);

    line-height: 1.15;

    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;

    margin: 0 auto 30px;

    color: #E9EFE9;

    font-size: 17px;
}

.hero-boutons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

/* =========================================================
BOUTONS
========================================================= */

.btn-primary,
.btn-outline,
.btn-decouvrir,
.btn-envoyer-devis {
    border-radius: var(--rayon-sm);

    font-family: var(--police-titre);

    font-size: 14px;
    font-weight: 600;

    transition: .25s;
}

.btn-primary {
    border: none;

    padding: 14px 28px;

    background: var(--vert-700);

    color: white;
}

.btn-primary:hover {
    background: var(--vert-600);

    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;

    padding: 12px 26px;

    border: 1px solid white;

    color: white;

    text-decoration: none;
}

.btn-outline:hover {
    background: white;

    color: var(--vert-950);
}

.btn-decouvrir {
    width: calc(100% - 40px);

    margin: 0 20px;

    padding: 12px;

    border: 1px solid var(--vert-700);

    background: var(--vert-100);

    color: var(--vert-950);
}

.btn-decouvrir:hover {
    background: var(--vert-700);

    color: white;

    transform: translateY(-2px);
}

/* =========================================================
SECTIONS
========================================================= */

section {
    padding: 90px 6vw;
}

.produits {
    background: var(--papier);
}

.titre-section {
    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}

.eyebrow {
    display: inline-block;

    color: var(--vert-700);

    font-family: var(--police-titre);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.titre-section h2 {
    font-size: 34px;
}

.titre-section p {
    margin-top: 10px;
}

/* =========================================================
CARTES
========================================================= */

.cartes {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));

    gap: 28px;
}

.carte {
    background: white;

    border: 1px solid var(--gris-clair);

    border-radius: var(--rayon);

    overflow: hidden;

    padding-bottom: 22px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.03);

    transition: .25s;
}

.carte:hover {
    transform: translateY(-6px);

    box-shadow: var(--ombre);
}

.carte > img {
    width: 100%;

    height: 190px;

    object-fit: cover;

    margin-bottom: 18px;
}

.carte h3 {
    padding: 0 20px;

    font-size: 19px;

    margin-bottom: 8px;
}

.carte p {
    min-height: 65px;

    padding: 0 20px;

    margin-bottom: 18px;

    font-size: 14px;
}

/* =========================================================
POPUP PRODUITS
========================================================= */

.popup {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 5000;

    padding: 20px;

    background: rgba(0,0,0,.65);

    align-items: center;

    justify-content: center;
}

.popup.active {
    display: flex;
}

.popup-contenu {
    position: relative;

    width: 95%;

    max-width: 1100px;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

.fermer-popup,
.fermer-devis {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: var(--vert-700);

    color: white;

    font-size: 25px;

    line-height: 1;

    z-index: 20;
}

.fermer-popup:hover,
.fermer-devis:hover {
    background: var(--vert-600);
}

/* =========================================================
TITRE POPUP
========================================================= */

.popup-titre {
    text-align: center;

    margin-bottom: 30px;

    padding-right: 40px;
}

.popup-titre h2 {
    font-size: 28px;
}

.popup-titre p {
    margin-top: 8px;
}

/* =========================================================
MODELES
========================================================= */

.popup-modeles {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(280px,1fr));

    gap: 20px;
}

.modele {
    background: var(--vert-100);

    border: 1px solid var(--gris-clair);

    border-radius: var(--rayon);

    padding: 20px;
}

.modele img {
    width: 100%;

    height: 170px;

    object-fit: cover;

    border-radius: var(--rayon-sm);

    margin-bottom: 15px;
}

.modele h3 {
    font-size: 19px;

    margin-bottom: 10px;
}

.modele p {
    font-size: 13px;

    margin-bottom: 15px;
}

.modele .btn-primary {
    width: 100%;

    margin-top: 15px;
}

/* =========================================================
FORMULAIRE DEVIS
========================================================= */

.devis-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 6000;

    padding: 20px;

    background: rgba(0,0,0,.65);

    align-items: center;

    justify-content: center;
}

.devis-overlay.active {
    display: flex;
}

.section-devis {
    position: relative;

    width: 95%;

    max-width: 700px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

.formulaire-devis {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.champ {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.champ label {
    color: var(--vert-950);

    font-family: var(--police-titre);

    font-size: 13px;

    font-weight: 600;
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid var(--gris-clair);

    border-radius: var(--rayon-sm);

    background: white;

    color: var(--noir);

    font-size: 14px;

    outline: none;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    border-color: var(--vert-700);

    box-shadow:
        0 0 0 3px rgba(27,122,71,.12);
}

.trois-champs {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;
}

.btn-envoyer-devis {
    width: 100%;

    padding: 15px;

    border: none;

    background: var(--vert-700);

    color: white;
}

.btn-envoyer-devis:hover {
    background: var(--vert-600);

    transform: translateY(-2px);
}

/* =========================================================
FOOTER
========================================================= */

footer {
    padding: 50px 6vw 30px;

    text-align: center;

    background: var(--vert-950);
}

footer p {
    margin-top: 18px;

    color: #9DB3A4;

    font-size: 13px;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;

        top: 78px;

        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: var(--vert-950);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 16px 6vw;

        border-top:
            1px solid rgba(255,255,255,.08);
    }

    .popup-modeles {
        grid-template-columns:
            repeat(2,minmax(280px,1fr));
    }
}

@media (max-width: 600px) {

    body {
        padding-top: 70px;
    }

    .site-header {
        height: 70px;
    }

    nav {
        top: 70px;
    }

    .hero {
        min-height: 78vh;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-boutons {
        flex-direction: column;
    }

    .hero-boutons button,
    .hero-boutons a {
        width: 100%;
    }

    .popup-contenu,
    .section-devis {
        padding: 25px 18px;
    }

    .popup-modeles {
        grid-template-columns: 1fr;
    }

    .trois-champs {
        grid-template-columns: 1fr;
    }

    .titre-section h2 {
        font-size: 28px;
    }
}

/* =====================================================
/* =====================================================
   SLIDER — IMAGES DES CATÉGORIES
===================================================== */

.categorie-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--rayon);
    background: #eee;
}

.categorie-slider img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 220px;

    object-fit: cover;

    display: none;

    margin: 0;
}

.categorie-slider img.active {
    display: block;
}

.image-slider-coffrets img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    display: none;
}

.image-slider-coffrets img:first-child {
    display: block;
}

/* =====================================================
DIAPORAMA AUTOMATIQUE DES CATÉGORIES
===================================================== */

.categorie-slider {
    width: 100%;
    height: 220px;

    overflow: hidden;

    position: relative;
}

.categorie-slider img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    display: none;
}

.categorie-slider img.active {
    display: block;
}

/* =====================================================
CONSEILS — SECTION ORIGINALE
===================================================== */

.conseils {
    padding: 70px 20px;

    background: #f5f8f5;
}

.conseils-cartes {
    max-width: 1100px;

    margin: 40px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.conseil {
    background: #ffffff;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);
}

.conseil h3 {
    margin-top: 0;

    margin-bottom: 12px;

    color: #16803c;

    font-size: 18px;
}

.conseil p {
    margin: 0;

    line-height: 1.6;

    color: #555;
}

/* =====================================================
POPUP CONSEILS
===================================================== */

#popupConseils {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 5500;

    padding: 20px;

    background: rgba(0,0,0,.65);

    align-items: center;

    justify-content: center;
}

#popupConseils.active {
    display: flex;
}

.conseils-popup {
    position: relative;

    width: 95%;

    max-width: 850px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

.conseils-popup .titre-section {
    margin-bottom: 30px;
}

.conseils-popup-cartes {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.conseils-popup-cartes .conseil {
    padding: 20px;

    background: #f5f8f5;
}

.conseil-devis {
    display: block;

    margin: 25px auto 0;
}

/* =====================================================
MOBILE CONSEILS
===================================================== */

@media (max-width: 768px) {

    .conseils {
        padding: 50px 15px;
    }

    .conseils-cartes {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-top: 30px;
    }

    .conseil {
        padding: 20px;
    }

    .conseils-popup {
        width: 96%;

        max-height: 90vh;

        padding: 25px 18px;
    }

    .conseils-popup-cartes {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .conseils-popup .titre-section h2 {
        font-size: 27px;
    }
}