/* -----------------------------------------
   1. Fond d’écran flou et fixe
----------------------------------------- */
body {
    position: relative;              /* Nécessaire pour positionner des éléments enfants par rapport à ce body */
    margin: 0;                       /* Supprime les marges par défaut du navigateur */
    min-height: 100vh;              /* Assure que le body prend au moins toute la hauteur de l’écran */
    color: black;                   /* Couleur du texte par défaut */
    z-index: 0;                     /* Permet de positionner les couches correctement */
    overflow-x: hidden;             /* Évite les barres de défilement horizontales */
	font-family: 'Cormorant Garamond', serif;
}


/* Image de fond floutée fixée à l’écran */
body::before {
    content: "";                                        /* Nécessaire pour générer un pseudo-élément */
    position: fixed;                                    /* Fixe l’image à l’écran même quand on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background1.jpg') 
                no-repeat center center fixed;          /* Image de fond centrée et fixée */
    background-size: cover;                             /* Redimensionne l’image pour couvrir tout l’écran */
    filter: blur(5px);                                  /* Applique un flou */
    z-index: -1;                                        /* Place cette couche derrière tout le reste */
}

/* -----------------------------------------
   2. Liens (couleurs selon leur état)
----------------------------------------- */
a {
    color: blue;                 /* Couleur par défaut */
    text-decoration: none;      /* Supprime le soulignement */
}

a:hover {
    color: white;                 /* Couleur quand on survole */
}

a:visited {
    color: black;               /* Couleur après avoir cliqué dessus */
}

a:active {
    color: orange;              /* Couleur quand le lien est cliqué */
}

/* -----------------------------------------
   3. Titres
----------------------------------------- */
h1 {
    text-align: center;         /* Centre le texte */
    margin-top: 50px;           /* Espace au-dessus */
    color: #648c33;             /* Couleur verte personnalisée */
}

h2 {
    text-align: center;         /* Centre le texte */
    margin-top: 50px;           /* Espace au-dessus */
    color: #648c33;             /* Couleur verte personnalisée */
}



/* -----------------------------------------
   4. Menu de navigation horizontal
----------------------------------------- */
nav ul {
    list-style: none;           /* Supprime les puces de liste */
    color: blue;
    padding: 0;                 /* Supprime le padding */
    background-color: #C0C0C0;  /* Fond gris clair */
    border-radius: 8px;         /* Coins arrondis */
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline-block;      /* Les éléments sont côte à côte */
    margin-right: 20px;         /* Espacement entre les liens */
    color: black;
}

/* -----------------------------------------
   5. Section des produits en grille flexible
----------------------------------------- */
.produits {
    display: flex;              /* Utilise Flexbox */
    justify-content: space-around;  /* Répartit l’espace autour des éléments */
    flex-wrap: wrap;            /* Retourne à la ligne si nécessaire */
    padding: 20px;
    margin-top: 30px;
}

.produit {
    background-color: white;                       /* Fond blanc pour chaque carte produit */
    border: 1px solid #ddd;                        /* Bordure grise claire */
    padding: 20px;
    margin: 15px;
    width: 250px;
    border-radius: 8px;                            /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);       /* Ombre douce */
    text-align: center;
    transition: transform 0.3s ease;               /* Animation douce */
}

.produit:hover {
    transform: translateY(-5px);                   /* Légère élévation au survol */
}

.produit .btn:hover {
    background-color: #45a049;                     /* Changement de couleur au survol d’un bouton */
}

/* -----------------------------------------
   6. Formulaire de connexion
----------------------------------------- */
.form-container {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Fond très transparent */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);      /* Ombre douce autour */
    border-radius: 10px;
    text-align: center;
    color: black;
}


.form-container a {
    color: black;	
    	
}

.form-container a:hover {            /* Effet de survole */
    background: #f0f0f0;
    color: green;
}


.otp-input {
    padding-left: 20px;
    font-size: 20px;
    letter-spacing: 5px;
}

