/* =========================================
   1. IMPORTATION DES POLICES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Raleway:wght@300;400;500&family=Tenor+Sans&display=swap');

/* =========================================
   2. VARIABLES DE LA CHARTE GRAPHIQUE
   ========================================= */
:root {
    /* Couleurs Unifiées */
    --color-dark: #3a2d27;
    --color-bg-light: #f4f0eb;
    --color-bg-alt: #eae2db;
    --color-accent-1: #966577; /* Prune */
    --color-accent-2: #c9b4a5; /* Taupe */

    /* Typographies */
    --font-titre: 'Tenor Sans', sans-serif;
    --font-sous-titre: 'Montserrat', sans-serif;
    --font-texte: 'Raleway', sans-serif;
}

/* =========================================
   3. CONFIGURATION GÉNÉRALE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texte);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet de coller le footer en bas de page */
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

main {
    flex: 1; /* Pousse le footer vers le bas */
}

/* Boutons principaux génériques */
.btn-principal {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.btn-principal:hover {
    background-color: var(--color-accent-1);
    color: white;
}

/* =========================================
   4. NAVIGATION PRINCIPALE (HEADER)
   ========================================= */
header {
    background-color: var(--color-bg-alt);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(58, 45, 39, 0.05);
    width: 100%;
}

header nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 5%;
}

/* Logo */
.logo { justify-self: start; }
.logo a {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark);
}

/* Menu principal */
.menu-principal {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-principal li a {
    font-family: var(--font-sous-titre);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    padding-bottom: 5px;
}

.menu-principal li a:hover,
.menu-principal li a.active {
    color: var(--color-accent-1);
}

.menu-principal li a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--color-accent-1);
}

/* Panier dans le header */
.panier-container { justify-self: end; }
.btn-panier {
    background-color: var(--color-accent-2);
    padding: 8px 18px;
    border-radius: 25px;
    font-family: var(--font-sous-titre);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-panier:hover, .btn-panier.active {
    background-color: var(--color-accent-1);
    color: white;
}

/* =========================================
   5. BANDEAU CATÉGORIES (BOUTIQUE)
   ========================================= */
.categories-bar {
    display: block;
    background-color: var(--color-bg-alt);
    border-top: 1px solid rgba(58, 45, 39, 0.1);
    border-bottom: 1px solid rgba(58, 45, 39, 0.1);
    padding: 12px 0;
    position: sticky;
    top: 70px;
    z-index: 999;
    width: 100%;
    left: 0;
}

.categories-container {
    width: 100%;
    padding: 0 5%;
}

.categories-container ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 20px;
}

.categories-container ul li a {
    font-family: var(--font-sous-titre);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-dark);
    letter-spacing: 1px;
    padding: 5px 10px;
}

.categories-container ul li a:hover {
    color: var(--color-accent-1);
    background-color: white;
    border-radius: 4px;
}

.categories-container ul li a.active {
    color: var(--color-accent-1);
    font-weight: bold;
    border-bottom: 2px solid var(--color-accent-1);
    padding-bottom: 2px;
}

/* =========================================
   6. PAGE D'ACCUEIL (INDEX)
   ========================================= */
#hero {
    text-align: center;
    padding: 100px 5%;
}

#hero h1 {
    font-family: var(--font-titre);
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

#hero p {
    font-family: var(--font-texte);
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* =========================================
   7. PAGE BOUTIQUE
   ========================================= */
.hero-boutique {
    text-align: center;
    padding: 60px 5%;
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-bg-light);
}

.hero-boutique h1 {
    font-family: var(--font-titre);
    font-size: 2.8rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.hero-boutique p {
    font-family: var(--font-texte);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 30px;
}

/* Filtres Boutique */
.barre-filtres {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 5%;
    background-color: #ffffff;
    margin: 30px 5%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(58, 45, 39, 0.05);
}

.filtre-groupe {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filtre-groupe input[type="text"],
.filtre-groupe select {
    padding: 10px 15px;
    border: 1px solid var(--color-bg-alt);
    border-radius: 20px;
    font-family: var(--font-texte);
    font-size: 0.9rem;
    outline: none;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
}

/* Double Slider de Prix */
.filtre-prix-container {
    background-color: var(--color-bg-light);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--color-bg-alt);
}

.input-prix-manuel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sous-titre);
    font-weight: 500;
}

.input-prix-manuel input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--color-bg-alt);
    border-radius: 5px;
    text-align: center;
    font-family: var(--font-texte);
    -moz-appearance: textfield;
}

.slider-container {
    position: relative;
    width: 200px;
    height: 30px;
    display: flex;
    align-items: center;
}

.slider-track {
    width: 100%;
    height: 4px;
    background-color: var(--color-bg-alt);
    border-radius: 5px;
    position: absolute;
    z-index: 1;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    background-color: var(--color-accent-1);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Grille et Cartes Produits */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    justify-content: start;
    padding: 0 5%;
    margin-bottom: 60px;
}

