/* ============================================================
   MAISON PASTEL — feuille de style
   Les couleurs et polices sont réglées ici, tout en haut.
   ============================================================ */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-variable-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Couleurs */
  --creme: #f7efe1;
  --blanc: #ffffff;
  --papier: #fffdf8;
  --encre: #393531;
  --encre-douce: #5f5852;
  --bleu: #52739a;
  --bleu-lien: #436183;
  --bleu-polaire: #6a9abb;
  --jaune: #ecbb4e;
  --vert: #688b5f;
  --rouge: #d76145;
  --rose: #f7e4d8;
  --trait-doux: rgba(57, 53, 49, 0.16);

  /* Polices */
  --police: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --police-serif: "Lora", Georgia, "Times New Roman", serif;

  /* Style « dessin » : traits d'encre et ombres pleines */
  --trait: 2px solid var(--encre);
  --ombre-petite: 3px 3px 0 var(--encre);
  --ombre: 5px 5px 0 var(--encre);
  --ombre-grande: 6px 6px 0 var(--encre);

  --largeur: 1060px;
  --marge: 24px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--police);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--bleu-lien);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--encre);
}

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

strong {
  font-weight: 600;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.aller-au-contenu {
  position: absolute;
  left: -9999px;
}
.aller-au-contenu:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--blanc);
  padding: 8px 14px;
  border: var(--trait);
}

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

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--police);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--encre);
  text-decoration: none;
  background: var(--jaune);
  border: var(--trait);
  border-radius: 8px;
  box-shadow: var(--ombre-petite);
  padding: 13px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bouton:hover {
  color: var(--encre);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--encre);
}

.bouton:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--encre);
}

.bouton-bleu,
.bouton-bleu:hover {
  background: var(--bleu);
  color: var(--blanc);
}

.bouton-blanc {
  background: var(--blanc);
}

.bouton-petit {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 7px;
}

.bouton-grand {
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 22px;
  border-radius: 10px;
}

.fleche {
  flex: none;
}

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

.entete {
  padding: 20px 0 8px;
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.entete-simple .entete-interieur {
  justify-content: center;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
}

.marque:hover {
  color: var(--encre);
}

.marque-texte {
  display: flex;
  flex-direction: column;
}

.marque-nom {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
}

.marque-baseline {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.logo-maison {
  flex: none;
  overflow: visible;
}

.logo-num {
  font-family: var(--police);
  font-weight: 600;
  font-size: 64px;
  fill: #6b645d;
  text-anchor: middle;
}

.menu {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

/* ---------- Accueil : les bonus ---------- */

.hero {
  padding: 44px 0 72px;
}

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.pastille {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--trait);
  border-radius: 999px;
  padding: 4px 13px;
  background: var(--papier);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  margin: 20px 0 18px;
}

.hero-texte {
  font-size: 18px;
  max-width: 34em;
}

.formulaire {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.formulaire fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.etiquette {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.choix-livres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choix-livre {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 15px 8px 11px;
  background: var(--blanc);
  border: var(--trait);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.choix-livre input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choix-livre:hover {
  box-shadow: var(--ombre-petite);
}

.choix-livre:has(input:checked) {
  background: var(--encre);
  color: var(--creme);
  box-shadow: var(--ombre-petite);
}

.choix-livre:has(input:focus-visible) {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

.ligne-email {
  display: flex;
  gap: 12px;
}

.champ {
  flex: 1;
  min-width: 0;
  font-family: var(--police);
  font-size: 16px;
  color: var(--encre);
  background: var(--blanc);
  border: var(--trait);
  border-radius: 8px;
  padding: 0 16px;
  height: 52px;
}

.champ::placeholder {
  color: #8d867f;
}

.champ:focus-visible {
  outline-offset: 2px;
}

.ligne-email .bouton {
  flex: none;
  height: 52px;
}

.case {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.case input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--bleu);
}

.note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--encre-douce);
}

.erreur {
  font-size: 14px;
  font-weight: 500;
  color: #a43c24;
  background: #fbe3da;
  border: 2px solid #c9573c;
  border-radius: 8px;
  padding: 10px 14px;
}

.piege {
  position: absolute;
  left: -9999px;
}

/* Visuel : coloriage noir et blanc + corrigé en couleur */
.hero-visuel {
  position: relative;
  margin: 0;
  padding-bottom: 30px;
}

.hero-visuel img {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
}

.annotation {
  position: absolute;
  right: 6%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--police-serif);
  font-style: italic;
  font-size: 15px;
}

.annotation span {
  background: linear-gradient(transparent 52%, var(--jaune) 52%, var(--jaune) 92%, transparent 92%);
  padding: 0 4px;
}

/* ---------- Accueil : la collection ---------- */

.collection {
  background: var(--blanc);
  border-top: var(--trait);
  border-bottom: var(--trait);
  padding: 68px 0 80px;
}

.collection h2,
.maison h2 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.collection-intro {
  margin: 12px 0 36px;
  font-size: 17px;
}

.grille-livres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 30px;
}

.livre-couverture {
  aspect-ratio: 8.5 / 11;
  background: var(--creme);
  border: var(--trait);
  border-radius: 6px;
  box-shadow: var(--ombre);
  overflow: hidden;
}

.livre-couverture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livre-bientot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bleu-polaire);
  border-style: dashed;
  box-shadow: none;
  color: var(--blanc);
  text-align: center;
  padding: 20px;
}

