/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Palette de couleurs */
:root {
    --dark-blue: #1c1d2a;
    --gray-blue: #8d99ae;
    --light-gray: #edf2f4;
    --red: #ef233c;
    --dark-red: #960023;
}

/* Mise en page gÃ©nÃ©rale */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 1s ease-out;
    background-image: url("https://www.transparenttextures.com/patterns/shattered.png");
}

/* Animation fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* HEADER */
header {
    margin: 0;
    padding: 0;
    position: absolute; /* Ã‰vite un espace inutile */
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* S'assurer qu'il ne masque pas la vidÃ©o */
}

header .logo a {
    color: var(--dark-blue);
    font-size: 24px;
    text-decoration: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: bold;
}

/* Style pour le logo avec image */
.logo-img {
    width: 90px; /* Taille du logo */
    height: auto; /* Pour garder les proportions */
    border-radius: 50%; /* Pour rendre l'image ronde */
    border: 4px solid white; /* Bordure blanche autour de l'image */
    padding: 5px; /* Espace entre l'image et la bordure */
}

/* Si tu veux ajouter un peu d'espace autour du logo */
.logo {
    margin-right: auto; 
    display: flex;
    align-items: center;
}


/* NAVBAR */
nav {
    background-color: var(--dark-blue);
    width: 220px;
    padding: 20px;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: left 0.5s ease; /* Animation pour le toggle */
}

nav ul {
    list-style: none;
    margin-top: 50px;
}

nav ul li {
    margin-bottom: 20px;
}

nav ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 18px;
    padding: 12px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--red);
    transform: translateX(10px);
    box-shadow: 0px 4px 10px rgba(239, 35, 60, 0.6);
}

.toggle-button {
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}

.toggle-button:hover {
    color: var(--red);
}

.nav-closed {
    left: -220px; /* Cache la navbar en la dÃ©plaÃ§ant Ã  gauche */
}

.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    z-index: 1001;
    padding-top: 60px;
}

.mobile-nav ul {
    list-style-type: none;
    padding: 0;
}

.mobile-nav ul li {
    margin: 20px 0;
    text-align: center;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.burger-icon {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background-color: var(--dark-blue);
    padding: 10px;
    border-radius: 5px;
}

.burger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* Contenu principal */
main {
    margin-left: 240px; /* Espacement pour la navbar */
    margin-right: 240px; /* Ajout de la marge à droite pour correspondre à la navbar */
    padding: 20px;
    flex-grow: 1;
}

section {
    margin: 0 auto;
    max-width: 1200px; /* Ajuste la largeur maximale selon ton besoin */
    width: 100%;
    padding: 20px;
}

.intro {
    text-align: center;
}

.intro h1 {
    font-size: 32px;
    color: var(--dark-blue);
}

.intro p {
    font-size: 18px;
    color: var(--gray-blue);
}


/* BANNIÃˆRE */
.banner {
    position: relative;
    width: 100%;
    height: 100vh; /* Plein écran */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste la vidéo */
    z-index: -1;
}
.banner-text {
    text-align: center;
    color: white;
    padding: 20px;
    width: 80%; /* Largeur du texte pour plus de flexibilité */
    max-width: 900px; /* Limite la largeur du texte */
    z-index: 1; /* S'assure que le texte est au-dessus de la vidéo */
}

/* BOUTON CTA */
.cta-button {
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--red));
    transform: scale(1.05);
}

/* GALERIE DE SNEAKERS */
.sneakers-gallery {
    display: grid;  /* Utilise CSS Grid */
    grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne sur grand écran */
    gap: 15px;  /* Espace entre les cartes */
    margin-top: 40px;
}

