/* Lovely Peek — « papier, rose poudré, encre »
   Polices hébergées avec le site (aucune requête externe) : Fraunces et Inter, SIL Open Font License 1.1. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --creme: #fbf6f0;
  --papier: #f4ebdf;
  --papier-2: #efe3d4;
  --carte: #fffaf4;
  --encre: #2a2421;
  --encre-2: #5c524c;
  --encre-3: #8a7f77;
  --rose: #e9897e;
  --rose-fonce: #c9655a;
  --rose-pale: #f7dcd5;
  --sauge: #9aa98d;
  --sauge-pale: #e3e8dc;
  --moutarde: #d6a84a;
  --trait: rgba(42, 36, 33, 0.12);
  --trait-2: rgba(42, 36, 33, 0.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --largeur: 1180px;
  --gouttiere: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 152px);
  --rayon: 18px;
  --rayon-s: 12px;
  --ombre-douce: 0 1px 2px rgba(60, 40, 30, 0.06), 0 8px 24px -8px rgba(60, 40, 30, 0.14);
  --ombre-capture: 0 2px 4px rgba(60, 40, 30, 0.05), 0 24px 60px -20px rgba(70, 45, 35, 0.32),
    0 50px 100px -40px rgba(70, 45, 35, 0.22);
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grain de papier, très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.22 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--rose-pale);
  color: var(--encre);
}

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

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

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

/* ------------------------------------------------------------------ typographie */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 110;
}

h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

em,
.italique {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-fonce);
  margin-bottom: 22px;
}

.surtitre::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.chapeau {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--encre-2);
  max-width: 34em;
}

/* ------------------------------------------------------------------ logo */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 25px;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 48;
  text-decoration: none;
  color: var(--encre);
  white-space: nowrap;
}

.logo .peek {
  margin-left: 0.24em;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
}

/* le second « e » de Peek fait un clin d'œil : il se ferme un instant, de temps en temps */
.logo .oeil {
  display: inline-block;
  transform-origin: 50% 66%;
}

.logo .oeil.clin {
  animation: clin 0.42s var(--courbe);
}

@keyframes clin {
  0%,
  100% {
    transform: scaleY(1);
  }
  42% {
    transform: scaleY(0.12);
  }
  58% {
    transform: scaleY(0.12);
  }
}

.logo .point {
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--rose);
  margin-left: 0.08em;
  align-self: baseline;
}

/* ------------------------------------------------------------------ en-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.entete.defile {
  background: rgba(251, 246, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--trait-2);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--encre-2);
  transition: color 0.2s;
}

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

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--encre);
  background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait);
  white-space: nowrap;
}

.pastille .vu {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-pale);
}

@media (max-width: 1100px) {
  .nav {
    gap: 26px;
  }
}

@media (max-width: 980px) {
  .nav .lien {
    display: none;
  }
}

/* ------------------------------------------------------------------ boutons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 0;
}

.bouton.plein {
  background: var(--encre);
  color: var(--creme);
  cursor: default;
}

.bouton.plein small {
  font-weight: 450;
  opacity: 0.68;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  text-decoration: none;
  color: var(--encre);
}

.lien-fleche span {
  transition: transform 0.3s var(--courbe);
}

.lien-fleche:hover span {
  transform: translateY(3px);
}

/* ------------------------------------------------------------------ héros */
.heros {
  position: relative;
  padding: clamp(40px, 7vw, 92px) 0 0;
  /* les feuilles décoratives ne doivent jamais élargir la page */
  overflow-x: hidden;
  overflow-x: clip;
  overflow-clip-margin: 0;
}

.heros .texte {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.heros h1 .clin-titre {
  display: inline-block;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--rose-fonce);
}

.heros .chapeau {
  margin: 28px auto 38px;
}

.heros .actions {
  justify-content: center;
}

.formats {
  margin-top: 28px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--encre-3);
}

