/* ========== VITRINE — Design soigné, logo mis en avant ========== */
:root {
    --color-bg: #f8f7f5;
    --color-surface: #ffffff;
    --color-text: #1c1c1c;
    --color-text-muted: #5c5c5c;
    --color-accent: #1a1a1a;
    --color-accent-light: #333;
    --color-gold: #8b7355;
    --color-border: #e5e3df;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --shadow-soft: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

body.vitrine {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* ----- Header : logo centré, nav en barre en dessous ----- */
.site-header {
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left brand admin" "nav nav nav";
    align-items: center;
    gap: 0 1rem;
}
.header-brand {
    grid-area: brand;
    justify-self: center;
}
.header-inner .nav-main {
    grid-area: nav;
    justify-self: stretch;
    padding: 0.85rem 0 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
}
.header-inner .btn-admin {
    grid-area: admin;
    justify-self: end;
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand admin" "nav nav";
        padding: 1rem 1.25rem;
    }
    .header-brand { justify-self: start; }
    .header-inner .nav-main { padding: 0.75rem 0; margin-top: 0; }
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}
.logo:hover {
    color: var(--color-accent);
    opacity: 0.9;
}
.logo-img {
    max-height: 58px;
    width: auto;
    min-height: 42px;
    display: block;
    object-fit: contain;
}
@media (min-width: 769px) {
    .logo-img { max-height: 68px; }
}

.nav-main {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.nav-main a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.nav-main a:hover {
    color: var(--color-gold);
}

.btn-admin {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), color var(--transition);
}
.btn-admin:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* ----- Main ----- */
.main-content {
    min-height: 60vh;
}

/* ----- Hero : contenu à gauche, plus d’espace ----- */
.hero {
    background: var(--color-accent);
    color: #fff;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 4rem 2rem 5rem;
}
.hero-content {
    max-width: 560px;
    width: 100%;
}
.hero-logo {
    margin-bottom: 2.25rem;
    display: inline-block;
    padding: 1.5rem 2.25rem;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.hero-logo img {
    max-height: 110px;
    width: auto;
    max-width: 320px;
    min-height: 64px;
    display: block;
    object-fit: contain;
}
@media (min-width: 600px) {
    .hero-logo img { max-height: 140px; max-width: 400px; }
    .hero-logo { padding: 1.75rem 2.5rem; margin-bottom: 2.5rem; }
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    margin: 0 0 1rem;
    letter-spacing: 0.03em;
    line-height: 1.25;
}
.hero-slogan {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 2.25rem;
}
.hero .btn {
    padding: 1rem 2.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
}

@media (max-width: 640px) {
    .hero { text-align: center; justify-content: center; }
    .hero-content { margin: 0 auto; }
    .hero-logo { margin-left: auto; margin-right: auto; }
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: opacity var(--transition), transform var(--transition);
}
.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}
.btn-primary {
    background: #fff;
    color: var(--color-accent);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.btn-outline {
    border: 2px solid var(--color-text);
    color: var(--color-text);
    margin-left: 0.5rem;
}
.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-surface);
}

/* ----- Sections ----- */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-left: 0;
}
.section-title .section-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.section-title h2,
.section-title h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

/* ----- Catégories ----- */
.categories-preview {
    background: var(--color-surface);
    padding: 4rem 2rem 5rem;
    margin: 0;
    max-width: none;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -1px 0 var(--color-border);
}
.categories-preview .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem 2.5rem;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .categories-grid { grid-template-columns: 1fr; }
}
.category-card {
    display: block;
    padding: 2.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.category-card:hover {
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}
.category-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ----- Produits ----- */
.produits-vedette {
    padding: 4rem 2rem 5rem;
    background: var(--color-bg);
}
.catalogue-page {
    padding: 4rem 2rem 5rem;
}
.produits-vedette .section-title {
    padding: 0 2rem 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.produits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 1000px) {
    .produits-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .produits-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}
.product-card:hover .product-image img {
    opacity: 0.94;
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: #e8e6e3;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}
.product-placeholder {
    width: 100%;
    height: 100%;
    background: #ebe9e6;
}
.product-placeholder.large {
    min-height: 420px;
}

.product-quick {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0,0,0,0.2);
    transition: opacity var(--transition);
}
.product-card:hover .product-quick {
    opacity: 1;
}
.product-quick span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
}

.badge.promo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-text);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 1.35rem 1.15rem;
}
.product-cat {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 0.4rem;
}
.product-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.4rem;
    line-height: 1.4;
    color: var(--color-text);
}
.price {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}
.old-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}
.current-price {
    color: var(--color-text);
}

