/* =========================================================
   SITE D'AUTRICE — STYLE SOBRE ET RESPONSIVE
   Aucun chargement de police ou de bibliothèque externe.
   ========================================================= */
:root {
  --paper: #f7f5f0;
  --paper-alt: #eeeae2;
  --sidebar: #ece9e1;
  --ink: #2f3430;
  --muted: #797b74;
  --faint: #a0a197;
  --line: #deddd5;
  --accent: #9d755b;
  --accent-strong: #77513d;
  --font-serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --sidebar-width: clamp(268px, 23.2vw, 332px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 34px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; border-radius: 2px; }
button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
p, h1, h2, h3 { margin-top: 0; }
[hidden] { display: none !important; }
::selection { background: #d7c3af; color: var(--ink); }

.skip-link { position: fixed; top: -100px; left: 12px; background: var(--ink); color: #fff; padding: 14px 18px; z-index: 50; }
.skip-link:focus { top: 12px; }
.overline { font-size: 10px; font-weight: 700; text-transform: uppercase; line-height: 1.6; letter-spacing: .19em; }

/* Barre latérale : fixe sur écran large. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--sidebar-width); height: 100vh; height: 100dvh; background: var(--sidebar); border-right: 1px solid #e1dcd2; overflow-y: auto; overscroll-behavior: contain; }
.sidebar__inner { padding: 36px clamp(23px, 3vw, 43px) 29px; min-height: 100%; display: flex; flex-direction: column; }
.sidebar__brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; max-width: 100%; font-size: 9px; letter-spacing: .24em; font-weight: 760; white-space: nowrap; }
.brand-mark { font-family: Georgia, serif; font-size: 26px; color: var(--accent); line-height: .65; font-weight: 400; }
.sidebar__portrait-wrap { position: relative; margin-top: clamp(29px, 5.7vh, 59px); width: 100%; flex-shrink: 0; }
.sidebar__portrait { width: 100%; height: auto; aspect-ratio: 4 / 4.55; object-fit: cover; object-position: center 27%; background: #d4c6b6; filter: saturate(.78); }
.portrait-corner { position: absolute; right: -11px; bottom: -12px; width: 76px; height: 76px; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); pointer-events: none; }
.sidebar__identity { padding-top: 34px; }
.sidebar__role { color: var(--accent-strong); margin: 0 0 10px; }
.sidebar__name { font-family: var(--font-serif); font-size: clamp(28px, 2.2vw, 37px); line-height: 1.09; letter-spacing: -.045em; font-weight: normal; margin: 0 0 15px; }
.sidebar__bio { color: #686b65; font-size: 12px; line-height: 1.95; margin: 0; }
.sidebar__bottom { margin-top: auto; padding-top: 35px; }
.sidebar__line { display: block; width: 100%; height: 1px; background: #d5d0c6; margin-bottom: 22px; }
.sidebar__about-link { font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; letter-spacing: .01em; transition: color .2s; }
.sidebar__about-link:hover { color: var(--accent-strong); }
.sidebar__about-link span { font-size: 19px; font-weight: normal; }
.sidebar__signature { display: block; margin-top: 32px; font-family: var(--font-serif); font-style: italic; font-size: 12px; color: #96948b; }

/* Zone de lecture. */
.site-shell { margin-left: var(--sidebar-width); min-height: 100vh; min-height: 100dvh; }
.site-header { max-width: 1450px; margin: auto; padding: 36px clamp(35px, 5.6vw, 88px); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: #737369; font-size: 9px; letter-spacing: .21em; font-weight: 740; white-space: nowrap; }
.wordmark span { font-size: 17px; color: var(--accent); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(17px, 2.1vw, 37px); row-gap: 10px; }
.site-nav__link { position: relative; color: #6c6d66; font-size: 11px; font-weight: 620; white-space: nowrap; }
.site-nav__link::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--accent); transition: width .2s ease; }
.site-nav__link:hover::after, .site-nav__link:focus-visible::after { width: 100%; }
.site-nav__link:hover { color: var(--ink); }
main { width: 100%; }

/* Accueil */
.hero { max-width: 1450px; margin: 0 auto; padding: 50px clamp(35px, 5.6vw, 88px) 103px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(165px, .75fr); align-items: center; gap: clamp(22px, 4.5vw, 80px); }
.hero__copy { min-width: 0; }
.hero__eyebrow { color: var(--accent-strong); display: flex; gap: 13px; align-items: center; margin-bottom: 32px; }
.small-dash { width: 22px; height: 1px; background: var(--accent); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(48px, 5.15vw, 83px); letter-spacing: -.066em; line-height: 1.02; font-weight: 400; margin-bottom: 27px; }
.hero h1 em, .about-section h2 em, .contact-section h2 em, .serif-italic { font-weight: 400; color: var(--accent-strong); font-family: var(--font-serif); font-style: italic; }
.hero__intro { font-size: 14px; line-height: 1.95; color: #757770; max-width: 425px; margin-bottom: 26px; }
.text-link { font-size: 12px; font-weight: 690; display: inline-flex; align-items: center; gap: 16px; }
.arrow-circle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #c5b3a7; border-radius: 50%; color: var(--accent-strong); font-size: 20px; font-weight: 400; transition: background .2s, color .2s, transform .2s; }
.text-link:hover .arrow-circle { color: white; background: var(--accent-strong); transform: translate(2px, -2px); }
.hero__art { padding: 11px; border: 1px solid #d8d2c6; min-width: 0; width: 100%; max-width: 300px; justify-self: end; aspect-ratio: 0.87; }
.hero__art-inner { position: relative; overflow: hidden; height: 100%; width: 100%; background: #e8dfd0; }
.hero__art-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(173deg, #c6b3a3 0%, #e9ded0 48%, #c2b19c 100%); opacity: .7; }
.hero__sun { position: absolute; top: 19%; left: 50%; transform: translateX(-50%); background: #f4e7ce; border-radius: 50%; width: 45%; aspect-ratio: 1; box-shadow: 0 0 50px 4px #fff5e480; }
.hero__horizon { position: absolute; bottom: 8%; left: -15%; width: 150%; height: 44%; border-radius: 50% 50% 0 0; transform: rotate(-10deg); }
.hero__horizon--one { bottom: -18%; background: #978c79; }
.hero__horizon--two { bottom: -28%; left: -27%; background: #68786c; transform: rotate(11deg); }
.hero__art-label { position: absolute; top: 17px; left: 15px; font-size: 7px; color: #5b544a; font-weight: 800; letter-spacing: .24em; }
.hero__art-index { position: absolute; bottom: 17px; right: 14px; font-size: 9px; color: #fdf7ea; letter-spacing: .12em; }

/* Bibliographie */
.books-section { padding: 82px clamp(35px, 5.6vw, 88px) 110px; background: #f0eee8; }
.books-section > * { max-width: 1260px; margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; border-bottom: 1px solid #d8d7cf; margin-bottom: 45px; padding-bottom: 27px; }
.section-kicker { margin-bottom: 12px; color: var(--accent-strong); }
.section-count { color: #a2a099; margin-left: 13px; letter-spacing: .11em; }
.section-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(33px, 3.5vw, 50px); line-height: 1.16; letter-spacing: -.043em; margin: 0; }
.section-head__aside { font-family: var(--font-serif); font-style: italic; font-size: 13px; line-height: 1.6; color: #909087; max-width: 166px; margin: 0 0 5px; }
.books-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 36px); row-gap: 56px; align-items: stretch; }
.book-card { display: flex; flex-direction: column; min-width: 0; }
.book-cover { width: 100%; aspect-ratio: .725; margin-bottom: 21px; background: #dfddd7; box-shadow: 1px 11px 19px -15px #302f2855; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.book-card:hover .book-cover { transform: translateY(-5px); box-shadow: 3px 16px 23px -14px #302f2860; }
.book-cover__image { display: block; width: 100%; height: 100%; object-fit: contain; background: #ebe7df; }
.book-cover__placeholder { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; isolation: isolate; overflow: hidden; padding: 9% 10%; }
.book-cover__placeholder::before { content: ''; position: absolute; inset: 4%; border: 1px solid #ffffff60; pointer-events: none; z-index: 2; }
.cover-sauge { background: linear-gradient(145deg, #7f968b 0%, #b5baab 73%, #a4ae9d 100%); color: #f8f1dd; }
.cover-terracotta { background: linear-gradient(165deg, #ad7162 0%, #c98f7c 58%, #b67160 100%); color: #fff4e6; }
.cover-nuit { background: linear-gradient(155deg, #374e62 5%, #566d78 52%, #273d50 100%); color: #f7edcf; }
.cover-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; font-size: clamp(7px, .7vw, 10px); letter-spacing: .2em; font-weight: 700; }
.cover-top__number { letter-spacing: .08em; opacity: .75; font-size: .9em; }
.book-cover__motif { position: absolute; width: 99%; max-height: 63%; object-fit: contain; z-index: 1; top: 13%; left: 1%; opacity: .9; }
.cover-text { position: relative; z-index: 3; margin-top: auto; padding-bottom: 1%; display: flex; flex-direction: column; gap: 16px; text-shadow: 0 1px 6px #00000012; }
.cover-text__title { font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 38px); line-height: 1.02; letter-spacing: -.035em; }
.cover-text__author { font-size: clamp(8px, .75vw, 10px); text-transform: uppercase; font-weight: 700; letter-spacing: .21em; }
.book-card__meta { display: flex; justify-content: space-between; gap: 14px; color: #929189; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 12px; }
.book-card__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(25px, 2.1vw, 32px); letter-spacing: -.04em; line-height: 1.14; margin: 0 0 13px; }
.book-card__description { font-size: 12px; color: #7e8079; line-height: 1.85; margin: 0 0 23px; flex-grow: 1; }
.book-card__links { display: flex; flex-direction: column; border-top: 1px solid #d9d7d0; }
.book-link { display: flex; justify-content: space-between; align-items: center; min-height: 43px; gap: 10px; border-bottom: 1px solid #d9d7d0; font-size: 11px; font-weight: 690; color: #444841; transition: padding .2s ease, color .2s ease; }
.book-link span:last-child { font-size: 19px; line-height: 1; color: var(--accent-strong); font-weight: 400; }
.book-link:hover { color: var(--accent-strong); padding-left: 5px; }
.empty-state { font-size: 14px; color: var(--muted); }

/* À propos & contact */
.about-section { padding: 110px clamp(35px, 5.6vw, 88px) 124px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 100px); max-width: 1450px; margin: auto; }
.about-section__heading .asterisk { display: block; color: var(--accent); font-size: 45px; line-height: .9; margin-bottom: 30px; }
.about-section__heading .overline { color: var(--accent-strong); margin-bottom: 16px; }
.about-section h2, .contact-section h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 4.05vw, 59px); line-height: 1.08; letter-spacing: -.05em; margin: 0; }
.about-section__body { padding-top: 71px; }
.about-section__lead { font-family: var(--font-serif); font-size: clamp(22px, 2.15vw, 31px); line-height: 1.42; letter-spacing: -.025em; margin: 0 0 23px; }
.about-section__body > p:not(.about-section__lead) { font-size: 13px; line-height: 2.05; color: #7c7e77; max-width: 475px; margin: 0; }
.about-section__signoff { display: flex; align-items: center; gap: 17px; margin-top: 34px; font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--accent-strong); }
.signoff-rule { display: inline-block; width: 30px; height: 1px; background: var(--accent); }
.contact-section { background: #e8e4dc; padding: 66px clamp(35px, 5.6vw, 88px); align-items: center; justify-content: space-between; gap: 30px; }
.contact-section:not([hidden]) { display: flex; }
.contact-section .overline { color: var(--accent-strong); margin-bottom: 15px; }
.contact-section h2 { font-size: clamp(35px, 3.6vw, 50px); }
.contact-section p:last-child { font-size: 12px; color: #797a74; line-height: 1.7; margin: 14px 0 0; }
.contact-cta { border: 1px solid #a19c91; padding: 17px 23px; font-size: 12px; font-weight: 700; white-space: nowrap; display: flex; gap: 30px; align-items: center; transition: background .2s ease, color .2s ease; }
.contact-cta:hover { background: var(--ink); color: #fff; }
.contact-cta span { font-size: 19px; font-weight: 400; }
.site-footer { max-width: 1450px; margin: auto; padding: 27px clamp(35px, 5.6vw, 88px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 25px; flex-wrap: wrap; color: #93948d; font-size: 10px; line-height: 1.6; }
.site-footer a { margin-left: 10px; color: #65695f; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1190px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-text__title { font-size: clamp(27px, 3.2vw, 38px); }
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(150px, .7fr); }
  .section-head__aside { display: none; }
}
@media (max-width: 1000px) and (min-width: 821px) {
  .sidebar__inner { padding-left: 24px; padding-right: 24px; }
  .sidebar__portrait-wrap { margin-top: 34px; }
  .site-header { gap: 15px; }
  .wordmark { font-size: 8px; }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(46px, 5.3vw, 57px); }
  .hero__art { aspect-ratio: .78; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: relative; width: 100%; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #ded9d0; }
  .sidebar__inner { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 25px; align-items: center; min-height: 0; padding: 21px 30px 24px; }
  .sidebar__brand { grid-column: 1 / -1; margin-bottom: 21px; }
  .sidebar__portrait-wrap { grid-column: 1; grid-row: 2; margin: 0; }
  .sidebar__portrait { aspect-ratio: 1; }
  .portrait-corner { width: 33px; height: 33px; right: -5px; bottom: -5px; }
  .sidebar__identity { grid-column: 2; grid-row: 2; padding: 0; }
  .sidebar__name { font-size: 31px; margin-bottom: 8px; }
  .sidebar__role { font-size: 9px; margin-bottom: 7px; }
  .sidebar__bio { font-size: 12px; line-height: 1.6; max-width: 500px; }
  .sidebar__bottom { display: none; }
  .site-shell { margin-left: 0; }
  .site-header { padding: 25px 30px; }
  .hero { padding: 55px 30px 75px; gap: 38px; }
  .hero h1 { font-size: clamp(55px, 7.8vw, 75px); }
  .books-section { padding: 75px 30px 85px; }
  .about-section { padding: 85px 30px 93px; }
  .site-footer { padding: 25px 30px; }
  .contact-section { padding: 55px 30px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 18px; }
  .sidebar__inner { grid-template-columns: 78px minmax(0, 1fr); gap: 19px; padding: 19px 21px 23px; }
  .sidebar__brand { margin-bottom: 6px; font-size: 8px; }
  .brand-mark { font-size: 22px; }
  .sidebar__name { font-size: 27px; margin-bottom: 7px; }
  .sidebar__role { font-size: 8px; letter-spacing: .12em; }
  .sidebar__bio { font-size: 10.5px; line-height: 1.55; }
  .site-header { padding: 18px 21px; gap: 10px; }
  .wordmark { display: none; }
  .site-nav { width: 100%; justify-content: space-between; gap: 15px; }
  .site-nav__link { font-size: 12px; }
  .hero { display: block; padding: 56px 21px 74px; }
  .hero__eyebrow { font-size: 9px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(50px, 13.2vw, 71px); margin-bottom: 24px; }
  .hero__intro { font-size: 13px; line-height: 1.85; }
  .hero__art { display: none; }
  .books-section { padding: 64px 21px 83px; }
  .section-head { padding-bottom: 24px; margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(34px, 8.5vw, 44px); }
  .books-grid { grid-template-columns: 1fr; gap: 55px; max-width: 400px; }
  .book-cover { max-width: 400px; aspect-ratio: .76; }
  .cover-text__title { font-size: clamp(35px, 8.8vw, 43px); }
  .cover-top { font-size: 9px; }
  .cover-text__author { font-size: 10px; }
  .book-card__title { font-size: 31px; }
  .book-card__description { font-size: 13px; }
  .about-section { display: block; padding: 79px 21px 84px; }
  .about-section__heading .asterisk { margin-bottom: 24px; }
  .about-section h2 { font-size: clamp(44px, 10vw, 55px); }
  .about-section__body { padding-top: 35px; }
  .about-section__lead { font-size: 26px; }
  .contact-section:not([hidden]) { display: block; }
  .contact-section { padding: 53px 21px; }
  .contact-cta { margin-top: 30px; display: inline-flex; }
  .site-footer { padding: 24px 21px; display: flex; flex-direction: column; gap: 10px; }
}
@media (max-width: 360px) {
  .sidebar__inner { gap: 13px; }
  .sidebar__name { font-size: 24px; }
  .sidebar__bio { font-size: 10px; }
  .hero h1 { font-size: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