.formats b {
  font-weight: 600;
  color: var(--encre-2);
}

.formats sup {
  font-size: 0.75em;
  line-height: 0;
  margin-left: 1px;
}

.formats .precision {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0;
}

.scene {
  position: relative;
  max-width: 1100px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0 clamp(0px, 3vw, 40px);
}

/* les feuilles de papier qui « jettent un œil » derrière la capture */
.feuille {
  position: absolute;
  border-radius: 14px;
  box-shadow: var(--ombre-douce);
  transition: transform 1.4s var(--courbe), opacity 1s;
}

.feuille.rose {
  width: 34%;
  aspect-ratio: 4 / 5;
  left: -1%;
  top: 9%;
  background: linear-gradient(160deg, #f2b2a8, #e48b7f);
  transform: translate(14%, 10%) rotate(-3deg);
}

.feuille.sauge {
  width: 28%;
  aspect-ratio: 4 / 5;
  right: 0;
  top: -5%;
  background: linear-gradient(200deg, #b9c4ad, #8d9c81);
  transform: translate(-16%, 14%) rotate(3deg);
}

.feuille.moutarde {
  width: 8%;
  aspect-ratio: 1;
  right: 1%;
  bottom: -3%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ecc56f, #cf9b3b);
  transform: translate(-30%, -40%) scale(0.85);
  z-index: 2;
}

.scene.vu .feuille.rose {
  transform: translate(-12%, 2%) rotate(-7deg);
}

.scene.vu .feuille.sauge {
  transform: translate(10%, -2%) rotate(6deg);
}

.scene.vu .feuille.moutarde {
  transform: translate(28%, 22%) scale(1);
}

.fenetre {
  position: relative;
  z-index: 1;
  border-radius: var(--rayon);
  overflow: hidden;
  background: #fafafa;
  box-shadow: var(--ombre-capture), 0 0 0 1px rgba(42, 36, 33, 0.06);
}

.fenetre img {
  width: 100%;
}

.legende {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--encre-3);
}

/* ------------------------------------------------------------------ sections */
.section {
  padding: var(--section) 0 0;
}

.section .tete {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section .tete.centre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section .tete .chapeau {
  margin-top: 22px;
}

.tete.centre .chapeau {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------ galerie (vraies captures) */
.onglets {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 34px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--trait-2);
}

.onglets::-webkit-scrollbar {
  display: none;
}

.onglets button {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 550 14.5px/1 var(--sans);
  color: var(--encre-2);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

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

.onglets button[aria-selected="true"] {
  background: var(--carte);
  color: var(--encre);
  box-shadow: 0 1px 2px rgba(60, 40, 30, 0.08), 0 4px 12px -4px rgba(60, 40, 30, 0.14);
}

.vitrine {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.vitrine .cadre {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--rayon);
  background: var(--papier);
  overflow: hidden;
  box-shadow: var(--ombre-capture), 0 0 0 1px rgba(42, 36, 33, 0.06);
}

.vitrine figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.55s var(--courbe), transform 0.8s var(--courbe);
  pointer-events: none;
}

.vitrine figure.actif {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.vitrine figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--papier);
}

.vitrine figure.pleine img {
  object-fit: cover;
  object-position: top left;
}

/* « Voir en entier » : la capture complète, sans cadrage */
.voir-entier {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  border: 0;
  border-radius: 999px;
  font: 600 13px/1 var(--sans);
  color: var(--encre);
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(60, 40, 30, 0.12), 0 6px 18px -6px rgba(60, 40, 30, 0.3);
  cursor: zoom-in;
  transition: transform 0.3s var(--courbe), background 0.3s;
}

.voir-entier:hover {
  transform: translateY(-1px);
  background: var(--carte);
}

.voir-entier svg {
  width: 15px;
  height: 15px;
}

.vitrine figure img {
  cursor: zoom-in;
}

.loupe {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 25, 23, 0.94);
  color: var(--creme);
  overflow: hidden;
}

