/*stylesheet pour trezART*/


:root {
    --bordeaux: #7A0C0C;
    --black: #000000;
    --charcoal: #534b4b;
    --white: #f3dddd;
    --offwhite: #F4F2F2;
    --gray: #B5B2B2;
    --baby-rose: #F2C6CF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
            linear-gradient(rgba(244,242,242,0.9), rgba(244,242,242,0.9)),
            url('https://www.transparenttextures.com/patterns/fabric-of-squares.png');
    color: var(--charcoal);
    overflow-x: hidden;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--bordeaux);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 400;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -6px;
    left: 0;
    background: var(--bordeaux);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cart-btn {
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--bordeaux);
    background: transparent;
    color: var(--bordeaux);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: var(--bordeaux);
    color: var(--white);
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    padding: 100px 64px;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -120px;
    width: 400px;
    height: 400px;
    background: var(--baby-rose);
    border-radius: 50%;
    opacity: 0.25;
    z-index: -1;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: var(--bordeaux);
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-text button {
    padding: 14px 32px;
    border-radius: 40px;
    border: none;
    background: var(--bordeaux);
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-text button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(122,12,12,0.25);
}

.hero-visual {
    position: relative;
}

.needle {
    position: absolute;
    width: 180px;
    height: 2px;
    background: var(--charcoal);
    top: 40%;
    left: 20%;
    animation: needleMove 3.5s ease-in-out infinite;
}

@keyframes needleMove {
    0% { transform: rotate(-25deg) translateY(0); }
    50% { transform: rotate(-18deg) translateY(12px); }
    100% { transform: rotate(-25deg) translateY(0); }
}

.needle::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--charcoal);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.yarn {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-image: image(<url>);
    margin-left: auto;
    animation: yarnSpin 14s linear infinite;
}

@keyframes yarnSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SECTION PRODUITS */
.products {
    padding: 120px 64px;
}

.products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--charcoal);
    margin-bottom: 60px;
}

.product-line {
    display: flex;
    gap: 48px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.product {
    min-width: 260px;
    padding: 32px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(50, 7, 7, 0.05);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-8px);
}

.texture {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.texture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.product button {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: none;
    background: var(--charcoal);
    color: var(--white);
    cursor: pointer;
}

/* ══════════════ FOOTER ══════════════ */
footer {
    border-top: 1px solid #3a3a3a;
    padding: 2.5rem 4rem 1.5rem;
    background: #1e1e1e;
    font-family: 'Montserrat', sans-serif;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-right {
    display: flex;
    gap: 3rem;
}

.footer-col h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 9px;
    transition: color 0.15s;
}

.footer-link:hover { color: var(--baby-rose); }

.footer-link i {
    font-size: 17px;
    color: #888;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.brand-tagline {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #3a3a3a;
    color: #888;
}

.footer-divider {
    border: none;
    border-top: 1px solid #3a3a3a;
    margin: 0 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

.social-icons { display: flex; gap: 10px; }

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.social-icon:hover {
    border-color: var(--baby-rose);
    color: var(--baby-rose);
}

.social-icon i { font-size: 16px; }

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}

.hours-label { color: #888; }
.hours-val { color: #e0e0e0; }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf7d;
    display: inline-block;
    margin-right: 5px;
}

/* PANIER */
.panier {
    position: fixed;
    top: 90px;
    right: -340px;
    width: 320px;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding: 24px;
    transition: right 0.4s ease;
    z-index: 200;
    border-radius: 20px 0 0 20px;
}

.panier.open { right: 0; }
.panier h3 { margin-bottom: 16px; }
.panier-info { font-size: 13px; color: var(--gray); margin-top: 16px; }

.panier-total { margin: 12px 0; font-weight: 600; }
.panier-clear { width: 100%; padding: 10px; border-radius: 30px; border: 1px solid var(--gray); background: transparent; cursor: pointer; margin-bottom: 10px; }
.panier-whatsapp { display: block; text-align: center; padding: 12px; border-radius: 30px; background: #67dc91; color: white; text-decoration: none; font-weight: 500; }

/* CUSTOM ORDER */
.custom-order {
    padding: 120px 64px;
    background-image: url("backgroundyarn.png");
    border-radius: 60px 60px 0 0;
}

.custom-order h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 40px;
}

.custom-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-form input,
.custom-form textarea {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--gray);
    font-family: 'Montserrat', sans-serif;
}

.custom-form textarea {
    min-height: 120px;
    resize: vertical;
}

.custom-form button {
    width: fit-content;
    padding: 14px 36px;
    border-radius: 40px;
    border: none;
    background: var(--bordeaux);
    color: var(--white);
    cursor: pointer;
}

/* SCROLL ANIMATION */
.scroll-textile { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.scroll-textile.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 16px 24px; }
    .hero { padding: 60px 24px; }
    .products { padding: 80px 24px; }
    footer { padding: 2rem 1.5rem 1rem; }
    .panier { width: 100%; right: -100%; border-radius: 0; }
}