/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles globaux pour le corps */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex; /* Utiliser flexbox pour le corps */
    flex-direction: column; /* Disposer les enfants en colonne */
    min-height: 100vh; /* Hauteur minimale pour occuper tout l'écran */
}

/* Pied de page */
footer {
    background-color: var(--violet-dark);
    color: white;
    padding: 20px 0;
    margin-top: auto; /* Pousse le pied de page vers le bas */
}

footer p {
    text-align: center;
}

/* Color palette */
:root {
    --violet-amadine: #8a2be2;
    --violet-dark: #5c1b9d;
    --secondary: #ffcc00;
    --white: #fff;
}

/* Header */
header {
   height: 114px; /* Ajuste cette valeur à la hauteur de la barre souhaitée */
    background-color: var(--violet-amadine);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.sticky {
    background-color: var(--violet-dark);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: url('background-hero.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: fadeIn 2s ease;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-btn {
    background-color: var(--secondary);
    color: black;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f4f4f4;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    border-radius: 10px;
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: #fff;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--violet-dark);
    color: white;
    padding: 20px 0;
    text-align: center; /* Assure que tout est centré */
}

/* Footer navigation */
footer nav {
    display: flex;
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    flex-direction: column; /* Aligne les éléments en colonne */
}

footer p {
    text-align: center;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center; /* Centre les éléments verticalement */
    margin: 0; /* Retire les marges qui pourraient décaler les éléments */
    padding: 10px 0;
}

footer nav ul li {
    margin-left: 20px;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center; /* S'assure que le texte est bien centré dans chaque lien */
}

footer nav ul li a:hover {
    color: var(--secondary);
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #f4f4f4;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.contact-wrapper {
    display: flex; /* Utiliser flexbox pour la disposition */
}

.contact-info,
.contact-form,
.map-container {
    display: flex; /* Utiliser flexbox pour que le contenu s'ajuste bien */
    flex-direction: column; /* Aligner les éléments verticalement */
    justify-content: space-between; /* Équilibrer l'espace entre les éléments */
}

.contact-info {
    flex: 0 0 25%; /* Réduire la largeur des informations de contact */
    padding-right: 20px; /* Espace entre la carte et les informations */
}

.map-container {
    flex: 1; /* Prendre l'autre moitié de l'espace */
    margin-left: 30px; /* Augmenter l'espace à gauche de la carte */
    margin-right: 20px; /* Ajouter de l'espace à droite de la carte */
    height: 100%; /* S'assurer que la carte prend toute la hauteur */
}

.info {
    display: flex; /* Disposition en flex pour aligner l'icône et le texte */
    align-items: center; /* Centrer verticalement */
    margin-bottom: 60px; /* Augmenter l'espacement entre les éléments */
    padding: 15px;
    border-radius: 10px; /* Coins arrondis */
    background-color: white; /* Fond blanc */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: box-shadow 0.3s ease; /* Transition douce pour l'ombre */
    text-align: center; /* Centre le texte à l'intérieur des bulles */
}

.info:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus marquée au survol */
}

.info i {
    font-size: 2rem; /* Taille de l'icône */
    color: var(--violet-amadine); /* Couleur de l'icône */
    margin-right: 15px; /* Espace entre l'icône et le texte */
}

.contact-info .info h3 {
    margin: 0 0 0px; /* Espacement du titre */
    font-size: 1.2rem; /* Taille du titre */
    text-align: left; /* Aligne le titre à gauche */
}

.contact-info .info p {
    text-align: left;
    margin-left: 30px;
}

/* Contact Form */
.contact-form {
    flex: 0 0 35%; /* Réduire la largeur du formulaire */
    margin: 0 20px; /* Espace entre le formulaire et les sections d'informations */
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    text-align: center; /* Centrer le titre du formulaire */
    margin-bottom: 20px; /* Espacement en dessous du titre */
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--violet-amadine);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Remplir le bouton sur toute la largeur */
}

.contact-form button:hover {
    background-color: var(--violet-dark);
}

/* Ajout d'une hauteur fixe pour harmoniser les sections */
.contact-wrapper > div {
    min-height: 400px; /* Ajuster la hauteur minimale selon vos besoins */
}

/* About Section */
.about {
    padding: 100px 0; /* Espacement au-dessus et au-dessous */
    background-color: #f4f4f4; /* Couleur de fond */
}

.about h2 {
    text-align: center; /* Centrer le titre */
    margin-bottom: 30px; /* Espacement sous le titre */
    font-size: 2.5rem; /* Taille du titre */
}

.about h3 {
    margin-top: 20px; /* Espacement au-dessus des sous-titres */
    font-size: 1.8rem; /* Taille des sous-titres */
}

.about p {
    margin-bottom: 20px; /* Espacement sous les paragraphes */
    line-height: 1.8; /* Espacement entre les lignes */
}

/* CGV Section */
.cgv {
    padding: 100px 0; /* Espacement au-dessus et au-dessous */
    background-color: #f4f4f4; /* Couleur de fond */
}

.cgv h2 {
    text-align: center; /* Centrer le titre */
    margin-bottom: 30px; /* Espacement sous le titre */
    font-size: 2.5rem; /* Taille du titre */
}

.cgv h3 {
    margin-top: 20px; /* Espacement au-dessus des sous-titres */
    font-size: 1.8rem; /* Taille des sous-titres */
}

.cgv p {
    margin-bottom: 20px; /* Espacement sous les paragraphes */
    line-height: 1.8; /* Espacement entre les lignes */
}

/* Instagram Logo */

nav {
    display: flex; /* Utilisation de flexbox pour aligner les éléments */
    justify-content: space-between; /* Espace entre les éléments */
    align-items: center; /* Centrage vertical des éléments */
    padding: 10px 20px; /* Espacement autour de la barre de navigation */
}

nav ul {
    list-style: none; /* Supprime les puces */
    padding: 0; /* Supprime le padding */
    margin: 0; /* Supprime la marge */
    display: flex; /* Utilisation de flexbox pour les éléments de la liste */
}

nav ul li {
    margin-right: 20px; /* Espace entre les éléments de navigation */
}

.instagram-link {
    font-size: 34px; /* Taille de l'icône Instagram */
    color: white; /* Couleur de l'icône */
    text-decoration: none; /* Supprime le soulignement */
    margin-left: 20px; /* Décalage à gauche par rapport au reste de la barre */
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #E1306C; /* Couleur du logo Instagram au survol */
    transform: scale(1.2); /* Légère augmentation de la taille au survol */
}

/* Style pour le logo */
.logo img {
    position: relative;
    z-index: 10; /* Assure-toi que le logo reste au-dessus */
    height:75px; /* Ajuste la hauteur selon les besoins */
    width: auto;  /* Garde la proportion de l'image */
}

.logo a {
    display: inline-block;
    padding: 0 0; /* Ajuste le padding selon la hauteur de la barre de navigation */
}

html {
    overflow-y: scroll;
}
