/* =====================================================
   CSS — Page Hors-Séries
   Division Zeitung
   Fichier autonome et complet — indépendant de livres-a-la-vente.css
   ===================================================== */

/* =====================================================
   FIX MENU DROPDOWN
   ===================================================== */

nav {
    position: relative !important;
    z-index: 1000 !important;
}

.nav-dropdown {
    position: relative !important;
    z-index: 1001 !important;
}

.nav-dropdown-content {
    position: absolute !important;
    z-index: 10000 !important;
}

.nav-dropdown-content.open {
    z-index: 10000 !important;
}

.page,
.page.active,
main,
.container {
    position: relative;
    z-index: 1;
}

/* =====================================================
   LIEN NAV ACTIF
   ===================================================== */

.nav-item-active {
    color: var(--accent) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

/* =====================================================
   CARD INTRO
   ===================================================== */

.card.hs-intro {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1a1a1a, #2a2218);
    text-align: center;
    border-width: 2px;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.card.hs-intro h2 {
    color: var(--accent);
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
}

.card.hs-intro p {
    color: #ccc;
    margin: 6px 0;
    line-height: 1.6;
}

.card.hs-intro p.small {
    font-size: 0.9rem;
    color: #999;
    margin-top: 10px;
}

/* =====================================================
   BLOC PRINCIPAL HORS-SÉRIES
   ===================================================== */

.section-hors-series {
    background: linear-gradient(135deg, #1a1a1a, #2a2218);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.section-hors-series::before {
    content: 'HS';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(184, 134, 11, 0.06);
    pointer-events: none;
    line-height: 1;
}

/* =====================================================
   EN-TÊTE DE LA SECTION
   ===================================================== */

.hs-header {
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
    padding-bottom: 24px;
}

.hs-header h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
}

.hs-header p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =====================================================
   CHAQUE HORS-SÉRIE
   ===================================================== */

.hs-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out;
}

.hs-item:nth-child(1) { animation-delay: 0.1s; }
.hs-item:nth-child(2) { animation-delay: 0.2s; }
.hs-item:nth-child(3) { animation-delay: 0.3s; }

/* =====================================================
   IMAGE PRINCIPALE DU HS
   ===================================================== */

.hs-main-image {
    width: 280px;
    height: 380px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #333;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease;
}

.hs-main-image:hover {
    transform: scale(1.03);
}

.hs-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hs-badge-soon {
    background: #b86b00 !important;
}

/* =====================================================
   CONTENU TEXTE DU HS
   ===================================================== */

.hs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hs-content h3 {
    color: #f5f0e8;
    font-size: 1.6rem;
    margin: 0;
}

.hs-subtitle {
    color: var(--accent);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

/* =====================================================
   BLOC DESCRIPTION (version sombre)
   ===================================================== */

.livre-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin: 12px 0;
}

.livre-description strong {
    color: var(--accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 12px;
}

.livre-description p {
    color: #bbb;
    line-height: 1.7;
    margin: 8px 0;
}

/* =====================================================
   SPÉCIFICATIONS
   ===================================================== */

.livre-specs {
    margin: 12px 0 0 0;
    padding-left: 24px;
    list-style: none;
}

.livre-specs li {
    color: #bbb;
    margin: 8px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.livre-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* =====================================================
   SECTION ACHAT
   ===================================================== */

.livre-achat {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.livre-prix {
    font-weight: 800;
    color: var(--accent);
    font-size: 2rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.livre-prix::after {
    content: 'TTC';
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.livre-achat .cta {
    flex: 1;
    text-align: center;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.livre-achat .cta:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.cta-newsletter {
    background: linear-gradient(135deg, #2c5f2d, #3a7a3b) !important;
    border-color: #2c5f2d !important;
}

.cta-newsletter:hover {
    background: linear-gradient(135deg, #3a7a3b, #2c5f2d) !important;
    transform: translateY(-2px);
}

/* =====================================================
   GALERIE APERÇU
   ===================================================== */

.hs-apercu-section {
    margin-top: 8px;
}

.hs-apercu-title {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.revue-preview-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.preview-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(184, 134, 11, 0.35);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.preview-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.8rem;
    padding: 6px 10px;
    text-align: center;
}

/* =====================================================
   SÉPARATEUR ENTRE DEUX HS
   ===================================================== */

.hs-separator {
    width: 80%;
    margin: 40px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.4), transparent);
}

/* =====================================================
   PLACEHOLDER "BIENTÔT"
   ===================================================== */

.hs-item.hs-coming-soon {
    opacity: 0.75;
}

.hs-placeholder-img {
    background: linear-gradient(135deg, #2a2218, #1a1a1a) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed !important;
    border-color: rgba(184, 134, 11, 0.4) !important;
}

.hs-placeholder-label {
    text-align: center;
    color: rgba(184, 134, 11, 0.5);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.hs-placeholder-label span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* =====================================================
   CARD LIVRAISON/INFO
   ===================================================== */

.livraison-info {
    margin-top: 50px;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border: 3px solid var(--accent);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.livraison-info h3 {
    color: var(--warm);
    font-size: 1.6rem;
    margin: 0 0 20px 0;
}

.livraison-info p.small {
    font-size: 1rem;
    line-height: 2;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.livraison-info a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.livraison-info a:hover {
    color: var(--accent-light);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .section-hors-series { padding: 28px 24px; }
    .hs-item { flex-direction: column; align-items: center; }
    .hs-main-image { width: 200px; height: 272px; }
    .hs-content { width: 100%; text-align: center; }
    .livre-achat { flex-direction: column; width: 100%; }
    .livre-achat .cta { width: 100%; text-align: center; }
    .hs-separator { width: 100%; margin: 28px 0; }
    .livraison-info { padding: 28px 20px; }
    .livraison-info h3 { font-size: 1.4rem; }
    .livraison-info p.small { font-size: 0.95rem; flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
    .section-hors-series { padding: 20px 16px; border-radius: 12px; }
    .hs-header h2 { font-size: 1.4rem; }
    .hs-main-image { width: 160px; height: 218px; }
    .livre-description { padding: 16px; }
    .livre-description p { font-size: 0.9rem; }
    .livre-specs li { font-size: 0.9rem; }
    .livre-prix { font-size: 1.6rem; }
    .livraison-info { padding: 24px 16px; border-radius: 12px; }
}

@media (max-width: 480px) {
    .revue-preview-gallery { grid-template-columns: 1fr; }
    .preview-item img { height: 160px; }
    .hs-content h3 { font-size: 1.3rem; }
    .livre-prix { font-size: 1.4rem; }
    .hs-placeholder-label { font-size: 1.4rem; }
}

/* =====================================================
   PRINT
   ===================================================== */

@media print {
    .section-hors-series { box-shadow: none; border: 1px solid #ccc; background: white; }
    .livre-achat .cta { display: none; }
    .livraison-info { border: 1px solid #ccc; background: white; }
}

/* =====================================================
   ACCESSIBILITÉ
   ===================================================== */

@media (prefers-contrast: high) {
    .section-hors-series { border-width: 3px; }
    .livre-description { border-left-width: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-item, .hs-main-image, .cta, .preview-item { animation: none; transition: none; }
    .hs-main-image:hover { transform: none; }
    .preview-item:hover { transform: none; }
}

/* =====================================================
   FIN DU FICHIER
   ===================================================== */
