* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fa;
    color: #222;
}


/* HERO */

.product-hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('../Media/Gallery/champsinsec1.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: #fff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn-primary {
    padding: 14px 30px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
}


/* DETAILS */

.product-details {
    display: flex;
    padding: 80px 10%;
    gap: 50px;
    align-items: center;
}

.product-details img {
    width: 500px;
    height: 400px;
    box-shadow: 0 15px 40px rgba(1, 253, 1, 0.2);
    transition: 0.5s;
}

.product-details img:hover {
    transform: scale(1.05);
}


/* GALERIE */

.product-gallery {
    padding: 80px 10%;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 15px;
    transition: transform .4s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}


/* VIDEO */

.product-video {
    padding: 80px 10%;
    text-align: center;
}

.product-video video,
.product-video iframe {
    width: 80%;
    height: 450px;
    border-radius: 20px;
}


/* SECTION FILTRE */

.product-filter-section {
    padding: 90px 10%;
    background: #fff;
    text-align: center;
}

.product-filter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}


/* BOUTONS */

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-buttons button {
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: #eee;
    font-weight: 600;
    transition: all .3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: #2ecc71;
    color: #fff;
}


/* GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}


/* CARTE PRODUIT */

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
    cursor: pointer;
}

.product-card.hide {
    display: none;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}


/* OVERLAY */

.product-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #fff;
    gap: 10px;
    opacity: 0;
    transition: opacity .4s;
}

.product-card h3 {
    font-size: 1.3rem;
}

.product-card p {
    font-size: .95rem;
    opacity: .9;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.btn-commande {
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffd600;
    color: #0f3c19;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 214, 0, 0.35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-commande:hover {
    transform: translateY(-2px);
    background: #ffdf3c;
    box-shadow: 0 14px 32px rgba(255, 214, 0, 0.45);
}

.btn-whatsapp {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: #1eb65a;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
}


/* HOVER */

.product-card:hover img {
    transform: scale(1.12);
}

.product-card:hover .overlay {
    opacity: 1;
}


/* HIDE */

.product-card.hide {
    display: none;
}


/* RECHERCHE */

.product-search {
    max-width: 400px;
    margin: 0 auto 30px;
}

.product-search input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 15px;
    transition: .3s;
}

.product-search input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, .3);
}


/* CTA */

.product-cta {
    padding: 80px;
    background: #2ecc71;
    color: white;
    text-align: center;
}


/* ASSISTANT TOGUNA */

.toguna-ai {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1300;
    font-family: 'Poppins', sans-serif;
}

.toguna-ai__toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f3c19, #1b5e20);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(15, 60, 25, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.toguna-ai__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 52px rgba(15, 60, 25, 0.34);
}

.toguna-ai__pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd600;
    box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7);
    animation: togunaPulse 1.8s infinite;
}

.toguna-ai__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.toguna-ai__label {
    font-weight: 700;
    white-space: nowrap;
}

.toguna-ai__panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(400px, calc(100vw - 24px));
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 60, 25, 0.12);
    box-shadow: 0 24px 60px rgba(15, 60, 25, 0.18);
}

.toguna-ai__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #0f3c19, #1b5e20);
    color: #fff;
}

.toguna-ai__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.toguna-ai__header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.toguna-ai__close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.toguna-ai__messages {
    max-height: 360px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f7fbf6 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toguna-ai__message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.toguna-ai__message--assistant {
    background: #eef6ef;
    color: #12351b;
    border-top-left-radius: 6px;
    align-self: flex-start;
}

.toguna-ai__message--user {
    background: #0f3c19;
    color: #fff;
    border-top-right-radius: 6px;
    align-self: flex-end;
}

.toguna-ai__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
    background: #fff;
}

.toguna-ai__chips button {
    border: 1px solid rgba(15, 60, 25, 0.14);
    background: #f7f7f7;
    color: #12351b;
    border-radius: 999px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.toguna-ai__chips button:hover {
    background: #e8f3e8;
    border-color: rgba(15, 60, 25, 0.25);
}

.toguna-ai__form {
    display: flex;
    gap: 10px;
    padding: 14px 16px 16px;
    background: #fff;
}

.toguna-ai__form input {
    flex: 1;
    border: 1px solid #d7e3d9;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
}

.toguna-ai__form input:focus {
    border-color: #1b5e20;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.08);
}

.toguna-ai__form button {
    border: none;
    border-radius: 14px;
    background: #ffd600;
    color: #0f3c19;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
}

.toguna-ai__message a {
    color: #1b5e20;
    font-weight: 700;
    text-decoration: none;
}

.toguna-ai__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.toguna-ai__section-title {
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: #0f3c19;
}

.toguna-ai__contact-card {
    background: #fff;
    border: 1px solid #dce9de;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(15, 60, 25, 0.08);
}

.toguna-ai__contact-name {
    font-weight: 700;
    color: #0f3c19;
}

.toguna-ai__meta {
    margin-top: 4px;
    font-size: 13px;
    color: #35523b;
    line-height: 1.45;
}

.toguna-ai__note {
    margin-top: 8px;
    font-size: 12px;
    color: #52705a;
    line-height: 1.45;
}

.toguna-ai__contact-card a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 600;
}

.toguna-ai__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.toguna-ai__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.toguna-ai__action:hover {
    transform: translateY(-2px);
}

.toguna-ai__action--call {
    background: #0f3c19;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 60, 25, 0.18);
}

.toguna-ai__action--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.18);
}

.toguna-ai__action--sheet {
    background: #eef6ef;
    color: #0f3c19;
    border: 1px solid #cfe0d1;
}

@keyframes togunaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 214, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 214, 0, 0);
    }
}


/* ======= RESPONSIVE ======= */

@media (max-width: 1100px) {
    .product-hero {
        height: 85vh;
    }

    .product-details {
        padding: 60px 6%;
        gap: 30px;
    }

    .product-details img {
        width: 100%;
        height: auto;
    }

    .product-video video,
    .product-video iframe {
        width: 100%;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        height: 70vh;
        padding: 0 6%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 24px;
    }

    .product-details {
        flex-direction: column;
        text-align: center;
    }

    .product-details .text {
        order: 2;
    }

    .product-details .image {
        order: 1;
    }

    .product-gallery,
    .product-video,
    .product-filter-section {
        padding: 60px 6%;
    }

    .product-filter-section h2 {
        font-size: 2rem;
    }

    .product-video video,
    .product-video iframe {
        height: 260px;
    }

    .filter-buttons {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .filter-buttons button {
        width: 100%;
        max-width: 260px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-search input {
        padding: 12px 16px;
    }

    .toguna-ai {
        right: 10px;
        bottom: 10px;
    }

    .toguna-ai__toggle {
        padding: 12px 14px;
    }

    .toguna-ai__label {
        display: none;
    }

    .toguna-ai__panel {
        width: min(360px, calc(100vw - 20px));
        bottom: 70px;
    }

    .toguna-ai__messages {
        max-height: 320px;
    }
}
