/*
    Theme Name: Éditions La Vie
    Author: Jordens
    Description: Thème custom pour editionslavie.com — collectif d’auteurs indépendants
    Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;600;700&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --forest:     #1c1a1d;
    --forest-mid: #3a2f31;
    --gold:       #9b2226;
    --gold-light: #c0392b;
    --cream:      #faf8f3;
    --cream-dark: #f0ece2;
    --charcoal:   #2c2c2c;
    --grey:       #6b6b6b;
    --white:      #ffffff;
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body:  'Montserrat', Arial, sans-serif;
    --max-width:  1200px;
    --radius:     6px;
    --shadow:     0 2px 20px rgba(30, 58, 47, 0.10);
    --transition: 0.22s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--cream);
    font-size: 1rem;
    line-height: 1.75;
}

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

a {
    color: var(--forest);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold); }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--forest);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

.section-title {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--forest);
}
.section-subtitle {
    text-align: center;
    color: var(--grey);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
    background-color: var(--forest);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 2rem;
}

.site-logo {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo span { color: var(--gold-light); }
.site-logo:hover { color: var(--cream); }

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}
.nav-menu li { white-space: nowrap; }
.nav-menu-en ul { gap: 1.3rem; }

.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}
.hamburger-line {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background-color: var(--forest);
    background-image: linear-gradient(135deg, #1c1a1d 0%, #3a2f31 60%, #131013 100%);
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
}

.hero-inner { max-width: 720px; }

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.hero-tagline {
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    margin: 0 auto 1rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.97rem;
    margin: 0 auto 2.2rem;
    max-width: 560px;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition), color var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--gold-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
}
.btn-outline:hover {
    background-color: var(--forest);
    color: var(--white);
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section {
    padding: 4.5rem 2rem;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.section-light { background-color: var(--cream); }
.section-cream { background-color: var(--cream-dark); }
.section-dark  { background-color: var(--forest); }

/* ============================================================
   GRILLE AUTEURS
   ============================================================ */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.author-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30,58,47,0.14);
}

/* Avatar auteur — photo ou initiale */
.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--forest-mid);
    border: 3px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Couleurs distinctes par initiale */
