/* AREIPO — système de composants. Un seul fichier, zéro dépendance.
   Composants : .top (header + menu mobile) · .hero · .product-card · .feature · .shots · .faq ·
   .news · .tile · .breadcrumb · .prose · footer.site · .btn · .tag · .badge */

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #F0EDE6;
  --ink: #16181D;
  --ink-2: #4E525C;
  --ink-3: #8A8F9A;
  --line: rgba(22, 24, 29, .10);
  --accent: #1E6F6B;
  --accent-ink: #0F4A47;
  --accent-tint: #E4F1EF;
  --zmeo: #6C59FD;  --zmeo-tint: #EDEBFF;  --zmeo-ink: #3B318B;
  --bakarat: #C1262F; --bakarat-tint: #FBE9EA; --bakarat-ink: #7A1A20;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --shadow-lg: 0 24px 60px rgba(22, 24, 29, .14);
  --gutter: 16px;
  --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121317; --surface: #1B1D23; --surface-2: #22252C;
    --ink: #F2F1EC; --ink-2: #B5B8C0; --ink-3: #7E838E;
    --line: rgba(255, 255, 255, .10);
    --accent: #5FC2BC; --accent-ink: #9FE2DD; --accent-tint: #173634;
    --zmeo: #9D8FFF; --zmeo-tint: #2A2550; --zmeo-ink: #DCD1FF;
    --bakarat: #FF6B6B; --bakarat-tint: #3B1F21; --bakarat-ink: #FFC9C9;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --paper: #121317; --surface: #1B1D23; --surface-2: #22252C;
  --ink: #F2F1EC; --ink-2: #B5B8C0; --ink-3: #7E838E;
  --line: rgba(255, 255, 255, .10);
  --accent: #5FC2BC; --accent-ink: #9FE2DD; --accent-tint: #173634;
  --zmeo: #9D8FFF; --zmeo-tint: #2A2550; --zmeo-ink: #DCD1FF;
  --bakarat: #FF6B6B; --bakarat-tint: #3B1F21; --bakarat-ink: #FFC9C9;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Langue : le document porte lang=en ou lang=fr, chaque texte traduit porte .en ou .fr */
html[lang="fr"] .en { display: none !important; }
html[lang="en"] .fr { display: none !important; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-3); font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.eyebrow.zmeo { color: var(--zmeo); } .eyebrow.bakarat { color: var(--bakarat); }
.tagline { font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }

/* ---------- Header + menu mobile ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
nav.main { display: flex; align-items: center; gap: 4px; font-size: 15px; }
nav.main a { color: var(--ink-2); padding: 6px 10px; border-radius: 999px; }
nav.main a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
nav.main a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--surface-2); }
nav.main a.zmeo[aria-current="page"] { color: var(--zmeo); background: var(--zmeo-tint); }
nav.main a.bakarat[aria-current="page"] { color: var(--bakarat); background: var(--bakarat-tint); }
.lang-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; margin-left: 6px; }
.lang-toggle:hover { color: var(--ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; width: 40px; height: 40px; font: inherit; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 16px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: var(--shadow); }
  nav.main a { padding: 12px 12px; font-size: 17px; border-radius: 10px; }
  .lang-toggle { margin: 8px 0 0; align-self: flex-start; padding: 8px 14px; }
  header.top.open nav.main { display: flex; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
section.tight { padding: 48px 0; }
.hero { padding: 88px 0 64px; }
.hero .mark { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 16px; }
.hero.split .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero.split .wrap { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 650; background: var(--ink); color: var(--paper); border: 1px solid transparent; line-height: 1.2; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); opacity: 1; }
.btn.zmeo { background: var(--zmeo); color: #fff; }
.btn.bakarat { background: var(--bakarat); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.disabled { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 650; line-height: 1.1; }
.store-badge small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }
.store-badge:hover { text-decoration: none; opacity: .92; }

/* ---------- Tags / badges ---------- */
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); }
.tag.zmeo { background: var(--zmeo-tint); color: var(--zmeo-ink); }
.tag.bakarat { background: var(--bakarat-tint); color: var(--bakarat-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 3px 9px; }

/* ---------- Carte produit (le composant central) ---------- */
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-card .icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; }
.product-card .icon img, .product-card .icon svg { width: 44px; height: 44px; border-radius: 10px; }
.product-card.zmeo .icon { background: var(--zmeo-tint); }
.product-card.bakarat .icon { background: var(--bakarat-tint); }
.product-card h3 { margin: 0; font-size: 24px; }
.product-card .tagline { margin: 0; }
.product-card p { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; }
.product-card .spacer { flex: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
/* Toute la carte est cliquable : le lien principal couvre la carte, les liens secondaires passent au-dessus */
.product-card a.cover::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card .foot a { position: relative; z-index: 1; }

/* ---------- Rangée de fonctionnalités ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.feature { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.feature .glyph { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; }
.feature.zmeo .glyph { background: var(--zmeo-tint); color: var(--zmeo-ink); }
.feature.bakarat .glyph { background: var(--bakarat-tint); color: var(--bakarat-ink); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- Captures d'écran ---------- */
.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 28px; }
.shots figure { margin: 0; }
.shots .phone { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 1206 / 2622; }
.shots .phone img { width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }
.hero .shots { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.hero .shots figure:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) { .hero .shots { max-width: 420px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); max-width: 680px; }

/* ---------- Nouvelles ---------- */
.news { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 2px; }
@media (max-width: 480px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Tuiles d'action (support) ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.tile { display: block; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile strong { display: block; margin-bottom: 4px; }
.tile span { color: var(--ink-2); font-size: 14px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a::after { content: " › "; color: var(--ink-3); }

/* ---------- Pages texte ---------- */
.prose h1 { font-size: 34px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 18px; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .callout { background: var(--accent-tint); color: var(--ink); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.prose dt { color: var(--ink-3); }
.prose dd { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-2); font-weight: 650; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--surface-2); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
@media (max-width: 480px) { .prose dl { grid-template-columns: 1fr; } .prose dt { margin-top: 10px; } }

/* ---------- Pied de page ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--ink-3); font-size: 14px; background: var(--surface-2); }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
footer.site h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--ink-2); }
footer.site .brand { margin-bottom: 10px; }
footer.site .bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
@media (max-width: 720px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { footer.site .cols { grid-template-columns: 1fr; } }

/* Titres de cartes : encre, pas accent (le lien couvre la carte) */
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { text-decoration: none; }
