:root {
    --primary: #0066ff;
    --hover: #2671e0;
    --text: #333;
    --light: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--light);
    box-shadow: 0 2px 15px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-profile i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.cart-profile i:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    background: var(--primary);
    color: var(--light);
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
    position: absolute;
    top: -8px;
    right: -8px;
    transition: all 0.3s ease;
}

.profile-count {
    background: #ff4757;
    color: var(--light);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Add animation to cart count on hover */
.cart-wrapper:hover .cart-count {
    animation: bounce 0.5s ease infinite;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px var(--shadow);
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a::after {
        left: 0;
        transform: none;
    }

    .cart-profile {
        gap: 1rem;
    }
}

.about-section {
    padding: 2rem 10%;
    background: #f8f9fa;
    margin-top: 5%; /* Changed from -5% for better spacing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image-container {
    flex: 0 0 auto;
    position: relative;
    width: 350px; /* Définissez une largeur fixe pour le conteneur d'images */
}

.about-image {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    object-fit: cover;
    display: none; /* Masquez toutes les images par défaut */
    transition: transform 0.3s ease;
}

.about-image.active {
    display: block; /* Affichez l'image active */
}

.about-text {
    flex: 2 1 auto; /* Augmentez la flexibilité pour que le texte prenne plus d'espace */
    text-align: left; /* Alignez le texte à gauche */
    padding-left: 2rem; /* Ajoutez un peu de padding à gauche */
}

.about-text span{
    color: #0066ff;
    font-size: 36px;
}

.about-image:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image-container {
        margin-bottom: 1rem;
        width: 100%; /* Utilisez toute la largeur sur les écrans plus petits */
    }

    .about-image {
        width: 100%;
    }

    .about-text {
        flex: 1 1 auto;
        text-align: center;
        padding-left: 0; /* Réinitialisez le padding à gauche sur les écrans plus petits */
    }
}

.logo-section {
    padding: 5rem 0;
    background: var(--light);
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-logo {
    width: 250px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.section-logo:hover {
    transform: scale(1.1);
}

.footer {
    background-color: #212934;
    color: #cfd6e1;
    padding: 60px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-section:first-child .footer-title {
    color: #0066ff;
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #0066ff;
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cfd6e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066ff;
}

.highlight {
    color: #0066ff;
}

.newsletter {
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #2b3441;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

.subscribe-btn {
    background-color: #0066ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #2671e0; /* Changed to a different color for hover effect */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #cfd6e1;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0066ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2b3441;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
    }

    .footer {
      padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 25px;
    }

    .footer-section {
      text-align: center;
    }

    .contact-info p {
      justify-content: center;
    }

    .social-icons {
      justify-content: center;
    }
}
