/* --- CONFIGURATION DU DESIGN GRUYÈRE : SIMPLE, CHALEUREUX, MODERNE --- */
:root {
    --bg-creme: #faf6f0;        
    --bg-white: #ffffff;        
    --color-sapin: #1c3d27;     
    --color-or: #df9a28;        
    --color-text: #2d251e;      
    --color-muted: #7a7169;     
    --color-success: #2e7d32;   
    --color-danger: #d32f2f;    
    --border-beige: #ebdcc9;    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow-soft: 0 8px 24px rgba(45, 37, 30, 0.06);
    --radius-smooth: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background-color: var(--bg-creme); color: var(--color-text); overflow-x: hidden; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* --- BARRE DE NAVIGATION --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(250, 246, 240, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-beige); transition: all 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--color-sapin); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--color-or); }
.logo-sub { font-weight: 400; font-family: var(--font-serif); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-btn { background: transparent; border: none; color: var(--color-text); padding: 8px 16px; font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem; cursor: pointer; border-radius: var(--radius-smooth); transition: all 0.2s ease; }
.nav-btn:hover { color: var(--color-sapin); background: rgba(28, 61, 39, 0.05); }
.btn-admin-nav { background: var(--color-sapin); color: var(--bg-white); border: none; font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem; padding: 10px 20px; border-radius: var(--radius-smooth); cursor: pointer; transition: all 0.2s ease; }
.btn-admin-nav:hover { background: #132a1b; transform: translateY(-1px); }

/* --- HERO SECTION --- */
.hero-section { position: relative; height: 90vh; background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(45, 37, 30, 0.3) 0%, rgba(250, 246, 240, 0.98) 100%); }
.hero-content { position: relative; z-index: 10; max-width: 800px; text-align: center; padding: 0 20px; margin-top: 60px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--color-sapin); background: var(--bg-white); border: 1px solid var(--border-beige); padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; box-shadow: var(--shadow-soft); }
.pulse-dot { width: 8px; height: 8px; background: var(--color-success); border-radius: 50%; animation: pulseGlow 2s infinite; }
@keyframes pulseGlow { 0% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.6; } }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; color: var(--color-sapin); line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.serif-text { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--color-or); }
.hero-content p { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 32px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--color-sapin); color: var(--bg-white); border: none; padding: 14px 28px; font-family: var(--font-sans); font-weight: 600; font-size: 1rem; border-radius: var(--radius-smooth); cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { background: #132a1b; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-white); border: 1px solid var(--border-beige); color: var(--color-text); padding: 14px 28px; font-family: var(--font-sans); font-weight: 500; font-size: 1rem; border-radius: var(--radius-smooth); cursor: pointer; transition: all 0.2s ease; }
.btn-secondary:hover { background: #fdfcfb; border-color: var(--color-muted); }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--color-muted); font-size: 1.4rem; cursor: pointer; animation: gentleBounce 2s infinite; }
@keyframes gentleBounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -8px); } 60% { transform: translate(-50%, -4px); } }

/* --- PRESENTATION SCROLLYTELLING --- */
.presentation-section { padding: 80px 0; background-color: var(--bg-creme); }
.scroll-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.scroll-text { padding-bottom: 15vh; }
.scroll-step { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.2; transition: all 0.4s ease; }
.scroll-step.active { opacity: 1; transform: scale(1.02); }
.step-badge { font-family: var(--font-sans); font-weight: 700; color: var(--color-or); font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 12px; }
.scroll-step h3 { font-size: 2rem; color: var(--color-sapin); margin-bottom: 16px; font-weight: 600; }
.scroll-step p { color: var(--color-muted); font-size: 1.05rem; line-height: 1.65; }
.info-card-terroir { background: var(--bg-white); border: 1px solid var(--border-beige); padding: 20px; border-radius: var(--radius-smooth); margin-top: 24px; box-shadow: var(--shadow-soft); }
.info-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5ebe0; font-size: 0.9rem; }
.info-line:last-child { border-bottom: none; }
.info-label { color: var(--color-muted); font-weight: 500; }
.info-value { color: var(--color-text); text-align: right; font-weight: 600; }
.scroll-visual { position: sticky; top: 120px; height: 60vh; border-radius: var(--radius-smooth); overflow: hidden; border: 1px solid var(--border-beige); box-shadow: var(--shadow-soft); }
.sticky-image-box img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }

