﻿/* =========================
   HOME PAGE FINAL
   Basé sur la maquette premium
   Ne cible que la home
========================= */

.home-page {
    position: relative;
    padding: 26px 0 64px;
}

    .home-page::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 18px;
        transform: translateX(-50%);
        width: min(1220px, calc(100% - 24px));
        height: calc(100% - 18px);
        border-radius: 28px;
        background: linear-gradient(rgba(248,245,240,0.2), rgba(248,245,240,0.2));
        border: 1px solid rgba(207,199,189,0.18);
        box-shadow: 0 26px 60px rgba(17,17,17,0.035);
        z-index: 0;
        pointer-events: none;
    }

.home-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================
   HERO
========================= */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    border-radius: 10px;
    border: 1px solid rgba(207,199,189,0.42);
    box-shadow: 0 24px 54px rgba(17,17,17,0.06);
    background-image: url('/images/ui/hero-editorial.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(248,245,240,0.2), rgba(248,245,240,0.2));
    z-index: 1;
}

.home-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.06;
    background-image: radial-gradient(rgba(17,17,17,0.18) 0.45px, transparent 0.45px), radial-gradient(rgba(17,17,17,0.08) 0.45px, transparent 0.45px);
    background-size: 10px 10px, 14px 14px;
    background-position: 0 0, 5px 5px;
}

.home-hero-content {
    position: relative;
    z-index: 3;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 62px 24px 68px;
}

.home-hero-logo {
    width: min(260px, 52vw);
    height: auto;
    display: block;
    margin: 0 auto 6px;
}

.home-hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 3.35rem);
    line-height: 1;
    color: var(--wpe-black);
    margin-bottom: 6px;
    font-weight: 500;
}

.home-hero-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 1.8vw, 1.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a48756;
    margin-bottom: 24px;
    font-weight: 500;
}

.home-hero-title {
    max-width: 760px;
    margin: 0 auto 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 4.6vw, 5rem);
    line-height: 1.08;
    color: var(--wpe-black-soft);
    font-weight: 500;
}

.home-btn-gold,
.home-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 220ms ease;
    text-decoration: none;
}

.home-btn-gold {
    min-width: 252px;
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--wpe-gold);
    border: 1px solid var(--wpe-gold);
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: 0 10px 26px rgba(198,169,107,0.18);
}

    .home-btn-gold:hover {
        background: var(--wpe-gold-dark);
        border-color: var(--wpe-gold-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.home-btn-gold-small {
    min-width: 0;
    padding: 11px 20px;
    font-size: 1rem;
}

.home-btn-outline {
    min-width: 150px;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid rgba(198,169,107,0.8);
    background: rgba(255,255,255,0.18);
    color: #9b7a47;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
}

    .home-btn-outline:hover {
        background: rgba(198,169,107,0.10);
        color: #87683d;
        border-color: rgba(198,169,107,0.95);
    }

.home-btn-outline-large {
    min-width: 360px;
    padding: 12px 22px;
    font-size: 1.05rem;
}

/* =========================
   SECTIONS GÉNÉRALES
========================= */

.home-section {
    position: relative;
    max-width: 100%;
    margin: 0;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(207,199,189,0.36);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(17,17,17,0.035);
    overflow: hidden;
    padding: 28px 32px 30px;
}

.home-section-heading {
    text-align: center;
    margin-bottom: 20px;
}

.home-section-heading-left {
    text-align: left;
}

.home-section-heading h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 3.6vw, 4rem);
    line-height: 1.04;
    color: var(--wpe-black-soft);
    font-weight: 500;
}

.home-divider {
    display: none;
}

/* =========================
   SECTION LIVRES
========================= */

.home-section:first-of-type + .home-section,
.home-stack > .home-section:first-of-type {
    /* sécurité */
}

.home-stack > .home-section:nth-child(2) {
    background: url('/images/ui/home-books-editorial.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 18px;
    padding-bottom: 22px;
}

.home-book-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none;
}

    .home-book-card:hover {
        transform: none;
        box-shadow: none;
    }

.home-book-image-shell {
    display: none;
}

.home-book-body {
    display: none;
}

