/* La nouvelle page d'accueil de getbeeloved.com (23 novembre) : l'esprit du pré de l'invitation (planche SI-Pre3).
   Gaegu pour les titres, Nunito pour le texte ; fond crème clair, encre, ciel, pré, miel qui surligne un mot.
   Les décors (img/*.svg) viennent de scripts/site/decor.js, les téléphones de scripts/site/telephones.swift. */

@font-face { font-family: Gaegu; src: url(fonts/gaegu-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/nunito-extrabold.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --page: #FFFDF9;
  --ink: #2B2A28;
  --sec: #5F5A52;
  --miel: #F5B731;
  --rose: #F7BFCD;
  --lilas: #D2C2F0;
  --ciel-haut: #CFE6F8;
  --ciel-bas: #E6F2FB;
  --herbe: #AFD793;
  --hand: Gaegu, "Chalkboard SE", "Comic Sans MS", cursive;
  --round: Nunito, ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --tel: 236px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: #AFD793; /* le vert du pré sous le pied de page et quand on tire en bas (bords.js) */ }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 var(--round);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
main { overflow-x: clip; }
h1, h2 { font-family: var(--hand); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
.ligne { display: inline-block; white-space: nowrap; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--miel); outline-offset: 4px; border-radius: 12px; }

/* le marqueur miel qui surligne un mot (comme dans l'appli) */
.mk {
  background: linear-gradient(transparent 54%, rgba(245, 183, 49, 0.55) 54%, rgba(245, 183, 49, 0.55) 90%, transparent 90%);
  padding: 0 0.12em; margin: 0 -0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* les téléphones : l'image porte déjà le cadre d'Apple */
.tel { display: block; width: var(--tel); aspect-ratio: 675 / 1380; position: relative; z-index: 3; filter: drop-shadow(0 16px 26px rgba(43, 42, 40, 0.16)); }

/* le badge d'Apple, tel quel, avec un quart de sa hauteur de libre autour */
.badge { display: inline-block; padding: 14px; margin: -14px; border-radius: 16px; line-height: 0; }
.badge img { display: block; height: 56px; width: auto; }
.gratuit { font-weight: 800; font-size: 14px; letter-spacing: 0.02em; color: var(--sec); margin-top: 14px; }

.nuage { position: absolute; filter: drop-shadow(0 2px 3px rgba(110, 150, 200, 0.28)); pointer-events: none; }
.abeille { position: absolute; pointer-events: none; }

/* ============================================================ le haut : le pré */
.une {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--ciel-haut) 0, var(--ciel-bas) 70%);
  padding: 0 20px;
}
.soleil { position: absolute; left: 0; top: 0; width: 104px; z-index: 1; }
.une .n1 { width: 92px; right: -24px; top: 122px; }
.une .n2 { width: 74px; left: -18px; top: 600px; opacity: 0.95; }
.une .n3 { display: none; }

.barre { position: relative; z-index: 4; display: flex; justify-content: center; padding-top: 26px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.logo img { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 3px 10px rgba(43, 42, 40, 0.18); }
.logo span {
  font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1; color: var(--ink);
  background: #FFFFFF; border-radius: 26px; padding: 4px 20px 8px; box-shadow: 0 4px 14px rgba(43, 42, 40, 0.12);
}
.langue { position: absolute; right: 0; top: 30px; font-size: 13px; font-weight: 800; letter-spacing: 0.03em; color: var(--ink); }
.langue .sep { opacity: 0.35; margin: 0 6px; }
.langue a { text-decoration: none; opacity: 0.6; padding: 6px 2px; }
.langue a:hover { opacity: 1; }

.une-corps { position: relative; z-index: 5; max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.une-texte { text-align: center; margin-top: 30px; max-width: 360px; }
.une h1 { font-size: 37px; }
.chapo { font-weight: 700; font-size: 17px; color: var(--sec); margin: 14px 0 26px; }
.une-tel { position: relative; margin-top: 34px; }
.une .a1 { width: 34px; left: -44px; top: 70px; transform: rotate(-8deg); }
.une .a2 { width: 40px; right: -50px; top: 190px; transform: scaleX(-1) rotate(-6deg); }

/* le pré : le fond derrière le téléphone, une rangée de fleurs devant son bas */
.pre { position: absolute; left: 0; right: 0; bottom: 0; height: 236px; background: url(img/pre-fond.svg) repeat-x center bottom / auto 100%; z-index: 2; }
.une .pre { bottom: 26px; }
.pre-devant { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; z-index: 4;
  background: linear-gradient(transparent calc(100% - 7px), #FFFDF9 calc(100% - 7px)), url(img/bord.svg) repeat-x 0 100% / 240px 26px, url(img/pre-devant.svg) repeat-x center bottom 14px / auto 118px, linear-gradient(transparent 70%, var(--herbe) 70%); }
.une-corps { padding-bottom: 0; }
.une-tel { margin-bottom: -40px; }
.une::after { content: ""; display: block; height: 70px; }

/* ============================================================ les parties */
.partie { padding: 84px 20px 0; }
.duo { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.texte { text-align: center; max-width: 360px; }
.texte h2 { font-size: 38px; }
.texte p { font-size: 17px; color: var(--sec); margin-top: 12px; }
.centre { margin: 0 auto; }

/* une scène : le téléphone et son décor, jamais derrière un texte */
.scene { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.scene .forme { position: absolute; z-index: 0; pointer-events: none; }
.rose .forme { width: 300px; height: 330px; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-8deg); background: #FDE7EC; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
.ciel .forme { width: 310px; height: 330px; left: 50%; top: 48%; transform: translate(-50%, -50%) rotate(4deg); background: #E2F0FA; border-radius: 50% 50% 44% 56% / 58% 46% 54% 42%; }
.ciel .c1 { width: 92px; left: calc(50% - 176px); top: 54px; z-index: 1; }
.ciel .c2 { width: 70px; left: calc(50% + 104px); top: 168px; z-index: 4; }
.lilas .forme { width: 310px; height: 340px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(6deg); background: #EFE8FB; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; }
.juge { position: absolute; z-index: 4; width: 112px; left: calc(50% - 192px); bottom: -18px; filter: drop-shadow(0 8px 14px rgba(43, 42, 40, 0.14)); }
.partie.collines { padding-bottom: 0; background: linear-gradient(transparent calc(100% - 7px), #FFFDF9 calc(100% - 7px)), url(img/bord.svg) repeat-x 0 100% / 240px 26px, url(img/collines.svg) repeat-x center bottom 12px / auto 150px, linear-gradient(transparent calc(100% - 20px), #D3EBBD calc(100% - 20px)); }
.partie.collines .scene { padding-bottom: 26px; }
.miel .forme { width: 300px; height: 320px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-5deg); background: #FFF4D2; border-radius: 52% 48% 60% 40% / 48% 58% 42% 52%; }
.miel .abeille { z-index: 4; width: 58px; left: calc(50% - 178px); top: 18px; transform: rotate(-10deg); }
.miel .vol { position: absolute; z-index: 1; width: 150px; left: calc(50% - 160px); top: 70px; transform: rotate(18deg); }

/* les dix fleurs */
/* vos deux notes côte à côte (Ma note, et la page « Nous » de l'autre) */
.paire { position: relative; display: flex; justify-content: center; align-items: flex-start; margin: 30px auto 0; padding: 10px 0; max-width: 1040px; }
.paire .forme { position: absolute; z-index: 0; pointer-events: none; }
.paire .f-rose { width: 210px; height: 300px; left: calc(50% - 196px); top: 40px; transform: rotate(-8deg); background: #FDE7EC; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
.paire .f-ciel { width: 210px; height: 300px; left: calc(50% - 14px); top: 70px; transform: rotate(6deg); background: #E2F0FA; border-radius: 50% 50% 44% 56% / 58% 46% 54% 42%; }
.paire figure { margin: 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.paire .tel { --tel: 168px; }
.paire .p1 { margin-right: -8px; transform: rotate(-3deg); }
.paire .p2 { margin-left: -8px; margin-top: 26px; transform: rotate(3deg); z-index: 2; }
.paire figcaption {
  margin-top: 14px; font-family: var(--hand); font-weight: 700; font-size: 18px; line-height: 1.1;
  background: #FFFFFF; border-radius: 16px; padding: 4px 14px 6px; box-shadow: 0 3px 10px rgba(43, 42, 40, 0.08); white-space: nowrap;
}
.humeurs { list-style: none; margin: 26px auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px; max-width: 340px; }
.humeurs li { display: flex; flex-direction: column; align-items: center; font-family: var(--hand); font-weight: 700; font-size: 15px; line-height: 1.1; color: var(--ink); }
.humeurs img { width: 46px; height: 46px; margin-bottom: 4px; }
.humeurs li:nth-child(odd) img { transform: rotate(-8deg); }
.humeurs li:nth-child(even) { margin-top: 10px; }
.humeurs li:nth-child(even) img { transform: rotate(7deg); }

/* ============================================================ les jeux */
.jeux .texte { margin-bottom: 30px; }
.jeux .rangee-cadre { position: relative; margin-inline: calc(50% - 50vw); }   /* d'un bord de l'écran à l'autre : on voit le jeu d'avant et le suivant (23 novembre) */
.jeux .rangee-cadre::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 100vw; max-width: 1440px; height: 82%;
  background: url(img/pois.svg) repeat center / 200px; opacity: 0.9; z-index: 0;
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 70%, transparent); mask: linear-gradient(transparent, #000 16%, #000 70%, transparent);
}
/* les six jeux : une rangée qui défile de côté au doigt, un téléphone centré à la fois, le suivant qui dépasse */
.rangee {
  --jeu: 206px;
  position: relative; z-index: 1; list-style: none; margin: 0; display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 34px calc(50% - var(--jeu) / 2) 24px; scroll-padding-inline: calc(50% - var(--jeu) / 2);
  scrollbar-width: none;
}
.rangee::-webkit-scrollbar { display: none; }
.rangee:focus-visible { outline-offset: -3px; }
.rangee li { flex: 0 0 var(--jeu); scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.rangee .tel { --tel: var(--jeu); }
.rangee .nom {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--hand); font-weight: 700; font-size: 18px; line-height: 1.1;
  background: #FFFFFF; border-radius: 18px; padding: 5px 14px 6px 6px; box-shadow: 0 3px 10px rgba(43, 42, 40, 0.08); white-space: nowrap;
}
.rangee .ic { width: 32px; height: 32px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rangee .ic img { width: 22px; height: 22px; }


/* ============================================================ la fin : le pré encore */
.fin {
  position: relative; overflow: hidden; margin-top: 90px; text-align: center;
  background: linear-gradient(to bottom, var(--page) 0, var(--ciel-bas) 30%, var(--ciel-haut) 100%);
  padding: 70px 20px 0;
}
.fin-texte { position: relative; z-index: 3; }
.fin h2 { font-size: 40px; margin-bottom: 30px; }
.fin::after { content: ""; display: block; height: 250px; }
.fin .pre { height: 240px; }
.fin .f1 { width: 86px; left: -18px; top: 40px; }
.fin .f2 { width: 70px; right: -14px; top: 250px; }
.fin .a3 { width: 34px; left: 12%; bottom: 196px; z-index: 3; transform: rotate(-8deg); }
.fin .a4 { width: 30px; right: 14%; bottom: 228px; z-index: 3; transform: scaleX(-1); }

.bas { background: var(--herbe); color: var(--ink); text-align: center; padding: 8px 20px 34px; font-size: 15px; }
.bas nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.bas a { font-weight: 800; text-decoration: none; padding: 8px 0; }
.bas a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bas p { margin-top: 8px; font-weight: 700; opacity: 0.8; }

/* ============================================================ ordinateur */
@media (min-width: 900px) {
  :root { --tel: 300px; }
  .soleil { width: 150px; }
  .une .n1 { width: 130px; right: 6%; top: 40px; }
  .une .n2 { width: 96px; left: 4%; top: 330px; }
  .une .n3 { display: block; width: 76px; right: 30%; top: 150px; opacity: 0.9; }
  .barre { max-width: 1120px; margin: 0 auto; }
  .langue { top: 32px; right: 0; font-size: 14px; }
  .une-corps { flex-direction: row; justify-content: center; align-items: flex-start; gap: 70px; }
  .une-texte { text-align: left; max-width: 560px; margin-top: 120px; }
  .une h1 { font-size: 58px; }
  .chapo { font-size: 20px; margin: 18px 0 32px; }
  .une-tel { margin-top: 30px; }
  .une-tel .tel { --tel: 320px; }
  .une .a1 { width: 42px; left: -86px; top: 120px; }
  .une .a2 { width: 46px; right: -70px; top: 300px; }
  .pre { height: 300px; }
  .pre-devant { height: 160px; background-size: auto, 240px 26px, auto 150px, auto; }

  .partie { padding-top: 120px; }
  .duo { flex-direction: row; justify-content: center; gap: 110px; }
  .duo.inverse { flex-direction: row-reverse; }
  .texte { text-align: left; max-width: 460px; }
  .centre { text-align: center; }
  .texte h2 { font-size: 54px; }
  .texte p { font-size: 20px; margin-top: 16px; }
  .rose .forme, .lilas .forme, .miel .forme { width: 400px; height: 440px; }
  .ciel .forme { width: 440px; height: 440px; }
  .ciel .c1 { width: 120px; left: calc(50% - 250px); top: 70px; }
  .ciel .c2 { width: 92px; left: calc(50% + 150px); top: 240px; }
  .juge { width: 176px; left: calc(50% - 310px); bottom: -10px; }
  .partie.collines { background-size: auto, 240px 26px, auto 190px, auto; }
  .partie.collines .texte { margin-bottom: 120px; }
  .miel .abeille { width: 74px; left: calc(50% - 270px); top: 40px; }
  .miel .vol { width: 190px; left: calc(50% - 240px); top: 110px; }
  .paire { margin-top: 40px; }
  .paire .tel { --tel: 280px; }
  .paire .p1 { margin-right: 26px; }
  .paire .p2 { margin-left: 26px; margin-top: 40px; }
  .paire .f-rose { width: 360px; height: 480px; left: calc(50% - 360px); top: 60px; }
  .paire .f-ciel { width: 360px; height: 480px; left: calc(50% + 10px); top: 110px; }
  .paire figcaption { font-size: 22px; margin-top: 20px; }
  .humeurs { max-width: 820px; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 50px; }
  .humeurs img { width: 56px; height: 56px; }
  .humeurs li { font-size: 17px; }

  .rangee { --jeu: 220px; gap: 24px; }
  .rangee .nom { font-size: 20px; }

  .fin { padding-top: 110px; margin-top: 130px; }
  .fin h2 { font-size: 56px; }
  .fin::after { height: 320px; }
  .fin .pre { height: 300px; }
  .fin .f1 { width: 120px; left: 8%; top: 120px; }
  .fin .f2 { width: 96px; right: 10%; top: 60px; }
  .fin .a3 { width: 42px; left: 26%; bottom: 250px; }
  .fin .a4 { width: 38px; right: 28%; bottom: 280px; }
}

/* assez large pour les six d'un coup : plus de défilement */
@media (min-width: 1240px) {
  .rangee .copie { display: none; }
  .rangee { --jeu: 176px; gap: 22px; justify-content: center; overflow: visible; padding: 40px 20px 24px; }
  .rangee .nom { font-size: 17px; padding-right: 12px; }
  .rangee .ic { width: 28px; height: 28px; }
  .rangee .ic img { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
  :root { --tel: 216px; }
  .une h1, .fin h2 { font-size: 35px; }
  .texte h2 { font-size: 34px; }
  .rangee { --jeu: 190px; }
}
