/* Vanelle Richie — site d'autrice
   Concept : une bibliothèque de nuit. Fond bleu nuit, lumière dorée comme sur les couvertures,
   les livres posés comme des objets précieux. Thème sombre assumé, identique pour tous. */
:root {
  --nuit: #0e1220;
  --nuit-2: #141a2b;
  --nuit-3: #1b2236;
  --ivoire: #f1e9da;
  --ivoire-doux: #bdb4a4;
  --or: #c9a45c;
  --or-clair: #e6cd96;
  --carmin: #b3263a;
  --trait: rgba(201, 164, 92, .24);
  --ombre: rgba(0, 0, 0, .55);
  --f-titre: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-texte: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mesure: 38rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--ivoire);
  font-family: var(--f-texte);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-clair); text-decoration-color: var(--trait); text-underline-offset: .25em; }
a:hover { color: var(--ivoire); text-decoration-color: var(--or); }
:focus-visible { outline: 1px solid var(--or-clair); outline-offset: 4px; }
p { margin: 0; }
strong { font-weight: 500; }

.enveloppe { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* Typographie */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
.label { font-family: var(--f-texte); font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--or); }
.italique { font-family: var(--f-titre); font-style: italic; }
.doux { color: var(--ivoire-doux); }

/* Ornement : brin de feuillage entre deux filets, comme sur la couverture */
.ornement { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--or); }
.ornement::before, .ornement::after { content: ""; height: 1px; width: min(5rem, 18vw); background: linear-gradient(90deg, transparent, var(--or)); }
.ornement::after { background: linear-gradient(90deg, var(--or), transparent); }
.ornement svg { width: 1.1rem; height: 1.1rem; }
.ornement.gauche { justify-content: flex-start; }
.ornement.gauche::before { display: none; }

/* En-tête */
.entete { position: relative; z-index: 5; }
.entete .enveloppe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; }
.marque { font-family: var(--f-titre); font-size: 1.35rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire); text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-doux); text-decoration: none; padding-block: .35rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or-clair); box-shadow: inset 0 -1px 0 var(--or); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.6rem;
  font-family: var(--f-texte); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--or); line-height: 1.2; }
.bouton-or { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: var(--nuit); }
.bouton-or:hover { background: var(--ivoire); border-color: var(--ivoire); color: var(--nuit); }
.bouton-fil { color: var(--or-clair); background: transparent; }
.bouton-fil:hover { background: rgba(201, 164, 92, .1); color: var(--ivoire); }
.bouton svg { width: .9rem; height: .9rem; }

/* Livre-objet : couverture avec tranche et ombre portée */
.livre-objet { position: relative; aspect-ratio: 2 / 3; max-width: 100%; }
.livre-objet img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px 3px 3px 1px;
  box-shadow: -1px 0 0 rgba(255,255,255,.08) inset, 0 2px 4px var(--ombre), 0 30px 60px -20px var(--ombre), 0 50px 90px -40px rgba(201,164,92,.25); }
.livre-objet::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; border-radius: 1px 0 0 1px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 40%, rgba(0,0,0,0)); pointer-events: none; }

/* ACCUEIL — ouverture */
.ouverture { position: relative; overflow: hidden; }
.ouverture::before { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(226, 190, 120, .20), transparent 70%); pointer-events: none; }
.ouverture .enveloppe { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); }
.ouverture .texte { display: grid; gap: 1.75rem; min-width: 0; }
.ouverture h1 { font-size: clamp(3.6rem, 9.5vw, 7.5rem); font-weight: 300; line-height: .92; }
.ouverture h1 em { display: block; font-style: italic; color: var(--or-clair); }
.ouverture .phrase { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.4; max-width: 30rem; }
.ouverture .intro { color: var(--ivoire-doux); max-width: 30rem; }

.eventail { position: relative; height: clamp(24rem, 46vw, 36rem); }
.eventail > a { position: absolute; width: clamp(10.5rem, 22vw, 17rem); }
.eventail .l1 { left: 4%; top: 12%; transform: rotate(-6deg); z-index: 1; }
.eventail .l2 { right: 4%; top: 2%; transform: rotate(4deg); z-index: 2; }
.eventail > a { display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }

/* Bandeau citation */
.bandeau { border-block: 1px solid var(--trait); background: var(--nuit-2); }
.bandeau .enveloppe { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.bandeau blockquote { margin: 0; font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.25; max-width: 50rem; text-wrap: balance; }
.bandeau cite { font-style: normal; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tete { display: grid; gap: 1.25rem; justify-items: center; text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-tete h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 300; }

/* Livre mis en avant (accueil, catalogue) */
.vitrine { display: grid; gap: clamp(5rem, 10vw, 8rem); }
.vedette { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.vedette:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
.vedette:nth-child(even) .couv { order: 2; }
.vedette .couv { position: relative; }
.vedette .couv::before { content: ""; position: absolute; inset: -18%; background: radial-gradient(closest-side, rgba(226,190,120,.16), transparent); z-index: 0; }
.vedette .couv a { position: relative; z-index: 1; display: block; }
.vedette .corps { display: grid; gap: 1.4rem; min-width: 0; max-width: var(--mesure); }
.vedette h3, .vedette h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 400; }
.vedette h3 a, .vedette h2 a { color: var(--ivoire); text-decoration: none; }
.vedette h3 a:hover, .vedette h2 a:hover { color: var(--or-clair); }
.vedette .accroche { font-size: 1.125rem; color: var(--ivoire-doux); }
.vedette .numero { font-family: var(--f-titre); font-style: italic; color: var(--or); font-size: 1.1rem; }

/* Autrice (accueil) */
.portrait { background: var(--nuit-2); border-top: 1px solid var(--trait); }
.portrait .enveloppe { display: grid; gap: 1.75rem; justify-items: center; text-align: center; padding-block: clamp(4rem, 9vw, 7rem); }
.portrait h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 300; }
.portrait .texte { display: grid; gap: 1.1rem; max-width: var(--mesure); font-size: 1.125rem; }
.portrait .foi { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.35; color: var(--or-clair); max-width: 34rem; }

/* PAGE LIVRE */
.scene { position: relative; overflow: hidden; border-bottom: 1px solid var(--trait); }
.scene .flou { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(48px) saturate(1.1); opacity: .45; transform: scale(1.1); }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,32,.55) 0%, rgba(14,18,32,.85) 60%, var(--nuit) 100%); }
.scene .enveloppe { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem); }
.scene .corps { display: grid; gap: 1.5rem; min-width: 0; }
.scene h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 400; }
.scene .auteur { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivoire-doux); }
.scene .auteur a { color: var(--ivoire); text-decoration: none; border-bottom: 1px solid var(--or); }
.scene .accroche { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.4; max-width: 34rem; color: var(--ivoire); }

.lecture { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 3.5rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.lecture > * { width: 100%; max-width: var(--mesure); }
.lecture .resume { display: grid; gap: 1.3rem; font-size: 1.125rem; }
.lecture .resume p:first-child::first-letter { font-family: var(--f-titre); float: left; font-size: 4.2em; line-height: .8; padding: .08em .12em 0 0; color: var(--or-clair); }
.lecture h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 1.25rem; }
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--trait); }
.themes li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .5rem; padding-block: 1rem; border-bottom: 1px solid var(--trait); }
.themes .n { font-family: var(--f-titre); font-style: italic; color: var(--or); font-size: 1.2rem; line-height: 1.5; font-variant-numeric: lining-nums; }
.public { font-size: 1.125rem; color: var(--ivoire-doux); }
.sentence { font-family: var(--f-titre); font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 400; line-height: 1.25; text-align: center; text-wrap: balance; }
.appel { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }

.notice { border: 1px solid var(--trait); padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--nuit-2); }
.notice h2 { font-family: var(--f-texte); font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--or); margin-bottom: 1.25rem; }
.notice dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .65rem 2rem; margin: 0; font-size: .95rem; }
.notice dt { color: var(--ivoire-doux); }
.notice dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.autre { border-top: 1px solid var(--trait); background: var(--nuit-2); }
.autre .enveloppe { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 7vw, 4.5rem); max-width: 50rem; }
.autre .corps { display: grid; gap: .9rem; min-width: 0; }
.autre h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.autre h2 a { color: var(--ivoire); text-decoration: none; }