.empty-msg {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 2rem;
    font-size: 0.95rem;
}
.empty-msg a {
    color: var(--color-text);
    text-decoration: underline;
}

/* ----- CTA ----- */
.cta-section {
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    padding: 4.5rem 2rem;
    margin: 0;
    max-width: none;
}
.cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: #fff;
}
.cta-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.cta-content .btn-secondary {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.cta-content .btn-secondary:hover {
    border-color: #fff;
}

/* ----- Fiche produit ----- */
.produit-detail {
    padding: 5rem 2rem;
}
.produit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 768px) {
    .produit-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
.produit-gallery {
    overflow: hidden;
    background: #ebe9e6;
}
.produit-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.produit-desc .product-cat a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.produit-desc .product-cat a:hover {
    color: var(--color-text);
}
.produit-desc h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.3;
    color: var(--color-text);
}
.ref {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}
.price.big {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.description {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}
.label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0;
}
.stock-info {
    margin: 0.75rem 0;
    font-size: 0.9rem;
}
.produit-desc .btn {
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/* ----- Contact ----- */
.contact-page {
    padding: 5rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-info {
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--color-border);
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.contact-info p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.contact-form-wrap {
    padding: 0;
}
.form-contact label {
    display: block;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text);
}
.form-contact input,
.form-contact textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    transition: border-color var(--transition);
}
.form-contact input:focus,
.form-contact textarea:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}
.form-contact textarea {
    resize: vertical;
    min-height: 120px;
}
.form-contact button {
    margin-top: 1.75rem;
    cursor: pointer;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.msg.succes {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.msg.erreur {
    color: #b33;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ----- Catalogue ----- */
.catalogue-page .section-title h1 {
    border-bottom: 1px solid var(--color-border);
}

/* ----- À propos ----- */
.page-apropos {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.apropos-proprietaire {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
}
.proprietaire-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 700px) {
    .proprietaire-content { grid-template-columns: 1fr; }
}
.proprietaire-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: #ebe9e6;
}
.proprietaire-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proprietaire-texte h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 1rem;
    color: var(--color-text);
}
.proprietaire-bio {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}
.apropos-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.galerie-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.galerie-item {
    position: relative;
    background: #ebe9e6;
}
.galerie-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.galerie-legend {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.apropos-videos {
    margin-top: 4rem;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #1a1a1a;
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-titre {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* À propos sur la page d'accueil */
.accueil-apropos {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.accueil-apropos .section-title { margin-bottom: 2rem; }
.accueil-apropos .apropos-proprietaire { margin-bottom: 3rem; padding-bottom: 3rem; }
.accueil-apropos .proprietaire-texte h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}
.link-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary, #333);
    text-decoration: underline;
}
.link-more:hover { opacity: 0.85; }
.galerie-more {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.galerie-more a { text-decoration: underline; }
.accueil-apropos-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    margin-top: 0;
    padding-top: 4rem;
    font-size: 0.9rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}
.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}
.footer-brand .footer-logo img {
    max-height: 52px;
    width: auto;
    min-height: 36px;
    display: block;
    object-fit: contain;
}
.footer-col strong {
    display: block;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-col p {
    margin: 0.25rem 0;
    line-height: 1.6;
}
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== ADMIN — Interface soignée ========== */
body.admin {
    font-family: var(--font-body);
    background: #eef1f4;
    margin: 0;
    color: #2c3e50;
}

.admin-header {
    background: #fff;
    color: #2c3e50;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    z-index: 50;
}

.admin-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header a {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.admin-header a:hover {
    background: #f0f3f5;
    color: var(--color-accent);
}

.admin-header > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header > div:last-child span {
    font-size: 0.875rem;
    color: #5a6c7d;
    padding-right: 0.5rem;
    border-right: 1px solid #e2e6ea;
    margin-right: 0.25rem;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e8eaed;
    padding: 1.25rem 0;
    box-shadow: 1px 0 0 rgba(0,0,0,0.03);
}

.admin-sidebar a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    margin: 0 0.5rem;
    border-radius: 0 8px 8px 0;
}

.admin-sidebar a:hover {
    background: #f5f7f9;
    color: var(--color-accent);
}

.admin-sidebar a.active {
    background: rgba(45, 74, 62, 0.08);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8eaed;
}

.admin-card h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef0f2;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table.data-table th,
table.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eef0f2;
}

table.data-table th {
    background: #f8f9fb;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6c7d;
}

table.data-table tbody tr {
    transition: background 0.15s;
}

table.data-table tbody tr:hover td {
    background: #fafbfc;
}

table.data-table td {
    vertical-align: middle;
}

.admin-actions a,
.admin-actions button {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #e2e6ea;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-small:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(45, 74, 62, 0.04);
}

.btn-small.btn-danger {
    border-color: #ecc5c5;
    color: #c53030;
}

.btn-small.btn-danger:hover {
    background: #fff5f5;
    border-color: #c53030;
}

.btn-small.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.stat-box {
    background: #f8f9fb;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eef0f2;
}

.stat-box .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
    line-height: 1.2;
}

.stat-box .label {
    font-size: 0.8rem;
    color: #5a6c7d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* Boutons admin (réutiliser .btn du vitrine si besoin) */
body.admin .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Page de connexion admin */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2d4a3e 0%, #1a2e24 50%, #0f1f18 100%);
    padding: 1.5rem;
}

.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.login-box h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.75rem;
    color: #2c3e50;
    text-align: center;
}

