/* ===== POLICES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== RÉINITIALISATION GENERALE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SYSTÈME DE DESIGN — "marketplace" ===== */
:root {
    --bg: #ffffff;
    --bg-muted: #f5f5f7;
    --ink: #16181c;
    --muted: #6b7280;
    --border: #e4e4e7;
    --border-strong: #d1d5db;

    --accent: #e8590c;
    --accent-dark: #c24a09;
    --accent-light: #ff8f33;
    --accent-soft: #fdece2;

    --ok: #1a7f37;
    --ok-soft: #e6f4ea;

    --service-accent: #0d6efd;
    --service-accent-dark: #0a58ca;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-soft: 0 1px 3px rgba(20, 20, 20, .08);
    --shadow-hover: 0 6px 18px rgba(20, 20, 20, .14);

    --font-display: 'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.admin,
main.p-4[style*="margin-left"] {
    background-color: var(--bg-muted);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.hero h1,
.section-title,
.page-title,
.auth-card h2,
.brand-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.01em;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Scrollbar discrète */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== ANCRES DE NAVIGATION (onglets header -> sections page d'accueil) ===== */
#categories,
#produits,
#services {
    scroll-margin-top: var(--header-height, 90px);
}

/* ===== TITRES DE SECTION ===== */
.section-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 24px !important;
    font-size: clamp(20px, 3vw, 26px);
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 42px;
    border-radius: 2px;
    background: var(--accent);
}

/* ===== PAGE TITLES (admin + listes client) ===== */
.page-title {
    font-weight: 800;
    letter-spacing: -.01em;
    position: relative;
    padding-bottom: 10px;
}
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 32px;
    border-radius: 2px;
    background: var(--accent);
}

/* ===== BOUTONS (rectangulaires, façon marketplace) ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
/* Boutons ronds : panier, pagination, flèches, recherche */
.pagination .page-link,
.btn-close,
#gauche,
#droite,
.recherche-form .btn {
    border-radius: 50% !important;
}
#gauche,
#droite,
.recherche-form .btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.produit-card .btn-outline-warning {
    border-radius: var(--radius-sm);
}
.btn-warning {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
}
.btn-warning:hover, .btn-warning:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.btn-outline-warning {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline-warning:hover, .btn-outline-warning:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: #000;
    border-color: #000;
}
.btn-outline-primary {
    border-color: var(--border-strong);
    color: var(--ink);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink);
}
.btn-secondary:hover {
    background: var(--bg-muted);
}
.btn-light {
    border: 1px solid var(--border);
    box-shadow: none;
    background: #fff;
}
.btn-light:hover {
    background-color: var(--bg-muted);
}

/* ===== SÉLECTEUR DE FICHIER COMPACT (formulaires image) ===== */
.file-picker {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.file-picker-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: .5rem .9rem;
    background: var(--bg-muted);
    border-right: 1px solid var(--border-strong);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}
.file-picker-label:hover {
    background: var(--border);
}
.file-picker-name {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: .5rem .9rem;
    font-size: .85rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Contenu client sous le header fixe (hauteur mesurée dynamiquement par includes/header.php) */
.below-header {
    margin-top: var(--header-height, 90px) !important;
}

/* Admin : pas de header */
body.admin {
    padding-top: 0;
}

/* Contenu admin */
body.admin .main-content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
}
@media (max-width: 991.98px) {
    body.admin .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        padding-top: 70px;
    }
}


/* ===== LOGO / NAVBAR CLASSIQUE ===== */
.logo-yosishop {
    height: 46px;
    width: auto;
    border-radius: 4px;
}
@media (min-width: 992px) {
    .logo-yosishop {
        height: 54px;
    }
}

#mainNavbar {
    background: #fff !important;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px !important;
    box-shadow: var(--shadow-soft);
}
#mainNavbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#mainNavbar .navbar-brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
}
#mainNavbar .navbar-toggler {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
#mainNavbar .navbar-collapse {
    background: transparent;
}
@media (max-width: 991.98px) {
    #mainNavbar .navbar-collapse {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 10px;
        margin-top: 10px;
    }
}
#mainNavbar .nav-link {
    transition: all .15s ease;
    font-weight: 600;
    font-size: .93rem;
    color: var(--ink) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: .65rem .95rem !important;
}
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link:focus {
    background: var(--bg-muted);
    color: var(--accent) !important;
}
#mainNavbar .nav-link.active {
    background: var(--accent-soft);
    color: var(--accent-dark) !important;
}