.loupe[open] {
  animation: loupe-entre 0.35s var(--courbe);
}

@keyframes loupe-entre {
  from {
    opacity: 0;
  }
}

.loupe::backdrop {
  background: transparent;
}

.loupe .zone {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 64px 16px 56px;
  overscroll-behavior: contain;
}

.loupe img {
  max-width: min(100%, 1600px);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}

.loupe.zoom .zone {
  place-items: start;
}

.loupe.zoom img {
  max-width: none;
  max-height: none;
  width: 1280px; /* taille réelle de l'interface (image 2× : nette) */
  cursor: zoom-out;
}

.loupe .fermer {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--creme);
  background: rgba(30, 25, 23, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1;
}

.loupe .fermer:hover {
  background: rgba(30, 25, 23, 0.92);
}

.loupe .fermer svg {
  width: 18px;
  height: 18px;
}

.loupe .indice {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 25, 23, 0.72);
  text-align: center;
  font-size: 13px;
  color: rgba(251, 246, 240, 0.8);
  pointer-events: none;
}

.loupe .tactile {
  display: none;
}

@media (hover: none) {
  .loupe .tactile {
    display: inline;
  }
}

html.loupe-ouverte {
  overflow: hidden;
}

.vitrine .note {
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--encre-2);
  min-height: 3.2em;
}

.vitrine .note b {
  font-weight: 600;
  color: var(--encre);
}

/* ------------------------------------------------------------------ fonctionnalités */
.grille-f {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.carte {
  position: relative;
  grid-column: span 2;
  padding: 34px 32px 32px;
  border-radius: var(--rayon);
  background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait-2), var(--ombre-douce);
  transition: transform 0.5s var(--courbe), box-shadow 0.5s var(--courbe);
}

.carte:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--trait-2), 0 2px 4px rgba(60, 40, 30, 0.05), 0 22px 44px -18px rgba(60, 40, 30, 0.22);
}

.carte.large {
  grid-column: span 3;
}

.carte .pic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  background: var(--rose-pale);
  color: var(--rose-fonce);
}

.carte .pic.sauge {
  background: var(--sauge-pale);
  color: #64745a;
}

.carte .pic.moutarde {
  background: #f6e7c7;
  color: #9a7120;
}

.carte .pic.encre {
  background: #e4e2ea;
  color: #3c4466;
}

.carte .pic svg {
  width: 22px;
  height: 22px;
}

.carte h3 {
  margin-bottom: 12px;
}

.carte p {
  color: var(--encre-2);
  font-size: 16px;
}

.carte ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--encre-2);
}

.carte li {
  position: relative;
  padding-left: 20px;
  margin-top: 7px;
}

.carte li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
}

kbd {
  display: inline-block;
  padding: 1px 7px 2px;
  border-radius: 6px;
  font: 600 12.5px/1.5 var(--sans);
  color: var(--encre);
  background: var(--creme);
  box-shadow: inset 0 0 0 1px var(--trait), 0 1px 0 var(--trait);
}

.etiquettes {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.etiquettes i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ------------------------------------------------------------------ libre : section mise en avant */
.libre {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.libre .points {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.libre .point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  color: var(--encre-2);
  font-size: 16px;
}

.libre .point b {
  display: block;
  color: var(--encre);
  font-weight: 600;
  margin-bottom: 2px;
}

.libre .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--rose-fonce);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.2;
}

#libre {
  /* le carton rose décoratif ne doit jamais élargir la page */
  overflow-x: hidden;
  overflow-x: clip;
}

.libre .visuel {
  position: relative;
}

.libre .visuel .fenetre {
  transform: rotate(1.2deg);
}

.libre .visuel::before {
  content: "";
  position: absolute;
  inset: 8% -5% -6% 10%;
  border-radius: 24px;
  background: var(--rose-pale);
  transform: rotate(-3deg);
}

