.carousel-img-wrap {
    position: relative;
}
.carousel-img-wrap img {
    transition: opacity 1s cubic-bezier(.4,0,.2,1);
    opacity: 1;
}
.carousel-img-wrap img.fading {
    opacity: 0;
}
/* style.css - NAYAN vêtements cousus main */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fbf9f7;
    color: #1e1b1a;
    line-height: 1.5;
}

/* ===== VARIABLES ===== */
:root {
    --nayan-terre: #a77e6b;
    --nayan-sable: #e7d9cf;
    --nayan-ocre: #c96e4b;
    --nayan-fonce: #2c2c2c;
    --nayan-blanc-casse: #f6f0ea;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(167, 126, 107, 0.2);
    flex-wrap: wrap;
}

.logo {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nayan-fonce);
    line-height: 1;
}

.logo span {
    font-weight: 300;
    font-size: 1rem;
    display: block;
    letter-spacing: 4px;
    color: var(--nayan-terre);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--nayan-fonce);
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: var(--nayan-ocre);
    border-bottom-color: var(--nayan-ocre);
}

.nav-icon {
    display: flex;
    gap: 1.5rem;
    font-size: 1.3rem;
    color: var(--nayan-terre);
}

.nav-icon i {
    cursor: default;
}

/* ===== SECTION HERO ===== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 3rem;
    padding: 2rem 0;
}

.hero-text {
    flex: 1 1 300px;
}

.hero-badge {
    display: inline-block;
    background: var(--nayan-sable);
    color: var(--nayan-fonce);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 350;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #2a2522;
}

.hero-text h1 i {
    color: var(--nayan-ocre);
    font-style: normal;
    font-weight: 400;
    border-bottom: 2px solid var(--nayan-sable);
}

.hero-text p {
    font-size: 1.2rem;
    color: #3b3532;
    max-width: 500px;
    margin-bottom: 2.2rem;
}

.hero-image {
    flex: 1 1 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
    position: relative;
    min-height: 500px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.carousel-img-wrap {
    position: relative;
    height: 100%;
}
.hero-image img, .carousel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    filter: grayscale(10%) contrast(1.02);
}
.image-caption, #carousel-caption {
    display: none;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 2rem;
    color: var(--nayan-fonce);
    cursor: pointer;
    z-index: 2;
    padding: 0.2em 0.7em;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}
.carousel-nav.left { left: 0.2em; }
.carousel-nav.right { right: 0.2em; }
.carousel-nav:hover { background: var(--nayan-sable); opacity: 1; }
.hero-image:hover .carousel-nav { opacity: 1; }

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    background: var(--nayan-fonce);
    color: white;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.btn:hover {
    background: var(--nayan-ocre);
    border-color: var(--nayan-ocre);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--nayan-terre);
    color: var(--nayan-fonce);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--nayan-sable);
    border-color: var(--nayan-sable);
    color: #1e1b1a;
}

/* ===== SECTION TITRES ===== */
.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 320;
    margin: 3.5rem 0 1.5rem;
    color: #2e2824;
}

.section-title span {
    background: var(--nayan-sable);
    padding: 0.1rem 1rem;
    display: inline-block;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    color: var(--nayan-terre);
}