/* ===== BARRE DE RECHERCHE (façon Amazon) ===== */
.site-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0 20px;
    align-items: stretch;
}
.site-search-mobile {
    max-width: none;
    margin: 0 0 10px 0;
}
.site-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1.5px solid var(--border-strong);
    border-right: none;
    border-radius: 999px 0 0 999px;
    padding: .5rem 1rem;
    font-size: .92rem;
    color: var(--ink);
    background: var(--bg-muted);
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.site-search-input::placeholder {
    color: var(--muted);
}
.site-search-input:focus {
    border-color: var(--accent);
    background: #fff;
}
.site-search-btn {
    flex: 0 0 auto;
    border: 1.5px solid var(--accent);
    border-radius: 0 999px 999px 0;
    background: var(--accent);
    color: #fff;
    padding: 0 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.site-search-btn:hover,
.site-search-btn:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.site-search:focus-within .site-search-input {
    border-color: var(--accent);
}

.site-search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 6px;
    z-index: 1050;
    max-height: 420px;
    overflow-y: auto;
}
.site-search-suggestions.show {
    display: block;
}
.site-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
}
.site-search-item:hover,
.site-search-item:focus {
    background: var(--bg-muted);
}
.site-search-item img,
.site-search-item-noimg {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex: 0 0 auto;
    background: var(--bg-muted);
}
.site-search-item-texte {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.site-search-item-nom {
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-search-item-prix {
    font-size: .8rem;
    color: var(--accent);
    font-weight: 700;
}
.site-search-voir-tout {
    display: block;
    text-align: center;
    padding: 10px 8px 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.site-search-voir-tout:hover {
    color: var(--accent-dark);
}
.site-search-empty {
    padding: 14px 10px;
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-muted);
    color: var(--muted);
    border-top: 1px solid var(--border);
    position: relative;
}
.site-footer h6 {
    color: var(--ink);
    font-weight: 700;
}
.site-footer a {
    color: var(--muted) !important;
    transition: color .15s ease;
}
.site-footer a:hover {
    color: var(--accent) !important;
}
.site-footer hr {
    border-color: var(--border);
}
.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--ink) !important;
    transition: all .15s ease;
}
.footer-social:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}

/* ===== HERO (bandeau promo avec photo d'illustration) ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 72px 15px;
    margin-top: var(--header-height, 90px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/télécharger\ \(18\).jpg");
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(.55);
    z-index: -2;
    animation: heroZoom 6s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% {
        transform: scale(1.18) rotate(-4deg);
    }
    100% {
        transform: scale(1.18) rotate(4deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
        transform: scale(1.05);
    }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 144, 186, 0.85), rgba(139, 162, 212, 0.7));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.hero-content > * {
    opacity: 1;
    animation: fadeInUp .5s ease both;
}
.hero-badge { animation-delay: .05s; }
.hero h1 { animation-delay: .1s; }
.hero p { animation-delay: .15s; }
.hero-content > div:last-child { animation-delay: .2s; }

.hero-badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(26px, 4.6vw, 48px);
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero p {
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.6;
    margin: 14px 0 22px;
    color: rgba(255, 255, 255, .78);
}

.hero .btn {
    margin: 6px;
    padding: 11px 26px;
}

.btn-hero-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.btn-hero-primary:hover, .btn-hero-primary:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}
.btn-hero-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
}
.btn-hero-ghost:hover, .btn-hero-ghost:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: #fff;
}

/* Visuel hero optionnel : masqué par défaut (pas de mockup produit fictif) */
.hero-visual {
    display: none;
}

/* Bandeau d'atouts : cartes bordurées fines, façon badges de confiance marketplace */
.hero-features {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
    background: var(--bg-muted);
}
.hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.hero-features .feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
}
.hero-features .feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}
.hero-features .feature-text span {
    font-size: 12.5px;
    color: var(--muted);
}