@media (max-width: 900px) {
  .libre {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ Free / Pro */
.editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

.edition {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 24px;
  background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait-2), var(--ombre-douce);
}

.edition.pro {
  background: var(--encre);
  color: var(--creme);
  box-shadow: var(--ombre-capture);
}

.edition .nom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.edition h3 {
  font-size: 34px;
}

.edition .statut {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--sauge-pale);
  color: #55654b;
}

.edition.pro .statut {
  background: rgba(233, 137, 126, 0.18);
  color: #f3b3aa;
}

.edition .prix {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--encre-2);
  margin-bottom: 26px;
}

.edition.pro .prix {
  color: rgba(251, 246, 240, 0.66);
}

.edition ul {
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--trait);
  display: grid;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.5;
}

.edition.pro ul {
  border-top-color: rgba(251, 246, 240, 0.14);
}

.edition li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.edition li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--sauge);
}

.edition.pro li svg {
  color: var(--rose);
}

.edition li small {
  display: block;
  color: var(--encre-3);
  font-size: 13.5px;
}

.edition.pro li small {
  color: rgba(251, 246, 240, 0.5);
}

.edition .bas {
  margin-top: 28px;
  font-size: 14px;
  color: var(--encre-3);
}

.edition.pro .bas {
  color: rgba(251, 246, 240, 0.6);
}

@media (max-width: 820px) {
  .editions {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ local */
.local {
  position: relative;
  border-radius: 28px;
  padding: clamp(44px, 7vw, 96px) clamp(26px, 6vw, 88px);
  background: var(--papier);
  overflow: hidden;
}

.local::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 137, 126, 0.24), transparent 66%);
}

.local .contenu {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.local .liste {
  display: grid;
  gap: 26px;
}

.local .item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.local .item .pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--carte);
  color: var(--rose-fonce);
  box-shadow: inset 0 0 0 1px var(--trait-2);
}

.local .item svg {
  width: 20px;
  height: 20px;
}

.local .item b {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.local .item p {
  color: var(--encre-2);
  font-size: 16px;
}

@media (max-width: 860px) {
  .local .contenu {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--trait);
}

.faq details {
  border-bottom: 1px solid var(--trait);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--trait);
  transition: background 0.3s, transform 0.4s var(--courbe);
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--encre);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--courbe);
}

.faq summary .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] summary .plus {
  background: var(--rose-pale);
  transform: rotate(180deg);
}

.faq details[open] summary .plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq .reponse {
  overflow: hidden;
}

.faq .reponse p {
  padding: 0 60px 28px 4px;
  color: var(--encre-2);
}

.faq .reponse p + p {
  margin-top: -14px;
}

/* ------------------------------------------------------------------ fin de page */
.envoi {
  padding: var(--section) 0;
  text-align: center;
}

.envoi h2 {
  max-width: 14em;
  margin: 0 auto 30px;
}

.pied {
  border-top: 1px solid var(--trait);
  padding: 48px 0 56px;
  font-size: 14.5px;
  color: var(--encre-2);
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.pied .logo {
  font-size: 21px;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.pied nav a {
  text-decoration: none;
}

.pied nav a:hover {
  color: var(--encre);
  text-decoration: underline;
}

.pied .mention {
  width: 100%;
  font-size: 13px;
  color: var(--encre-3);
}

/* ------------------------------------------------------------------ pages légales */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 var(--section);
}

.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 18px;
}

.legal .maj {
  color: var(--encre-3);
  font-size: 14.5px;
  margin-bottom: 40px;
}

.legal .avertissement {
  padding: 18px 22px;
  border-radius: var(--rayon-s);
  background: #fff3c9;
  box-shadow: inset 0 0 0 1px #ecd88a;
  font-size: 15px;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: clamp(25px, 3vw, 31px);
  margin: 52px 0 16px;
}

