@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --coral: #F26B4E;
  --coral-dark: #D9553A;
  --coral-soft: #FCE3DC;
  --cream: #FBF5EC;
  --cream-2: #F5ECDF;
  --card: #FFFFFF;
  --text: #2B1F1A;
  --text-2: #6F625B;
  --line: #EDE3D6;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(92, 64, 51, 0.06), 0 12px 32px rgba(92, 64, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20; padding: 14px 0;
  background: rgba(251, 245, 236, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; gap: 28px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.wordmark { font-weight: 800; font-size: 30px; letter-spacing: -1px; color: var(--coral); text-decoration: none; line-height: 1; }

/* Boutons */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(242, 107, 78, 0.35); }
.pill-dark { background: var(--text); color: #fff; }
.pill.small { padding: 10px 18px; font-size: 14px; }

/* Héros */
.hero { padding: 36px 0 64px; position: relative; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; z-index: -1; right: -10%; top: -10%;
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 107, 78, 0.20) 0%, rgba(242, 107, 78, 0.06) 45%, transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  background: var(--card); color: var(--coral-dark); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow);
}
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2.5px; font-weight: 800; margin: 22px 0 20px; }
h1 em { font-style: normal; color: var(--coral); }
.lead { font-size: 20px; color: var(--text-2); max-width: 520px; margin: 0 0 30px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { color: var(--text-2); font-size: 15px; font-weight: 600; }
.sources { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; color: var(--text-2); font-size: 14px; font-weight: 600; align-items: center; }
.sources > span:first-child { margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card); padding: 6px 12px 6px 6px;
  border-radius: 999px; color: var(--text); box-shadow: 0 1px 3px rgba(92,64,51,.08);
}
.chip svg { width: 22px; height: 22px; border-radius: 6px; }

