/* Brikothèque – site vitrine. Couleurs et police de l'appli (thème jour « Plaque de base »). */
@view-transition { navigation: auto; }

:root {
  --orange: #F57C1F;
  --orange-deep: #B84A0A;
  --blue: #2E6FD8;
  --blue-deep: #1F4E9E;
  --yellow: #FFC21A;
  --yellow-deep: #C99300;
  --ink: #2B2118;
  --on-orange: #1A1206;
  --cream: #FFF6EC;
  --card: #FFFFFF;
  --line: #F1DCC6;
  --line-strong: #D9BFA6;
  --muted: #6E5A4A;
  --peach: #FFE3D0;
  --peach-ink: #5A2600;
  --sky: #DCE8FF;
  --sky-ink: #0F2E66;
  --butter: #FFF0B8;
  --butter-ink: #4A3600;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--orange-deep); }
a:hover { color: #7A3306; }
h1, h2, h3 { line-height: 1.08; font-weight: 900; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* ---------- en-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo svg { width: 34px; height: 34px; }
.nav-spacer { flex: 1; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--line-strong); background: var(--card); border-radius: 14px; cursor: pointer; color: var(--ink); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 2px solid var(--line); padding: 8px 16px 18px; flex-direction: column; gap: 4px; }
.menu.open { display: flex; }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 800; color: var(--ink); text-decoration: none; border-radius: 12px; }
.menu a[aria-current="page"] { background: var(--peach); color: var(--peach-ink); }
.menu .btn { justify-content: center; margin-top: 8px; }
@media (min-width: 860px) {
  .menu-btn { display: none; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; background: none; gap: 6px; }
  .menu a { padding: 0 12px; }
  .menu a[aria-current="page"] { background: none; color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
  .menu .btn { margin: 0 0 0 10px; }
}

/* ---------- boutons en relief, comme dans l'appli */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 900; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.btn-orange { background: var(--orange); color: var(--on-orange); box-shadow: 0 5px 0 var(--orange-deep); }
.btn-orange:hover { color: var(--on-orange); transform: translateY(-2px); box-shadow: 0 7px 0 var(--orange-deep); }
.btn-white { background: var(--card); color: var(--ink); border: 2px solid var(--line-strong); box-shadow: 0 5px 0 var(--line); }
.btn-white:hover { color: var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 #000; }
.btn-ink:hover { color: var(--cream); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--orange-deep); }
.btn-big { min-height: 60px; font-size: 19px; padding: 0 30px; }

.pill { display: inline-flex; align-self: flex-start; background: var(--butter); color: var(--butter-ink); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.muted { color: var(--muted); }

/* ---------- accueil */
.hero { padding: 40px 0 48px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(38px, 9vw, 66px); letter-spacing: -.5px; }
.hero h1 span { color: var(--orange-deep); }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; }
}

.brix-stage { display: flex; flex-direction: column; align-items: center; z-index: 2; }
@media (min-width: 520px) { .brix-stage { margin-right: -34px; } }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 20px 20px 20px 4px; padding: 12px 16px; font-weight: 800; box-shadow: 0 5px 0 var(--line); max-width: 240px; min-height: 52px; transition: opacity .3s ease; }
.bubble.peach { background: var(--peach); color: var(--peach-ink); border-color: transparent; }
.bubble.sky { background: var(--sky); color: var(--sky-ink); border-color: transparent; }
.bubble.fade { opacity: 0; }
.plate { width: 200px; height: 200px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 -10px 0 #2558B0; display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.plate svg { width: 180px; height: 180px; }

/* Brix : respiration, clignement, main qui salue, petit saut au survol */
.brix { animation: breathe 3.4s ease-in-out infinite; transform-origin: 100px 186px; cursor: pointer; }
.brix .eyes { transform-origin: 100px 112px; animation: blink 5.2s infinite; }
.brix .hand { transform-origin: 158px 122px; animation: wave 1.6s ease-in-out infinite; }
.brix.jump { animation: jump .5s ease; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.01, .99); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(10deg); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-22px); } 70% { transform: translateY(2px); } 100% { transform: translateY(0); } }