.legal h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  color: var(--encre-2);
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal li + li {
  margin-top: 6px;
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 12px 24px;
  margin: 18px 0;
  padding: 22px 24px;
  border-radius: var(--rayon-s);
  background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait-2);
}

.legal dt {
  font-weight: 600;
  font-size: 15px;
}

.legal dd {
  margin: 0;
  color: var(--encre-2);
  font-size: 15px;
}

@media (max-width: 600px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal dd {
    margin-bottom: 10px;
  }
}

.retour {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 34px;
  font-size: 15px;
  color: var(--encre-2);
  text-decoration: none;
}

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

/* ------------------------------------------------------------------ apparition au défilement */
.js [data-apparait] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--courbe), transform 0.9s var(--courbe);
  transition-delay: var(--delai, 0s);
}

.js [data-apparait].vu {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .grille-f {
    grid-template-columns: 1fr;
  }
  .carte,
  .carte.large {
    grid-column: auto;
    padding: 28px 24px;
  }
  .entete .conteneur {
    height: 64px;
  }
  .logo {
    font-size: 22px;
  }
  .pastille {
    padding: 8px 12px;
    font-size: 13px;
  }
  .bouton {
    height: 50px;
    padding: 0 22px;
    font-size: 15px;
  }
  .vitrine .cadre {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  /* téléphone : captures recadrées en 4:3 sur la partie utile (images dédiées, jamais déformées) */
  .vitrine figure img,
  .vitrine figure.pleine img {
    object-fit: cover;
    object-position: center;
  }
  .voir-entier {
    right: 10px;
    bottom: 10px;
    padding: 7px 12px 7px 10px;
    font-size: 12.5px;
  }
  .fenetre {
    border-radius: 12px;
  }
  .faq .reponse p {
    padding-right: 8px;
  }
  .feuille.moutarde {
    display: none;
  }
}

@media (max-width: 420px) {
  .entete .pastille .long {
    display: none;
  }
}

/* ================================================================== logo : arrivée et regard */
.logo .peek,
.logo .l {
  display: inline-block;
}

.logo .l-e {
  transition: translate 0.5s var(--courbe);
}

.logo.entree .lovely {
  animation: lp-fondu 0.7s var(--courbe) both;
}

.logo.entree .peek {
  /* ligne invisible sous laquelle les lettres attendent avant de « jeter un œil » */
  clip-path: inset(-0.4em -0.4em 0.41em -0.4em); /* bas de la boîte à 0,44 em sous la ligne d'écriture (mesuré) */
}

.logo.entree .peek .l {
  animation: lp-remonte 0.72s var(--courbe) both;
  animation-delay: calc(0.22s + var(--i, 0) * 0.07s);
}

@keyframes lp-fondu {
  from {
    opacity: 0;
  }
}

@keyframes lp-remonte {
  from {
    transform: translateY(0.95em);
  }
}

/* ================================================================== titre : trait tracé à la main */
.clin-titre {
  position: relative;
}

.trait-main {
  position: absolute;
  left: 1%;
  bottom: -0.1em;
  width: 92%;
  height: 0.26em;
  overflow: visible;
  pointer-events: none;
}

.trait-main path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 3px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.75;
}

.js .trait-main path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.15s cubic-bezier(0.55, 0.1, 0.25, 1) 0.75s;
}

.js .trait-main.vu path {
  stroke-dashoffset: 0;
}

/* ================================================================== lien « Quoi de neuf ? » */
.lien-nouveautes {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--encre-2);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--trait);
  transition: box-shadow 0.3s, color 0.3s;
}

.lien-nouveautes:hover {
  color: var(--encre);
  box-shadow: inset 0 0 0 1px rgba(201, 101, 90, 0.45);
}

.lien-nouveautes b {
  font-weight: 600;
  color: var(--encre);
}

.lien-nouveautes .fleche {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-fonce);
  transition: transform 0.35s var(--courbe);
}

