/* ==========================================================================
   Vin de Chine — Kasite / Kasidaile
   main.css — tous les styles du site
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
    /* Palette */
    --creme: #F7F1E6;
    --ivoire: #FBF8F1;
    --rouge-chinois: #A81C22;
    --bordeaux: #6E1420;
    --or: #C4A265;
    --or-clair: #D8BE86;
    --anthracite: #241E1B;
    --taupe: #6B5D54;
    --blanc: #FFFFFF;
    --creme-ombre: #EDE4D2;

    /* Alias sémantiques */
    --surface-page: var(--creme);
    --surface-alt: var(--ivoire);
    --surface-dark: var(--bordeaux);
    --text-body: var(--anthracite);
    --text-muted: var(--taupe);
    --text-on-dark: var(--creme);
    --line-gold: var(--or);
    --line-gold-soft: var(--or-clair);

    /* Typographie */
    --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset minimal
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--surface-page);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   3. Utilitaires
   -------------------------------------------------------------------------- */

/* Filet or — décoration */
.gold-rule {
    position: relative;
    display: block;
    width: 72px;
    height: 12px;
    margin: 0 auto;
}

.gold-rule::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--or);
    transform: translateY(-50%);
}

/* Version ornement : filet — losange — filet */
.gold-rule--ornament {
    width: 160px;
}

.gold-rule--ornament::before {
    background: linear-gradient(
            to right,
            var(--or) calc(50% - 9px),
            transparent calc(50% - 9px),
            transparent calc(50% + 9px),
            var(--or) calc(50% + 9px)
    );
}

.gold-rule--ornament::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--or);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Label de section */
.section-label {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--or);
    text-align: center;
    margin: 0 0 8px;
}

/* --------------------------------------------------------------------------
   4. Conteneur principal
   -------------------------------------------------------------------------- */
.vdc-main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    background: var(--creme);
}

/* --------------------------------------------------------------------------
   5. Hero — bandeau plein écran
   -------------------------------------------------------------------------- */
.vdc-hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('/assets/img/hero-chine.jpg');
    background-size: cover;
    background-position: center 38%;
}

.vdc-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 56% at 50% 50%, rgba(18, 12, 10, 0.60) 0%, rgba(18, 12, 10, 0.22) 62%, rgba(18, 12, 10, 0.04) 100%),
    linear-gradient(180deg, rgba(18, 12, 10, 0.46) 0%, rgba(18, 12, 10, 0.30) 46%, rgba(18, 12, 10, 0.60) 100%);
}

.vdc-hero-inner {
    position: relative;
    padding: 0 48px;
    max-width: 900px;
}

.vdc-hero-surtitle {
    font-family: var(--font-body);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--or-clair);
    margin: 0 0 20px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.vdc-hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(52px, 6.6vw, 92px);
    line-height: 1.04;
    letter-spacing: 0.06em;
    color: var(--creme);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.50), 0 1px 4px rgba(0, 0, 0, 0.38);
    margin: 0;
}

.vdc-hero-subtitle {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--or-clair);
    margin: 30px 0 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.vdc-hero-rule {
    margin: 28px auto 26px;
}

.vdc-hero-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--creme);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.60);
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. Sections produits
   -------------------------------------------------------------------------- */
.vdc-section {
    padding: 100px 80px 104px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.vdc-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vdc-section--creme {
    background: var(--creme);
}

.vdc-section--ivoire {
    background: var(--ivoire);
    padding-top: 0;
}

/* Séparateur or en tête de section ivoire */
.vdc-section-separator {
    margin: 0 auto 76px;
    position: relative;
    top: 100px;
}

/* Grille produit : bouteille + texte */
.vdc-product-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 76px;
    align-items: center;
}

/* Version inversée (texte à gauche, bouteille à droite) */
.vdc-product-grid--reverse {
    grid-template-columns: 1.08fr 0.92fr;
}

/* Visuel bouteille */
.vdc-bottle-wrap {
    text-align: center;
}

.vdc-bottle-img {
    display: inline-block;
    width: 100%;
    height: clamp(300px, 42vw, 500px);
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    object-fit: contain;
}

