/* Site vitrine de Notame : page d'accueil et pages légales.
   Couleurs reprises de l'icône de l'appli. Mode sombre automatique. */

:root {
  --bg: #ffffff;
  --bg-soft: #f2fbfc;
  --band: #bffcff;
  --text: #13262e;
  --text-soft: #4b5f66;
  --accent: #17708f;
  --accent-strong: #0f5770;
  --pink: #e86a85;
  --border: #d5e6ea;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a1f;
    --bg-soft: #13252c;
    --band: #12333b;
    --text: #e6f3f5;
    --text-soft: #a9bec4;
    --accent: #6cc7e3;
    --accent-strong: #9ad9ec;
    --pink: #ff9fb3;
    --border: #24414a;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-strong);
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.lang-switch {
  font-size: 15px;
  font-weight: 600;
}

/* Accueil */
.hero {
  background: var(--band);
  padding: 56px 0 48px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(23, 112, 143, 0.25);
}

.hero h1 {
  margin: 20px 0 8px;
  font-size: 42px;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-soft);
  font-size: 19px;
}

.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.feature h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

/* Pages de texte (politique, mentions, suppression) */
.page {
  padding: 40px 0 56px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.page .updated {
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 15px;
}

.page h2 {
  margin: 40px 0 12px;
  font-size: 23px;
  line-height: 1.3;
}

.page h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.page ul,
.page ol {
  padding-left: 22px;
}

.page li + li {
  margin-top: 6px;
}

.note {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 8px;
}

/* Les tableaux défilent horizontalement sur petit écran au lieu d'élargir la page. */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--text-soft);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .page h1 {
    font-size: 28px;
  }
}