.lien-nouveautes:hover .fleche {
  transform: translateX(3px);
}

.envoi .lien-nouveautes {
  margin-top: 30px;
}

/* ================================================================== « Ton avis compte » */
.avis .grille-avis {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* quatre billets en 2 × 2 */
  gap: 30px 26px;
  max-width: 960px;
  margin: 0 auto;
}

.avis .billet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
  border-radius: var(--rayon);
  background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait-2), var(--ombre-douce);
  transition: transform 0.5s var(--courbe);
}

.avis .billet:nth-child(1) {
  rotate: -0.6deg;
}

.avis .billet:nth-child(4) {
  rotate: 0.6deg;
}

.avis .billet:hover {
  transform: translateY(-3px);
}

/* petit ruban adhésif, comme une note épinglée dans un carnet */
.avis .billet::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  translate: -50% 0;
  rotate: -2deg;
  border-radius: 2px;
  background: rgba(233, 137, 126, 0.3);
}

.avis .billet:nth-child(2)::before {
  background: rgba(154, 169, 141, 0.36);
  rotate: 2deg;
}

.avis .billet:nth-child(3)::before {
  background: rgba(214, 168, 74, 0.34);
}

.avis .billet:nth-child(4)::before {
  background: rgba(79, 102, 150, 0.22);
  rotate: 1.5deg;
}

.avis .billet .pic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--rose-pale);
  color: var(--rose-fonce);
}

.avis .billet:nth-child(2) .pic {
  background: var(--sauge-pale);
  color: #64745a;
}

.avis .billet:nth-child(3) .pic {
  background: #f6e7c7;
  color: #9a7120;
}

.avis .billet:nth-child(4) .pic {
  background: #e4e2ea;
  color: #3c4466;
}

.avis .billet .pic svg {
  width: 22px;
  height: 22px;
}

.avis .billet h3 {
  margin-bottom: 10px;
}

.avis .billet p {
  flex: 1;
  color: var(--encre-2);
  font-size: 16px;
}

.avis .ecrire {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 18px;
  border-radius: 999px;
  font: 600 14.5px/1 var(--sans);
  text-decoration: none;
  color: var(--creme);
  background: var(--encre);
  transition: background 0.3s;
}

.avis .ecrire:hover {
  background: #403632;
}

.avis .ecrire[aria-disabled="true"] {
  color: var(--encre-3);
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--trait-2);
  cursor: not-allowed;
}

.avis .ecrire .bientot,
.avis.sans-adresse .ecrire .actif {
  display: none;
}

.avis.sans-adresse .ecrire .bientot {
  display: inline;
}

.avis .prudence {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 16px 20px;
  border-radius: var(--rayon-s);
  background: var(--papier);
  font-size: 14.5px;
  color: var(--encre-2);
}

.avis .prudence svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--rose-fonce);
}

.avis .etat-adresse {
  display: none;
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--encre-3);
}

.avis.sans-adresse .etat-adresse {
  display: block;
}

/* adresse visible : utile si aucune messagerie ne s'ouvre au clic */
.avis .adresse-directe {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--encre-3);
}

.avis .adresse-directe a {
  color: var(--encre-2);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.avis .adresse-directe a:hover {
  color: var(--encre);
}

.avis.sans-adresse .adresse-directe {
  display: none;
}

.modele-mail {
  display: none;
}

@media (max-width: 680px) {
  .avis .grille-avis {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .avis .billet:nth-child(n) {
    rotate: 0deg;
  }
}

/* ================================================================== page « Quoi de neuf ? » */
.carnet {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 var(--section);
}

.carnet .tete {
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 64px);
}

.carnet h1 {
  font-size: clamp(42px, 6.4vw, 72px);
}

.carnet .tete .chapeau {
  margin: 22px auto 0;
}

/* une page de carnet : papier ligné, marge rose, reliure */
.page-carnet {
  --marge: clamp(52px, 9vw, 104px);
  position: relative;
  /* tout est calé sur les lignes du papier (32 px) : le texte se pose sur les lignes */
  padding: 64px clamp(24px, 6vw, 64px) 32px var(--marge);
  border-radius: 6px 22px 22px 6px;
  background:
    linear-gradient(90deg, transparent calc(var(--marge) - 22px), rgba(233, 137, 126, 0.5) calc(var(--marge) - 22px), rgba(233, 137, 126, 0.5) calc(var(--marge) - 21px), transparent calc(var(--marge) - 21px)),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(42, 36, 33, 0.07) 31px 32px),
    var(--carte);
  box-shadow: var(--ombre-capture), inset 0 0 0 1px var(--trait-2);
}