.author-avatar--C  { background-color: #3a2f31; }
.author-avatar--J  { background-color: #3a4a2a; }
.author-avatar--Jo { background-color: #4a3a28; }
.author-avatar--Jq { background-color: #2a3a4a; }

.author-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    color: var(--forest);
}

.author-speciality {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    display: block;
}

.author-card p {
    font-size: 0.93rem;
    color: var(--grey);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.author-card .btn-outline {
    font-size: 0.82rem;
    padding: 0.55rem 1.4rem;
}

/* ============================================================
   GRILLE LIVRES
   ============================================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30,58,47,0.14);
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: var(--forest-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1rem;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-info {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h4 {
    font-size: 0.97rem;
    margin-bottom: 0.2rem;
    color: var(--forest);
    line-height: 1.3;
}

.book-author {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.book-info .btn {
    margin-top: auto;
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.philosophy {
    background-color: var(--forest);
    color: var(--white);
    text-align: center;
}

.philosophy h2 { color: var(--gold-light); margin-bottom: 1.5rem; }

.philosophy p {
    color: rgba(255,255,255,0.85);
    max-width: 65ch;
    margin: 0 auto 1.1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
    background-color: var(--cream-dark);
    text-align: center;
}

.newsletter h2 { color: var(--forest); margin-bottom: 0.5rem; }
.newsletter p { color: var(--grey); margin: 0 auto 1.8rem; max-width: 50ch; }

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--charcoal);
    outline: none;
    transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--forest); }

.newsletter-privacy {
    font-size: 0.78rem;
    color: var(--grey);
    margin-top: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--forest);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 2rem 1.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto 2.5rem;
}

.footer-col h4 {
    font-family: var(--font-title);
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.footer-col p { color: rgba(255,255,255,0.65); max-width: none; margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold-light); }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================================================
   PAGE STANDARD (auteur, livre, contact…)
   ============================================================ */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-hero {
    background-color: var(--forest);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}
.page-hero h1 { color: var(--white); font-style: italic; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.75); margin: 0 auto; }

/* ============================================================
   PAGE AUTEUR
   ============================================================ */
.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.page-hero .author-avatar {
    width: 110px;
    height: 110px;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
}
.author-bio {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
}
.author-bio p { margin-bottom: 1.1rem; }

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.series-card {
    border-left: 4px solid var(--gold);
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.series-card h3 {
    font-size: 1.05rem;
    color: var(--forest);
    margin-bottom: 0.4rem;
    font-family: var(--font-title);
}
.series-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.bonus-section { background: var(--forest); }
.bonus-card {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}
.bonus-card h2 { color: var(--gold); margin-bottom: 1rem; }
.bonus-card p { color: rgba(255,255,255,0.82); margin-bottom: 2rem; }

.contact-cta { text-align: center; }
.contact-cta p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* ============================================================
   PAGE AUTEURS (liste)
   ============================================================ */
.author-full-card {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(30,58,47,0.12);
}
.author-full-card:last-child { border-bottom: none; }

.author-full-left { flex-shrink: 0; }
.author-full-left .author-avatar { width: 100px; height: 100px; font-size: 1.8rem; }

.author-full-right { flex: 1; }
.author-full-right h2 {
    font-size: 1.6rem;
    color: var(--forest);
    margin-bottom: 0.3rem;
}
.author-full-right .author-speciality { display: block; margin-bottom: 1rem; }
.author-full-right p { margin-bottom: 0.8rem; line-height: 1.7; color: var(--text-light); }
.author-full-right p em { color: var(--forest); font-style: italic; }
.author-full-right .btn { margin-top: 0.5rem; }

/* ============================================================
   PAGE NOTRE HISTOIRE
   ============================================================ */
.histoire-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
}
.histoire-text p { margin-bottom: 1.4rem; }
.histoire-text .question {
    color: var(--forest);
    font-style: italic;
    font-family: var(--font-title);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
}
.histoire-encadre {
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin: 3rem auto 0;
    max-width: 700px;
    text-align: center;
}
.histoire-encadre h3 { color: var(--gold); margin-bottom: 1rem; font-style: italic; }
.histoire-encadre p  { color: rgba(255,255,255,0.82); font-style: italic; margin-bottom: 1.5rem; line-height: 1.8; }
.histoire-encadre .btn { margin: 0.4rem; }

/* ============================================================
   PAGE LIVRES
   ============================================================ */
.livres-filter {
    background: var(--forest);
    position: sticky;
    top: 56px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.livres-filter-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.livres-filter-inner::-webkit-scrollbar { display: none; }

/* Item auteur avec dropdown */
.filter-item {
    position: relative;
    flex-shrink: 0;
}
.filter-item > a,
.livres-filter > .livres-filter-inner > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 1.4rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
    cursor: pointer;
}
.filter-item > a:hover,
.filter-item.open > a,
.livres-filter > .livres-filter-inner > a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}
.filter-item .fi-arrow {
    font-size: 0.55rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.filter-item.open .fi-arrow { transform: rotate(180deg); }

/* Dropdown du menu top */
.filter-dropdown {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 260px;
    background: var(--white);
    border-top: 3px solid var(--gold);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    z-index: 400;
    overflow: hidden;
}
.filter-item.open .filter-dropdown { display: block; }
.filter-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--charcoal);
    border-bottom: 1px solid var(--cream-dark);
    border-left: none;
    white-space: normal;
    transition: background var(--transition), color var(--transition);
}
.filter-dropdown a:last-child { border-bottom: none; }
.filter-dropdown a:hover { background: var(--cream); color: var(--forest); border-bottom-color: var(--cream-dark); }
.filter-dropdown a .fd-count {
    font-size: 0.72rem;
    color: var(--grey);
    flex-shrink: 0;
    margin-left: 0.8rem;
}
.filter-dropdown a.fd-anchor {
    background: var(--cream);
    color: var(--forest);
    font-weight: 700;
    font-size: 0.8rem;
    border-top: 1px solid rgba(30,58,47,0.12);
}
.filter-dropdown a.fd-anchor:hover { background: var(--cream-dark); }

.auteur-section {
    scroll-margin-top: 110px;
    padding: 4rem 0 2rem;
    border-bottom: 2px solid var(--cream-dark);
}
.auteur-section:last-child { border-bottom: none; }

.auteur-section-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(30,58,47,0.12);
}
.auteur-section-head .author-avatar {
    width: 72px; height: 72px;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.auteur-section-head h2 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.auteur-section-head .auteur-spec {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}
.auteur-section-head .btn-sm {
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    margin-top: 0.5rem;
}

.serie-block { margin-bottom: 2.5rem; }
.serie-block-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}
.serie-block-header h3 {
    font-size: 1.1rem;
    color: var(--forest);
    margin: 0;
}
.serie-count {
    font-size: 0.78rem;
    color: var(--grey);
    font-family: var(--font-body);
    font-weight: 400;
}
.serie-desc {
    font-size: 0.88rem;
    color: var(--grey);
    font-style: italic;
    margin-bottom: 1rem;
}

