/* ============================================
   MAISON ÉLÉGANCE - Tailleur Homme Sur-Mesure
   Design System & Styles
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --gold: #C9A962;
    --gold-light: #D4BC7C;
    --gold-dark: #A68B4B;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-lighter: #252525;
    --white: #FAFAFA;
    --grey: #8A8A8A;
    --grey-light: #ABABAB;
    --error: #D64545;
    --success: #45A564;

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.section-description {
    font-size: 0.9rem;
    color: var(--grey);
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-filled {
    background: var(--gold);
    color: var(--black);
}

.btn-filled:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
    padding: 1.5rem 4rem;
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--black);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    padding: 1rem 4rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon-link {
    color: var(--white);
    transition: color var(--transition-normal);
    position: relative;
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.55rem;
    font-weight: 500;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding-top: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    transition: color var(--transition-normal);
}

.mobile-nav-links a:hover {
    color: var(--gold);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title span {
    color: var(--gold);
}

.hero-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--grey);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    letter-spacing: 0.03em;
    line-height: 1.8;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   Collection Preview
   ============================================ */
.collection-preview {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.products-grid.five-cols {
    grid-template-columns: repeat(5, 1fr);
}

.product-card {
    background: var(--black-light);
    transition: transform var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-link {
    display: block;
}

.product-image {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    z-index: 1;
}

.product-placeholder {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(201, 169, 98, 0.15);
    font-weight: 300;
}

.product-info {
    padding: 1.25rem;
    text-align: center;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.product-price {
    font-size: 0.8rem;
    color: var(--gold);
}

/* ============================================
   Sur-Mesure Section
   ============================================ */
.sur-mesure-section {
    padding: 6rem 4rem;
    background: var(--black-light);
}

.sur-mesure-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sur-mesure-content {
    padding-right: 2rem;
}

.sur-mesure-text {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.sur-mesure-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.sur-mesure-features li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
}

.sur-mesure-features h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.sur-mesure-features p {
    font-size: 0.8rem;
    color: var(--grey);
}

.sur-mesure-image {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.sur-mesure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--black) 0%, var(--black-lighter) 50%, var(--black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(201, 169, 98, 0.2);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

/* ============================================
   Savoir-Faire Section
   ============================================ */
.savoir-faire {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.savoir-faire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.savoir-faire-item {
    text-align: center;
    padding: 2rem;
}

.sf-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.savoir-faire-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.savoir-faire-item p {
    font-size: 0.85rem;
    color: var(--grey);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 6rem 4rem;
    background: var(--black-light);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details {
    margin: 2rem 0;
}

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

.contact-item svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.6;
}

.contact-map {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--black) 0%, var(--black-lighter) 50%, var(--black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(201, 169, 98, 0.2);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 4rem;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-content.footer-simple {
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-description {
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.8;
    max-width: 280px;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--grey);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-normal);
}

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

.footer-contact {
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--grey);
    transition: color var(--transition-normal);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.7rem;
    color: var(--grey);
    letter-spacing: 0.1em;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--grey);
    font-size: 0.7rem;
    transition: color var(--transition-normal);
}

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

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--black-light);
    border: 1px solid var(--gold);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(150%);
    transition: transform var(--transition-normal);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content svg {
    color: var(--success);
}

.toast-content span {
    font-size: 0.8rem;
}

.toast-action {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    header {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .products-grid.five-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .sur-mesure-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sur-mesure-content {
        padding-right: 0;
        order: 2;
    }

    .sur-mesure-image {
        order: 1;
        max-height: 400px;
    }

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

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

    .collection-preview,
    .savoir-faire,
    .sur-mesure-section,
    .contact-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .products-grid.five-cols {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer-content,
    .footer-content.footer-simple {
        grid-template-columns: 1fr;
    }

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

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

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

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

    .section-title {
        font-size: 2rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }
}
