/* Atlemio — site atlemio.com. Couleurs et polices de l'app (design system LogTim, src/constants/theme.ts). */

@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/nunito-900.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-display: swap; src: url('fonts/notosans-400.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 500; font-display: swap; src: url('fonts/notosans-500.woff2') format('woff2'); }

:root {
  --bg: #F4F6F5;
  --card: #FFFFFF;
  --line: #EEF1EF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #4F5B58;
  --brand: #1FC79B;
  --brand-ink: #0B6B63;
  --brand-tint: #D8F6EA;
  --brand-soft: #9BE8CF;
  --brand-deep: #0B3D38;
  --brand-muted: #2E5E57;
  --record: #C74618;
  --record-label: #8F3211;
  --record-tint: #FFE1CC;
  --drop: #3D2A8F;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --f-title: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-ui: 'Nunito', system-ui, sans-serif;
  --f-text: 'Noto Sans', system-ui, sans-serif;
  --gutter: 24px;
}

/* Page sombre (Fonctionnalités) */
.theme-dark {
  --bg: #06302C;
  --card: #0F2E28;
  --line: #1F6E5B;
  --text: #F5F3F0;
  --text-2: #9CCFC2;
  --text-3: #D8F6EA;
  --brand: #3FE0B5;
  --brand-ink: #3FE0B5;
}

*, *::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(--f-text);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand-deep); }
.theme-dark a:hover { color: var(--brand-soft); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.tab { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; font-family: var(--f-ui); font-weight: 900; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 24px 40px); align-items: center; }
.row > .grow { flex: 1 1 380px; min-width: 0; }
.section { padding-bottom: 72px; }

/* Typo */
.t-title { font-family: var(--f-title); font-weight: 700; line-height: 1.05; color: var(--brand-deep); }
.theme-dark .t-title { color: #FFFFFF; }
.t-h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.t-h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
.t-h3 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.15; }
.t-ui { font-family: var(--f-ui); }
.t-label { font-family: var(--f-ui); font-weight: 900; font-size: 14px; color: var(--brand-ink); letter-spacing: 0; }
.t-card { font-family: var(--f-ui); font-weight: 900; font-size: 22px; line-height: 1.3; }
.t-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-2); }
.center { text-align: center; }