.produit-carte {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(58, 45, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.produit-carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(58, 45, 39, 0.15);
}

.produit-carte img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.produit-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produit-info h3 {
    font-family: var(--font-sous-titre);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.produit-info .prix {
    font-family: var(--font-texte);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-accent-1);
    margin-bottom: 20px;
}

.btn-ajout {
    background-color: var(--color-bg-alt);
    color: var(--color-dark);
    font-family: var(--font-sous-titre);
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-ajout:hover {
    background-color: var(--color-accent-2);
}

/* =========================================
   8. PAGE À PROPOS
   ========================================= */
.apropos-main { padding-bottom: 80px; }

.hero-apropos {
    background-color: var(--color-bg-alt);
    padding: 100px 10%;
    text-align: center;
}

.hero-apropos h1 {
    font-family: var(--font-titre);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.philosophie-section { padding: 80px 10%; }

.container-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.texte-article h2 {
    font-family: var(--font-titre);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.texte-article p { margin-bottom: 15px; }

.quote-box {
    background-color: var(--color-bg-alt);
    padding: 40px;
    border-left: 5px solid var(--color-accent-1);
    font-style: italic;
    font-family: var(--font-titre);
    font-size: 1.4rem;
    color: var(--color-accent-1);
}

.matieres-section {
    background-color: #ffffff;
    padding: 80px 10%;
}

.titre-centre {
    text-align: center;
    font-family: var(--font-titre);
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.grid-expertise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.expertise-card {
    padding: 30px;
    border: 1px solid var(--color-bg-alt);
    border-radius: 12px;
    transition: 0.3s;
}

.expertise-card:hover {
    border-color: var(--color-accent-2);
    transform: translateY(-5px);
}

.expertise-card h3 {
    font-family: var(--font-sous-titre);
    color: var(--color-accent-1);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.seo-longue-traine {
    padding: 80px 10%;
    text-align: center;
    background-color: var(--color-bg-alt);
    border-radius: 20px;
    margin: 40px 10%;
}

.seo-longue-traine h2 {
    font-family: var(--font-titre);
    margin-bottom: 20px;
}

.seo-longue-traine p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* =========================================
   9. PAGE CONTACT
   ========================================= */
.contact-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
}

.carte-contact {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(58, 45, 39, 0.08);
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.titre-contact {
    font-family: var(--font-titre);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.sous-titre-contact {
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 30px;
}

.formulaire-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formulaire-contact input,
.formulaire-contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-bg-alt);
    border-radius: 8px;
    font-family: var(--font-texte);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formulaire-contact input:focus,
.formulaire-contact textarea:focus {
    outline: none;
    border-color: var(--color-accent-1);
    box-shadow: 0 0 5px rgba(150, 101, 119, 0.2);
}

.btn-envoyer {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-envoyer:hover { background-color: var(--color-accent-1); }

.separateur {
    border: 0;
    height: 1px;
    background-color: var(--color-bg-alt);
    margin: 40px 0 30px 0;
}

.titre-reseaux {
    font-family: var(--font-sous-titre);
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.reseaux-sociaux {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reseau-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    border-radius: 25px;
    font-family: var(--font-sous-titre);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-bg-alt);
}

.reseau-box:hover {
    background-color: var(--color-accent-2);
    border-color: var(--color-accent-2);
}

/* =========================================
   10. PAGE PANIER
   ========================================= */
.panier-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.panier-main h1 {
    font-family: var(--font-sous-titre);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

th {
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-accent-2);
    opacity: 0.7;
}

td {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(58, 45, 39, 0.1);
    font-family: var(--font-sous-titre);
    font-weight: 500;
}

.qty-btn {
    background: white;
    border: 1px solid var(--color-accent-2);
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    color: var(--color-dark);
    transition: all 0.2s;
}

.qty-btn:hover { background: var(--color-accent-2); }

.cart-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 1px solid var(--color-dark);
    padding-top: 2rem;
}

.total-container {
    display: flex;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: baseline;
}

.total-label {
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.total-amount {
    font-family: var(--font-sous-titre);
    font-size: 1.8rem;
    font-weight: 600;
}

.btn-checkout {
    background-color: var(--color-dark);
    color: white;
    padding: 1.2rem 4rem;
    border: none;
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover { background-color: var(--color-accent-1); }

/* =========================================
   11. PIED DE PAGE (FOOTER)
   ========================================= */
footer {
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.85rem;
    font-weight: 300;
    width: 100%;
    margin-top: auto;
}

/* =========================================
   12. ASCENSEUR PERSONNALISÉ (SCROLLBAR)
   ========================================= */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-2) var(--color-bg-light);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-light); }
::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-2);
    border-radius: 10px;
    border: 2px solid var(--color-bg-light);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--color-accent-1); }

/* =========================================
   13. RESPONSIVE (MOBILES & TABLETTES)
   ========================================= */
@media (max-width: 900px) {
    header { height: auto; padding: 15px 0; }
    header nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .menu-principal { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .categories-bar { position: static; }
    .categories-container ul { gap: 10px; }
    .categories-container ul li a { font-size: 0.7rem; }

    .container-split { grid-template-columns: 1fr; }
    .hero-apropos h1 { font-size: 2.2rem; }

    /* Panier Mobile */
    .cart-header { display: none; }
    .cart-item td { display: block; text-align: center; padding: 1rem 0; }
    .product-info { flex-direction: column; gap: 1rem; }
    .qty-box { margin: 0 auto; }
    .cart-footer { align-items: center; }
    .total-container { gap: 2rem; }
}

/* Table principale du panier */
.panier-main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    table-layout: fixed; /* Force le tableau à respecter nos largeurs */
}

/* Colonne 1 : Produit (On lui donne 45% de l'espace pour respirer) */
.panier-main th:nth-child(1),
.panier-main td:nth-child(1) {
    width: 45%;
    text-align: left;
    padding-right: 20px; /* Ajoute un espace de sécurité avec le prix */
}

/* Colonnes 2, 3 et 4 : Prix, Quantité et Total (On répartit le reste) */
.panier-main th:nth-child(2), .panier-main td:nth-child(2),
.panier-main th:nth-child(3), .panier-main td:nth-child(3),
.panier-main th:nth-child(4), .panier-main td:nth-child(4) {
    width: 18.33%;
    text-align: center; /* On centre le texte pour plus d'élégance */
}

/* Style général des entêtes de colonnes */
.panier-main th {
    font-family: var(--font-sous-titre);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-accent-2);
    opacity: 0.7;
}

/* Style général des cellules */
.panier-main td {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(58, 45, 39, 0.1);
    font-family: var(--font-sous-titre);
    font-weight: 500;
    vertical-align: middle; /* Aligne tout parfaitement au centre sur la hauteur */
}

/* =========================================
   FICHE PRODUIT
   ========================================= */
.fiche-produit {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-produit {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 60px;
    align-items: start;
}

/* Images */
.image-principale img {
    width: 100%;
    border-radius: 4px;
    background-color: #fff;
}

.miniatures {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.miniatures img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--color-accent-taupe);
    border-radius: 4px;
}

/* Détails */
.fil-ariane {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.nom-produit {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    color: var(--color-dark-brown);
    margin-bottom: 1rem;
}

.prix-produit {
    font-family: var(--font-subtitles);
    font-size: 1.8rem;
    color: var(--color-mauve);
    margin-bottom: 2rem;
}

/* Actions */
.actions-achat {
    display: flex;
    gap: 20px;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-accent-taupe);
    border-bottom: 1px solid var(--color-accent-taupe);
}

.btn-ajouter-panier {
    flex: 1;
    background-color: var(--color-dark-brown);
    color: white;
    border: none;
    padding: 1rem;
    font-family: var(--font-subtitles);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 30px; /* Assorti au bouton panier de l'en-tête */
    transition: 0.3s;
}

.btn-ajouter-panier:hover {
    background-color: var(--color-mauve);
}

/* Accordéons (Détails techniques) */
.specs-container details {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(58, 45, 39, 0.1);
}

summary {
    font-family: var(--font-subtitles);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::after {
    content: '+';
    color: var(--color-mauve);
}

.contenu-detail {
    padding: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 850px) {
    .container-produit {
        grid-template-columns: 1fr;
    }
}

/* Logo : Conteneur principal */
.logo {
    justify-self: start;
}

/* Aligne l'icône et le texte côte à côte et centrés verticalement */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px; /* L'espace entre le dessin de la porte et le texte */
}

/* Style de l'icône de la porte */
.logo-icone {
    height: 45px; /* Taille idéale pour ne pas déborder du header */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Style du texte à côté de la porte (on remet l'ancienne typographie) */
.logo-texte {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark);
}

/* Petit effet de zoom sur la porte au survol */
.logo a:hover .logo-icone {
    transform: scale(1.08);
}

/* Conteneur principal du slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.produit-slider {
    display: flex;
    overflow-x: auto; /* Active le défilement horizontal */
    scroll-snap-type: x mandatory; /* Force l'image à s'aligner parfaitement */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Défilement fluide sur iOS */
    border-radius: 8px;
}

/* Cache la barre de défilement pour un look plus propre */
.produit-slider::-webkit-scrollbar {
    display: none;
}

.produit-slider img {
    flex: 0 0 100%; /* Chaque image prend 100% de la largeur du volet */
    width: 100%;
    height: auto;
    object-fit: cover;
    scroll-snap-align: start; /* Point d'ancrage du défilement */
}

/* Points de navigation sous les images */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slider-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent-taupe); /* Couleur de vos variables[cite: 1] */
    opacity: 0.5;
    transition: opacity 0.3s;
}