/* on cache les cartes réelles dans la section livres pour utiliser l’image éditoriale */
.home-stack > .home-section:nth-child(2) .row {
    display: none;
}

.home-stack > .home-section:nth-child(2) .text-center.mt-4,
.home-stack > .home-section:nth-child(2) .text-center.mt-4.mt-lg-5 {
    margin-top: 468px !important;
}

.home-stack > .home-section:nth-child(2) .home-btn-outline-large {
    background: rgba(248,245,240,0.72);
    min-width: 358px;
    padding: 11px 22px;
    font-size: 1.02rem;
}

/* =========================
   À PROPOS + ÉDITORIAL
========================= */

.home-about-panel,
.home-editorial-panel {
    height: 100%;
    min-height: 560px;
}

.home-about-panel {
    padding: 12px 12px 10px;
}

.home-about-text {
    max-width: 520px;
    margin: 18px 0 22px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.28rem;
    line-height: 1.65;
    color: var(--wpe-black-soft);
    font-weight: 500;
}

.home-about-footer {
    margin-top: 44px;
}

.home-about-logo {
    width: min(250px, 72%);
    display: block;
    margin: 0 0 14px;
}

.home-about-contact {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--wpe-gray-elegant);
    font-weight: 500;
}

.home-editorial-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(248,245,240,0.2), rgba(248,245,240,0.2)), url('/images/ui/hero-editorial.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-left: 1px solid rgba(207,199,189,0.22);
}

.home-editorial-card {
    width: min(420px, 100%);
    background: rgba(248,245,240,0.84);
    border: 1px solid rgba(198,169,107,0.32);
    border-radius: 8px;
    padding: 34px 28px;
    box-shadow: 0 14px 32px rgba(17,17,17,0.04);
    text-align: center;
}

    .home-editorial-card h3 {
        margin: 0 0 14px;
        font-family: 'Cormorant Garamond', serif;
        font-size: clamp(2.1rem, 2.8vw, 3.2rem);
        line-height: 1.02;
        color: #927446;
        font-weight: 500;
    }

    .home-editorial-card p {
        margin: 0 0 22px;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.18rem;
        line-height: 1.65;
        color: var(--wpe-black-soft);
        font-weight: 500;
    }

/* =========================
   MANUSCRIT
========================= */

.home-manuscript-zone {
    padding-top: 38px;
    padding-bottom: 38px;
    background: linear-gradient(rgba(248,245,240,0.78), rgba(248,245,240,0.78)), radial-gradient(circle at top left, rgba(255,255,255,0.48), transparent 26%), linear-gradient(180deg, var(--wpe-beige-light), var(--wpe-ivory));
}

.home-manuscript-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 34px 32px 36px;
    text-align: center;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(198,169,107,0.34);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(17,17,17,0.035);
}

.home-manuscript-eyebrow {
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a48756;
    font-weight: 600;
}

.home-manuscript-title {
    margin: 0 0 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 3.3vw, 3.8rem);
    line-height: 1.04;
    color: var(--wpe-black-soft);
    font-weight: 500;
}

.home-manuscript-text {
    max-width: 620px;
    margin: 0 auto 22px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--wpe-black-soft);
    font-weight: 500;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1199.98px) {
    .home-page::before {
        width: min(1140px, calc(100% - 18px));
    }

    .home-hero,
    .home-hero-content {
        min-height: 620px;
    }

    .home-hero-logo {
        width: min(235px, 48vw);
    }

    .home-stack > .home-section:nth-child(2) .text-center.mt-4,
    .home-stack > .home-section:nth-child(2) .text-center.mt-4.mt-lg-5 {
        margin-top: 400px !important;
    }

    .home-about-panel,
    .home-editorial-panel {
        min-height: 500px;
    }
}