/* --- GRILLE DOUBLE COLONNE --- */
.store-layout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; margin: 30px 0; align-items: start; }
.filter-dashboard { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; align-items: flex-start; width: 100%; }
.search-box-container { position: relative; width: 100%; max-width: 500px; }
.search-bar-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-muted); }
.search-field { width: 100%; padding: 12px 16px 12px 46px; background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); color: var(--color-text); font-size: 0.95rem; outline: none; transition: all 0.2s ease; box-shadow: var(--shadow-soft); }
.search-field:focus { border-color: var(--color-sapin); }
.search-field.text-small { padding: 8px 12px; font-size: 0.85rem; border-radius: 6px; width: 220px; box-shadow: none; }
.category-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pill-btn { padding: 8px 16px; border-radius: 20px; background: var(--bg-white); border: 1px solid var(--border-beige); font-size: 0.85rem; font-weight: 500; color: var(--color-text); cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-soft); }
.category-pill-btn:hover, .category-pill-btn.active { background: var(--color-sapin); color: var(--bg-white); border-color: var(--color-sapin); }

/* Catalogue & Error Grid */
.products-clean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); overflow: hidden; transition: all 0.25s ease; position: relative; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45, 37, 30, 0.1); }
.card-image-box { position: relative; width: 100%; height: 160px; background: #f0eae1; }
.card-image-box img { width: 100%; height: 100%; object-fit: cover; }
.card-category-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); border: 1px solid var(--border-beige); padding: 4px 10px; border-radius: 15px; font-size: 0.75rem; font-weight: 600; color: var(--color-sapin); }
.card-info-box { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.card-info-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.card-ref-text { font-size: 0.75rem; color: var(--color-muted); display: block; margin-bottom: 12px; text-transform: uppercase; }
.card-footer-layout { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid #fcfbf9; }
.card-price { font-size: 1.25rem; font-weight: 700; color: var(--color-sapin); }

.btn-add-cart { background: var(--bg-creme); border: 1px solid var(--border-beige); color: var(--color-sapin); font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.btn-add-cart:hover { background: var(--color-sapin); color: var(--bg-white); border-color: var(--color-sapin); }

.cart-sidebar { background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); box-shadow: var(--shadow-soft); position: sticky; top: 100px; display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
.cart-header { padding: 18px; background: var(--bg-creme); border-bottom: 1px solid var(--border-beige); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.05rem; color: var(--color-sapin); font-weight: 700; }
#cart-count { font-size: 0.75rem; background: var(--color-or); color: white; padding: 2px 8px; border-radius: 20px; font-weight: bold; }
.cart-items-container { padding: 15px; overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #f4eae1; font-size: 0.88rem; }
.cart-item:last-child { border-bottom: none; }
.cart-controls { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn { background: var(--bg-creme); border: 1px solid var(--border-beige); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; border-radius: 4px; }
.cart-qty-btn:hover { background: #ebdcc9; }
.cart-footer { padding: 18px; border-top: 1px solid var(--border-beige); background: var(--bg-white); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1rem; }
.cart-total strong { color: var(--color-sapin); font-size: 1.4rem; }
.btn-checkout { width: 100%; background: var(--color-success); color: white; border: none; padding: 14px; font-size: 1rem; font-weight: bold; border-radius: var(--radius-smooth); cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.15); }
.btn-checkout:disabled { background: #e2ded8; color: #a19c96; box-shadow: none; cursor: not-allowed; }
.btn-checkout:hover:not(:disabled) { background: #1f5c22; }
.cart-note { font-size: 0.72rem; color: var(--color-muted); text-align: center; margin-top: 8px; }

.success-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(28, 61, 39, 0.6); backdrop-filter: blur(5px); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.success-modal { background: white; padding: 35px; border-radius: 15px; text-align: center; max-width: 420px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.success-icon { font-size: 3.5rem; color: var(--color-success); margin-bottom: 12px; }
.text-success-alert { color: var(--color-success); font-weight: bold; text-align: center; margin-top: 15px; font-size: 0.95rem; }

/* --- ESPACE AUTHENTIFICATION GÉRANT --- */
.login-wrapper { height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); box-shadow: var(--shadow-soft); overflow: hidden; padding: 30px; }
.login-header { text-align: center; margin-bottom: 24px; }
.login-icon-top { font-size: 2rem; color: var(--color-or); margin-bottom: 12px; }
.login-header h3 { font-size: 1.4rem; color: var(--color-sapin); margin-bottom: 6px; }
.login-header p { color: var(--color-muted); font-size: 0.85rem; line-height: 1.4; }
.input-wrapper-clear { background: var(--bg-creme); border: 1px solid var(--border-beige); padding: 12px; border-radius: var(--radius-smooth); margin-bottom: 16px; }
.input-wrapper-clear input { background: transparent; border: none; color: var(--color-text); font-size: 1rem; width: 100%; outline: none; text-align: center; }
.btn-login-submit { width: 100%; background: var(--color-sapin); color: var(--bg-white); border: none; padding: 12px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-smooth); cursor: pointer; transition: all 0.2s ease; }
.btn-login-submit:hover { background: #132a1b; }
.error-text-alert { margin-top: 12px; font-size: 0.8rem; color: var(--color-danger); text-align: center; font-weight: 500; }

/* --- CONSOLE D'ADMINISTRATION COMPLÈTE --- */
.dashboard-admin-bg { background-color: #f5ebe0; min-height: 100vh; padding: 90px 0 40px; }
.admin-top-bar { max-width: 1240px; margin: 0 auto 24px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-beige); padding-bottom: 16px; flex-wrap: wrap; gap: 15px; }
.admin-title-zone h2 { font-size: 1.4rem; color: var(--color-sapin); font-weight: 700; }
.admin-subtitle { font-size: 0.8rem; color: var(--color-muted); }

.admin-tabs { display: flex; flex-wrap: wrap; background: var(--bg-white); padding: 4px; border-radius: var(--radius-smooth); border: 1px solid var(--border-beige); gap: 2px; }
.tab-button { padding: 8px 14px; border: none; background: transparent; color: var(--color-muted); font-weight: 600; font-size: 0.82rem; cursor: pointer; border-radius: 6px; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; }
.tab-button.active { background: var(--color-sapin); color: var(--bg-white); }
.btn-logout { background: transparent; border: 1px solid var(--color-danger); color: var(--color-danger); padding: 8px 14px; font-size: 0.85rem; font-weight: 600; border-radius: var(--radius-smooth); cursor: pointer; transition: all 0.2s ease; }
.btn-logout:hover { background: var(--color-danger); color: var(--bg-white); }

.admin-two-columns { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
.content-card { background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 20px; }
.content-card:last-child { margin-bottom: 0; }
.card-title-header { font-size: 1rem; color: var(--color-sapin); font-weight: 700; margin-bottom: 18px; border-left: 3px solid var(--color-or); padding-left: 8px; }
.search-and-title-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.search-and-title-header .card-title-header { margin-bottom: 0; }

.kpi-box { padding: 15px 0; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 650px; background: white; }
th { background: var(--bg-creme); color: var(--color-muted); font-size: 0.78rem; text-transform: uppercase; padding: 12px; border-bottom: 2px solid var(--border-beige); text-align: left; font-weight: 700; }
td { padding: 12px; border-bottom: 1px solid var(--border-beige); font-size: 0.88rem; color: var(--color-text); }
tr:hover td { background-color: #fafaf9; }

.btn-delete-sale { background: transparent; border: 1px solid var(--color-danger); color: var(--color-danger); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.btn-delete-sale:hover { background: var(--color-danger); color: white; }

/* Avis Clients en Cadrage */
.admin-feedback-container { display: flex; flex-direction: column; gap: 12px; max-height: 550px; overflow-y: auto; padding-right: 5px; }
.feedback-item-card { background: var(--bg-creme); border: 1px solid var(--border-beige); border-radius: var(--radius-smooth); padding: 16px; border-left: 4px solid #4a7a57; position: relative; }
.feedback-item-card.unread-border { border-left-color: var(--color-danger); }
.feedback-item-card strong { font-size: 0.95rem; color: var(--color-text); }
.feedback-item-card small { color: var(--color-muted); font-family: monospace; float: right; font-size: 0.75rem; margin-right: 70px; }
.feedback-item-card p { margin-top: 8px; font-size: 0.9rem; color: #443e38; line-height: 1.5; }

/* Manettes d'action Avis */
.feedback-actions-absolute { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.btn-action-fb { background: white; border: 1px solid var(--border-beige); border-radius: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-muted); transition: 0.2s; }
.btn-action-fb:hover { border-color: var(--color-sapin); color: var(--color-sapin); }
.btn-action-fb.delete:hover { border-color: var(--color-danger); color: var(--color-danger); }

/* --- COMPOSANTS DE FORMULAIRES COHÉRENTS --- */
.clean-form { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.form-item { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.form-item label { font-size: 0.8rem; font-weight: 600; color: var(--color-muted); }
.form-item input, .form-item select, .form-item textarea { width: 100%; box-sizing: border-box; padding: 10px; background: var(--bg-creme); border: 1px solid var(--border-beige); border-radius: 6px; color: var(--color-text); font-size: 0.9rem; outline: none; font-family: var(--font-sans); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--color-sapin); }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.file-input-clear { padding: 6px !important; font-size: 0.8rem; color: var(--color-muted); background: transparent !important; border: none !important; }
.form-buttons-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

.btn-save-main { background: var(--color-sapin); color: var(--bg-white); border: none; padding: 12px 20px; border-radius: var(--radius-smooth); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; flex-grow: 1; text-align: center; }
.btn-save-main:hover { background: #132a1b; }
.btn-cancel-link { background: transparent; border: none; color: var(--color-muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 10px; }
.btn-cancel-link:hover { color: var(--color-text); }

/* listes d'ajustements admin */
.admin-items-vertical-list { display: flex; flex-direction: column; gap: 8px; max-height: 600px; overflow-y: auto; padding-right: 4px; }
.admin-item-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg-creme); border: 1px solid var(--border-beige); padding: 12px; border-radius: var(--radius-smooth); gap: 12px; flex-wrap: wrap; }
.item-main-details { display: flex; align-items: center; gap: 12px; flex-grow: 1; min-width: 200px; }
.item-main-details img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border-beige); flex-shrink: 0; }
.text-details-box strong { font-size: 0.95rem; font-weight: 700; display: block; color: var(--color-text); }
.text-details-box span { font-size: 0.75rem; color: var(--color-muted); display: block; margin-top: 1px; }

/* Manettes rapides plus/moins */
.quick-stock-manager { display: flex; align-items: center; background: var(--bg-white); border: 1px solid var(--border-beige); border-radius: 6px; padding: 2px; gap: 2px; }
.btn-arrow-stock { background: transparent; border: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; font-size: 1.1rem; transition: background 0.15s; }
.btn-arrow-stock.plus { color: var(--color-success); }
.btn-arrow-stock.plus:hover { background: rgba(46, 125, 50, 0.1); }
.btn-arrow-stock.minus { color: var(--color-danger); }
.btn-arrow-stock.minus:hover { background: rgba(211, 47, 47, 0.1); }
.stock-number-display { font-size: 0.9rem; font-weight: 700; min-width: 30px; text-align: center; }

.row-action-buttons { display: flex; gap: 4px; }
.row-action-buttons button { width: 32px; height: 32px; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s; background: var(--bg-white); border: 1px solid var(--border-beige); display: flex; align-items: center; justify-content: center; }
.row-action-buttons .btn-row-edit { color: var(--color-or); }
.row-action-buttons .btn-row-edit:hover { background: #fff8e1; border-color: var(--color-or); }
.row-action-buttons .btn-row-delete { color: var(--color-danger); }
.row-action-buttons .btn-row-delete:hover { background: #ffebee; border-color: var(--color-danger); }

.backup-box-margin { margin-top: 30px; border: 1px dashed var(--color-or); background: #fffdf9; }
.backup-info-text { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 16px; line-height: 1.4; }
.backup-actions-flex { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-backup-export { background: var(--color-or); color: var(--bg-white); border: none; padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-backup-export:hover { background: #c9841d; }
.btn-backup-import { background: var(--bg-white); color: var(--color-sapin); border: 1px solid var(--color-sapin); padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-backup-import:hover { background: rgba(28, 61, 39, 0.04); }

.main-footer { text-align: center; padding: 30px 0; background: var(--bg-white); border-top: 1px solid var(--border-beige); color: var(--color-muted); font-size: 0.85rem; margin-top: auto; }
.footer-content-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ==========================================
   ADAPTATION SMARTPHONES & TABLETTES (SCROLL HORIZONTAL BLOC NAVBAR)
   ========================================== */
@media (max-width: 990px) {
    .store-layout-grid { grid-template-columns: 1fr; }
    .cart-sidebar { position: relative; top: 0; max-height: none; margin-top: 20px; }
    .scroll-container { grid-template-columns: 1fr; }
    .scroll-visual { display: none; }
    .scroll-step { min-height: auto; padding: 30px 0; opacity: 1; }
    .admin-two-columns { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Navbar en Scroll Horizontal sur mobile */
    .nav-container { flex-direction: column; gap: 10px; padding: 12px 15px 8px; }
    .nav-links { 
        flex-wrap: nowrap; 
        justify-content: flex-start; 
        width: 100%; 
        overflow-x: auto; 
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-btn, .btn-admin-nav { flex-shrink: 0; white-space: nowrap; font-size: 0.85rem; padding: 6px 12px; }

    /* Fix Cadrage Hauteurs Masquées derrière Navbar fixe */
    .view-header { padding-top: 130px; padding-bottom: 20px; }
    .hero-content { margin-top: 100px; }
    
    /* Onglets de l'admin en Scroll Horizontal */
    .admin-top-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
    .admin-tabs { 
        width: 100%; 
        flex-direction: row; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        justify-content: flex-start;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .tab-button { flex-shrink: 0; white-space: nowrap; justify-content: center; padding: 8px 12px; }
    
    .form-row-two { grid-template-columns: 1fr; }
    .search-field.text-small { width: 100%; }
    .footer-content-flex { flex-direction: column; text-align: center; justify-content: center; gap: 12px; }
}