.livres-list { display: flex; flex-direction: column; gap: 0; }
.livre-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 4px;
    transition: background var(--transition);
}
.livre-item:hover { background: var(--cream-dark); }
.livre-ref {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--grey);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-width: 42px;
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.livre-thumb {
    width: 42px;
    min-width: 42px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--cream-dark);
}
.livre-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livre-thumb--none { background: var(--cream-dark); }
.livre-body { flex: 1; min-width: 0; }
.livre-item-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.livre-title { font-size: 0.95rem; color: var(--charcoal); font-family: var(--font-title); }
a.livre-title { color: var(--forest); text-decoration: none; font-weight: 700; }
a.livre-title:hover { color: var(--gold); text-decoration: underline; }
.livre-title a { color: inherit; }
.livre-title a:hover { color: var(--forest); }
.livre-desc {
    font-size: 0.82rem;
    color: var(--grey);
    line-height: 1.55;
    margin: 0.25rem 0 0;
}
.livre-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    flex-shrink: 0;
}
.livre-tag.hub { background: var(--gold); color: var(--white); }
.livre-tag.coecrit { background: var(--forest); color: var(--white); }
.livre-tag.gratuit { background: transparent; border: 1px solid var(--grey); color: var(--grey); }

/* Dropdown séries */
.series-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 0.8rem;
}
.series-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}
.series-dropdown-btn:hover,
.series-dropdown.open .series-dropdown-btn {
    background: var(--gold);
    color: var(--white);
}
.series-dropdown-btn .dd-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
    display: inline-block;
}
.series-dropdown.open .series-dropdown-btn .dd-arrow { transform: rotate(180deg); }
.series-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 6px;
    min-width: 280px;
    z-index: 300;
    overflow: hidden;
}
.series-dropdown.open .series-dropdown-menu { display: block; }
.series-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--cream-dark);
    transition: background var(--transition), color var(--transition);
}
.series-dropdown-menu a:last-child { border-bottom: none; }
.series-dropdown-menu a:hover { background: var(--cream); color: var(--forest); }
.series-dropdown-menu a .dd-count {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--grey);
}
.series-dropdown-menu a.dd-all {
    background: var(--cream);
    color: var(--forest);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    border-top: 2px solid var(--gold);
}
.series-dropdown-menu a.dd-all:hover { background: var(--cream-dark); }

/* Série collapsible */
details.serie-block { margin-bottom: 2.5rem; }
details.serie-block > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    user-select: none;
}
details.serie-block > summary::-webkit-details-marker { display: none; }
details.serie-block > summary::marker { content: ''; }
details.serie-block > summary h3 { font-size: 1.1rem; color: var(--forest); margin: 0; }
details.serie-block > summary .serie-count {
    font-size: 0.78rem; color: var(--grey);
    font-family: var(--font-body); font-weight: 400;
}
.serie-toggle {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--gold);
    transition: transform 0.2s ease;
    display: inline-block;
}
details.serie-block[open] > summary .serie-toggle { transform: rotate(90deg); }
details.serie-block > .serie-desc,
details.serie-block > .livres-list { margin-top: 0.9rem; }