.page-carnet::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 34px;
  width: 14px;
  background: radial-gradient(circle, var(--creme) 4px, rgba(42, 36, 33, 0.14) 5px, transparent 6px) 0 0 / 14px 58px repeat-y;
}

.page-carnet .bientot {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 64px;
}

.page-carnet .bientot em {
  color: var(--rose-fonce);
}

.page-carnet p {
  color: var(--encre-2);
  font-size: 16px;
  line-height: 32px;
}

.legende-pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 36px 0 4px;
}

.pastille-maj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pastille-maj.nouveau {
  background: var(--rose-pale);
  color: #a24e45;
}

.pastille-maj.ameliore {
  background: var(--sauge-pale);
  color: #55654b;
}

.pastille-maj.corrige {
  background: #f6e7c7;
  color: #84611b;
}

.pastille-maj.free {
  background: var(--papier);
  color: var(--encre-2);
  box-shadow: inset 0 0 0 1px var(--trait);
}

.pastille-maj.pro {
  background: var(--encre);
  color: var(--creme);
}

/* entrée de version : utilisée dès la première mise à jour publiée (modèle dans nouveautes.html) */
.versions {
  margin-top: 56px;
}

.version {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--trait);
}

.version .numero {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.02em;
}

.version .date {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--encre-3);
}

.version h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.version ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.version li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--encre-2);
}

.version li .pastille-maj {
  flex: none;
  min-width: 84px;
}

@media (max-width: 640px) {
  .version {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-carnet::before {
    left: 9px;
  }
  .page-carnet .bientot {
    font-size: 27px;
    line-height: 32px;
    padding-bottom: 32px;
  }
}


/* ------------------------------------------------------------------ mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html *,
  html *::before,
  html *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js [data-apparait] {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- vente : pro.html, merci.html, telecharger.html */
.vente .chapeau-page { font-size: 19px; color: var(--encre-2); margin-bottom: 28px; }
.vente .formules { margin: 8px 0 18px; }
.vente .formules .prix strong { font-size: 30px; }
.bouton.action { cursor: pointer; background: var(--encre); color: var(--creme); margin-top: 18px; }
.bouton.action:hover { filter: brightness(1.15); }
.bouton.action:disabled, .bouton.action[aria-disabled="true"] { cursor: default; opacity: 0.55; filter: none; }
.bouton.action.clair { background: var(--creme); color: var(--encre); }
.bouton.action.petit { height: 38px; padding: 0 16px; margin: 0 0 0 10px; font-size: 14px; }
.vente .liste-pro { list-style: none; padding: 0; }
.vente .liste-pro li { display: flex; gap: 10px; align-items: flex-start; }
.vente .liste-pro svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.message-achat { padding: 14px 18px; border-radius: 14px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-2); }
.bandeau-test { margin: 24px 0 0; padding: 12px 18px; border-radius: 12px; background: #ffe58a; color: #4a3b00; font-weight: 600; }
.cle-licence { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cle-licence code { font: 600 clamp(18px, 3vw, 24px)/1.4 ui-monospace, Consolas, monospace; letter-spacing: 0.04em;
  padding: 10px 16px; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-2);
  overflow-wrap: anywhere; }
