/* ============================================
   Couteaux Artisan - Styles Principaux
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #141414;
    --color-bg-card: #1a1a1a;
    --color-text: #f0f0f0;
    --color-text-muted: #888;
    --color-accent: #c9a84c;
    --color-accent-dark: #a08030;
    --color-accent-light: #e0c060;
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(201, 168, 76, 0.3);
    --transition: 0.3s ease;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-accent-light);
}

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

/* ============================================
   FOND ANIMÉ DE COUTEAUX
   ============================================ */
.knife-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.knife-bg::before,
.knife-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
}

/* Couteaux flottants */
.floating-knife {
    position: absolute;
    font-size: 2rem;
    opacity: 0.06;
    animation: floatKnife linear infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes floatKnife {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.06;
    }
    90% {
        opacity: 0.06;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Lignes de lumière animées */
.light-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.1;
    animation: lightSweep 8s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 100% {
        transform: translateY(-100px) rotate(15deg);
        opacity: 0;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(110vh) rotate(15deg);
        opacity: 0;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transition: all var(--transition);
}

.main-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
}
.logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0.5; transform: scaleX(0.8); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    text-align: center;
    animation: bounce 2s infinite;
}
.hero-scroll span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}
.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-accent);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   PRÉSENTATION
   ============================================ */
.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.presentation-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
}
.presentation-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.presentation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.presentation-card p {
    color: var(--color-text-muted);
}

/* ============================================
   CATÉGORIES
   ============================================ */
.categories {
    background: var(--color-bg-light);
}

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

.category-card {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg));
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all var(--transition);
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: opacity var(--transition);
}
.category-card:hover .category-overlay {
    opacity: 0.7;
}

.category-content {
    position: relative;
    z-index: 1;
    padding: 25px;
}
.category-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}
.category-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   STATISTIQUES
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: var(--color-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   PRODUITS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.product-image {
    height: 200px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.product-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Filtres */
.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

/* Recherche */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50px;
    background: var(--color-bg-card);
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus {
    border-color: var(--color-accent);
}

.search-results {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}
.search-results h4 {
    color: var(--color-accent);
    margin-bottom: 15px;
}
.search-result-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item h5 {
    color: var(--color-accent);
    margin-bottom: 5px;
}
.search-result-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    grid-column: 1 / -1;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
}
.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ============================================
   À PROPOS / TIMELINE
   ============================================ */
.about-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.about-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.timeline-content {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
}
.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.timeline-content p {
    color: var(--color-text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}
.contact-info > p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.info-icon {
    font-size: 1.5rem;
}
.info-item strong {
    display: block;
    margin-bottom: 3px;
}
.info-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}
.form-group textarea {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}
.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--color-bg-light);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-section p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 8px;
}
.footer-section a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ============================================
 * ANIMATIONS (fadeIn, etc.)
 * ============================================ */
.animate__fadeIn {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}
.animate__fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.animate__fadeInDown {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}
.animate__fadeInLeft {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}
.animate__fadeInRight {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate__delay-1s { animation-delay: 0.3s; }
.animate__delay-2s { animation-delay: 0.6s; }
.animate__delay-3s { animation-delay: 0.9s; }

/* ============================================
 * LOADING SPINNER
 * ============================================ */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}
.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
 * RESPONSIVE
 * ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .about-timeline {
        padding-left: 30px;
    }
    .about-timeline::before {
        left: 5px;
    }
    .timeline-dot {
        left: -27px;
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    .contact-form {
        padding: 25px 20px;
    }
}
