/* ==========================================================
   Bonne Presse — Marie-Agnès Moller, attachée de presse
   Direction B : Encre & rose poudré
   ========================================================== */

:root {
  --encre: #1E2A47;
  --encre-doux: #3D4865;
  --rose: #F8EDE8;
  --rose-fonce: #EFD9D0;
  --corail: #B6452A;
  --corail-clair: #E9B8A6;
  --blanc: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1240px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--rose);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-underline-offset: 3px; }
a:hover { color: var(--corail); }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.serif { font-family: var(--serif); font-weight: 400; }
em.accent, .accent { color: var(--corail); font-style: italic; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--rose); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 1rem 1.85rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--corail); color: var(--blanc); }
.btn-primary:hover { background: #9C3820; color: var(--blanc); }
.btn-dark { background: var(--encre); color: var(--rose); }
.btn-dark:hover { background: #121A30; color: var(--rose); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-link { font-weight: 600; text-decoration: none; padding: 1rem .5rem; }

/* ---------- En-tête ---------- */
.site-header { padding: 1.5rem 0; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--encre); }
.brand img { height: 48px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { min-height: 44px; padding: .75rem 1.4rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 6rem; }
.hero .container { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: flex-end; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.badge { display: inline-block; background: var(--blanc); padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; margin: 0 0 1.5rem; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.01em; }
.hero .lead { margin: 2rem 0 0; font-size: 1.2rem; max-width: 34rem; color: var(--encre-doux); }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-visual { flex: 1 1 360px; display: flex; justify-content: center; }
.portrait { position: relative; width: 100%; max-width: 420px; margin: 0; }
.portrait img.photo { width: 100%; height: 540px; object-fit: cover; object-position: center 20%; border-radius: 210px 210px 24px 24px; }
.portrait img.mascotte { position: absolute; right: -40px; bottom: -36px; width: 190px; background: none; padding: 0; border-radius: 0; filter: drop-shadow(0 6px 14px rgba(30,42,71,.18)); }

/* ---------- Bandeau clients ---------- */
.clients { background: var(--encre); color: var(--rose); padding: 2.5rem 0; }
.clients .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 3rem; }
.clients h2 { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--corail-clair); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; font-family: var(--serif); font-size: 1.6rem; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.05; max-width: 48rem; }
.section-intro { margin: 1.25rem 0 0; max-width: 40rem; color: var(--encre-doux); font-size: 1.1rem; }

.cards { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--blanc); border-radius: var(--radius); padding: 2.25rem; }
.card svg { width: 32px; height: 32px; }
.card h3 { margin: 1.25rem 0 .6rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--encre-doux); }

/* ---------- À propos ---------- */
.about .container { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; }
.about-text { flex: 999 1 520px; min-width: 0; }
.about-media { flex: 1 1 300px; display: flex; justify-content: center; }
.about-media img { width: 100%; max-width: 360px; }
.about-text p { color: var(--encre-doux); font-size: 1.1rem; }
.press-mentions { font-size: .95rem; }
.press-mentions strong { color: var(--encre); }

/* ---------- Local ---------- */
.local-box { background: var(--rose-fonce); border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.local-box > div:first-child { flex: 999 1 480px; min-width: 0; }
.local-box h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; }
.local-box p { margin: 1.25rem 0 0; color: var(--encre-doux); font-size: 1.1rem; }
.tags { flex: 1 1 280px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { background: var(--blanc); padding: .6rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 3rem; display: grid; gap: .9rem; max-width: 52rem; }
.faq-list details { background: var(--blanc); border-radius: 18px; padding: 1.25rem 1.5rem; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--corail); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: .9rem 0 0; color: var(--encre-doux); }

/* ---------- Contact ---------- */
.contact { background: var(--encre); color: var(--rose); padding: 6.5rem 0; text-align: center; }
.contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.contact h2 em { color: var(--corail-clair); }
.contact p { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.15rem; color: #D5DAE6; }
.contact .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.contact address { font-style: normal; margin-top: 2rem; color: #D5DAE6; font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 1.75rem 0; font-size: .875rem; color: var(--encre-doux); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.site-footer a { color: var(--encre-doux); }

/* ---------- Pages simples ---------- */
.page { padding: 3rem 0 6rem; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 2rem; }
.page h2 { font-size: 1.25rem; margin: 2.5rem 0 .5rem; }
.page p { color: var(--encre-doux); max-width: 46rem; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
  .nav { gap: .25rem 1rem; }
  .hero { padding: 1.5rem 0 4rem; }
  .portrait img.photo { height: 440px; }
  .portrait img.mascotte { width: 140px; right: -10px; bottom: -28px; }
  .section { padding: 4.5rem 0; }
  .clients ul { font-size: 1.3rem; gap: .5rem 1.5rem; }
}

/* ---------- Page ouvrages ---------- */
.page-hero { padding: 3rem 0 4rem; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.01em; max-width: 14ch; }
.page-hero .lead { margin: 1.75rem 0 0; font-size: 1.2rem; max-width: 40rem; color: var(--encre-doux); }
.books { display: grid; gap: 1.5rem; padding-bottom: 6rem; }
.book { background: var(--blanc); border-radius: 32px; padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.book:nth-child(even) { flex-direction: row-reverse; }
.book-cover { flex: 1 1 240px; display: flex; justify-content: center; }
.book-cover img { width: 100%; max-width: 280px; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 -2px rgba(0,0,0,.08) inset, 0 2px 4px rgba(30,42,71,.12), 0 24px 48px -12px rgba(30,42,71,.35); transform: perspective(1200px) rotateY(-6deg); transition: transform .4s ease; }
.book:nth-child(even) .book-cover img { transform: perspective(1200px) rotateY(6deg); }
.book:hover .book-cover img { transform: perspective(1200px) rotateY(0deg) translateY(-4px); }
.book-body { flex: 999 1 420px; min-width: 0; }
.book-kicker { margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--corail); }
.book h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; }
.book-sub { margin: .5rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--encre-doux); }
.book-body p.resume { color: var(--encre-doux); font-size: 1.08rem; margin: 1.5rem 0 0; }
.book-meta { list-style: none; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rose-fonce); display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .92rem; color: var(--encre-doux); }
.book-meta strong { color: var(--encre); font-weight: 600; }
.book .btn { margin-top: 1.75rem; }
.author-note { background: var(--encre); color: var(--rose); border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; margin-bottom: 6rem; }
.author-note img { width: 160px; height: 160px; object-fit: cover; object-position: center 15%; border-radius: 50%; flex: 0 0 auto; }
.author-note div { flex: 1 1 360px; }
.author-note h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
.author-note p { color: #D5DAE6; font-size: 1.08rem; margin: 1rem 0 0; }
.author-note .btn { margin-top: 1.5rem; }
@media (max-width: 720px) { .book, .book:nth-child(even) { flex-direction: column; } .book-cover img { max-width: 220px; transform: none !important; } }