.slider-nav a:hover {
    opacity: 1;
    background-color: var(--color-mauve);
}

/* =========================================
   14. PAGE FICHE PRODUIT
   ========================================= */
.fiche-produit {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-produit {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Coupe l'écran en deux : image à gauche, texte à droite */
    gap: 50px;
    align-items: start;
}

/* --- La galerie d'images --- */
.produit-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* L'image principale (en grand) */
.image-principale-container img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Empêche l'image de devenir trop géante sur les très grands écrans */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(58, 45, 39, 0.08);
}

/* Le conteneur des petites photos en dessous */
.miniatures-container {
    display: flex;
    gap: 15px;
}

/* Style des miniatures */
.miniature {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6; /* Un peu transparentes par défaut */
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Effet au survol */
.miniature:hover {
    opacity: 1;
}

/* Effet quand la miniature est celle affichée en grand */
.miniature.active {
    opacity: 1;
    border-color: var(--color-accent-1); /* Encadré en Prune */
}

/* --- Responsive pour mobile --- */
@media (max-width: 900px) {
    .container-produit {
        grid-template-columns: 1fr; /* Sur mobile, l'image passe au-dessus du texte */
        gap: 30px;
    }

    .miniatures-container {
        justify-content: center; /* Centre les miniatures sur mobile */
    }
}

/* --- Bouton Retour --- */
.retour-boutique {
    margin-bottom: 30px;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sous-titre);
    font-size: 0.9rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.btn-retour span {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-retour:hover {
    color: var(--color-accent-1);
}

.btn-retour:hover span {
    transform: translateX(-5px); /* Petite animation de la flèche vers la gauche */
}

/* --- Bloc d'Achat (Mise en page côte à côte) --- */
.actions-achat {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap; /* Évite que ça ne déborde sur les très petits écrans */
}

/* --- Sélecteur de Quantité Amélioré --- */
.selecteur-quantite-style {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-bg-alt);
    border-radius: 30px;
    background-color: #ffffff;
    overflow: hidden;
}

.qty-btn-produit {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 1.2rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn-produit:hover {
    background-color: var(--color-bg-alt);
}

.selecteur-quantite-style input {
    width: 40px;
    text-align: center;
    border: none;
    font-family: var(--font-sous-titre);
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-dark);
    outline: none;
    pointer-events: none; /* Empêche de cliquer dedans puisque les boutons +/- s'en chargent */
}

/* --- Bouton Ajouter au Panier --- */
.btn-ajouter-panier {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-family: var(--font-sous-titre);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1; /* Le bouton prendra tout l'espace restant à côté de la quantité */
    text-align: center;
}

.btn-ajouter-panier:hover {
    background-color: var(--color-accent-1);
    transform: translateY(-2px); /* Léger effet de soulèvement */
    box-shadow: 0 4px 10px rgba(150, 101, 119, 0.3);
}

/* Le conteneur des petites photos en dessous (Devenu Scrollable) */
.miniatures-container {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Autorise le défilement horizontal si ça dépasse */
    padding-bottom: 15px; /* Laisse de la place pour la barre d'ascenseur */

    /* Style de la barre d'ascenseur horizontale (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-2) transparent;
}

/* Style de la barre d'ascenseur horizontale (Chrome, Edge, Safari) */
.miniatures-container::-webkit-scrollbar {
    height: 6px; /* Rend la barre horizontale toute fine et discrète */
}
.miniatures-container::-webkit-scrollbar-track {
    background: transparent;
}
.miniatures-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-2);
    border-radius: 10px;
}
.miniatures-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-accent-1);
}

