/* caroule — site vitrine et pages légales. Même direction artistique que l'app (« sticker de nuit »). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --ink: #0C0A18; --night: #15122A; --raised: #241F40; --line: #4A4470; --text: #FFFFFF; --soft: #C9C3E6; --muted: #A9A3C9;
  --paper: #FFFFFF; --paper-soft: #4A4560; --lime: #C6FF3D; --pink: #FF4FA3; --orange: #FFB020; --violet: #9B6BFF; --cyan: #3DE0F5; --red: #FF3B5C;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.55 var(--body); }
a { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* en-tête */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.logo {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--lime); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 16px; padding: 7px 14px 7px 10px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
  font: 800 22px/1 var(--display); letter-spacing: -.5px;
}
.logo svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a { color: var(--soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar nav a:hover { color: var(--lime); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px;
  border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 17px var(--body); text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.white { background: var(--paper); color: var(--ink); }

/* héros */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 40px 0 70px; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 800; }
.hero h1 .aside { font-size: .5em; font-weight: 700; color: var(--pink); white-space: nowrap; vertical-align: .25em; }
.hero h1 em { white-space: nowrap; font-style: normal; background: var(--lime); color: var(--ink); padding: 0 .15em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { margin: 22px 0 28px; font-size: 20px; color: var(--soft); max-width: 32em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { padding: 5px 12px; border-radius: 999px; border: 2px solid var(--line); color: var(--soft); font-weight: 700; font-size: 14px; }

.crew { position: relative; aspect-ratio: 1; }
.crew .card {
  position: absolute; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 3px solid var(--ink);
  border-radius: 30%; box-shadow: 5px 5px 0 var(--ink);
}
.crew .card svg { width: 76%; height: 76%; overflow: visible; }
.crew .c1 { width: 42%; height: 42%; left: 4%; top: 6%; transform: rotate(-8deg); background: var(--lime); }
.crew .c2 { width: 34%; height: 34%; right: 6%; top: 2%; transform: rotate(7deg); }
.crew .c3 { width: 36%; height: 36%; left: 30%; top: 40%; transform: rotate(4deg); background: #FFE7F3; }
.crew .c4 { width: 28%; height: 28%; right: 2%; bottom: 10%; transform: rotate(-6deg); background: #DDF8FF; }
.crew .c5 { width: 26%; height: 26%; left: 2%; bottom: 4%; transform: rotate(9deg); background: #FFF3D6; }
.crew .bubble {
  position: absolute; right: 8%; top: 40%; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 8px 12px; font: 800 15px var(--display); box-shadow: 3px 3px 0 var(--ink); transform: rotate(3deg);
}

/* sections */
section { padding: 70px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; max-width: 40em; }
.section-head p { color: var(--soft); font-size: 18px; }
.kicker { color: var(--lime); font: 800 13px var(--body); text-transform: uppercase; letter-spacing: .12em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 22px; border-radius: 26px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; gap: 10px; }
.feature:nth-child(odd) { transform: rotate(-.6deg); }
.feature:nth-child(even) { transform: rotate(.6deg); }
.feature p { color: var(--paper-soft); font-size: 15px; }
.feature .icons { display: flex; flex-wrap: wrap; gap: 6px; }
.feature .icons span { width: 46px; height: 46px; border-radius: 15px; background: #F4F1FC; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.feature .icons svg { width: 34px; height: 34px; overflow: visible; }
.feature .big { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); }
.feature .big svg { width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.install { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.install article { padding: 22px; border-radius: 26px; background: var(--raised); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.install h3 { margin-bottom: 14px; }
.install ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.install li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.install li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font: 800 16px var(--display); }
.install b { color: var(--text); }

.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.plain ul { margin: 0; padding-left: 20px; color: var(--soft); display: grid; gap: 8px; }
.plain b { color: var(--text); }

details { border: 2.5px solid var(--ink); background: var(--raised); border-radius: 18px; padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); }
details + details { margin-top: 12px; }
summary { cursor: pointer; font: 800 18px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lime); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--soft); }

.cta-band { margin: 20px 0 0; padding: 34px; border-radius: 30px; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band .btn { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 var(--paper); border-color: var(--ink); }

footer { padding: 40px 0 50px; color: var(--muted); font-size: 14px; border-top: 2px solid var(--raised); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--soft); }

/* pages légales */
.legal { max-width: 760px; padding: 20px 0 40px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 10px; }
.legal h2 { font-size: 24px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal b { color: var(--text); }
.legal .todo { background: var(--orange); color: var(--ink); padding: 0 6px; border-radius: 6px; font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--raised); color: var(--soft); vertical-align: top; }
.legal th { color: var(--lime); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.legal .table { overflow-x: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .crew { max-width: 360px; width: 100%; margin: 0 auto; order: -1; }
  .bar nav { display: none; }
  section { padding: 50px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* téléphones et images de l'app */
.showcase { position: relative; display: flex; justify-content: center; padding: 10px 40px; }
.phone { width: min(300px, 100%); padding: 9px; background: var(--ink); border: 3px solid var(--ink); border-radius: 44px; box-shadow: 8px 8px 0 #000; }
.phone img, .phone video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 35px; background: #15122A; }
.showcase .phone { transform: rotate(3deg); }
.showcase .card {
  position: absolute; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 3px solid var(--ink);
  border-radius: 30%; box-shadow: 5px 5px 0 var(--ink);
}
.showcase .card svg { width: 76%; height: 76%; overflow: visible; }
.showcase .f1 { width: 120px; height: 120px; left: 0; top: 12%; transform: rotate(-9deg); background: var(--lime); }
.showcase .f2 { width: 92px; height: 92px; right: 0; top: 4%; transform: rotate(8deg); }
.showcase .f3 { width: 104px; height: 104px; right: 4px; bottom: 10%; transform: rotate(-5deg); background: #FFE7F3; }
.showcase .bubble {
  position: absolute; left: 8px; bottom: 20%; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 8px 12px; font: 800 15px var(--display); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg);
}
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) and (min-width: 721px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure:nth-child(4) .phone { transform: rotate(-1.5deg); }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery figure:nth-child(1) .phone { transform: rotate(-2deg); }
.gallery figure:nth-child(3) .phone { transform: rotate(2deg); }
.gallery figcaption { text-align: center; color: var(--soft); font-size: 15px; max-width: 260px; }
.gallery figcaption b { display: block; color: var(--text); font: 800 20px var(--display); margin-bottom: 2px; }
@media (max-width: 760px) {
  .showcase { padding: 10px 24px; }
  .showcase .phone { width: 230px; }
  .showcase .f1 { width: 86px; height: 86px; }
  .showcase .f2 { width: 70px; height: 70px; }
  .showcase .f3 { width: 76px; height: 76px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .phone { width: 240px; }
}

