/* auVIEna éditions — feuille de style */

:root {
  --ink: #1c2b2c;
  --teal: #0f6e7c;
  --teal-dark: #0a4c56;
  --gold: #ab7f3f;
  --paper: #faf7f1;
  --paper-alt: #f1ece2;
  --muted: #5c6b6c;
  --line: #e2dccd;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 40, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Georgia", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  margin: 0;
}

a { color: var(--teal-dark); }
a:hover { color: var(--gold); }

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

.wrap-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  padding: 34px 24px 22px;
  text-align: center;
  background: var(--paper);
}

.site-nav {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  font-family: "Source Serif 4", serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold); border-color: var(--gold); }

.logo {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--teal-dark);
  letter-spacing: 0.01em;
}
.logo .accent {
  color: var(--ink);
  font-style: normal;
}

.tagline {
  margin-top: 8px;
  font-family: "Source Serif 4", serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.tagline-line {
  display: block;
}
.tagline-line + .tagline-line { margin-top: 2px; }

/* Hero gallery */
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--ink);
}

.hero-gallery picture {
  display: block;
}

.hero-gallery img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.96);
}

@media (max-width: 720px) {
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery img { height: 220px; }
}

/* Intro / annonce */
.intro {
  padding: 56px 24px 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.intro h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
}

.book-heading {
  margin-top: 30px;
}

.book-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--teal-dark);
}

.book-subtitle {
  margin-top: 6px;
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
}

.intro p.lead {
  max-width: 660px;
  margin: 22px auto 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.blurb {
  max-width: 700px;
  margin: 34px auto 0;
  padding: 26px 30px;
  background: var(--paper-alt);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  text-align: left;
  font-size: 1rem;
  color: var(--ink);
}

.blurb p { margin: 0 0 14px; }
.blurb p:last-child { margin-bottom: 0; }

/* Extraits section */
.extraits {
  padding: 20px 24px 70px;
  background: var(--paper);
}

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

.extraits .section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--ink);
}

.extraits .section-head p {
  color: var(--muted);
  margin-top: 12px;
}

.extraits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .extraits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .extraits-grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 20px;
}

.card .num {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--teal-dark);
  line-height: 1.35;
}

.card .meta {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.card p.teaser {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--ink);
}

.card details { margin-top: 18px; padding-top: 4px; }
.card p.teaser { flex-grow: 1; }

.card summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.card summary::-webkit-details-marker { display: none; }
.card summary:hover { background: var(--teal-dark); }

.card details[open] summary { background: var(--teal-dark); }
.card details[open] summary .txt { display: none; }
.card details[open] summary::after { content: "Réduire"; }

.card summary .icon {
  transition: transform 0.2s ease;
}
.card details[open] summary .icon { transform: rotate(45deg); }

.pdf-frame-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-alt);
}

.pdf-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 65vh;
  border: none;
  background: #fff;
}

.fullscreen-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: "Source Serif 4", serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--teal);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.fullscreen-link:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Bouton plein (partagé avec l'espace de lecture livre/) */
.livre-btn {
  cursor: pointer;
  display: inline-block;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s ease;
  text-decoration: none;
}
.livre-btn:hover { background: var(--teal-dark); color: #fff; }

/* Bandeau d'appel vers l'espace de lecture complet */
.livre-cta {
  max-width: 700px;
  margin: 50px auto 0;
  text-align: center;
  padding: 34px 30px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.livre-cta h3 {
  font-size: 1.2rem;
  color: var(--teal-dark);
}
.livre-cta p {
  margin: 12px 0 22px;
  color: var(--ink);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  padding: 70px 24px 80px;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.contact .section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}

.contact .section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--ink);
}

.contact .section-head p {
  color: var(--muted);
  margin-top: 12px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 34px 30px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form .field { margin-bottom: 20px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form button {
  cursor: pointer;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.contact-form button:hover { background: var(--teal-dark); }

.contact-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-note a { color: var(--teal-dark); }

/* Footer */
footer.site-footer {
  padding: 30px 24px;
  text-align: center;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site-footer p { margin: 0; }

footer.site-footer .credit {
  margin-top: 8px;
  font-size: 0.8rem;
}

footer.site-footer .credit a {
  color: var(--muted);
  text-decoration: underline dotted;
}
footer.site-footer .credit a:hover { color: var(--gold); }

footer.site-footer .legal-links {
  margin-top: 10px;
  font-size: 0.8rem;
}
footer.site-footer .legal-links a {
  color: var(--muted);
  text-decoration: underline dotted;
  margin: 0 6px;
}
footer.site-footer .legal-links a:hover { color: var(--gold); }

/* Pages légales (CGU, confidentialité) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.legal .eyebrow { display: block; }

.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-top: 14px;
  color: var(--ink);
}

.legal .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal .disclaimer {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--paper-alt);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--ink);
}

.legal section {
  margin-top: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.legal h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 20px 0 8px;
}

.legal p, .legal li {
  font-size: 0.98rem;
  color: var(--ink);
}

.legal p + p { margin-top: 12px; }

.legal ul, .legal ol {
  margin: 10px 0;
  padding-left: 22px;
}
.legal li + li { margin-top: 6px; }

.legal .todo {
  background: #fbeaea;
  color: #8a2c2c;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.85em;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
