/* ============================================================
   STYLE.CSS — Site vitrine Philippe Goupil
   Palette : bleu ciel / bleu marine / jaune soleil
   ============================================================ */

:root {
  --color-primary: #1A6BAF;        /* bleu ciel profond */
  --color-primary-dark: #0F4C81;   /* bleu marine */
  --color-accent: #F5C518;         /* jaune soleil */
  --color-accent-light: #FFE066;   /* jaune clair */
  --color-bg: #F0F7FF;             /* blanc bleuté */
  --color-bg-card: #FFFFFF;        /* blanc pur pour les cartes */
  --color-text: #1A2A3A;           /* bleu très foncé pour le texte */
  --color-text-light: #4A6080;     /* bleu gris pour textes secondaires */
  --color-hero-bg: #0F4C81;        /* fond hero bleu marine */
  --color-footer-bg: #0F4C81;      /* footer bleu marine */

  --border-soft: rgba(15,76,129,0.14);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;

  --radius: 10px;
  --shadow-soft: 0 6px 24px rgba(15,76,129,0.12);
  --shadow-strong: 0 12px 40px rgba(15,76,129,0.22);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: 0.9em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--color-primary); }

p { margin: 0 0 1em; color: var(--color-text-light); }

a { color: var(--color-primary); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 1.2em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(15, 76, 129, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.nav-link.active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  padding: 4px;
  border-radius: 999px;
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.lang-btn:hover:not(.active) {
  background: rgba(245,197,24,0.3);
}

/* ---------- Tabs ---------- */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInPanel 0.35s ease; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Placeholder boxes (photo zones) ---------- */
.placeholder-box {
  position: relative;
  background: linear-gradient(135deg, var(--color-bg), #dceafd);
  border: 1px dashed rgba(15,76,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-primary);
}

.placeholder-icon {
  font-size: 2.4rem;
  opacity: 0.55;
}

.placeholder-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- HOME tab ---------- */
.home-hero {
  background: var(--color-hero-bg);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.home-hero h1 { color: #fff; }

.home-content {
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.home-portrait {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 5px solid #F5C518;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.25);
  margin: 0 auto;
}
.home-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.home-text p { font-size: 1.05rem; }

.home-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.4em;
}

/* ---------- HOUSE tab: hero ---------- */
.house-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: var(--color-hero-bg);
}

.house-hero-media {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
}
.house-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,76,129,0.35) 0%, rgba(15,76,129,0.88) 100%);
}
.house-hero-media .placeholder-icon { font-size: 5rem; z-index: 0; }
.house-hero-media img { z-index: 1; }

.house-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  padding: 60px 0 56px;
}
.house-hero-overlay h1 { color: #fff; }

.hero-price {
  margin: 18px 0 26px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-price-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}
.hero-price-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ---------- Generic sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg); }

.lead-text { font-size: 1.1rem; max-width: 70ch; }

.price-inline {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 700;
}
.price-highlight {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

.sub-title {
  margin-top: 1.6em;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 4px;
}

.dims-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.dims-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  background: var(--color-bg);
  padding: 10px 16px;
  border-radius: 999px;
}

.ico { font-size: 1.3rem; }

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.floorplan-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.floorplan-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--color-text-light);
}
.floorplan-card li { margin-bottom: 0.4em; }

.floorplan-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: -0.4em 0 0.9em;
}

/* Outbuilding cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.card-icon { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.card p { margin: 0; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 20px;
}
.service-item .ico { font-size: 1.8rem; }
.service-item strong { display: block; color: var(--color-primary-dark); margin-bottom: 2px; }
.service-item span:last-child { color: var(--color-text-light); font-size: 0.95rem; }

/* Costs table */
.table-wrap { overflow-x: auto; }
.costs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-width: 420px;
}
.costs-table th, .costs-table td {
  text-align: left;
  padding: 16px 20px;
}
.costs-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
}
.costs-table tbody tr:nth-child(odd) { background: var(--color-bg); }
.costs-table tbody td:last-child { font-weight: 700; }
.costs-table tfoot .total-row td {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid var(--color-primary-dark);
}

/* Village */
.village-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
}
.village-list li {
  padding-left: 26px;
  position: relative;
  color: var(--color-text-light);
}
.village-list li::before {
  content: "☀️";
  position: absolute;
  left: 0;
  top: 0;
}
.village-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.village-link:hover { color: var(--color-accent); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  font-family: var(--font-body);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(15,76,129,0.88), transparent);
  color: #fff;
  padding: 22px 14px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}
.gallery-item .placeholder-icon { z-index: 0; }
.gallery-item img { z-index: 1; }

.gallery-item-plain .placeholder-icon { font-size: 1.8rem; }

/* "Voir plus de photos" toggle + galerie secondaire */
.gallery-more {
  text-align: center;
  margin-top: 32px;
}

.gallery-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-more-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-slow);
}

.gallery-more-panel.is-open {
  opacity: 1;
}

