@import url("polices/polices.css");

/* Les couleurs viennent du fichier palettes/palette-*.css chargé avant celui-ci. */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Segoe UI", Arial, sans-serif;
  --large: min(68rem, 100% - 2.5rem);
  --etroit: min(38rem, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lien); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* En-tête commun et menu */
.barre { position: sticky; top: 0; z-index: 10; background: var(--sombre); color: var(--sur-sombre); }
.barre::after {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--vert) 0 33%, var(--jaune) 33% 66%, var(--rouge) 66% 100%);
}
.barre .ligne1 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.25rem .25rem; }
.barre .titre { font-family: var(--serif); font-size: 1.15rem; color: var(--sur-sombre); text-decoration: none; }
.menu { display: flex; gap: .25rem; overflow-x: auto; padding: 0 .75rem .35rem; scrollbar-width: none; }
.menu a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--sur-sombre-doux); text-decoration: none; font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--sur-sombre); }
.menu a[aria-current="page"] { color: var(--sur-sombre); border-bottom-color: var(--accent-sombre); font-weight: 600; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  background: var(--bouton); color: var(--sur-bouton);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  border-radius: 999px; text-decoration: none;
  transition: background-color .2s ease;
}
.bouton:hover { background: var(--bouton-hover); }
.bouton.petit { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }

/* Accroche (accueil) */
.accroche { position: relative; overflow: hidden; background: var(--sombre); color: var(--sur-sombre); padding: 2.5rem 0 3rem; }
.accroche::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/coucher-de-soleil.jpg") center 60% / cover no-repeat;
  opacity: .16;
}
.accroche .contenu { position: relative; width: var(--large); margin: 0 auto; display: grid; gap: 2.25rem; }
.auteure { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--accent-sombre); }
.accroche h1 {
  margin: .35rem 0 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.35rem, 9.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em;
  font-variation-settings: "opsz" 144;
}
.signature-phrase { margin: 1.1rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.25; }
.echo { margin: 1.75rem 0 0; padding-left: 1rem; border-left: 3px solid var(--filet); font-size: 1rem; line-height: 1.55; color: var(--sur-sombre-doux); }
.echo cite { display: block; margin-top: .35rem; font-style: normal; font-size: .875rem; color: var(--lien-sombre); }

.livre { display: grid; gap: 1.1rem; justify-items: start; }
.livre img { width: min(17rem, 72vw); border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.livre p { margin: 0; font-size: 1rem; }
.livre .prix { font-family: var(--serif); font-size: 1.5rem; }
.averti { font-size: .875rem !important; color: var(--sur-sombre-doux); }

/* En-tête des pages intérieures */
.entete-page { background: var(--fond2); padding: 2.5rem 0 2rem; }
.entete-page .bloc-large > p { margin: 0; color: var(--texte-doux); max-width: 38rem; }
.entete-page h1 { margin: 0 0 .6rem; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.05; color: var(--titre); }

/* Sections */
section { padding: 3rem 0; }
.bloc { width: var(--etroit); margin: 0 auto; }
.bloc-large { width: var(--large); margin: 0 auto; }
h2 { margin: 0 0 1.25rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.85rem, 6vw, 2.6rem); line-height: 1.1; color: var(--titre); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 0 0 .3rem; color: var(--titre); }
p { margin: 0 0 1rem; }
.page { white-space: nowrap; font-size: .8125rem; color: var(--texte-doux); }
.role { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--titre); }

.chemin { display: block; width: 100%; height: 56px; color: var(--chemin); }

.qui { background: var(--fond); }
.qui figure { margin: 2rem 0 0; }
.qui figure img { border-radius: 4px; }
figcaption { font-size: .8125rem; color: var(--texte-doux); margin-top: .5rem; }

.ecrire { background: var(--surface); }
.grande-citation { margin: 0; }
.grande-citation p { font-family: var(--serif); font-size: clamp(1.45rem, 5.2vw, 2.1rem); line-height: 1.3; color: var(--texte); margin: 0 0 .9rem; }
.grande-citation .fort { font-weight: 600; color: var(--bouton); font-size: clamp(1.9rem, 7.5vw, 3rem); line-height: 1.1; }
.grande-citation footer { font-size: .95rem; color: var(--texte-doux); }
.mere { margin: 2.25rem 0 0; padding: 1.4rem 1.4rem 1.2rem; background: var(--fond2); border-radius: 4px; }
.mere blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.mere p.contexte { font-size: .95rem; margin: .9rem 0 0; }

