/* Elisabeth Swen — feuille de styles du site */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
}

:root {
  --porcelaine: #F6F2F4;   /* fond */
  --voile: #ECE3EA;        /* surfaces secondaires, vitrine */
  --encre: #2F2233;        /* texte */
  --prune: #6E3F68;        /* boutons, liens */
  --prune-fonce: #57304F;  /* survol */
  --lavande: #8C76A6;      /* lotus, détails */
  --brume: #665A69;        /* texte secondaire */

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --t-xs: 0.84rem;
  --t-s: 0.95rem;
  --t-m: 1.1875rem;   /* 19 px */
  --t-l: 1.5rem;
  --t-xl: 2rem;
  --t-xxl: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);

  --page: 74rem;
  --gouttiere: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--porcelaine);
  color: var(--encre);
  font-family: var(--serif);
  font-size: var(--t-m);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--prune); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--prune-fonce); }

:focus-visible { outline: 2px solid var(--prune); outline-offset: 3px; border-radius: 2px; }

.enveloppe { max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); }

.lotus { color: var(--lavande); display: inline-block; }
.lotus svg { width: 100%; height: auto; display: block; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- En-tête ---------- */

.entete { padding: 1.4rem 0; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.signature {
  display: inline-flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--encre);
  font-weight: 440; font-size: 1.2rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1;
}
.signature:hover { color: var(--encre); }
.signature .lotus { width: 2.3rem; }
.signature .lotus svg { stroke-width: 2.6; }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.menu a { color: var(--encre); text-decoration: none; font-size: var(--t-s); padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--prune); color: var(--encre); }

/* ---------- Vitrine « À offrir » ---------- */

.vitrine { padding: clamp(1.5rem, 4vw, 3.5rem) 0 0; }

.vitrine-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }

.vitrine h1 {
  margin: 0; font-weight: 330; font-size: var(--t-xxl); line-height: 1.04; letter-spacing: -0.02em;
  max-width: 18ch; text-wrap: balance;
}
.vitrine .chapo { margin: 1.1rem 0 0; color: var(--brume); font-size: var(--t-l); line-height: 1.45; max-width: 40ch; font-style: italic; font-weight: 340; }

.pays { border: 0; margin: 0; padding: 0; }
.pays legend { font-size: var(--t-s); color: var(--brume); margin-bottom: 0.45rem; padding: 0; }
.pays-choix { display: inline-flex; border: 1px solid #CDBFCB; border-radius: 999px; padding: 3px; background: #FBF9FA; }
.pays-choix input { position: absolute; opacity: 0; pointer-events: none; }
.pays-choix label { cursor: pointer; padding: 0.35rem 0.95rem; border-radius: 999px; font-size: var(--t-s); line-height: 1.3; color: var(--encre); }
.pays-choix input:checked + label { background: var(--encre); color: var(--porcelaine); }
.pays-choix input:focus-visible + label { outline: 2px solid var(--prune); outline-offset: 2px; }

.etagere {
  position: relative; list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.5vw, 2.5rem);
}
.livre .accroche { align-self: start; }
/* le plan de la vitrine : une bande sur laquelle les livres sont posés */
.etagere::before {
  content: ""; position: absolute; z-index: 0; left: calc(-1 * var(--gouttiere)); right: calc(-1 * var(--gouttiere));
  top: var(--sol, 18rem); bottom: -2.5rem; background: var(--voile); border-radius: 0;
}