/* Boutons : fond, keyline d'un ton plus profond, bord bas plus épais qui s'aplatit à l'appui */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  font-family: var(--f-ui); font-weight: 900; font-size: 17px; text-decoration: none;
  border-radius: 12px; border: 1px solid; border-bottom-width: 3px; cursor: pointer;
}
.btn:active { border-bottom-width: 1px; transform: translateY(2px); }
.btn-action { background: #0B6B63; border-color: #0B3D38; color: #FFFFFF; }
.btn-action:hover { color: #FFFFFF; background: #0A5F58; }
.btn-brand { background: #1FC79B; border-color: #0B6B63; color: #0B3D38; }
.btn-brand:hover { color: #0B3D38; background: #1CB78F; }
.theme-dark .btn-brand { background: #3FE0B5; }
.btn-play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #1D1D1F; color: #FFFFFF; border-radius: 14px; padding: 10px 22px 10px 18px; min-height: 56px;
  font-family: var(--f-ui);
}
.btn-play:hover { color: #FFFFFF; background: #000000; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; }
.btn-play small { font-size: 12px; font-weight: 700; }
.btn-play strong { font-size: 19px; font-weight: 900; }
.theme-dark .btn-play, .btn-play.light { background: #FFFFFF; color: #0B3D38; }
.theme-dark .btn-play:hover, .btn-play.light:hover { color: #0B3D38; background: #D8F6EA; }
.btn-play.deep, .theme-dark .btn-play.deep { background: #0B3D38; color: #FFFFFF; }
.btn-play.deep:hover, .theme-dark .btn-play.deep:hover { background: #000000; color: #FFFFFF; }

/* En-tête */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-deep); }
.theme-dark .logo { color: #FFFFFF; }
.logo img { width: 44px; height: 35px; object-fit: contain; }
.logo span { font-family: var(--f-title); font-weight: 700; font-size: 28px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-family: var(--f-ui); font-weight: 800; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 6px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand-ink); }
.site-nav .btn { min-height: 44px; font-size: 16px; padding: 8px 18px; }
@media (max-width: 640px) {
  .site-nav { width: 100%; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
  .site-nav .btn { display: none; }
}

/* Pied de page */
.site-footer { background: var(--card); border-top: 1px solid var(--line); }
.theme-dark .site-footer { background: transparent; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.site-footer .logo img { width: 36px; height: 28px; }
.site-footer .logo span { font-size: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-ui); font-weight: 800; font-size: 15px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--brand-ink); }
.site-footer small { color: var(--text-2); font-size: 14px; }

/* Cartes */
.card { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.theme-dark .card { box-shadow: none; border: 1px solid var(--line); }
.card-tint { background: var(--brand-tint); border-radius: 24px; padding: 28px; color: var(--brand-deep); }
.card-deep { background: var(--brand-deep); color: #FFFFFF; border-radius: 28px; padding: 44px 40px; }
.card-deep p { color: var(--brand-tint); }
.card-deep a { color: var(--brand-soft); }
.card-deep a:hover { color: #FFFFFF; }
.card-deep .t-title { color: #FFFFFF; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.chip { display: inline-block; border-radius: 8px; padding: 6px 12px; font-family: var(--f-ui); font-weight: 900; font-size: 14px; }
.pill { align-self: flex-start; background: #FFFFFF; color: var(--brand-ink); border-radius: 999px; padding: 6px 14px; font-family: var(--f-ui); font-weight: 900; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-ui); font-weight: 800; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: none; }

/* Hero menthe */
.hero { background: var(--brand-tint); border-radius: 32px; padding: 56px 48px 0; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-end; overflow: hidden; }
.hero-text { flex: 1 1 420px; min-width: 0; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.hero-text .t-lead { color: var(--brand-muted); max-width: 34rem; }
.hero-visual { flex: 0 1 540px; min-width: 0; position: relative; display: flex; justify-content: flex-end; align-items: flex-end; min-height: 540px; margin: 0 auto; }
.hero-visual .mascot { position: absolute; left: 0; bottom: 24px; width: 42%; max-width: 230px; z-index: 2; }
.hero-small { background: var(--brand-tint); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.hero-small .mascot { flex: 0 1 200px; min-width: 0; width: 200px; margin: 0 auto; }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 36px 22px 0; border-radius: 24px; }
  .hero-text { padding-bottom: 8px; }
  .hero-visual { min-height: 500px; }
  .hero-small { padding: 32px 22px; border-radius: 24px; }
  .hero-small .mascot { width: 140px; }
  .card { padding: 22px; }
  .card-deep { padding: 32px 22px; }
}

/* Téléphones dessinés (pas de fausse barre d'état) */
.phone { width: 300px; max-width: 100%; background: #1D1D1F; border-radius: 44px; padding: 12px; flex: none; }
.phone-top { border-radius: 44px 44px 0 0; padding-bottom: 0; height: 520px; }
.phone-screen { background: #F4F6F5; color: #1D1D1F; border-radius: 34px; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; height: 100%; overflow: hidden; }
.phone-top .phone-screen { border-radius: 34px 34px 0 0; }
.phone .p-title { font-family: var(--f-title); font-weight: 700; font-size: 22px; }
.phone .p-card { background: #FFFFFF; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.phone .p-hero { background: #D8F6EA; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.phone .p-label { font-family: var(--f-ui); font-size: 12px; font-weight: 900; color: #0B6B63; }
.phone .p-big { font-family: var(--f-ui); font-weight: 900; color: #0B3D38; }
.phone .p-btn { text-align: center; background: #0B6B63; color: #FFFFFF; border: 1px solid #0B3D38; border-bottom-width: 3px; border-radius: 12px; padding: 13px; font-family: var(--f-ui); font-weight: 900; }
.phone .p-btn-brand { align-self: flex-start; background: #1FC79B; color: #0B3D38; border: 1px solid #0B6B63; border-bottom-width: 2.5px; border-radius: 12px; padding: 8px 16px; font-family: var(--f-ui); font-weight: 900; font-size: 14px; margin-top: 6px; }
.phone .p-timer { background: #1D1D1F; color: #FFFFFF; border-radius: 999px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-ui); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-family: var(--f-ui); font-size: 12px; font-weight: 800; color: #6E6E73; }
.week i { height: 26px; border-radius: 8px; background: #EEF1EF; }
.week i.done { background: #1FC79B; }
.week i.today { background: #FFFFFF; border: 2px solid #1FC79B; }
.week i.planned { background: #D8F6EA; }

/* Questions (details) */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: none; }
.faq summary { cursor: pointer; font-family: var(--f-ui); font-weight: 900; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand-ink); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--text-3); }
/* Questions en cartes séparées (accueil) : plus spécifique que `.faq details`, qui ôtait les marges sur les côtés */
.faq details.faq-card { background: var(--card); border-radius: 18px; padding: 22px 28px; border-top: none; box-shadow: var(--shadow); }
.faq details.faq-card p { margin-top: 12px; }
@media (max-width: 640px) { .faq details.faq-card { padding: 18px 20px; } }

/* Pages sombres : sections numérotées */
.numbered { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--line); align-items: center; }
.numbered > .num { flex: 0 0 120px; font-family: var(--f-title); font-weight: 700; font-size: 64px; color: var(--line); line-height: 1; align-self: flex-start; }
.numbered > .grow { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.numbered > .aside { flex: 0 1 340px; min-width: 0; }
.numbered p { color: var(--text-2); font-size: 18px; }
@media (max-width: 640px) { .numbered > .num { flex-basis: 100%; font-size: 48px; } .numbered { padding: 36px 0; } }
.log { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; font-family: var(--f-ui); display: flex; flex-direction: column; }
.log .r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 900; }
.log .r:last-of-type { border-bottom: none; }
.log .r span:first-child { color: var(--text-2); font-weight: 800; }
.log .cap { font-size: 13px; font-weight: 800; color: var(--text-2); }
.records { background: #3A2A1E; border-radius: 24px; padding: 32px 36px; }
.records .t-title { color: #FFB089; }
.records p { color: #FFE1CC; }

/* Documents (confidentialité, mentions) */
.doc { font-size: 17px; line-height: 1.7; }
.doc h2 { font-family: var(--f-ui); font-weight: 900; font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.doc ul { margin: 8px 0 0; padding-left: 22px; }
.doc p + p { margin-top: 10px; }
.doc section + section { margin-top: 32px; }
.toc { display: flex; flex-direction: column; gap: 10px; font-family: var(--f-ui); font-weight: 800; }
.toc a { text-decoration: none; }

/* Champ */
.field { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.field label { font-family: var(--f-ui); font-weight: 900; color: var(--brand-deep); }
.field input { height: 52px; border-radius: 12px; border: 1px solid var(--brand-soft); background: #FFFFFF; padding: 0 16px; font: inherit; font-size: 16px; width: 100%; color: var(--text); }
.field input:focus { outline: 3px solid var(--brand); outline-offset: 0; }