.sneaker-item {
    background-color: white;
    padding: 15px;
    text-align: center;
    width: 280px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sneaker-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sneaker-item:hover {
    transform: translateY(-5px);
}

.sneaker-info {
    padding-top: 10px;
    text-align: left;
    padding: 15px;
}

.sneaker-info h3 {
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.sneaker-info p {
    font-size: 14px;
    margin-bottom: 5px;
}

.price {
    font-size: 14px;
    font-weight: bold;
    color: var(--red);
}

/* CARTE SNEAKER */
.sneaker-card {
    background: white;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sneaker-card:hover {
    transform: translateY(-5px);
}

.sneaker-card img {
    width: 100%;
}

.no-result-msg {
    text-align: center;
}
/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .sneakers-gallery {
        grid-template-columns: 1fr; /* 1 carte par ligne sur smartphone */
    }

    .sneaker-item {
        width: 90%;
    }
}

/* SECTION À PROPOS */

.about {
    text-align: center;
}

.about ul {
    list-style-type: none;
    padding: 0;
}

.about li {
    font-size: 1.2rem;
    text-align: center;
}

.cta-section {
    text-align: center;
}

footer {
    background-color: #333; /* Fond sombre */
    color: white; /* Texte en blanc */
    padding: 30px;
    font-family: Arial, sans-serif;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    width: 150px; /* Ajuste la taille de ton logo */
    margin-bottom: 20px;
}

footer p {
    font-size: 16px;
    margin: 10px 0;
    font-weight: lighter;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #f1f1f1;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
    color: #960023; /* Couleur au survol */
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons .social-icon {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons .social-icon img {
    width: 30px; /* Taille des icônes sociales */
}

.social-icons .social-icon:hover {
    transform: scale(1.2); /* Animation au survol pour les icônes */
}

/* Animation d'apparition du footer */
footer {
    opacity: 0;
    animation: fadeInFooter 1s forwards;
}

@keyframes fadeInFooter {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* TABLEAU SNEAKERS */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.sneakers-list table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.sneakers-list th,
.sneakers-list td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
}

.sneakers-list th {
    background-color: var(--dark-blue);
    color: var(--light-gray);
}

.sneakers-list td img {
    max-width: 100px;
    height: auto;
}

.sneakers-list td:hover {
    background-color: var(--red);
    color: white;
}

/* FOOTER */
footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    text-align: center;
    padding: 20px;
}

/* FORMULAIRE DE RECHERCHE */
.search-container {
    text-align: center;
    padding: 40px;
}

.search-container h1 {
    color: var(--dark-blue);
    font-size: 28px;
}

.search-container p {
    color: var(--gray-blue);
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form input {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid var(--gray-blue);
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.search-form button {
    width: 80%;
    max-width: 400px;
}

/* FORMULAIRE DE RECHERCHE */
.search-container {
    text-align: center;
    padding: 40px;
}

.search-container h1 {
    color: var(--dark-blue);
    font-size: 28px;
}

.search-container p {
    color: var(--gray-blue);
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form input {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid var(--gray-blue);
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.search-form button {
    width: 80%;
    max-width: 400px;
}

.re-btn {background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-left: 325;
}

.re-btn:hover{
    background: linear-gradient(135deg, var(--dark-red), var(--red));
    transform: scale(1.05);
}
/* =================== RESPONSIVE DESIGN =================== */

/* TABLETTES & PETITS ÉCRANS (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Ajustements généraux */
    
    nav {
        width: 180px;
        padding: 15px;
    }

    main {
        margin-left: 180px;  /* Ajustement pour les écrans plus petits */
        margin-right: 180px; /* Ajustement pour les écrans plus petits */
        padding: 15px;
    }

    /* Galerie */
    .sneakers-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tableau */
    .sneakers-list table {
        font-size: 14px;
    }

    .sneakers-list th, 
    .sneakers-list td {
        padding: 8px;
    }
}

/* SMARTPHONES (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    #nav-bar, .desktop-nav {
        display: none;
    }

    .burger-icon {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1002;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--dark-blue);
        z-index: 1001;
        padding-top: 60px;
    }

    .mobile-nav.open {
        display: block;
    }

    .mobile-nav ul {
        list-style-type: none;
        padding: 0;
    }

    .mobile-nav ul li {
        margin: 20px 0;
        text-align: center;
    }

    .mobile-nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    /* Burger menu animation */
    .burger-icon.open span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-icon.open span:nth-child(2) {
        opacity: 0;
    }

    .burger-icon.open span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Contenu principal */
    main {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
    }

    /* Galerie */
    .sneakers-gallery {
        grid-template-columns: 1fr;
    }

    /* Tableau responsive */
    .table-container {
        overflow-x: auto;
    }

    .sneakers-list table {
        min-width: 600px;
    }

    .sneakers-list th,
    .sneakers-list td {
        font-size: 14px;
        padding: 10px;
    }

    .sneakers-list td img {
        max-width: 80px;
    }

    /* Bannière */
    .banner {
        height: 50vh;
    }

    .banner-text h1 {
        font-size: 1.5rem;
    }

    .banner-text p {
        font-size: 1rem;
    }
}

/* PETITS ÉCRANS (max-width: 576px) */
@media (max-width: 576px) {
    /* Menu burger */
    .burger-icon {
        top: 5px;
        left: 5px;
        padding: 8px;
    }

    /* Tableau */
    .sneakers-list th,
    .sneakers-list td {
        font-size: 12px;
        padding: 6px;
    }

    .sneakers-list td img {
        max-width: 60px;
    }

    /* Ajustements supplémentaires */
    .banner-text h1 {
        font-size: 1.2rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }
}