.vdc-bottle-img:hover {
    object-fit: cover;
    box-shadow: 0 24px 40px rgba(36,30,27,0.18);
}

/* Texte produit */
.vdc-product-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--taupe);
    margin: 0 0 12px;
}

.vdc-product-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--or);
    margin: 0 0 24px;
    line-height: 1;
    flex-wrap: wrap;
}

.vdc-title-zh {
    font-size: clamp(44px, 5vw, 64px);
    letter-spacing: 0.06em;
}

.vdc-title-dot {
    font-size: 30px;
    color: var(--taupe);
}

.vdc-title-rom {
    font-size: clamp(22px, 2.5vw, 32px);
    letter-spacing: 0.02em;
}

.vdc-product-desc-zh {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.95;
    color: var(--anthracite);
    margin: 0;
    max-width: 34ch;
}

.vdc-product-desc-fr {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--taupe);
    margin: 18px 0 0;
    max-width: 46ch;
}

/* --------------------------------------------------------------------------
   7. Accords mets & vins
   -------------------------------------------------------------------------- */
.vdc-pairing {
    max-width: 760px;
    margin: 74px auto 0;
    text-align: center;
}

.vdc-pairing-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.vdc-pairing-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--taupe);
    margin: 8px 0 26px;
}

.vdc-pairing-subtitle span {
    font-size: 23px;
    color: var(--anthracite);
    font-style: normal;
}

.vdc-pairing-rule {
    margin: 0 auto 30px;
}

.vdc-pairing-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.vdc-pairing-item {
    flex: 1;
    max-width: 320px;
    padding: 0 30px;
}

.vdc-pairing-item p:first-child {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--anthracite);
    margin: 0;
}

.vdc-pairing-item p:last-child {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--taupe);
    margin: 7px 0 0;
}

.vdc-pairing-divider {
    width: 1px;
    align-self: stretch;
    background: var(--line-gold-soft);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.vdc-footer {
    background: var(--bordeaux);
    color: var(--creme);
    border-top: 1px solid var(--or);
    padding: 54px 80px 50px;
    text-align: center;
}

.vdc-footer-info {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: rgba(247, 241, 230, 0.92);
    margin: 0 0 10px;
}

.vdc-footer-alcohol {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgba(247, 241, 230, 0.56);
}

.vdc-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(196, 162, 101, 0.25);
}

.vdc-footer-links a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--or-clair);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* --------------------------------------------------------------------------
   9. Pages CDN (/legal, /agec, /ingredients, /contact)
   -------------------------------------------------------------------------- */
.page-cdn {
    min-height: 100vh;
    background: var(--surface-page);
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .vdc-section {
        padding: 72px 40px 80px;
    }

    .vdc-section--ivoire {
        padding-top: 0;
    }

    .vdc-section-separator {
        top: 72px;
        margin-bottom: 56px;
    }

    .vdc-product-grid,
    .vdc-product-grid--reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Sur mobile, la bouteille passe toujours en premier */
    .vdc-product-grid--reverse .vdc-bottle-wrap {
        order: -1;
    }

    .vdc-bottle-img {
        height: clamp(480px, 60vw, 380px);
    }

    .vdc-product-desc-zh,
    .vdc-product-desc-fr {
        max-width: 100%;
    }

    .vdc-product-title {
        gap: 10px;
    }

    .vdc-footer {
        padding: 40px 28px 36px;
    }

    .vdc-pairing-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .vdc-pairing-divider {
        display: none;
    }

    .vdc-pairing-item {
        padding: 0;
        max-width: 100%;
    }
}

@media (max-width: 540px) {
    .vdc-hero {
        min-height: 560px;
    }

    .vdc-hero-inner {
        padding: 0 24px;
    }

    .vdc-hero-subtitle {
        font-size: 22px;
    }

    .vdc-section {
        padding: 56px 24px 64px;
    }

    .vdc-section--ivoire {
        padding-top: 0;
    }

    .vdc-section-separator {
        top: 56px;
        margin-bottom: 48px;
    }

    .vdc-pairing {
        margin-top: 52px;
    }

    .vdc-footer-links {
        gap: 12px 20px;
    }
}
