/* Polices hébergées sur le serveur (plus de requête vers Google : plus rapide et plus respectueux de la vie privée) */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brunch : jaune soleil + noir, fond blanc cassé chaud */
:root {
  --yellow: #FFC629;
  --yellow-deep: #F4B41C;
  --yellow-soft: #FFEDB3;
  --yellow-tint: #FFF7DC;
  --ink: #121212;
  --ink-2: #3A3732;
  --muted: #8C877C;
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --line: #EDEAE2;
  --orange: #FF8A1F;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .04), 0 12px 32px -12px rgba(18, 18, 18, .14);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 18, 18, .6); }
.btn-dark:hover { box-shadow: 0 16px 30px -12px rgba(18, 18, 18, .6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(18, 18, 18, .15); }
.btn-ghost:hover { background: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.nav.scrolled { background: rgba(247, 245, 240, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--yellow); border-radius: 2px; transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; box-shadow: var(--shadow); }
.nav-burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 20px; background: rgba(247, 245, 240, .97); border-bottom: 1px solid var(--line); }
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 4px; font-weight: 600; }
.nav-mobile .btn { margin-top: 8px; }

/* Accueil */
.hero { padding: 40px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(46px, 7vw, 86px); font-weight: 800; margin: 22px 0 22px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before { content: ''; position: absolute; left: -4px; right: -6px; bottom: 6%; height: 38%; background: var(--yellow); border-radius: 8px; z-index: -1; transform: rotate(-1.5deg); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 38px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.hero-facts li { padding: 0 26px; border-left: 1.5px solid #E2DDCF; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { display: block; font-family: var(--display); font-size: 34px; color: var(--ink); line-height: 1.1; margin-bottom: 2px; }

/* Entrée de l'accueil : les mots montent un par un, le surligneur passe, le reste suit */
.hero-in { animation: hero-in .8s var(--t, .6s) cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.hero-title .w > span { display: inline-block; animation: word-up .9s calc(.15s + var(--i) * .07s) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes word-up { from { transform: translateY(110%) rotate(5deg); } }
.hero-title .hl::before { transform-origin: left center; animation: hl-draw .7s .8s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes hl-draw { from { transform: rotate(-1.5deg) scaleX(0); } }

.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); animation: shine 5s 2.2s ease-in-out infinite both; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.06; container-type: inline-size; isolation: isolate; }
/* Téléphones de démonstration : cadre, barre d'état et barre d'accueil, l'écran garde ses proportions */
.device-frame { padding: 7px; border-radius: 42px; background: var(--ink); box-shadow: 0 34px 60px -24px rgba(18, 18, 18, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.device-screen { border-radius: 35px; overflow: hidden; background: #F7F5F0; }
.device-screen img { width: 100%; height: auto; }
.device-status { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 2px 18px 0 22px; font-size: 11px; background: #F7F5F0; }
.device-island { width: 31%; height: 17px; border-radius: 99px; background: var(--ink); }
.device-battery { width: 19px; height: 9px; border-radius: 3px; border: 1.5px solid var(--ink); padding: 1px; background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box; }
.device-home { height: 16px; background: #fff; display: grid; place-items: center; }
.device-home::after { content: ''; width: 36%; height: 4px; border-radius: 4px; background: var(--ink); }

/* Couches qui bougent avec la souris : --px / --py vont de -1 à 1, --d = profondeur */
.hv-orbit, .hv-phone, .hv-card { position: absolute; transform: translate(calc(var(--px, 0) * var(--d, 1) * 1cqw), calc(var(--py, 0) * var(--d, 1) * 1cqw)); }


.hv-orbit { --d: 1; left: 15cqw; top: 18cqw; width: 70cqw; height: 70cqw; animation: hv-spin 48s linear infinite; }
.hv-orbit span { position: absolute; left: 50%; top: 50%; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; transform: rotate(var(--a)) translateY(-35cqw) rotate(calc(var(--a) * -1)); }
.hv-orbit i {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font-style: normal; font-size: 4.6cqw;
  box-shadow: 0 1.6cqw 3cqw -1.4cqw rgba(18, 18, 18, .4); animation: hv-spin 48s linear infinite reverse;
}
@keyframes hv-spin { to { rotate: 360deg; } }

.hv-phone {
  --d: 1.4; left: 30cqw; top: 8.5cqw; width: 40cqw; border: 1.2cqw solid var(--ink); border-radius: 6.4cqw; overflow: hidden; background: #F7F5F0;
  box-shadow: 0 5cqw 9cqw -3cqw rgba(18, 18, 18, .55), 0 0 0 .3cqw rgba(255, 255, 255, .25);
  transform: translate(calc(var(--px, 0) * 1.4cqw), calc(var(--py, 0) * 1.4cqw)) perspective(900px) rotateY(calc(var(--px, 0) * 9deg)) rotateX(calc(var(--py, 0) * -7deg));
  rotate: -3deg; animation: hv-phone-in 1s cubic-bezier(.2, .8, .2, 1) both, hv-float 7s 1s ease-in-out infinite;
}
.hv-phone img { display: block; width: 100%; height: auto; }
.hv-status { display: flex; align-items: center; justify-content: space-between; height: 5cqw; padding: 0 3.4cqw; font-size: 1.9cqw; }
.hv-island { width: 10.5cqw; height: 3cqw; border-radius: 99px; background: var(--ink); }
.hv-battery { width: 4.2cqw; height: 2cqw; border-radius: .6cqw; border: .3cqw solid var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box; padding: .25cqw; }
@keyframes hv-phone-in { from { opacity: 0; translate: 0 8cqw; } }
@keyframes hv-float { 50% { translate: 0 -1.4cqw; } }

/* Cartes flottantes */
.hv-card {
  font-size: clamp(9px, 2.55cqw, 15px); background: #fff; border-radius: 1.3em; padding: .85em .95em; line-height: 1.3;
  box-shadow: 0 1.6em 2.6em -1.2em rgba(18, 18, 18, .38), 0 0 0 1px rgba(18, 18, 18, .04);
  animation: hv-pop .7s var(--in, .4s) cubic-bezier(.2, .9, .3, 1.35) both, hv-bob 6s calc(var(--in, .4s) * -4) ease-in-out infinite;
}
@keyframes hv-pop { from { opacity: 0; scale: .7; } }
@keyframes hv-bob { 50% { translate: 0 -.55em; } }
.hv-card b { font-family: var(--display); letter-spacing: -0.02em; }
.hv-card small { display: block; color: var(--muted); font-size: .82em; }
.hv-label { display: block; font-size: .8em; font-weight: 600; color: var(--muted); margin-bottom: .35em; }
.hv-row { display: flex; align-items: center; gap: .6em; }
.hv-row b { font-size: 1.15em; display: block; }

.hv-bubble { top: 4cqw; right: 3cqw; width: 38cqw; rotate: 2deg; border-bottom-left-radius: .35em; }
.hv-typed { font-weight: 600; font-size: 1.05em; min-height: 2.7em; }
.hv-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--ink); animation: hv-blink 1s steps(1) infinite; }
@keyframes hv-blink { 50% { opacity: 0; } }
.hv-result { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-top: .5em; padding-top: .55em; border-top: 1.5px dashed #E2DDCF; transition: opacity .3s ease, translate .3s ease; }
.hv-result b { font-size: 1.35em; }
.hv-result em { font-style: normal; font-size: .75em; font-weight: 700; background: var(--yellow-tint); color: #7A5600; padding: .3em .6em; border-radius: 99px; white-space: nowrap; }
.hv-bubble.typing .hv-result { opacity: 0; translate: 0 .4em; }

.hv-photo { top: 37cqw; left: 3cqw; width: 33cqw; rotate: -3deg; }
.hv-thumb { flex: none; width: 2.9em; height: 2.9em; border-radius: 50%; background: url(assets/welcome-vegetables.jpg) 100% 27% / 500% auto; box-shadow: 0 0 0 .2em var(--yellow); }
.hv-kcal { margin: .5em 0 .45em; color: var(--muted); font-size: .9em; }
.hv-kcal b { font-size: 2.1em; color: var(--ink); line-height: 1; }
.hv-macros { list-style: none; display: grid; gap: .35em; font-size: .78em; }
.hv-macros li { display: grid; grid-template-columns: 3.1em 1fr 2.4em; align-items: center; gap: .45em; }
.hv-macros span { color: var(--muted); font-weight: 600; }
.hv-macros i { height: .5em; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.hv-macros i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c, var(--ink)); animation: hv-grow 1.2s 1s cubic-bezier(.3, .7, .2, 1) both; }
.hv-macros li:nth-child(2) i { --c: var(--yellow-deep); }
.hv-macros li:nth-child(3) i { --c: var(--orange); }
.hv-macros em { font-style: normal; font-weight: 700; text-align: right; }
@keyframes hv-grow { from { width: 0; } }

.hv-sport { top: 57cqw; right: 3cqw; width: 30cqw; rotate: 3deg; background: var(--ink); color: #fff; }
.hv-sport .hv-label, .hv-sport small { color: rgba(255, 255, 255, .6); }
.hv-big { display: block; font-size: 2.1em; line-height: 1; color: var(--yellow); }
.hv-big small { display: inline; font-size: .45em; color: rgba(255, 255, 255, .7); font-family: var(--body); letter-spacing: 0; }
.hv-bars { display: flex; align-items: flex-end; gap: .3em; height: 2.6em; margin: .7em 0 .5em; }
.hv-bars i { flex: 1; height: var(--h); border-radius: .25em; background: rgba(255, 198, 41, .35); transform-origin: bottom; animation: hv-rise .9s cubic-bezier(.3, .7, .2, 1) both; }
.hv-bars i:nth-child(6) { background: var(--yellow); }
.hv-bars i:nth-child(1) { animation-delay: 1.1s; } .hv-bars i:nth-child(2) { animation-delay: 1.17s; } .hv-bars i:nth-child(3) { animation-delay: 1.24s; }
.hv-bars i:nth-child(4) { animation-delay: 1.31s; } .hv-bars i:nth-child(5) { animation-delay: 1.38s; } .hv-bars i:nth-child(6) { animation-delay: 1.45s; } .hv-bars i:nth-child(7) { animation-delay: 1.52s; }
@keyframes hv-rise { from { transform: scaleY(0); } }

.hv-streak { top: 81cqw; left: 6cqw; width: 31cqw; rotate: 2deg; }
.hv-flame { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--yellow-tint); font-size: 1.15em; }
.hv-days { list-style: none; display: flex; justify-content: space-between; margin-top: .65em; }
.hv-days li { display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; font-size: .72em; font-weight: 700; color: var(--muted); border: 1.5px dashed #D9D4C7; }
.hv-days li.on { background: var(--yellow); border: 0; color: var(--ink); }

/* Sections */
.section { padding: 120px 0; }
.section-tint { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 6px 12px; border-radius: 999px; }
.eyebrow-dark { background: var(--ink); color: var(--yellow); }
h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin-top: 18px; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* Grille "bento" des fonctionnalités */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card h3 { font-size: 30px; font-weight: 800; margin: 14px 0 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; background: var(--yellow-tint); color: #7A5600; padding: 6px 12px; border-radius: 999px; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-white { background: rgba(255, 255, 255, .8); color: var(--ink); }
.card-photo { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }
.photo-demo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1; }
.photo-demo img { width: 100%; height: 100%; object-fit: cover; }
.label { position: absolute; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 7px 12px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.l1 { top: 54%; left: 52%; }
.l2 { top: 30%; left: 30%; }
.l3 { top: 62%; left: 6%; }
.card-receipt { grid-column: span 2; }
.receipt { margin-top: 20px; background: var(--bg); border-radius: 18px; padding: 16px; font-size: 14px; }
.receipt-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1.5px dashed #D9D4C7; }
.receipt-line { display: flex; justify-content: space-between; padding: 7px 0; }
.receipt-total { display: flex; justify-content: space-between; border-top: 1.5px dashed #D9D4C7; margin-top: 6px; padding-top: 10px; font-weight: 700; font-family: var(--display); font-size: 18px; }
.card-dark { grid-column: span 2; background: var(--ink); color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .72); }
.barcode { position: relative; margin-top: 26px; height: 110px; background: #fff; border-radius: 16px; padding: 16px 20px; overflow: hidden; }
.bars { height: 100%; background: repeating-linear-gradient(90deg, #121212 0 3px, transparent 3px 6px, #121212 6px 7px, transparent 7px 11px, #121212 11px 15px, transparent 15px 17px); }
.scanline { position: absolute; left: 10px; right: 10px; height: 3px; top: 50%; background: var(--yellow); box-shadow: 0 0 16px 3px rgba(255, 198, 41, .8); animation: scan 2.4s ease-in-out infinite; border-radius: 3px; }
@keyframes scan { 0%, 100% { top: 18%; } 50% { top: 78%; } }
.card-phone { grid-column: span 2; display: flex; flex-direction: column; padding-bottom: 0; }
.card-yellow { background: var(--yellow); }
.card-yellow p { color: rgba(18, 18, 18, .75); }
.mini-phone { margin: 26px auto -60px; width: 70%; border: 6px solid var(--ink); border-radius: 32px; overflow: hidden; background: #F7F5F0; box-shadow: 0 20px 40px -16px rgba(18, 18, 18, .45); }
.mini-phone .device-status { height: 24px; padding: 2px 14px 0 18px; font-size: 10px; }
.mini-phone .device-island { height: 15px; }
.card-weigh { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.card-weigh .weigh-demo { margin-top: 0; }
.weigh-flames { display: flex; gap: 8px; margin-top: 16px; }
.weigh-flames span { flex: 1; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 20px; }
.weigh-flames span.off { opacity: .35; filter: grayscale(1); }
.weigh-demo { margin-top: 22px; background: var(--yellow-soft); border-radius: 20px; padding: 20px; }
.weigh-big { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.weigh-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.weigh-bar { height: 10px; background: #fff; border-radius: 6px; margin-top: 18px; overflow: hidden; }
.weigh-bar span { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.weigh-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-top: 8px; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--bg); border-radius: var(--radius); padding: 32px; position: relative; }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 26px; }
.step h3 { font-size: 26px; font-weight: 800; margin: 22px 0 10px; }
.step p { color: var(--ink-2); }

/* Galerie d'écrans */
.showcase { background: var(--yellow); padding: 120px 0 130px; overflow: hidden; position: relative; }
.phones-row { display: flex; gap: 30px; justify-content: center; align-items: flex-start; padding: 20px 20px 10px; }
.device { flex: 0 0 auto; width: clamp(180px, 16.5vw, 228px); margin: 0; }
.device .device-frame { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.device:nth-child(even) { margin-top: 44px; }
.device:hover .device-frame { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 46px 70px -26px rgba(18, 18, 18, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.device figcaption { margin-top: 18px; text-align: center; }
.device figcaption b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.device figcaption span { display: block; font-size: 13px; color: rgba(18, 18, 18, .65); margin-top: 2px; }

/* Les calculs */
.science-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.science-card { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--yellow); }
.science-card b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.science-card span { color: var(--muted); font-size: 15px; }
.disclaimer { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* FAQ */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
details { background: var(--bg); border-radius: 22px; padding: 4px 26px; transition: background .2s ease; }
details[open] { background: var(--yellow-tint); }
summary { list-style: none; cursor: pointer; font-family: var(--display); font-size: 21px; font-weight: 700; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fff; font-size: 22px; font-weight: 500; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 22px; max-width: 680px; }

/* Appel final */
.cta-section { padding: 120px 0; }
.cta { position: relative; overflow: hidden; background: var(--yellow); border-radius: 44px; padding: 80px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta > *:not(.cta-swirl) { position: relative; }
.cta-swirl { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-logo { width: min(320px, 70%); height: auto; }
.cta h2 { margin-top: 26px; }
.cta p { max-width: 560px; color: rgba(18, 18, 18, .75); font-size: 18px; margin-top: 14px; }
.cta small { margin-top: 16px; color: rgba(18, 18, 18, .65); font-size: 13px; }

/* Pied de page */
.footer { padding: 40px 0 60px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-logo { height: 28px; width: auto; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a:hover { color: var(--ink); }
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; }
.secret { color: inherit; cursor: text; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Pages légales */
.legal { padding: 40px 0 80px; }
.legal-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; margin: 18px 0 10px; }
.legal-sub { font-size: 19px; color: var(--muted); }
.legal-back { margin-left: auto; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.legal-tabs a { padding: 9px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-body { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); margin-top: 18px; color: var(--ink-2); }
.legal-body h2 { font-size: 22px; color: var(--ink); margin: 34px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.legal-intro { background: var(--yellow-tint); border-radius: 18px; padding: 16px 18px; color: var(--ink); margin-bottom: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-table td:first-child { font-weight: 600; color: var(--ink); min-width: 150px; }

/* Visuel du haut sur petit écran : textes des cartes un peu plus grands pour rester lisibles */
@container (max-width: 480px) {
  .hv-card { font-size: clamp(10px, 3cqw, 15px); }
}

/* Tablette */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .card-photo { grid-column: span 6; }
  .card-receipt, .card-dark, .card-phone { grid-column: span 3; }
  .card-weigh { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Téléphone */
@media (max-width: 720px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { height: 66px; }
  .nav-logo img { height: 28px; }
  .hero { padding: 16px 0 60px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); font-size: 13px; }
  .hero-facts li { padding: 0 12px; }
  .hero-facts strong { font-size: 28px; }
  .section, .cta-section { padding: 80px 0; }
  .showcase { padding: 80px 0 90px; }
  .bento { grid-template-columns: 1fr; }
  .card-photo, .card-receipt, .card-dark, .card-phone, .card-weigh { grid-column: auto; }
  .card-photo, .card-weigh { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card h3 { font-size: 26px; }
  .science-grid { grid-template-columns: 1fr; }
  .phones-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px; scrollbar-width: none; }
  .phones-row::-webkit-scrollbar { display: none; }
  .device { scroll-snap-align: center; width: 62vw; }
  .device:nth-child(even) { margin-top: 0; }
  .cta { padding: 56px 22px; border-radius: 32px; }
  .footer-links { margin-left: 0; flex-wrap: wrap; gap: 14px; }
  .legal-back { display: none; }
  summary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
