/* Ajout de styles globaux */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1e1e1e;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background: linear-gradient(135deg, #2e2e2e, #3a3a3a);
    color: #f0f0f0;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

/* Conteneur principal centré */
.creationpc-container {
    max-width: 1200px; /* Limite la largeur pour les grands écrans */
    width: 90%;
    margin: 20px auto;
    background: linear-gradient(145deg, #2a2a2a, #3b3b3b);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Titres */
h1, h2, h3 {
    background: linear-gradient(90deg, #d2b48c, #8c8c8c);
    color: transparent;
    -webkit-background-clip: text;
    text-align: center;
    font-size: 2rem; /* Taille par défaut */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

h1:hover, h2:hover, h3:hover {
    transform: scale(1.05);
    letter-spacing: 1.5px;
}
/* Styles des cartes */
.card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    position: relative;
    display: inline-block;
    width: 300px;
    border: 2px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #2a2a2a, #3b3b3b);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.service-card input[type="checkbox"] {
    display: none;
}

.service-card .card-content {
    padding: 20px;
    text-align: center;
    color: #e6e6e6;
}

.service-card h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #d2b48c, #8c8c8c);
    color: transparent;
    -webkit-background-clip: text;
}

.service-card p {
    font-size: 1rem;
}

/* Styles sélectionnés */
.service-card input[type="checkbox"]:checked + .card-content {
    border: 2px solid gold;
    animation: glow 1s infinite alternate;
}

/* Animation clignotement */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px gold;
    }
    100% {
        box-shadow: 0 0 20px gold;
    }
}
.info-diagnostic {
    text-align: center;
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #d2b48c;
    background: linear-gradient(90deg, #3b3b3b, #2a2a2a);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Réduction de la taille des titres sur mobiles */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }
}
/* Carrousel */
.carousel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    max-width: 100%; /* S'adapte à la largeur de l'écran */
}

.carousel-slide {
    display: none;
    margin-bottom: 20px;
    text-align: center; /* Centre le texte */
}

.carousel-slide.active {
    display: block;
}

/* Contenu du carrousel */
.carousel-content {
     display: none;
    padding: 15px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2a2a2a, #3b3b3b);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	    position: relative;
    z-index: 2; /* Content above the blur */
	opacity: 0.8; /* Applique l'opacité globale à tout l'élément */
}

.carousel-section {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    color: white;
    text-align: center; /* Centre le titre */
}

.carousel-section::before {
    content: "";
    position: absolute;
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Centre exactement */
    width: 120%; /* Ajuste la taille de l'image (augmenter ou réduire ce pourcentage) */
    height: 120%; /* Ajuste la taille de l'image (garder les proportions) */
    background-size: contain; /* L'image sera entièrement visible sans être coupée */
    background-position: center; /* Centre l'image dans le conteneur */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    filter: blur(10px) brightness(0.5); /* Effet de flou et opacité */
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.carousel-content.active {
    display: block;
}


.carousel-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

fieldset {
    background-color: rgba(0, 0, 0, 0.6); /* Couleur de fond avec opacité */
    border: none;
    padding: 15px;
    border-radius: 10px;
    opacity: 0.4; /* Applique l'opacité globale à tout l'élément */
}


/* Boutons */
button, .btn-submit, .btn-return {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1rem;
    background: linear-gradient(90deg, #4a4a4a, #5c5c5c);
    color: #e6e6e6;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover, .btn-submit:hover, .btn-return:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #5c5c5c, #707070);
}

/* Boutons ajustés pour les petits écrans */
@media (max-width: 768px) {
    button, .btn-submit, .btn-return {
        max-width: 100%; /* Occupe toute la largeur disponible */
        font-size: 0.9rem;
    }
}
/* Groupes de formulaires */
.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Champs de texte */
input[type="text"], input[type="number"], select {
    padding: 10px;
    border: 1px solid #383838;
    border-radius: 8px;
    background: linear-gradient(145deg, #2a2a2a, #3b3b3b); /* Arrière-plan en gris taupe */
    color: #e6e6e6;
    font-size: 1rem;
    width: 100%; /* S'adapte à la largeur */
    box-sizing: border-box; /* Empêche le débordement */
    appearance: none; /* Supprime le style par défaut des listes */
}

select {
    background-color: #3a3a3a; /* Fond interne du menu déroulant */
    background-image: none; /* Supprime la flèche par défaut */
}

/* Menu déroulant ouvert */
select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Effet de focus */
    background: linear-gradient(145deg, #3b3b3b, #2a2a2a); /* Fond modifié lors du focus */
}

option {
    background-color: #2a2a2a; /* Fond des options */
    color: #e6e6e6;
}


input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Ajustement pour les mobiles */
@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%; /* Les champs prennent toute la largeur */
    }
}
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #777;
    background: linear-gradient(145deg, #2a2a2a, #3b3b3b);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Footer pour les petits écrans */
@media (max-width: 768px) {
    footer {
        font-size: 0.8rem;
        padding: 10px;
    }
}
/* Conteneur principal adapté aux petits écrans */
@media (max-width: 768px) {
    .creationpc-container {
        padding: 10px;
        border-radius: 10px;
    }

    h1, h2, h3 {
        font-size: 1.5rem;
    }

    .component-container {
        flex-direction: column; /* Les composants s'affichent en colonne */
        gap: 15px;
    }

    input, select, button {
        font-size: 0.9rem;
    }
}
