/* Plume sans frontière — feuille de style principale */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }

:root {
  --papier: #faf6ee;
  --papier-2: #f3ecdf;
  --carte: #fffdf8;
  --encre: #1f1b16;
  --encre-douce: #4a4239;
  --trait: #e2d7c3;
  --or: #b8892f;          /* décor uniquement */
  --or-texte: #7d5a14;    /* or lisible sur fond clair (contraste AA) */
  --nuit: #0f0d0a;
  --nuit-2: #1b1712;
  --bordeaux: #7a2e3a;
  --titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rayon: 6px;
  --ombre: 0 1px 2px rgba(31,27,22,.06), 0 8px 24px rgba(31,27,22,.08);
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--texte); font-size: 1.125rem; line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-texte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordeaux); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.15; color: var(--encre); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--rayon); }
.lien-evitement:focus { top: 1rem; color: #fff; }

.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.etroit { width: min(100% - 32px, 760px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--teinte { background: var(--papier-2); }
.surtitre { font-family: var(--texte); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: var(--or-texte); margin-bottom: .6rem; display: block; }
.ornement { display: flex; align-items: center; gap: .8rem; color: var(--or); margin: 0 auto 1.2rem; justify-content: center; }
.ornement::before, .ornement::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .7; }
.entete-section { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.entete-section p { color: var(--encre-douce); }

/* ---------- En-tête ---------- */
.site-entete { background: var(--carte); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.site-entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.marque { text-decoration: none; color: var(--encre); display: flex; flex-direction: column; line-height: 1.05; }
.marque__nom { font-family: var(--titre); font-size: 1.65rem; font-weight: 600; }
.marque__sous { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte); font-weight: 600; margin-top: .2rem; }
.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav-principale a { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--encre); font-size: 1rem; border-radius: var(--rayon); }
.nav-principale a:hover { background: var(--papier-2); color: var(--encre); }
.nav-principale a[aria-current="page"] { color: var(--or-texte); box-shadow: inset 0 -2px 0 var(--or); border-radius: 0; }
.bouton-menu { display: none; background: none; border: 1px solid var(--trait); border-radius: var(--rayon); padding: .5rem .8rem; font: inherit; font-size: 1rem; color: var(--encre); cursor: pointer; }
@media (max-width: 960px) {
  .bouton-menu { display: inline-flex; align-items: center; gap: .5rem; }
  .nav-principale { position: absolute; left: 0; right: 0; top: 100%; background: var(--carte); border-bottom: 1px solid var(--trait); display: none; }
  .nav-principale.ouvert { display: block; }
  .nav-principale ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .nav-principale a { padding: .75rem .5rem; border-bottom: 1px solid var(--papier-2); }
  .nav-principale a[aria-current="page"] { box-shadow: none; font-weight: 600; }
}

/* ---------- Bandeau d'accueil (logo) ---------- */
.bandeau { background: radial-gradient(ellipse at 50% 40%, var(--nuit-2), var(--nuit) 70%); color: #f5ead2; text-align: center; padding: 0 0 clamp(2.5rem, 6vw, 4rem); }
.bandeau__logo { max-width: 1100px; margin: 0 auto; }
.bandeau__logo img { width: 100%; height: auto; }
.bandeau__logo-vide { aspect-ratio: 16/9; max-width: 900px; margin: 2rem auto; border: 1px dashed rgba(245,234,210,.4); display: grid; place-items: center; color: rgba(245,234,210,.7); font-size: .95rem; }
.bandeau h1 { color: #f5ead2; margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: .02em; }
.bandeau h1 span { display: block; font-family: var(--texte); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: #d9b45f; margin-top: .4rem; }
.citation-accueil { font-family: var(--titre); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.35; max-width: 860px; margin: 1.6rem auto 0; padding: 0 16px; color: #fbf3e2; }
.citation-accueil::before, .citation-accueil::after { color: #d9b45f; }
.citation-accueil::before { content: "« "; } .citation-accueil::after { content: " »"; }
.bandeau .boutons { justify-content: center; margin-top: 2rem; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid var(--encre); color: var(--encre); background: transparent; transition: background .2s, color .2s, transform .2s; cursor: pointer; font-family: var(--texte); }
.bouton:hover { background: var(--encre); color: var(--papier); transform: translateY(-1px); }
.bouton--plein { background: var(--encre); color: var(--papier); }
.bouton--plein:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.bouton--or { background: #d9b45f; border-color: #d9b45f; color: var(--nuit); }
.bouton--or:hover { background: #f0cf7f; border-color: #f0cf7f; color: var(--nuit); }
.bouton--clair { border-color: rgba(245,234,210,.6); color: #f5ead2; }
.bouton--clair:hover { background: #f5ead2; color: var(--nuit); }

/* ---------- Introduction ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro__image img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.intro__texte p { font-size: 1.2rem; color: var(--encre-douce); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } .intro__image { max-width: 380px; margin: 0 auto; } }

/* ---------- Grille de livres ---------- */
.grille-livres { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.2rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.carte-livre { display: flex; flex-direction: column; }
.carte-livre a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.carte-livre__couv { position: relative; background: transparent; border-radius: 3px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 2 / 3; }
.carte-livre__couv img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; box-shadow: 0 6px 18px rgba(31,27,22,.25); transition: transform .35s ease; }
.carte-livre a:hover .carte-livre__couv img { transform: translateY(-4px); }
.carte-livre__titre { font-family: var(--titre); font-size: 1.3rem; font-weight: 600; margin: .9rem 0 .15rem; line-height: 1.2; }
.carte-livre__sous { font-size: .95rem; color: var(--encre-douce); font-style: italic; margin: 0 0 .4rem; }
.carte-livre__meta { font-size: .82rem; color: var(--or-texte); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: auto; }
.pastille { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--bordeaux); color: #fff; }
.pastille--avenir { background: var(--encre); }
.carte-livre .pastille { position: absolute; top: .6rem; left: .6rem; z-index: 2; }
.couv-a-venir { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 1.2rem; background: linear-gradient(160deg, var(--nuit-2), var(--nuit)); color: #f5ead2; font-family: var(--titre); font-size: 1.25rem; line-height: 1.25; border: 1px solid #3a3226; }
.couv-a-venir small { display: block; font-family: var(--texte); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #d9b45f; margin-top: .8rem; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filtres button { font: inherit; font-size: .98rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); color: var(--encre); cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.filtres button:hover { border-color: var(--encre); }
.compteur { text-align: center; color: var(--encre-douce); font-size: .95rem; margin: -1.5rem 0 2rem; }

/* ---------- Mise en avant ---------- */
.vedette { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vedette__couv img { box-shadow: 0 18px 40px rgba(31,27,22,.28); border-radius: 2px; }
.vedette__texte .resume { font-size: 1.15rem; color: var(--encre-douce); }
@media (max-width: 760px) { .vedette { grid-template-columns: 1fr; } .vedette__couv { max-width: 260px; margin: 0 auto; } }

/* ---------- Fiche livre ---------- */
.fil-ariane { font-size: .92rem; color: var(--encre-douce); padding-top: 1.5rem; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.fil-ariane li + li::before { content: "›"; margin-right: .4rem; color: var(--or); }
.fiche { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: 2rem 0 3rem; }
.fiche__couv { position: sticky; top: 96px; }
.fiche__couv img { box-shadow: 0 18px 44px rgba(31,27,22,.3); border-radius: 2px; width: 100%; }
.fiche__couv .couv-a-venir { aspect-ratio: 2/3; font-size: 1.6rem; }
.fiche h1 { margin-bottom: .2rem; }
.fiche .sous-titre { font-family: var(--titre); font-style: italic; font-size: 1.6rem; color: var(--encre-douce); margin: 0 0 1rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.etiquettes li { font-size: .85rem; border: 1px solid var(--trait); padding: .2rem .7rem; border-radius: 999px; background: var(--carte); }
.avertissement { border-left: 4px solid var(--bordeaux); background: #f8ebe9; padding: 1rem 1.2rem; border-radius: 0 var(--rayon) var(--rayon) 0; margin: 0 0 1.5rem; font-size: 1rem; }
.biblio { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-size: 1rem; margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.biblio dt { color: var(--encre-douce); }
.biblio dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .biblio { grid-template-columns: 1fr; } .biblio dd { margin-bottom: .5rem; } }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; } .fiche__couv { position: static; max-width: 300px; margin: 0 auto; } }

.ou-trouver { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ou-trouver a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none; color: var(--encre); font-weight: 600; transition: border-color .2s, transform .2s; }
.ou-trouver a:hover { border-color: var(--or); transform: translateX(3px); }
.ou-trouver a span[aria-hidden] { color: var(--or-texte); }

.extrait { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.6rem); margin: 0 0 1.5rem; }
.extrait h3 { margin-bottom: 1rem; }
.extrait__texte { font-family: var(--titre); font-size: 1.35rem; line-height: 1.65; white-space: normal; }
.extrait__texte p { margin-bottom: 1em; }
details.extrait summary { cursor: pointer; font-weight: 600; }
.autre-edition { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--trait); }
.autre-edition img { box-shadow: var(--ombre); }

.bloc { margin-top: 3rem; }
.bloc > h2 { font-size: 1.9rem; border-bottom: 1px solid var(--trait); padding-bottom: .5rem; margin-bottom: 1.2rem; }

/* ---------- Biographie ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.bio__portrait { background: linear-gradient(180deg, var(--papier-2), var(--carte)); border-radius: var(--rayon); overflow: hidden; }
.bio__texte { font-size: 1.2rem; }
.bio__texte p:first-of-type::first-letter { font-family: var(--titre); float: left; font-size: 4.2rem; line-height: .85; padding: .3rem .5rem 0 0; color: var(--or-texte); }
.portrait-vide { aspect-ratio: 3/4; display: grid; place-items: center; border: 1px dashed var(--trait); color: var(--encre-douce); }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--encre-douce); font-style: italic; margin-top: .7rem; text-align: center; }
.duo { max-width: 420px; margin: 3rem auto 0; }
@media (max-width: 820px) { .bio { grid-template-columns: 1fr; } .bio__portrait { max-width: 380px; margin: 0 auto; } }

/* ---------- Articles, événements, médias ---------- */
.liste-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; height: 100%; }
.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte__image { aspect-ratio: 16/10; background: var(--papier-2); overflow: hidden; }
.carte__image img { width: 100%; height: 100%; object-fit: cover; }
.carte__corps { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.carte__corps h3 { font-size: 1.45rem; margin: 0; }
.carte__corps h3 a { color: var(--encre); text-decoration: none; }
.carte__corps h3 a::after { content: ""; position: absolute; inset: 0; }
.carte { position: relative; }
.carte__meta { font-size: .85rem; color: var(--or-texte); font-weight: 600; letter-spacing: .04em; }
.carte__corps p { font-size: 1rem; color: var(--encre-douce); margin: 0; }

.evenement { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; padding: 1.3rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); position: relative; }
.evenement__date { text-align: center; border-right: 1px solid var(--trait); padding-right: 1rem; font-family: var(--titre); line-height: 1; }
.evenement__date .jour { font-size: 2.6rem; font-weight: 600; display: block; }
.evenement__date .mois { text-transform: uppercase; font-family: var(--texte); font-size: .78rem; letter-spacing: .12em; color: var(--or-texte); font-weight: 600; }
.evenement__date .an { display: block; font-family: var(--texte); font-size: .8rem; color: var(--encre-douce); margin-top: .3rem; }
.evenement h3 { font-size: 1.4rem; margin: 0 0 .3rem; }
.evenement h3 a { color: var(--encre); text-decoration: none; }
.evenement h3 a::after { content: ""; position: absolute; inset: 0; }
.evenement p { margin: 0; font-size: 1rem; color: var(--encre-douce); }
.liste-evenements { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.vide { text-align: center; color: var(--encre-douce); padding: 2rem 1rem; border: 1px dashed var(--trait); border-radius: var(--rayon); background: var(--carte); }

.article-corps { font-size: 1.18rem; }
.article-corps img { border-radius: var(--rayon); margin: 1.5rem 0; }
.article-corps blockquote { font-family: var(--titre); font-style: italic; font-size: 1.4rem; border-left: 3px solid var(--or); margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; color: var(--encre-douce); }
.chapeau { font-size: 1.3rem; color: var(--encre-douce); font-family: var(--titre); font-style: italic; }
.video { position: relative; aspect-ratio: 16/9; margin: 1.5rem 0; background: var(--nuit); border-radius: var(--rayon); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.infos-pratiques { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.infos-pratiques dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.infos-pratiques dt { color: var(--encre-douce); }
.infos-pratiques dd { margin: 0; font-weight: 600; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 1.1rem; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.4rem); }
.formulaire label { font-weight: 600; display: block; margin-bottom: .3rem; }
.formulaire input, .formulaire textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 1px solid #c9bba2; border-radius: var(--rayon); background: #fff; color: var(--encre); }
.formulaire textarea { min-height: 180px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--or-texte); outline: 2px solid rgba(184,137,47,.35); }
.formulaire .aide { font-size: .9rem; color: var(--encre-douce); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-formulaire { padding: 1rem 1.2rem; border-radius: var(--rayon); font-weight: 600; }
.message-formulaire.ok { background: #eaf3e6; color: #24481b; }
.message-formulaire.erreur { background: #f8e6e4; color: #7a1f16; }

/* ---------- Pied de page ---------- */
.site-pied { background: var(--nuit); color: #d8ccb6; padding: 3rem 0 2rem; margin-top: 0; font-size: 1rem; }
.site-pied a { color: #ecd497; }
.site-pied a:hover { color: #fff; }
.site-pied .conteneur { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-pied h2 { color: #f5ead2; font-size: 1.5rem; }
.site-pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-pied .bas { grid-column: 1 / -1; border-top: 1px solid #2f2920; padding-top: 1.2rem; font-size: .9rem; color: #a99d88; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .site-pied .conteneur { grid-template-columns: 1fr; } }

.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 2rem; font-size: 1.8rem; }
.a-completer { background: #fff3cd; padding: 0 .3rem; border-radius: 3px; }

/* Apparition douce */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.apparait.visible { opacity: 1; transform: none; }
.no-js .apparait { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media print { .site-entete, .site-pied, .filtres, .boutons { display: none; } body { background: #fff; } }