.form-container h2 {
    margin-bottom: 15px;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-container button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
}

.error {
    color: red;                                    /* Message d’erreur */
}

.success {
    color: green;                                  /* Message de succès */
}

.connecte {
    color: green;
    font-weight: bold;
    margin-left: 10px;
}

/* -----------------------------------------
   7. Menu déroulant
----------------------------------------- */
.menu {
    position: relative;          /* Nécessaire pour positionner le sous-menu */
    display: inline-block;
    cursor: pointer;
}

.submenu {
    display: none;               /* Masqué par défaut */
    position: absolute;          /* Positionnement relatif au parent */
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);  
    min-width: 150px;
}

.submenu li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    text-decoration: none;
    color: #333;
    display: block;
}

.submenu a:hover {            /* Effet de survole */
    background: #f0f0f0;
    color: green;
}

/* -----------------------------------------
   8. Panier flottant en haut à droite
----------------------------------------- */
#panier-flottant {
    position: fixed;             /* Toujours visible */
    top: 10px;
    right: 10px;
    
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;               /* Devant les autres éléments */

}

#panier-flottant span {
    background-color: white;
    color: black;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 14px;
    left: 5px;
    font-weight: bold;
}

.nom-utilisateur {
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
    color: black;
	margin-top :7px;
}

/* -----------------------------------------
   9. Notifications admin
----------------------------------------- */
.notification-bell {
    position: fixed;
    font-size: 20px;
    color: grey;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px;
	margin-right: 10px;
	margin-top: 20px;
}

.notification-bell span {
    background-color: white;
    color: black;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 10px;
    font-weight: bold;
}

.nombre-produit span {
    background-color: white;
    color: black;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 14px;
    margin-left: 5px;
    font-weight: bold; 
}

/*  Header */

.header {
    margin-left: 10px;
    font-size: 20px;
    color: grey;
    font-weight: bold;
}
.header a:hover {            /* Effet de survole */
    background: #f0f0f0;
    color: green;
}

.header form:hover {            /* Effet de survole */
    background: #f0f0f0;
    color: green;
}


/*  LOGO */

.logo {
    width: 150px;
    height: auto;
    margin-right: 5px;
    border-radius: 8%;
}



/* -----------------------------------------
   10. Blog clavardage
----------------------------------------- */
.head-blog  {
	color: #648c44;
	font-size: 20px;
}
	
.head-blog a {	
	
	text-align: center;         /* Centre le texte */
	color: white;
	font-size: 20px;
}	

.head-blog a:hover {            /* Effet de survole */
    background: #f0f0f0;
    color: green;
}




.blog_container {
    position: relative;
    max-height: 80vh;                              /* Hauteur maximale de la zone */
    overflow-y: auto;                              /* Scroll vertical si contenu trop grand */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);    /* Fond blanc semi-transparent */
	background: url('images/background1.jpg') 
                no-repeat center center fixed;          /* Image de fond centrée et fixée */
    margin: 50px auto;
    width: 80%;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 20px;
	
}
.blog_container a {
	color: white;
	
}
.blog_container h1 {
	color: #648c44;
	font-size: 60px;
}	
	
.blog_container h2 {
	color: white;
}
	
/* -----------------------------------------
   11. Tableau responsive
----------------------------------------- */
.table-container {
    
    max-width: 100%;
    overflow-x: auto;      /* Scroll horizontal si trop large */
    display: block;
	
}

.table-container h2 {
  text-align: center;         /* Centre le texte */
  margin-top: 50px;           /* Espace au-dessus */
  color: #648c33;             /* Couleur verte personnalisée */
  margin-left: 10px;
  font-size: 25px;
  font-weight: bold;
}
.table-container a {
  margin-top: 10px;           /* Espace au-dessus */
  color: white;             /* Couleur blache */
  font-size: 15px;
  font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;    /* Supprime les espaces entre les cellules */
}

