/* ============================================
   TroisFils - Stylesheet Principal
   Broderie d'Articles Religieux Juifs
   ============================================ */

/* === VARIABLES === */
:root {
    --primary: #1a2744;
    --primary-light: #2c4a7c;
    --primary-dark: #0f1a2e;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-dark: #8b6508;
    --cream: #faf8f4;
    --cream-dark: #f0ebe0;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --white: #ffffff;
    --border: #e8e2d8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* === NAVBAR === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-trois {
    color: var(--primary);
}

.logo-fils {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--primary);
    padding: 0.5rem;
}

.cart-icon:hover {
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
}

/* === HERO === */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10rem 5% 8rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1547483238-f400e65ccd56?w=1600&h=900&fit=crop') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(184, 134, 11, 0.3);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--text);
}

/* === GUARANTEES BAR === */
.guarantees {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.guarantees-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.guarantee-item i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* === SECTIONS === */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* === CATEGORIES === */
.categories-section {
    padding: 6rem 0;
}

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

.category-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.category-card-inner {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.category-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.95) 0%, rgba(26, 39, 68, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

.category-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.category-overlay p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.category-link {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === PRODUCTS GRID === */
.featured-section,
.boutique-section {
    padding: 6rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--cream-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-overlay span {
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 600;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0.4rem 0;
    font-family: 'Playfair Display', serif;
}

.product-info h3 a:hover {
    color: var(--gold);
}

.product-info p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.btn-add-cart {
    background: var(--gold);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-add-cart:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.add-cart-form {
    display: inline;
}

/* === VALUES === */
.values-section {
    padding: 6rem 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.value-card:hover {
    background: var(--cream);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* === TESTIMONIALS === */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card > p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

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

.page-header p {
    opacity: 0.8;
    font-size: 1.05rem;
}

/* === FILTERS === */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

/* === PRODUCT DETAIL === */
.product-detail {
    padding: 3rem 0 6rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb i {
    font-size: 0.6rem;
}

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

.product-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0 1rem;
}

.product-detail-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-detail-details {
    background: var(--cream-dark);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.product-detail-details h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-detail-details p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.product-detail-price .price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 1.5rem;
}

.product-detail-form {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--text-light);
}

.quantity-selector input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}

.product-guarantees {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.product-guarantees p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.product-guarantees i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* === CART === */
.cart-section {
    padding: 4rem 0;
}

.cart-empty {
    text-align: center;
    padding: 4rem 0;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cart-empty h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

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

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

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

.cart-item-qty input {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-subtotal {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 70px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin: 1rem 0 1.5rem;
    border-top: 2px solid var(--border);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* === ABOUT === */
.about-story {
    padding: 5rem 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.team-section {
    padding: 5rem 0;
    background: var(--cream-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--gold-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.team-role {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-card p:last-child {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* === CONTACT === */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info-panel {
    background: var(--primary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.contact-info-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.contact-hours {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-hours h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-hours p {
    opacity: 0.75;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contact-form-panel {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    background: var(--white);
}

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

/* === ALERTS === */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    flex-direction: column;
    align-items: flex-start;
}

.alert-error p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === FOOTER === */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

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

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

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
}

.footer-nav h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.footer-nav i {
    width: 20px;
    color: var(--gold-light);
    margin-right: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.8rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }

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

    .hero {
        padding: 6rem 5% 5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .guarantees-grid {
        gap: 1.5rem;
    }

    .guarantee-item span {
        display: none;
    }

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

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

    .cart-item {
        flex-wrap: wrap;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

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

/* === BRODERIE SECTION (page produit) === */
.product-broderie-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.product-broderie-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-broderie-section h4 i {
    color: var(--gold);
}

.broderie-intro {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.broderie-list {
    list-style: none;
    padding: 0;
}

.broderie-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    color: var(--text);
}

.broderie-list li:last-child {
    border-bottom: none;
}

.broderie-list li i {
    color: var(--gold);
    margin-top: 0.2rem;
    min-width: 16px;
}

.broderie-note {
    margin-top: 1.2rem;
    padding: 0.8rem 1rem;
    background: rgba(184, 134, 11, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.broderie-note i {
    color: var(--gold);
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.3rem;
    font-family: 'Inter', sans-serif;
}

/* === SIMULATEUR DE BRODERIE === */
.simulator-section {
    padding: 4rem 0 6rem;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.simulator-preview {
    position: sticky;
    top: 100px;
}

.preview-frame {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

.preview-product {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--cream-dark);
    margin-bottom: 1rem;
}

.broderie-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
    cursor: grab;
}

.broderie-canvas:active {
    cursor: grabbing;
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 134, 11, 0.08);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--gold);
    color: var(--gold-dark);
    font-size: 0.85rem !important;
    margin-top: 0.3rem;
}

.drag-hint i {
    color: var(--gold);
    animation: pulse-hand 1.5s ease infinite;
}

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

.preview-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 1rem;
}

.preview-text-layer.position-top {
    align-items: flex-start;
    padding-top: 15%;
}

.preview-text-layer.position-center {
    align-items: center;
}

.preview-text-layer.position-bottom {
    align-items: flex-end;
    padding-bottom: 15%;
}

#preview-text {
    font-size: 28px;
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Effet broderie */
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 -1px 0 rgba(255, 255, 255, 0.2),
        1px 0 0 rgba(0, 0, 0, 0.2),
        -1px 0 0 rgba(0, 0, 0, 0.2),
        0 2px 3px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.3);
    paint-order: stroke fill;
    filter: url(#broderie-filter);
}

.preview-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.preview-label i {
    color: var(--gold);
}

.simulator-controls {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.simulator-controls h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.simulator-controls h2 i {
    color: var(--gold);
}

.control-group {
    margin-bottom: 1.8rem;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.control-group label i {
    color: var(--gold);
    width: 16px;
}

.control-group input[type="text"],
.control-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream);
    transition: var(--transition);
}

.control-group input[type="text"]:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    background: var(--white);
}

.control-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Font choices */
.font-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.font-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--cream);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-light);
}

.font-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.font-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Color choices */
.color-choices {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

/* Range slider */
.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Position choices */
.position-choices {
    display: flex;
    gap: 0.5rem;
}

.position-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    color: var(--text-light);
}

.position-btn:hover {
    border-color: var(--gold);
}

.position-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Summary */
.simulator-summary {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.summary-line span {
    color: var(--text-muted);
}

.summary-line strong {
    color: var(--primary);
}

.simulator-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* Inspiration */
.inspiration-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.inspiration-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 2rem;
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.inspiration-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.inspiration-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.inspiration-card ul {
    list-style: none;
    padding: 0;
}

.inspiration-card li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1.2rem;
    position: relative;
}

.inspiration-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.7rem;
    top: 0.55rem;
}

@media (max-width: 1024px) {
    .simulator-grid {
        grid-template-columns: 1fr;
    }

    .simulator-preview {
        position: static;
    }
}

@media (max-width: 768px) {
    .font-choices {
        gap: 0.4rem;
    }

    .font-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}
