/* Emma & Lys v2 : couleurs du logo, stickers, photos A+. Corps Arial, titres Fredoka (auto-hébergée, licence OFL). */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --magenta: #d14dc7;
  --magenta-deep: #a73a9f;
  --yellow: #ffd45e;
  --yellow-soft: #fff1c2;
  --pink: #f7a8b8;
  --pink-soft: #ffe1e7;
  --lilac-soft: #f7e2f5;
  --mint-soft: #ddf3e4;
  --peach-soft: #ffe4cc;
  --sky-soft: #dcebff;
  --cream: #fff7ec;
  --ink: #2b1a14;
  --ink-soft: #5b4a43;
  --white: #ffffff;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --round: "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;
  --shadow-ink: 3px 3px 0 var(--ink);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; position: relative; }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* En-tête : le mot EMMA & LYS reste en Arial gras espacé */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--white); border-bottom: 4px solid var(--magenta); }
.brand { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.32em; text-decoration: none; white-space: nowrap; color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-cta { display: none; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; box-shadow: 2px 2px 0 var(--ink); }
.lang { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.lang:hover, .lang:focus { text-decoration: underline; }

/* Bandeau pour les personnes qui arrivent du QR */
.from-banner { display: none; background: var(--yellow); border-bottom: 2px solid var(--ink); padding: 12px 16px; text-align: center; font-weight: 700; }
.from-banner.on { display: block; }
.from-banner a { white-space: nowrap; }

/* Titres ronds, façon logo */
.title { font-family: var(--round); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.05; }
.title-light { color: var(--white); text-shadow: var(--shadow-ink); }
.title-pink { color: var(--magenta); text-shadow: 2px 2px 0 var(--ink); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 2.5px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 700; font-size: 18px; letter-spacing: 0.03em; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover, .btn:focus { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-pink { background: var(--magenta); color: var(--white); }

/* Héros magenta */
.hero { background: var(--magenta); color: var(--white); padding: 34px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 9vw, 58px); margin-bottom: 16px; }
.hero p { font-size: 18px; max-width: 32em; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn { flex: 1 1 220px; }
.hero .d1 { width: 56px; top: 14px; right: 5%; transform: rotate(14deg); }
.hero .d2 { width: 54px; top: 12px; left: 3%; transform: rotate(-10deg); }
.hero .d3 { width: 26px; top: 10px; right: 30%; }

/* Bénéfices */
.perks { background: var(--cream); padding: 30px 0; border-bottom: 2px dashed #f0cfe9; }
.perks ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.perks img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; }

/* Catalogue */
.books { padding: 52px 0 64px; text-align: center; position: relative; }
.books .title { font-size: clamp(34px, 8vw, 52px); margin-bottom: 10px; }
.books .lead { color: var(--ink-soft); max-width: 34em; margin: 0 auto 22px; }
.books .d4 { width: 78px; top: -30px; right: 2%; }
.books .d5 { width: 54px; top: 24px; left: 4%; transform: rotate(-18deg); }
.market { margin: 0 auto 34px; }
.market p { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { font-family: var(--sans); font-size: 15px; font-weight: 700; min-height: 42px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--magenta); color: var(--white); box-shadow: 2px 2px 0 var(--ink); }
.market p.small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; text-align: left; }
.book { display: flex; flex-direction: column; position: relative; min-width: 0; }
.cover { position: relative; aspect-ratio: 1 / 1.08; border-radius: 22px; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 12px; background: var(--pink-soft); border: 2px solid var(--ink); }
.book:nth-child(6n+2) .cover { background: var(--yellow-soft); }
.book:nth-child(6n+3) .cover { background: var(--mint-soft); }
.book:nth-child(6n+4) .cover { background: var(--lilac-soft); }
.book:nth-child(6n+5) .cover { background: var(--peach-soft); }
.book:nth-child(6n+6) .cover { background: var(--sky-soft); }
.cover img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 8px 12px rgba(43, 26, 20, 0.28)); transition: transform .2s ease; }
.book:hover .cover img { transform: rotate(-2deg) scale(1.03); }
.badge { position: absolute; top: -10px; left: -6px; z-index: 2; font-family: var(--round); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg); }
.badge-red { background: #ff6b6b; color: var(--white); }
.book h3 { font-family: var(--round); font-size: 17px; line-height: 1.2; font-weight: 700; margin-bottom: 5px; }
.book p { font-size: 14px; line-height: 1.45; color: var(--ink-soft); margin-bottom: 12px; flex: 1; }
.book .btn { min-height: 48px; font-size: 16px; padding: 0 12px; width: 100%; }


/* 5 pages en plus */
.gift { background: #ffc8d4; text-align: center; padding: 52px 0 58px; position: relative; overflow: hidden; }
.gift-inner { max-width: 640px; }
.gift .title { font-size: clamp(34px, 8.5vw, 52px); color: var(--ink); margin-bottom: 12px; }
.gift p { font-size: 18px; margin: 0 auto 22px; max-width: 30em; }

/* Page formulaire */
.form-hero { background: var(--magenta); color: var(--white); text-align: center; padding: 40px 0 120px; position: relative; overflow: hidden; }
.form-hero h1 { font-size: clamp(30px, 8vw, 50px); margin-bottom: 14px; }
.form-hero p { max-width: 30em; margin: 0 auto; font-size: 18px; }
.form-card { position: relative; z-index: 2; max-width: 460px; margin: -88px auto 0; background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 26px 22px; text-align: center; }
.form-slot { text-align: left; margin-bottom: 14px; }
.form-wait { background: var(--cream); border: 2px dashed var(--magenta); border-radius: 16px; padding: 20px 16px; text-align: center; }
.form-wait p { margin-bottom: 8px; }
.form-card .small { font-size: 14px; color: var(--ink-soft); }
.form-after { text-align: center; padding: 36px 16px 56px; }
.form-after img { width: min(70vw, 300px); height: auto; margin: 0 auto 18px; }

/* Texte long */
.doc { max-width: 700px; margin: 0 auto; padding: 44px 16px 64px; }
.doc h1 { font-size: clamp(30px, 8vw, 44px); margin-bottom: 8px; }
.doc h2 { font-family: var(--round); font-size: 20px; margin: 30px 0 8px; color: var(--magenta-deep); }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { padding-left: 20px; }
.small { font-size: 14px; color: var(--ink-soft); }

/* Pied */
.foot { background: var(--cream); border-top: 2px solid var(--ink); padding: 0 16px 36px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.foot .tulips { position: relative; z-index: 3; width: 104px; margin: -56px auto 10px; }
.foot .brand { display: inline-block; margin-bottom: 12px; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a, .foot nav span { padding: 6px 0; }

@media (min-width: 760px) {
  .top { padding: 16px 32px; }
  .brand { font-size: 17px; }
  .top-cta { display: inline-block; }
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-text { order: -1; }
    .perks ul { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
  .book h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 360px) { .book .btn { font-size: 14px; padding: 0 6px; } .book h3 { font-size: 15px; } }

/* En-tête : trois pages coloriées en éventail */
.fan { display: flex; justify-content: center; align-items: center; padding: 6px 0 4px; }
.fan a { display: block; width: 38%; max-width: 200px; margin: 0 -4%; background: var(--white); border: 3px solid var(--white); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; transition: transform .2s ease; position: relative; }
.fan a:nth-child(1) { transform: rotate(-8deg) translateY(10px); z-index: 1; }
.fan a:nth-child(2) { transform: rotate(1deg); z-index: 2; width: 42%; max-width: 230px; }
.fan a:nth-child(3) { transform: rotate(8deg) translateY(10px); z-index: 1; }
.fan a:hover, .fan a:focus { transform: rotate(0) translateY(-6px) scale(1.04); z-index: 3; }
.fan img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.fan span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 8px; font-family: var(--round); font-weight: 700; font-size: 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; color: var(--ink); }

/* Avant / après glissable */
.ba-sec { background: var(--lilac-soft); padding: 52px 0 60px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; }
.ba-sec .title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 8px; }
.ba-sec .lead { color: var(--ink-soft); margin: 0 auto 26px; max-width: 32em; }
.ba-grid { display: grid; gap: 28px; }
.ba-item { margin: 0 auto; width: 100%; max-width: 460px; text-align: left; }
.ba { position: relative; --pos: 50%; border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); background: var(--white); touch-action: pan-y; user-select: none; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba .ba-before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ink); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; pointer-events: none; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 10px; font-family: var(--round); font-weight: 700; font-size: 13px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; pointer-events: none; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; background: var(--yellow); }
.ba-item p { font-size: 15px; color: var(--ink-soft); margin: 14px 4px 6px; }
.ba-item a.more { font-weight: 700; color: var(--magenta-deep); text-decoration: none; margin-left: 4px; }

/* Avis */
.reviews { background: var(--cream); padding: 52px 0 60px; text-align: center; }
.reviews .title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 8px; }
.reviews .lead { color: var(--ink-soft); margin: 0 auto 26px; max-width: 34em; font-size: 15px; }
.rv-grid { display: grid; gap: 18px; text-align: left; align-items: start; }
.rv { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.rv img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.rv-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.stars { color: #f2b705; font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; text-shadow: 1px 1px 0 var(--ink); }
.rv blockquote { font-size: 16px; line-height: 1.5; margin-bottom: 12px; flex: 1; }
.rv .who { font-size: 14px; color: var(--ink-soft); }
.rv .who a { color: var(--magenta-deep); font-weight: 700; text-decoration: none; }
.reviews .all { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--magenta-deep); }

/* Texte selon l'arrivée : QR d'un livre ou visite directe */
.if-from { display: none; }
html.js-from .if-from { display: block; }
html.js-from .if-direct { display: none; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .fan a { width: 36%; max-width: none; margin: 0 -3%; }
  .fan a:nth-child(2) { width: 40%; max-width: none; }
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Stickers v3 */
.ba-sec .d6 { width: 58px; top: -34px; left: 2%; transform: rotate(-14deg); }
.ba-sec .d7 { width: 46px; top: -24px; right: 3%; transform: rotate(10deg); }
.reviews .wrap { position: relative; }
.reviews .d8 { width: 62px; top: -30px; right: 3%; transform: rotate(8deg); }
.stars-deco { display: block; width: 150px; height: auto; margin: 0 auto 10px; }
.gift-ico { display: block; width: 70px; height: auto; margin: 0 auto 10px; transform: rotate(-6deg); }