/* Style des miniatures */
.miniature {
    width: 100px;
    height: 100px;
    flex-shrink: 0; /* 💥 TRÈS IMPORTANT : Force l'image à rester à 100px même s'il y en a 15 ! */
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Effet au survol */
.miniature:hover {
    opacity: 1;
}

/* Effet quand la miniature est celle affichée en grand */
.miniature.active {
    opacity: 1;
    border-color: var(--color-accent-1);
}
/* L'image principale : Taille Fixe et Indéformable */
.image-principale-container {
    width: 100%;
    /* Force un format rectangle classique photo (4/3).
       Tu peux mettre 1 / 1 pour forcer un carré parfait ! */
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(58, 45, 39, 0.08);
    cursor: zoom-in; /* Change le curseur de la souris en petite loupe */
}

.image-principale-container img {
    width: 100%;
    height: 100%;
    /* La magie est ici : l'image remplit la boîte parfaitement sans s'écraser */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-principale-container img:hover {
    transform: scale(1.02); /* Petit effet de zoom au survol pour inciter au clic */
}


/* --- POPUP LIGHTBOX PLEIN ÉCRAN --- */
.lightbox {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 2000; /* Passe au-dessus du header et de tout le site */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 45, 39, 0.95); /* Fond dark de ta charte très opaque */
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh; /* 90% de la hauteur de l'écran maximum */
    object-fit: contain; /* En plein écran, on ne rogne RIEN, on montre l'image en entier */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-bg-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-accent-1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--color-accent-1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Exemple de style pour les nouveaux blocs */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-block {
    margin-bottom: 50px;
    line-height: 1.8;
    text-align: center; /* Ou left selon ta préférence */
}

h2 {
    font-family: 'Serif', Georgia, serif; /* Pour un côté élégant/esthète */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #333;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.engagement-highlight {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9; /* Un gris très léger pour faire ressortir la conclusion */
    font-style: italic;
    border-left: 4px solid #000;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #333;
}
.legal-content h1 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.legal-content h2 {
    margin-top: 30px;
    color: #000;
    font-size: 1.4em;
}
.legal-content h3 {
    margin-top: 20px;
    color: #444;
}
.legal-content ul {
    margin-bottom: 20px;
}
.legal-content li {
    margin-bottom: 8px;
}
.last-update {
    font-style: italic;
    color: #666;
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
/* Styles spécifiques pour la lisibilité des documents légaux */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #333;
}
.legal-content h1 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2em;
}
.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000;
    font-size: 1.4em;
}
.legal-content p {
    margin-bottom: 15px;
}
.legal-content a {
    color: #555;
    text-decoration: underline;
}

