﻿/**
 * Karolyne Créations — Feuille de styles principale
 * Auteur  : Karolyne Rouaud / Karolyne Créations
 * Site    : https://karolyne-creations.fr
 * Dépôt   : INPI — 2026
 */

/* Import Google Fonts déjà dans HTML */

/* Sections masquées par défaut — état contrôlé par sections-visibility.php */
#avis { display: none; }

/* Variables pour cohérence */
:root {
    --primary-color: #7C5CBF; /* Violet principal */
    --secondary-color: #A07ED4; /* Violet clair */
    --accent-color: #EDE0FF; /* Lavande pâle */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #FAF8FF;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.2);
}

/* filigramme en maintenance */
.filigrane {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 8rem;
  font-weight: bold;
  color: rgba(220, 50, 50, 0.15);
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  white-space: nowrap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 185px;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    padding-top: 185px;
}

input, textarea, select {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Header fixe */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(124, 92, 191, 0.95); /* Semi-transparent */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem 0.4rem 1rem 0.4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
    flex: 0 0 auto;
}

.logo-nav {
    height: 115px;
    width: auto;
    display: block;
    /* Filet de sécurité : si l'image ne charge pas, le texte alternatif (SEO/accessibilité)
       reste petit et discret au lieu de s'afficher en énorme texte de lien violet souligné. */
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-menu .nav-action {
    margin-left: 0.5rem;
}

.admin-header-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1380px) {
    .admin-btn-label { display: none; }
    .admin-header-btn { padding: 0.6rem 0.75rem; }
}

/* Écrans 14 pouces et tablettes : menu hamburger */
@media (max-width: 1450px) {
    .hamburger { display: flex !important; }
    .admin-header-btn { display: none !important; }
    #nav-li-admin-mobile { display: list-item !important; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 82px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 0.95rem; }
    #panier-icon {
        position: fixed !important;
        top: 16px;
        right: 60px;
        z-index: 1100 !important;
        left: auto !important;
        display: flex !important;
        align-items: center;
        gap: 0.3rem;
        color: white;
        font-size: 1.2rem;
    }
}

.nav-menu a:hover {
    color: var(--accent-color);
}

#panier-icon {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
}

#panier-count {
    background: var(--secondary-color);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Navbar mobile : panier + hamburger toujours visibles */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sélecteur de langue */
