/* Reset et variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVBAR ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.3s, box-shadow 0.3s;
    /* needed for absolute nav-menu on mobile */
    position: -webkit-sticky;
    position: sticky;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    padding: 0 56px; z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 24px rgba(0,0,0,.08);
}
nav::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
      height: 2px; background: linear-gradient(90deg, transparent, rgba(200,169,110,.5), transparent);
    }

.navbar {
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    flex-shrink: 0;
}

.brand-dot--sm {
    width: 8px;
    height: 8px;
}

/* Nav menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.4rem 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--primary-color);
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Nav actions (cart + hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--bg-light);
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}

.hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger--open span:nth-child(2) {
    opacity: 0;
}

.hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections */
section {
    /* padding: 4rem 0; */
    padding: 0 0 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Preview Section */
.about-preview {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* About Section */
.about-content-section {
    background-color: var(--bg-light);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Service Detail */
.service-detail-section {
    padding: 4rem 0;
}

.service-detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-detail-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.service-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FLASH MESSAGES ===== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    pointer-events: all;
    animation: slideInRight 0.35s cubic-bezier(.18,.89,.32,1.28);
    transition: opacity 0.4s ease;
    max-width: 380px;
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    padding: 0 0.25rem;
    transition: opacity 0.2s;
    color: inherit;
}

.flash-close:hover { opacity: 1; }

/* Legacy .alert kept for compatibility */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    text-align: center;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid var(--success-color); }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid var(--error-color); }

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    margin-top: 4rem;
}

.footer-wave {
    display: block;
    width: 100%;
    height: 80px;
    color: var(--bg-color);
    margin-bottom: -4px;
    transform: translateY(-1px);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-body {
    padding: 3rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 0.625rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.footer-contact-list a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-made {
    color: rgba(255,255,255,0.3);
}

.text-center {
    text-align: center;
}

.no-services {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .nav-menu--open {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .site-header {
        position: sticky;
    }
}

/* ===== BOUTIQUE ===== */

/* Panier Navbar Badge */
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.4rem;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.nav-cart:hover {
    transform: scale(1.15);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Boutique Header */
.boutique-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.boutique-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.boutique-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Layout boutique */
.boutique-section {
    padding: 2.5rem 0 4rem;
}

.boutique-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar catégories */
.boutique-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.boutique-sidebar h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.categorie-list {
    list-style: none;
}

.categorie-list li {
    margin-bottom: 0.25rem;
}

.categorie-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.categorie-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.categorie-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}




































/* ----------------------------- */
.facture-num {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-color);
}

.confirmation-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* États commande badges */
.badge-etat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-en_attente  { background: #fef3c7; color: #92400e; }
.badge-confirmee   { background: #dbeafe; color: #1e40af; }
.badge-en_cours    { background: #e0f2fe; color: #0369a1; }
.badge-livree      { background: #d1fae5; color: #065f46; }
.badge-annulee     { background: #fee2e2; color: #991b1b; }

/* Badges admin avec couleurs supplémentaires */
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* admin-empty */
.admin-empty {
    text-align: center;
    padding: 3rem;
    color: var(--admin-secondary);
}

/* Form row 2 colonnes */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Sidebar section title */
.sidebar-section-title {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Responsive boutique */
@media (max-width: 900px) {
    .boutique-layout {
        grid-template-columns: 1fr;
    }

    .boutique-sidebar {
        position: static;
    }

    .produit-detail-layout {
        grid-template-columns: 1fr;
    }

    .panier-layout,
    .commande-layout {
        grid-template-columns: 1fr;
    }

    .panier-summary-card,
    .commande-recap {
        position: static;
    }
}