.pourquoi { background: var(--surface); padding-top: 0; }
.parole { margin: 0 0 1.5rem; padding: 0 0 0 1.1rem; border-left: 3px solid var(--lagon); font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.parole footer { font-family: var(--sans); font-size: .875rem; color: var(--texte-doux); margin-top: .4rem; }

.bandeau { background: var(--bandeau); color: var(--sur-bandeau); padding: 2.75rem 0; }
.bandeau blockquote { margin: 0 auto; width: var(--etroit); }
.bandeau p { font-family: var(--serif); font-size: clamp(1.5rem, 5.5vw, 2.25rem); line-height: 1.25; margin: 0 0 .8rem; }
.bandeau cite { font-style: normal; font-size: .9rem; }
.bandeau.deux { background: var(--bandeau2); }

.trouver { background: var(--fond); }
.histoires { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; }
.histoires li { padding: 1rem 0; border-top: 1px solid var(--ligne); }
.histoires li:last-child { border-bottom: 1px solid var(--ligne); }
.histoires h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.histoires p { margin: 0; font-size: .98rem; color: var(--texte-doux); }

.extraits { background: var(--surface); }
.extrait { margin: 0 0 2.25rem; }
.extrait blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.extrait figcaption { font-size: .9rem; margin-top: .5rem; }
.extraits .gouache { margin: 0 0 2.5rem; }

.video { background: var(--sombre); color: var(--sur-sombre); }
.video h2 { color: var(--sur-sombre); }
.video video { width: min(24rem, 100%); border-radius: 6px; background: #000; }

.avis { background: var(--fond2); }
.vide { border: 2px dashed var(--ligne); border-radius: 6px; padding: 2rem 1.25rem; text-align: center; color: var(--texte-doux); background: var(--surface); }

.dernier-mot { background: var(--sombre); color: var(--sur-sombre); text-align: center; padding: 3rem 0 2.75rem; }
.dernier-mot p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.2; margin: 0 auto .8rem; width: var(--etroit); }
.dernier-mot cite { font-style: normal; font-size: .9rem; color: var(--lien-sombre); }

.commander { background: var(--surface); }
.offre { display: grid; gap: 1.5rem; }
.offre .prix-grand { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--bouton); margin: 0 0 .5rem; }
.etapes { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.etapes li { margin-bottom: .55rem; }
.note { font-size: .9rem; color: var(--texte-doux); }
.contact { margin-top: 1.5rem; padding: 1.25rem; background: var(--fond2); border-radius: 6px; }

/* Accueil : les trois portes */
.portes { background: var(--fond); }
.portes ul { list-style: none; margin: 0; padding: 0; display: grid; }
.portes li { border-top: 1px solid var(--ligne); }
.portes li:last-child { border-bottom: 1px solid var(--ligne); }
.portes a { display: block; padding: 1.1rem 0; text-decoration: none; color: var(--texte); }
.portes a strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--titre); }
.portes a span { color: var(--texte-doux); font-size: .98rem; }
.portes a:hover strong { text-decoration: underline; }

/* Bas de page : appel à commander + suite */
.suite { background: var(--fond2); padding: 2.25rem 0; }
.suite .bloc-large { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.suite a.lien-suite { font-weight: 600; }

footer.pied { background: var(--sombre2); color: var(--sur-sombre); padding: 2rem 1.25rem; font-size: .875rem; text-align: center; }
footer.pied p { margin: 0 0 .4rem; }

@media (min-width: 56rem) {
  body { font-size: 1.125rem; }
  .barre .ligne1 { padding: .6rem 2.5rem .2rem; }
  .menu { padding: 0 2rem .3rem; }
  .accroche { padding: 5rem 0 5.5rem; }
  .accroche .contenu { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 4rem; }
  .livre { justify-items: center; text-align: center; }
  .livre img { width: 21rem; }
  section { padding: 4.5rem 0; }
  .entete-page { padding: 4rem 0 3rem; }
  .qui .bloc-large { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
  .qui figure { margin: 0; position: sticky; top: 8rem; }
  .ecrire .bloc-large { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
  .mere { margin: 0; }
  .histoires { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .histoires li:nth-last-child(2) { border-bottom: 1px solid var(--ligne); }
  .extraits .bloc-large { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
  .video .bloc-large { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .offre { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .portes ul { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .portes li, .portes li:last-child { border-bottom: 1px solid var(--ligne); }
}

/* Titre de page posé dans une section (Pourquoi j'écris, Commander) */
.h1-page { margin: 0 0 1.25rem; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.05; color: var(--titre); }