/* ===== GRILLE PRODUITS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0 4rem;
}

.product-card {
    background: white;
    border-radius: 40px 12px 40px 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(98, 68, 51, 0.12);
    transition: all 0.25s ease;
    border: 1px solid #f0e4db;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 35px -16px #a77e6b80;
    border-color: var(--nayan-terre);
}

.card-img {
    height: 395px;
    background-color: #e1d4ca;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
}

.badge-new {
    background: var(--nayan-ocre);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    letter-spacing: 1px;
}

.card-info {
    padding: 1.5rem 1.2rem 1.5rem;
}

.card-info h3 {
    font-size: 1.3rem;
    font-weight: 450;
    margin-bottom: 0.3rem;
}

.card-info .desc {
    color: #7b6b60;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.price {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--nayan-fonce);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price small {
    font-size: 0.9rem;
    color: var(--nayan-terre);
    font-weight: 300;
    text-decoration: line-through 1px solid #bbb;
}

.btn-commande {
    background: transparent;
    border: 1px solid var(--nayan-terre);
    color: var(--nayan-fonce);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
    margin-top: 0.8rem;
    display: inline-block;
}

.btn-commande i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.btn-commande:hover {
    background: var(--nayan-terre);
    color: white;
}

/* ===== SAVOIR-FAIRE SECTION ===== */
.savoir-section {
    background: var(--nayan-blanc-casse);
    border-radius: 80px 20px 80px 20px;
    padding: 3rem 3rem;
    margin: 4rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.savoir-text {
    flex: 1 1 250px;
}

.savoir-text h2 {
    font-size: 2.2rem;
    font-weight: 340;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.savoir-text p {
    margin-bottom: 1.5rem;
    color: #3b3532;
    font-size: 1.1rem;
}

.signature {
    font-family: 'Georgia', serif;
    color: var(--nayan-terre);
    font-size: 1.3rem;
}

.savoir-media {
    flex: 1 1 250px;
    background: #d6c5b9;
    border-radius: 60px 10px 60px 10px;
    padding: 1.2rem;
    text-align: center;
}

.savoir-media img {
    max-width: 100%;
    border-radius: 40px 8px 40px 8px;
    box-shadow: 0 15px 20px -10px #6f4f3e;
}

/* ===== COMMANDE EN 3 ÉTAPES ===== */
.order-step {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 3rem;
}

.step {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 30px 8px 30px 8px;
    flex: 1 1 180px;
    text-align: center;
    border: 1px solid #eaded3;
}

.step i {
    font-size: 2.2rem;
    color: var(--nayan-ocre);
    background: var(--nayan-sable);
    width: 70px;
    height: 70px;
    line-height: 70px !important;
    border-radius: 30px 5px 30px 5px;
    margin-bottom: 1rem;
}

.step h4 {
    font-size: 1.3rem;
    font-weight: 450;
}

.step p {
    color: #5f554f;
    font-size: 0.95rem;
}

/* ===== BANNIÈRE PROMO ===== */
.promo-banner {
    background: linear-gradient(135deg, #2c2c2c 0%, #4e3f38 100%);
    color: white;
    padding: 2.8rem 2rem;
    border-radius: 100px 20px 100px 20px;
    text-align: center;
    margin: 4rem 0;
}

.promo-banner h3 {
    font-size: 2.2rem;
    font-weight: 330;
    margin-bottom: 0.5rem;
}

.promo-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.85;
}

.promo-code {
    background: rgba(255,255,255,0.15);
    padding: 0.8rem 2rem;
    display: inline-block;
    border-radius: 60px;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 8px;
    border: 1px dashed var(--nayan-sable);
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--nayan-sable);
    padding: 2.5rem 0;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #5a4e47;
}

.social a {
    color: var(--nayan-terre);
    margin-right: 1.5rem;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.social a:hover {
    color: var(--nayan-ocre);
}

.copyright {
    font-size: 0.9rem;
}

hr {
    border: none;
    border-top: 1px solid #eaded3;
    margin: 1rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
}

/* ===== PANIER (drawer) ===== */
.cart-btn { color: var(--nayan-terre); text-decoration: none; }
.cart-btn i { font-size: 1.4rem; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 360px;
    max-width: 92%;
    background: #fff;
    box-shadow: -20px 0 40px -10px rgba(0,0,0,0.2);
    transform: translateX(110%);
    transition: transform 0.35s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display:flex; align-items:center; justify-content:space-between; padding: 1rem 1.2rem; border-bottom:1px solid #f0e4db; }
.cart-header h3 { margin:0; font-size:1.2rem; color:var(--nayan-fonce); }
.cart-close { background:transparent; border:0; font-size:1.6rem; cursor:pointer; color:var(--nayan-fonce); }
.cart-body { padding: 1rem 1.2rem; overflow:auto; flex:1 1 auto; }
.cart-items { list-style:none; padding:0; margin:0; display:block; }
.cart-item { display:flex; justify-content:space-between; padding:0.6rem 0; border-bottom:1px dashed #eee; color:#4a3f39; }
.cart-item .item-title { font-size:0.95rem; }
.cart-item .item-price { font-weight:600; }
.cart-footer { padding: 1rem 1.2rem; border-top:1px solid #f0e4db; display:flex; align-items:center; justify-content:space-between; gap:0.8rem; }
.cart-total { font-weight:700; color:var(--nayan-fonce); }

/* Paiement form */
.pay-form { padding: 1rem 1.2rem; border-top:1px solid #f7f1ec; }
.pay-form h4 { margin:0 0 0.6rem 0; font-size:1.1rem; color:var(--nayan-fonce); }
.mm-options { display:flex; flex-direction:column; gap:0.4rem; margin-bottom:0.6rem; }
.mm-options label { font-size:0.95rem; color:#4a3f39; }
.mm-number { font-size:0.95rem; margin-bottom:0.6rem; color:#3b3532; }

.pulse{animation: pulseBadge 0.45s ease}
@keyframes pulseBadge{0%{transform:scale(1)}50%{transform:scale(1.25)}100%{transform:scale(1)}}
.form-row { margin-bottom:0.6rem; }
.form-row input[type="text"] { width:100%; padding:0.5rem; border:1px solid #e7dcd6; border-radius:6px; }
.form-actions { display:flex; gap:0.6rem; justify-content:flex-end; margin-top:0.6rem; }

/* modal sélection taille */
.size-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:1300; }
.size-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.35); }
.size-modal-panel { position:relative; background:white; padding:1rem 1.2rem; border-radius:8px; width:320px; max-width:92%; box-shadow:0 10px 30px rgba(0,0,0,0.2); z-index:2; }
.size-modal-panel h4 { margin:0 0 0.6rem 0; font-size:1.05rem; }
.size-modal-panel select { width:100%; padding:0.5rem; border-radius:6px; border:1px solid #e7dcd6; }
.remove-item { background:transparent; border:0; color:#b04b3b; font-size:1.1rem; cursor:pointer; margin-left:0.6rem; }
.cart-item { display:flex; align-items:center; justify-content:space-between; gap:0.6rem; }
