/* ==========================================================================
   Site littéraire — Design Noir & Blanc Pur (Black & White Editorial)
   Affichage épuré : Page de couverture + Nom du livre + 2 boutons
   Desktop : Grille moderne | Mobile : Image verticale + Titre & boutons à droite
   ========================================================================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --gray-bg:          #E5E5E5;
  --gray-border:      #d4d4d4;
  --gray-hover:       #d8d8d8;
  
  --text-nav-btn-div: #000000;
  --accent:           #0284c7; /* Bleu ciel élégant */
  --accent-light:     #f0f9ff;
  --accent-border:    #bae6fd;
  --accent-hover:     #0369a1;
  --gold:             #0284c7; /* Remplace le doré par bleu ciel */

  --white:            #ffffff;
  --black:            #000000;
  --bg:               #ffffff;
  --bg-alt:           #f8fafc;
  --ink:              #1e293b;
  --ink-soft:         #475569;
  --ink-muted:        #64748b;

  /* Typographie */
  --font-display: "Cinzel", Georgia, serif;
  --font-title:   "Playfair Display", Georgia, serif;
  --font-text:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---------- Éléments & Dimensions ---------- */
  --radius:       8px;
  --radius-sm:    4px;
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow:       0 8px 24px rgba(0, 0, 0, 0.12);
  --max:          1200px;
  --header-h:     76px;
  --t:            0.24s ease;
}

/* ==========================  BASE  ====================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* ANTI-ZOOM MOBILE UNIVERSEL SUR TOUS LES CHAMPS DE SAISIE */
input,
textarea,
select,
button {
  touch-action: manipulation;
}

input,
textarea,
select {
  font-size: 16px !important;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: all var(--t);
}

a:hover {
  color: var(--ink-soft);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
  box-sizing: border-box;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--white);
  border-top: none;
  border-bottom: none;
}

.section--tight {
  padding: 48px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.6rem;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1rem;
}

.rule {
  display: none;
}

/* ==========================  BOUTONS EN GRIS #E5E5E5 & TEXTE NOIR ======== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  color: var(--text-nav-btn-div) !important;
  border: 1.5px solid var(--gray-border);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-text);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn i {
  color: var(--text-nav-btn-div) !important;
}

.btn:hover {
  background: var(--gray-hover);
  border-color: #b0b0b0;
  color: var(--text-nav-btn-div) !important;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div) !important;
  border-color: var(--gray-border);
}

.btn--primary:hover {
  background: var(--gray-hover);
  border-color: #b0b0b0;
  color: var(--text-nav-btn-div) !important;
}

.btn--ghost {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div) !important;
  border-color: var(--gray-border);
}

.btn--ghost:hover {
  background: var(--gray-hover);
  border-color: #b0b0b0;
  color: var(--text-nav-btn-div) !important;
}

.btn--outline-gold {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div) !important;
  border-color: var(--gray-border);
}

.btn--outline-gold:hover {
  background: var(--gray-hover);
  color: var(--text-nav-btn-div) !important;
}

.btn--gold {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div) !important;
  border: 1.5px solid var(--gray-border);
}

.btn--gold:hover {
  background: var(--gray-hover);
  color: var(--text-nav-btn-div) !important;
  border-color: #b0b0b0;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

/* ==========================  NAVBAR EN GRIS #E5E5E5 & TEXTE NOIR ======== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gray-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-nav-btn-div) !important;
  flex: 0 1 auto;
  min-width: 0;
}

.brand:hover {
  color: var(--text-nav-btn-div) !important;
}

.brand__name {
  font-family: var(--font-title);
  font-size: clamp(0.92rem, 3.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text-nav-btn-div) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ==========================  BARRE DE RECHERCHE NAVBAR ================= */

.nav-search-wrapper {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  transition: border-color var(--t), box-shadow var(--t);
}

.nav-search-wrapper:focus-within {
  border-color: #999;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.nav-search-icon {
  color: #666;
  font-size: 0.9rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
}

.nav-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.3rem;
  font-family: var(--font-text);
  font-size: 16px !important;
  color: var(--black);
  outline: none;
  min-width: 0;
}

.nav-search-input::placeholder {
  color: #999;
}

/* Mobile : la barre de recherche dans le menu déroulant */
.nav-search-mobile {
  display: none; /* supprimée — remplacée par mobile-search-bar */
}

/* Groupe boutons mobiles (loupe + burger) — toujours côte à côte */
.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Bouton loupe mobile */
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-nav-btn-div);
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all var(--t);
  box-sizing: border-box;
}

.search-toggle:hover {
  background: var(--gray-hover);
  border-color: #999;
}

