@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #e53935;
    --primary-light: #ff3d3d;
    --primary-dark: #b71c1c;
    --background-dark: #000;
    --background-medium: #111;
    --background-light: #1a1a1a;
    --text-light: #f5f5f7;
    --text-muted: #bbb;
    --font-base: 'Poppins', sans-serif;
    --font-heading: 'Oswald', sans-serif;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--background-medium);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    background: var(--background-dark);
    box-shadow: 0 3px 12px rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    width: 100px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/hero section img.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 0 2rem;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: fadeIn 1.8s ease-in-out;
    max-width: 100%;
}

.hero-section span {
    color: var(--primary);
}

.produits {
    padding: 5rem 4%;
    text-align: center;
}

.produits h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 3rem;
    color: var(--text-light);
    text-transform: uppercase;
    text-align: center;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--background-light);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    text-align: center;
    width: 300px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 24px rgba(0,0,0,0.8);
}

.product-grid img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1em;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.product-grid button {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 200px;
}

.product-grid button:hover {
    background: linear-gradient(45deg, var(--primary-light), #c62828);
    transform: scale(1.07);
}

.product-grid p {
    font-weight: bold;
    font-size: 1.3rem;
}

.categories {
    padding: 5rem 0;
}

.categories h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 2.5rem;
    color: var(--text-light);
    text-transform: uppercase;
    text-align: center;
    padding: 0 2rem;
}

.categories .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 4%;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
}

.categories .grid article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(0,0,0,0.7));  
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.categories .grid article:hover {
    transform: scale(1.05); 
}

.categories .grid article img {
    max-width: 150px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

.bouton-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

.bouton-container button {
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--text-light);
    border: 1px solid #000;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.bouton-container button:hover {
    color: var(--primary);
    background-color: var(--text-light);
    transform: translateY(-2px);
}

footer {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

@media (min-width: 1200px) {
    .categories .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 1rem 3%;
    }
    .produits {
        gap: 2rem;
        padding: 4rem 3%;
    }
    .categories .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2%;
    }
    nav ul {
        gap: 1.5rem;
    }
    .hero-section {
        height: 70vh;
        padding: 0 2rem;
        background-attachment: scroll;
    }
    .produits {
        gap: 2rem;
        padding: 3rem 2%;
        justify-content: center;
    }
    .product-grid article {
        width: 100%;
        max-width: 350px;
    }
    .categories .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2%;
    }
    .categories .grid article {
        max-width: none;
        width: 100%;
    }
    .social-links {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-section {
        height: 60vh;
        padding: 0 1rem;
    }
    .produits {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    .product-grid article {
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }
    .categories {
        padding: 3rem 0;
    }
    .categories h2 {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    .categories .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .categories .grid article {
        width: 100%;
        padding: 1.2rem;
    }
    .categories .grid article img {
        max-width: 120px;
    }
    .bouton-container {
        margin-top: 1.5rem;
    }
    .bouton-container button {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
    }
    footer {
        padding: 2rem 1rem;
    }
    .social-links {
        gap: 1.2rem;
    }
}

@media (max-width: 320px) {
    .product-grid article,
    .categories .grid article {
        padding: 1rem;
    }
    .categories .grid article img {
        max-width: 100px;
    }
    .bouton-container button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-grid article:hover,
    .categories .grid article:hover {
        transform: none;
    }
    .product-grid button:hover,
    .bouton-container button:hover {
        transform: none;
    }
}
