/* ========================================
   PAGE DU LIVRE — RÉUSSIR OU ÉCHOUER
   (reprend accueil.css et livre.css)
======================================== */


/* ===== HERO : UNE COUVERTURE MISE EN AVANT ===== */

.showcase {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding-top: 24px;
}

.showcase .cover {
    width: min(100%, 360px);
    padding: 0;
}

/* La couverture monte au chargement */
@keyframes showcaseIn {
    from { opacity: 0; transform: translateY(80px) rotate(-2deg); }
}

.showcase .cover {
    animation: showcaseIn 1.8s var(--ease-book) 0.45s backwards;
}


/* ===== L'IDÉE, EN UNE PHRASE ===== */

.statement {
    max-width: 20ch;
    font-size: clamp(2.3rem, 5vw, 4.75rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.statement span {
    color: var(--muted);
}


/* ===== PRÉSENTATION + ROUTE ===== */

.presentation {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr);
    gap: 0 72px;
}

/* La route se trace quand elle entre à l'écran */
.road {
    width: 100%;
    max-width: 120px;
    height: 100%;
    min-height: 600px;
    justify-self: center;
    overflow: visible;
}

.road path {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
}

/* Le tracé se dessine (seulement si les animations sont actives) */
.js .road path {
    stroke: var(--fg);
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 3.2s var(--ease);
}

.js .road.is-visible path {
    stroke-dashoffset: 0;
}

/* Pas de déplacement pour la route elle-même */
.js .road[data-reveal] {
    transform: none;
}

.presentation-text .h2 {
    margin-bottom: 36px;
}

.presentation-text .lead {
    max-width: 52ch;
}

.presentation-text .lead + .lead {
    margin-top: 24px;
}

.keys {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    list-style: none;
}

.keys-num {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.keys p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}


/* ===== COMMANDER ===== */

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
}


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

@media (max-width: 900px) {

    .presentation {
        grid-template-columns: 1fr;
    }

    .road {
        display: none;
    }

    .keys {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {

    .showcase .cover {
        width: min(70%, 280px);
    }

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

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

    .showcase .cover {
        animation: none;
    }

    .js .road path {
        transition: none;
        stroke-dashoffset: 0;
    }
}
