/* toudou · même univers que l'appli : pastel, rond, épuré.
   Polices hébergées ici (licence OFL), rien n'est chargé depuis un autre service. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("fonts/Quicksand.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("fonts/Comfortaa.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("fonts/DancingScript.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFFDFB;
  --ink: #2F3A39;
  --muted: #5C6766;
  --line: #EFE6DC;
  --orange: #EE8E3A;      /* la flamme */
  --orange-ink: #B85E17;  /* boutons et textes orange (lisibles) */
  --accent: #CC6E33;      /* mots en couleur dans les titres */
  --peach: #F9E6D9;
  --peach-2: #F8EEE5;
  --sand: #F6ECDD;
  --sage: #E4EDE0;
  --sage-ink: #4D7044;
  --teal: #DFEDEB;
  --teal-ink: #2A7570;
  --sun: #F8EDCB;
  --sun-ink: #866307;
  --phone: #22292A;
  --shadow: 0 14px 40px rgba(47, 58, 57, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 "Quicksand", -apple-system, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--orange-ink); }
h1, h2, h3 { font-family: "Fredoka", -apple-system, sans-serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.script { font-family: "Dancing Script", cursive; font-weight: 600; letter-spacing: 0; }
.citation { text-align: center; font-size: clamp(30px, 6vw, 44px); line-height: 1.2; color: var(--accent); margin: 44px 0 0; }
.kicker { margin: 0 0 8px; font: 700 13px "Quicksand", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #B25A1A; }
.lead { font: 400 18px/1.7 "Comfortaa", sans-serif; color: var(--muted); }
.center { text-align: center; }
section { padding: 0 0 100px; scroll-margin-top: 84px; }

/* Logo « toud🔥u » */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font: 600 32px "Fredoka", sans-serif; letter-spacing: -0.3px; }
.logo svg { width: 0.42em; height: 0.56em; margin: 0 0.035em; }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
header.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
nav.links { margin-left: auto; display: flex; gap: 28px; font: 600 15px "Quicksand", sans-serif; }
nav.links a { color: #4A5554; text-decoration: none; }
nav.links a:hover { color: var(--orange-ink); }
@media (max-width: 760px) { nav.links .hide-sm { display: none; } header.top .btn { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; text-decoration: none; font: 700 16px "Quicksand", sans-serif; background: var(--ink); color: var(--bg); border: 1.5px solid transparent; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); color: var(--bg); }
.btn.orange { background: var(--orange-ink); color: #fff; }
.btn.orange:hover { color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn svg { width: 15px; height: 15px; }

/* Accroche */
.hero { text-align: center; padding: 64px 0 40px; }
.hero .script { display: block; font-size: 27px; color: #B25A1A; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.07; letter-spacing: -0.025em; max-width: 15em; margin: 0 auto 22px; }
.hero .lead { max-width: 34em; margin: 0 auto 14px; font-size: 20px; }
.hero .lead.small { font-size: 16px; margin-bottom: 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Téléphones */
.phone { border-radius: 40px; padding: 9px; background: var(--phone); box-shadow: 0 26px 50px rgba(47, 58, 57, .16); }
.phone img { border-radius: 32px; }
.phone.cut { border-radius: 40px 40px 0 0; padding-bottom: 0; box-shadow: none; }
.phone.cut img { border-radius: 32px 32px 0 0; object-fit: cover; object-position: top; width: 100%; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.flotte { animation: flotte 6s ease-in-out infinite; }
.flotte.lent { animation-duration: 8s; animation-delay: -2s; }

/* Vitrine */
.vitrine { position: relative; border-radius: 40px; background: var(--peach-2); padding: 60px 20px 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: 34px; min-height: 520px; }
.vitrine::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #F3E1D2; left: 50%; top: 60px; transform: translateX(-50%); }
.vitrine .phone { position: relative; }
.vitrine .side { width: 220px; }
.vitrine .side img { height: 380px; }
.vitrine .main { width: 270px; }
.vitrine .main img { height: 470px; }
@media (max-width: 860px) { .vitrine .side { display: none; } .vitrine { min-height: 0; } }

/* Phrases qui défilent */
.bande { overflow: hidden; margin-top: 30px; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.defile { display: flex; width: max-content; gap: 14px; animation: defile 70s linear infinite; }
.defile span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; padding: 14px 24px; border-radius: 999px; font: 500 21px "Fredoka", sans-serif; }
.defile svg { width: 9px; height: 12px; }
.c1 { background: var(--teal); color: #1F4A46; } .c1 path { fill: var(--teal-ink); }
.c2 { background: var(--peach); color: #5A3214; } .c2 path { fill: #C9661C; }
.c3 { background: var(--sand); color: #574A30; } .c3 path { fill: #B07D0C; }
.c4 { background: var(--sage); color: #3F503A; } .c4 path { fill: var(--sage-ink); }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 30px 10px; }
.atouts > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 14px; text-align: center; }
.atouts > div + div { border-left: 1px solid #F1E9E1; }
.atouts b { font: 500 19px "Fredoka", sans-serif; }
.atouts span { font-size: 14px; color: var(--muted); }
.rond { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rond svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r-peach { background: #FCE8D8; } .r-peach svg { stroke: #C9661C; }
.r-teal { background: var(--teal); } .r-teal svg { stroke: var(--teal-ink); }
.r-sun { background: var(--sun); } .r-sun svg { stroke: var(--sun-ink); }
.r-sage { background: var(--sage); } .r-sage svg { stroke: var(--sage-ink); }
@media (max-width: 860px) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } .atouts > div:nth-child(3) { border-left: 0; } }

/* Cartes pastel */
.cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.carte { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 26px; padding: 24px 22px 0; overflow: hidden; min-height: 400px; transition: transform .35s ease, box-shadow .35s ease; }
.carte b { font: 500 22px/1.2 "Fredoka", sans-serif; }
.carte p { margin: 0; font-size: 15px; line-height: 1.5; color: #4A4F4E; }
.carte .ecran { margin-top: auto; align-self: center; width: 150px; border-radius: 24px 24px 0 0; padding: 6px 6px 0; background: var(--phone); transition: transform .45s ease; }
.carte .ecran img { height: 190px; width: 100%; object-fit: cover; object-position: top; border-radius: 19px 19px 0 0; }
.carte:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 22px 40px rgba(47, 58, 57, .12); color: var(--ink); }
.carte:hover .ecran { transform: translateY(-16px); }
.bg-peach { background: var(--peach); } .bg-sage { background: var(--sage); } .bg-sand { background: var(--sand); } .bg-teal { background: var(--teal); }
@media (max-width: 960px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cartes { grid-template-columns: 1fr; } }

/* Démo */
.demo { border-radius: 36px; background: var(--peach-2); padding: 54px 48px; display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.demo > div:first-child { flex: 1 1 400px; min-width: 0; }
.demo h2 { margin-bottom: 14px; }
.onglets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.onglets button { font: 700 15px "Quicksand", sans-serif; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid #E8DED3; background: var(--bg); color: var(--ink); transition: background .25s ease, color .25s ease, transform .2s ease; }
.onglets button:hover { transform: translateY(-2px); }
.onglets button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo .legende { margin: 18px 0 0; min-height: 3.2em; font: 500 19px/1.5 "Fredoka", sans-serif; }
.demo .ecran-demo { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }
.demo .ecran-demo .phone { width: 280px; }
.demo .ecran-demo img { transition: opacity .16s ease; }
.demo .ecran-demo img.fade { opacity: 0; }
@media (max-width: 760px) { .demo { padding: 36px 22px; } .demo .ecran-demo .phone { width: 240px; } }

/* Parties en deux colonnes (pro, habitudes, repas) */
.split { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.split > div { flex: 1 1 420px; min-width: 0; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 14px; }
.split .lead { margin: 0 0 22px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { background: #fff; border-radius: 18px; padding: 15px 18px; box-shadow: var(--shadow); color: var(--muted); font-size: 16px; }
.points li b { color: var(--ink); display: block; font: 500 18px "Fredoka", sans-serif; margin-bottom: 2px; }
/* Écrans d'accueil d'iPhone avec les widgets (images dessinées par l'appli). */
.intro-widgets { max-width: 640px; margin: 0 auto 40px; }
.intro-widgets .lead { margin: 12px auto 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.trio figure { margin: 0; min-width: 0; }
.trio .phone { max-width: 290px; margin: 0 auto; }
.trio figure:nth-child(2) .phone { transform: translateY(-14px); }
.trio figcaption { max-width: 290px; margin: 18px auto 0; font-size: 15px; color: var(--muted, #6F7775); text-align: center; }
.trio figcaption b { display: block; color: var(--ink, #1E2B2A); font-size: 16px; margin-bottom: 3px; }
.ecran-accueil { border-radius: 32px; overflow: hidden; padding: 12px 12px 16px; aspect-ratio: 9 / 19.5;
  background: radial-gradient(120% 60% at 15% 5%, #EDE4C8 0%, transparent 60%), radial-gradient(90% 55% at 95% 55%, #B4824C 0%, transparent 65%),
              radial-gradient(110% 60% at 5% 95%, #8E7A48 0%, transparent 60%), linear-gradient(160deg, #CFBD8C, #A3804B); }
.ecran-accueil .heure { color: #fff; font: 600 14px/1 system-ui, sans-serif; text-align: center; margin: 4px 0 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.ecran-accueil .widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ecran-accueil .widgets img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(40, 30, 10, .22)); }
.ecran-accueil .w-moyen { grid-column: span 2; }
.ecran-accueil .etiquette { color: #fff; font: 500 11px/1 system-ui, sans-serif; text-align: center; margin: -4px 0 4px; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.applis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 2px 4px; }
.appli { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.appli .ic { width: 100%; max-width: 48px; aspect-ratio: 1; border-radius: 23%; overflow: hidden; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(40, 30, 10, .18); }
.appli .ic svg { width: 100%; height: 100%; display: block; }
.appli .nom { color: #fff; font: 500 9.5px/1.1 system-ui, sans-serif; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ic-cal { background: #fff; }
.ic-cal .cal { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: system-ui, sans-serif; }
.ic-cal b { color: #E8443A; font-size: 9px; font-weight: 600; }
.ic-cal i { font-style: normal; color: #1E2B2A; font-size: 24px; font-weight: 400; margin-top: 1px; }
.ic-notes { background: #fff; } .ic-photos { background: #fff; } .ic-musique { background: linear-gradient(#FC5C6F, #F42A49); }
.ic-plans { background: #8CD48A; } .ic-mail { background: linear-gradient(#5AB0FA, #2F7BEA); }
.ic-tel { background: linear-gradient(#6BE07A, #33C24E); } .ic-messages { background: linear-gradient(#6BE07A, #33C24E); }
@media (max-width: 900px) { .trio { grid-template-columns: minmax(0, 1fr); gap: 44px; } .trio figure:nth-child(2) .phone { transform: none; } .trio .phone { max-width: 300px; } }
.duo { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.duo .rond-fond { position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 20px; left: 50%; transform: translateX(-50%); }
.duo .grand { position: relative; width: 260px; transform: translateX(-12%) rotate(-2deg); }
.duo .petit { position: absolute; width: 150px; right: 6%; bottom: 0; padding: 6px; border-radius: 26px; transform: rotate(5deg); z-index: 2; box-shadow: 0 20px 40px rgba(47, 58, 57, .25); }
.duo .petit img { border-radius: 21px; }
.duo .papier { position: absolute; width: 230px; right: 0; bottom: 0; z-index: 2; border-radius: 6px; box-shadow: 0 18px 40px rgba(47, 58, 57, .2); transform: rotate(5deg); background: #fff; }
@media (max-width: 860px) {
  .split.reverse > :first-child { order: 0; }
  .duo .grand { width: 220px; } .duo .petit { width: 125px; right: 4%; } .duo .papier { width: 170px; right: 4%; }
  .duo .rond-fond { width: 320px; height: 320px; }
}

/* Et aussi */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 34px; }
.card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Plateformes */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 34px auto 0; }
.platform { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); text-align: center; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.platform.first { border-color: var(--orange); }
.platform p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.platform .when { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--peach); color: #9A4F0B; }
@media (max-width: 720px) { .platforms { grid-template-columns: 1fr; } }

/* Offres */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 18px; justify-content: center; margin-top: 34px; }
.plan { background: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); border: 2px solid transparent; }
.plan.plus { border-color: var(--orange); }
.plan .price { font: 500 42px "Fredoka", sans-serif; margin: 8px 0 2px; }
.plan .price span { font: 600 17px "Quicksand", sans-serif; color: var(--muted); }
.plan .muted { color: var(--muted); margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: #7FAE72; }
.plan li::after { content: ""; position: absolute; left: 6px; top: 14px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan .trial { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--peach); font-weight: 600; font-size: 15px; }
.tag { display: inline-block; background: var(--orange-ink); color: #fff; font: 700 12px "Quicksand", sans-serif; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 34px auto 0; }
details { background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 10px; }
summary { font: 500 18px "Fredoka", sans-serif; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange-ink); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Dernier appel */
.final { border-radius: 30px; background: var(--sage); padding: 46px 52px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.final h2 { flex: 1 1 380px; font-size: clamp(30px, 3.6vw, 38px); }
.final h2 .script { font-size: 1.22em; color: var(--sage-ink); }
.final > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final p { margin: 0; font: 400 16px/1.6 "Comfortaa", sans-serif; color: #3F503A; }
@media (max-width: 600px) { .final { padding: 34px 26px; } }

/* Pages de texte (aide, confidentialité…) */
.page { max-width: 760px; margin: 0 auto; padding: 50px 24px 80px; }
.page h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 10px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink); }
.page .updated { color: var(--muted); font-size: 15px; }
.page .box { background: var(--peach-2); border-radius: 18px; padding: 18px 22px; margin: 22px 0; }
.page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.todo-fill { background: #FFF3C4; color: #6B4E00; padding: 0 4px; border-radius: 4px; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .logo { font-size: 24px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--orange-ink); }
footer .copy { margin-left: auto; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flotte, .defile { animation: none; }
  .carte, .carte .ecran, .btn, .onglets button { transition: none; }
}