/* Vitrine du téléphone (reprend le premier écran de l'onboarding) */
.showcase {
  --w: 270px;
  --side: calc(var(--w) * 0.32);
  position: relative; margin: 0 auto;
  width: calc(var(--w) + var(--side) * 2); height: calc(var(--w) * 2.02);
  display: flex; align-items: center; justify-content: center;
}
.device {
  width: var(--w); height: calc(var(--w) * 1.95); border-radius: calc(var(--w) * 0.16);
  background: #2B1E17; padding: 7px;
  box-shadow: 0 18px 40px rgba(91, 58, 36, 0.28);
}
.device .screen {
  height: 100%; background: var(--cream); border-radius: calc(var(--w) * 0.13); overflow: hidden;
}
.device .notch { width: 32%; height: 18px; border-radius: 10px; background: #2B1E17; margin: 8px auto 0; }
.device .inner { padding: 8px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.device .wordmark { font-size: calc(var(--w) * 0.082); }
.import-card { background: var(--coral); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.import-card .field, .import-card .gen {
  border-radius: 9px; padding: 7px 8px; font-size: calc(var(--w) * 0.045); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.import-card .field { background: #fff; font-weight: 600; }
.import-card .gen { background: var(--cream); color: var(--coral); font-weight: 800; text-align: center; }
.section-title { font-size: calc(var(--w) * 0.055); font-weight: 800; margin-top: 2px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-tile { display: grid; gap: 4px; min-width: 0; }
.sc-tile.pop { animation: pop 0.55s cubic-bezier(.34, 1.56, .64, 1); }
.sc-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 0.95; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-badge { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; border-radius: 6px; }
.sc-time {
  position: absolute; left: 5px; bottom: 5px; background: #FFFDF9; border-radius: 999px;
  padding: 1px 5px; font-size: calc(var(--w) * 0.036); font-weight: 700;
}
.sc-tile p {
  margin: 0; font-size: calc(var(--w) * 0.045); line-height: 1.3; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.float {
  position: absolute; z-index: 2;
  width: calc(var(--w) * var(--s)); height: calc(var(--w) * var(--s));
  border-radius: calc(var(--w) * var(--s) * 0.25); overflow: hidden;
  background: #FFFDF9; box-shadow: 0 6px 16px rgba(91, 58, 36, 0.18);
  animation: float 4.4s ease-in-out var(--d) infinite;
}
.float.round { border-radius: 50%; }
.float svg { width: 100%; height: 100%; display: block; }
.float.bubble { padding: 3px; }
.float.bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes float {
  0%, 100% { transform: translateY(-7px) rotate(-6deg); }
  50% { transform: translateY(7px) rotate(6deg); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .float, .sc-tile.pop { animation: none; }
}

/* Sections */
section { padding: 96px 0; }
section.tinted { background: var(--cream-2); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 800;
  color: var(--coral); margin-bottom: 12px;
}
.eyebrow.light { color: rgba(255,255,255,.85); }
h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -1.5px; line-height: 1.06; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.3px; }
.section-lead { color: var(--text-2); font-size: 19px; max-width: 600px; margin: 0 0 48px; }
.center { text-align: center; }
.section-lead.center, .center .section-lead { margin-left: auto; margin-right: auto; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border-radius: var(--radius); padding: 18px 18px 28px; box-shadow: var(--shadow); }
.step p { margin: 0; color: var(--text-2); }
.step .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; line-height: 1;
  background: var(--coral-soft); color: var(--coral-dark); font-weight: 800; font-size: 15px; margin: 22px 0 10px;
}
.step-visual {
  height: 190px; border-radius: 18px; background: var(--cream); display: grid; place-items: center; overflow: hidden;
  padding: 16px;
}
.share { background: #fff; border-radius: 18px; padding: 14px; width: 210px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.share-title { font-weight: 800; font-size: 13px; text-align: center; }
.share-row { display: flex; justify-content: center; gap: 12px; }
.share-row span { width: 42px; height: 42px; }
.share-row svg { width: 100%; height: 100%; }
.copy { background: var(--coral-soft); color: var(--coral-dark); border-radius: 12px; padding: 9px; font-weight: 800; font-size: 13px; text-align: center; }
.mini-import { background: var(--coral); border-radius: 18px; padding: 14px; width: 240px; color: #fff; display: grid; gap: 8px; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(242,107,78,.3); }
.mini-field { background: #fff; color: var(--text-2); border-radius: 10px; padding: 8px 8px 8px 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.mini-field b { background: var(--coral-soft); color: var(--coral-dark); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.mini-btn { background: var(--cream); color: var(--coral); border-radius: 10px; padding: 8px; text-align: center; }
.mini-recipe { background: #fff; border-radius: 18px; padding: 10px; width: 250px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; box-shadow: var(--shadow); align-items: center; }
.mini-recipe img { width: 84px; height: 110px; object-fit: cover; border-radius: 12px; }
.mini-recipe strong { font-size: 14px; line-height: 1.25; display: block; margin-bottom: 6px; }
.mini-recipe ul { margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); display: grid; gap: 3px; }
.mini-recipe li::before { content: '•'; color: var(--coral); font-weight: 800; margin-right: 6px; }

/* Fonctions en grille « bento » */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.card p { margin: 0 0 20px; color: var(--text-2); }
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: center; }
.card.wide p { margin: 0; }
.card.dark { background: var(--text); color: #fff; }
.card.dark p { color: rgba(255,255,255,.7); }
.week { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 40px 44px 1fr; gap: 12px; align-items: center; background: var(--cream); border-radius: 14px; padding: 8px 12px 8px 14px; }
.day span { font-size: 13px; font-weight: 800; color: var(--coral); }
.day img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.day b { font-size: 15px; }
.checklist { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 12px; padding: 9px 12px; font-weight: 600; font-size: 15px; }
.checklist li::before { content: ''; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); background: #fff; flex: none; }
.checklist li.done { color: var(--text-2); text-decoration: line-through; }
.checklist li.done::before { background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--coral); }
.donut-row { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.donut { width: 116px; height: 116px; flex: none; }
.donut .kcal { font: 800 24px 'Plus Jakarta Sans', sans-serif; fill: var(--text); }
.donut .kcal-unit { font: 600 12px 'Plus Jakarta Sans', sans-serif; fill: var(--text-2); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.legend b { color: var(--text); margin-left: 4px; }
.stepper { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: var(--cream); border-radius: 999px; padding: 6px; }
.stepper span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--coral); box-shadow: 0 1px 3px rgba(92,64,51,.1); }
.stepper svg { width: 16px; height: 16px; display: block; }
.stepper b { font-size: 16px; }
.folders { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.folders span { background: var(--cream); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.cook-step { margin-top: auto; background: rgba(255,255,255,.08); border-radius: 16px; padding: 16px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.cook-step span { display: block; color: var(--coral); font-size: 13px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* Prix : même esprit que la carte « Essai gratuit » du Profil dans l'app */
.trial {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--coral); color: #fff; border-radius: 36px; padding: 56px 52px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.trial .circle { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.trial .circle.big { width: 380px; height: 380px; top: -150px; right: -110px; }
.trial .circle.small { width: 200px; height: 200px; bottom: -80px; left: -60px; }
.trial-pill {
  display: inline-block; background: rgba(255, 255, 255, 0.22); border-radius: 999px;
  padding: 5px 13px; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.trial h2 { color: #fff; }
.trial-main > p { color: rgba(255, 255, 255, 0.9); margin: 0 0 30px; font-size: 18px; }
.trial-progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.trial-progress span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.trial-progress span::after {
  content: ''; position: absolute; inset: 0; background: #fff; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease-out;
}
.trial-progress span.on::after { transform: scaleX(1); }
.trial-progress.reset span::after { transition: transform 0.3s ease-in; }
.trial-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }
.trial-steps b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.trial-steps div:nth-child(2) { text-align: center; }
.trial-steps div:nth-child(3) { text-align: right; }
.trial-side { display: grid; gap: 18px; }
.fan { position: relative; height: 120px; }
.fan img {
  position: absolute; width: 96px; height: 96px; object-fit: cover; border-radius: 22px;
  border: 4px solid #fff; box-shadow: 0 10px 24px rgba(91, 58, 36, 0.25);
}
.fan img:nth-child(1) { right: 20px; top: 0; transform: rotate(12deg); }
.fan img:nth-child(2) { right: 92px; top: 10px; transform: rotate(-4deg); }
.fan img:nth-child(3) { right: 164px; top: 22px; transform: rotate(-14deg); }
.plans { display: grid; gap: 14px; }
.plan { background: #fff; color: var(--text); border-radius: 22px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 3px solid transparent; }
.plan.best { border-color: var(--text); box-shadow: 0 16px 36px rgba(43,31,26,.25); }
.plan-label { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); }
.plan strong { font-size: 28px; letter-spacing: -0.5px; }
.plan strong small { font-size: 15px; color: var(--text-2); font-weight: 600; display: inline; }
.plan > div > small { color: var(--text-2); display: block; font-size: 14px; }
.plan .tag { background: var(--coral-soft); color: var(--coral-dark); border-radius: 999px; padding: 5px 11px; font-weight: 800; font-size: 13px; white-space: nowrap; }

/* Questions */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23D9553A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* Dernier encart */
.closing { padding-top: 0; }
.closing-card { background: var(--coral-soft); border-radius: 36px; padding: 56px 24px; text-align: center; }
.closing-photos { display: flex; justify-content: center; margin-bottom: 26px; }
.closing-photos img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid var(--cream); margin: 0 -10px; }
.closing-photos img:nth-child(2) { transform: translateY(-10px); z-index: 1; position: relative; }
.closing-card p { color: var(--text-2); font-size: 18px; margin: 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: 30px 20px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; }
.legal h2 { font-size: 24px; letter-spacing: -0.3px; margin: 36px 0 10px; }
.legal p, .legal li { color: #4A3D36; }
.legal .updated { color: var(--text-2); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .todo { background: #FFF3C4; padding: 1px 6px; border-radius: 6px; }

@media (max-width: 960px) {
  .hero .wrap, .trial { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .top nav { display: none; }
  .top .pill.small { margin-left: auto; }
  .hero { padding-top: 16px; }
  .hero::before { width: 520px; height: 520px; right: -60%; top: 30%; }
  .showcase { --w: 205px; }
  section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .trial { padding: 40px 22px; border-radius: 28px; gap: 32px; }
  .trial-steps { font-size: 13px; gap: 8px; }
  .fan { height: 104px; }
  .fan img { width: 82px; height: 82px; }
  .fan img:nth-child(1) { right: auto; left: 140px; }
  .fan img:nth-child(2) { right: auto; left: 74px; }
  .fan img:nth-child(3) { right: auto; left: 8px; }
  .plan strong { font-size: 24px; }
}

/* Mode cuisine : carte pleine largeur, texte à gauche et étape à droite */
.card.full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.card.full p { margin: 0; }
.card.full .cook-step { margin: 0; font-size: 22px; padding: 22px 24px; }
.mini-field b { flex: none; }
@media (max-width: 680px) {
  .card.full { grid-template-columns: 1fr; }
  .card.full .cook-step { font-size: 18px; }
}

/* Page bêta (accès équipe) */
.pill-soft { background: var(--coral-soft); color: var(--coral-dark); }
.beta-steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.beta-steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 24px 24px 26px 76px; box-shadow: var(--shadow); position: relative; }
.beta-steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 24px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.beta-steps h2 { margin: 4px 0 6px; font-size: 22px; }
.beta-steps p { margin: 0 0 14px; }
.beta-steps .pill { margin: 0 8px 8px 0; }
.beta-or { margin-top: 18px !important; }
.beta-qr { border-radius: 18px; background: #fff; padding: 10px; border: 1px solid var(--line); }
@media (max-width: 680px) {
  .beta-steps li { padding: 70px 20px 22px; }
  .beta-steps li::before { left: 20px; top: 20px; }
}