/* ============================================================
   BLOCS WORDPRESS
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    background: rgba(193,127,36,0.06);
    margin: 2rem 0;
    font-style: italic;
}
.wp-block-quote p { font-family: var(--font-title); font-size: 1.1rem; color: var(--forest); }
.wp-block-button__link, .wp-element-button {
    background-color: var(--forest) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.8rem !important;
}
.wp-block-button__link:hover, .wp-element-button:hover {
    background-color: var(--gold) !important;
    color: var(--white) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background-color: var(--forest);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .nav-menu.open { display: block; }
    .nav-menu ul {
        flex-direction: column;
        padding: 1.2rem 2rem 2rem;
        gap: 1.2rem;
    }

    .hero h1 { font-size: 2.1rem; }
    .hero { min-height: 45vh; padding: 3.5rem 1.5rem; }

    .section { padding: 3rem 1.5rem; }

    .authors-grid, .books-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .authors-grid, .books-grid, .footer-grid, .series-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
    .author-full-card { flex-direction: column; gap: 1.2rem; }
}

/* ── Sélecteur de langue FR/EN ────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-left: 1rem;
    flex-shrink: 0;
}
.lang-btn {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(250,248,243,.55);
    text-decoration: none;
    padding: .2rem .4rem;
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.lang-btn:hover { color: var(--gold-light); text-decoration: none; }
.lang-btn.lang-active {
    color: var(--forest);
    background: var(--gold-light);
    border-radius: 3px;
}
.lang-sep { color: rgba(250,248,243,.3); font-size: .75rem; }

/* ── Buy box boutons EN ───────────────────────────────────────────────────── */
.btn-d2d    { background: #2C3E7A; color: #fff !important; }
.btn-kobo   { background: #B22222; color: #fff !important; }
.btn-apple  { background: #1C1C1E; color: #fff !important; }

/* ===== Colonne de droite globale : Newsletter + Dernières news ===== */
/* Mise en page B2 : contenu central + colonne droite intégrée (héros pleine largeur) */
:root{ --rail-w: 300px; --content-w: 860px; }
.site-shell{
    display: grid;
    grid-template-columns:
        [full-start] minmax(1.2rem, 1fr)
        [content-start] minmax(0, var(--content-w))
        [content-end] 2.5rem
        [rail-start] var(--rail-w)
        [rail-end] minmax(1.2rem, 1fr) [full-end];
}
.site-shell > *{ grid-column: content; min-width: 0; }
.site-shell > .hero{ grid-column: full; }
.site-rail{
    grid-column: rail; grid-row: 2 / 9999; align-self: start;
    position: sticky; top: 1.2rem; padding-top: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
@media (max-width: 1080px){
    .site-shell{ display: block; }
    .site-rail{ position: static; max-width: var(--content-w); margin: 2.5rem auto 0; padding: 0 1.2rem; }
}
.edl-rail-card{
    background:#fff; border:1px solid #e7e2d8; border-top:3px solid var(--gold,#C8862E);
    border-radius:8px; padding:1.05rem 1.1rem 1.15rem; box-shadow:0 6px 22px rgba(0,0,0,.10);
}
.edl-rail-card h3{ margin:0 0 .55rem; font-size:1.04rem; color:var(--forest,#1f4030); }
.edl-rail-sub{ color:#666; font-size:.84rem; line-height:1.35; margin:0 0 .7rem; max-width:none; }
.edl-rail-news input[type=email]{ width:100%; padding:.55rem .6rem; border:1px solid #cfcabf; border-radius:5px; margin-bottom:.5rem; font-size:.9rem; box-sizing:border-box; }
.edl-rail-consent{ display:flex; gap:.4rem; align-items:flex-start; font-size:.72rem; color:#555; line-height:1.3; margin-bottom:.65rem; max-width:none; }
.edl-rail-consent input{ margin-top:.15rem; }
.edl-rail-news .btn{ width:100%; text-align:center; padding:.55rem; font-size:.9rem; }
.edl-rail-ok{ color:#1B5E20; font-weight:600; margin:0; }
.edl-rail-err{ color:#B22222; font-size:.78rem; margin:.45rem 0 0; }
.edl-rail-posts ul{ list-style:none; margin:0; padding:0; }
.edl-rail-posts li{ padding:.45rem 0; border-bottom:1px solid #efeae0; }
.edl-rail-posts li:last-child{ border-bottom:none; }
.edl-rail-posts a{ display:block; font-weight:600; color:var(--forest,#1f4030); text-decoration:none; font-size:.88rem; line-height:1.28; }
.edl-rail-posts a:hover{ text-decoration:underline; }
.edl-rail-date{ display:block; color:#9a958a; font-size:.71rem; margin-top:.12rem; }
.edl-rail-all{ display:inline-block; margin-top:.6rem; font-size:.82rem; color:var(--gold,#C8862E); font-weight:700; text-decoration:none; }
.edl-rail-all:hover{ text-decoration:underline; }

/* Désinscription */
.edl-unsub{ max-width:480px; margin:1.5rem 0; }
.edl-unsub-form{ display:flex; gap:.6rem; flex-wrap:wrap; }
.edl-unsub-form input[type=email]{ flex:1 1 220px; padding:.6rem .7rem; border:1px solid #cfcabf; border-radius:5px; font-size:.95rem; }
.edl-rail-unsub{ display:inline-block; margin-top:.6rem; font-size:.74rem; color:#9a958a; text-decoration:underline; }
.edl-rail-unsub:hover{ color:#666; }

/* Bandeaux d'en-tête pleine largeur sur les pages internes (comme le héros du home) */
.site-shell > .hero,
.site-shell > .livre-page-breadcrumb,
.site-shell > .livre-page-hero,
.site-shell > .livres-filter,
.site-shell > .page-hero,
.site-shell > .article-hero,
.site-shell > .en-hero,
.site-shell > .es-hero { grid-column: full; }

/* Barre de recherche dans l'en-tête */
.edl-nav-search { display:flex; align-items:center; margin-left:1rem; flex-shrink:0; }

/* ─── Espacement logo + combos déroulants (Livres / langues) ─── */
.site-logo { margin-right: 1.75rem; }
.nav-menu li.has-dropdown,
.lang-switcher.has-dropdown { position: relative; }
.caret { font-size:.62em; opacity:.85; margin-left:.2em; }
.dropdown-menu {
    position:absolute; top:100%; left:0; min-width:185px;
    background: var(--forest); border-top:2px solid var(--gold);
    box-shadow:0 10px 28px rgba(0,0,0,.4);
    list-style:none; margin:0; padding:.4rem 0;
    opacity:0; visibility:hidden; transform:translateY(7px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index:200;
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-menu li { display:block; }
.dropdown-menu li a {
    display:block; padding:.55rem 1.1rem; white-space:nowrap;
    color:rgba(255,255,255,.85); font-size:.85rem; font-weight:600;
    text-transform:none; letter-spacing:0; border-bottom:none;
}
.dropdown-menu li a:hover,
.dropdown-menu li a.lang-active { color:var(--gold-light); background:rgba(255,255,255,.06); border-bottom:none; }
.lang-switcher.has-dropdown .lang-current {
    color:#fff; font-weight:700; font-size:.88rem; cursor:pointer; letter-spacing:.04em;
    text-transform:uppercase;
}
.lang-switcher .dropdown-menu { left:auto; right:0; min-width:160px; }
@media (max-width: 880px) {
    .dropdown-menu { position:static; opacity:1; visibility:visible; transform:none;
        box-shadow:none; border-top:none; padding:.2rem 0 .2rem 1rem; min-width:0; background:transparent; }
}
.edl-nav-search input[type="search"] {
    width:150px; padding:.4rem .7rem; font-size:.85rem;
    border:1px solid rgba(255,255,255,.25); border-right:none;
    background:rgba(255,255,255,.10); color:#fff; border-radius:6px 0 0 6px;
}
.edl-nav-search input[type="search"]::placeholder { color:rgba(255,255,255,.55); }
.edl-nav-search input[type="search"]:focus { outline:none; background:rgba(255,255,255,.18); border-color:var(--gold); }
.edl-nav-search button {
    background:var(--gold); border:none; color:#fff; cursor:pointer;
    padding:.4rem .65rem; border-radius:0 6px 6px 0; font-size:.9rem; line-height:1;
}
.edl-nav-search button:hover { background:var(--gold-light, #E0B66A); }
@media (max-width:1080px){ .edl-nav-search input[type="search"]{ width:110px; } }

/* Pages à 2 bandeaux d'en-tête (catalogue, fiche, série, article) : colonne une ligne plus bas */
body.page-template-page-livres .site-rail,
body.page-template-page-livre  .site-rail,
body.page-template-page-livre-en .site-rail,
body.page-template-page-livre-es .site-rail,
body.page-template-page-serie  .site-rail,
body.single .site-rail { grid-row: 3 / 9999; }
