@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');
 
* { box-sizing: border-box; margin: 0; padding: 0; }
 
body {
  font-family: 'Lora', serif;
  color: #3d2e1e;
  background-color: #faf6ef;
  min-height: 100vh;
}
 
/* ─── FOND IMAGE ─── */
.page-bg {
  background-image: url('/images/fond.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
}
 
/* ─── NAV ─── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(188, 162, 120, 0.45);
  backdrop-filter: blur(4px);
  border-bottom: 0.5px solid rgba(150, 120, 80, 0.3);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-links { display: flex; justify-content: center; flex: 1; }
.nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #5c3d1e;
  text-decoration: none;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
  display: block;
}
.nav a:hover { background: rgba(150, 120, 80, 0.2); }
 
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(245, 235, 215, 0.98);
  border: 0.5px solid rgba(150, 120, 80, 0.3);
  border-radius: 8px;
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-bottom: 0.5px solid rgba(150, 120, 80, 0.15);
}
.dropdown-menu a:last-child { border-bottom: none; }
 
.nav-icons { display: flex; gap: 0.2rem; align-items: center; }
.nav-icons a {
  padding: 0.5rem 0.6rem;
  font-size: 1.2rem;
  border-radius: 6px;
  position: relative;
}
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: #8b5e2a;
  color: #f5ead8;
  font-size: 0.55rem;
  font-family: 'Cinzel', serif;
  border-radius: 50%;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
}
.user-badge {
  position: absolute;
  top: -2px;         /* Ajuste pour que ce soit joli sur ton icône */
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #2ecc71; /* Vert */
  border: 1.5px solid #fff;  /* Cercle blanc autour pour détacher du fond */
  border-radius: 50%;
}

/* Positionnement du menu sous l'icône user badge  */

.account-dropdown {                 /* Ce bloc définit comment l'icône de compte se comporte par rapport au reste de la barre de navigation. */                 
    position: relative;
    display: inline-block;
}

.account-dropdown .dropdown-menu {
    display: none;                          /* Cache le menu par défaut */
    position: absolute;                     /* Permet de flotter au-dessus du contenu */
    top: 100%;                              /* Se place pile sous l'icône */
    
    /* LE RÉGLAGE CLÉ POUR L'ALIGNEMENT */
    right: 0;                                         /* S'aligne sur le bord droit de l'icône (évite de sortir de l'écran) */
    left: auto;                                        /* Annule le "left: 0" hérité du menu Boutique */
    
    /* DESIGN ET COULEURS (COPIÉ SUR TA BOUTIQUE) */
    background-color: rgba(245, 235, 215, 0.98);            /* Couleur crème avec légère transparence */
    min-width: 160px;                                          /* Largeur minimum pour que le texte respire */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);          /* Ombre portée pour l'effet de relief */
    z-index: 1000;                                            /* S'affiche par-dessus tous les autres éléments */
    border-radius: 8px;                                       /* Coins arrondis pour un aspect moderne */
    padding: 0.5rem 0;                                     /* Espace intérieur en haut et en bas du menu */
    border: 0.5px solid rgba(150, 120, 80, 0.3);          /* Bordure fine dorée/marron comme ta boutique */
}

.account-dropdown .dropdown-menu a {               /* Les Liens dans le Menu */
    color: #5c3d1e;                                /* couleur du texte */
    padding: 10px 15px;                            /* Crée une zone cliquable confortable autour du texte. */
    text-decoration: none;                         /* Enlève le soulignement bleu classique des liens. */
    display: block;                                /* Fait en sorte que le lien prenne toute la largeur (cliquable partout). */
    font-size: 0.78rem;                             /* taille de police */
}

.account-dropdown .dropdown-menu a:hover {         /* L'Interaction au Survol (Hover --> style du lien survolé) */
    background-color: #f9f5f0;                     /* couleur quand la souris passe dessus */
}

/* Affichage au survol */
.account-dropdown:hover .dropdown-menu {
    display: block;                                /* Change l'état du menu de "caché" à "visible" quand on survole l'icône. */
}

/* ─── BANNIERE ACCUEIL ─── */
.banniere {
  margin: 2rem auto;
  max-width: 700px;
  background: rgba(210, 190, 155, 0.55);
  border-radius: 14px;
  text-align: center;
  padding: 2.5rem 2rem;
}
.banniere h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #5c3d1e;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.banniere p {
  font-style: italic;
  font-size: 1rem;
  color: #7a5c3a;
}
 