/* Barre de recherche mobile coulissante (sous le header) */
.mobile-search-bar {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  display: none; /* visible seulement sur mobile via media query */
}

.mobile-search-bar.is-open {
  max-height: 80px;
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: #666;
  font-size: 1rem;
}

.mobile-search-inner .nav-search-input {
  flex: 1;
  padding: 0.5rem 0.4rem;
  font-size: 16px !important;
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
}

.mobile-search-close {
  background: transparent;
  border: none;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}

.mobile-search-close:hover {
  background: var(--gray-hover);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-nav-btn-div) !important;
  transition: all var(--t);
}

.nav a:hover {
  color: var(--text-nav-btn-div) !important;
  background: rgba(0, 0, 0, 0.08);
}

.nav a.is-active {
  color: var(--text-nav-btn-div) !important;
  font-weight: 700;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--text-nav-btn-div);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--t);
  box-sizing: border-box;
}

.burger:hover {
  background: var(--gray-hover);
  border-color: #999;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-nav-btn-div);
  margin: 0;
  transition: transform var(--t), opacity var(--t);
  border-radius: 1px;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================  BARRE DE RECHERCHE ACCUEIL ================= */

.hero--search-only {
  padding: 52px 0 40px;
  background: var(--white);
  border-bottom: none;
}

.library-search-hero--centered {
  margin: 0 auto;
  max-width: 680px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 4px;
}

.search-box-wrapper:focus-within {
  border-color: var(--gray-dark);
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.15);
}

.search-box-icon {
  width: 42px;
  display: grid;
  place-items: center;
  color: #4b5563;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-box-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-text);
  font-size: 16px !important;
  color: var(--black);
  outline: none;
  min-width: 0;
}

.search-box-input::placeholder {
  color: var(--ink-muted);
}

.search-filter-icon {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--black);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t);
  flex-shrink: 0;
}

.search-filter-icon:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.library-filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-chip.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ==========================  PRÉSENTATION AÉRÉE DES LIVRES ============== */

.grid {
  display: grid;
  gap: 48px;
}

/* Desktop : grille ouverte, respiration entre livres */
.grid--books {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 52px 40px;
}

/* Carte livre : aucune boîte, aucune ombre, totalement aéré */
.book {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform var(--t);
}

.book:hover {
  transform: translateY(-6px);
}

/* Zone couverture : fond neutre, sans bordure séparatrice */
.book__cover-stage {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
  margin-bottom: 18px;
}

