@font-face {
  font-family: "Fredoka";
  src: url("/polices/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/polices/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --fond: #fbf7ee;
  --carte: #ffffff;
  --texte: #1e2a47;
  --doux: #55607a;
  --trait: #ece4d2;
  --jaune: #ffe58f;
  --jaune-clair: #fff6d1;
  --orange: #f08a24;
  --orange-fonce: #b85f0c;
  --marine: #1e2a47;
  --rayon: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #141a2b;
    --carte: #1e2640;
    --texte: #f6f1e4;
    --doux: #b3b9c9;
    --trait: #2c3553;
    --jaune-clair: #2a2f40;
    --orange-fonce: #ffb066;
    --marine: #f6f1e4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 18px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3, .marque, .telecharger, .bouton { font-family: "Fredoka", "Nunito", -apple-system, sans-serif; }
a { color: var(--orange-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.page { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
header.barre {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.marque { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 21px; }
.marque img { width: 34px; height: 34px; border-radius: 8px; }
nav.liens { display: flex; gap: 18px; font-size: 16px; flex-wrap: wrap; justify-content: flex-end; }
nav.liens a { color: var(--doux); text-decoration: none; }
nav.liens a:hover, nav.liens a[aria-current="page"] { color: var(--texte); }
@media (max-width: 520px) {
  .marque { font-size: 18px; gap: 8px; }
  .marque img { width: 28px; height: 28px; }
  nav.liens { gap: 12px; font-size: 14px; }
}

/* Accueil */
.heros { text-align: center; padding: 48px 0 36px; }
.heros img.icone { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 18px 40px -16px rgba(30, 42, 71, 0.45); }
.heros h1 { font-size: clamp(36px, 7.5vw, 58px); line-height: 1.08; font-weight: 600; margin: 26px auto 14px; max-width: 14em; }
.heros p.accroche { font-size: clamp(19px, 3.4vw, 22px); color: var(--doux); margin: 0 auto; max-width: 32em; line-height: 1.5; }
.telecharger, .bouton {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.telecharger { margin-top: 28px; background: var(--marine); color: var(--fond); }
.bouton { background: var(--jaune); color: #1e2a47; }
.telecharger:hover, .bouton:hover { opacity: 0.88; }
.telecharger:focus-visible, .bouton:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.prix { color: var(--doux); font-size: 16px; margin: 12px 0 0; }

.atouts { display: flex; flex-direction: column; gap: 72px; margin: 24px 0 64px; }
.atout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.atout:nth-child(even) { grid-template-columns: 260px 1fr; }
.atout:nth-child(even) .atout-texte { order: 2; }
.atout.seul { grid-template-columns: 1fr; }
.atout-texte h2 { font-size: clamp(25px, 4.4vw, 32px); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.atout-texte p { margin: 0 0 12px; color: var(--doux); }
.atout-texte p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .atout, .atout:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .atout:nth-child(even) .atout-texte { order: 0; }
  .atout .ecran.iphone { width: min(260px, 72vw); margin: 0 auto; }
}

/* Bandeaux */
.bandeau {
  background: var(--jaune-clair); border-radius: var(--rayon);
  padding: 30px 30px 28px; margin: 0 0 56px;
}
.bandeau h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.bandeau p { margin: 0 0 12px; }
.bandeau p:last-child { margin-bottom: 0; }
.bandeau ul { margin: 0 0 12px; padding-left: 22px; }
.bandeau li { margin: 6px 0; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.tarif { background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; padding: 18px 18px 16px; }
.tarif h3 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.tarif .montant { font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 600; color: var(--orange-fonce); margin: 0 0 8px; }
.tarif p { font-size: 16px; color: var(--doux); margin: 0; }
@media (max-width: 680px) { .tarifs { grid-template-columns: 1fr; } }

/* Pages de texte */
.texte { padding: 28px 0 56px; }
.texte h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 600; line-height: 1.15; margin: 8px 0 8px; }
.texte .date { color: var(--doux); font-size: 16px; margin: 0 0 28px; }
.texte h2 { font-size: 23px; font-weight: 600; margin: 38px 0 8px; }
.texte h3 { font-size: 19px; font-weight: 600; margin: 24px 0 4px; }
.texte ul, .texte ol { padding-left: 22px; }
.texte li { margin: 5px 0; }
.encadre {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 20px 22px; margin: 20px 0;
}
.encadre p:first-child { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }
.contact { font-size: 21px; font-weight: 700; }

footer.pied {
  border-top: 1px solid var(--trait); padding: 22px 0 36px; color: var(--doux); font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
footer.pied a { color: var(--doux); }
footer.pied nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Captures de l'app */
.ecran { margin: 0; }
.ecran img { display: block; width: 100%; height: auto; background: var(--trait); }
.ecran.iphone img { border-radius: 30px; box-shadow: 0 24px 50px -22px rgba(30, 42, 71, 0.45), 0 0 0 1px var(--trait); }
.ecran.ipad img { border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(30, 42, 71, 0.45), 0 0 0 1px var(--trait); }
.vitrine { margin: 8px auto 72px; }

/* Dessins livrés */
.feuilles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 72px; }
.feuilles figure { margin: 0; text-align: center; }
.feuilles img {
  display: block; width: 100%; height: auto; border-radius: 6px; background: #fff;
  box-shadow: 0 18px 36px -20px rgba(30, 42, 71, 0.5), 0 0 0 1px var(--trait);
  transform: rotate(-1.5deg);
}
.feuilles figure:nth-child(2) img { transform: rotate(1deg); }
.feuilles figcaption { margin-top: 14px; color: var(--doux); font-size: 16px; }
@media (max-width: 520px) { .feuilles { gap: 10px; } .feuilles figcaption { font-size: 14px; } }

.badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: "Nunito", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  padding: 3px 10px; border-radius: 999px; background: var(--jaune); color: #1e2a47;
}
.atouts .atout.seul { max-width: 40em; }
.atout.centre { text-align: center; margin: 0 auto; }
.tarifs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .tarifs { grid-template-columns: 1fr; } }
.atouts { gap: 56px; }
