/* Styles de base */
body, html {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

/* Palette de couleurs */
:root {
    --primary-color: #5e4aba;
    --secondary-color: #f1ebfd;
    --accent-color: #d4b9f6;
    --highlight-color: #9b7fde;
    --text-color: #050408;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center; /* Centre verticalement le logo et le menu */
    justify-content: space-between; /* Espace entre logo et menu */
    position: relative;
}

/* Logo */
header .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); /* Ombrage noir */
}

/* Menu de navigation */
nav {
    display: flex;
    justify-content: center; /* Centre le menu */
    flex-grow: 1; /* Prend tout l'espace disponible */
}

/* Liste du menu */
.nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
    align-items: center;
}

.nav-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Menu caché sur petits écrans */
.nav-list {
    display: flex;
}

.nav-list.show {
    display: block; /* Affiche le menu lorsqu'il est activé */
}

@media (max-width: 768px) {
    /* Affichage du hamburger sur petits écrans */
    .hamburger {
        display: flex;
    }

    /* Cache le menu par défaut sur petits écrans */
    .nav-list {
        display: none;
        width: 100%;
        text-align: center;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
        z-index: 10;
    }

    .nav-list li {
        width: 100%;
        padding: 10px 0;
    }

    .nav-list li a {
        display: block;
        color: var(--secondary-color);
    }
}

/* Intro section */
.intro {
    padding: 40px;
    background-color: var(--accent-color);
    text-align: center;
    color: var(--primary-color);
    animation: slide-in 1s ease-out;
}
/* Style général du paragraphe */
.highlighted-text {
    font-size: 1.5em;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); /* Dégradé subtil */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 2s ease-out;
}

/* Texte mis en valeur avec un effet de survol */
.highlighted-text .highlight {
    color: var(--highlight-color);
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Ombre légère pour la mise en valeur */
}

/* Animation d'apparition pour le texte */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de survol pour l'ensemble du paragraphe */
.highlighted-text:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color)); /* Changement de dégradé */
    color: white;
    transform: translateY(-5px); /* Élément qui se soulève au survol */
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Effet de survol spécifique pour le texte mis en valeur */
.highlighted-text .highlight:hover {
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.7); /* Ombre plus marquée au survol */
    color: white; /* Changer la couleur au survol */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Bouton d'appel à l'action */
.cta-button {
    background-color: var(--primary-color); /* Couleur de fond de bouton */
    color: white; /* Couleur du texte */
    font-size: 18px; /* Taille du texte */
    font-weight: bold; /* Mettre en gras le texte */
    padding: 15px 30px; /* Espacement interne */
    border: 2px solid var(--primary-color); /* Bordure colorée */
    border-radius: 8px; /* Bords arrondis */
    text-transform: uppercase; /* Texte en majuscules */
    cursor: pointer; /* Curseur en forme de main */
    transition: all 0.3s ease; /* Transition fluide pour les effets */
    text-decoration: none; /* Supprimer la décoration du texte */
    display: inline-block; /* Affichage en bloc pour les boutons */
    margin-top: 20px; /* Marge au-dessus du bouton */
}

/* Effet de survol */
.cta-button:hover {
    background-color: var(--highlight-color); /* Couleur de fond au survol */
    border-color: var(--highlight-color); /* Changer la bordure au survol */
    transform: scale(1.05); /* Agrandir légèrement le bouton */
}

/* Effet de focus pour améliorer l'accessibilité */
.cta-button:focus {
    outline: none; /* Supprimer le contour par défaut */
    box-shadow: 0 0 10px var(--highlight-color); /* Ajouter un halo lumineux */
}

/* Parallax section */
.parallax {
    background-image: url('../images/perso1.1.jpg');
    background-attachment: fixed;
    background-size: cover;  /* Assure une couverture complète */
    background-position: center center;  /* Centrage de l'image */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.parallax-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 50px 20px;
}

/* Ombrage pour améliorer la lisibilité du texte */
.parallax-content h1,
.parallax-content p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), /* Ombre subtile pour le texte */
                 0 0 25px rgba(0, 0, 0, 0.5); /* Ombre lumineuse pour plus de contraste */
}

/* Optionnel : ajouter un fond semi-transparent pour la lisibilité */
.parallax-content h1 {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.parallax-content p {
    font-size: 1.2em;
    margin: 10px 0 0;
}

/* Gallery Section */
.products-gallery {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--secondary-color);
}

.products-gallery h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* Section contact */
.contact {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}
/* Formulaire */
.form-container {
    background-color: var(--form-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--form-shadow-color);
}

form label {
    font-weight: bold;
    color: var(--primary-color);
}

form input, 
form select, 
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--highlight-color);
    border-radius: 5px;
    background-color: var(--secondary-color);
    font-size: 16px;
    color: var(--text-color);
}

form input:focus, 
form select:focus, 
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

form fieldset {
    border: 1px solid var(--highlight-color);
    border-radius: 5px;
    margin-top: 20px;
    padding: 10px;
}

form fieldset legend {
    color: var(--primary-color);
    font-weight: bold;
}

/* Styles des checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacement entre les options */
}

.checkbox-group label {
    display: flex;
    align-items: center; /* Aligne verticalement */
    justify-content: flex-start; /* Aligne le label à gauche */
    gap: 10px; /* Espacement entre la checkbox et le label */
    padding: 5px 0; /* Espacement vertical */
}

.checkbox-group input[type="checkbox"] {
    margin: 0; /* Retire les marges par défaut */
    order: 1; /* La checkbox reste à droite */
}

/* Bouton */
form button {
    background-color: var(--primary-color);
    color: var(--form-bg-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: var(--highlight-color);
}

/* Responsive design */
@media (max-width: 600px) {
    .form-container {
        padding: 15px;
    }

    form input, 
    form select, 
    form textarea {
        font-size: 14px;
    }

    form fieldset {
        padding: 5px;
    }

    .checkbox-group {
        gap: 10px;
    }
}


/* Section produits */
section.products {
    padding: 20px;
    text-align: center;
}

section.products h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

section.products h2 {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-item {
    background-color: var(--accent-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-item p {
    font-size: 1rem;
    color: var(--text-color);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
																																	
																																	/* Responsivité */
@media (max-width: 768px) {
    .product-list {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* Section produits supplémentaires */
.additional-products {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    text-align: center;
    max-width: 800px; /* Limite la largeur de la section */
    margin: 0 auto; /* Centre la section horizontalement */
}

.additional-products h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-list-extra {
    list-style-type: none; /* Enlève les puces de liste */
    padding-left: 0; /* Enlève l'indentation */
    text-align: center; /* Centre les éléments de la liste */
    margin-bottom: 15px;
}

.product-list-extra li {
    color: var(--text-color);
    margin: 5px 0;
    font-size: 1rem;
    display: inline-block; /* Aligne les éléments de la liste en ligne */
    margin: 10px 20px; /* Espacement entre les éléments */
}

.contact-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    position: relative;
    width: 100%;
    bottom: 0;
    margin-top: auto;
}

/* Animations */
@keyframes slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