/* Couverture : couleurs d'origine de chaque ouvrage */
.book__cover {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1.45;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: linear-gradient(150deg, #1b365d, #0d1e36); /* Navy par défaut */
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 8px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    -4px 6px 18px rgba(0, 0, 0, 0.22),
    0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}

.book__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.book:hover .book__cover {
  transform: scale(1.04) rotate(-0.5deg);
  box-shadow: -6px 14px 28px rgba(0, 0, 0, 0.28);
}

/* Couleurs d'origine distinctes pour chaque livre */
.book__cover--navy {
  background: linear-gradient(150deg, #1b365d, #0d1e36);
  border-bottom: 3px solid #0284c7;
}

.book__cover--blue {
  background: linear-gradient(150deg, #0e3b68, #071f3a);
  border-bottom: 3px solid #38bdf8;
}

.book__cover--dark {
  background: linear-gradient(150deg, #262930, #131418);
  border-bottom: 3px solid #94a3b8;
}

.book__cover--green {
  background: linear-gradient(150deg, #134e38, #09261b);
  border-bottom: 3px solid #4ade80;
}

.book__cover--plum {
  background: linear-gradient(150deg, #4c1d47, #240c21);
  border-bottom: 3px solid #f472b6;
}

.book__cover--amber {
  background: linear-gradient(150deg, #5c2c12, #2e1406);
  border-bottom: 3px solid #fbbf24;
}

.book__genre {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f6d88b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 6px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.book__title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin: 0.5rem 0 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.book__author {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 6px;
  position: relative;
  z-index: 2;
}

/* Corps libre, sans padding de boîte */
.book__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book__card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 14px;
  line-height: 1.3;
}

/* 2 boutons côte à côte, légers */
.book__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.book__actions .btn {
  width: 100%;
  padding: 0.55rem 0.5rem;
  font-size: 0.78rem;
  gap: 0.35rem;
  text-align: center;
  justify-content: center;
  border-radius: 3px;
}

/* ==========================  MODAL LECTEUR PDF INTERACTIF ================= */

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}

.pdf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pdf-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  height: 86vh;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--gray-bg);
  color: var(--text-nav-btn-div);
  border-bottom: 1px solid var(--gray-border);
}

.pdf-modal__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-nav-btn-div);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdf-modal__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal__close {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  color: var(--text-nav-btn-div);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t);
}

.pdf-modal__close:hover {
  background: var(--gray-hover);
  color: var(--text-nav-btn-div);
}

.pdf-modal__body {
  flex: 1;
  background: var(--white);
}

.pdf-modal__body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================  BANNIÈRE ÉCRIVAINS EN GRIS #E5E5E5 & NOIR === */

.writers-banner {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.writers-banner h3 {
  color: var(--text-nav-btn-div);
  font-size: 1.45rem;
  margin-bottom: 0.35em;
}

.writers-banner p {
  color: #222222;
  font-size: 0.98rem;
  margin: 0;
  max-width: 60ch;
  line-height: 1.65;
}

.writers-banner .btn {
  background: #ffffff;
  color: var(--text-nav-btn-div) !important;
  border: 1.5px solid var(--gray-border);
}

.writers-banner .btn:hover {
  background: var(--gray-hover);
  color: var(--text-nav-btn-div) !important;
}

/* ==========================================================================
   PRÉSENTATION PROFESSEUR & PORTRAIT (ACCUEIL & À PROPOS)
   ========================================================================== */

/* DESKTOP : image à gauche 340px, texte à droite */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

.about-grid > * {
  min-width: 0;
}

.about-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.about-action {
  margin-top: 26px;
}

.about-action.center {
  text-align: center;
}

/* Portrait desktop : 340px large × 425px haut (ratio 4/5) */
.portrait {
  position: relative;
  background: #0f172a;
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  width: 340px;
  height: 425px;
  flex-shrink: 0;
}

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}

.portrait:hover .portrait__img {
  transform: scale(1.02);
}

.portrait__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 18px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.portrait__name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.portrait__title {
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dd3fc;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  margin: 0;
}

/* ==========================================================================
   ACCRÉDITATIONS ACADÉMIQUES PRESTIGE (3 BLOCS ACCUEIL & À PROPOS)
   ========================================================================== */
.author-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0 0;
  width: 100%;
}

.credential-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  min-width: 0;
  box-sizing: border-box;
}

.credential-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.credential-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.credential-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.credential-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credential-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}

.credential-desc {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   ÉLÉMENTS BIOGRAPHIQUES ET GRILLE 2x2 (À PROPOS)
   ========================================================================== */
.bio-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 20px;
}

.bio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--gray-border);
  color: var(--ink);
}

.bio-pill i {
  color: var(--accent);
}

.bio-pill--accent {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 700;
}

.bio-section-wrap {
  margin-top: 24px;
}

/* Grille 2x2 parfaite pour les 4 sections */
.bio-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
}

.bio-block {
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color var(--t), box-shadow var(--t);
  margin-bottom: 0;
}

.bio-block:hover {
  border-color: var(--accent-border);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}

.bio-block__title {
  font-size: 1.05rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 10px;
}

.bio-block__title i {
  color: var(--accent);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.bio-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bio-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}

.bio-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Citation mise en valeur sous les 4 sections — AUCUN ESPACE PERDU */
.bio-quote-highlight {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 20px 24px 20px 54px;
  margin-top: 0;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.06);
}

.bio-quote-highlight .quote-icon {
  position: absolute;
  left: 18px;
  top: 20px;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.75;
}

.bio-quote-highlight p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #0c4a6e;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   DOMAINES D'EXPERTISE & CITATIONS & CONTACT
   ========================================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}

.expertise-card {
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  min-width: 0;
}

.expertise-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.expertise-card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  color: var(--black);
}

.expertise-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

.quote-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.quote-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--gray-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
}

.quote-card--second {
  margin-top: 24px;
}

.quote-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.quote-card__text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--black);
  margin: 0 0 14px;
}

.quote-card__context {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
}

.callout {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.04);
}

.callout--quote-bottom {
  margin-top: 32px;
}

.callout strong {
  color: var(--black);
  font-size: 1.02rem;
}

.callout a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.callout a:hover {
  color: var(--accent-hover);
}

.post {
  background: var(--gray-bg);
  color: var(--text-nav-btn-div);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.contact-form-card {
  padding: 30px 28px;
}

.form-title {
  margin-top: 0;
  color: var(--text-nav-btn-div);
}

.contact-details {
  margin: 28px 0;
}

.empty-state {
  display: none;
  margin-top: 34px;
  color: var(--ink-muted);
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-nav-btn-div);
}

