/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { color: #222; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Layout === */
.nav-container, .footer-container, .main-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content { min-height: 60vh; padding-top: 20px; padding-bottom: 40px; }
.main-content.main-full { max-width: none; padding: 0; }

/* === Header === */
.site-header { background: #111; color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 3px; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo:hover { text-decoration: none; }
.nav-links, .nav-actions { display: flex; gap: 15px; }
.nav-links a, .nav-actions a { color: #ccc; font-size: 0.9rem; }
.nav-links a:hover, .nav-actions a:hover { color: #fff; }
.cart-link { font-weight: 600; }
.btn-link { background: none; border: none; color: #ccc; font-size: 0.9rem; cursor: pointer; padding: 0; font-family: inherit; }
.btn-link:hover { color: #fff; text-decoration: underline; }

/* === Messages === */
.messages { max-width: 1200px; margin: 10px auto; padding: 0 20px; }
.alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* === Buttons === */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 4px; font-size: 0.95rem; cursor: pointer; text-align: center; transition: opacity .2s; }
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: #111; color: #fff; }
.btn-secondary { background: #e9e9e9; color: #333; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-small { padding: 5px 10px; font-size: 0.8rem; }
.btn-detail { padding: 6px 14px; font-size: 0.82rem; background: #111; color: #fff; border-radius: 4px; font-weight: 500; letter-spacing: 0.3px; }
.btn-large { width: 100%; padding: 14px; font-size: 1.1rem; margin-top: 15px; }

/* === Forms === */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #111; outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.errorlist { color: #dc3545; font-size: 0.85rem; margin-top: 3px; }
.inline-form { display: inline; }
.qty-input { width: 60px !important; text-align: center; }

/* === Hero Home === */
.hero-home {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 100px 20px 90px;
    position: relative;
    overflow: hidden;
}
.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
/* Media plein écran (vidéo ou image de fond – à activer après shooting) */
.hero-home-media { position: absolute; inset: 0; z-index: 0; }
.hero-home-media img,
.hero-home-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-home-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}
.hero-home h1 {
    font-size: 4rem;
    letter-spacing: 10px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
}
.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 35px;
    font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-block;
    padding: 13px 32px;
    background: #fff;
    color: #111;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.15); text-decoration: none; }
.btn-hero-outline {
    display: inline-block;
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }

/* === Featured Products === */
.home-featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-header { text-align: center; margin-bottom: 35px; }
.section-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: #777; font-size: 1rem; }
.section-footer { text-align: center; margin-top: 30px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.featured-grid.featured-single {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
}
.featured-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: #333;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    text-decoration: none;
}
.featured-image-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}
.featured-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.featured-card:hover .featured-image { transform: scale(1.04); }
.featured-no-image {
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 5px;
}
.featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #111;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
}
.featured-tag-out { background: #dc3545; }
.featured-info { padding: 18px 20px 22px; }
.featured-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.featured-price { font-size: 1.15rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.featured-desc { font-size: 0.88rem; color: #777; line-height: 1.5; margin-bottom: 10px; }
.featured-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.3px;
    transition: letter-spacing 0.2s;
}
.featured-card:hover .featured-cta { letter-spacing: 1px; }

/* === Values === */
.home-values {
    background: #f9f9f9;
    padding: 55px 20px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.value-card { text-align: center; padding: 10px; }
.value-icon { font-size: 2rem; margin-bottom: 10px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* === CTA Section === */
.home-cta {
    text-align: center;
    padding: 55px 20px;
}
.home-cta-content { max-width: 550px; margin: 0 auto; }
.home-cta h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.home-cta p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.home-cta .btn-hero-outline { color: #111; border-color: #111; }
.home-cta .btn-hero-outline:hover { background: #111; color: #fff; }

/* === Story Page (Notre histoire) === */

/* Intro */
.story-intro {
    background: #0a0a0a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 60px;
    position: relative;
}
.story-intro-inner { position: relative; }
.story-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 25px;
}
.story-intro h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    line-height: 1;
    margin-bottom: 18px;
}
.story-k {
    display: inline-block;
    transform: translateY(-3px);
}
.story-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    line-height: 1.7;
}
.story-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.2);
    font-size: 1.5rem;
    animation: story-bounce 2s infinite;
}
@keyframes story-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Narrow container */
.story-narrow { max-width: 620px; margin: 0 auto; padding: 0 20px; }

/* Text section */
.story-text { padding: 80px 20px 60px; }
.story-big {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #111;
}
.story-text p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 14px;
}
.story-text p:last-child {
    font-weight: 600;
    color: #111;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Marquee */
.story-marquee {
    overflow: hidden;
    padding: 22px 0;
    background: #111;
    color: rgba(255,255,255,0.3);
}
.story-marquee-track {
    white-space: nowrap;
    animation: story-scroll 18s linear infinite;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
}
@keyframes story-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Split columns */
.story-split { padding: 70px 20px; }
.story-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 950px;
    margin: 0 auto;
}
.story-col h2 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: #111;
}
.story-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}
.story-col-right { padding-top: 50px; }

/* Quote */
.story-quote {
    background: #D6D1C8;
    padding: 70px 20px;
    text-align: center;
}
.story-quote blockquote {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    color: #111;
    font-style: normal;
}

/* Programme Athlète */
.story-athletes { padding: 70px 20px; background: #f9f9f9; }
.story-athletes-inner { max-width: 900px; margin: 0 auto; }
.story-athletes-title { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #111; }
.story-athletes-intro { text-align: center; font-size: 0.95rem; color: #555; line-height: 1.7; max-width: 650px; margin: 0 auto 40px; }
.story-athletes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.story-athletes-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}
.story-athletes-icon { font-size: 2rem; margin-bottom: 14px; }
.story-athletes-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #111; }
.story-athletes-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* Clubs */
.story-clubs { padding: 70px 20px; }
.story-clubs h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #111;
}
.story-clubs p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}
.story-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.story-link:hover { border-color: transparent; text-decoration: none; }

/* Final CTA */
.story-final {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}
.story-final-inner { max-width: 500px; margin: 0 auto; }
.story-final-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

/* === Page Sections === */
.page-section { padding: 40px 0; }
.page-section h1 { font-size: 1.8rem; margin-bottom: 20px; }
.page-section h2 { font-size: 1.3rem; margin: 25px 0 10px; }
.home-section { text-align: center; padding: 40px 20px; }

/* === Products === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.product-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 300px; object-fit: cover; }
.product-card h3 { padding: 10px 15px 5px; font-size: 1rem; }
.product-card .product-price { padding: 0 15px 15px; font-weight: 700; color: #111; }

/* === Product Detail === */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-gallery { position: relative; }
.product-main-image { margin-bottom: 10px; }
.product-detail-image { width: 100%; border-radius: 6px; }
.product-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; opacity: 0.7; transition: all .2s; }
.product-thumb:hover { opacity: 1; border-color: #aaa; }
.product-info h1 { font-size: 1.5rem; }
.product-price { font-size: 1.3rem; font-weight: 700; margin: 10px 0; }
.product-description { margin-bottom: 20px; color: #555; }
.stock-info { margin-top: 8px; font-size: 0.9rem; }
.in-stock { color: #28a745; }
.out-of-stock { color: #dc3545; }

/* Size selector */
.size-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.size-btn { width: 44px; height: 44px; border: 2px solid #ddd; border-radius: 4px; background: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.size-btn:hover { border-color: #888; }
.size-btn.active { border-color: #111; background: #111; color: #fff; }

/* Color dots */
.color-selector { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.color-dot { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all .2s; outline: none; box-shadow: 0 0 0 1px #ccc; }
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: #111; box-shadow: 0 0 0 1px #111; transform: scale(1.15); }
#color-label { font-weight: 400; color: #555; }

/* Add to cart button disabled */
.btn-add-cart { transition: all .2s; }
.btn-add-cart:disabled { background: #bbb; cursor: not-allowed; opacity: 0.6; }
.no-image { display: flex; align-items: center; justify-content: center; height: 300px; background: #f0f0f0; border-radius: 6px; color: #999; font-size: 1.1rem; }

/* === Cart Table === */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th, .cart-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.cart-table th { font-weight: 600; border-bottom: 2px solid #ddd; }
.stock-warn { display: block; color: #e67e22; font-size: 0.78rem; margin-top: 2px; }
.cart-summary { text-align: right; }
.cart-total { font-size: 1.2rem; margin-bottom: 15px; }

/* === Checkout === */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.checkout-summary { background: #f9f9f9; padding: 25px; border-radius: 6px; height: fit-content; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.summary-line { display: flex; justify-content: space-between; margin: 5px 0; }
.summary-line.total { font-size: 1.1rem; font-weight: 700; margin-top: 10px; }
.summary-line.discount { color: #28a745; }
.club-code-section .form-group { display: flex; gap: 10px; }
.club-code-section .form-group input { flex: 1; }
#payment-element { margin: 15px 0; }
.payment-info-summary { background: #f0f0f0; padding: 12px 15px; border-radius: 4px; font-size: 0.9rem; color: #555; margin-bottom: 15px; }
#payment-message { color: #dc3545; margin: 10px 0; }
.hidden { display: none; }

/* === Orders Table === */
.orders-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.orders-table th, .orders-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.orders-table th { font-weight: 600; border-bottom: 2px solid #ddd; }
.status-badge { padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled, .status-failed { background: #f8d7da; color: #721c24; }
.order-totals { margin: 20px 0; }
.order-totals .total { font-size: 1.2rem; }
.order-summary-box { background: #f9f9f9; padding: 15px; border-radius: 6px; margin: 15px 0; }

/* === Clubs === */
.clubs-page { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.clubs-intro { color: #666; margin-bottom: 30px; }
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.club-card { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; }
.club-card-visual { height: 200px; overflow: hidden; background: #f0f0f0; }
.club-photo { width: 100%; height: 100%; object-fit: cover; }
.club-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: #ccc; }
.club-card-body { padding: 20px; }
.club-logo-small { max-height: 40px; margin-bottom: 10px; }
.club-card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.club-meta { font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.club-sports { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; }
.club-history { font-size: 0.9rem; color: #555; line-height: 1.5; margin-bottom: 12px; }
.club-instagram { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; text-decoration: none; }
.club-instagram:hover { text-decoration: underline; }

/* === Dashboard === */
.dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 30px; }
.metric-card { background: #f9f9f9; padding: 20px; border-radius: 6px; text-align: center; }
.metric-card h3 { font-size: 0.85rem; color: #666; margin-bottom: 5px; }
.metric-value { font-size: 1.8rem; font-weight: 700; }
.export-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* === Auth === */
.auth-page { max-width: 450px; margin: 0 auto; }
.auth-form { margin-bottom: 20px; }

/* === Legal === */
.legal-content { line-height: 1.8; max-width: 800px; }
.legal-content h2 { font-size: 1.15rem; margin-top: 30px; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.legal-content h3 { font-size: 1rem; margin-top: 18px; margin-bottom: 8px; }
.legal-content ul { margin: 10px 0 15px 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 4px; }
.legal-content p { margin-bottom: 10px; }
.legal-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 0.88rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.legal-table th, .legal-table td { padding: 10px 14px; border: 1px solid #e0e0e0; text-align: left; font-size: 0.92rem; }
.legal-table th { background: #f8f8f8; font-weight: 600; }
.legal-table tr:nth-child(even) td { background: #fafafa; }
.legal-update { margin-top: 30px; font-size: 0.85rem; color: #999; font-style: italic; }

/* === Addresses === */
.addresses-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-bottom: 20px; }
.address-card { border: 1px solid #eee; border-radius: 6px; padding: 15px; }
.address-actions { display: flex; gap: 8px; margin-top: 10px; }

/* === Footer === */
.site-footer { background: #111; color: #ccc; padding: 40px 0 20px; margin-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 10px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 15px; font-size: 0.85rem; }

/* === Backoffice === */
.bo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.bo-header h1 { margin-bottom: 0; }

.bo-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; margin-bottom: 25px; }
.bo-card h2 { font-size: 1.15rem; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.bo-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.bo-card-header h2 { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.bo-table { width: 100%; border-collapse: collapse; }
.bo-table th, .bo-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.bo-table th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #666; border-bottom: 2px solid #ddd; }
.bo-table tbody tr:hover { background: #fafafa; }

.bo-thumb-cell { width: 60px; }
.bo-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.bo-no-img { color: #ccc; }

.bo-actions { white-space: nowrap; display: flex; gap: 5px; }
.text-muted { color: #999; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }

.bo-empty { text-align: center; padding: 60px 20px; color: #999; }
.bo-empty p { margin-bottom: 15px; font-size: 1.1rem; }

.bo-product-form .form-group input[type="text"],
.bo-product-form .form-group input[type="number"],
.bo-product-form .form-group select,
.bo-product-form .form-group textarea { max-width: 100%; }

.bo-formset-row { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.bo-formset-row:last-child { border-bottom: none; }
.bo-formset-fields { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.bo-formset-fields .form-group { flex: 1; min-width: 150px; }
.bo-formset-preview { flex: 0 0 80px; }
.bo-preview-img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; }
.bo-formset-delete { margin-top: 5px; }
.delete-label { font-size: 0.85rem; color: #dc3545; cursor: pointer; }
.delete-label input { margin-right: 4px; }

/* Image grid */
.bo-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.bo-image-card { border: 2px dashed #ddd; border-radius: 8px; overflow: hidden; background: #fafafa; transition: border-color .2s; }
.bo-image-card.has-data { border-style: solid; border-color: #e0e0e0; }
.bo-image-card.drag-over { border-color: #111; background: #f0f0f0; }
.bo-image-preview { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f5f5f5; }
.bo-img-thumb { width: 100%; height: 100%; object-fit: cover; }
.bo-img-placeholder { text-align: center; color: #bbb; cursor: pointer; padding: 20px; }
.bo-img-placeholder span { font-size: 2rem; display: block; }
.bo-img-placeholder small { font-size: 0.8rem; }
.bo-img-placeholder:hover { color: #888; }
.bo-image-fields { padding: 10px; }
.bo-image-file-wrap { margin-bottom: 6px; }
.bo-image-file-wrap input[type="file"] { font-size: 0.78rem; width: 100%; }
.bo-img-input { width: 100%; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; margin-bottom: 5px; }
.bo-image-meta { display: flex; gap: 6px; }
.bo-image-actions { margin-top: 4px; }

/* Variant generator */
.bo-variant-generator { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 18px; }
.bo-gen-row { display: flex; gap: 25px; flex-wrap: wrap; }
.bo-gen-group { flex: 1; min-width: 200px; }
.bo-gen-group > label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.bo-gen-checks { display: flex; gap: 4px; flex-wrap: wrap; }
.bo-gen-check { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; cursor: pointer; user-select: none; transition: all .15s; }
.bo-gen-check:hover { border-color: #999; }
.bo-gen-check:has(input:checked) { background: #111; color: #fff; border-color: #111; }
.bo-gen-check input { display: none; }
.bo-gen-color-input { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.bo-gen-color-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bo-color-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: #fff; border: 1px solid #ddd; border-radius: 20px; font-size: 0.82rem; }
.bo-color-tag-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }
.bo-color-tag-x { background: none; border: none; color: #999; cursor: pointer; font-size: 1rem; padding: 0 2px; }
.bo-color-tag-x:hover { color: #dc3545; }

.bo-variant-table td { padding: 6px 8px; }
.bo-variant-table input, .bo-variant-table select { padding: 7px; font-size: 0.9rem; }
.bo-variant-table select { min-width: 80px; }
.bo-variant-table input[type="text"] { min-width: 100px; }

/* Color hex preview */
.color-hex-cell { white-space: nowrap; }
.color-hex-preview { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ddd; vertical-align: middle; margin-right: 4px; }
.color-hex-input { width: 80px !important; min-width: 80px !important; font-family: monospace; font-size: 0.82rem !important; vertical-align: middle; }

/* Remove row button */
.btn-remove-row { background: none; border: none; color: #ccc; font-size: 1.4rem; cursor: pointer; padding: 2px 6px; line-height: 1; border-radius: 4px; transition: all .15s; }
.btn-remove-row:hover { color: #dc3545; background: #fef2f2; }
.bo-variant-actions { white-space: nowrap; text-align: center; }
.hidden-delete { display: none; }
.marked-for-delete { opacity: 0.4; position: relative; }
.marked-for-delete td, .marked-for-delete .bo-image-preview, .marked-for-delete .bo-image-fields { text-decoration: line-through; }
.marked-for-delete .btn-remove-row { color: #28a745; text-decoration: none; }
.marked-for-delete .btn-remove-row:hover { color: #1a7431; background: #f0fdf4; }

.help-text { font-size: 0.85rem; color: #888; margin-bottom: 15px; }
.field-error { color: #dc3545; font-size: 0.82rem; margin: 2px 0 0; }
.input-error { border-color: #dc3545 !important; box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15); }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 8px; }
.checkbox-label input[type="checkbox"] { width: auto; }

.bo-form-actions { display: flex; gap: 15px; margin-top: 10px; }
.bo-form-actions .btn-large { width: auto; }

.bo-delete-confirm { max-width: 500px; margin: 40px auto; text-align: center; }
.bo-delete-confirm h1 { margin-bottom: 15px; }
.bo-delete-confirm p { margin-bottom: 10px; }
.bo-delete-confirm .bo-form-actions { justify-content: center; margin-top: 20px; }

/* === Saved Addresses (Checkout) === */
.saved-addresses { margin-bottom: 20px; padding: 15px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px; }
.saved-addresses label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.saved-addresses select { width: 100%; padding: 8px 10px; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 0.9rem; font-family: inherit; background: #fff; }

/* Slide animation for address fields */
#address-fields { overflow: hidden; max-height: 600px; opacity: 1; transition: max-height 0.35s ease, opacity 0.25s ease; }
#address-fields.collapsed { max-height: 0; opacity: 0; pointer-events: none; }

/* === Settings Tabs === */
.settings-tabs { display: flex; gap: 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 25px; overflow-x: auto; }
.settings-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.settings-tab:hover { color: #333; }
.settings-tab.active { color: #111; border-bottom-color: #111; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* === Settings Form === */
.settings-form { max-width: 800px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.settings-grid .form-group { display: flex; flex-direction: column; gap: 4px; }
.settings-grid .form-group label { font-weight: 600; font-size: 0.9rem; color: #333; }
.settings-grid .form-group input,
.settings-grid .form-group textarea,
.settings-grid .form-group select { padding: 8px 10px; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 0.9rem; font-family: inherit; }
.settings-grid .form-group input:focus,
.settings-grid .form-group textarea:focus { outline: none; border-color: #111; }
.settings-grid .form-group-full { grid-column: 1 / -1; }
.field-help { font-size: 0.82rem; color: #666; }
.logo-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-preview img { max-height: 60px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px; background: #fafafa; }
.logo-filename { font-size: 0.82rem; color: #888; }
.ae-ht-display { padding: 10px 14px; background: #f0f4f8; border: 1px solid #d0d8e0; border-radius: 4px; font-size: 0.95rem; color: #333; }
.ae-zone-info { padding: 12px 16px; background: #fffbeb; border: 1px solid #f0d060; border-radius: 4px; font-size: 0.88rem; color: #665500; line-height: 1.6; }

/* === Membre Fondateur === */

.member-hero {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 80px 20px 70px;
    position: relative;
}
.member-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.member-hero-inner { position: relative; max-width: 650px; margin: 0 auto; }
.member-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.member-hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 30px;
}
.member-price { margin-bottom: 20px; }
.member-price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.member-price-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.member-cta-btn { font-size: 1rem; padding: 15px 40px; }
.member-spots {
    margin-top: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

/* Présentation */
.member-presentation { padding: 70px 20px; }
.member-section-inner { max-width: 1000px; margin: 0 auto; }
.member-pres-content { max-width: 550px; }
.member-presentation .member-section-inner { display: flex; gap: 50px; align-items: center; }
.member-presentation h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.4; margin-bottom: 18px; color: #111; }
.member-presentation p { font-size: 0.98rem; line-height: 1.8; color: #555; margin-bottom: 12px; }
.member-pres-image { flex: 0 0 350px; }

/* Avantages */
.member-benefits { padding: 70px 20px; background: #f9f9f9; }
.member-section-title { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 40px; color: #111; }
.member-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member-benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.member-benefit-icon { font-size: 2rem; margin-bottom: 14px; }
.member-benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #111; }
.member-benefit-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* Galerie */
.member-gallery { padding: 60px 20px; }
.member-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 50px 20px;
    color: #aaa;
}
.member-image-placeholder span { font-size: 1.1rem; font-weight: 600; }
.member-image-placeholder small { font-size: 0.82rem; margin-top: 6px; }
.member-image-placeholder-tall { min-height: 300px; }

/* CTA final */
.member-final {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}
.member-final-inner { max-width: 500px; margin: 0 auto; }
.member-final-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

/* Section paiement Membre Fondateur */
.member-payment { padding: 60px 20px; background: #fff; }
.member-payment-inner { max-width: 500px; margin: 0 auto; }
.member-payment h2 { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; color: #111; }
#member-payment-message { color: #dc3545; text-align: center; margin: 12px 0; font-size: 0.9rem; }
#member-submit-btn { margin-top: 15px; }
#member-cancel-btn { margin-top: 8px; background: transparent; border: 1px solid #ddd; color: #666; }
#member-cancel-btn:hover { background: #f5f5f5; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-home { padding: 60px 20px 50px; }
    .hero-home h1 { font-size: 2.5rem; letter-spacing: 5px; }
    .hero-tagline { font-size: 1rem; }
    .featured-image, .featured-no-image { height: 280px; }
    .featured-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; gap: 20px; }
    .story-intro h1 { font-size: 2.5rem; letter-spacing: 5px; }
    .story-big { font-size: 1.3rem; }
    .story-split-inner { grid-template-columns: 1fr; gap: 30px; }
    .story-col-right { padding-top: 0; }
    .story-quote blockquote { font-size: 1.2rem; }
    .story-athletes-grid { grid-template-columns: 1fr; }
    .bo-formset-fields { flex-direction: column; }
    .bo-variant-table { font-size: 0.85rem; }
    .settings-grid { grid-template-columns: 1fr; }
    .member-hero h1 { font-size: 2rem; letter-spacing: 3px; }
    .member-price-amount { font-size: 2rem; }
    .member-presentation .member-section-inner { flex-direction: column; }
    .member-pres-image { flex: none; width: 100%; }
    .member-benefits-grid { grid-template-columns: 1fr; }
    .member-gallery-grid { grid-template-columns: 1fr; }
}