.lang-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-right: 1rem;
}
.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, opacity 0.15s;
    opacity: 0.55;
    line-height: 0;
}
.lang-flag {
    width: 28px;
    height: 19px;
    border-radius: 3px;
    display: block;
    pointer-events: none;
}
.lang-btn:hover { opacity: 0.85; transform: scale(1.1); }
.lang-btn.lang-active { border-color: #fff; opacity: 1; transform: scale(1.08); }

/* Hamburger pour mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    min-height: calc(100vh - 147px);
    background: linear-gradient(135deg, #4A2080 0%, #7C5CBF 40%, #9B7AD8 70%, #4A2080 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 2rem 1rem 1.5rem;
    scroll-margin-top: 147px;
}

.hero-overlay {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem,3.5vw,2.8rem);
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    text-align: center;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}
.hero ul {
    font-size: 0.88rem;
    margin: 0.2rem 0 0.4rem 1rem;
    line-height: 1.5;
}
.hero li { margin-bottom: 0.2rem; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hidden {
    display: none !important;
}

.admin-gallery-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-status {
    color: var(--text-light);
    font-size: 0.95rem;
}

.admin-login-card {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(124,92,191,0.25);
    padding: 1.5rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.admin-login-card .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-login-card label {
    font-weight: 500;
    color: var(--primary-color);
}

.admin-login-card input {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    width: 100%;
}

.admin-login-card input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(210,105,30,0.12);
}

.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-password-wrap input {
    padding-right: 2.8rem !important;
}
.toggle-password-btn {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}
.toggle-password-btn:hover {
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-locked {
    background: rgba(255,255,255,0.95);
    border: 1px dashed var(--primary-color);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Sections générales */
.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.total-articles-count {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #999;
    vertical-align: middle;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Grille produits */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.produit {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    min-height: 100%;
}

.produit:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.produit img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f5f0fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.produit:hover img {
    transform: scale(1.05);
}

.produit h3 {
    font-family: 'Playfair Display', serif;
    margin: 1rem 0;
    color: var(--primary-color);
}

.produit p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Encart description — hauteur réservée fixe */
.produit .desc {
    min-height: 4.5rem;
    max-height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0.8rem;
}

.produit .prix {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.produit button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.produit button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: auto;
    padding-top: 0.6rem;
}
.product-actions .add-cart,
.product-actions .btn-supprimer {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: opacity 0.2s;
    font-weight: 600;
}
.product-actions .add-cart         { background: var(--secondary-color); color: white; }
.product-actions .btn-supprimer     { background: #e74c3c; color: white; }
.product-actions .btn-add-photo     { background: #5a7a9e; color: white; flex: 0 0 auto; padding: 0.6rem 0.8rem; font-size: 0.78rem; border-radius: 20px; border: none; cursor: pointer; font-weight: 600; }
.product-actions .btn-dupliquer     { background: #6c757d; color: white; flex: 0 0 auto; padding: 0.6rem 0.75rem; font-size: 0.85rem; border-radius: 20px; border: none; cursor: pointer; }
.product-actions .add-cart:hover    { opacity: 0.88; }
.product-actions .btn-supprimer:hover { opacity: 0.88; }
.product-actions .btn-add-photo:hover { opacity: 0.88; }
.product-actions .btn-dupliquer:hover { opacity: 0.88; }
.product-actions .edit-desc { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 0.5rem 0.8rem; border-radius: 20px; cursor:pointer; }
.desc-edit { width: 100%; padding: 0.6rem; border-radius: 8px; border:1px solid #ddd; resize:vertical; margin-top:0.5rem; }
.save-desc, .cancel-desc { padding: 0.5rem 0.8rem; border-radius: 20px; border:none; cursor:pointer; }
.save-desc { background: var(--secondary-color); color: white; }
.cancel-desc { background: #eee; color: #333; }

/* Rupture de stock */
.produit-rupture {
    opacity: 0.75;
}
.rupture-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 2.2rem;
    font-weight: bold;
    color: rgba(200, 30, 30, 0.55);
    pointer-events: none;
    user-select: none;
    z-index: 2;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(255,255,255,0.5);
}
.rupture-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 600;
    cursor: pointer;
    margin: 0.4rem auto 0.2rem;
    user-select: none;
    -webkit-user-select: none;
}
.rupture-checkbox {
    accent-color: #c0392b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ── Filtres catégories ─────────────────────────────────────── */
.filtres-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.boutique-search-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}
#recherche-boutique {
    width: 100%;
    max-width: 420px;
    padding: 10px 18px;
    border: 2px solid #d4b8a8;
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}
#recherche-boutique:focus { border-color: var(--primary-color); }
.recherche-aucun { color: #999; font-style: italic; margin-top: 1rem; }
.filtre-btn {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 24px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
}
.filtre-btn:hover { background: var(--primary-color); color: #fff; }
.filtre-btn.filtre-actif { background: var(--primary-color); color: #fff; font-weight: 600; }

/* ── Catégorie select (admin) ───────────────────────────────── */
.categorie-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    margin: 0.3rem 0;
    justify-content: center;
}
.categorie-edit-label { color: #888; white-space: nowrap; }
.categorie-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--primary-color);
}

/* ── Carousel photos multiples ──────────────────────────────── */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.carousel img {
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 250px;
    object-fit: contain;
    background: #f5f0fa;
    display: block;
    transition: opacity 0.2s;
}
.car-prev, .car-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.car-prev { left: 5px; }
.car-next { right: 5px; }
.car-prev:hover, .car-next:hover { background: rgba(0,0,0,0.6); }
.car-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.car-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: background 0.2s;
    cursor: default;
}
.car-dot.active { background: #fff; }

/* ── Fiche produit modale ────────────────────────────────────── */
.mp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mp-overlay.hidden { display: none; }
.mp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
}
.mp-panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 72px rgba(0,0,0,.35);
    animation: mpIn .22s ease;
}
@keyframes mpIn {
    from { opacity:0; transform:scale(.95); }
    to   { opacity:1; transform:scale(1); }
}
.mp-close {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(0,0,0,.08);
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    color: #555;
    transition: background .15s;
}
.mp-close:hover { background: rgba(0,0,0,.18); }

.mp-body {
    display: flex;
    gap: 0;
}

/* ─ Galerie gauche ─ */
.mp-galerie {
    position: relative;
    flex: 0 0 50%;
    background: #f5ede6;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mp-galerie img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.mp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.8);
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    transition: background .15s;
    z-index: 5;
}
.mp-nav:hover { background: #fff; }
.mp-prev { left: 8px; }
.mp-next { right: 8px; }
.mp-dots {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 6px;
}
.mp-dots .mp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: background .15s;
}
.mp-dots .mp-dot.active { background: #fff; }

/* ─ Infos droite ─ */
.mp-info {
    flex: 1;
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mp-ref {
    font-size: 0.78rem;
    color: #9b7ad8;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}
.mp-nom {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c1810;
    margin: 0;
    line-height: 1.25;
}
.mp-desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    white-space: pre-line;
}
.mp-prix-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.mp-prix-ancien {
    font-size: 1.1rem; color: #999; text-decoration: line-through;
    font-family: 'Playfair Display', serif;
}
.mp-prix {
    font-size: 1.75rem;
    font-weight: 700;
    color: #7C5CBF;
    margin: 0;
    font-family: 'Playfair Display', serif;
}
.mp-prix.is-promo { color: #e05252; }
.mp-stock-info {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
}
.mp-stock-info.mp-rupture  { color: #dc3545; }
.mp-stock-info.mp-stock-low { color: #e67e22; }
.mp-actions { margin-top: 6px; }
.mp-actions .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 12px; }

/* Bouton "Voir le détail" sur les cartes produit */
.btn-voir-detail {
    display: block;
    width: 100%;
    margin: 6px 0 2px;
    background: transparent;
    border: 1.5px solid #9b7ad8;
    color: #7C5CBF;
    border-radius: 20px;
    padding: 7px 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-voir-detail:hover {
    background: #7C5CBF;
    color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
    .mp-body { flex-direction: column; }
    .mp-galerie { flex: none; border-radius: 18px 18px 0 0; min-height: 220px; }
    .mp-galerie img { max-height: 260px; }
    .mp-info { padding: 24px 20px 24px; }
    .mp-nom { font-size: 1.2rem; }
}
/* ─────────────────────────────────────────────────────────────── */

/* ── Avis clients ───────────────────────────────────────────── */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}
.avis-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 2px 10px rgba(124,92,191,.1);
    text-align: center;
}
.avis-stars {
    color: #f5a623;
    font-size: 1.35rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.avis-commentaire {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin: 0.3rem 0 0.6rem;
    line-height: 1.4;
}
.avis-meta {
    font-size: 0.78rem;
    color: #aaa;
}
.avis-reponse-admin {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f5f0ff;
    border-left: 3px solid #7C5CBF;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: #555;
}
.avis-vide {
    text-align: center;
    color: #aaa;
    font-style: italic;
    font-size: 0.95rem;
}
.avis-admin-panel {
    max-width: 800px; margin: 2rem auto 0; background: #fff;
    border-radius: 14px; padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.avis-admin-panel h4 { color: var(--primary-color); margin-bottom: 1rem; }
.avis-mod-card {
    border: 1px solid #e0d6f5; border-radius: 10px; padding: 12px 16px;
    margin-bottom: 10px; background: #faf8ff;
}
.avis-mod-card.valide  { border-color: #b7e4c7; background: #f0faf4; }
.avis-mod-card.attente { border-color: #f0c040; background: #fffdf0; }
.avis-mod-nom  { font-weight: 700; font-size: .9rem; }
.avis-mod-note { color: #f0b429; margin-left: 8px; }
.avis-mod-texte { font-size: .88rem; color: #555; margin: 6px 0; }
.avis-mod-date  { font-size: .78rem; color: #aaa; }
.avis-mod-btns  { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.avis-mod-btn   {
    padding: 5px 14px; border: none; border-radius: 6px;
    font-size: .8rem; font-weight: 600; cursor: pointer;
}
.avis-mod-btn-ok  { background: #27ae60; color: #fff; }
.avis-mod-btn-del { background: #dc3545; color: #fff; }
.avis-mod-btn-ok:hover  { opacity: .85; }
.avis-mod-btn-del:hover { opacity: .85; }

/* ── Formulaire avis ────────────────────────────────────────── */
.avis-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.2rem 3rem;
    box-shadow: 0 4px 18px rgba(124,92,191,.12);
    max-width: 820px;
    margin: 2rem auto 0;
    text-align: center;
}
.avis-form-titre {
    font-size: 1.2rem;
    color: #7C5CBF;
    margin-bottom: 1.2rem;
    font-family: Georgia, serif;
}
.avis-etoiles-wrap {
    margin-bottom: 1.2rem;
}
.avis-form-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.avis-star {
    font-size: 2.4rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
    user-select: none;
    line-height: 1;
}
.avis-star:hover,
.avis-star.survol {
    color: #f5c842;
    transform: scale(1.15);
}
.avis-star.active {
    color: #f5a623;
}
.avis-etoiles-hint {
    font-size: 0.82rem;
    color: #bbb;
    height: 18px;
    margin: 0;
    transition: color 0.15s;
}
.avis-champs-row {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.avis-input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e0d0c0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.avis-input:focus {
    border-color: #7C5CBF;
}
.avis-textarea {
    width: 100%;
    max-width: 600px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0d0c0;
    border-radius: 8px;
    font-size: 0.93rem;
    font-family: inherit;
    color: #333;
    resize: vertical;
    outline: none;
    margin-bottom: 1.4rem;
    transition: border-color 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.avis-textarea:focus {
    border-color: #7C5CBF;
}
.avis-submit-btn {
    background: #7C5CBF;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.75rem 2.2rem;
    font-size: 1rem;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.avis-submit-btn:hover:not(:disabled) {
    background: #7a3c10;
    transform: translateY(-1px);
}
.avis-submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.avis-merci {
    margin-top: 1rem;
    color: #198754;
    font-size: 0.95rem;
}
.avis-merci.hidden { display: none; }

/* Édition réf + prix combinés en mode admin */
.ref-prix-edit-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(124,92,191,0.05);
    border-radius: 10px;
    border: 1px solid rgba(124,92,191,0.15);
}
.ref-prix-save {
    grid-column: 1 / -1;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2px;
}
.prix-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
.prix-edit-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}
.prix-edit-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124,92,191,0.12);
}
.prix-edit-currency {
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
}


/* Référence produit — mode visiteur */
.produit-ref {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: -0.4rem 0 0.6rem;
    letter-spacing: 0.04em;
}
.produit-ref .ref-label {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Référence produit — mode admin (dans .ref-prix-edit-wrapper) */
.ref-edit-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    white-space: nowrap;
    text-align: right;
}
.ref-edit-input {
    width: 100%;
    padding: 0.35rem 0.6rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}
.ref-edit-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124,92,191,0.12);
}

/* Stock produit — mode visiteur */
.produit-stock {
    font-size: 0.88rem;
    font-weight: 600;
    color: #27ae60;
    margin: 0.2rem 0 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.produit-stock strong {
    font-size: 1rem;
    color: var(--primary-color);
}
.rupture-stock-txt {
    color: #c0392b;
}
.retour-stock-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 6px 0 4px;
}
.retour-stock-email {
    padding: 6px 12px;
    border: 1px solid #d4b8a8;
    border-radius: 20px;
    font-size: 0.82rem;
    width: 160px;
    outline: none;
}
.retour-stock-btn {
    padding: 6px 12px;
    background: #7C5CBF;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}
.retour-stock-btn:hover { background: #7a4f35; }
.retour-stock-msg { font-size: 0.78rem; width: 100%; text-align: center; }

/* Stock produit — mode admin */
.stock-edit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.stock-edit-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    white-space: nowrap;
}
.stock-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.stock-edit-input {
    width: 60px;
    padding: 0.35rem 0.4rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}
.stock-edit-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124,92,191,0.12);
}
.stock-edit-save {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Style pour le bouton supprimer dans la galerie */
#delete-img { background: #c0392b; color: white; border: none; padding: 0.6rem 0.8rem; border-radius: 8px; cursor: pointer; }
#delete-img:hover { background: #a93226; }

.gallery-meta { display:flex; flex-direction:column; gap:0.5rem; margin-top:0.8rem; width:100%; max-width:600px; }
.gallery-meta input#gallery-title { padding:0.6rem; border-radius:8px; border:1px solid #ddd; }
.gallery-meta textarea#gallery-desc { padding:0.6rem; border-radius:8px; border:1px solid #ddd; resize:vertical; min-height:80px; }
.gallery-meta .meta-actions { display:flex; gap:0.5rem; justify-content:flex-end; }
.gallery-meta .btn { padding:0.5rem 0.8rem; border-radius:8px; }

/* Intro de section (boutique) */
.section-intro {
    text-align: center;
    max-width: 750px;
    margin: -8px auto 20px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* À propos et contact */
.about-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

#contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Lignes du panier */
#panier-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
#panier-items li {
    list-style: none;
}
.panier-item {
    display: grid;
    grid-template-columns: 90px 1fr 40px 80px 56px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0e8de;
    font-size: 0.9rem;
}
.panier-header {
    display: grid;
    grid-template-columns: 90px 1fr 40px 80px 56px;
    gap: 0.5rem;
    padding: 0.4rem 0 0.6rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.panier-item-ref {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.panier-item-nom {
    color: var(--text-dark);
    font-weight: 500;
}
.panier-item-qte {
    text-align: center;
    background: var(--accent-color);
    border-radius: 20px;
    padding: 0.2rem 0.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}
.panier-item-prix {
    text-align: right;
    font-weight: 700;
    color: var(--secondary-color);
}
.panier-item-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}
.panier-item-moins,
.panier-item-suppr {
    width: 26px;
    height: 26px;
    border: 1px solid #e8d5c4;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.panier-item-moins:hover,
.panier-item-suppr:hover {
    background: var(--accent-color);
}
.panier-item-suppr {
    color: #dc3545;
    border-color: #f3c6cb;
}
@media (max-width: 480px) {
    .panier-item {
        grid-template-columns: 60px 1fr 32px 60px 50px;
        font-size: 0.78rem;
    }
    .panier-item-moins,
    .panier-item-suppr {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
}

/* ===================== FACTURE ===================== */
.facture-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 92%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}
.facture-titre {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.facture-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}
.facture-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
.facture-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.facture-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.facture-field input {
    padding: 0.7rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.facture-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(210,105,30,0.1);
}
.facture-field-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.8rem;
}
.facture-field-row label {
    display: block;
    margin-bottom: 4px;
}
.facture-field-row input {
    width: 100%;
    margin-top: 0;
}
.facture-field-row > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.facture-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1rem;
}
.facture-actions .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
}

/* Document facture */
#facture-document {
    border: 1px solid #e8ddd3;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    background: #fff;
}
.facture-header-doc {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}
.facture-vendeur {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
}
.facture-vendeur strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.facture-meta {
    text-align: right;
    font-size: 0.88rem;
}
.facture-num {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}
.facture-acheteur {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
    color: var(--text-dark);
}
.facture-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}
.facture-table thead tr {
    background: var(--primary-color);
    color: white;
}
.facture-table th {
    padding: 0.6rem 0.7rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.facture-table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #f0e8de;
    color: var(--text-dark);
}
.facture-table tbody tr:nth-child(even) {
    background: #fffaf5;
}
.facture-total-row td {
    padding-top: 0.8rem;
    font-size: 1rem;
    border-bottom: none;
}
.facture-paiement-info {
    background: #fff8f0;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 1.2rem 0 0.8rem;
    line-height: 1.6;
}
.facture-paiement-wero {
    background: linear-gradient(135deg, #f3f0ff 0%, #ece7ff 100%);
    border: 2px solid #7c5cbf;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin: 1.2rem 0 0.8rem;
}
.wero-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #5a3e9b;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.wero-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
    counter-reset: wero-step;
}
.wero-steps li {
    counter-increment: wero-step;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.87rem;
    color: #444;
    margin-bottom: 0.45rem;
    line-height: 1.5;
}
.wero-steps li::before {
    content: counter(wero-step);
    background: #7c5cbf;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.wero-numero-box {
    background: white;
    border: 2px solid #7c5cbf;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.4rem 0 0.8rem;
    gap: 0.5rem;
}
.wero-numero-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5a3e9b;
    letter-spacing: 0.04em;
}
.wero-copier-btn {
    background: #7c5cbf;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.wero-copier-btn:hover { background: #5a3e9b; }
.wero-ref-box {
    font-size: 0.83rem;
    color: #555;
    background: white;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.9rem;
    border: 1px solid #d9d0f0;
}
.wero-qr-bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}
.wero-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    border: 3px solid #f5f0ff;
    display: block;
}
.wero-qr-label {
    font-size: 0.82rem;
    color: #7c5cbf;
    font-weight: 600;
    text-align: center;
}
.qrcode-bandeau {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background-color: var(--primary-color) !important;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    width: 100%;
}
.qrcode-bandeau img {
    flex-shrink: 0;
    border-radius: 8px;
}
.qrcode-titre {
    font-weight: 700;
    color: white;
    font-size: 1rem;
    margin: 0;
}
.qrcode-url {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 0;
}
@media (max-width: 600px) {
    .qrcode-bandeau {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.8rem;
        text-align: center;
    }
}

.facture-footer-doc {
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0e8de;
}

@media (max-width: 600px) {
    .facture-modal-content { padding: 1.4rem; }
    .facture-header-doc { flex-direction: column; gap: 0.8rem; }
    .facture-meta { text-align: left; }
    .facture-field-row { grid-template-columns: 1fr 1fr; }
}
/* ===================== FIN FACTURE ===================== */

/* ===== BARRE ADMIN ===== */
.nav-row-admin {
    background: rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 6px 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.15);
}
.nav-admin-bar-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    transition: background .2s;
    white-space: nowrap;
}
.nav-admin-bar-btn:hover {
    background: rgba(255,255,255,.28);
}

/* ===== DEUXIÈME LIGNE NAV ===== */
.nav-row-2 {
    background: linear-gradient(90deg, #5a3d99 0%, #7C5CBF 50%, #5a3d99 100%);
    text-align: center;
    padding: 7px 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.nav-sm-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 50px;
    padding: 6px 22px;
    font-size: .88rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .3px;
    transition: .2s;
}
.nav-sm-btn span { font-weight: 700; }
.nav-sm-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.6);
}

/* ===== COMMANDE SUR MESURE (MODAL) ===== */
.sm-modal-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(30,15,60,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.sm-modal-box {
    background: #faf8ff; border-radius: 18px;
    padding: 28px 28px 24px; max-width: 680px; width: 100%;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 12px 48px rgba(124,92,191,.35);
    position: relative;
}
.sm-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: #aaa; line-height: 1;
}
.sm-modal-close:hover { color: #7C5CBF; }
.sm-modal-titre { margin: 0 0 4px; font-size: 1.3rem; color: #5a3d99; }
.sm-modal-sous  { margin: 0 0 18px; font-size: .9rem; color: #888; }

.sm-intro { text-align:center; color:#555; font-size:1.05rem; margin:-4px 0 28px; max-width:600px; margin-left:auto; margin-right:auto; }
.sm-form-wrap { max-width:740px; margin:0 auto; display:flex; flex-direction:column; gap:24px; }
.sm-bloc { background:#fff; border-radius:14px; padding:22px 24px; box-shadow:0 2px 12px rgba(124,92,191,.10); }
.sm-bloc-titre { margin:0 0 14px; font-size:1rem; font-weight:700; color:#7C5CBF; }
.sm-optionnel { font-weight:400; font-size:.82rem; color:#999; }

/* Types de bijoux */
.sm-types { display:flex; flex-wrap:wrap; gap:10px; }
.sm-type-btn {
    border:2px solid #e0d4f7; border-radius:50px; padding:8px 18px;
    background:#faf8ff; color:#5a3d99; font-size:.9rem; cursor:pointer;
    transition:.2s;
}
.sm-type-btn:hover, .sm-type-btn.actif {
    background:#7C5CBF; color:#fff; border-color:#7C5CBF;
}

/* Palette couleurs */
.sm-palette { display:flex; flex-wrap:wrap; gap:10px; }
.sm-couleur {
    width:36px; height:36px; border-radius:50%; border:3px solid transparent;
    cursor:pointer; transition:.15s; padding:0;
}
.sm-couleur:hover { transform:scale(1.18); }
.sm-couleur.actif { border-color:#5a3d99; box-shadow:0 0 0 2px #fff,0 0 0 4px #7C5CBF; }
.sm-couleurs-choisies { margin:10px 0 0; font-size:.85rem; color:#7C5CBF; min-height:20px; }

/* Occasions */
.sm-occasions { display:flex; flex-wrap:wrap; gap:10px; }
.sm-occ-btn {
    border:2px solid #e0d4f7; border-radius:50px; padding:7px 16px;
    background:#faf8ff; color:#5a3d99; font-size:.88rem; cursor:pointer;
    transition:.2s;
}
.sm-occ-btn:hover, .sm-occ-btn.actif {
    background:#9B7AD8; color:#fff; border-color:#9B7AD8;
}

/* Champs détails */
.sm-details-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.sm-field { display:flex; flex-direction:column; gap:5px; }
.sm-field-full { grid-column:1 / -1; }
.sm-label { font-size:.82rem; font-weight:600; color:#666; }
.sm-input {
    border:1.5px solid #d5c8f0; border-radius:8px; padding:9px 12px;
    font-size:.95rem; color:#333; background:#faf8ff; outline:none;
    transition:.2s;
}
.sm-input:focus { border-color:#7C5CBF; background:#fff; }
.sm-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237C5CBF' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
.sm-textarea { resize:vertical; min-height:90px; font-family:inherit; }

/* Photo upload */
.sm-photo-wrap { display:flex; align-items:center; gap:12px; }
.sm-photo-btn {
    border:2px dashed #c4b0e8; border-radius:8px; padding:8px 16px;
    background:transparent; color:#7C5CBF; cursor:pointer; font-size:.9rem;
    transition:.2s; white-space:nowrap;
}
.sm-photo-btn:hover { background:#f0e8ff; border-color:#7C5CBF; }
.sm-photo-nom { font-size:.82rem; color:#888; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:200px; }
.sm-photo-preview { max-width:120px; max-height:90px; border-radius:8px; margin-top:8px; border:2px solid #e0d4f7; }

/* Bouton envoi */
.sm-submit-btn {
    background:linear-gradient(135deg,#7C5CBF,#9B7AD8); color:#fff;
    border:none; border-radius:50px; padding:14px 40px;
    font-size:1.05rem; font-weight:700; cursor:pointer;
    box-shadow:0 4px 16px rgba(124,92,191,.35); transition:.2s;
}
.sm-submit-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(124,92,191,.45); }
.sm-submit-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.sm-sous-btn { font-size:.82rem; color:#aaa; margin:8px 0 0; }
.sm-merci { background:#e8f5e9; border:1.5px solid #a5d6a7; border-radius:10px; padding:14px 20px; color:#2e7d32; font-weight:600; text-align:center; margin:0; }

/* Admin panel */
.sm-admin-panel {
    max-width:860px; margin:32px auto 0;
    background:#fff; border-radius:14px; padding:24px;
    box-shadow:0 2px 14px rgba(124,92,191,.12);
    border-top:4px solid #7C5CBF;
}
.sm-admin-panel h4 { margin:0 0 18px; color:#7C5CBF; font-size:1.1rem; }
.sm-admin-card {
    border:1.5px solid #e8e0f5; border-radius:10px; padding:16px;
    margin-bottom:14px; background:#faf8ff;
}
.sm-admin-card-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.sm-admin-card-nom { font-weight:700; color:#5a3d99; }
.sm-admin-card-date { font-size:.78rem; color:#aaa; }
.sm-admin-card-infos { font-size:.88rem; color:#555; line-height:1.7; margin-bottom:10px; }
.sm-admin-badge {
    display:inline-block; font-size:.75rem; font-weight:700; padding:2px 10px;
    border-radius:50px;
}
.sm-badge-attente  { background:#fff3e0; color:#e65100; }
.sm-badge-acceptee { background:#e8f5e9; color:#2e7d32; }
.sm-badge-refusee  { background:#fce4ec; color:#c62828; }
.sm-admin-reponse { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.sm-admin-reponse textarea {
    flex:1; min-width:200px; border:1.5px solid #d5c8f0; border-radius:8px;
    padding:8px 10px; font-size:.88rem; font-family:inherit; resize:vertical;
}
.sm-btn-accepter { background:#2e7d32; color:#fff; border:none; border-radius:6px; padding:7px 14px; cursor:pointer; font-size:.85rem; }
.sm-btn-refuser  { background:#c62828; color:#fff; border:none; border-radius:6px; padding:7px 14px; cursor:pointer; font-size:.85rem; }
.sm-btn-suppr    { background:#888;    color:#fff; border:none; border-radius:6px; padding:7px 14px; cursor:pointer; font-size:.85rem; }

@media (max-width:600px) {
    .sm-details-grid { grid-template-columns:1fr; }
    .sm-field-full   { grid-column:1; }
}

/* ===== MODAL MARCHÉS ===== */
.marches-modal-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(30,15,60,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.marches-modal-box {
    background: #faf8ff; border-radius: 18px;
    padding: 28px 28px 24px; max-width: 560px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 12px 48px rgba(124,92,191,.35);
    position: relative;
}
.marches-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: #aaa; line-height: 1;
}
.marches-modal-close:hover { color: #7C5CBF; }
.marches-modal-titre { margin: 0 0 4px; font-size: 1.3rem; color: #5a3d99; }
.marches-modal-sous  { margin: 0 0 16px; font-size: .88rem; color: #999; }

.marches-liste {
    display: flex; flex-direction: column; gap: 12px;
}
.marche-card {
    background: #fff; border-radius: 12px; padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(124,92,191,.10);
    border-left: 4px solid var(--primary-color, #7C5CBF);
    position: relative;
}
.marche-date {
    font-size: .95rem; font-weight: 700; color: var(--primary-color, #7C5CBF);
    margin-bottom: 4px;
}
.marche-lieu     { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.marche-ville    { font-size: .88rem; color: #888; margin-bottom: 3px; }
.marche-horaires { font-size: .85rem; color: #555; }
.marche-notes    { font-size: .8rem; color: #aaa; margin-top: 5px; font-style: italic; }
.marches-vide    { color: #aaa; text-align: center; padding: 1.2rem 0; font-style: italic; }
.marche-admin-btns {
    position: absolute; top: 8px; right: 8px; display: flex; gap: 4px;
}
.marche-btn-edit, .marche-btn-del {
    background: none; border: none; cursor: pointer; font-size: .9rem; opacity: .55;
}
.marche-btn-edit:hover { opacity: 1; color: var(--primary-color); }
.marche-btn-del:hover  { opacity: 1; color: #dc3545; }

.marches-admin {
    margin-top: 1.5rem; background: #fff; border-radius: 12px;
    padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border-top: 3px solid var(--primary-color);
}
.marches-admin h4 { color: var(--primary-color); margin: 0 0 14px; }
.marche-form { display: flex; flex-direction: column; gap: 10px; }
.marche-form-row { display: flex; flex-direction: column; gap: 4px; }
.marche-form-row label { font-size: .82rem; font-weight: 600; color: #555; }
.marche-input {
    padding: 8px 12px; border: 1.5px solid #e0d6f5; border-radius: 8px;
    font-size: .9rem; font-family: inherit; outline: none;
}
.marche-input:focus { border-color: var(--primary-color); }
.marche-form-btns { display: flex; gap: 10px; margin-top: 6px; }

/* ===== BANDEAU RGPD ===== */
.rgpd-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
    background: #2d2d2d; color: #eee;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 20px; box-shadow: 0 -2px 12px rgba(0,0,0,.3);
    font-size: .85rem; line-height: 1.5;
}
.rgpd-texte { flex: 1; margin: 0; min-width: 200px; }
.rgpd-lien  { color: #c9b8e8; text-decoration: underline; }
.rgpd-btns  { display: flex; gap: 8px; flex-shrink: 0; }
.rgpd-btn   { padding: 7px 18px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .82rem; }
.rgpd-btn-ok    { background: var(--primary-color, #7C5CBF); color: #fff; }
.rgpd-btn-close { background: #555; color: #eee; }
.rgpd-btn:hover { opacity: .85; }

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
    overflow: hidden;
}

/* Modal panier */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease-out;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.modal-actions button {
    min-width: 140px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.produit:nth-child(1) { animation-delay: 0.1s; }
.produit:nth-child(2) { animation-delay: 0.2s; }
.produit:nth-child(3) { animation-delay: 0.3s; }
.produit:nth-child(4) { animation-delay: 0.4s; }

/* ── Laptop 14-15 pouces (largeur ≤ 1440px, couvre MacBook Pro 15" et 1366px) ── */
@media (max-width: 1440px) {
    .logo-nav {
        height: 80px;
    }
    html {
        scroll-padding-top: 150px;
    }
    main {
        padding-top: 150px;
    }
    .hero {
        min-height: 50vh;
        scroll-margin-top: 112px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Bouton admin : caché dans le header, visible dans le menu hamburger */
    .admin-header-btn { display: none !important; }
    #nav-li-admin-mobile { display: list-item !important; }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }

    /* Panier extrait du menu coulissant, toujours visible en haut à droite */
    #panier-icon {
        position: fixed !important;
        top: 16px;
        right: 60px;
        z-index: 1100 !important;
        left: auto !important;
        display: flex !important;
        align-items: center;
        gap: 0.3rem;
        color: white;
        font-size: 1.2rem;
    }

    .logo-nav {
        height: 56px !important;
        width: auto !important;
        max-width: calc(100vw - 110px);
    }

    html {
        scroll-padding-top: 126px;
    }
    main {
        padding-top: 126px;
    }
    .hero {
        min-height: calc(100vh - 88px - 5cm);
        scroll-margin-top: 88px;
    }

    .nav-brand {
        overflow: hidden;
        max-width: calc(100vw - 90px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 82px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        margin: 4% 1rem;
        max-width: 95%;
        width: 100%;
        padding: 1.2rem;
    }

    /* Panier visible à côté du hamburger */
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-brand h1 {
        font-size: 1rem;
        white-space: nowrap;
    }

    #panier-count {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 50vh;
        padding: 2.5rem 1rem;
    }

    html {
        scroll-padding-top: 112px;
    }
    main {
        padding-top: 112px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .logo-nav {
        height: 48px !important;
        width: auto !important;
        max-width: calc(100vw - 100px);
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .gallery img {
        height: 220px;
    }

    .produit img {
        height: 200px;
    }

}


/* Modale sections nav */
.section-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.section-modal {
    background: #faf7f4;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.section-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s;
}
.section-modal-close:hover { background: #5a3fa0; }
.section-modal .section {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
}

/* Styles pour la galerie */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.gallery {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gallery img {
    width: 600px;
    max-width: 90vw;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.gal-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gallery-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.gallery-controls select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .gallery img { height: 260px; }
}
label.btn-secondary {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
label[for="file-input"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    height: auto;
    width: auto;
    border-radius: 25px;
}

/* ── Boutons flottants (WhatsApp + Instagram) ── */
#whatsapp-float, #instagram-float {
    position: fixed;
    bottom: 28px;
    z-index: 998;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
#whatsapp-float {
    left: 28px;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 18px rgba(37,211,102,0.45);
}
#whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
#instagram-float {
    left: 96px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(214,36,159,0.40);
}
#instagram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(214,36,159,0.55);
}

/* ── Section Fabrication ── */
.fabrication-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-top: 36px;
}
.fab-step {
    background: #fff;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    flex: 1;
    min-width: 0;
    max-width: 195px;
    transition: transform 0.2s;
}
/* Étapes Jesmonite (5) : encarts légèrement réduits */
#fab-panel-jesmonite .fab-step {
    padding: 16px 8px;
    max-width: 160px;
}
#fab-panel-jesmonite .fab-icon { font-size: 2rem; margin-bottom: 8px; }
#fab-panel-jesmonite .fab-step h3 { font-size: 0.88rem; }
#fab-panel-jesmonite .fab-step p  { font-size: 0.78rem; }
.fab-step:hover { transform: translateY(-4px); }
.fab-icon { font-size: 2.6rem; margin-bottom: 12px; }
.fab-step h3 {
    color: #7C5CBF;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 8px;
}
.fab-step p { font-size: 0.86rem; color: #666; line-height: 1.55; }
.fab-arrow {
    font-size: 1.6rem;
    color: #d4b896;
    align-self: center;
    flex-shrink: 0;
    padding-bottom: 20px;
}


/* ── Onglets Fabrication ── */
.fab-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 4px;
    flex-wrap: wrap;
}
.fab-tab-btn {
    background: transparent;
    border: 2px solid #7C5CBF;
    color: #7C5CBF;
    border-radius: 30px;
    padding: 8px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.fab-tab-btn.active,
.fab-tab-btn:hover { background: #7C5CBF; color: #fff; }
.fab-info-jesmonite {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-left: 4px solid #22c55e;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 24px auto 0;
    max-width: 680px;
    font-size: 0.86rem;
    color: #15803d;
    line-height: 1.6;
}
.fab-info-jesmonite strong { color: #166534; }

.fab-sous-titre {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin: 0.5rem 0 1rem;
}
hr.fab-divider {
    border: none;
    border-top: 1px dashed #bbb;
    width: 160px;
    margin: 0 auto 1.2rem;
}

@media (max-width: 700px) {
    .fabrication-steps { flex-wrap: wrap; }
    .fab-arrow { transform: rotate(90deg); width: 100%; text-align: center; padding-bottom: 0; }
    .fab-step  { max-width: 100%; width: 100%; }
    #whatsapp-float  { bottom: 18px; left: 18px; width: 52px; height: 52px; font-size: 1.7rem; }
    #instagram-float { bottom: 18px; left: 80px; width: 52px; height: 52px; font-size: 1.7rem; }
}

/* ── Galerie admin : éviter le débordement horizontal sur mobile ── */
@media (max-width: 600px) {
    .gallery-wrapper {
        overflow-x: hidden;
        width: 100%;
    }
    .gallery {
        gap: 0.4rem;
        width: 100%;
        justify-content: center;
    }
    .gal-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    .gallery img {
        max-width: calc(100vw - 110px);
        width: calc(100vw - 110px);
    }
    .gallery-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* ===== MODALE ADMIN PRODUIT ===== */
.map-overlay {
    position: fixed; inset: 0; z-index: 9500;
    display: flex; align-items: center; justify-content: center; padding: 12px;
}
.map-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.62);
}
.map-panel {
    position: relative; z-index: 1; background: #fff;
    border-radius: 16px; width: 100%; max-width: 700px;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    display: flex; flex-direction: column;
}
.map-header {
    background: var(--primary-color, #7C5CBF); color: #fff;
    padding: 13px 18px; border-radius: 16px 16px 0 0;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2;
}
.map-header h3 { font-size: 0.98rem; font-weight: 700; }
.map-fermer {
    background: rgba(255,255,255,0.2); color: #fff; border: none;
    border-radius: 20px; padding: 5px 14px; cursor: pointer; font-size: 0.82rem;
}
.map-fermer:hover { background: rgba(255,255,255,0.35); }

.map-photos-zone {
    display: flex; align-items: center; gap: 6px; padding: 14px 14px 8px;
}
.map-photo-container {
    flex: 1; background: #f5f0ff; border-radius: 10px;
    min-height: 190px; display: flex; align-items: center;
    justify-content: center; overflow: hidden; position: relative;
}
.map-photo-container img { max-width: 100%; max-height: 210px; object-fit: contain; display: block; }
.map-photo-vide { color: #bbb; font-size: 0.85rem; font-style: italic; text-align: center; padding: 10px; }
.map-photo-dots {
    position: absolute; bottom: 5px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px;
}
.map-photo-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(124,92,191,0.3); cursor: pointer; display: inline-block;
}
.map-photo-dots span.active { background: #7C5CBF; }
.map-photo-nav {
    background: var(--primary-color, #7C5CBF); color: #fff; border: none;
    border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.map-photo-nav:disabled { background: #ccc; cursor: default; }
.map-photo-counter {
    text-align: center; font-size: 0.78rem; color: #a08cc4;
    margin: 0 0 4px; min-height: 1em;
}

.map-champs { padding: 4px 14px; }
.map-row-3 {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px;
}
.map-row-desc {
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; margin-bottom: 6px;
}
.map-field { display: flex; flex-direction: column; gap: 3px; }
.map-field label {
    font-size: 0.72rem; color: var(--primary-color, #7C5CBF);
    font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.map-input {
    padding: 7px 10px; border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 0.87rem; color: #333; width: 100%;
    font-family: inherit; transition: border-color .15s;
}
.map-input:focus { outline: none; border-color: var(--primary-color, #7C5CBF); }
.map-input[readonly] { background: #f8f7fc; color: #888; cursor: default; }
.map-textarea { resize: vertical; min-height: 72px; }
.map-stock-input { width: 58px !important; text-align: center; }
.map-prix-wrap, .map-stock-wrap { display: flex; align-items: center; gap: 4px; }
.map-euro { color: var(--primary-color, #7C5CBF); font-weight: 700; }
.map-stock-btn {
    background: var(--primary-color, #7C5CBF); color: #fff; border: none;
    border-radius: 6px; width: 28px; height: 28px; font-size: 1rem; cursor: pointer; flex-shrink: 0;
}
.map-stock-btn:disabled { background: #ccc; cursor: default; }

.map-row-actions {
    display: flex; gap: 8px; padding: 8px 14px; flex-wrap: wrap;
}
.map-row-main {
    justify-content: center; padding-top: 10px;
    border-top: 1px solid #eee; margin-top: 4px;
}
.map-btn {
    padding: 8px 16px; border-radius: 8px; border: none;
    font-size: 0.84rem; font-weight: 600; cursor: pointer;
    transition: opacity .15s; font-family: inherit;
}
.map-btn:hover { opacity: 0.82; }
.map-btn-primary  { background: var(--primary-color, #7C5CBF); color: #fff; }
.map-btn-secondary{ background: #f0ebff; color: var(--primary-color, #7C5CBF); border: 1px solid #c9b8e8; }
.map-btn-outline  { background: #fff; color: #666; border: 1px solid #ddd; }
.map-btn-modifier { background: #f0a500; color: #fff; }
.map-btn-danger   { background: #fff; color: #dc3545; border: 1px solid #dc3545; }
.map-btn-galerie  { background: #f0ebff; color: var(--primary-color, #7C5CBF); border: 1px solid #c9b8e8; cursor: pointer; }
.map-btn-picker   { background: #fff8e1; color: #c07a00; border: 1px solid #f0c040; cursor: pointer; }

/* ===== GALERIE INLINE (picker intégré à la zone photo) ===== */
.map-photo-container.mgp-actif { min-height: 290px; padding-bottom: 84px; }
.map-photo-container.mgp-actif img { max-height: 190px; }
.map-galerie-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(44,20,70,.82); color: #fff;
  padding: .45rem .6rem .5rem;
  border-radius: 0 0 10px 10px;
  display: flex; flex-direction: column; gap: .35rem;
}
.mgp-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; overflow: hidden;
}
.mgp-info-row span:first-child {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mgp-info-row span:last-child { flex-shrink: 0; margin-left: .5rem; font-weight: 600; }
.mgp-footer-btns { display: flex; gap: .4rem; }
.mgp-footer-btns .map-btn { flex: 1; font-size: .78rem; padding: .3rem .4rem; }

/* Carte Nouvel article en mode admin */
.carte-nouvel-article { border: 2px dashed #c9b8e8; background: #faf8ff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: default; }
.carte-nouvel-article-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; gap: 8px; }
.carte-nouvel-article-plus { font-size: 2.8rem; color: #c9b8e8; line-height: 1; }
.carte-nouvel-article-label { color: #a08cc4; font-size: 0.85rem; margin: 0; }

/* Badges info sur les cartes produit en admin */
.admin-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 3px 0 6px; }
.admin-ref-badge   { font-size: 0.73rem; padding: 2px 8px; border-radius: 10px; background: #ede8f8; color: var(--primary-color, #7C5CBF); font-weight: 600; }
.admin-stock-badge { font-size: 0.73rem; padding: 2px 8px; border-radius: 10px; background: #e6f4ea; color: #2d7a2d; font-weight: 600; }

/* Bouton fiche sur les cartes produit admin */
.btn-fiche-admin {
    background: var(--primary-color, #7C5CBF); color: #fff;
    border: none; border-radius: 8px; padding: 6px 12px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.btn-fiche-admin:hover { opacity: 0.85; }

@media (max-width: 600px) {
    .map-row-3, .map-row-desc { grid-template-columns: 1fr; }
    .map-panel { max-height: 96vh; }
}

/* ===== BARRE DE PROGRESSION SCROLL ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--primary-color, #7C5CBF);
    z-index: 9999;
    transition: width .08s linear;
}

/* ===== BADGE "NOUVEAU" SUR LES CARTES PRODUIT ===== */
.produit-img-wrap { position: relative; overflow: hidden; }
.badge-nouveau {
    position: absolute; top: 18px; left: -28px;
    width: 110px; text-align: center;
    background: var(--primary-color, #7C5CBF); color: #fff;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    z-index: 2;
}
/* ===== BADGES RÉDUCTION ===== */
.badge-soldes, .badge-promo, .badge-vente-privee, .badge-black-friday {
    position: absolute; top: 12px; right: 12px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 4px 9px;
    border-radius: 20px; z-index: 2; color: #fff;
}
.badge-soldes       { background: #e05252; box-shadow: 0 2px 6px rgba(224,82,82,.4); }
.badge-promo        { background: #e07c30; box-shadow: 0 2px 6px rgba(224,124,48,.4); }
.badge-vente-privee { background: #7C5CBF; box-shadow: 0 2px 6px rgba(124,92,191,.4); }
.badge-black-friday { background: #1a1a1a; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.prix-block-promo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; justify-content: center; }
.prix-barre { font-size: 1rem; color: #bbb; text-decoration: line-through; font-weight: 400; }
.prix-promo-card { font-size: 1.45rem; font-weight: 700; color: #e05252; font-family: 'Playfair Display', serif; }
.pct-remise { font-size: 0.72rem; background: #e05252; color: #fff; border-radius: 10px; padding: 2px 7px; font-weight: 700; vertical-align: middle; }

/* ===== BOUTONS SCROLL HAUT / BAS ===== */
.scroll-nav-btn {
    position: fixed; right: 18px; z-index: 900;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary-color, #7C5CBF); color: #fff;
    border: none; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.25);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
    transform: scale(.8);
    line-height: 1;
}
.scroll-nav-btn.scroll-nav-visible {
    opacity: .88; pointer-events: auto; transform: scale(1);
}
.scroll-nav-btn:hover { opacity: 1; background: #9B7AD8; }
#scroll-top { bottom: 70px; }
#scroll-bot { bottom: 18px; }