.gallery-grid-secondary {
  margin-top: 28px;
}

/* Contact form */
.contact-form {
  max-width: 620px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid rgba(15,76,129,0.22);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.form-row.has-error input, .form-row.has-error textarea {
  border-color: #b3261e;
}
.form-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1.1em;
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.form-submit-error {
  background: #b3261e;
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.form-success-message {
  max-width: 620px;
  background: #2E7D4F;
  color: #FFFFFF;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: var(--shadow-soft);
}
.form-success-message p {
  color: #FFFFFF;
  margin: 0;
  font-weight: 600;
}

/* Books tab */
.books-content {
  padding: 80px 24px 100px;
  text-align: center;
  background: var(--color-bg-card);
}

.books-intro {
  max-width: 620px;
  margin: 0 auto 48px;
}

.books-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  margin-bottom: 44px;
  text-align: left;
}

.book-card {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 60px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: left;
}

.book-cover {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
}

.book-cover img {
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border-radius: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

.book-free {
  text-align: center;
  color: #2D8A4E;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 14px 0 0;
}

.book-info {
  flex: 1;
}

.book-title {
  font-size: 2rem;
  margin-bottom: 0.4em;
}

.book-subtitle {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.2em;
}

.book-buttons {
  margin-top: 8px;
}

.book-description {
  position: relative;
  text-align: justify;
  line-height: 1.7;
  white-space: normal;
  display: block;
  margin-bottom: 0.6em;
  max-height: calc(1.7em * 5);
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.book-description::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3em;
  background: linear-gradient(transparent, var(--color-bg-card));
  pointer-events: none;
}

.book-description.is-open {
  max-height: none;
}

.book-description.is-open::after,
.book-description.no-clamp::after {
  display: none;
}

.book-card .book-description p,
.book-description p {
  margin: 0 0 1em;
}

.book-toggle {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.book-toggle:hover {
  color: var(--color-primary);
}

.book-toggle[hidden] {
  display: none;
}

.book-cta {
  margin-top: auto;
}

.books-back {
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 26px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer p { color: #fff; margin: 0; }
.footer-contact-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-contact-link:hover {
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 35, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-content {
  max-width: 90vw;
  max-height: 82vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 74vh;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}
.lightbox-caption {
  color: #fff;
  margin-top: 14px;
  font-weight: 700;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* i18n text swap fade */
[data-i18n], [data-i18n-attr-content] {
  transition: opacity 0.15s ease;
}
.i18n-fade [data-i18n] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .home-content { grid-template-columns: 1fr; }
  .home-portrait { width: 200px; height: 200px; }
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { justify-content: center; flex-wrap: wrap; }
  .container { padding: 0 18px; }
  .house-hero { min-height: 460px; }
  .home-hero { padding: 60px 0 46px; }
  .section { padding: 46px 0; }
  .contact-form { padding: 22px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .book-card { flex-direction: column; text-align: center; }
  .book-cover { width: 100%; max-width: 280px; margin: 0 auto; }
  .book-info { align-items: center; }
}
.book-card p {
  white-space: pre-line;
}
/* ===== Photo ronde de l'accueil ===== */
.home-portrait {
  width: 260px !important;
  height: 260px !important;
  max-width: 260px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0;
  border: 5px solid #F5C518;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.25);
  margin: 0 auto 24px;
  padding: 0 !important;
  background: none !important;
  position: relative;
}
.home-portrait img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  position: static !important;
}
@media (max-width: 768px) {
  .home-portrait {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
  }
}

/* ===== Paragraphes des livres ===== */
.book-card p {
  white-space: pre-line;
}
/* ===== Photo ronde de l'accueil ===== */
.home-portrait {
  width: 260px !important;
  height: 260px !important;
  max-width: 260px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0;
  border: 5px solid #F5C518;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.25);
  margin: 0 auto 24px;
  padding: 0 !important;
  background: none !important;
  position: relative;
}
.home-portrait img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  position: static !important;
}
@media (max-width: 768px) {
  .home-portrait {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
  }
}

/* ===== Paragraphes des livres ===== */
.book-card p {
  white-space: pre-line;
}

/* ===== Bouton « Se procurer le livre » centré ===== */
.book-toggle {
  display: block;
}
.book-buy {
  display: table;
  margin: 24px auto 0;
  background: #F5C518;
  color: #0F4C81;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
}

/* ===== Boutons « Lire en ligne » / « Télécharger » (livre 0) ===== */
.book-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px auto 0;
}
.book-link-primary,
.book-link-secondary {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-link-primary {
  background: #0F4C81;
  color: #fff;
}
.book-link-secondary {
  background: #F5C518;
  color: #0F4C81;
}
.book-link-primary:hover,
.book-link-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
}

.book-link-lang {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F4C81;
  text-decoration: underline;
  text-decoration-color: #F5C518;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.book-link-lang:hover {
  color: #4A6080;
}
