/* appserre — feuille de styles unique du site */

/* ---------- Couleurs et réglages ---------- */
:root {
  --navy: #092334;          /* fond de l'emblème */
  --navy-2: #0f3049;
  --blue: #4c67f2;          /* « app » du logo */
  --green: #07b47e;         /* « serre » du logo */
  --green-soft: #34d399;
  --mint: #dcf7ea;

  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --surface: #ffffff;
  --text: #0f1d2b;
  --muted: #4b5b6a;
  --border: #dfe7ec;
  --link: #3b57e8;
  --green-text: #047857;
  --tint: #eef1ff;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(9 35 52 / .05), 0 12px 32px -14px rgb(9 35 52 / .22);
  --wrap: 1140px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1824;
    --bg-soft: #0d2030;
    --surface: #112a3c;
    --text: #e8eff5;
    --muted: #a6b7c6;
    --border: #21405a;
    --link: #9fb0ff;
    --green-text: #4ade9e;
    --mint: #103a2d;
    --tint: #142748;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -16px rgb(0 0 0 / .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 6px 16px;
  padding-top: 12px; padding-bottom: 8px;
}
.brand { grid-area: brand; display: inline-flex; }
.brand img { width: 136px; height: auto; }
.site-nav, .doc-tabs {
  /* menu qui défile sur petit écran : le bord droit s'estompe pour le signaler */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.site-nav { grid-area: nav; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-nav a {
  display: block; padding: 6px 10px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: var(--bg-soft); }
.lang-switch { grid-area: lang; justify-self: end; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.lang-switch a {
  min-width: 38px; padding: 4px 8px; border-radius: 999px; text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(9 35 52 / .15); }

@media (min-width: 900px) {
  .site-header__bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav lang"; padding-top: 14px; padding-bottom: 14px; }
  .brand img { width: 162px; }
  .site-nav { justify-self: center; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 760px) { .doc-tabs { -webkit-mask-image: none; mask-image: none; } }
.site-nav ul::after, .doc-tabs ul::after { content: ""; flex: none; width: 24px; }
@media (min-width: 900px) { .site-nav ul::after { display: none; } }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: var(--green-soft); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--large { font-size: 1.15rem; min-height: 58px; padding: 14px 28px; }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

.store {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 10px 20px; border-radius: 14px;
  background: #0b0f14; color: #fff; font-weight: 700; text-decoration: none; border: 1px solid #2a3440;
}
.store .ico { fill: currentColor; width: 1.1em; height: 1.1em; }
.store--bientot { background: transparent; color: inherit; border: 2px dashed currentColor; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p:last-child { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

/* ---------- Accueil : bandeau ---------- */
.hero {
  background:
    radial-gradient(640px 420px at 8% 0%, rgb(76 103 242 / .32), transparent 70%),
    radial-gradient(520px 380px at 0% 110%, rgb(7 180 126 / .16), transparent 70%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
@media (max-width: 899px) {
  /* sur mobile l'emblème est en haut : on garde un fond uni derrière lui */
  .hero { background: radial-gradient(520px 380px at 0% 110%, rgb(7 180 126 / .16), transparent 70%), var(--navy); }
}
.hero__grid { display: grid; gap: 8px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--green-soft); }
.hero .lead { color: #c4d3e0; }
.hero .eyebrow { color: var(--green-soft); }
.hero__art { order: -1; justify-self: center; width: min(62vw, 260px); }
.hero__art img {
  width: 100%;
  /* fond de l'image fondu dans le bandeau */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 72px; padding-bottom: 88px; }
  .hero__art { order: 0; width: 100%; max-width: 420px; justify-self: end; }
}

/* ---------- Accueil : principes ---------- */
.principle__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--mint); color: var(--green-text);
}
.principle__icon .ico { width: 26px; height: 26px; }
.principle:nth-child(even) .principle__icon { background: var(--tint); color: var(--link); }

/* ---------- Cartes d'applis ---------- */
.app-card { display: flex; flex-direction: column; position: relative; }
.app-card__icon { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 8px 20px -10px rgb(9 35 52 / .5); }
.app-card h3 { font-size: 1.45rem; margin-bottom: 2px; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-card__kind { font-weight: 700; color: var(--green-text) !important; margin-bottom: 12px; }
.app-card__price { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--text) !important; }
.app-card .more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--link); }
.app-card:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); }
.app-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.app-card a:focus-visible { outline: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.tags li {
  font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted);
}

/* ---------- Accueil : bande « vos données » ---------- */
.band { background: var(--navy); color: #dbe6ef; }
.band h2, .band h3 { color: #fff; }
.band .section__head p:last-child { color: #b7c8d6; }
.band .eyebrow { color: var(--green-soft); }
.flow { padding: 26px; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.flow .ico { width: 34px; height: 34px; color: var(--green-soft); margin-bottom: 14px; }
.flow p { margin: 0; color: #b7c8d6; }
.nope { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 36px 0 0; }
.nope li {
  padding: 8px 16px 8px 36px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18);
  font-weight: 700; color: #fff; position: relative;
}
.nope li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 2px; margin-top: -1px;
  background: var(--green-soft); border-radius: 2px;
}

/* ---------- Accueil : à propos ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about__art {
  width: 200px; aspect-ratio: 307 / 376; justify-self: center;
  background: linear-gradient(160deg, var(--green), var(--blue));
  -webkit-mask: url("/assets/img/embleme-trait.png") center / contain no-repeat;
  mask: url("/assets/img/embleme-trait.png") center / contain no-repeat;
}
.about__text p { color: var(--muted); }
.signature { font-weight: 700; color: var(--text) !important; }
@media (min-width: 900px) {
  .about { grid-template-columns: 320px 1fr; gap: 64px; }
  .about__art { width: 280px; }
}

/* ---------- Accueil : contact ---------- */
.contact { text-align: center; max-width: 760px; }
.contact p { color: var(--muted); }
.contact .actions { justify-content: center; }
.contact .btn { word-break: break-all; }
.small { font-size: .92rem; }

/* ---------- Page d'une appli ---------- */
.app-hero { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: 56px 0 48px; }
.app-hero--carnet-maison { --tint: #e3f7ee; }
.app-hero--hop-tv { --tint: #e6f3fb; }
@media (prefers-color-scheme: dark) {
  .app-hero--carnet-maison { --tint: #0f3328; }
  .app-hero--hop-tv { --tint: #0f2c40; }
}
.app-hero__grid { display: grid; gap: 24px; align-items: start; }
.app-hero__icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 14px 34px -14px rgb(9 35 52 / .55); }
.app-hero h1 { margin-bottom: .25em; }
.app-hero .eyebrow { margin-bottom: 8px; }
.app-hero .tags { margin-top: 24px; }
@media (min-width: 760px) {
  .app-hero { padding: 80px 0 64px; }
  .app-hero__grid { grid-template-columns: 148px 1fr; gap: 40px; }
  .app-hero__icon { width: 148px; height: 148px; border-radius: 36px; }
}

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.feature { padding: 22px 24px 22px 66px; position: relative; border-radius: var(--radius-sm); background: var(--bg-soft); }
.feature::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092334' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; } }
.panel { border-radius: var(--radius); padding: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel h2 { display: flex; align-items: center; gap: .4em; font-size: 1.5rem; }
.panel h2 .ico { color: var(--green-text); }
.panel p { color: var(--muted); }
.panel--privacy { background: linear-gradient(160deg, var(--mint), var(--surface) 70%); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text) !important; margin-bottom: .1em; }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092334' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft);
}
.notice > .ico { width: 28px; height: 28px; color: var(--link); margin-top: 2px; }
.notice h2 { font-size: 1.2rem; margin-bottom: .4em; }
.notice p { margin: 0; color: var(--muted); }
.notice p + p { margin-top: .6em; }

.doc-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .doc-links { grid-template-columns: repeat(3, 1fr); } }
.doc-links a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; text-decoration: none;
}
.doc-links a:hover { border-color: var(--blue); }
.doc-links .ico { color: var(--link); width: 24px; height: 24px; }
.doc-links small { display: block; font-weight: 500; color: var(--muted); word-break: break-all; }
.stack > * + * { margin-top: 28px; }

/* ---------- Pages juridiques ---------- */
.doc-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 40px 0 0; }
.doc-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); padding-bottom: 28px; margin: 0; }
.doc-app { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text); text-decoration: none; }
.doc-app img { border-radius: 12px; }
.doc-app strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.doc-app small { display: block; color: var(--muted); font-size: .85rem; }
.doc-tabs { overflow-x: auto; scrollbar-width: none; margin: -8px -20px 0; padding: 0 20px; }
.doc-tabs ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; white-space: nowrap; }
.doc-tabs a {
  display: block; padding: 10px 14px; border-bottom: 3px solid transparent;
  color: var(--muted); font-weight: 700; text-decoration: none;
}
.doc-tabs a:hover { color: var(--text); }
.doc-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--green); }

.prose { padding-top: 40px; padding-bottom: 80px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose li { margin-bottom: .45em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.doc-meta { color: var(--muted); font-size: .95rem; }
.summary {
  margin: 24px 0 8px; padding: 24px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--mint), var(--surface) 85%); border: 1px solid var(--border);
}
.summary h2 { margin-top: 0; font-size: 1.25rem; }
.summary ul { margin: 0; }
.legal-card { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); }
.legal-card p:last-child { margin: 0; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; }
.page-404 img { margin: 0 auto 24px; border-radius: 24px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #b7c8d6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr .8fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li span { display: block; font-size: .85rem; color: #8ea3b5; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__brand img { width: 150px; margin-bottom: 14px; }
.site-footer__brand p { max-width: 26em; }
.lang-list { display: flex; flex-direction: column; gap: 8px; }
.lang-list a[aria-current] { color: var(--green-soft); font-weight: 700; }
.site-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: #8ea3b5; }
.site-footer__bottom p { margin: 0; }

/* ---------- Suggestion de langue ---------- */
.lang-hint {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 460px;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; flex: 1; font-size: .95rem; }
.lang-hint a { font-weight: 700; white-space: nowrap; }
.lang-hint button {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft);
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
