/* Ajout de la police Poppins depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0693e3;  /* Bleu cyan vibrant */
    --primary-dark: #005a87;   /* Bleu foncé profond */
    --primary-light: #90d4ff;  /* Bleu clair léger */
    --accent-color: #FF6B35;   /* Coral-orange harmonic */
    --accent-dark: #E64A19;    /* Orange foncé hover */
    --text-color: #333;
    --text-light: #666;
    --background-light: #f9f9f9;
    --white: #fff;
    --grey-light: #f5f5f5;
    --grey-medium: #e0e0e0;
    --grey-dark: #9e9e9e;
    --success-color: #4caf50;
    --yellow-star: #ffc107;
    --border-color: #ddd;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif; /* Changement pour Poppins */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

/* Boutons et CTA */
.cta-button, .buy-now, .add-to-cart, .product-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.cta-button:hover, .buy-now:hover, .add-to-cart:hover, .product-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.buy-now {
    background-color: var(--success-color);
}

.buy-now:hover {
    background-color: #388e3c;
}

.product-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
    width: 100%;
}

.cart-icon-btn {
    display: inline-block;
    width: 18px;
    height: 14px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0 0 3px 3px;
    margin-right: 8px;
    position: relative;
}

.cart-icon-btn:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border: 2px solid #fff;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    top: -8px;
    left: 2px;
}

.cart-icon-btn:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    bottom: 2px;
    left: 2px;
    box-shadow: 8px 0 0 #fff;
}

/* Header et Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0;
}

nav .menu {
    display: flex;
    gap: 25px;
}

nav .menu li a {
    font-weight: 500; /* Ajusté pour Poppins qui est naturellement plus gras */
    color: var(--text-color);
}

nav .menu li a:hover {
    color: var(--accent-color);
}

.cart-icon {
    display: inline-flex;
    align-items: center;
}

.cart-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
    line-height: 18px;
    text-align: center;
    margin-right: 5px;
}

#menu-toggle, .menu-icon {
    display: none;
}

/* Fil d'Ariane */
.breadcrumb {
    background-color: var(--grey-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-medium);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb ul li {
    position: relative;
    padding-right: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb ul li:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: 0;
    color: var(--grey-dark);
}

.breadcrumb ul li:last-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Section Produit Principale */
.product-main {
    background-color: var(--white);
    padding: 40px 0;
}

.product-main .container {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
}

/* Galerie Produit */
.product-gallery {
    position: relative;
}

.main-image {
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius);
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
}

/* Détails Produit */
.product-details {
    padding: 0 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: var(--yellow-star);
    font-size: 1.2rem;
    margin-right: 10px;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-price {
    margin-bottom: 20px;
}

.sale-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 10px;
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount-badge {
    display: inline-block;
    background-color: var(--success-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

.product-short-desc {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Variants Produit */
.product-variants {
    margin-bottom: 25px;
    border-top: 1px solid var(--grey-medium);
    border-bottom: 1px solid var(--grey-medium);
    padding: 20px 0;
}

.product-variants h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.variant-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-option {
    display: flex;
    align-items: center;
}

.variant-option input[type="radio"] {
    margin-right: 10px;
}

.variant-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.variant-option.recommended {
    background-color: var(--primary-light);
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--primary-color);
}

.best-value {
    margin-left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Actions Produit */
.product-actions {
    margin-bottom: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity label {
    margin-right: 15px;
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: var(--grey-light);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--grey-medium);
}

.qty-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--grey-medium);
    border-right: 1px solid var(--grey-medium);
    font-size: 1rem;
}

.action-buttons {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Avantages Produit */
.product-benefits {
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: var(--success-color);
    font-weight: bold;
}

/* Moyens de Paiement */
.payment-methods {
    margin-top: 20px;
}

.payment-methods img {
    max-height: 30px;
}

/* Onglets Navigation Produit */
.product-tabs {
    background-color: var(--white);
    border-top: 1px solid var(--grey-medium);
    border-bottom: 1px solid var(--grey-medium);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.tabs-nav li {
    position: relative;
}

.tabs-nav li a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.tabs-nav li.active a {
    color: var(--primary-color);
}

.tabs-nav li.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Sections Produit */
.product-section {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-medium);
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Section Description */
.product-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-icon {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Section Ingrédients */
.ingredients-content {
    padding: 20px;
}

.ingredients-intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.ingredient-item {
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ingredient-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ingredients-note {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--grey-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

/* Section Mode d'emploi */
.usage-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.usage-instructions ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
}

.instruction-number {
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.warnings {
    padding: 20px;
    background-color: var(--grey-light);
    border-radius: var(--radius);
}

.warnings h3 {
    color: var(--accent-color);
}

.warnings ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

/* Section Avis Clients */
.reviews-content {
    padding: 20px 0;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--grey-medium);
}

.rating-average {
    text-align: center;
}

.average-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.average-stars {
    color: var(--yellow-star);
    font-size: 1.5rem;
    margin: 10px 0;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
}

.stars-label {
    width: 60px;
    text-align: right;
    margin-right: 10px;
}

.bar-container {
    flex-grow: 1;
    height: 15px;
    background-color: var(--grey-light);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--yellow-star);
    border-radius: 10px;
}

.bar-percent {
    width: 40px;
    text-align: right;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 700;
    margin-bottom: 3px;
}

.reviewer-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-stars {
    color: var(--yellow-star);
}

.verified-purchase {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.reviews-pagination a, .reviews-pagination span {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius);
    transition: var(--transition);
}

.reviews-pagination .current-page {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.reviews-pagination a:hover {
    background-color: var(--grey-light);
}

.reviews-pagination .ellipsis {
    border: none;
}

.next-page {
    font-weight: 600;
}

/* Section FAQ */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--grey-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 300px;
}

/* Section Produits Similaires */
.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.related-product {
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.related-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    margin-bottom: 15px;
}

.related-product h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-product .product-rating {
    justify-content: center;
    margin-bottom: 10px;
}

.related-product .product-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--grey-light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-payment {
    max-height: 30px;
}

/* Bouton retour en haut */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .product-main .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        max-width: 500px;
        margin: 0 auto;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    section {
        padding: 30px 0;
    }

    .menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    nav .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    #menu-toggle:checked ~ .menu {
        max-height: 300px;
    }

    nav .menu li {
        margin: 0;
        text-align: center;
    }

    nav .menu li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid var(--grey-light);
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        justify-content: flex-start;
    }

    .tabs-nav li a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .usage-content,
    .ingredients-list {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .product-price .sale-price {
        font-size: 1.5rem;
    }

    .product-highlights {
        grid-template-columns: 1fr;
    }

    .related-products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .logo-text {
        font-size: 1.6rem;
    }
}

/* Masquer les flèches natives des inputs number */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Cookie Consent Popup */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);        /* Transparence overlay (0.7 → 0.85 = plus sombre) */
    backdrop-filter: blur(10px);            /* Flou arrière-plan (5px → 10px = plus flou) */
    -webkit-backdrop-filter: blur(10px);    /* Flou arrière-plan Safari */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.cookie-popup {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: cookiePopupFadeIn 0.3s ease-out;
}

@keyframes cookiePopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-popup h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cookie-popup p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.accept {
    background-color: var(--success-color);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
}

.cookie-btn.refuse {
    background-color: var(--grey-light);
    color: var(--text-color);
    border: 1px solid var(--grey-medium);
}

.cookie-btn.refuse:hover {
    background-color: var(--grey-medium);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .cookie-popup {
        width: 95%;
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}