@media (max-width: 576px) {
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 6px auto;
    }
}
/* ===== BANNIÈRE DE PAGE (catégories / produits / services) ===== */
.page-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    margin-bottom: 28px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/E-commerce.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(.5);
    transform: scale(1.08);
    z-index: -2;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(246, 246, 247, 0.82), rgba(42, 47, 56, .68));
    z-index: -1;
}
.page-banner .page-title {
    color: #fff !important;
}
.page-banner .page-title::after {
    background: var(--accent);
}
.page-banner .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    transition: transform .2s ease;
}
.category-icon:hover {
    transform: translateY(-3px);
}

.categorie-trigger {
    font-weight: 600;
    border: 1px solid var(--border-strong) !important;
    color: var(--ink) !important;
    background: #fff !important;
    transition: all .15s ease;
}
.categorie-trigger:hover,
.categorie-trigger:focus,
.categorie-trigger.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

.category-label {
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .category-icon {
        width: 65px;
        height: 65px;
        font-size: 22px;
    }
    .category-label {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
}

.categorie-col {
    margin-bottom: 10px;
}

.scroll-categories {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    gap: 10px;
}

.scroll-categories::-webkit-scrollbar {
    display: none;
}

/* ===== PRODUITS ===== */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card.border-0 {
    border: 1px solid var(--border) !important;
}
.card.shadow-sm {
    box-shadow: none !important;
}

.produit-image {
    height: 160px;
    object-fit: cover;
}
@media (min-width: 768px) {
    .produit-image {
        height: 200px;
    }
}

.produit-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4em;
    max-height: 2.8em;
}

.card.produit-card {
    position: relative;
    box-shadow: none !important;
    border-color: var(--accent) !important;
}
.card.produit-card:hover {
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--accent-dark) !important;
}

/* Badge "déjà dans le panier x N" affiché sur une carte produit/service */
.panier-badge-carte {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(20, 20, 20, .3);
}

/* Cartes SERVICE : bordure bleue + badge horloge, pour se distinguer des produits (orange) au premier coup d'oeil */
.card.service-card {
    position: relative;
    box-shadow: none !important;
    border-color: var(--service-accent) !important;
}
.card.service-card:hover {
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--service-accent-dark) !important;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--service-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    box-shadow: 0 2px 6px rgba(20, 20, 20, .25);
    z-index: 3;
}

.produit-card .btn-outline-warning {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== ANIMATION D'APPARITION (pages index.php) ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cartes-animees > [class*="col"] {
    animation: fadeInUp 0.5s ease both;
}
.cartes-animees > [class*="col"]:nth-child(2) { animation-delay: 0.05s; }
.cartes-animees > [class*="col"]:nth-child(3) { animation-delay: 0.1s; }
.cartes-animees > [class*="col"]:nth-child(4) { animation-delay: 0.15s; }
.cartes-animees > [class*="col"]:nth-child(5) { animation-delay: 0.2s; }
.cartes-animees > [class*="col"]:nth-child(6) { animation-delay: 0.25s; }
.cartes-animees > [class*="col"]:nth-child(7) { animation-delay: 0.3s; }
.cartes-animees > [class*="col"]:nth-child(8) { animation-delay: 0.35s; }
.cartes-animees > [class*="col"]:nth-child(9) { animation-delay: 0.4s; }
.cartes-animees > [class*="col"]:nth-child(10) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .cartes-animees > [class*="col"] {
        animation: none;
    }
}

/* ===== RÉVÉLATION AU DÉFILEMENT (voir assets/js/script.js) ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.in-view > * {
    animation: fadeInUp .5s ease both;
}
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: .06s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: .12s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-stagger.in-view > * {
        animation: none;
    }
}

/* ===== PAGINATION NUMEROTEE ===== */
.pagination .page-link {
    color: var(--ink);
    background-color: #fff;
    border-radius: 50%;
    margin: 0 3px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    transition: all .15s ease;
}
.pagination .page-link:hover {
    background-color: var(--bg-muted);
    border-color: var(--accent);
    color: var(--ink);
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.main-content {
    margin-left: 250px; /* Ajustez les pixels selon l'espace souhaité */
    padding-top: 20px; /* Optionnel : ajoute aussi de l'espace avant le footer */
}
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }
}
.barre-fond {
    height: 10px;
    background-color: var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.barre-remplissage {
    height: 100%;
    background-color: var(--accent);
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    letter-spacing: .01em;
}
.badge.rounded-pill {
    padding: 6px 14px;
}

/* ===== FORMULAIRES ===== */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-strong);
    padding: 10px 14px;
    background: #fff;
    color: var(--ink);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .18rem var(--accent-soft);
}
.form-control::placeholder {
    color: var(--muted);
}
.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