.livre { position: relative; z-index: 1; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.livre-image { display: block; margin: 0 -18% 0 -4%; }
.livre-image img { width: 100%; }

.livre h2 { margin: 1rem 0 0.25rem; font-size: var(--t-l); font-weight: 450; line-height: 1.2; letter-spacing: -0.005em; }
.livre h2 a { color: var(--encre); text-decoration: none; }
.livre h2 a:hover { text-decoration: underline; }
.livre .accroche { margin: 0 0 1.1rem; color: var(--brume); font-size: var(--t-s); line-height: 1.5; }
.livre .actions { display: contents; }
.livre .bouton { justify-self: start; align-self: end; }
.livre .format { margin-top: 0.55rem; }

.bouton {
  display: inline-block; background: var(--prune); color: #fff; text-decoration: none;
  padding: 0.62rem 1.15rem; border-radius: 4px; font-size: var(--t-s); line-height: 1.2; font-weight: 500;
  border: 0; cursor: pointer; font-family: inherit;
}
.bouton:hover { background: var(--prune-fonce); color: #fff; }
.format { font-size: var(--t-xs); color: var(--brume); line-height: 1.55; }
.format a { color: var(--prune); }

/* ---------- Familles ---------- */

.section { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.section > .enveloppe > h2 { margin: 0 0 0.6rem; font-weight: 330; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.015em; line-height: 1.1; }
.section .intro { margin: 0 0 2.5rem; color: var(--brume); max-width: 40ch; }

.familles { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9CDD6; }
.famille { border-bottom: 1px solid #D9CDD6; }
.famille a {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  padding: 1.6rem 0; color: var(--encre); text-decoration: none;
}
.famille h3 { margin: 0; font-style: italic; font-weight: 350; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; }
.famille p { margin: 0; color: var(--brume); font-size: var(--t-s); max-width: 38ch; }
.famille .titres { display: block; margin-top: 0.35rem; color: var(--encre); font-size: var(--t-xs); }
.famille .pile { display: flex; justify-content: flex-end; height: 11rem; }
.famille .pile img { height: 100%; width: auto; margin-left: -3.4rem; }
.famille .pile img:first-child { margin-left: 0; }
.famille a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

/* ---------- À propos ---------- */

.apropos .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.apropos .lotus { width: min(100%, 22rem); justify-self: center; }
.apropos .lotus svg { stroke-width: 1.1; }
.apropos h2 { margin: 0 0 1rem; text-wrap: balance; font-weight: 330; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.015em; line-height: 1.1; }
.apropos p { margin: 0 0 1rem; max-width: 60ch; line-height: 1.7; }

/* ---------- Lettre ---------- */

.lettre { margin-top: clamp(4rem, 8vw, 7rem); background: var(--voile); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.lettre .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.lettre h2 { margin: 0 0 0.6rem; font-weight: 350; font-style: italic; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; }
.lettre p { margin: 0; color: var(--brume); max-width: 36ch; }
.lettre form { display: grid; gap: 0.9rem; }
.lettre .ligne { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.lettre label[for="courriel"] { font-size: var(--t-s); }
.lettre input[type="email"] {
  flex: 1 1 16rem; min-width: 0; font: inherit; font-size: var(--t-m); padding: 0.6rem 0.8rem;
  border: 1px solid #BFAFBC; border-radius: 4px; background: #fff; color: var(--encre);
}
.lettre .consentement { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-xs); color: var(--brume); line-height: 1.5; }
.lettre .consentement input { margin-top: 0.25rem; accent-color: var(--prune); }

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: #E8DEE6; padding: 3rem 0 2rem; font-size: var(--t-s); }
.pied a { color: #F1E8EF; }
.pied .enveloppe { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.pied .signature { color: #F6F2F4; font-size: 1.05rem; }
.pied .signature .lotus { color: #B9A7CB; width: 2rem; }
.pied h2 { font-size: var(--t-s); font-weight: 500; margin: 0 0 0.6rem; color: #CBBBC8; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid #4A3C4E; padding-top: 1.2rem; margin-top: 1rem; color: #B7A8B5; font-size: var(--t-xs); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Écrans moyens et téléphones ---------- */

@media (max-width: 62rem) {
  .vitrine-tete { grid-template-columns: 1fr; }
  .etagere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 4vw, 2rem); }
  .etagere::before { display: none; }
  .livre { background: var(--voile); padding: 0.5rem 1rem 1.2rem; border-radius: 6px; }
  .livre-image { margin: 0 -14% 0 -2%; }
  .famille a { grid-template-columns: 1fr auto; gap: 0.6rem 1.5rem; }
  .famille .texte { grid-column: 1; }
  .famille h3 { grid-column: 1; }
  .famille .pile { grid-column: 2; grid-row: 1 / span 2; height: 8rem; }
  .famille .pile img { margin-left: -2.6rem; }
  .apropos .enveloppe, .lettre .enveloppe { grid-template-columns: 1fr; }
  .apropos .lotus { width: 9rem; justify-self: start; }
  .pied .enveloppe { grid-template-columns: 1fr 1fr; }
  .pied .marque { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .signature { font-size: 1.02rem; letter-spacing: 0.16em; }
  .signature .lotus { width: 1.9rem; }
  .entete .enveloppe { justify-content: center; }
  .etagere { gap: 1.5rem 0.75rem; }
  .livre { padding: 0.4rem 0.7rem 1rem; }
  .livre h2 { font-size: 1.15rem; }
  .bouton { padding: 0.6rem 0.8rem; }
  .famille a { grid-template-columns: 1fr; }
  .famille .pile { grid-column: 1; grid-row: auto; justify-content: flex-start; height: 7.5rem; }
  .pays-choix label { padding: 0.35rem 0.7rem; }
  .bouton .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ================= Éléments communs ajoutés ================= */

.evitement { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: 0.5rem 0.9rem; border-radius: 4px; z-index: 10; }
.evitement:focus { top: 1rem; color: #fff; }

.fil { font-size: var(--t-xs); color: var(--brume); padding-top: 0.5rem; }
.fil a { color: var(--brume); }
.fil span { margin: 0 0.4rem; }

.bouton.secondaire { background: transparent; color: var(--prune); box-shadow: inset 0 0 0 1px var(--prune); }
.bouton.secondaire:hover { background: var(--prune); color: #fff; }

.lettre .etat { margin: 0; min-height: 1.5em; font-size: var(--t-s); color: var(--encre); }
.lettre .consentement a { color: var(--brume); }

/* ================= Page livre ================= */

.fiche { padding: clamp(1rem, 3vw, 2.5rem) 0 0; }
.fiche .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.fiche-image { background: var(--voile); border-radius: 4px; padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 0; }
.fiche-image img { width: 100%; margin: 0 -6% 0 4%; }
.fiche h1 { margin: 0; font-weight: 330; font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.fiche .sous-titre { margin: 0.9rem 0 1.8rem; font-style: italic; font-weight: 340; font-size: var(--t-l); line-height: 1.4; color: var(--brume); max-width: 30ch; }
.edition-bloc { margin-top: 1.6rem; }
.edition { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.6rem; font-size: var(--t-m); font-weight: 500; }
.edition .vignette { width: 3.2rem; height: auto; }
.formats { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9CDD6; max-width: 28rem; }
.formats li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid #D9CDD6; }
.nom-format { font-size: var(--t-m); }

.quatrieme { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.texte-livre { max-width: 40rem; margin: 0 auto; font-size: 1.25rem; line-height: 1.7; }
.texte-livre p { margin: 0 0 1.1rem; }
.texte-livre .lead { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.35; font-weight: 360; margin-bottom: 1.6rem; text-wrap: balance; }
.texte-livre ul { margin: 0 0 1.3rem; padding-left: 1.2rem; }
.texte-livre li { margin-bottom: 0.35rem; }
.texte-livre .mantras { list-style: none; padding: 0; font-style: italic; text-align: center; font-size: 1.35rem; }
.texte-livre .citation { font-style: italic; font-size: 1.4rem; line-height: 1.5; text-align: center; color: var(--prune); margin-top: 2rem; text-wrap: balance; }

.note-sensible { max-width: 40rem; margin: 0 auto 2.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--lavande); background: #FBF9FA; font-size: var(--t-s); line-height: 1.6; color: var(--encre); }
.note-sensible p { margin: 0 0 0.5rem; }
.note-sensible p:last-child { margin: 0; }

.galerie { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.visuels { list-style: none; margin: 0 auto; padding: 0; max-width: 60.625rem; display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.visuels li { margin: 0; }
.visuels img { width: 100%; border-radius: 3px; }
.visuels .etroit { justify-self: center; max-width: 37.5rem; width: 100%; }
.visuels.carres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(1rem, 2.5vw, 1.75rem); }

.autres { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.autres h2 { margin: 0 0 1.5rem; font-weight: 330; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.01em; }
.autres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.autres a { display: block; color: var(--encre); text-decoration: none; }
.autres img { width: 70%; margin-bottom: 0.6rem; }
.autres span { display: block; font-size: var(--t-m); line-height: 1.3; }
.autres a:hover span { text-decoration: underline; text-decoration-thickness: 1px; }

/* ================= Pages famille ================= */

.famille-page { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.etagere.n2 { grid-template-columns: repeat(2, minmax(0, 18rem)); width: max-content; max-width: 100%; }
.etagere.n3 { grid-template-columns: repeat(3, minmax(0, 18rem)); width: max-content; max-width: 100%; }
.famille-page .etagere::before { right: calc(-1 * var(--gouttiere) - 4rem); }
.famille-page + .lettre { margin-top: 0; }

/* ================= À propos, mentions ================= */

.page-apropos { padding-top: clamp(2rem, 5vw, 4rem); }
.page-apropos h1 { margin: 0 0 1.2rem; font-weight: 330; font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.05; }
.page-apropos .enveloppe { align-items: start; }
.page-apropos .lotus { margin-top: 1rem; }

.texte-legal .enveloppe { max-width: 46rem; }
.texte-legal h1 { margin: 0 0 1.5rem; font-weight: 330; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
.texte-legal h2 { margin: 2rem 0 0.5rem; font-size: var(--t-l); font-weight: 450; }
.texte-legal p { margin: 0 0 1rem; line-height: 1.7; }

@media (max-width: 62rem) {
  .fiche .enveloppe { grid-template-columns: 1fr; }
  .fiche-image { max-width: 26rem; }
  .etagere.n2, .etagere.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
  .autres ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .autres span { font-size: var(--t-s); }
}
@media (max-width: 34rem) {
  .texte-livre { font-size: 1.125rem; }
  .visuels.carres { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .formats li { gap: 0.6rem; }
  .nom-format { font-size: 1rem; }
}

/* ---------- Formulaire de la lettre (construit depuis Wix Forms) ---------- */
.lettre-formulaire form { display: grid; gap: 1rem; }
.lettre .champ { display: grid; gap: 0.35rem; }
.lettre .champ label { font-size: var(--t-s); }
.lettre .champ input[type="email"], .lettre .champ input[type="text"], .lettre .champ input[type="tel"], .lettre .champ input[type="url"] {
  font: inherit; font-size: var(--t-m); padding: 0.6rem 0.8rem; border: 1px solid #BFAFBC; border-radius: 4px; background: #fff; color: var(--encre); width: 100%; }
.lettre .champ input[aria-invalid="true"] { border-color: #9B2C3A; }
.lettre .champ.consentement { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.6rem; }
.lettre .champ.consentement input { margin-top: 0.3rem; accent-color: var(--prune); }
.lettre .champ.consentement label { font-size: var(--t-xs); color: var(--brume); line-height: 1.5; }
.lettre .champ.consentement .erreur { grid-column: 1 / -1; }
.lettre .erreur { margin: 0; font-size: var(--t-xs); color: #9B2C3A; min-height: 0; }
.lettre .erreur:empty { display: none; }
.lettre-formulaire .bouton { justify-self: start; }
.lettre .chargement { margin: 0; color: var(--brume); font-size: var(--t-s); }
.lettre .confidentialite { margin: 0.8rem 0 0; font-size: var(--t-xs); }
.lettre .confidentialite a { color: var(--brume); }
.lettre .merci { margin: 0 0 0.5rem; font-size: var(--t-l); font-style: italic; color: var(--encre); }
