:root {
    /* ═══ Base Colors ═══ */
    --sand: #f6f1ea;
    --paper: #ffffff;
    --ink: #1d2b34;
    --sea: #0f766e;
    --sunset: #e18153;
    --accent: #9cc8a5;
    
    /* ═══ Color Variations ═══ */
    --sand-light: #faf8f4;
    --sand-dark: #ebe3d6;
    --sea-light: #14a394;
    --sea-dark: #0a5a52;
    --sea-hover: #0d8e82;
    --sunset-light: #f0a07d;
    --sunset-dark: #c66a3e;
    --accent-light: #b8ddc2;
    --accent-dark: #7ab38a;
    
    /* ═══ Gradients ═══ */
    --gradient-hero: linear-gradient(135deg, var(--sand) 0%, rgba(15, 118, 110, 0.05) 100%);
    --gradient-cta: linear-gradient(135deg, var(--sea) 0%, var(--sea-dark) 100%);
    --gradient-card: linear-gradient(180deg, var(--paper) 0%, var(--sand-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    
    /* ═══ Shadows ═══ */
    --shadow-sm: 0 2px 8px rgba(23, 32, 38, 0.06);
    --shadow-md: 0 8px 24px rgba(23, 32, 38, 0.1);
    --shadow-lg: 0 20px 40px rgba(23, 32, 38, 0.15);
    --shadow-xl: 0 30px 60px rgba(23, 32, 38, 0.2);
    --shadow-hover: 0 12px 32px rgba(15, 118, 110, 0.18);
    --shadow: var(--shadow-md);
    
    /* ═══ Opacity & Glass ═══ */
    --overlay-dark: rgba(29, 43, 52, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    /* ═══ Transitions ═══ */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--sand);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.75;
}

img { 
    max-width: 100%; 
    display: block; 
}

/* Typography improvements */
h1 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

h3 {
    font-weight: 600;
    line-height: 1.3;
}

p {
    line-height: 1.75;
}

.lead {
    line-height: 1.8;
    font-size: 1.1rem;
}

.eyebrow {
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* Utility classes */
.body-large {
    font-size: 1.125rem;
    line-height: 1.8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ═══════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */

.site-header {
    background: var(--gradient-hero);
    border-radius: 0 0 40px 40px;
    padding-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes */
.site-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(156, 200, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Sticky navigation with blur */
.top-nav.scrolled {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    z-index: 100;
    border-radius: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.brand img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
}

.brand img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    color: var(--sea);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.nav-links a {
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    background: rgba(15, 118, 110, 0.12);
    transform: translateY(-2px);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--sea);
    border-radius: 50%;
}

.nav-actions {
    display: flex;
    gap: 0.6rem;
    position: relative;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════
   BUTTONS & CTA
   ═══════════════════════════════════════════════════ */

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition-smooth);
}

.btn, .pill, .ghost {
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn {
    background: var(--gradient-cta);
    color: var(--paper);
    box-shadow: var(--shadow-md);
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.btn:focus-visible {
    outline: 3px solid var(--sea-light);
    outline-offset: 2px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--sunset) 0%, var(--sunset-dark) 100%);
}

.ghost {
    border: 2px solid rgba(15, 118, 110, 0.3);
    color: var(--ink);
    background: transparent;
}

.ghost:hover {
    border-color: var(--sea);
    background: rgba(15, 118, 110, 0.08);
    transform: translateY(-2px);
}

.pill {
    background: rgba(15, 118, 110, 0.1);
    color: var(--sea);
}

.pill:hover {
    background: rgba(15, 118, 110, 0.18);
    transform: scale(1.05);
}

.pill span {
    background: var(--sea);
    color: var(--paper);
    border-radius: 999px;
    padding: 0 0.5rem;
    margin-left: 0.4rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 0 clamp(1.5rem, 4vw, 4rem) 2rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    margin: 1rem 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.lead { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-cta { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap;
}

.hero-cta a:nth-child(1) {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-cta a:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-stats {
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.2rem;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-stats span {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--sea);
    margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════════════
   MAIN & SECTIONS
   ═══════════════════════════════════════════════════ */

main {
    padding: clamp(1.5rem, 4vw, 4rem);
}

.section {
    margin: clamp(2rem, 6vw, 4rem) auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.section h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.3rem;
}

.section p { 
    line-height: 1.7; 
}

/* Section divider decoration */
.section-alt::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 999px;
    margin: 0 auto 2rem;
}

/* Catalogue toolbar */
.catalogue-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: var(--paper);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.8rem;
    animation: fadeIn 0.6s ease-out;
}

.catalogue-toolbar label {
    font-size: 0.85rem;
    color: #5a6b76;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.catalogue-toolbar input,
.catalogue-toolbar select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.65rem 1rem;
    font: inherit;
    background: var(--sand);
    transition: var(--transition-smooth);
    min-height: 44px;
}

.catalogue-toolbar input:focus,
.catalogue-toolbar select:focus {
    outline: none;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════ */

.product-card {
    background: var(--paper);
    border-radius: 28px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, var(--sea), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
    display: block;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-height: 180px;
}

/* Carte sans image : padding direct comme avant */
.product-card:not(:has(.product-card-img)) .product-card-body {
    padding: 1.8rem;
}

.product-card h3 { 
    font-size: 1.1rem; 
    margin: 0.2rem 0 0;
    font-weight: 600;
    line-height: 1.4;
}

.product-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5a6b76;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--sea);
    white-space: nowrap;
}

.gram-select {
    transition: var(--transition-smooth);
}

.gram-select:focus {
    outline: none;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Boutons dans les cartes produits */
.product-card button[data-add],
.product-card button[data-add-weighed] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Layout pour éviter chevauchement prix/bouton */
.product-card .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

.product-card .product-actions .gram-select {
    width: 100%;
}

.product-card .product-actions button {
    width: 100%;
}

/* ═══════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(15,118,110,0.08));
    color: var(--sea);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge.open {
    background: linear-gradient(135deg, rgba(156, 200, 165, 0.25), rgba(156, 200, 165, 0.15));
    color: #2d7a3d;
}

.badge.closed {
    background: linear-gradient(135deg, rgba(225, 129, 83, 0.2), rgba(225, 129, 83, 0.1));
    color: var(--sunset);
}

.badge.new {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: white;
}

.badge.promo {
    background: linear-gradient(135deg, var(--sunset-light), var(--sunset));
    color: white;
}

/* ═══════════════════════════════════════════════════
   SECTIONS & GRIDS
   ═══════════════════════════════════════════════════ */

.section-alt {
    background: var(--paper);
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.section-alt::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(156, 200, 165, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.concept-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.concept-grid article,
.info-grid article {
    background: var(--sand);
    border-radius: 24px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.concept-grid article:hover,
.info-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   ORDERS & ADMIN
   ═══════════════════════════════════════════════════ */

.orders {
    background: var(--paper);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.order-card {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.order-card:hover {
    padding-left: 0.5rem;
    border-left: 3px solid var(--sea);
}

.order-card:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    background: var(--ink);
    color: var(--paper);
    padding: 2rem clamp(1.5rem, 4vw, 4rem);
    border-radius: 40px 40px 0 0;
    margin-top: 4rem;
}

.footer a { 
    color: var(--accent);
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--accent-light);
    transform: translateX(2px);
}

.footer-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

/* ═══════════════════════════════════════════════════
   CART PANEL
   ═══════════════════════════════════════════════════ */

.cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: min(420px, 90vw);
    background: var(--paper);
    box-shadow: var(--shadow-xl);
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-panel.open { 
    transform: translateX(0);
    animation: slideInRight 0.3s ease-out;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.cart-summary {
    flex-shrink: 0;
    border-top: 2px solid rgba(0,0,0,0.08);
    padding-top: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    background: rgba(15, 118, 110, 0.02);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 12px;
}

.cart-item:last-child { border-bottom: none; }

.cart-item strong { font-size: 1rem; }

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-item-controls button:hover {
    background: var(--sea);
    color: white;
    border-color: var(--sea);
    transform: scale(1.1);
}

.cart-summary {
    border-top: 2px solid rgba(0,0,0,0.08);
    padding-top: 1rem;
}

.cart-summary form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.payment-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-options label {
    background: var(--sand);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.payment-options label:hover {
    background: var(--sand-dark);
    transform: translateY(-2px);
}

.payment-options input:checked + label,
.payment-options label:has(input:checked) {
    background: var(--sea);
    color: white;
    border-color: var(--sea-dark);
}

/* ═══════════════════════════════════════════════════
   ADMIN ORDER ACTIONS
   ═══════════════════════════════════════════════════ */

.admin-order-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Style du bouton de suppression de commande */
.admin-order-actions .btn-small.danger {
    background: #f8d7da;
    color: #721c24;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-order-actions .btn-small.danger:hover {
    background: #f5c6cb;
    transform: translateY(-1px);
}

.admin-order-actions .btn-small.danger svg {
    width: 16px;
    height: 16px;
}

.admin-order-actions select.status-select {
    min-width: 150px;
}

/* ═══════════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════════ */

input, textarea, select {
    font: inherit;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--sea);
    outline-offset: 2px;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: var(--sunset);
}

textarea {
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
    resize: vertical;
    min-height: 44px;
}

form label { 
    font-size: 0.85rem; 
    color: #5a6b76;
    font-weight: 600;
}

form input {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.6rem;
    min-height: 44px;
}

.form-note {
    min-height: 1.2rem;
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════
   OVERLAY & MODALS
   ═══════════════════════════════════════════════════ */

.overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-dark);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 10000;
}

.overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--paper);
    border-radius: 32px;
    padding: 2rem;
    width: min(500px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease-out;
}

.modal.large .modal-content {
    width: min(900px, 95vw);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    flex: 1;
    border-radius: 999px;
    padding: 0.6rem;
    border: 2px solid rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    min-height: 44px;
}

.tab:hover {
    background: rgba(15, 118, 110, 0.05);
    transform: translateY(-2px);
}

.tab.active {
    background: var(--gradient-cta);
    color: var(--paper);
    border-color: var(--sea);
    box-shadow: var(--shadow-sm);
}

.tab-content { 
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active { display: block; }

.account-state {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--sand);
}

/* ═══════════════════════════════════════════════════
   ADMIN TABLES & CARDS
   ═══════════════════════════════════════════════════ */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.7rem;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: var(--sea);
    background: var(--sand-light);
}

.admin-table tr:hover {
    background: rgba(15, 118, 110, 0.03);
}

.admin-order-card {
    background: var(--sand);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.admin-order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.status-select {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.1);
    font: inherit;
    transition: var(--transition-smooth);
    min-height: 44px;
}

.status-select:hover {
    border-color: var(--sea);
}

.admin-order-body {
    display: grid;
    gap: 1rem;
}

.admin-order-info,
.admin-order-items,
.admin-order-notes {
    background: var(--paper);
    padding: 1rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.admin-order-info:hover,
.admin-order-items:hover,
.admin-order-notes:hover {
    box-shadow: var(--shadow-sm);
}

.admin-order-items h4,
.admin-order-notes h4 {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--sea);
    font-weight: 600;
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-item-row:last-child {
    border-bottom: none;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--paper);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    min-height: 36px;
}

.btn-small:hover {
    background: var(--sand);
    transform: translateY(-2px);
}

.btn-small.danger {
    background: rgba(225, 129, 83, 0.1);
    color: var(--sunset);
    border-color: rgba(225, 129, 83, 0.3);
}

.btn-small.danger:hover {
    background: rgba(225, 129, 83, 0.2);
}

.client-note {
    background: var(--sand);
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-style: italic;
    color: #5a6b76;
}

.admin-response {
    width: 100%;
    min-height: 80px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0.8rem;
    font: inherit;
    margin-bottom: 0.5rem;
    resize: vertical;
    transition: var(--transition-smooth);
}

.admin-response:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.admin-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--paper);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    background: rgba(225, 129, 83, 0.15);
    color: var(--sunset);
    font-size: 0.8rem;
    font-weight: 600;
}

.checkout-hint {
    font-size: 0.85rem;
    color: #5a6b76;
}

/* ═══════════════════════════════════════════════════
   LOADING STATES & NOTIFICATIONS
   ═══════════════════════════════════════════════════ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--sand);
    border-top-color: var(--sea);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

.notification.success {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, var(--sunset), var(--sunset-dark));
    color: white;
}

.notification.info {
    background: linear-gradient(135deg, var(--sea), var(--sea-dark));
    color: white;
}

.skeleton {
    background: linear-gradient(90deg, var(--sand) 0%, var(--sand-light) 50%, var(--sand) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
    /* Menu avec fond semi-transparent DERRIÈRE (amélioré) */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open::before {
        opacity: 1;
    }

    /* Menu amélioré */
    .nav-links {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        right: auto !important;
        width: calc(100% - 3rem) !important;
        max-width: 400px !important;
        background: var(--paper) !important;
        border-radius: 28px !important;
        padding: 2rem 1.5rem !important;
        flex-direction: column !important;
        box-shadow: 0 30px 80px rgba(0,0,0,0.4) !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        opacity: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    }

    .nav-links.open {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
    }

    .nav-links a {
        display: block !important;
        padding: 1.2rem 1rem !important;
        margin: 0.3rem 0 !important;
        z-index: 10001 !important;
        position: relative !important;
        background: var(--sand) !important;
        border-radius: 16px !important;
        pointer-events: auto !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
    }

    .nav-links a:hover {
        background: var(--sea) !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }

    .nav-toggle {
        display: flex !important;
        z-index: 10002 !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        position: relative !important;
    }

    .nav-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: var(--ink) !important;
        margin: 4px 0 !important;
        transition: all 0.3s ease !important;
    }

    .nav-actions {
        margin-left: auto !important;
        z-index: 10002 !important;
        position: relative !important;
        display: flex !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
        max-width: none !important;
    }

    .nav-actions .btn,
    .nav-actions .pill,
    .nav-actions .ghost {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }

    .nav-actions .pill {
        max-width: none !important;
    }

    /* Réduire le padding du top-nav sur mobile */
    .top-nav {
        padding: 1rem clamp(0.75rem, 2vw, 1.5rem) !important;
        gap: 0.5rem !important;
    }

    /* Réduire le logo et brand */
    .brand {
        gap: 0.5rem !important;
    }

    .brand img {
        width: 50px !important;
        height: 50px !important;
    }

    .brand-name {
        font-size: 1.1rem !important;
    }

    .eyebrow {
        font-size: 0.6rem !important;
    }

    /* Forcer le header à ne pas bloquer */
    .site-header,
    .site-header::before,
    .site-header::after {
        z-index: 1 !important;
    }

    .site-header::before,
    .site-header::after {
        opacity: 0.3;
    }

    .brand,
    .brand img {
        z-index: 10 !important;
        position: relative !important;
    }

    /* ── Hero ── */
    .hero {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem 1.5rem;
        gap: 1.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(1.7rem, 6vw, 2.5rem);
    }

    .hero-stats {
        padding: 1.25rem;
        border-radius: 20px;
        gap: 0.9rem;
    }

    /* ── Catalogue ── */
    .products {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 1rem;
    }

    .product-card {
        min-height: 380px;
    }

    .product-card-img {
        height: 140px;
    }

    .product-card-body {
        padding: 1rem;
        gap: 0.5rem;
    }

    .product-card h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }

    .product-meta {
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .price {
        font-size: 1.3rem;
        order: -1;
    }

    .product-card .btn,
    .product-card button[data-add],
    .product-card button[data-add-weighed] {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
        white-space: nowrap;
        min-height: 44px;
    }

    .gram-select {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    /* ── Onglets (modal compte + admin) ── */
    .tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .tab {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
        font-size: 0.78rem;
        padding: 0.5rem 0.4rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Modal ── */
    .modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 24px 24px 16px 16px;
        padding: 1.25rem;
        width: 100%;
        max-height: 92vh;
    }

    .modal.large .modal-content {
        width: 100%;
        max-height: 92vh;
    }

    /* ── Panier de la DROITE mais COMPLET ── */
    .cart-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        z-index: 10001 !important;
        transform: translateX(100%) !important;
        overflow: hidden !important;
    }

    .cart-panel.open {
        transform: translateX(0) !important;
    }

    .cart-header {
        margin-bottom: 1rem;
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .cart-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    .cart-header button {
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .cart-body {
        padding: 0;
        margin: 0;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }

    .cart-item {
        font-size: 0.9rem;
        padding: 0.75rem 0;
        margin: 0;
    }

    .cart-item-controls button {
        min-width: 36px;
        min-height: 36px;
    }

    .cart-summary {
        max-width: 100%;
        padding: 0;
        margin: 1rem 0 0 0;
        flex-shrink: 0;
    }

    .cart-summary form {
        gap: 0.75rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .cart-summary label,
    .cart-summary input,
    .cart-summary textarea,
    .cart-summary select,
    .cart-summary button {
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .cart-summary input,
    .cart-summary textarea,
    .cart-summary select {
        padding: 0.7rem 1rem;
    }

    .cart-summary .btn {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .payment-options {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .payment-options label {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 calc(33.333% - 0.4rem);
        min-width: fit-content;
        text-align: center;
        margin: 0;
    }

    /* ── Admin orders ── */
    .admin-order-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .admin-order-actions {
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
    }

    .admin-order-actions select.status-select {
        min-width: 0;
        width: 100%;
    }

    .admin-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    /* ── Section infos ── */
    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-alt {
        padding: 1.25rem;
    }

    /* ── Footer ── */
    .footer {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }

    .footer-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* ── Très petit écran (≤ 400px) ── */
@media (max-width: 400px) {
    .top-nav {
        padding: 1rem;
        gap: 0.75rem;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .eyebrow {
        font-size: 0.65rem;
    }

    main {
        padding: 0.75rem;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        max-width: 100%;
        min-height: auto;
    }

    .product-card-img {
        height: 180px;
    }

    .product-card-body {
        padding: 1.25rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.7rem;
    }

    .hero-copy h1 {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .nav-actions .btn,
    .nav-actions .pill,
    .nav-actions .ghost {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
}

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta a {
        text-align: center;
    }

    /* Horaires admin : champs De/à sur mobile très étroit */
    .slot-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }

    .slot-row input[type="time"] {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY & PREFERENCES
   ═══════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-copy h1,
    .hero-copy .lead,
    .hero-cta a,
    .hero-stats {
        opacity: 1 !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --sand: #ffffff;
        --paper: #ffffff;
        --ink: #000000;
        --sea: #0a5a52;
        --sunset: #c66a3e;
        --accent: #7ab38a;
    }
    
    .btn,
    .ghost,
    .pill {
        border-width: 2px;
    }
    
    input:focus,
    textarea:focus,
    select:focus,
    button:focus-visible,
    a:focus-visible {
        outline-width: 4px;
        outline-offset: 3px;
    }
}

/* Links default styling */
a {
    color: var(--sea);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--sea);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure all interactive elements are keyboard accessible */
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--sea);
    outline-offset: 2px;
}