/* Téléphones dessinés */
.phone { width: 270px; max-width: 100%; height: 540px; background: var(--ink); border-radius: 42px; padding: 12px; box-shadow: 0 24px 48px rgba(43, 33, 24, .25); }
.phone-screen { width: 100%; height: 100%; background: var(--cream); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px 14px; font-size: 13px; }
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-fig figcaption { font-size: 13px; font-weight: 700; color: var(--muted); }
.ps-title { font-weight: 900; font-size: 15px; }
.ps-card { background: var(--card); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.ps-card .thumb { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.ps-card b { display: block; font-size: 13px; }
.ps-card small { font-size: 11px; color: var(--muted); }
.ps-say { border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; }
.stat small { font-size: 11px; font-weight: 700; }
.stat.o { background: var(--orange); color: var(--on-orange); box-shadow: 0 3px 0 var(--orange-deep); }
.stat.b { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-deep); }
.stat.y { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-deep); }
.ps-btn { border-radius: 14px; padding: 12px; text-align: center; font-weight: 900; }

/* Sections */
.band { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 860px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section h2 { font-size: clamp(30px, 5vw, 44px); }
.center { text-align: center; }
.grid4 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 0 var(--line); transition: transform .2s ease; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 28px; height: 28px; }
.icon.o { background: var(--orange); color: var(--on-orange); }
.icon.b { background: var(--blue); color: #fff; }
.icon.y { background: var(--yellow); color: var(--ink); }
.icon.k { background: var(--ink); color: var(--yellow); }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > .art { flex: 0 1 260px; display: flex; justify-content: center; margin: 0 auto; }
.split > .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split .art svg { width: 220px; height: 220px; }
.bubbles { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bubbles .bubble { max-width: 100%; }
@media (min-width: 700px) { .bubbles .bubble:nth-child(2) { margin-left: 40px; } }

.cta { background: var(--orange); border-radius: 32px; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; box-shadow: 0 8px 0 var(--orange-deep); color: var(--on-orange); }
.cta > div { flex: 1 1 300px; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; }
@media (min-width: 700px) { .cta { padding: 48px; } }

/* Fonctionnalités */
.page-head { padding: 44px 0 8px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 7vw, 56px); }
.page-head p { font-size: 19px; color: var(--muted); }
.feat-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 28px 0 72px; }
.feat-list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feat { width: 100%; text-align: left; font-family: inherit; color: var(--ink); background: var(--card); border: 3px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: 0 6px 0 var(--line); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.feat:hover { transform: translateY(-2px); }
.feat[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 6px 0 var(--orange-deep); }
.feat b { display: block; font-size: 21px; font-weight: 900; }
.feat span { display: block; margin-top: 6px; color: var(--muted); }
.feat-phone { flex: 0 0 290px; margin: 0 auto; scroll-margin-top: 84px; }
.screen[hidden] { display: none; }
.screen { display: flex; flex-direction: column; gap: 10px; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scanner { height: 200px; border-radius: 18px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.scanner div { width: 170px; height: 86px; border: 3px solid var(--yellow); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.scanner i { display: block; height: 50px; background: var(--cream); }
.wheel { width: 190px; height: 190px; border-radius: 50%; margin: 10px auto; border: 8px solid var(--ink); background: conic-gradient(var(--orange) 0 60deg, var(--blue) 60deg 120deg, var(--yellow) 120deg 180deg, var(--orange) 180deg 240deg, var(--blue) 240deg 300deg, var(--yellow) 300deg 360deg); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Télécharger */
.dl-top { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding: 44px 0 24px; }
.dl-top > .txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dl-top h1 { font-size: clamp(36px, 7vw, 56px); }
.qr { flex: 0 0 250px; margin: 0 auto; background: var(--card); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 6px 0 var(--line); }
.qr svg { width: 200px; height: 200px; }
.qr figcaption { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; }
.say-row { display: flex; align-items: center; gap: 12px; }
.say-row svg { width: 84px; height: 84px; flex: none; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--card); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 0 var(--line); }
.steps .num { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }
.steps strong { font-size: 20px; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-top: 20px; }
.faq details { background: var(--card); border-radius: 18px; padding: 4px 20px; box-shadow: 0 4px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 900; color: var(--orange-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--muted); }

/* 404 */
.lost { padding: 56px 0 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.lost svg { width: 240px; height: 240px; }
.lost h1 { font-size: clamp(34px, 7vw, 54px); }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--line); padding: 32px 0; margin-top: 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (min-width: 860px) { .site-footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
.site-footer a { color: var(--line); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .soon { color: #A99484; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .legal { flex-basis: 100%; font-size: 13px; color: #CDB8A6; }
.site-footer .brand { font-weight: 900; color: var(--cream); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.seen { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-weight: 800; }