th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

	
/* -----------------------------------------
   11. Bio graphye page index 
----------------------------------------- */

.bio-section {
  margin: 40px 0;
  
}

.biographie-section h2 {
  text-align: center;         /* Centre le texte */
  margin-top: 50px;           /* Espace au-dessus */
  color: black;             /* Couleur verte personnalisée */
  margin-left: 10px;
  font-size: 25px;
  font-weight: bold;
  
}

.bio-content {
  background-color: rgba(230, 230, 230, 0.4); /* Gris transparent */
  display: flex;
  align-items: center;
  justify-content: center;     /* Centre les blocs horizontalement */
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;          /* Centre le texte */
  color: black;
  padding: auto;
  border-radius: 30px;
  margin: 40px auto 0 auto;
  width: 90%;
  max-width:900px	;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bio-content.inverse {
  flex-direction: row-reverse; /* Inverse l’ordre image/texte */
}

.bio-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bio-text h3 {
  margin-bottom: 15px;
  line-height: 1.6;
  font-weight: normal;
}

@media (max-width: 768px) {
  .bio-content {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .bio-text, .bio-image {
    width: 100%;
  }

  .bio-image img {
    max-width: 100%;
    height: auto;
  }
}
.bio-text {
  flex: 1;
  min-width: 250px;
  max-width: 500px; /* Optionnel pour équilibrer */
  text-align: left;
 
}
.hero{
    text-align: center;         /* Centre le texte */
    margin-top: 0px;           /* Espace au-dessus */
    color: black;             /* Couleur noir */	
    /* background-color: rgba(230, 230, 230, 0.2); /* Gris transparent */
    display: flex;
    align-items: center;
    justify-content: center;     /* Centre les blocs horizontalement */
    gap:5px;
    flex-wrap: wrap;
    text-align: center;          /* Centre le texte */
    color: black;
    padding: auto;
    border-radius: 80px;
    margin:70px auto 0 auto;
    width: 90%;
    max-width:400px	;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
	
	
.hero-text {
    text-align: center;         /* Centre le texte */
    margin-top: 50px;           /* Espace au-dessus */
    color: black;             /* Couleur verte personnalisée */
	margin-left: 10px;
    font-size: 25px;
    font-weight: normal;
	line-height: 0.4;
	
}
.hero-text h1{
    
    margin-top: 0px;           /* Espace au-dessus */
    color: white;             /* Couleur blanche personnalisée */
	font-size: 30px;
  
}
.hero-text p{
    
    margin-top: 0px;           /* Espace au-dessus */
    color: black;             /* Couleur verte personnalisée */
	font-size: 15px;
	font-weight: bold;
	
	
  
}

	
/* -----------------------------------------
   12. Galerie - Encadrée en bas de page
----------------------------------------- */
.galerie-section {
    background-color: rgba(128, 128, 128, 0.7); /* Gris transparent */
    padding: auto;
    border-radius: 12px;
    margin: 40px auto 0 auto;
    width: 90%;
    max-width: auto	;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.galerie-section h2 {
    color: red;
}

.galerie-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.galerie-item {
    text-align: center;
    max-width: 220px;
}

.galerie-item img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.galerie-item img:hover {
    transform: scale(1.05);
}

.legende {
    margin-top: 10px;
    font-size: 16px;
    color: white;
    font-weight: bold;
}
.galerie-section h2 {
    text-align: center;         /* Centre le texte */
    margin-top: 50px;           /* Espace au-dessus */
    color: black;             /* Couleur verte personnalisée */
	margin-left: 10px;
    font-size: 30px;
    font-weight: bold;
}

/* Modale d’image plein écran */
.modal {
  display: none; /* Masquée par défaut */
  position: fixed;
  z-index: 1000; /* Bien au-dessus */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent noir */
  backdrop-filter: none; /* Aucune déformation */
}

/* Image agrandie */
.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Légende sous l'image */
.caption {
  text-align: center;
  color: #fff;
  padding: 10px;
  font-size: 1.1em;
}

/* Bouton de fermeture */
.modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal .close:hover,
.modal .close:focus {
  color: #ccc;
}

.fleche-gauche,
.fleche-droite {
  position: absolute;
  top: 50%;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transform: translateY(-50%);
  z-index: 1001;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: background 0.3s;
}

.fleche-gauche:hover,
.fleche-droite:hover {
  background: rgba(255, 255, 255, 0.4);
  color: black;
}

.fleche-gauche {
  left: 30px;
}

.fleche-droite {
  right: 30px;
}

/* Dashboard Admin */


.admin-dashboard{
	text-align: center;
	
    }
.admin-dashboard h2{
	text-align: center;
	color: #648c33;
    }
.admin-dashboard p{
	text-align: center;
	color: black;
    }
.admin-dashboard a{
	text-align: center;
	color: white;
    }

 .menu-container {
            display: flex;
            flex-direction: row;
            gap: 20px;
            justify-content: center;
			font-weight: bold;
			color: white;
        }
        .menu {
			
            background: #9682a9;
            padding: 10px;
            border-radius: 5px;
            position: relative;
            width: 250px;
            text-align: center;
						
        }
			
        .submenu {
            display: none;
            list-style: none;
            padding: 10px;
			background-color: rgba(0, 0, 0, 0);   /* Tansparent */
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
			
        }
		
        .menu-toggle {
            cursor: pointer;
            font-weight: bold;
        }
        .notification-bell {
            position: fixed;
            top: 1px;
            left: 1200px;
            font-size: 20px;
            color: grey;
            cursor: pointer;
            display: flex;
            align-items: center;
            background-color: white;
            padding: 5px;
            border-radius: 50%;
            text-decoration: none;
        }
        .notification-bell span {
            margin-left: 5px;
            font-weight: bold;
            color: black;
        }
		
/* Liste utilisateurs */		

.abonnes_container {
	color: white;
}


.abonnes_container h2 {
	color: #648c33;
}

.abonnes_container a {
	color: white;
	font-weight: bold;
	top: 20px;
	
}

/* -----------------------------------------
   Pied de page (footer)
----------------------------------------- */
footer {
    background-color: rgba(0, 0, 0, 0.7);   /* Fond noir semi-transparent */
    color: white;                           /* Texte blanc */
    text-align: center;                     /* Centrage du texte */
    padding: 20px 0;                        /* Espacement haut et bas */
    position: relative;                     /* Pour placement éventuel */
    bottom: 0;
    width: 100%;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3); /* Ombre en haut du footer */
}

footer p {
    margin: 0;
}

/* Classe utilisée pour forcer une image en plein écran */
.fullscreen {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 90vh !important;
}

.form-container {
    text-align: center; /* centre textes + éléments inline */
}

.otp-boxes{
    display:flex;
    justify-content:center;
    gap:10px;
    margin: 12px 0 6px;
}

.otp-digit{
    width:48px;
    height:54px;
    font-size:22px;
    text-align:center;
    border:1px solid #ccc;
    border-radius:10px;
    outline:none;
}

.otp-digit:focus{
    border-color:#666;
}

button[disabled]{
    opacity:0.6;
    cursor:not-allowed;
}

.empty-cart{
  max-width: 520px;
  margin: 40px auto;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: center;
}

.empty-cart h3{
  margin: 0 0 10px;
}

.empty-cart p{
  margin: 0 0 18px;
  opacity: 0.9;
}

.empty-actions .btn{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}
/* Affichage de inscription réussie */
.flash-success{
  background-color: rgba(230, 230, 230, 0.4); /* Gris transparent */
  display: flex;
  align-items: center;
  justify-content: center;     /* Centre les blocs horizontalement */
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;          /* Centre le texte */
  color: #155724;
  padding: auto;
  border-radius: 30px;
  margin: 40px auto 0 auto;
  width: 30%;
  max-width:700px	;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size:26px;
	
	
}