/* ─── SECTIONS ─── */
.section { padding: 2.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-titre {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #7a5230;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-divider {
  width: 50px; height: 1px;
  background: rgba(150, 120, 80, 0.5);
  margin: 0 auto 2rem;
}
 
/* ─── GRILLE PRODUITS ─── */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.carte {
  background: rgba(245, 235, 215, 0.6);
  border: 0.5px solid rgba(150, 120, 80, 0.3);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s;
}
.carte:hover { border-color: rgba(139, 94, 42, 0.5); }
.carte-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(200, 180, 145, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(130, 100, 60, 0.3);
}
.carte-img img { width: 100%; height: 100%; object-fit: cover; }
.carte-body { padding: 0.9rem; }
.carte-nom {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: #5c3d1e;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.carte-compo {
  font-size: 0.78rem;
  color: #9a7a55;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.carte-prix {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #8b5e2a;
}
 
/* ─── BOUTONS ─── */
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-principal { background: #8b5e2a; color: #f5ead8; width: 100%; }
.btn-principal:hover { background: #7a5220; }
.btn-secondaire {
  background: transparent;
  color: #8b5e2a;
  border: 1px solid rgba(139, 94, 42, 0.5);
  width: 100%;
  margin-top: 0.5rem;
}
.btn-secondaire:hover { background: rgba(139, 94, 42, 0.07); }
 
/* ─── PANIER ─── */
.panier-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.panier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(150, 120, 80, 0.2);
}
.panier-item:first-child { border-top: 0.5px solid rgba(150, 120, 80, 0.2); }
.panier-thumb {
  width: 70px; height: 70px; min-width: 70px;
  background: rgba(200, 180, 145, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.panier-thumb img { width: 100%; height: 100%; object-fit: cover; }
.panier-info { flex: 1; }
.panier-nom { font-family: 'Cinzel', serif; font-size: 0.85rem; color: #5c3d1e; margin-bottom: 0.2rem; }
.panier-compo { font-size: 0.75rem; color: #9a7a55; font-style: italic; }
.panier-prix { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; color: #8b5e2a; }
 
.recap {
  background: rgba(210, 190, 155, 0.3);
  border: 0.5px solid rgba(150, 120, 80, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
}
.recap-titre {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5230;
  text-align: center;
  margin-bottom: 1rem;
}
.recap-ligne {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7a5c3a;
  padding: 0.4rem 0;
  border-bottom: 0.5px solid rgba(150, 120, 80, 0.15);
}
.recap-ligne.total {
  border-bottom: none;
  border-top: 1px solid rgba(150, 120, 80, 0.3);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #5c3d1e;
  font-weight: 600;
}
.recap-note { font-size: 0.72rem; color: #9a7a55; font-style: italic; text-align: center; margin: 0.75rem 0 1.2rem; }
 
/* ─── À PROPOS ─── */
.a-propos {
  background: rgba(188, 162, 120, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 12px;                  
  padding: 2rem;                        
  border: 0.8px solid rgba(150, 120, 80, 0.3);    
  max-width: 900px;                     
  margin: 0 auto 2rem;                                   
}
.a-propos p { 
 font-size: 1rem; 
 line-height: 1.9; 
 color: #5a422a; 
 font-style: italic;
 text-align: center;                   
}
 
/* ─── FOOTER ─── */
.footer {
  background: rgba(188, 162, 120, 0.45);
  backdrop-filter: blur(4px);
  border-top: 0.5px solid rgba(150, 120, 80, 0.35);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-liens { display: flex; gap: 1.5rem; }
.footer-liens a {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #7a5c3a;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-liens a:hover { color: #5c3d1e; }
.footer-reseaux { display: flex; gap: 0.8rem; align-items: center; }
.footer-reseaux a { color: #7a5c3a; font-size: 1.2rem; text-decoration: none; }
.footer-reseaux a:hover { color: #5c3d1e; }
 
/* ─── FORMULAIRES ─── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #7a5c3a;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #3d2e1e;
  background: rgba(245, 235, 215, 0.7);
  border: 0.5px solid rgba(150, 120, 80, 0.4);
  border-radius: 8px;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(139, 94, 42, 0.7);
  background: rgba(245, 235, 215, 0.95);
}
.form-facultatif { font-size: 0.72rem; color: #9a7a55; font-style: italic; margin-left: 0.3rem; }
.erreur { color: #a05a2a; font-size: 0.82rem; font-style: italic; margin-bottom: 1rem; }
 
/* ─── PAGE TITRE ─── */
.page-hero { text-align: center; padding: 2rem 2rem 0.5rem; }
.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #5c3d1e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
/* ─── TOOLBAR BOUTIQUE ─── */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 0.5px solid rgba(150, 120, 80, 0.2);
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cats { display: flex; gap: 0.5rem; }
.cat-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #7a5c3a;
  background: transparent;
  border: 0.5px solid rgba(150, 120, 80, 0.4);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
}
.cat-btn.active, .cat-btn:hover {
  background: rgba(150, 120, 80, 0.2);
  color: #5c3d1e;
}
.tri-select {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  color: #5c3d1e;
  background: rgba(240, 228, 205, 0.6);
  border: 0.5px solid rgba(150, 120, 80, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}
 
/* ─── FICHE PRODUIT ─── */
.produit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.galerie-principale {
  position: relative;
  background: rgba(200, 180, 145, 0.3);
  border-radius: 12px;
  border: 0.5px solid rgba(150, 120, 80, 0.3);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  display: flex; align-items: center; justify-content: center;
}
.galerie-principale img { width: 100%; height: 100%; object-fit: cover; }
.galerie-miniatures { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.miniature {
  width: 64px; height: 64px;
  border-radius: 6px;
  border: 0.5px solid rgba(150, 120, 80, 0.3);
  overflow: hidden;
  cursor: pointer;
  background: rgba(200, 180, 145, 0.3);
}
.miniature.active { border: 1.5px solid #8b5e2a; }
.miniature img { width: 100%; height: 100%; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.qty-ctrl {
  display: flex; align-items: center;
  border: 0.5px solid rgba(150, 120, 80, 0.4);
  border-radius: 8px; overflow: hidden;
}
.qty-ctrl button {
  background: rgba(200, 180, 145, 0.25);
  border: none; width: 32px; height: 32px;
  font-size: 1rem; color: #5c3d1e; cursor: pointer;
}
.qty-ctrl button:hover { background: rgba(150, 120, 80, 0.2); }
.qty-ctrl span {
  width: 36px; text-align: center;
  font-family: 'Cinzel', serif; font-size: 0.9rem; color: #5c3d1e;
}
.produit-meta { font-size: 0.78rem; color: #9a7a55; margin-top: 1rem; }
.produit-meta span { display: block; margin-bottom: 0.3rem; }
 
@media (max-width: 700px) {
  .produit-layout, .panier-layout { grid-template-columns: 1fr; }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .banniere h1 { font-size: 1.6rem; }
  .nav-links a { padding: 0.7rem 0.6rem; font-size: 0.7rem; }
}
