/* ═════════════════════════════════════════════
   /css/annales-achat.css
   Page vente — Annales EVC (livre Amazon)
   ═════════════════════════════════════════════ */

.achat-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* ══ HERO ══════════════════════════════════════ */
.book-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
.book-cover-wrap {
    position: sticky;
    top: 5rem;
}
.book-cover {
    width: 100%;
    border-radius: 10px;
    box-shadow:
        0 4px 12px rgba(26, 47, 79, 0.14),
        0 16px 40px rgba(26, 47, 79, 0.12);
    display: block;
    aspect-ratio: 6 / 9;
    object-fit: cover;
    background: var(--c-surface-2, #f6f7fb);
}
.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.book-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}
.book-title {
    margin: 0 0 0.3rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--c-navy, #1a2f4f);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.book-subtitle {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--c-text-muted, #5a6478);
    font-weight: 400;
}
.book-pitch {
    color: var(--c-text, #1a2332);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.book-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #FF9900;
    color: #111;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}
.btn-amazon:hover {
    background: #e68a00;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35);
}
.btn-amazon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.book-format-hint {
    font-size: 0.82rem;
    color: var(--c-text-muted, #5a6478);
}
.book-authors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--c-text-muted, #5a6478);
    margin-top: 0.25rem;
}
.book-authors strong {
    color: var(--c-navy, #1a2f4f);
}

/* ══ CONTENU MARKETING ══════════════════════════ */
.book-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.book-detail-block {
    background: var(--c-surface, #ffffff);
    border: 1px solid var(--c-border, #e8eaef);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}
.book-detail-block h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy, #1a2f4f);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.book-detail-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.book-detail-block ul li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--c-text, #1a2332);
    line-height: 1.5;
}
.book-detail-block ul li::before {
    content: "•";
    color: var(--c-accent, #667eea);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.1em;
}
.book-detail-block p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--c-text, #1a2332);
    line-height: 1.7;
}

/* ══ CARD ANNALES ANTÉRIEURES ══════════════════ */
.older-annales-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--c-surface-2, #f6f7fb);
    border: 1px solid var(--c-border, #e8eaef);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}
.older-annales-card .oac-left {
    flex: 1;
}
.older-annales-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy, #1a2f4f);
}
.older-annales-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text-muted, #5a6478);
    line-height: 1.5;
}
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    background: var(--c-navy, #1a2f4f);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    flex-shrink: 0;
}
.btn-contact:hover {
    background: var(--c-navy-soft, #2c4a6e);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26, 47, 79, 0.2);
}

/* ══ RESPONSIVE ══════════════════════════════════ */
@media (max-width: 700px) {
    .book-hero {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .book-cover-wrap {
        position: static;
        max-width: 200px;
        margin: 0 auto;
    }
    .book-title {
        font-size: 1.4rem;
        text-align: center;
    }
    .book-subtitle,
    .book-badge {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .book-cta-group {
        justify-content: center;
    }
    .book-authors {
        justify-content: center;
    }
    .book-detail-block {
        padding: 1.25rem;
    }
    .older-annales-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
}

/* ══ SLIDER APERÇU ══════════════════════════════ */
.preview-section {
    margin-bottom: 2.5rem;
}
.preview-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy, #1a2f4f);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.preview-section h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border, #e8eaef);
}

.book-slider {
    position: relative;
    user-select: none;
}
.book-slider__track {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 47, 79, 0.08);
    background: var(--c-surface-2, #f6f7fb);
    aspect-ratio: 7 / 5;   /* paysage : adapte si tes pages sont portrait */
}
.book-slider__slides {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.book-slider__slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-slider__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
}

/* Boutons précédent / suivant */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--c-border, #e8eaef);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--c-navy, #1a2f4f);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    z-index: 2;
}
.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(26, 47, 79, 0.14);
    transform: translateY(-50%) scale(1.08);
}
.slider-btn--prev { left:  -16px; }
.slider-btn--next { right: -16px; }
.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

/* Indicateurs (dots) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-border, #e8eaef);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}
.slider-dot.is-active {
    background: var(--c-navy, #1a2f4f);
    transform: scale(1.3);
}

/* Compteur */
.slider-counter {
    text-align: center;
    font-size: 0.8rem;
    color: var(--c-text-muted, #5a6478);
    margin-top: 0.4rem;
}

/* Lightbox zoom */
.slider-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
}
.slider-lightbox.is-open {
    display: flex;
}
.slider-lightbox img {
    max-width: min(90vw, 900px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.slider-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
    transition: opacity 0.15s;
}
.slider-lightbox__close:hover { opacity: 0.7; }

/* Responsive */
@media (max-width: 600px) {
    .slider-btn--prev { left:  4px; }
    .slider-btn--next { right: 4px; }
    .book-slider__track { aspect-ratio: 3 / 4; } /* portrait sur mobile */
}


@media (max-width: 768px) {

  /* Icônes titres des blocs détail */
  .book-detail-block h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

}