:root {
    --jihene-blue: #00337A;
    --text-dark: #1a1a1a;
    --bg-light: #ffffff;
    --bg-cream: #F9F8F5;
    --gray-soft: #f4f4f4;
    --gold: #D4AF37;
    --border: #eeeeee;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 5px;
    color: var(--jihene-blue);
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--jihene-blue);
}

.cart-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
}

/* --- VITRINE D'ACCUEIL --- */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.featured-item {
    position: relative;
    height: 85vh;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    opacity: 0.85;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
}

.featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.featured-price {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* --- COLLECTION (GRILLE 3 PAR LIGNE) --- */
.collection-section {
    padding: 100px 8%;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    margin-bottom: 50px;
}

/* --- FILTRES LUXE --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #999;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--jihene-blue);
    border-bottom-color: var(--jihene-blue);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

/* Effet Cadran */
.img-box {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 3rem;
    margin-bottom: 25px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .img-box {
    border-color: var(--jihene-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.product-card:hover .img-box img {
    transform: scale(1.08);
}

.product-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--jihene-blue);
}

.product-price {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-dark);
}

.old-price {
    text-decoration: line-through;
    color: #bbb;
    margin-right: 10px;
    font-weight: 400;
}

.luxury-badge {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    display: block;
    margin-top: 5px;
}

/* --- PAGE DÉTAILS PRODUIT (DESIGN AMÉLIORÉ) --- */
.product-details-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    padding: 80px 10%;
    max-width: 1600px;
    margin: 0 auto;
}

.details-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-img-box {
    background: #fff;
    border: 1px solid var(--border);
    padding: 50px;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.gallery-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    cursor: pointer;
    background: #fff;
    padding: 5px;
    transition: var(--transition);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--jihene-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.details-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--jihene-blue);
}

.details-description {
    font-weight: 300;
    line-height: 2;
    color: #555;
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* --- SAVOIR FAIRE (SECTION TEXTE & CADRANS) --- */
.about-section {
    padding: 120px 5%;
    background-color: var(--jihene-blue);
    color: white;
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.about-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    font-weight: 200;
    line-height: 2;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Or transparent */
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.about-card h4 {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 300;
}

/* --- PANIER & FORMULAIRES --- */
.cart-container {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
}

.cart-box {
    background: var(--bg-cream);
    padding: 50px;
    border: 1px solid var(--border);
}

.cart-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--jihene-blue);
}

/* --- BOUTONS UNIFIÉS --- */
.btn-primary {
    background: var(--jihene-blue);
    color: white;
    border: none;
    padding: 22px 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #002255;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: #888;
    padding: 18px 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--jihene-blue);
    color: var(--jihene-blue);
}

/* --- ADMIN --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 20px;
    border-bottom: 2px solid var(--jihene-blue);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--jihene-blue);
}

.admin-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

/* --- INPUTS --- */
.form-group {
    margin-bottom: 25px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--jihene-blue);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top: 3px solid var(--jihene-blue);
    border-radius: 50%;
    margin: 100px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--jihene-blue);
    color: white;
    padding: 20px 40px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 9999;
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-layout,
    .product-details-container {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
        text-align: center;
    }

    .nav-links {
        gap: 15px;
    }

    .logo {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .featured-item {
        height: 60vh;
    }

    .featured-title {
        font-size: 2rem;
    }

    .collection-section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-details-container {
        padding: 40px 5%;
        gap: 40px;
    }

    .details-info h2 {
        font-size: 2.2rem;
    }

    .about-section {
        padding: 80px 5%;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-cards {
        gap: 20px;
    }

    .cart-container {
        padding: 40px 5%;
    }

    .cart-box {
        padding: 30px 20px;
    }
}