/**
 * God Save The Bee - Styles principaux
 * Site e-commerce pour muselières électriques
 */

/* ==================== Variables CSS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #FFB300;
    --secondary-color: #2C3E50;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --accent: #e67e22;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* ==================== Header ==================== */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
}

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

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../ressources/image-8.jpg') center/cover;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: inherit;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.3);
}

/* ==================== Sections générales ==================== */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    text-align: center;
}

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

.content-block p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.image-container {
    text-align: center;
    margin: 40px 0;
}

.image-container img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ==================== Image Modal ==================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.image-modal-close:hover {
    transform: rotate(90deg);
}

/* ==================== Products Section ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-card img,
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    font-size: 4rem;
}

.product-content {
    padding: 25px;
}

.product-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
    text-align: left;
}

.product-description {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-price .shipping {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.product-meta .badge {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-meta .delivery {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.product-delivery {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ==================== FAQ Section ==================== */
.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0;
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 0 25px 25px 25px;
}

.faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* ==================== Team Section ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-member h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

/* ==================== Footer ==================== */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

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

/* ==================== Stats ==================== */
.highlight-box {
    background: #fff3cd;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* ==================== Cart ==================== */
/* Style principal .cart-icon déplacé après les media queries pour écraser les styles mobiles */

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.cart-panel.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.show {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
    width: 100%;
    box-sizing: border-box;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
}

#cartItems {
    width: 100%;
    box-sizing: border-box;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.cart-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--light-bg);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    color: var(--secondary-color);
    width: 100%;
    box-sizing: border-box;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s;
    box-sizing: border-box;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.3);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* ==================== Modals ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-summary {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 10px;
    border-top: 2px solid #ddd;
}

#card-element {
    padding: 12px;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    background: white;
}

#card-errors {
    color: #fa755a;
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== Video ==================== */
.video-container {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ==================== France 2030 ==================== */
.france-2030-section {
    text-align: center;
    margin: 50px auto 40px;
    max-width: 600px;
}

.france-2030-section p {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
}

.france-2030-logo {
    max-width: 180px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.france-2030-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ==================== Newsletter ==================== */
.newsletter-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: transform 0.3s;
}

.newsletter-icon:hover {
    transform: scale(1.1);
}

.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.newsletter-modal.show {
    display: flex;
}

.newsletter-modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
}

.newsletter-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.newsletter-success.show {
    display: block;
}

/* ==================== Contact ==================== */
#contact {
    background: var(--light-bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    text-align: center;
}

.contact-success.show {
    display: block;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    text-align: center;
}

.contact-error.show {
    display: block;
}

/* ==================== Responsive - Tablettes ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        cursor: pointer;
        user-select: none;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        margin: 30px auto;
    }

    .video-container iframe {
        height: 250px;
    }

    .france-2030-section {
        margin: 30px auto 25px;
        padding: 0 20px;
    }

    .france-2030-section p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .france-2030-logo {
        max-width: 140px;
    }

    .cart-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
        padding: 0;
        box-sizing: border-box;
    }

    .cart-header {
        margin-bottom: 10px;
        padding: 12px 12px 12px 12px;
        border-bottom: none;
    }

    .cart-header h2 {
        font-size: 1.2rem;
        margin: 0;
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .cart-close {
        flex-shrink: 0;
        padding: 0;
        margin-left: 10px;
    }

    #cartItems {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }

    .checkout-btn {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        box-sizing: border-box;
        margin-left: 12px;
        margin-right: 12px;
    }

    .cart-total {
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .newsletter-modal-content {
        padding: 25px;
    }

    .modal-content {
        padding: 25px;
        max-height: 85vh;
    }

    .cart-icon {
        top: auto;
        bottom: 30px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .newsletter-icon {
        bottom: 30px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .cart-icon svg,
    .newsletter-icon svg {
        width: 26px;
        height: 26px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    section {
        padding: 50px 0;
    }

    .content-block p {
        font-size: 1rem;
        text-align: left;
    }

    .image-container img {
        max-width: 100%;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==================== Responsive - Mobiles ==================== */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.4rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo img {
        height: 40px;
    }

    .video-container iframe {
        height: 200px;
    }

    .newsletter-icon,
    .cart-icon {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }

    .newsletter-icon {
        left: 15px;
    }

    .cart-icon {
        right: 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ==================== Cart Icon - Style principal ==================== */
/* Placé après les media queries pour écraser les styles responsive et garder l'icône en haut même sur mobile */
.cart-icon {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: transform 0.3s;
}

/* ==================== Page Loader ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 179, 0, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== Cart Toast Notification ==================== */
.cart-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-toast.show {
    right: 30px;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
    font-size: 1rem;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
}

/* Animation du panier quand un produit est ajouté */
.cart-icon.bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2) rotate(-5deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    75% {
        transform: scale(1.15) rotate(-3deg);
    }
}

/* Responsive toast */
@media (max-width: 768px) {
    .cart-toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        right: -350px;
    }

    .cart-toast.show {
        right: 20px;
    }
}

/* ==================== Confirmation Modal ==================== */
.confirmation-modal-content {
    text-align: center;
    max-width: 500px;
}

.confirmation-icon {
    margin: 0 auto 30px;
    width: 100px;
    height: 100px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 50px #4caf50;
    }
}

.confirmation-modal-content h2 {
    color: #4caf50;
    font-size: 2rem;
    margin-bottom: 20px;
}

.confirmation-details {
    margin: 30px 0;
    text-align: left;
}

.confirmation-message {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--secondary-color);
}

.confirmation-info {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.confirmation-info p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.confirmation-info strong {
    color: var(--secondary-color);
}

.confirmation-next {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 20px;
}