.login-box .form-group:first-of-type {
    margin-top: 0;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
}

.login-box .btn {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
}

.login-box a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
}

.login-box a:hover {
    text-decoration: underline;
}

/* En-tête rapport : masqué à l'écran */
.rapport-print-header {
    display: none;
}

/* Impression : admin / rapport */
@media print {
    .admin-header,
    .admin-sidebar,
    .no-print {
        display: none !important;
    }
    .admin-layout {
        display: block;
    }
    .admin-main {
        padding: 0;
        max-width: 100%;
    }
    body.admin {
        background: #fff;
        font-size: 11pt;
    }

    /* En-tête imprimé avec logo et nom boutique */
    .rapport-print-header {
        display: block !important;
        padding: 0 0 1.2rem;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #2d4a3e;
        page-break-after: avoid;
    }
    .rapport-print-header-inner {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    .rapport-print-logo {
        max-height: 56px;
        max-width: 180px;
        width: auto;
        object-fit: contain;
    }
    .rapport-print-brand {
        flex: 1;
    }
    .rapport-print-titre {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #1a2e26;
        font-family: 'Cormorant Garamond', Georgia, serif;
        letter-spacing: 0.02em;
    }
    .rapport-print-slogan {
        margin: 0.25rem 0 0;
        font-size: 0.9rem;
        color: #5a6c7d;
    }
    .rapport-print-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        font-size: 0.9rem;
        color: #374151;
    }
    .rapport-print-meta strong {
        color: #2d4a3e;
    }
    .rapport-print-period {
        padding-left: 1rem;
        border-left: 1px solid #cbd5e0;
    }
    .rapport-print-caissier,
    .rapport-print-adresse {
        padding-left: 1rem;
        border-left: 1px solid #cbd5e0;
    }
    .rapport-print-total {
        font-weight: 700;
        color: #2d4a3e;
    }
    .rapport-print-date {
        margin-left: auto;
        color: #6b7280;
        font-size: 0.85rem;
    }

    /* Carte rapport imprimée */
    .rapport-print-area.admin-card {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    .rapport-print-area .rapport-periode {
        display: none;
    }
    .rapport-print-area .stats-grid {
        display: flex;
        gap: 2rem;
        margin: 1.25rem 0 1.5rem;
        padding: 1rem 1.25rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
    }
    .rapport-print-area .stat-box {
        padding: 0.5rem 0;
    }
    .rapport-print-area .stat-box .number {
        font-size: 1.25rem;
        font-weight: 700;
        color: #2d4a3e;
    }
    .rapport-print-area .stat-box .label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #64748b;
    }
    .rapport-print-area h3 {
        margin: 1.25rem 0 0.6rem;
        padding-bottom: 0.35rem;
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        border-bottom: 1px solid #e2e8f0;
    }
    .rapport-print-area table.data-table {
        font-size: 9pt;
        margin-bottom: 1rem;
    }
    .rapport-print-area table.data-table th,
    .rapport-print-area table.data-table td {
        padding: 0.4rem 0.6rem;
        border: 1px solid #e2e8f0;
    }
    .rapport-print-area table.data-table th {
        background: #f1f5f9;
        font-weight: 600;
        color: #334155;
    }
    .rapport-print-area table.data-table tbody tr:nth-child(even) {
        background: #fafbfc;
    }
    .rapport-print-area table.data-table {
        page-break-inside: auto;
    }
    .rapport-print-area table.data-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