/* Ajustement du logo manuscrit dans la section Hero */
.hero-logo-container {
    margin-top: -20px; /* Remonte le logo vers le haut */
    margin-bottom: 10px; /* Espace réduit avec la tagline en dessous */
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 650px; /* Agrandit la taille du logo (précédemment 400px) */
    max-width: 90vw; /* Sécurité pour que ça ne dépasse pas sur petit écran */
    height: auto;
    transition: transform 0.3s ease;
}

/* Ajustement du titre "Bienvenue chez" pour réduire l'écart */
#hero h1 {
    margin-bottom: 5px;
    font-size: 1.5rem; /* Optionnel : réduit un peu la taille du texte au-dessus */
}
/* --- PAGE AUTHENTICATION --- */
.page-auth {
    background-color: #fdfaf5; /* Beige très clair typique de la DA */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: #ffffff;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    border-radius: 2px; /* Coins très peu arrondis pour le côté luxe */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.auth-logo {
    width: 180px;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-family: 'Playfair Display', serif; /* Ou votre police de titre */
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* --- FORMULAIRE --- */
.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #c5a059; /* Couleur dorée/bronze pour le focus */
}

.form-link-sm {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #333;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #1a1a1a;
    font-weight: bold;
    text-decoration: underline;
}

/* Conteneur parent pour aligner Panier et Profil sur la même ligne */
.actions-droite {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre le panier et l'icône de profil */
}

/* Style de l'icône circulaire */
.circle-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #333; /* Couleur du trait */
    border-radius: 50%;     /* Rend le div parfaitement rond */
    display: flex;
    align-items: center;    /* Centre l'icône verticalement */
    justify-content: center; /* Centre l'icône horizontalement */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Effet au survol (Inversion des couleurs) */
.circle-icon:hover {
    background-color: #333;
}

/* Suppression du soulignement sur le lien de l'icône */
.account-icon-link {
    text-decoration: none;
    display: block;
}
/* Force le header à prendre toute la largeur et espace les 3 blocs */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pousse le logo à gauche, menu au centre, actions à droite */
    width: 100%;
    padding: 10px 40px; /* Ajoute de l'espace sur les côtés */
    box-sizing: border-box;
}

/* Centre le menu principal */
.menu-principal {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0 auto; /* Force le centrage si besoin */
    padding: 0;
}

/* Aligne le panier et l'icône proprement à droite */
.actions-droite {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre panier et icône */
    min-width: 150px; /* Donne une base de largeur pour l'équilibre */
    justify-content: flex-end;
}

.circle-icon {
    width: 38px;
    height: 38px;
    border: 1.2px solid #333; /* Le cercle noir fin */
    border-radius: 50%;       /* Rend le div parfaitement rond */
    display: flex;
    align-items: center;      /* Centre verticalement l'émoji */
    justify-content: center;   /* Centre horizontalement l'émoji */
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.circle-icon span {
    font-size: 18px;          /* Taille de l'émoji */
    line-height: 1;           /* Évite les décalages de hauteur */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optionnel : petit effet au survol */
.circle-icon:hover {
    background-color: #f4f1ee; /* Teinte crème au survol */
    transform: scale(1.05);    /* Léger grossissement */
}

.account-icon-link {
    text-decoration: none;    /* Enlève le soulignement bleu du lien */
}

/* Bordure rouge si le pattern n'est pas respecté quand l'utilisateur a fini de taper */
input:not(:placeholder-shown):invalid {
    border-color: #e74c3c;
}

/* Bordure verte si c'est valide (facultatif) */
input:not(:placeholder-shown):valid {
    border-color: #93633c;
}

/* Par défaut, si le formulaire contient des erreurs ou des champs vides */
.auth-form:invalid .btn-submit {
    opacity: 0.5;             /* Rend le bouton plus clair */
    pointer-events: none;     /* Empêche de cliquer dessus */
    filter: grayscale(100%);  /* Le met en gris pour bien montrer qu'il est éteint */
    cursor: not-allowed;
}

/* Style normal quand tout est valide */
.btn-submit {
    transition: all 0.3s ease;
}
/* --- ASSISTANT IA --- */
.assistant-ia-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 45, 39, 0.08); /* Ombre douce de ta charte */
    border-top: 4px solid var(--color-accent-1); /* Barre décorative */
}

.assistant-header {
    text-align: center;
    margin-bottom: 25px;
}

.assistant-header h2 {
    color: var(--color-accent-1);
    margin-bottom: 10px;
}