.form-note {
  color: #4b5563;
  font-size: 0.82rem;
  margin-top: 6px;
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-text);
  font-size: 16px !important;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  transition: all var(--t);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ==========================  PIED DE PAGE  — SIGNATURE UNIQUEMENT ======= */

.site-footer {
  background: var(--white);
  color: var(--black);
  padding: 32px 0;
  border-top: none;
}

.footer-sig {
  text-align: center;
  font-size: 0.82rem;
  color: #888888;
  margin: 0;
  font-family: var(--font-text);
}

.footer-sig a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sig a:hover {
  opacity: 0.65;
}

.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--black); line-height: 1.75; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* Couverture avec image personnalisée pour les nouveaux livres */
.book__cover--custom {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.book__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}



/* ==========================================================================
   PAGE DE LECTURE (LIRE.HTML) — THÈME DU SITE 100% RESPONSIVE
   ========================================================================== */
.reader-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1.5px solid var(--gray-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 8px 0;
}

.reader-nav__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.reader-nav__title-block {
  min-width: 0;
}

.reader-nav__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.reader-nav__subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reader-main {
  background: var(--bg);
  min-height: calc(100vh - 65px);
  padding: 40px 0 80px;
}

.reader-book-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

.reader-book-cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.reader-book-cover-wrap .book__cover {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1.45;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.reader-book-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reader-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.reader-book-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin: 0;
}

.reader-book-author {
  font-size: 1rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.reader-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reader-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.reader-pill i {
  color: var(--gold);
}

.reader-quote-box {
  background: #faf8f3;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-family: var(--font-quote);
  font-size: 1.15rem;
  font-style: italic;
  color: #2b2b2b;
  line-height: 1.6;
}

.reader-text-block h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 10px;
}

.reader-text-block p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #374151;
}

.reader-notice-box {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-notice-box i {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Lecteur PDF PDF.js responsive */
.reader-pdf-wrap {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 24px;
}

.reader-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: #1e293b;
  color: #ffffff;
}

.reader-pdf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-pdf-btn {
  background: #334155;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s;
}

.reader-pdf-btn:hover {
  background: #475569;
}

.reader-pdf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reader-pdf-page-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0 6px;
}

.reader-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  background: #334155;
  min-height: 480px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reader-canvas-container canvas {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  height: auto !important;
  background: #ffffff;
}

/* ==========================================================================
   TAGS & COMPOSANTS COMPLÉMENTAIRES (RÉTROCOMPATIBILITÉ)
   ========================================================================== */
.bio-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.milestone-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.book-pill {
  background: var(--bg-alt);
  border: 1px solid var(--gray-border);
  border-left: 3.5px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  transition: transform var(--t), background var(--t);
}

.book-pill:hover {
  background: #ffffff;
  transform: translateX(4px);
  border-left-color: var(--accent-hover);
}

/* ==========================================================================
   RESPONSIVE DESIGN CONSOLIDÉ — 4 BREAKPOINTS SANS DOUBLONS NI CONFLITS
   ========================================================================== */

/* --- 1. Tablette standard (max-width: 992px) --- */
@media (max-width: 992px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
  }
  .portrait {
    width: 100%;
    max-width: 100%;
    height: 380px;
    aspect-ratio: unset;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
  }
  .portrait__img {
    object-position: center 35%;
  }
  .about-content {
    width: 100%;
    min-width: 0;
  }
  .author-credentials {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bio-grid-2x2 {
    gap: 16px;
  }
}

/* --- 2. Tablette portrait & header responsive (max-width: 820px) --- */
@media (max-width: 820px) {
  /* Navigation mobile & barre de recherche */
  .nav-search-wrapper { display: none !important; }
  
  .header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .search-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-search-bar { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--gray-bg);
    border-bottom: 2px solid var(--gray-border);
    padding: 16px 20px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 99;
  }
  .nav.is-open { display: flex; }
  
  .nav a {
    background: #ffffff;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-nav-btn-div) !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav a.is-active::after { display: none; }
  .nav a.is-active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000;
  }

  .writers-banner { grid-template-columns: 1fr; padding: 28px; }

  /* Disposition profil : Image centrée puis biographie en-dessous (jamais superposés) */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .portrait {
    width: 100%;
    max-width: 100%;
    height: 380px;
    aspect-ratio: unset;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
  }
  .portrait__img {
    object-position: center 35%;
  }

  /* Les 3 cartes académiques (Institution, Grade, Localisation) passent en 1 colonne */
  .author-credentials {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 4 sections biographiques restent toujours en 2 colonnes comme demandé */
  .bio-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .bio-block {
    padding: 18px 16px;
  }
  .bio-block__title {
    font-size: 0.98rem;
    gap: 8px;
  }

  /* Domaines d'expertise et citations */
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quote-card {
    padding: 22px 20px;
  }

  /* Lecteur PDF responsive */
  .reader-book-showcase {
    grid-template-columns: 1fr;
    padding: 22px 16px;
    gap: 24px;
  }
  .reader-book-cover-wrap .book__cover {
    max-width: 200px;
  }
  .reader-nav__title {
    font-size: 0.92rem;
  }
  .reader-main {
    padding: 20px 0 60px;
  }
  .reader-pdf-toolbar {
    padding: 10px 14px;
  }
}

