/* ============ Monent — feuille de style commune (accueil + applications) ============ */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #17150f;
  --muted: #6b665a;
  --border: #e8e3d6;
  --primary: #a87a12;
  --primary-soft: #f6edd6;
  --accent: #d4a62a;
  --on-primary: #ffffff;
  --shadow: 0 10px 30px rgba(40, 30, 0, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --surface: #181816;
    --text: #f1ede3;
    --muted: #a8a293;
    --border: #2c2a25;
    --primary: #e0b54a;
    --primary-soft: #2a2416;
    --accent: #e0b54a;
    --on-primary: #17150f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Thèmes : couleur d'accent par page ---------- */
/* Izikdo garde les couleurs par défaut ci-dessus. */
.theme-monent {
  --bg: #f5f6f8;
  --border: #e2e5ea;
  --primary: #2f5d8a;
  --primary-soft: #e3ecf5;
  --accent: #4a86c0;
  --shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
}
.theme-scridle {
  --bg: #f6f4fb;
  --border: #e6e0f3;
  --primary: #6a3fd6;
  --primary-soft: #ece5fb;
  --accent: #f0a83a;
  --shadow: 0 10px 30px rgba(40, 10, 90, 0.08);
}

@media (prefers-color-scheme: dark) {
  .theme-monent {
    --bg: #0d0f12;
    --border: #262b33;
    --primary: #7fb0e0;
    --primary-soft: #18222e;
    --accent: #7fb0e0;
    --on-primary: #0d0f12;
  }
  .theme-scridle {
    --bg: #0f0d16;
    --border: #2b2640;
    --primary: #a98bff;
    --primary-soft: #221b3a;
    --accent: #f0a83a;
    --on-primary: #0f0d16;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.tab-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}
.tab-button.active {
  background: var(--primary);
  color: var(--on-primary);
}

/* ---------- Contenu ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

h1, h2, h3 { line-height: 1.25; color: var(--text); }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  scroll-margin-top: 90px;
}

p { margin: 10px 0; }

ul { padding-left: 22px; margin: 10px 0; }
li { margin-bottom: 6px; }
li::marker { color: var(--primary); }

.date {
  display: inline-block;
  margin: 4px 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
}

.intro { color: var(--muted); font-size: 1.05rem; }

/* ---------- Sommaire (confidentialité) ---------- */
.toc {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--primary-soft);
}
.toc-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { color: var(--text); font-size: 0.95rem; }
.toc a:hover { color: var(--primary); }

.contact-block {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* ---------- Accueil ---------- */
.hero {
  text-align: center;
  padding: 40px 20px 50px;
}
.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: block;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.hero p {
  max-width: 520px;
  margin: 12px auto 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.section-title {
  border: none;
  padding: 0;
  text-align: center;
  margin: 0 0 20px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  text-decoration: none;
}
.link-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--primary-soft);
  margin-bottom: 14px;
}
.link-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.link-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.link-card .arrow { color: var(--primary); font-weight: 700; }

/* ---------- Suppression de compte ---------- */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.option {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin: 0;
}
.option-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.option p { margin: 0; }
.option a { font-weight: 600; word-break: break-all; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.notice p { margin: 0; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--primary);
  color: var(--on-primary);
}
.btn:hover { text-decoration: none; opacity: 0.9; }

.muted { color: var(--muted); font-size: 0.92rem; }

code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
}

/* ---------- Tableau de données (confidentialité) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.data-table th { background: var(--primary-soft); color: var(--primary); }

/* ---------- Accueil Monent ---------- */
.home main { max-width: 1080px; padding-top: 0; }
.home .header-inner { max-width: 1080px; }

.home-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(74, 134, 192, 0.5), transparent 70%),
    radial-gradient(700px 500px at 95% 100%, rgba(240, 168, 58, 0.18), transparent 70%),
    linear-gradient(135deg, #1b3a5c 0%, #12263f 55%, #0b1828 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Crect x='18' y='18' width='60' height='60' rx='15' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%);
          mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%);
}
.home-hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 20px 96px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cfe0f1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.home-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.home-hero h1 em { font-style: normal; color: #f0b84a; }
.home-hero .lead {
  max-width: 520px;
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: #b9cde2;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: #ffffff; color: #12263f; }
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-visual { position: relative; height: 320px; }
.hero-visual img { position: absolute; display: block; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.hero-visual .main-logo { width: 220px; height: 220px; border-radius: 52px; top: 40px; left: 50%; transform: translateX(-50%); }
.hero-visual .float-1 { width: 96px; height: 96px; border-radius: 24px; top: 0; right: 4%; transform: rotate(8deg); }
.hero-visual .float-2 { width: 88px; height: 88px; border-radius: 22px; bottom: 0; left: 6%; transform: rotate(-8deg); }

.values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: -48px 0 72px;
}
.value {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.value .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--primary-soft);
}
.value h3 { margin: 0 0 6px; font-size: 1.02rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.section-head { text-align: center; margin: 0 0 28px; }
.section-head h2 { border: none; padding: 0; margin: 0 0 6px; font-size: 1.7rem; }
.section-head p { margin: 0; color: var(--muted); }

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}
.app-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.app-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app-card-head img { width: 76px; height: 76px; flex-shrink: 0; border-radius: 20px; }
.app-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
}
.app-card > p { margin: 0 0 20px; color: var(--muted); flex: 1; }
.app-card-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.app-card-links .btn { padding: 9px 16px; font-size: 0.9rem; }
.app-card-links a:not(.btn) { color: var(--muted); font-weight: 600; }
.app-card-links a:not(.btn):hover { color: var(--primary); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-cta {
  padding: 36px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #24507d, #12263f);
}
.contact-cta h2 { color: #ffffff; border: none; padding: 0; margin: 0 0 10px; font-size: 1.5rem; }
.contact-cta p { margin: 0 0 24px; color: #b9cde2; }
.legal { padding: 32px 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.legal h3 { margin: 0 0 12px; font-size: 1.05rem; }
.legal dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.92rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; padding: 56px 20px 88px; text-align: center; }
  .home-hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .tabs { justify-content: center; }
  main { padding: 24px 16px 40px; }
  .card { padding: 24px 20px; }
  .toc ol { columns: 1; }
  .data-table, .data-table thead, .data-table tbody,
  .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table td { border: none; padding: 2px 0; }
  .data-table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  .data-table td:first-child { font-weight: 700; }
}
