/* ===========================================
   TISHH 3D - Styles CSS
   Design moderne et responsive
   =========================================== */

/* Reset et variables CSS */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   Layout et conteneurs
   =========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.about {
    padding: 5rem 0 4rem;
}

.section:nth-child(even) {
    background-color: var(--bg-white);
}

/* ===========================================
   Header et Navigation
   =========================================== */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.nav {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
    gap: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cube {
    width: 32px;
    height: 32px;
    position: relative;
    transform-style: preserve-3d;
    animation: nav-rotate 12s infinite linear;
}

.nav-cube-face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(30, 64, 175, 0.4);
    background: rgba(30, 64, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-cube-face.front { transform: translateZ(16px); }
.nav-cube-face.back { transform: translateZ(-16px) rotateY(180deg); }
.nav-cube-face.left { transform: rotateY(-90deg) translateZ(16px); }
.nav-cube-face.right { transform: rotateY(90deg) translateZ(16px); }
.nav-cube-face.top { transform: rotateX(90deg) translateZ(16px); }
.nav-cube-face.bottom { transform: rotateX(-90deg) translateZ(16px); }

@keyframes nav-rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.nav-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-3d-preview {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

/* Animation 3D cube simple */
.cube-3d {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 8s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.face.front { transform: translateZ(75px); }
.face.back { transform: translateZ(-75px) rotateY(180deg); }
.face.left { transform: rotateY(-90deg) translateZ(75px); }
.face.right { transform: rotateY(90deg) translateZ(75px); }
.face.top { transform: rotateX(90deg) translateZ(75px); }
.face.bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

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

/* ===========================================
   About Section
   =========================================== */

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.about-text {
    width: 100%;
    max-width: 700px;
}

.about-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-transition {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 2rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.about-transition::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 3.5rem;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.feature p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.about-cta {
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-light);
    font-size: 1.125rem;
    text-align: center;
}

/* ===========================================
   Buttons
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Boutons secondary sur fonds clairs */
.btn-secondary.btn-secondary-light {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: none;
}

.btn-secondary.btn-secondary-light:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===========================================
   Products
   =========================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

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

.product-image {
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 12;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background 0.15s ease;
    color: #d1d5db;
    line-height: 1;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.97);
    color: #f87171;
}

.favorite-btn.is-favorite {
    color: #ef4444;
    background: rgba(255, 255, 255, 0.97);
}

.favorite-btn-detail {
    position: static;
    margin-left: 0.75rem;
}

.product-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

@keyframes favorite-pop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.favorite-btn.is-favorite {
    animation: favorite-pop 0.15s ease-out;
}

.subscribe-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.subscribe-modal .modal-header h3 {
    color: inherit;
}

.subscribe-modal .modal-body {
    padding-top: 1.75rem;
}

.subscribe-modal .subscribe-text {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.product-info {
    padding: 0.9rem 1rem 1rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-description {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.4px;
    background: rgba(30, 64, 175, 0.05);
    padding: 0.3rem 0;
    border-radius: 4px;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-disabled {
    background: #d1d5db;
    color: #6b7280;
    border: 2px solid #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-disabled:hover {
    background: #d1d5db;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* Stock badge sur les cartes produit */
.stock-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.4px;
}

.stock-badge.in-stock {
    background-color: rgba(34, 197, 94, 0.95);
    color: white;
}

.stock-badge.low-stock {
    background-color: rgba(245, 158, 11, 0.95);
    color: white;
}

.stock-badge.critical-stock {
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
    animation: pulse-critical 1.5s infinite;
}

.stock-badge.out-of-stock {
    background-color: rgba(107, 114, 128, 0.95);
    color: white;
}

/* Animation pour stock critique (1 seul) */
@keyframes pulse-critical {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* Effets visuels pour les cartes en rupture */
.product-card.out-of-stock {
    opacity: 0.65;
}

.product-card.low-stock {
    opacity: 0.92;
}

.product-card.critical-stock {
    opacity: 0.98;
}

.product-image.out-of-stock {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-image.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Promotion price styles sur les cartes */
.product-price-promo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-price-strikethrough {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
    font-weight: 600;
}

.product-price-promo-container .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ef4444;
}

.promo-badge-card {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ===========================================
   Page Header
   =========================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header--compact {
    padding: 1.6rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ===========================================
   Shop Filters
   =========================================== */

.shop-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    font-size: 0.875rem;
}

/* ===========================================
   Product Detail
   =========================================== */

.product-detail {
    padding: 2rem 0;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.product-main-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.08);
}

.product-details h1 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0.3rem;
    letter-spacing: -0.4px;
    background: rgba(30, 64, 175, 0.06);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    display: inline-block;
}

/* Prix avec promotion */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.product-price-original {
    display: flex;
    align-items: center;
}

.product-price-original .strikethrough {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
    font-weight: 600;
}

.product-price-promo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promo-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.4px;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-description-full {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Stock badge detail page */
.stock-badge-detail {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.stock-badge-detail.in-stock {
    background-color: rgba(34, 197, 94, 0.95);
    color: white;
}

.stock-badge-detail.low-stock {
    background-color: rgba(245, 158, 11, 0.95);
    color: white;
}

.stock-badge-detail.critical-stock {
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
    animation: pulse-critical 1.5s infinite;
}

.stock-badge-detail.out-of-stock {
    background-color: rgba(107, 114, 128, 0.95);
    color: white;
}

.product-meta {
    margin-bottom: 2rem;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Meta secundaria - pequeña en la parte baja */
.product-meta-secondary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.product-meta-item-secondary {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-meta-item-secondary span:first-child {
    font-weight: 600;
}

/* Vinted link */
.vinted-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.vinted-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Purchase section */
.product-purchase-section {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-control-section {
    flex: 0 0 auto;
}

.quantity-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-selector-large {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input-large {
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    width: 50px;
    background: white;
}

.btn-large {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}

/* Trust message */
.product-trust {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    border-left: 3px solid rgba(16, 185, 129, 0.5);
}

/* Product notification section */
.product-notification-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    text-align: center;
}

.product-notification-section .btn {
    width: 100%;
}

/* Button secondary ghost */
.btn-secondary-ghost {
    background: transparent !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.btn-secondary-ghost:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Contact Section
   =========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-content p {
    color: var(--text-light);
}

/* ===========================================
   CTA Section
   =========================================== */

.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
    line-height: 1.6;
}

/* ===========================================
   Forms
   =========================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===========================================
   Modal
   =========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.order-form {
    max-width: none;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===========================================
   Notifications
   =========================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification.success .notification-content {
    border-left: 4px solid #10b981;
}

.notification.error .notification-content {
    border-left: 4px solid #ef4444;
}

.notification-close {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text-dark);
}

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

/* ===========================================
   Loading et états
   =========================================== */

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===========================================
   Pagination
   =========================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.2), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: nav-rotate 15s infinite linear;
    flex-shrink: 0;
}

.footer-cube-face {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(30, 64, 175, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-cube-face.front { transform: translateZ(20px); }
.footer-cube-face.back { transform: translateZ(-20px) rotateY(180deg); }
.footer-cube-face.left { transform: rotateY(-90deg) translateZ(20px); }
.footer-cube-face.right { transform: rotateY(90deg) translateZ(20px); }
.footer-cube-face.top { transform: rotateX(90deg) translateZ(20px); }
.footer-cube-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

.footer-logo h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-divider {
    margin: 2rem 0;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.footer-social p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart {
    color: #ef4444;
    font-size: 1rem;
    animation: heartbeat 2s infinite;
}

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

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container,
    .product-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-text h2 {
        font-size: 2.25rem;
    }

    .about-lead {
        font-size: 1.125rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-transition {
        font-size: 1.25rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2.5rem 0 3rem;
    }

    .feature {
        padding: 1.75rem 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.25rem;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

@media (max-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .nav-cube {
        width: 28px;
        height: 28px;
    }

    .nav-cube-face {
        width: 28px;
        height: 28px;
    }

    .nav-cube-face.front { transform: translateZ(14px); }
    .nav-cube-face.back { transform: translateZ(-14px) rotateY(180deg); }
    .nav-cube-face.left { transform: rotateY(-90deg) translateZ(14px); }
    .nav-cube-face.right { transform: rotateY(90deg) translateZ(14px); }
    .nav-cube-face.top { transform: rotateX(90deg) translateZ(14px); }
    .nav-cube-face.bottom { transform: rotateX(-90deg) translateZ(14px); }

    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .product-purchase-section {
        flex-direction: column;
        align-items: stretch;
    }

    .product-gallery {
        position: static; /* désactive le sticky en colonne unique — évite le chevauchement image/badge */
    }

    .product-main-image {
        height: 250px;
    }

    /* Product page mobile */
    .product-details h1 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .product-price-large {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
        display: block;
    }

    .promo-price {
        font-size: 1.25rem;
    }

    .product-price-original .strikethrough {
        font-size: 1rem;
    }

    .quantity-selector-large {
        width: 100%;
    }

    .product-purchase-section .btn-large,
    .product-purchase-section .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .product-purchase-section > div {
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary-ghost {
        display: block;
        width: 100%;
        text-align: center;
    }

    .product-header-row {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .product-trust {
        font-size: 0.82rem;
        text-align: center;
    }

    .lightbox-close {
        top: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Product page 480px */
    .product-details h1 {
        font-size: 1.2rem;
    }

    .product-price-large {
        font-size: 1.05rem;
    }

    .promo-price {
        font-size: 1.05rem;
    }

    .product-description-full {
        font-size: 0.875rem;
    }

    .product-purchase-section .btn-large {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-main {
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-cube {
        width: 32px;
        height: 32px;
    }

    .footer-cube-face {
        width: 32px;
        height: 32px;
    }

    .footer-cube-face.front { transform: translateZ(16px); }
    .footer-cube-face.back { transform: translateZ(-16px) rotateY(180deg); }
    .footer-cube-face.left { transform: rotateY(-90deg) translateZ(16px); }
    .footer-cube-face.right { transform: rotateY(90deg) translateZ(16px); }
    .footer-cube-face.top { transform: rotateX(90deg) translateZ(16px); }
    .footer-cube-face.bottom { transform: rotateX(-90deg) translateZ(16px); }
}
/* ===========================================
   Gestion du stock et quantité
   =========================================== */

.stock-status {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-status.in-stock {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.stock-status.low-stock {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.stock-status.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Sélecteur de quantité */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-selector input {
    flex: 1;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem !important;
}

.qty-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-light);
}

/* Sélecteur de quantité sur la page produit */
.product-purchase-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-selector-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    background-color: var(--bg-white);
}

.qty-btn-large {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: none;
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-large:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.qty-input-large {
    width: 60px;
    text-align: center;
    font-weight: 500;
    border: none;
    padding: 0.5rem !important;
    font-size: 1rem;
}

/* Erreur de quantité */
.form-error {
    color: #991b1b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Bouton désactivé */
.btn-disabled {
    background-color: #9ca3af !important;
    color: white;
    cursor: not-allowed;
    border: 1px solid #9ca3af !important;
}

.btn-disabled:hover {
    background-color: #9ca3af !important;
    transform: none !important;
}

/* Fil d'Ariane */
.breadcrumb-wrap {
    padding: 0.65rem 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.35rem;
    color: var(--border-color);
}

.breadcrumb-tail {
    font-weight: 500;
    color: var(--text-dark);
}

/* Badges marketing (cartes + fiche) */
.marketing-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    max-width: 72%;
    pointer-events: none;
}

.marketing-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
}

.marketing-badge--new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.marketing-badge--bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.marketing-badge--limited {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
}

.product-detail-badges .marketing-badges {
    position: static;
    max-width: none;
    justify-content: flex-start;
    margin: 0.35rem 0 0.75rem;
    pointer-events: auto;
}

/* Boutique : état vide */
.shop-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px dashed var(--border-color);
}

.shop-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.shop-empty-hint {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Récap commande (modal) */
.order-recap {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.order-recap-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.order-recap-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.order-recap-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-white);
}

.order-recap-thumb--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.order-recap-meta {
    flex: 1;
    min-width: 0;
}

.order-recap-name {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.order-recap-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-recap-line strong {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Sections accueil par catégorie */
.section-home-category .about-content {
    margin-bottom: 1.5rem;
}

.similar-products-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===========================================
   Accessibilité : focus visible
   =========================================== */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 3px;
}

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

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

/* ===========================================
   Recherche boutique
   =========================================== */

.search-group {
    flex: 1 1 220px;
    min-width: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-light);
    pointer-events: none;
    font-size: 1rem;
    line-height: 1;
}

.search-input-wrapper input[type="search"] {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-input-wrapper input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.25rem;
    display: none;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: var(--text-dark);
}

.search-clear-btn.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Validation temps réel (formulaires)
   =========================================== */

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #ef4444;
    background-color: #fff8f8;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-group.has-success input,
.form-group.has-success textarea {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.form-group.has-success input:focus,
.form-group.has-success textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.field-error-msg {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
}

.form-group.has-error .field-error-msg {
    display: block;
}

.field-char-count {
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: right;
    margin-top: 0.25rem;
}

.field-char-count.over-limit {
    color: #dc2626;
}

/* ===========================================
   Confirmation commande (in-modal)
   =========================================== */

.order-success-panel {
    text-align: center;
    padding: 2rem 1.5rem;
}

.order-success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
    0% { transform: scale(0.3); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.order-success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.order-success-msg {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.order-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   Icônes nav (panier + favoris)
   =========================================== */

.cart-icon-btn,
.fav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
    border-radius: var(--border-radius);
    transition: color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.cart-icon-btn:hover { color: var(--primary-color); }
.cart-icon-btn.active { color: var(--primary-color); }

.fav-icon-btn:hover { color: #dc2626; }
.fav-icon-btn.active,
.fav-icon-btn.has-favorites { color: #dc2626; }

.cart-badge,
.fav-badge {
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.cart-badge {
    background: var(--primary-color);
    box-shadow: 0 1px 4px rgba(30,64,175,0.4);
}

.fav-badge {
    background: #dc2626;
    box-shadow: 0 1px 4px rgba(220,38,38,0.4);
}

/* ===========================================
   Page Panier
   =========================================== */

.cart-section {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

/* Center the cart layout and keep a comfortable max width on desktop */
.cart-section .container .cart-layout {
    max-width: 980px;
    margin: 0 auto;
    grid-template-columns: 1fr 360px;
}

.cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.cart-empty h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.cart-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-list-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-clear-link {
    font-size: 0.8rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.cart-clear-link:hover {
    color: #ef4444;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.25rem;
    align-items: start;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.cart-item-img {
    width: 120px;
    height: 120px;
    max-width: 140px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-light);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.cart-item-img-link { display: inline-block; }

.cart-item-name a.cart-item-link {
    color: var(--text-dark);
    text-decoration: none;
}
.cart-item-name a.cart-item-link:hover { color: var(--primary-color); }

.cart-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.cart-item > .cart-item-img-link img.cart-item-img,
.cart-item img.cart-item-img {
    width: 120px !important;
    height: 120px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    object-fit: cover !important;
    display: block;
}

/* New card-style layout for cart */
.cart-card {
    display: grid;
    grid-template-columns: 120px 1fr 90px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}
.cart-card + .cart-card { margin-top: 0.9rem; }
.cart-card-media { width:120px; height:120px; display:flex; align-items:center; justify-content:center; }
.cart-card-media img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.cart-card-body { padding-right: 0.5rem; }
.cart-card-body .cart-item-name { font-size:1rem; margin-bottom:0.35rem; }
.cart-card-body .cart-item-price { margin-bottom:0.5rem; }
.cart-card-actions { display:flex; flex-direction:column; align-items:flex-end; gap:0.5rem; }
.cart-qty-controls { display:flex; align-items:center; gap:0.5rem; }
.cart-qty-controls input { width:56px; }

/* Summary card */
.cart-summary { padding:1.5rem; }
.cart-summary .amount { font-size:1.4rem; }

@media (max-width: 880px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-card { grid-template-columns: 96px 1fr; }
    .cart-card-actions { flex-direction:row; }
}
.cart-clear-link { font-size: 0.9rem; }

.cart-item-img-ph {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cart-item-info {
    min-width: 0;
    padding-top: 0.1rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cart-item-price .promo {
    color: #dc2626;
    font-weight: 700;
}

.cart-item-price .original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.8rem;
}

.cart-promo-tag {
    display: inline-flex;
    align-items: center;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
    letter-spacing: 0.02em;
}

.cart-stock-warning {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.775rem;
    color: #d97706;
    margin-top: 0.4rem;
}

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

.cart-item-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    flex-shrink: 0;
}

.cart-item-qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-item-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-item-qty-input {
    width: 44px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    height: 32px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    padding-top: 0.1rem;
}

.cart-item-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.cart-remove-btn:hover {
    color: #ef4444;
}

.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.cart-summary {
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.cart-summary h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cart-summary-row.savings {
    color: #dc2626;
    font-weight: 600;
}

.cart-summary-row.shipping-free {
    color: #16a34a;
    font-weight: 500;
}

.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 2px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.875rem;
}

.cart-summary-row.total .amount {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
}

.cart-continue-btn {
    width: 100%;
    margin-top: 0.625rem;
    text-align: center;
    font-size: 0.875rem;
}

.cart-trust {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: var(--text-light);
}

.cart-trust-item span:first-child {
    font-size: 0.9rem;
}

/* ===========================================
   Page Checkout
   =========================================== */

.checkout-section {
    padding: 3rem 0 5rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.checkout-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.checkout-form-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.checkout-order-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.checkout-order-summary h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.checkout-item-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.checkout-item-row:last-of-type {
    border-bottom: none;
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.checkout-item-img-ph {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-qty {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.checkout-total-row.grand-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-total-row.grand-total .amount {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.payment-methods {
    margin-top: 1.5rem;
}

.payment-methods h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(30,64,175,0.03);
}

.payment-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.payment-option-label {
    flex: 1;
}

.payment-option-label strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.payment-option-label span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(30,64,175,0.04);
}

.stripe-card-logos {
    display: flex;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.pay-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.pay-security-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

/* ===========================================
   Page Succès commande
   =========================================== */

.success-section {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.success-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    display: block;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.success-order-ref {
    display: inline-block;
    background: rgba(30,64,175,0.07);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    margin: 0.75rem 0 1.5rem;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.success-items-recap {
    margin: 1.5rem 0;
    text-align: left;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.success-items-recap p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

/* ======================================================================
   Calculateur public / Devis instantané (devis.html)
   ====================================================================== */
.quote {
    padding: 3rem 0 4rem;
}

.quote-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
}

.quote-dropzone {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quote-dropzone:hover,
.quote-dropzone:focus-visible,
.quote-dropzone.is-dragover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    outline: none;
}

.quote-dropzone.is-dragover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.quote-dropzone-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.quote-dropzone-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.quote-dropzone-sub {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quote-error {
    max-width: 640px;
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.95rem;
}

.quote-output {
    max-width: 640px;
    margin: 1.5rem auto 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.quote-file-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

.quote-model-info {
    margin-top: 1rem;
}

.quote-preview {
    margin-top: 1rem;
    width: 100%;
    height: 320px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, #f8fafc 0%, #e8eef6 100%);
    overflow: hidden;
    touch-action: none; /* drag-rotate sans faire défiler la page */
    cursor: grab;
}

.quote-preview:active {
    cursor: grabbing;
}

.quote-preview canvas {
    display: block;
}

.quote-preview-note {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
}

.quote-dims {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quote-dim {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
}

.quote-dim span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.quote-dim strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.quote-warn {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.quote-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.quote-options .form-group {
    margin: 0;
}

.quote-options select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-white);
}

.quote-hint {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
}

.quote-hint a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.quote-busy {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.quote-price {
    margin-top: 1.25rem;
    text-align: center;
}

.quote-price-range {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.quote-price-sub {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.quote-cta-wrap {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.quote-cta-note {
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.quote-form {
    margin-top: 1.25rem;
    text-align: left;
}

.quote-form .form-group {
    margin-bottom: 1rem;
}

.quote-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-white);
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.quote-form textarea {
    resize: vertical;
}

.quote-form button[type="submit"] {
    width: 100%;
}

.quote-form-success {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.95rem;
}

.quote-disclaimer {
    max-width: 640px;
    margin: 1.75rem auto 0;
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 520px) {
    .quote-options {
        grid-template-columns: 1fr;
    }
    .quote-dims {
        grid-template-columns: 1fr;
    }
    .quote-price-range {
        font-size: 1.6rem;
    }
}

/* ===========================================
   Responsive panier / checkout
   =========================================== */

@media (max-width: 900px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .checkout-order-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 0.875rem;
        padding: 1rem;
    }

    .cart-item-img,
    .cart-item-img-ph {
        width: 80px;
        height: 80px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
        margin-top: 0.25rem;
    }

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

/* ===========================================
   Page Panier — layout modernisé
   =========================================== */

.cart-page {
    padding: 2.5rem 0 5rem;
    min-height: 70vh;
    background: #f8fafc;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cart-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.cart-header-bar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-header-bar .cart-count {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 0.5rem;
    font-weight: 400;
}

.cart-clear-btn {
    font-size: 0.8rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.cart-clear-btn:hover { color: #ef4444; }

.cart-cols-header {
    display: grid;
    grid-template-columns: 100px 1fr 140px 80px 36px;
    gap: 0.75rem;
    padding: 0 1rem 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}
.cart-cols-header .col-qty  { text-align: center; }
.cart-cols-header .col-sub  { text-align: right; }
.cart-cols-header .col-del  { min-width: 36px; }

.cart-line {
    display: grid;
    grid-template-columns: 100px 1fr 140px 80px 36px;
    gap: 0.75rem;
    align-items: center;
    padding: 1.1rem 1rem;
    background: var(--bg-white);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.cart-line:first-of-type { border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
.cart-line:last-of-type  { border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); border-bottom: none; }
.cart-line:only-of-type  { border-radius: var(--border-radius-lg); }
.cart-line:hover { background: #fafbff; }

.cart-line-img {
    width: 100px;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.cart-line-img-ph {
    width: 100px;
    height: 88px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.cart-line-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.35;
    display: block;
    margin-bottom: 0.3rem;
}
.cart-line-name:hover { color: var(--primary-color); }

.cart-line-unit-price {
    font-size: 0.85rem;
    color: var(--text-light);
}
.cart-line-unit-price .promo {
    color: #dc2626;
    font-weight: 600;
}
.cart-line-unit-price .original {
    text-decoration: line-through;
    color: #94a3b8;
    margin-right: 0.2rem;
}

.cart-line-stock-warn {
    font-size: 0.78rem;
    color: #d97706;
    margin-top: 0.35rem;
}

.cart-qty-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 140px;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: background 0.12s;
    flex-shrink: 0;
}
.cart-qty-btn:hover:not(:disabled) { background: var(--primary-color); color: white; }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cart-qty-field {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    -moz-appearance: textfield;
    appearance: textfield;
}
.cart-qty-field::-webkit-outer-spin-button,
.cart-qty-field::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-qty-field:focus { outline: none; }

.cart-line-sub {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-del-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s;
    margin: 0 auto;
}
.cart-del-btn:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.cart-savings-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
}

.cart-aside {
    position: sticky;
    top: 100px;
}

.cart-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-summary-head {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.cart-summary-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cart-summary-rows {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}
.sum-row.sum-savings  { color: #dc2626; font-weight: 600; }
.sum-row.sum-shipping { color: #64748b; }
.sum-divider { height: 1px; background: var(--border-color); margin: 0.25rem 0; }
.sum-row.sum-total { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); }
.sum-row.sum-total .sum-amount { font-size: 1.35rem; color: var(--primary-color); }

.cart-summary-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cart-trust-list {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-light);
}
.trust-item span:first-child { font-size: 0.9rem; }

.cart-empty-state {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 4rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.cart-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.cart-empty-state h2 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.cart-empty-state p  { color: var(--text-light); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .cart-aside { position: static; }
    .cart-cols-header { display: none; }
    .cart-line {
        grid-template-columns: 80px 1fr 36px;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.75rem;
    }
    .cart-line-img  { width: 80px; height: 72px; }
    .cart-line-img-ph { width: 80px; height: 72px; }
    .cart-line-sub  { grid-column: 2; grid-row: 2; text-align: left; font-size: 0.9rem; }
    .cart-qty-group { grid-column: 2; grid-row: 2; width: 120px; justify-content: flex-start; }
    .cart-del-btn   { grid-column: 3; grid-row: 1; margin: 0; }
    .col-qty-cell   { grid-column: 1 / 3; grid-row: 2; }
    .col-sub-cell   { grid-column: 3; grid-row: 2; text-align: right; align-self: center; }
}

@media (max-width: 480px) {
    .cart-page { padding: 1.5rem 0 4rem; }
}

/* ===========================================
   Page Favoris
   =========================================== */

.fav-page { padding: 2.5rem 0 5rem; min-height: 70vh; background: #f8fafc; }

.fav-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.fav-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.fav-header .fav-count { font-size: 0.875rem; color: var(--text-light); font-weight: 400; margin-left: 0.4rem; }

.fav-clear-btn {
    font-size: 0.8rem; color: #94a3b8; background: none; border: none;
    cursor: pointer; padding: 0; transition: color 0.15s;
}
.fav-clear-btn:hover { color: #ef4444; }

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.fav-empty {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 4.5rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.fav-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.fav-empty h2   { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.fav-empty p    { color: var(--text-light); margin-bottom: 1.5rem; }

.fav-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem; padding: 4rem 0; color: var(--text-light);
}
.fav-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: favSpin 0.7s linear infinite;
}
@keyframes favSpin { to { transform: rotate(360deg); } }

.fav-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.fav-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.fav-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}
.fav-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.fav-card:hover .fav-card-img-wrap img { transform: scale(1.04); }
.fav-card-img-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #cbd5e1;
}

.fav-remove-btn {
    position: absolute; top: 0.6rem; right: 0.6rem;
    width: 34px; height: 34px;
    background: white; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-sm);
    color: #dc2626; font-size: 1rem;
    transition: background 0.15s, transform 0.15s;
}
.fav-remove-btn:hover { background: #fef2f2; transform: scale(1.1); }

.fav-stock-badge {
    position: absolute; bottom: 0.6rem; left: 0.6rem;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem;
    border-radius: 4px; background: #dc2626; color: white;
}
.fav-stock-badge.low { background: #f59e0b; }

.fav-card-body { padding: 1rem 1rem 0.75rem; flex: 1; display: flex; flex-direction: column; }

.fav-card-name {
    font-size: 0.9375rem; font-weight: 600; color: var(--text-dark);
    text-decoration: none; line-height: 1.35;
    display: block; margin-bottom: 0.4rem;
}
.fav-card-name:hover { color: var(--primary-color); }

.fav-card-price { margin-bottom: auto; }
.fav-price-current { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }
.fav-price-current.promo { color: #dc2626; }
.fav-price-original { font-size: 0.82rem; color: #94a3b8; text-decoration: line-through; margin-right: 0.3rem; }

.fav-card-actions { padding: 0.75rem 1rem 1rem; display: flex; gap: 0.5rem; }

.fav-add-btn {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem; font-weight: 600;
    border-radius: 8px; border: none; cursor: pointer;
    background: var(--primary-color); color: white;
    transition: opacity 0.15s;
}
.fav-add-btn:hover:not(:disabled) { opacity: 0.88; }
.fav-add-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

.fav-view-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem; font-weight: 600;
    border-radius: 8px; border: 1px solid var(--border-color);
    background: white; color: var(--text-dark);
    text-decoration: none; display: flex; align-items: center;
    transition: border-color 0.15s;
}
.fav-view-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

@media (max-width: 600px) {
    .fav-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 400px) {
    .fav-grid { grid-template-columns: 1fr; }
}

/* ── Badges de réassurance (panier, checkout, fiche produit) ───────────── */
.reassurance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.reassurance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #334155;
    white-space: nowrap;
}

/* ======================================================================
   Pages légales (mentions, CGV, confidentialité, rétractation)
   ====================================================================== */
.legal {
    padding: 3rem 0 4rem;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--primary-color);
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.legal-todo {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: var(--border-radius);
    padding: 0.15rem 0.4rem;
    font-size: 0.9em;
    font-weight: 600;
}

.legal-form-box {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1rem 0;
    white-space: pre-line;
    font-size: 0.92rem;
    color: var(--text-dark);
}

/* ── Liens légaux dans le footer (injectés par main.js) ──────────────── */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: inherit;
    opacity: 0.85;
    text-decoration: none;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-legal-sep {
    opacity: 0.4;
}

/* ── Bandeau cookies (injecté par main.js) ──────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: cookieSlideUp 0.3s ease;
}

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

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.cookie-banner-text a {
    color: var(--primary-color);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-banner-actions .btn {
        flex: 1;
    }
}

/* ======================================================================
   Comparateur de matières (materiaux.html)
   ====================================================================== */
.materials {
    padding: 3rem 0 4rem;
}

.materials-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
}

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

.mat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mat-card.is-offered {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-md);
}

.mat-card-head {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.mat-card-head h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    display: inline-block;
}

.mat-offered {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mat-tagline {
    margin-top: 0.35rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.mat-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.875rem;
}

.mat-row > span:first-child {
    color: var(--text-light);
}

.mat-val {
    font-weight: 600;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-align: right;
    white-space: nowrap;
}

.mat-val.lvl-1 { background: #fee2e2; color: #b91c1c; }
.mat-val.lvl-2 { background: #ffedd5; color: #c2410c; }
.mat-val.lvl-3 { background: #fef9c3; color: #a16207; }
.mat-val.lvl-4 { background: #dcfce7; color: #15803d; }
.mat-val.lvl-5 { background: #bbf7d0; color: #166534; }

.mat-price {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.mat-ideal {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.mat-guide {
    max-width: 760px;
    margin: 3rem auto 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem 2rem;
}

.mat-guide h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.mat-guide ul {
    margin: 0 0 1rem 1.25rem;
}

.mat-guide li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.mat-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.mat-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ======================================================================
   Livraison (checkout) — adresse + modes
   ====================================================================== */
.checkout-subhead {
    margin: 1.75rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.05rem;
    color: var(--text-dark);
}

.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover {
    border-color: var(--primary-color);
}

.shipping-option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--bg-light);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.shipping-option input {
    flex-shrink: 0;
}

.shipping-option-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shipping-option-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.shipping-option-delay {
    color: var(--text-light);
    font-size: 0.8rem;
}

.shipping-option-price {
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ======================================================================
   Suivi de commande (suivi-commande.html, mes-commandes.html)
   ====================================================================== */
.track-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.track-head h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.track-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.track-steps::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.track-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
}

.track-step.done .track-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.track-step.current .track-dot {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
}

.track-step.done,
.track-step.current {
    color: var(--text-dark);
    font-weight: 600;
}

.track-cancelled {
    text-align: center;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    padding: 0.85rem;
    font-weight: 600;
    margin: 1.25rem 0;
}

.track-block {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.track-item,
.track-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

.track-row span:first-child {
    color: var(--text-light);
}

.track-error {
    text-align: center;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* ── Chat devis (client + admin) ─────────────────────────────────────── */
.chat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.chat-messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 0.85rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-bottom-left-radius: 3px;
}

.chat-meta {
    font-size: 0.7rem;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.chat-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-form textarea {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
}

.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.newsletter-form{padding:1rem;margin-bottom:1.5rem;border:1px solid rgba(255,255,255,.15);border-radius:8px}.newsletter-form div{display:flex;gap:.5rem;margin-top:.6rem;flex-wrap:wrap}.newsletter-form input{flex:1;min-width:220px;padding:.7rem;border-radius:6px;border:1px solid #cbd5e1}.newsletter-form small{display:block;margin-top:.5rem}
.review-submit-form{display:grid;gap:.65rem;padding:1.25rem;margin-bottom:1rem;border:1px solid #e2e8f0;border-radius:10px}.review-submit-form input,.review-submit-form select,.review-submit-form textarea{padding:.7rem;border:1px solid #cbd5e1;border-radius:6px}.review-submit-form textarea{min-height:120px}.reviews-summary{text-align:center;margin-bottom:1.25rem}.reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.review-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem;box-shadow:0 2px 8px rgba(0,0,0,.05)}.review-card img{width:100%;height:220px;object-fit:cover;border-radius:7px;margin-bottom:.75rem}.review-stars{color:#f59e0b;font-size:1.15rem}.review-card small{color:#64748b}
.products-grid>.loading{min-height:220px;border-radius:10px;color:transparent;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s infinite}@keyframes skeleton-shimmer{to{background-position:-200% 0}}
.orders-icon-btn{display:flex;align-items:center;gap:.35rem;color:inherit;text-decoration:none;font-size:.82rem;white-space:nowrap}.orders-icon-btn span:first-child{font-size:1.35rem}.discover-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem}.discover-card{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:transform .2s,box-shadow .2s}.discover-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.1)}.discover-card strong{color:#1e40af;font-size:1.05rem}.discover-card span{color:#64748b;font-size:.92rem}@media(max-width:1100px){.orders-icon-label{display:none}}
