/* Plume Malice LP 3 (visiteurs venus du blog) : mobile-first */

:root {
    --navy: #122C4F;
    --navy-light: #1A3D6B;
    --cream: #FBF9E4;
    --gold: #FFD700;
    --gold-dark: #F2C500;
    --promo: #FEF08A;
    --text: #122C4F;
    --muted: #4B5563;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(18, 44, 79, 0.10);
    --shadow-lg: 0 12px 32px rgba(18, 44, 79, 0.16);
    --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.mt-32 {
    margin-top: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(18, 44, 79, 0.25);
}

.btn-primary:hover {
    background: var(--navy-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(242, 197, 0, 0.35);
}

.btn-gold:hover {
    background: var(--gold-dark);
}

.btn-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.875rem;
    box-shadow: none;
}

/* Promo bar + header */
.promo-bar {
    background: var(--promo);
    color: var(--navy);
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.3;
    padding: 8px 12px;
}

.site-header {
    background: var(--navy);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo img {
    height: 36px;
    width: auto;
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 18px 0 28px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-rating {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.stars {
    color: #F5B301;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 1.85rem;
}

.hl {
    background: linear-gradient(transparent 62%, var(--gold) 62%);
    padding: 0 2px;
}

.hero-sub {
    margin-top: 8px;
    font-size: 1.05rem;
    color: var(--muted);
}

.hero-sub strong {
    color: var(--navy);
}

.hero-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 10;
    background: var(--cream);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 50%;
}

.hero-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-cta-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-choice {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.05rem;
}

.hero-all {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Sections */
.section {
    padding: 48px 0;
}

.section-cream {
    background: var(--cream);
}

.section-head {
    text-align: center;
    margin-bottom: 24px;
}

.section-head h2,
.proof-text h2,
.final-cta h2 {
    font-size: 1.5rem;
}

.section-head p {
    margin-top: 8px;
    color: var(--muted);
}

/* Books */
.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.book-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px 14px;
    flex: 1;
}

.book-age {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy-light);
    padding: 2px 8px;
    border-radius: 999px;
}

.book-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
}

.book-link {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Proof */
.proof-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.proof-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--cream);
}

.proof-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-text p {
    margin-top: 12px;
    color: var(--muted);
}

.check-list {
    margin: 16px 0 24px;
    display: grid;
    gap: 8px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-text .btn {
    width: 100%;
}

/* Inside : carrousel horizontal sur mobile */
.inside-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 8px;
    scrollbar-width: none;
}

.inside-grid::-webkit-scrollbar {
    display: none;
}

.inside-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-snap-align: center;
}

/* Steps */
.steps {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Occasions */
.occasions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.occasion-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.occasion-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.occasion-card span {
    display: block;
    padding: 10px 8px;
}

.promo-note {
    margin-top: 24px;
    background: var(--promo);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.92rem;
}

/* Reviews : carrousel horizontal sur mobile */
.reviews {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 8px;
    scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
    display: none;
}

.review {
    scroll-snap-align: center;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review p {
    font-size: 0.95rem;
}

.review cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
}

/* FAQ */
.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 48px 16px 18px;
    font-weight: 600;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 18px 16px;
    color: var(--muted);
}

/* Final CTA */
.final-cta {
    background: var(--navy);
    padding: 48px 0;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0 20px;
}

.choice-row-center {
    max-width: 420px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: #0D2140;
    color: rgba(255, 255, 255, 0.7);
    padding: 28px 0 100px;
    font-size: 0.85rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 14px;
}

.footer-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sticky CTA mobile : visible une fois le hero dépassé */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 16px rgba(18, 44, 79, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}

.sticky-cta .btn {
    width: 100%;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

/* Tablette */
@media (min-width: 600px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .occasions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .inside-grid,
    .reviews {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-columns: auto;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .proof-text .btn {
        width: auto;
    }

    .promo-bar {
        font-size: 0.875rem;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .hero {
        padding: 56px 0 64px;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 540px;
        grid-template-areas:
            "text media"
            "cta media";
        column-gap: 56px;
        row-gap: 24px;
        align-items: center;
    }

    .hero-text {
        grid-area: text;
        align-self: end;
    }

    .hero-media {
        grid-area: media;
        aspect-ratio: 4 / 3;
    }

    .hero-cta {
        grid-area: cta;
        align-self: start;
        max-width: 440px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        left: 16px;
        bottom: 16px;
    }

    .hero-all {
        text-align: left;
    }

    .hero-trust {
        justify-content: flex-start;
    }

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2,
    .proof-text h2,
    .final-cta h2 {
        font-size: 2.1rem;
    }

    .book-title {
        font-size: 1.05rem;
    }

    .book-body {
        padding: 16px 18px 20px;
    }

    .book-card:hover,
    .occasion-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .proof-grid {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 56px;
        align-items: center;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        gap: 32px;
    }

    .final-cta {
        padding: 72px 0;
    }

    .site-footer {
        padding-bottom: 32px;
    }

    .sticky-cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .btn,
    .book-card,
    .occasion-card,
    .sticky-cta {
        transition: none;
    }
}

/* Variante selon l'article d'origine (?theme=naissance) */
.only-naissance {
    display: none;
}

[data-theme="naissance"] .only-naissance {
    display: flex;
}

[data-theme="naissance"] .hide-naissance {
    display: none;
}

[data-theme="naissance"] .first-naissance {
    order: -1;
}

/* Offrir sans avoir la photo */
.gift-grid {
    display: grid;
    gap: 12px;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.gift-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.gift-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.gift-link {
    margin-top: 6px;
    font-weight: 600;
    color: var(--navy-light);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (min-width: 600px) {
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