/* --- 3. Mobile standard (max-width: 600px) --- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .section {
    padding: 32px 0;
  }
  .wrap {
    padding: 0 16px;
  }

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

  .hide-mobile {
    display: none !important;
  }

  /* Portrait mobile : conserve fidèlement le rendu desktop prestige */
  .about-grid {
    gap: 24px;
  }
  .portrait {
    width: 100%;
    max-width: 100%;
    height: 340px;
    aspect-ratio: unset;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  .portrait__img {
    object-position: center 35%;
  }
  .portrait__overlay {
    padding: 40px 16px 16px;
  }
  .portrait__name {
    font-size: 1.1rem;
  }
  .portrait__title {
    font-size: 0.78rem;
  }

  /* Les 3 blocs académiques : 100% responsive, aucun débordement */
  .author-credentials {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }
  .credential-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .credential-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1rem;
  }
  .credential-title {
    font-size: 0.92rem;
  }
  .credential-desc {
    font-size: 0.76rem;
  }

  /* Les 4 sections en 2 colonnes équilibrées et compactes */
  .bio-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .bio-block {
    padding: 14px 12px;
  }
  .bio-block__title {
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .bio-list {
    gap: 6px;
    margin-top: 6px;
  }
  .bio-list li {
    font-size: 0.8rem;
    padding-left: 20px;
    line-height: 1.45;
  }
  .bio-list li::before {
    font-size: 0.8rem;
  }

  /* Citation sous les 4 sections — aucun espace excessif */
  .bio-quote-highlight {
    padding: 16px 16px 16px 42px;
  }
  .bio-quote-highlight .quote-icon {
    left: 12px;
    top: 16px;
    font-size: 1.15rem;
  }
  .bio-quote-highlight p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  /* Citations et callouts */
  .quote-card {
    padding: 18px 16px;
  }
  .quote-card__text {
    font-size: 1.08rem;
  }
  .callout {
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  /* Grille des livres mobile : disposition aérée et horizontale */
  .grid--books {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .book {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .book__cover-stage {
    flex: 0 0 110px;
    width: 110px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .book__cover {
    width: 100%;
    max-width: 110px;
    aspect-ratio: 1 / 1.45;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid rgba(0, 0, 0, 0.45);
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .book__genre {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #f6d88b;
  }

  .book__title {
    font-size: 0.82rem;
    margin: 3px 0 0;
    line-height: 1.15;
    color: #ffffff;
  }

  .book__author {
    font-size: 0.52rem;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
  }

  .book__body {
    padding: 0;
    justify-content: center;
    flex: 1;
    min-width: 0;
    background: transparent;
  }

  .book__card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 10px;
    line-height: 1.25;
  }

  .book__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .book__actions .btn {
    width: 100%;
    padding: 0.52rem 0.75rem;
    font-size: 0.76rem;
    justify-content: center;
  }

  .brand__tag { display: none; }
}

/* --- 4. Très petits mobiles (max-width: 400px) --- */
@media (max-width: 400px) {
  .wrap {
    padding: 0 12px;
  }
  .bio-subtitle {
    gap: 5px;
  }
  .bio-pill {
    font-size: 0.74rem;
    padding: 4px 8px;
  }
  .bio-grid-2x2 {
    gap: 8px;
  }
  .bio-block {
    padding: 10px 8px;
  }
  .bio-block__title {
    font-size: 0.8rem;
  }
  .bio-list li {
    font-size: 0.74rem;
    padding-left: 16px;
  }
  .bio-list li::before {
    font-size: 0.72rem;
  }
  .credential-card {
    padding: 10px 10px;
    gap: 8px;
  }
  .credential-title {
    font-size: 0.86rem;
  }
  .credential-desc {
    font-size: 0.72rem;
  }
  .book__cover-stage {
    flex: 0 0 85px;
    width: 85px;
  }
  .book__cover {
    max-width: 85px;
    padding: 8px 6px;
  }
  .book__card-title {
    font-size: 0.92rem;
  }
  .book__actions .btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
  }
  .brand__name {
    font-size: 0.88rem;
  }
}