/* Reminds, site vitrine. Une seule feuille de style, aucune dépendance. */

:root {
  color-scheme: light;
  --bg: #fbf7f4;
  --surface: #ffffff;
  --surface-2: #f4ede7;
  --text: #1d1916;
  --muted: #5e5650;
  --line: #e8dfd8;
  --accent: #b4410f;
  --accent-strong: #e84e1b;
  --accent-soft: #fde6da;
  --on-accent: #ffffff;
  --bubble-me: #c2410c;
  --bubble-me-text: #ffffff;
  --bubble-them: #efe7e1;
  --bubble-them-text: #1d1916;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.06), 0 12px 32px rgba(60, 30, 10, 0.08);
  --radius: 16px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14110f;
    --surface: #1e1a17;
    --surface-2: #27221e;
    --text: #f4eee9;
    --muted: #a89f98;
    --line: #342d28;
    --accent: #f2875a;
    --accent-strong: #e84e1b;
    --accent-soft: #3a2218;
    --on-accent: #14110f;
    --bubble-me: #c9471b;
    --bubble-me-text: #ffffff;
    --bubble-them: #2c2622;
    --bubble-them-text: #f4eee9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14110f;
  --surface: #1e1a17;
  --surface-2: #27221e;
  --text: #f4eee9;
  --muted: #a89f98;
  --line: #342d28;
  --accent: #f2875a;
  --accent-strong: #e84e1b;
  --accent-soft: #3a2218;
  --on-accent: #14110f;
  --bubble-me: #c9471b;
  --bubble-me-text: #ffffff;
  --bubble-them: #2c2622;
  --bubble-them-text: #f4eee9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
}

*,
*::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-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

@media (min-width: 820px) {
  .site-nav ul {
    display: flex;
  }
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

/* Héros */

.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 24px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

/* Maquettes d'iPhone (contenu fictif) */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.phone {
  position: relative;
  width: 272px;
  height: 560px;
  padding: 10px;
  border-radius: 46px;
  background: #1a1715;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3430;
  flex: none;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.35;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 999px;
  background: #0d0b0a;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 0;
  height: 44px;
  font-weight: 600;
  font-size: 11px;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

.phone-bar strong {
  display: block;
  font-size: 13px;
}

.phone-bar small {
  color: var(--muted);
  font-size: 10.5px;
}

.phone-bar .bar-icons {
  margin-left: auto;
  display: flex;
  gap: 10px;
  color: var(--accent);
}

.phone-bar svg {
  width: 16px;
  height: 16px;
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px 6px;
  overflow: hidden;
}

.chat > * {
  flex: none;
  margin: 0;
}

.day {
  align-self: center;
  margin: 4px 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.bubble {
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 16px;
}

.bubble.them {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--bubble-them-text);
  border-bottom-left-radius: 5px;
}

.bubble.me {
  align-self: flex-end;
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-bottom-right-radius: 5px;
}

.bubble.mark {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent);
}

.photo {
  align-self: flex-start;
  width: 58%;
  height: 72px;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background:
    radial-gradient(circle at 72% 30%, #ffd9a8 0 12%, transparent 13%),
    linear-gradient(180deg, #f7b38a 0%, #e9805a 52%, #6d4a7c 53%, #3f2f5c 100%);
}

.audio {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  background: var(--bubble-me);
  color: var(--bubble-me-text);
}

.audio svg {
  width: 14px;
  height: 14px;
}

.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.9;
}

.phone-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 12px 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.phone-search svg {
  width: 14px;
  height: 14px;
}

.phone-back {
  display: none;
}

@media (min-width: 640px) {
  .phones {
    min-height: 600px;
  }

  .phone-back {
    display: block;
    position: absolute;
    transform: translate(140px, 36px) rotate(5deg);
    opacity: 0.98;
  }

  .phone-front {
    transform: translate(-120px, 0) rotate(-3deg);
    z-index: 1;
  }
}

.otd-title {
  padding: 4px 16px 0;
}

.otd-title strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
}

.otd-title small {
  color: var(--muted);
}

.otd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.otd-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.otd-card b {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 11px;
}

.otd-card p {
  margin: 0;
}

.mini-stats {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  padding: 8px 12px 0;
}

.mini-stats i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent-strong);
  opacity: 0.85;
}

/* Sections */

.section {
  padding: 72px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 8px 0 4px;
}

.feature .icon-tile {
  grid-row: span 2;
}

@media (min-width: 1000px) {
  .feature {
    display: block;
    padding: 24px;
  }

  .feature h3 {
    margin: 16px 0 8px;
  }
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* Confidentialité */

.privacy {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .privacy {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.checks {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.checks strong {
  display: block;
  margin-bottom: 4px;
}

.checks p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

/* Accès */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.steps h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.cta {
  margin-top: 40px;
  padding: 40px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  max-width: 32em;
  margin: 0 auto 24px;
  color: var(--muted);
}

/* Pied de page */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Pages légales */

.legal {
  padding: 48px 0 80px;
}

.legal .wrap {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .legal {
    padding: 72px 0 104px;
  }

  .legal .wrap {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.legal article {
  max-width: 44em;
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 40px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.legal aside {
  align-self: start;
}

@media (min-width: 900px) {
  .legal aside {
    position: sticky;
    top: 96px;
  }
}

.legal aside h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal aside ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal aside a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.legal aside a:hover {
  border-color: var(--accent);
}

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 64px 0;
  text-align: center;
}

.notfound .lead {
  margin: 0 auto 32px;
}

/* Hauteurs des barres des maquettes (sans style en ligne, compatible CSP) */

.mini-stats i:nth-child(1) { height: 30%; }
.mini-stats i:nth-child(2) { height: 52%; }
.mini-stats i:nth-child(3) { height: 44%; }
.mini-stats i:nth-child(4) { height: 70%; }
.mini-stats i:nth-child(5) { height: 92%; }
.mini-stats i:nth-child(6) { height: 64%; }
.mini-stats i:nth-child(7) { height: 48%; }
.mini-stats i:nth-child(8) { height: 58%; }
.mini-stats i:nth-child(9) { height: 80%; }
.mini-stats i:nth-child(10) { height: 38%; }

.wave i:nth-child(1) { height: 6px; }
.wave i:nth-child(2) { height: 12px; }
.wave i:nth-child(3) { height: 16px; }
.wave i:nth-child(4) { height: 9px; }
.wave i:nth-child(5) { height: 14px; }
.wave i:nth-child(6) { height: 18px; }
.wave i:nth-child(7) { height: 10px; }
.wave i:nth-child(8) { height: 6px; }
.wave i:nth-child(9) { height: 13px; }
.wave i:nth-child(10) { height: 8px; }
.wave i:nth-child(11) { height: 15px; }
.wave i:nth-child(12) { height: 7px; }