/* Style du formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-accent-2);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--color-accent-1);
}

/* Boutons */
.btn-ia-submit, .btn-ia-reset {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-ia-submit {
    background-color: var(--color-accent-1);
    color: #fff;
    margin-top: 10px;
}

.btn-ia-submit:hover {
    background-color: var(--color-accent-2);
}

.btn-ia-reset {
    background-color: transparent;
    color: var(--color-accent-1);
    border: 2px solid var(--color-accent-1);
    margin-top: 20px;
}

.btn-ia-reset:hover {
    background-color: var(--color-accent-1);
    color: #fff;
}

/* Bulle de résultat IA */
.bulle-ia {
    background-color: #f9f7f6; /* Fond très léger inspiré du taupe */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent-1);
    line-height: 1.6;
}

.bulle-ia h3 {
    margin-top: 0;
    color: var(--color-accent-2);
    font-size: 18px;
}

/* Utilitaires d'affichage */
.hidden {
    display: none !important;
}

/* Animation de chargement */
.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-ia {
    text-align: center;
    color: var(--color-accent-2);
}

/* --- PAGE ERREUR 404 --- */
.page-erreur {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Prend au moins 60% de la hauteur de l'écran pour être bien centré */
    min-height: 60vh;
    padding: 40px 20px;
    background-color: #f9f7f6; /* Un fond très léger (cohérent avec le taupe) */
}

.erreur-contenu {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(58, 45, 39, 0.06);
    max-width: 500px;
    /* La petite ligne de couleur en haut pour l'élégance */
    border-top: 4px solid var(--color-accent-1);
}

.erreur-icone {
    font-size: 55px;
    margin-bottom: 20px;
    /* Adoucit l'émoji pour qu'il ne flashe pas trop */
    filter: grayscale(0.4) opacity(0.8);
}

.erreur-contenu h1 {
    color: var(--color-accent-1);
    font-size: 24px;
    margin-bottom: 15px;
}

.erreur-contenu p {
    color: var(--color-accent-2);
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-retour-boutique {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: var(--color-accent-1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-retour-boutique:hover {
    background-color: var(--color-accent-2);
    transform: translateY(-2px); /* Petit effet de soulèvement au survol */
}

/* À rajouter dans ton bloc /* --- PAGE ERREUR --- */ de ton style.css */
.erreur-code {
    display: inline-block;
    background-color: #f1efed;
    color: var(--color-accent-2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
/* Positionnement du parent */
.dropdown {
    position: relative;
}

/* Style du sous-menu */
.submenu {
    display: none; /* Masqué par défaut */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff; /* À adapter selon votre thème */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
    padding: 10px 0;
    list-style: none;
    border-radius: 4px;
}

/* Style des liens dans le sous-menu */
.submenu li a {
    color: #3a2d27;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    font-size: 0.9em;
}

.submenu li a:hover {
    background-color: #eae2db;
}

/* L'ACTION : Affichage au survol */
.dropdown:hover .submenu {
    display: block;
}

/* Optionnel : petite flèche */
.arrow {
    font-size: 0.7em;
    margin-left: 5px;
}
/* 1. On cache le sous-menu par défaut */
.submenu {
    display: none;
    position: absolute;
    top: 100%;      /* Se place juste en dessous du texte "Textiles" */
    left: 0;
    background-color: #eae2db;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;  /* Pour passer au-dessus des autres éléments */
    min-width: 160px;
    padding: 10px 0;
    list-style: none;
}

/* 2. On l'affiche UNIQUEMENT au survol du parent (.dropdown) */
.dropdown:hover .submenu {
    display: block;
}

/* Optionnel : Un petit effet de fondu pour faire plus pro */
.dropdown .submenu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: block; /* On peut utiliser block ici si on gère avec l'opacité */
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* Conteneur des boutons */
.produit-actions {
    display: flex;       /* Aligne les boutons sur une ligne */
    gap: 15px;           /* Espace de 15px entre les deux boutons */
    margin-top: 15px;    /* Espace au-dessus des boutons pour ne pas coller au prix */
    justify-content: center; /* Centre les boutons dans la carte */
}

/* Optionnel : Différencier les couleurs pour plus de clarté */
.btn-modifier {
    background-color: #e4e4e4; /* Gris pour modifier */
    flex: 1; /* Pour qu'ils fassent la même taille */
}

.btn-supprimer {
    background-color: #d9534f; /* Rouge pour supprimer */
    flex: 1;
}

/* Le conteneur parent qui contient le logo et le menu */
.main-nav {
    display: flex;
    align-items: center;        /* Aligne verticalement au centre */
    justify-content: space-between; /* Place le logo à gauche et le menu à droite */
    padding: 10px 5%;
}

/* On force la liste des menus à prendre l'espace central */
.menu-principal {
    display: flex;
    list-style: none;
    margin: 0 auto;             /* LA CLÉ : Centre le bloc horizontalement */
    padding: 0;
    gap: 30px;                  /* Espace entre Boutique et Compte */
}

/* Pour éviter que le logo ne décale tout, on peut donner une largeur fixe
   ou équilibrer avec un élément fantôme à droite */
.logo {
    flex: 1;                    /* Prend l'espace à gauche */
}

.menu-principal {
    flex: 2;                    /* Prend plus d'espace au centre */
    justify-content: center;    /* Centre les éléments à l'intérieur */
}

/* On ajoute un conteneur vide à droite si nécessaire pour un centrage parfait
   (ou on laisse les icônes de droite s'en charger) */

.barre-filtres {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne tout vers la gauche */
    gap: 20px;
    padding: 20px;
    background-color: #eae2db;
    border-radius: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Pour que ça reste propre sur mobile */
}

/* Style du nouveau bouton Ajouter à gauche */
.btn-ajouter-produit {
    background-color: #3a2d27; /* Ton marron foncé */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    white-space: nowrap; /* Évite que le texte passe à la ligne */
}

.btn-ajouter-produit:hover {
    background-color: #5a4a42;
}

.plus-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* On s'assure que la barre de recherche prend l'espace disponible si besoin */
#recherche-input {
    min-width: 250px;
}

/* --- SECTION HERO & TITRE --- */
.hero-boutique {
    text-align: center;
    padding: 30px 20px;
    background-color: #eae2db; /* Un fond très léger pour délimiter la zone admin */
    border-bottom: 1px solid #eee;
}

.hero-boutique h1 {
    font-family: 'Playfair Display', serif; /* Ou ta police de titre */
    color: #3a2d27;
    margin-bottom: 20px;
}

/* --- CONTENEUR DES BOUTONS --- */
.group-tabs {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacement entre les boutons */
    flex-wrap: wrap;
}

/* --- STYLE COMMUN DES BOUTONS ADMIN --- */
.btn-admin {
    padding: 10px 22px;
    border-radius: 4px; /* Un arrondi léger pour rester élégant */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- BOUTON SECONDAIRE (Ajouter / Modifier) --- */
.btn-secondary {
    background-color: #978b80; /* Beige doux */
    color: #3a2d27;
    border-color: #dcd3cc;
}

.btn-secondary:hover {
    background-color: #3a2d27; /* Inverse les couleurs au survol */
    color: #ffffff;
    border-color: #3a2d27;
    transform: translateY(-2px); /* Petit effet de levée */
}

/* --- BOUTON DANGER (Supprimer) --- */
.btn-danger {
    background-color: #ffffff;
    color: #b33a3a; /* Un rouge plus brique/élégant que le rouge vif */
    border-color: #b33a3a;
}

.btn-danger:hover {
    background-color: #b33a3a;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(179, 58, 58, 0.2);
    transform: translateY(-2px);
}

/* --- EFFET AU CLIC (POUR TOUS) --- */
.btn-admin:active {
    transform: translateY(0);
}

.barre-filtres {
    display: flex;
    flex-wrap: wrap;        /* Permet de passer à la ligne sur petit écran */
    justify-content: center; /* CENTRE horizontalement tous les blocs */
    align-items: center;     /* CENTRE verticalement tous les éléments */
    gap: 30px;              /* Espace généreux entre chaque groupe */
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    margin: 20px auto 40px auto;
    max-width: 1200px;      /* Optionnel : évite que la barre soit trop étirée */
}

/* On s'assure que chaque groupe ne s'écrase pas */
.filtre-groupe {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajustement spécifique pour le bouton Produit si besoin */
.btn-ajouter-produit {
    white-space: nowrap;
    /* Tes styles précédents... */
}

/* Uniformise la police et l'apparence */
.auth-form input,
.auth-form textarea {
    width: 100%;
    font-family: inherit; /* Utilise la même police que le reste du site */
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Évite que la case dépasse du cadre */
}

/* Empêche le redimensionnement horizontal qui casse le design */
.auth-form textarea {
    resize: vertical;
    min-height: 100px;
}

.parameter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.parameter-row .form-group {
    flex: 1;
}

.btn-add-param {
    background: none;
    border: 1px dashed #ccc;
    padding: 5px 15px;
    cursor: pointer;
    margin-top: 5px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-add-param:hover {
    background: #f0f0f0;
}
/* Le conteneur d'une ligne de paramètre */
.parameter-row {
    display: flex;
    align-items: flex-end; /* Aligne tous les éléments sur la ligne du bas */
    gap: 10px;
    margin-bottom: 15px;
}

/* On s'assure que les groupes Nom/Valeur ne prennent que l'espace nécessaire */
.parameter-row .form-group {
    flex: 1;
    margin-bottom: 0; /* Supprime les marges qui pourraient décaler la croix */
}

/* Style du bouton supprimer pour qu'il soit carré et propre */
.btn-remove {
    background-color: #fff1f1;
    color: #ff5c5c;
    border: 1px solid #ffdada;
    border-radius: 4px;
    width: 40px;
    height: 40px; /* Doit être proche de la hauteur de vos inputs */
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove:hover {
    background-color: #ff5c5c;
    color: white;
    border-color: #ff5c5c;
}

.btn-add-param {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border: 2px dashed #dcdcdc;
    background: transparent;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-add-param:hover {
    border-color: #b0b0b0;
    background-color: #f9f9f9;
}

.parameter-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 15px;
    /* On réserve l'espace de la croix même si elle n'est pas là */
    padding-right: 50px;
    position: relative;
}

.btn-remove {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    /* ... tes autres styles ... */
}

/* Zone de clic/dépôt principale */
.upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #ff5c5c; /* Rappel de la couleur de vos boutons de suppression */
    background-color: #fff8f8;
}

.upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.upload-inner p {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #444;
}

/* Grille d'aperçu des photos */
.preview-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* Boîte de chaque miniature */
.preview-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #f0f0f0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement l'image dans le carré */
}

.preview-item {
    position: relative; /* Permet de caler la croix par-dessus */
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bouton de suppression sur la photo */
.delete-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 77, 77, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.delete-photo-btn:hover {
    background: rgb(255, 0, 0);
    transform: scale(1.1);
}

/* --- ALERTES FLASH --- */
.conteneur-alertes {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.alerte {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: var(--font-texte, sans-serif);
    text-align: center;
    font-weight: 500;
    animation: fadeInDown 0.5s ease-out;
}

/* Style pour les succès (Vert doux) */
.alerte-succes {
    background-color: #e6f4ea;
    color: #1e4620;
    border: 1px solid #c8e6c9;
}

/* Style pour les erreurs (Rouge doux) */
.alerte-erreur {
    background-color: #fdeded;
    color: #5f2120;
    border: 1px solid #f8caca;
}

/* Petite animation d'apparition */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PAGE PROFIL --- */
.page-profil {
    background-color: var(--couleur-fond, #FBF9F6);
    padding: 40px 20px;
    min-height: 80vh;
}

.profil-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profil-header {
    text-align: center;
    margin-bottom: 30px;
}

.btn-deconnexion {
    display: inline-block;
    margin-top: 10px;
    color: #e74c3c;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* --- ONGLETS --- */
.profil-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-family: var(--font-texte);
    cursor: pointer;
    font-weight: 500;
    color: #888;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--couleur-texte, #333);
}

.tab-btn.active {
    color: var(--couleur-accent, #B89961);
    border-bottom: 3px solid var(--couleur-accent, #B89961);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* --- CARTES DE COMMANDES --- */
.commande-carte {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 20px;
}

.cmd-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.cmd-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* --- BADGES STATUT --- */
.cmd-statut {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.statut-attente { background-color: #fff3cd; color: #856404; }
.statut-cours { background-color: #cce5ff; color: #004085; }
.statut-livree { background-color: #d4edda; color: #155724; }
.statut-annulee { background-color: #f8d7da; color: #721c24; }

.btn-sm {
    background-color: var(--couleur-texte, #333);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Force le body à faire au minimum 100% de la hauteur de l'écran */
    margin: 0; /* Retire les marges par défaut du navigateur */
}

main {
    flex: 1; /* C'est la magie : le main s'étire au maximum et pousse le footer tout en bas ! */
}

main {
    flex: 1 0 auto; /* Le "0 auto" empêche le contenu de déborder sous le footer */
}

body {
    /* Garde tes couleurs et tes polices actuelles ici... */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* --- BANDEAU RUPTURE DE STOCK --- */
.conteneur-image-stock {
    position: relative; /* Très important : c'est le cadre de référence pour le bandeau */
    overflow: hidden;   /* Empêche le bandeau de déborder de l'image */
    width: 100%;
}

.bandeau-rupture {
    position: absolute;
    top: 50%;
    left: 50%;
    /* On le centre et on l'incline à 45 degrés */
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: rgba(179, 58, 58, 0.9); /* Ton rouge brique, légèrement transparent */
    color: white;
    padding: 10px 0;
    width: 150%; /* Très large pour que la diagonale touche bien les bords */
    text-align: center;
    font-family: var(--font-sous-titre);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: none; /* Magique : permet à la souris de "traverser" le texte si on veut cliquer sur la photo ! */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Optionnel : un effet noir & blanc sur la photo quand c'est hors stock */
.image-epuisee {
    filter: grayscale(80%) opacity(0.8);
    transition: filter 0.3s ease;
}

/* =========================================
   PAGE CHECKOUT / PAIEMENT
   ========================================= */
.checkout-main {
    padding: 60px 5%;
    background-color: var(--color-bg-light);
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-container h1 {
    font-family: var(--font-titre);
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-summary h2, .checkout-payment h2 {
    font-family: var(--font-sous-titre);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-accent-2);
    padding-bottom: 10px;
}

.summary-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(58, 45, 39, 0.03);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-bg-light);
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    font-family: var(--font-sous-titre);
    font-weight: 600;
    font-size: 1.2rem;
}

.total-amount {
    color: var(--color-accent-1);
    font-size: 1.4rem;
}

.payment-help {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Boutons de paiement universels */
.btn-payment {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sous-titre);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-stripe {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-stripe:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-paypal {
    background-color: #ffc439;
    color: #003087;
}

.btn-paypal:hover {
    background-color: #f4b41a;
    transform: translateY(-2px);
}

@media (max-width: 800px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}