@media (max-width: 991.98px) {
    .home-page {
        padding: 18px 0 48px;
    }

        .home-page::before {
            top: 12px;
            width: calc(100% - 14px);
            height: calc(100% - 12px);
            border-radius: 20px;
        }

    .home-stack {
        gap: 22px;
    }

    .home-hero {
        min-height: auto;
        border-radius: 8px;
    }

    .home-hero-content {
        min-height: auto;
        padding: 52px 22px 56px;
    }

    .home-hero-logo {
        width: min(220px, 54vw);
    }

    .home-hero-subtitle {
        font-size: 2.4rem;
    }

    .home-hero-brand {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    .home-hero-title {
        max-width: 620px;
        font-size: 3.35rem;
        margin-bottom: 22px;
    }

    .home-section {
        border-radius: 8px;
        padding: 24px 22px 24px;
    }

    .home-section-heading h2 {
        font-size: 3rem;
    }

    .home-stack > .home-section:nth-child(2) {
        background-position: center center;
        padding-top: 16px;
        padding-bottom: 20px;
    }

        .home-stack > .home-section:nth-child(2) .text-center.mt-4,
        .home-stack > .home-section:nth-child(2) .text-center.mt-4.mt-lg-5 {
            margin-top: 288px !important;
        }

    .home-btn-outline-large {
        min-width: 310px;
    }

    .home-about-panel,
    .home-editorial-panel {
        min-height: auto;
    }

    .home-about-panel {
        padding: 4px 0 0;
    }

    .home-about-text {
        max-width: 100%;
        font-size: 1.18rem;
        line-height: 1.6;
        margin: 16px 0 20px;
    }

    .home-about-footer {
        margin-top: 28px;
    }

    .home-editorial-panel {
        min-height: 420px;
        border-left: none;
        border-top: 1px solid rgba(207,199,189,0.22);
        padding: 28px 0 8px;
    }

    .home-editorial-card {
        width: min(460px, 100%);
    }

    .home-manuscript-zone {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .home-manuscript-card {
        padding: 28px 24px 30px;
    }

    .home-manuscript-text {
        font-size: 1.1rem;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767.98px) {
    .home-page {
        padding: 12px 0 36px;
    }

        .home-page::before {
            top: 8px;
            width: calc(100% - 10px);
            height: calc(100% - 8px);
            border-radius: 16px;
        }

    .home-stack {
        gap: 16px;
    }

    .home-hero {
        border-radius: 6px;
    }

    .home-hero-content {
        padding: 40px 16px 44px;
    }

    .home-hero-logo {
        width: min(180px, 62vw);
        margin-bottom: 4px;
    }

    .home-hero-subtitle {
        font-size: 1.85rem;
        margin-bottom: 4px;
    }

    .home-hero-brand {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        margin-bottom: 14px;
    }

    .home-hero-title {
        max-width: 100%;
        font-size: 2.3rem;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .home-btn-gold,
    .home-btn-outline,
    .home-btn-outline-large {
        width: 100%;
        min-width: 0;
    }

    .home-btn-gold {
        padding: 11px 16px;
        font-size: 1rem;
    }

    .home-btn-outline {
        padding: 10px 14px;
        font-size: 0.98rem;
    }

    .home-section {
        border-radius: 6px;
        padding: 18px 14px 18px;
    }

    .home-section-heading {
        margin-bottom: 14px;
    }

        .home-section-heading h2 {
            font-size: 2.35rem;
        }

    .home-stack > .home-section:nth-child(2) {
        background-position: center top;
        background-size: cover;
        padding-top: 14px;
        padding-bottom: 16px;
    }

        .home-stack > .home-section:nth-child(2) .text-center.mt-4,
        .home-stack > .home-section:nth-child(2) .text-center.mt-4.mt-lg-5 {
            margin-top: 168px !important;
        }

    .home-about-text {
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .home-about-logo {
        width: min(210px, 74%);
    }

    .home-about-contact {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .home-editorial-panel {
        min-height: 320px;
        padding-top: 18px;
    }

    .home-editorial-card {
        padding: 24px 18px;
        border-radius: 6px;
    }

        .home-editorial-card h3 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .home-editorial-card p {
            font-size: 1.02rem;
            line-height: 1.55;
            margin-bottom: 18px;
        }

    .home-manuscript-zone {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .home-manuscript-card {
        padding: 22px 16px 24px;
        border-radius: 6px;
    }

    .home-manuscript-eyebrow {
        font-size: 0.94rem;
        margin-bottom: 6px;
    }

    .home-manuscript-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .home-manuscript-text {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }
}