/* ===== ALERTES ===== */
.alert {
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    background: #fff;
}
.alert-success { border-left-color: var(--ok); }
.alert-danger { border-left-color: #c0392b; }
.alert-info { border-left-color: #2563eb; }
.alert-warning { border-left-color: var(--accent); }

/* ===== MODALES ===== */
.modal-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}
.modal-header {
    border-bottom: 1px solid var(--border);
}
.modal-footer {
    border-top: 1px solid var(--border);
}

/* ===== CARTE D'AUTHENTIFICATION (login / register) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    padding: 40px 0;
}
.auth-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem !important;
    overflow: hidden;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}
.auth-card .logo-yosishop {
    height: 52px;
    display: block;
    margin: 0 auto 1.25rem;
}
.auth-card h2 {
    text-align: center;
}

/* Puce d'icône ronde réutilisable (sidebar, dashboard) */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.icon-chip-light {
    background: var(--bg-muted);
    color: var(--ink);
    border: 1px solid var(--border);
}
.icon-chip-neutral {
    background: var(--bg-muted);
    color: var(--ink);
    border: 1px solid var(--border-strong);
}
.icon-chip-accent,
.icon-chip-gold,
.icon-chip-sky,
.icon-chip-navy {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-light);
}

/* ===== ADMIN : SIDEBAR ===== */
.responsive.bg-primary {
    background: #fff !important;
    color: var(--ink);
    border-right: 1px solid var(--border);
    box-shadow: none;
}
.responsive .brand-pill {
    border-radius: var(--radius-sm) !important;
    box-shadow: none;
    background: var(--bg-muted) !important;
}
.responsive .nav-link {
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all .15s ease;
    display: flex;
    align-items: center;
    color: var(--muted) !important;
}
.responsive .nav-link:hover {
    background: var(--bg-muted);
    color: var(--ink) !important;
}
.responsive .nav-link.active {
    background: var(--accent-soft);
    border-left-color: var(--accent);
    color: var(--accent-dark) !important;
}
.responsive hr {
    opacity: 1;
    border-color: var(--border);
}
.responsive .btn-outline-danger {
    border-color: var(--border-strong);
    color: var(--ink);
}
.responsive .btn-outline-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* ===== ADMIN : MISE EN PAGE RESPONSIVE (sidebar + contenu) ===== */
/* Remplace les margin-left / width codés en dur en inline sur chaque page admin */
.admin-main {
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left .25s ease, width .25s ease;
}

/* Bouton hamburger : masqué sur desktop, visible uniquement sous le seuil lg */
.admin-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-hover);
    color: var(--ink);
}
.admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .45);
    z-index: 1040;
}
.admin-backdrop.show {
    display: block;
}

@media (max-width: 991.98px) {
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 70px !important;
    }
    .responsive.bg-primary {
        left: -250px !important;
        transition: left .25s ease;
        z-index: 1050;
        box-shadow: var(--shadow-hover);
    }
    .responsive.bg-primary.show {
        left: 0 !important;
    }
    .admin-toggle {
        display: flex;
    }
}

/* ===== ADMIN : CARTES STAT / DASHBOARD ===== */
.dashboard-card {
    border-radius: var(--radius-lg);
    transition: transform .15s ease, box-shadow .15s ease;
}
.dashboard-card:hover {
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--border-strong);
}
.dashboard-card .icon-chip {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    margin: 0 auto 10px;
}

/* ===== ADMIN : LIGNES DE LISTE (produits / services / catégories) ===== */
.admin-row-card {
    border-radius: var(--radius-md) !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.admin-row-card:hover {
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--border-strong);
}
