/* ===== RESET & BASE ===== */
/* Google Fonts chargées via <link> dans le HTML pour éviter le blocage du rendu */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a2a3a;
    background: #fafafa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TOP BANNER ===== */
.top-banner {
    background: #1a2a3a;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== HEADER / NAV ===== */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; }
.footer-logo-img { height: 60px; width: auto; margin-bottom: 14px; }
nav { display: flex; gap: 32px; }
nav a {
    font-size: 0.82rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: #1a2a3a; position: relative;
    padding-bottom: 4px; transition: color 0.3s;
}
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: #1a2a3a; transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; padding: 8px; transition: transform 0.2s; }
.cart-btn:hover { transform: scale(1.1); }
.cart-btn svg { width: 22px; height: 22px; stroke: #1a2a3a; fill: none; stroke-width: 1.5; }
.cart-count {
    position: absolute; top: 0; right: -2px;
    background: #e74c3c; color: #fff;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 0.63rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.cart-count.visible { opacity: 1; }
@keyframes cartBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
.cart-count.bounce { animation: cartBounce 0.35s ease; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: #1a2a3a; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
    position: relative; height: 80vh; min-height: 480px;
    overflow: hidden; display: flex;
    align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #34495e 100%);
}
.hero-bike {
    position: absolute; right: -5%; bottom: -10%;
    width: 60%; opacity: 0.12;
}
.hero-bike svg { width: 100%; height: auto; }
.hero-content {
    position: relative; z-index: 2;
    text-align: center; color: #fff;
    max-width: 780px; padding: 0 24px;
}
.hero-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 30px; padding: 8px 22px;
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 2.5px; margin-bottom: 24px;
    backdrop-filter: blur(4px); background: rgba(255,255,255,0.07);
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 18px;
}
.hero p { font-size: 1.05rem; font-weight: 300; opacity: 0.85; max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: #fff; color: #1a2a3a;
    padding: 13px 32px; border-radius: 50px;
    font-weight: 600; font-size: 0.88rem;
    letter-spacing: 0.3px; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.45); color: #fff;
    padding: 13px 32px; border-radius: 50px;
    font-weight: 500; font-size: 0.88rem;
    letter-spacing: 0.3px; transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== SECTIONS ===== */
section { padding: 90px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px; color: #7a8a9a; margin-bottom: 10px; font-weight: 500; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 16px; color: #1a2a3a; }
.section-desc { font-size: 1rem; color: #5a6a7a; max-width: 580px; line-height: 1.7; font-weight: 400; }

/* ===== SERVICES ===== */
#services { background: #fff; }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-desc { margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.service-card {
    background: #fafafa; border-radius: 14px;
    padding: 32px 24px; text-align: center;
    transition: all 0.3s; border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.07); border-color: #e8e8e8; }
.service-icon {
    width: 58px; height: 58px; background: #1a2a3a;
    border-radius: 14px; display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.service-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.5; }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.87rem; color: #6a7a8a; line-height: 1.6; margin-bottom: 14px; }
.service-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; color: #1a2a3a; }
.service-price span { font-size: 0.78rem; font-weight: 400; color: #8a9aaa; }

/* ===== ABOUT ===== */
#about { background: #fafafa; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-image {
    border-radius: 18px; overflow: hidden;
    aspect-ratio: 4/3; background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex; align-items: center; justify-content: center;
}
.about-image svg { width: 50%; opacity: 0.3; }
.about-text .section-desc { margin-bottom: 20px; }
.about-values { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.value-item { display: flex; align-items: flex-start; gap: 12px; }
.value-check {
    width: 26px; height: 26px; min-width: 26px;
    background: #e8f5e9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.value-check svg { width: 13px; height: 13px; stroke: #2e7d32; fill: none; stroke-width: 2.5; }
.value-item p { font-size: 0.92rem; color: #4a5a6a; }
.value-item strong { font-weight: 600; }

/* ===== BOUTIQUE PAGE ===== */
.boutique-hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    padding: 60px 24px 50px; text-align: center; color: #fff;
}
.boutique-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.boutique-hero p { font-size: 0.95rem; opacity: 0.75; }
.boutique-toolbar {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; flex-wrap: wrap; gap: 16px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
    padding: 8px 18px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 500;
    color: #6a7a8a; background: #f0f0f0; transition: all 0.3s;
}
.filter-tab:hover, .filter-tab.active { background: #1a2a3a; color: #fff; }
.sort-select {
    padding: 8px 16px; border: 1.5px solid #e0e4e8;
    border-radius: 10px; font-family: inherit;
    font-size: 0.82rem; color: #4a5a6a; background: #fff;
    outline: none; cursor: pointer;
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.product-card {
    background: #fff; border-radius: 14px;
    overflow: hidden; transition: all 0.3s; border: 1px solid #eee;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.07); }
.product-img {
    aspect-ratio: 1; background: linear-gradient(145deg, #e8edf2, #d5dde6);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.product-img svg { width: 38%; opacity: 0.2; }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: #1a2a3a; color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.product-info { padding: 18px; }
.product-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-info .product-desc { font-size: 0.8rem; color: #7a8a9a; margin-bottom: 14px; line-height: 1.5; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: #1a2a3a; }
.add-to-cart {
    width: 38px; height: 38px; background: #1a2a3a;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center; transition: all 0.3s;
}
.add-to-cart:hover { background: #2c3e50; transform: scale(1.1); }
.add-to-cart svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

/* ===== CONTACT ===== */
#contact { background: #fafafa; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: #1a2a3a; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.5; }
.contact-item h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: #6a7a8a; }
.contact-form {
    background: #fff; border-radius: 18px;
    padding: 36px; box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; color: #3a4a5a; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e0e4e8; border-radius: 10px;
    font-family: inherit; font-size: 0.88rem;
    color: #1a2a3a; background: #fafafa;
    transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #1a2a3a; background: #fff;
    box-shadow: 0 0 0 3px rgba(26,42,58,0.07);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
    width: 100%; background: #1a2a3a; color: #fff;
    padding: 13px 28px; border-radius: 50px;
    font-weight: 600; font-size: 0.88rem;
    letter-spacing: 0.3px; transition: all 0.3s;
}
.btn-submit:hover { background: #2c3e50; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.13); }

/* ===== FOOTER ===== */
footer { background: #1a2a3a; color: #fff; padding: 56px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo-img { filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 10px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; color: rgba(255,255,255,0.45); }
.footer-col a { display: block; font-size: 0.87rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 28px; font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center; transition: all 0.3s;
}
.social-links a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }
.social-links svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.65); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: -440px;
    width: 400px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 2001;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #eee;
}
.cart-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; }
.cart-close { padding: 8px; }
.cart-close svg { width: 18px; height: 18px; stroke: #1a2a3a; fill: none; stroke-width: 2; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; padding: 44px 0; color: #8a9aaa; font-size: 0.92rem; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item-img {
    width: 64px; height: 64px; min-width: 64px;
    background: #f0f3f6; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.cart-item-img svg { width: 50%; opacity: 0.25; }
.cart-item-details { flex: 1; }
.cart-item-details h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }
.cart-item-details .item-price { font-size: 0.82rem; color: #6a7a8a; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
    width: 26px; height: 26px; border: 1px solid #ddd;
    border-radius: 6px; display: flex; align-items: center;
    justify-content: center; font-size: 0.95rem; color: #4a5a6a; transition: all 0.2s;
}
.qty-btn:hover { background: #f0f0f0; }
.qty-num { font-size: 0.85rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item-remove { color: #e74c3c; font-size: 0.75rem; cursor: pointer; margin-top: 4px; display: inline-block; }
.cart-footer { padding: 20px 24px; border-top: 1px solid #eee; background: #fafafa; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total span { font-size: 0.95rem; color: #5a6a7a; }
.cart-total strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.btn-checkout {
    width: 100%; background: #1a2a3a; color: #fff;
    padding: 14px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s;
}
.btn-checkout:hover { background: #2c3e50; transform: translateY(-2px); }

/* ===== CHECKOUT MODAL ===== */
.checkout-modal {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.checkout-modal.open { opacity: 1; visibility: visible; }
.checkout-box {
    background: #fff; border-radius: 20px; padding: 36px;
    max-width: 500px; width: 90%; max-height: 85vh;
    overflow-y: auto; transform: translateY(20px); transition: transform 0.3s;
}
.checkout-modal.open .checkout-box { transform: translateY(0); }
.checkout-box h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin-bottom: 6px; }
.checkout-box .checkout-subtitle { color: #7a8a9a; font-size: 0.88rem; margin-bottom: 24px; }
.checkout-summary { background: #fafafa; border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.checkout-summary-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; color: #4a5a6a; }
.checkout-summary-total {
    display: flex; justify-content: space-between;
    padding-top: 10px; margin-top: 6px;
    border-top: 1px solid #e0e0e0;
    font-weight: 700; font-size: 1rem;
}
.payment-methods { display: flex; gap: 8px; margin-bottom: 20px; }
.payment-method {
    flex: 1; padding: 11px; border: 1.5px solid #e0e4e8;
    border-radius: 10px; text-align: center;
    font-size: 0.8rem; font-weight: 500; color: #5a6a7a; transition: all 0.3s;
}
.payment-method.selected { border-color: #1a2a3a; color: #1a2a3a; background: #f5f7fa; }
.payment-method:hover { border-color: #aaa; }
.checkout-btn {
    width: 100%; background: #27ae60; color: #fff;
    padding: 14px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s; margin-top: 6px;
}
.checkout-btn:hover { background: #219a52; }
.success-msg { text-align: center; padding: 36px 0; display: none; }
.success-msg.show { display: block; }
.success-msg .check-circle {
    width: 64px; height: 64px; background: #e8f5e9;
    border-radius: 50%; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
}
.success-msg .check-circle svg { width: 28px; height: 28px; stroke: #27ae60; fill: none; stroke-width: 2.5; }
.success-msg h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; margin-bottom: 6px; }
.success-msg p { color: #7a8a9a; font-size: 0.88rem; }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a2a3a; color: #fff;
    padding: 12px 24px; border-radius: 12px;
    font-size: 0.87rem; font-weight: 500;
    z-index: 5000; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== SKELETON LOADING ===== */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton-card { pointer-events: none; }
.skeleton-img {
    aspect-ratio: 1; border-radius: 0;
    background: linear-gradient(90deg, #e8edf2 25%, #f5f7fa 50%, #e8edf2 75%);
    background-size: 800px 100%; animation: shimmer 1.4s infinite;
}
.skeleton-body { padding: 18px; }
.skeleton-line {
    height: 12px; border-radius: 6px; margin-bottom: 10px;
    background: linear-gradient(90deg, #e8edf2 25%, #f5f7fa 50%, #e8edf2 75%);
    background-size: 800px 100%; animation: shimmer 1.4s infinite;
}
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w40 { width: 40%; height: 18px; margin-bottom: 0; }

/* ===== FADE ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav {
        position: fixed; top: 0; left: -100%;
        width: 80%; height: 100vh; background: #fff;
        flex-direction: column; padding: 72px 36px;
        gap: 24px; z-index: 1500; transition: left 0.3s;
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }
    nav.open { left: 0; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero { height: 65vh; }
    .form-row { grid-template-columns: 1fr; }
    .boutique-toolbar { flex-direction: column; align-items: flex-start; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .filter-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; padding-bottom: 4px; }
    .filter-tab { white-space: nowrap; }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    section { padding: 56px 16px; }
    .payment-methods { flex-direction: column; }
    .product-info { padding: 12px; }
    .product-info .product-desc { font-size: 0.75rem; }
}
