/* styles.css */

/* Reset des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Change de police */
    line-height: 1.6;
    color: #e0e0e0;
    background: #111;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, #1a237e, #303f9f);
    color: #e0e0e0;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.4s ease, transform 0.3s ease;       
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #4a90e2;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
}

nav ul li a:hover {
    transform: scale(1.1); /* Légère mise en avant du texte */
}

nav ul li a:hover::after {
    color: #ffeb3b; /* Couleur d'accentuation */
    transform: translateY(-5px); /* Lien qui se soulève légèrement */
    transform: scaleX(1);
    transform-origin: left;
    
}

section {
    padding: 4rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: #4a90e2;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les images */
    justify-content: center; /* Centre les images dans la galerie */
}

.gallery img {
    width: 100%; /* Chaque image occupe 100% de la largeur de son conteneur */
    height: auto; /* Conserve le ratio d'aspect pour éviter la distorsion */
    object-fit: cover; /* Remplit bien le conteneur sans déformer l'image */
}



.gallery img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
    filter: brightness(0.9); /* Légère atténuation de la luminosité */
}


.gallery-item {
    flex: 1 1 calc(33% - 1.5rem);
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.gallery-item:hover img {
    filter: blur(2px) brightness(0.8); /* Effet de flou subtil */
}

.gallery-item:hover .description {
    opacity: 1;
}

.description {
    padding: 1rem;
    text-align: center;
}

.description h3 {
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.description p {
    color: #cfd8dc; /* Gris plus prononcé pour le texte */
}


ul {
    list-style: none;
}

ul li {
    background: #333;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: background 0.3s, box-shadow 0.3s;
}

ul li:hover {
    background: #444;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

ul li h3 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

footer {
    background: linear-gradient(135deg, #1a237e, #303f9f);
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.3);
}

footer p {
    margin: 0;
}

/* Style de la bio et de l'avatar */
.bio-avatar {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.bio-avatar .avatar {
    width: 80px; /* Réduit un peu la taille pour plus d'élégance */
    height: 80px;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a90e2;
}

.bio {
    color: #e0e0e0;
}

.bio h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.bio p {
    font-size: 0.9rem;
    color: #b0bec5;
}

/* Ajuster le header pour aligner la bio/avatar, le titre et la navigation */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 {
    font-size: 2rem; /* Réduit légèrement pour un équilibre avec la bio */
    font-weight: 700;
    margin-left: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    nav {
        margin-left: 0;
    }

    .bio-avatar {
        margin-bottom: 1rem;
    }
}

/* Styles pour la section de contact */
#contact {
    background: #222; /* Arrière-plan légèrement plus clair pour la section */
    padding: 3rem 1rem; /* Espacement interne */
    color: #e0e0e0; /* Couleur du texte */
}

#contact h2 {
    color: #4a90e2; /* Couleur du titre */
    margin-bottom: 1rem; /* Marge en dessous du titre */
    font-size: 2rem; /* Taille du titre */
    text-align: center; /* Centre le titre */
}

#contact p {
    margin-bottom: 1rem; /* Marge en dessous du paragraphe */
    text-align: center; /* Centre le texte */
    color: #b0bec5; /* Couleur du texte */
    font-size: 1.1rem; /* Taille du texte */
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, box-shadow 0.3s;
    font-weight: 500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.contact-button img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.contact-button:hover {
    background: #444;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}


#copySuccess {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
}
    
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    font-size: 1rem;
}

.cookie-banner button {
    margin-left: 10px;
    padding: 0.5rem 1rem;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #3b7ec6;
}


#visitorCount {
    background: linear-gradient(135deg, #4a90e2, #1a237e);
    color: #fff;
    padding: 8px 12px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#visitorCount span {
    color: #fff;
    font-weight: 500;
    font-size: 1.2rem;
    background: #303f9f;
    padding: 5px 8px;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-block;
    transition: background-color 0.2s;
}

#visitorCount:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#visitorCount span:hover {
    background-color: #4a90e2;
}

.description {
    text-align: center;
    padding: 0.5rem 0;
    color: #b0bec5;
}

.description h3 {
    font-size: 1.2rem;
    color: #4a90e2;
}

.description p {
    font-size: 0.9rem;
    color: #b0bec5;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 16px);
    }

    .container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%;
    }

    .bio p {
        font-size: 14px;
    }
}



.container {
    padding: 2rem 1rem;
}

.gallery {
    gap: 10px;
}

.exit { 
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #4a90e2; /* Couleur de fond bleue */
    color: #fff; /* Couleur du texte blanche */
    text-decoration: none; /* Supprime le soulignement */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px; /* Coins arrondis */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transitions douces */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre subtile */
}

.exit:hover {
    background-color: #357ABD; /* Change la couleur au survol */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Augmente l'ombre au survol */
}

.exit:active {
    background-color: #2E6AA6; /* Couleur légèrement plus foncée au clic */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Réduit l'ombre pendant le clic */
}

.gallery-item[data-category="builds"] { /* Styles spécifiques pour les builds */ }

.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: #e0e0e0;
    border: none;
    border-radius: 8px;
    margin: 0 1rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.filter-btn:hover {
    background-color: #4a90e2;
}

.filter-btn.active {
    background-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery img, .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery-item video {
    width: 100%; /* Videos take up full width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the video fits without cutting off */
}

/* Ajout de styles spécifiques pour la page boutique */
#boutique {
    padding: 4rem 1rem;
    background-color: #222; /* Fond plus clair pour la section */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product {
    background: #333;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.product:hover {
    transform: translateY(-5px); /* Effet de survol */
}

.product img {
    width: 100%;
    border-radius: 8px;
}

.price {
    display: block;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #4a90e2; /* Couleur pour le prix */
}

.buy-button {
    padding: 0.5rem 1rem;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #357ABD; /* Couleur au survol */
}

#paiement {
    background: #fff; /* Couleur de fond de la section de paiement */
    padding: 20px;
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre */
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}


.input-field {
    width: 100%; /* Les champs prennent toute la largeur */
    padding: 10px; /* Espacement intérieur */
    border: 1px solid #ccc; /* Bordure douce */
    border-radius: 5px; /* Coins arrondis */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Ombre légère */
    transition: border-color 0.3s, box-shadow 0.3s; /* Transition douce */
}

.input-field:focus {
    border-color: #0056b3; /* Couleur de la bordure au focus */
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5); /* Ombre au focus */
    outline: none; /* Supprime le contour par défaut */
}

