* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #FFFFFF;
    padding-top: 70px;
}

.container {
    width: 90%;
    margin: 0 auto;
}

/* Header Fixe */
.header {
    background-color: #F3F3F3;
    padding: 1em 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    color: #700005;
}

/* Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}

.login-btn {
    background-color: #700005;
    color: #fff;
    padding: 0.5em;
    border-radius: 5px;
}

/* Menu Burger */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #700005;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #F3F3F3;
        width: 200px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .burger {
        display: flex;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        padding: 1em;
        text-align: center;
    }
}

/* Hero Banner */
.hero-banner {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 2em 0;
    width: 100%;
}

.hero-banner .banner-image {
    width: 100%;
    height: auto;
}

.hero-banner .shop-now-btn {
    background-color: #700005;
    color: #fff;
    padding: 1em;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1em;
}

/* Liste de configuration PC */
.pc-build h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2em; /* Taille réduite */
    animation: flashAnimation 5s infinite;
}

@keyframes flashAnimation {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Style des images de configuration PC */
.pc-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pc-image {
    width: calc(50% - 10px); /* Ajuster la largeur pour les deux images */
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pc-image img {
    width: 100%;
    max-width: 250px; /* Ajustement de la taille max des images */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}


h3 {
    color: black;
    font-size: 1.1em; /* Taille réduite */
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    font-size: 1em;
    color: #700005;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    margin-top: 10px;
}

.red-text {
    color: red;
    font-weight: normal;
}

.buy-btn {
    display: inline-block;
    background-color: #700005;
    color: #fff;
    padding: 0.8em 1.5em;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
}

.buy-btn:hover {
    background-color: #b30000;
}

/* Image cliquable wishlist */
.wishlist-container {
    position: absolute;
    top: 100px;
    right: 20px;
}

.wishlist-container img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wishlist-container img:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: #F3F3F3;
    padding: 1em 0; /* Reste avec padding réduit */
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin-top: 1em;
    color: #700005;
    font-size: 1em; /* Remet la taille de la police comme avant */
}

/* Résoudre le problème de défilement */
html, body {
    overflow-x: hidden; /* Evite le défilement latéral */
}

/* Nouveau bouton Contact */
.contact-btn {
    background-color: #700005 !important;
    color: #ffffff !important;
    padding: 0.7em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
}


.contact-btn:hover {
    background-color: #b30000;
}

/* Formulaire de contact */
.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-section button {
    background-color: #700005;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
    font-size: 1em;
}

.contact-section button:hover {
    background-color: #b30000;
}

/* Nouveau bouton de connexion */
.login-btn {
    background-color: #700005;
    color: #fff;
    padding: 0.7em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #b30000;
}

/* Ajustements pour les sections sous le header */
.sections {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: -10px; /* Rapproche les sections du header */
    padding-top: 0;
    gap: 0; /* Enlève l'espace entre les sections */
}

/* Ajustement pour chaque section */
.section {
    background-color: #f4f4f4;
    padding: 15px;
    width: 32%; /* Chaque section occupe environ 32% pour avoir 3 sections par ligne */
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    font-size: 0.8em; /* Taille réduite pour l'écriture */
    margin: 0 auto; /* Centrer chaque section */
    color: #700005; /* Couleur rouge spécifique */
    font-family: Arial, sans-serif; /* Police spécifique */
}

/* Responsivité pour les petites tailles d'écran */
@media (max-width: 768px) {
    .sections {
        justify-content: center;
        margin-top: -10px; /* Garder les sections collées au header sur mobile */
    }

    .section {
        width: 90%; /* Les sections occupent 90% de la largeur de l'écran sur mobile */
        margin: 0; /* Supprime toute marge entre les sections */
        padding: 15px; /* Conserve la même taille de padding */
        font-size: 0.8em; /* Taille d'écriture légèrement plus grande sur mobile */
    }
}

/* Sections en version web : rapprocher les sections */
@media (min-width: 769px) {
    .section {
        width: 16.5%; /* Chaque section occupe 16.5% pour avoir 6 sections par ligne */
        margin: 0; /* Assure que les sections sont collées sans espacement */
    }
}

@media (max-width: 768px) {
    .pc-images {
        display: flex;
        justify-content: center; /* Center images on mobile */
        gap: 20px;
        flex-wrap: wrap;
    }

    .pc-image {
        width: 90%; /* Make images take up more space */
        text-align: center;
        margin: 0 auto; /* Center image in the section */
    }
}



/* Empêche le lien d'affecter le style du texte */
a.logo-link {
    text-decoration: none; /* Supprime le soulignement du lien */
    color: inherit;        /* Garde la couleur du texte héritée (pareil que le reste du texte) */
}

/* Style pour le logo */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    /* Ajoute d'autres styles pour le logo si nécessaire */
}