.livre-bientot-etiquette {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.livre-bientot-titre {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 2px 2px 0 rgba(57, 53, 49, 0.55);
}

.livre-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 4px;
}

.point {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--encre);
  background: var(--couleur, var(--jaune));
}

.couleur-vert { --couleur: var(--vert); }
.couleur-bleu { --couleur: var(--bleu); }
.couleur-jaune { --couleur: var(--jaune); }
.couleur-rouge { --couleur: var(--rouge); }
.couleur-polaire { --couleur: var(--bleu-polaire); }

.livre-resume {
  font-size: 14px;
  color: var(--encre-douce);
  margin-bottom: 14px;
}

/* ---------- Accueil : la maison ---------- */

.maison {
  padding: 60px 0;
}

.maison-interieur {
  display: flex;
  align-items: center;
  gap: 32px;
}

.maison-medaillon {
  flex: none;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  border: var(--trait);
  box-shadow: var(--ombre);
}

.surtitre {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: 6px;
}

.texte-serif {
  font-family: var(--police-serif);
  font-size: 17px;
  line-height: 1.68;
}

.maison .texte-serif {
  margin-top: 10px;
  max-width: 62ch;
}

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

.pied {
  border-top: 1px solid var(--trait-doux);
  padding: 22px 0;
  font-size: 13px;
}

.pied-interieur {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

/* ---------- Pages « carte » : avis, téléchargement, 404 ---------- */

.page-carte {
  padding: 28px 0 64px;
}

.carte {
  max-width: 480px;
  margin: 0 auto;
  background: var(--blanc);
  border: var(--trait);
  border-radius: 16px;
  box-shadow: var(--ombre-grande);
  padding: 34px 28px 26px;
  text-align: center;
}

.carte-large {
  max-width: 580px;
}

.carte-icone {
  display: block;
  margin: 0 auto 16px;
}

.carte h1 {
  font-size: clamp(1.55rem, 4.6vw, 1.8rem);
  margin-bottom: 14px;
}

.carte .texte-serif {
  font-size: 16.5px;
  line-height: 1.62;
  margin-bottom: 22px;
}

.carte .note {
  margin-top: 12px;
}

.astuce {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  border: 2px dashed var(--encre);
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 20px;
}

.astuce svg {
  flex: none;
}

.sous-carte {
  text-align: center;
  font-size: 14.5px;
  margin-top: 26px;
}

.sous-carte a {
  font-weight: 600;
}

/* Liste des livres (page avis sans livre choisi) */
.liste-choix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.liste-choix .bouton {
  width: 100%;
  justify-content: flex-start;
  background: var(--blanc);
}

.liste-choix .bouton .fleche {
  margin-left: auto;
}

/* Téléchargements */
.liste-bonus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.bonus-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  border: var(--trait);
  border-radius: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--papier);
}

.bonus-ligne svg {
  flex: none;
}

.bonus-infos {
  flex: 1;
  min-width: 0;
}

.bonus-titre {
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.25;
}

.bonus-detail {
  font-size: 13.5px;
  color: var(--encre-douce);
}

.bonus-ligne .bouton {
  flex: none;
}

.bientot-dispo {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--encre-douce);
  border: 2px dashed var(--encre-douce);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- Pages de texte : mentions légales, confidentialité ---------- */

.page-texte {
  padding: 40px 0 72px;
}

.page-texte .conteneur {
  max-width: 760px;
}

.page-texte h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 28px;
}

.page-texte h2 {
  font-size: 21px;
  margin: 34px 0 10px;
}

.page-texte p,
.page-texte li {
  font-family: var(--police-serif);
  font-size: 16.5px;
  line-height: 1.7;
}

.page-texte p + p {
  margin-top: 12px;
}

.page-texte ul {
  padding-left: 1.2em;
  margin: 10px 0;
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 880px) {
  .hero {
    padding-top: 28px;
  }
  .hero-grille {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visuel {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .grille-livres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :root {
    --marge: 16px;
  }
  body {
    font-size: 16px;
  }
  .entete-interieur {
    justify-content: center;
  }
  .menu {
    gap: 16px;
    font-size: 13.5px;
  }
  .hero-texte {
    font-size: 17px;
  }
  .ligne-email {
    flex-direction: column;
  }
  .ligne-email .champ {
    flex: none;
    width: 100%;
  }
  .ligne-email .bouton {
    width: 100%;
  }
  .choix-livre {
    font-size: 14.5px;
    padding: 7px 13px 7px 10px;
  }
  .collection {
    padding: 52px 0 60px;
  }
  .grille-livres {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
    margin: 0 auto;
  }
  .maison-interieur {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .maison-medaillon {
    width: 100px;
    height: 100px;
  }
  .carte {
    padding: 28px 20px 22px;
  }
  .bonus-ligne {
    flex-wrap: wrap;
  }
  .bonus-ligne .bouton,
  .bonus-ligne .bientot-dispo {
    width: 100%;
    text-align: center;
  }
  .pied-interieur {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bouton,
  .choix-livre {
    transition: none;
  }
}