/* Fil d'Ariane */
.ariane { position: relative; z-index: 1; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivoire-doux); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ariane li + li::before { content: "·"; margin-right: .45rem; color: var(--or); }
.ariane a { color: var(--ivoire-doux); text-decoration: none; }
.ariane a:hover { color: var(--or-clair); }
.ariane [aria-current] { color: var(--ivoire); }

/* PAGE AUTRICE */
.page-autrice .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 6rem); }
.page-autrice .corps { display: grid; gap: 1.75rem; min-width: 0; }
.page-autrice h1 { font-size: clamp(3.2rem, 8vw, 6rem); font-weight: 300; line-height: .95; }
.page-autrice .texte { display: grid; gap: 1.1rem; font-size: 1.125rem; max-width: var(--mesure); }
.page-autrice .foi { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.35; color: var(--or-clair); border-left: 1px solid var(--or); padding-left: 1.25rem; }
.cadre-photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid var(--trait); padding: .75rem; }
.cadre-photo img { width: 100%; height: 100%; object-fit: cover; }
.cadre-photo .initiales { height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--nuit-3), var(--nuit-2)); font-family: var(--f-titre); font-style: italic; font-size: clamp(4rem, 12vw, 7rem); color: var(--or); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 26rem; }
.duo a { display: grid; gap: .75rem; text-decoration: none; color: var(--ivoire); font-family: var(--f-titre); font-size: 1.1rem; line-height: 1.25; }
.duo a:hover { color: var(--or-clair); }

/* PAGE CATALOGUE / CONTACT */
.titre-page { display: grid; gap: 1.25rem; justify-items: center; text-align: center; padding-block: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem); }
.titre-page h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 300; }
.carte-contact { max-width: 34rem; margin-inline: auto; border: 1px solid var(--trait); background: var(--nuit-2); padding: clamp(1.75rem, 5vw, 2.75rem); display: grid; gap: 1rem; text-align: center; justify-items: center; margin-bottom: 5rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); }
.pied .enveloppe { display: grid; gap: 2rem; justify-items: center; text-align: center; padding-block: 3.5rem; }
.pied .marque { font-size: 1.2rem; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; }
.pied nav a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivoire-doux); text-decoration: none; }
.pied nav a:hover { color: var(--or-clair); }
.pied small { font-size: .78rem; color: var(--ivoire-doux); letter-spacing: .06em; }

/* Mobile */
@media (max-width: 52rem) {
  .ouverture .enveloppe { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .ouverture .texte { order: 2; }
  .eventail { height: clamp(19rem, 82vw, 26rem); max-width: 28rem; width: 100%; margin-inline: auto; }
  .eventail > a { width: clamp(9rem, 42vw, 12.5rem); }
  .vedette, .vedette:nth-child(even) { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .vedette:nth-child(even) .couv { order: 0; }
  .vedette .couv { width: min(15rem, 70vw); }
  .vedette .actions, .scene .actions { justify-content: center; }
  .vedette .ornement.gauche { justify-content: center; }
  .vedette .ornement.gauche::before { display: block; }
  .scene .enveloppe { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .scene .livre-objet { width: min(15rem, 66vw); }
  .scene .accroche { margin-inline: auto; }
  .page-autrice .enveloppe { grid-template-columns: minmax(0, 1fr); }
  .page-autrice .cadre-photo { max-width: 16rem; }
  .autre .enveloppe { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 30rem) {
  .entete .enveloppe { justify-content: center; }
  .nav { justify-content: center; gap: .25rem 1.1rem; }
  .actions { width: 100%; }
  .actions .bouton { flex: 1 1 100%; }
  .notice dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .notice dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .bouton, .nav a { transition: color .2s, background .2s, border-color .2s; }
  .eventail .l1:hover { transform: translateY(-8px) rotate(-6deg); }
  .eventail .l2:hover { transform: translateY(-8px) rotate(4deg); }
  .eventail .l1 { animation: poser-g 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
  .eventail .l2 { animation: poser-d 1.1s .12s cubic-bezier(.2,.7,.2,1) backwards; }
  @keyframes poser-g { from { transform: translateY(24px) rotate(-2deg); opacity: .35; } to { transform: rotate(-6deg); opacity: 1; } }
  @keyframes poser-d { from { transform: translateY(24px) rotate(0deg); opacity: .35; } to { transform: rotate(4deg); opacity: 1; } }
}