/* Supprime le surlignage des liens */
a:focus, a:active {
    outline: none;  /* Enlève la bordure autour du lien lorsqu'il est cliqué */
    text-decoration: none;  /* Enlève toute décoration de texte (soulignement) */
}

/* Supprimer le surlignage des liens dans les sections */
.sections a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Laisse la couleur du texte héritée */
}


/* Style pour le message discret */
.scrolling-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: transparent; /* Fond transparent */
    color: #000; /* Texte noir ou une autre couleur de ton choix */
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0; /* Initialement invisible */
    animation: showMessage 65s infinite; /* L'animation dure 65 secondes, et se répète indéfiniment */
}

.fps-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #FFD700;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.fps-btn:hover {
    background-color: #E6C200;
}

.amazon-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #700005; /* Couleur rouge définie */
    color: white;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}


/* Conteneur des paires d'images */
.pc-images-pair {
    display: flex; /* Utiliser flexbox pour aligner les paires d'images */
    flex-wrap: wrap; /* Permettre le passage à la ligne des paires */
    gap: 20px; /* Ajouter un espacement entre les paires */
}

/* Conteneur pour chaque paire d'images (2 par ligne) */
.pc-image-pair {
    display: flex; /* Alignement des images horizontalement */
    gap: 20px; /* Espacement entre les images */
    flex: 1 1 calc(50% - 20px); /* Chaque paire occupe 50% de l'espace disponible */
    box-sizing: border-box; /* S'assurer que les marges/paddings ne dépassent pas la largeur */
}

/* Assurer que les images ne débordent pas du conteneur */
.pc-image img {
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: auto; /* Maintenir les proportions */
    border-radius: 8px; /* Ajouter des coins arrondis aux images */
    transition: transform 0.3s ease; /* Animation de zoom au survol */
}

/* Effet au survol de l'image */
.pc-image img:hover {
    transform: scale(1.05); /* Agrandir légèrement l'image au survol */
}

/* Style général pour les titres et les descriptions sous chaque image */
.pc-image h3 {
    margin-top: 10px;
}

.pc-image .description {
    font-size: 0.9em;
    color: #555;
}

html {
    scroll-behavior: smooth;
  }
  
  .centered {
    text-align: center;
}

.rgb-band {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Épaisseur de la ligne */
    background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, purple);
    background-size: 400% 400%;
    animation: rgbAnimation 5s linear infinite;
    z-index: 9999;
}

@keyframes rgbAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.legal {
    background-color: #f8f8f8;
    padding: 20px;
    margin-top: 20px;
}

.legal .container {
    max-width: 800px;
    margin: auto;
}

.legal h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.legal p {
    font-size: 1em;
    line-height: 1.5;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
  }
  
  .component-card {
    text-align: center;
    max-width: 220px;
  }
  
  .component-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  
  .component-card img:hover {
    transform: scale(1.05);
  }
  
  .component-card p {
    margin-top: 10px;
    font-weight: 500;
    font-size: 16px;
  }
  
  .bottom-ebook-banner {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.bottom-ebook-banner a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.bottom-ebook-banner a:hover {
    transform: scale(1.02);
}

.ebook-banner-content {
    display: inline-block;
    padding: 10px 20px;
    background-color: #700005; /* Couleur rouge définie */
    border-radius: 8px;
    font-weight: 600;
}


.dynamic-banner {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    background-color: #f1f1f1;
    padding: 10px 0;
}

.dynamic-banner a {
    text-decoration: none;
}

.dynamic-banner img {
    width: 150px;
    height: 50px;
    transition: all 0.3s ease;
}

.lang-button {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}

.social-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.social-icon:hover {
  transform: scale(1.1);
}

.carousel-container {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .carousel-container {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .carousel {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limite la largeur du carousel */
    margin: 0 auto;
    overflow: hidden; /* Cache les images hors de la zone visible */
  }
  
  .carousel-images {
    display: flex; /* Aligne les images en ligne */
    transition: transform 1s ease-in-out; /* Effet de transition entre les images */
  }
  
  .carousel-image {
    width: 100%; /* Chaque image occupe toute la largeur du carousel */
    height: auto;
    flex-shrink: 0; /* Empêche les images de se rétrécir */
  }

/* === Boutons identiques === */
.create-config-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
  }
  .create-config-btn:hover {
    background-color: #45a049;
  }
  
/* Image de présentation réduite x4 */
.setup-preview {
    display: block;
    margin: 1.5rem auto;
    max-width: 250px;  /* 400px / 4 */
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  
  /* Bouton “Tour” centré */
  .tour-btn-container {
    text-align: center;
    margin: 2rem 0;
  }
  
  /* Cartes PC */
  .pc-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }
  
  .pc-box {
    position: relative;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  .pc-box:hover {
    transform: scale(1.03);
  }
  .pc-box img {
    width: 100%;
    display: block;
  }
  
  /* Overlay blanc semi-transparent */
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    color: #222;
    padding: 1rem;
    box-sizing: border-box;
  }
  
  .label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .details {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  