/* =====================================================
   CSS pour la page Livres et Hors Séries - Division Zeitung
   Design identique à livres-a-la-vente mais sans prix
   ===================================================== */

/* =====================================================
   FIX MENU DROPDOWN (Intégré)
   ===================================================== */

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;
}

/* =====================================================
   EN-TÊTE DE PAGE
   ===================================================== */

.page-header {
    background: linear-gradient(135deg, #fbfdf9, #f5f3ef);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--sand);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.page-header h2 {
    margin: 0 0 16px 0;
    color: var(--warm);
    font-size: 2rem;
}

.page-header p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.6;
}

/* =====================================================
   STATISTIQUES
   ===================================================== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 2px solid var(--sand);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =====================================================
   CONTAINER POUR CHAQUE LIVRE
   ===================================================== */

.livre-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    border: 2px solid var(--sand);
    display: flex;
    gap: 32px;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Barre accent à gauche */
.livre-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

/* Style pour les livres archivés */
.livre-item.archived::before {
    background: linear-gradient(180deg, #8b7355, #6b5b47);
}

/* Effet hover */
.livre-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.2);
    border-color: var(--accent);
}

/* =====================================================
   IMAGE DE COUVERTURE DU LIVRE
   ===================================================== */

.livre-image {
    width: 220px;
    height: 300px;
    background: #f0f0f0;
    border-radius: 12px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--sand);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Badge "Archive" sur la couverture */
.livre-item.archived .livre-image::after {
    content: 'Archive';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8b7355, #6b5b47);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Effet hover sur l'image */
.livre-item:hover .livre-image {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   CONTENU TEXTUEL DU LIVRE
   ===================================================== */

.livre-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.livre-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: var(--warm);
    line-height: 1.3;
}

/* =====================================================
   BLOC DE DESCRIPTION
   ===================================================== */

.livre-description {
    background: linear-gradient(135deg, #fbfdf9, #f9f9f9);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin: 12px 0;
}

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

.livre-description p {
    color: var(--muted);
    line-height: 1.7;
    margin: 8px 0;
}

/* =====================================================
   LISTE DES SPÉCIFICATIONS
   ===================================================== */

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

.livre-specs li {
    color: var(--muted);
    margin: 8px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

/* Icône check personnalisée */
.livre-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* =====================================================
   CARDS D'INFORMATION
   ===================================================== */

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

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

.info-archives p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 12px 0;
    color: #2c3e50;
}

.info-archives strong {
    color: var(--accent);
    font-weight: 700;
}

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

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

/* =====================================================
   CTA NOUVELLES PUBLICATIONS
   ===================================================== */

.cta-nouvelles-publications {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--warm), var(--muted));
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-nouvelles-publications h3 {
    font-size: 1.8rem;
    margin: 0 0 16px 0;
    color: white;
    font-weight: 700;
}

.cta-nouvelles-publications p {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .cta {
    background: white;
    color: var(--warm);
    font-size: 16px;
    padding: 14px 28px;
    font-weight: 700;
}

.cta-buttons .cta:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.cta-buttons .cta.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .cta.secondary:hover {
    background: white;
    color: var(--warm);
}

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

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

.livre-item {
    animation: fadeInUp 0.6s ease-out;
}

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

.stat-box {
    animation: fadeInUp 0.6s ease-out;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

/* =====================================================
   RESPONSIVE DESIGN - OPTIMISÉ
   ===================================================== */

/* Tablettes larges (iPad Pro landscape) */
@media (max-width: 1024px) {
    .livre-item {
        padding: 28px;
        gap: 24px;
    }

    .livre-image {
        width: 180px;
        height: 245px;
    }

    .livre-content h3 {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablettes (iPad portrait) */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 24px;
    }

    .page-header h2 {
        font-size: 1.6rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .livre-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }

    .livre-image {
        width: 200px;
        height: 272px;
        margin: 0 auto;
    }

    .livre-content h3 {
        font-size: 1.4rem;
    }

    .livre-description {
        padding: 18px;
    }

    .info-archives {
        padding: 28px 20px;
    }

    .info-archives h3 {
        font-size: 1.4rem;
    }

    .cta-nouvelles-publications {
        padding: 40px 30px;
    }

    .cta-nouvelles-publications h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .cta {
        width: 100%;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    .page-header {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .livre-item {
        padding: 20px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .livre-item::before {
        width: 4px;
    }

    .livre-image {
        width: 160px;
        height: 218px;
    }

    .livre-image::after {
        font-size: 11px;
        padding: 5px 10px;
    }

    .livre-content h3 {
        font-size: 1.2rem;
    }

    .livre-description {
        padding: 16px;
        border-radius: 8px;
    }

    .livre-description strong {
        font-size: 1rem;
    }

    .livre-description p {
        font-size: 0.9rem;
    }

    .livre-specs {
        padding-left: 20px;
    }

    .livre-specs li {
        font-size: 0.9rem;
        padding-left: 24px;
    }

    .livre-specs li::before {
        font-size: 1rem;
    }

    .info-archives {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .info-archives h3 {
        font-size: 1.2rem;
    }

    .info-archives p {
        font-size: 0.9rem;
    }

    .cta-nouvelles-publications {
        padding: 32px 24px;
    }

    .cta-nouvelles-publications h3 {
        font-size: 1.3rem;
    }

    .cta-nouvelles-publications p {
        font-size: 1rem;
    }
}

/* Très petits smartphones */
@media (max-width: 480px) {
    .page-header {
        padding: 20px 16px;
    }

    .page-header h2 {
        font-size: 1.2rem;
    }

    .livre-item {
        padding: 16px;
    }

    .livre-image {
        width: 140px;
        height: 191px;
    }

    .livre-content h3 {
        font-size: 1.1rem;
    }

    .livre-description {
        padding: 14px;
    }

    .livre-description strong {
        font-size: 0.95rem;
    }

    .livre-description p {
        font-size: 0.85rem;
    }

    .livre-specs li {
        font-size: 0.85rem;
    }

    .info-archives {
        padding: 20px 12px;
    }

    .info-archives h3 {
        font-size: 1.1rem;
    }

    .info-archives p {
        font-size: 0.85rem;
    }

    .cta-nouvelles-publications {
        padding: 28px 20px;
    }

    .cta-nouvelles-publications h3 {
        font-size: 1.2rem;
    }

    .cta-nouvelles-publications p {
        font-size: 0.95rem;
    }
}

/* Très très petits écrans (iPhone SE, anciens Android) */
@media (max-width: 360px) {
    .livre-item {
        padding: 12px;
    }

    .livre-image {
        width: 120px;
        height: 164px;
    }

    .livre-content h3 {
        font-size: 1rem;
    }

    .livre-description {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

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

@media print {
    .livre-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .livre-item::before {
        display: none;
    }

    .cta-nouvelles-publications,
    .cta-buttons {
        display: none;
    }

    .info-archives {
        border: 1px solid #ccc;
        background: white;
    }

    .stats-container {
        display: none;
    }
}

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

/* Focus visible pour navigation clavier */
.cta-buttons .cta:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Amélioration contraste pour malvoyants */
@media (prefers-contrast: high) {
    .livre-item {
        border-width: 3px;
    }

    .livre-description {
        border-left-width: 6px;
    }
}

/* Réduction animations pour motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    .livre-item,
    .livre-image,
    .stat-box {
        animation: none;
        transition: none;
    }

    .livre-item:hover {
        transform: none;
    }
}

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