/* ============================================================
   Cantiques EUJC — Page Paramètres
   ============================================================ */

.settings-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-page, #f7f7f3);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-page, #f7f7f3);
}

.settings-header .icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary, #0d2e22);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.settings-header .icon-button:active {
  background: rgba(13, 46, 34, 0.06);
}

.settings-header .icon-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.settings-header-title {
  flex: 1;
  min-width: 0;
}

.settings-header-title h1 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #0d2e22);
  margin: 0;
}

.settings-header .header-spacer {
  width: 42px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Contenu
   ------------------------------------------------------------ */
.settings-content {
  flex: 1;
  padding: 8px 16px 24px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.settings-section-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary, #7a8580);
  margin: 20px 0 8px 4px;
}

.settings-card {
  display: block;
  width: 100%;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border-soft, rgba(13, 46, 34, 0.08));
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: default;
}

.settings-link {
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.settings-link:active {
  transform: scale(0.985);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-row-column {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.settings-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 164, 74, 0.12);
  color: var(--accent-gold, #c9a44a);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.settings-row-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.settings-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #0d2e22);
}

.settings-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary, #b6bdb9);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Toggle de thème (Clair / Sombre / Système)
   ------------------------------------------------------------ */
.theme-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(13, 46, 34, 0.06);
  border-radius: 12px;
}

.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary, #7a8580);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.theme-btn.is-active {
  background: var(--bg-elevated, #fff);
  color: var(--text-primary, #0d2e22);
  box-shadow: 0 1px 4px rgba(13, 46, 34, 0.08);
}

.theme-btn.is-active svg {
  color: var(--accent-gold, #c9a44a);
}

.theme-btn:active {
  transform: scale(0.96);
}

/* ------------------------------------------------------------
   Taille du texte (slider)
   ------------------------------------------------------------ */
.text-size-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-size-a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary, #7a8580);
  flex: 0 0 auto;
}

.text-size-a-large {
  font-size: 22px;
  color: var(--text-primary, #0d2e22);
}

#text-size-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
  outline: none;
}

#text-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-gold-500);
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  margin-top: -9px;
}

#text-size-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-gold-500);
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.text-size-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-tertiary, #b6bdb9);
  padding: 0 4px;
}

/* ------------------------------------------------------------
   Police de lecture (liste d'options)
   ------------------------------------------------------------ */
.font-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 2px solid var(--border-soft, rgba(13, 46, 34, 0.08));
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.font-option:active {
  transform: scale(0.985);
}

.font-option.is-active {
  border-color: var(--accent-dark, #0d2e22);
  background: rgba(13, 46, 34, 0.03);
}

.font-option-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary, #7a8580);
}

.font-option.is-active .font-option-name {
  color: var(--accent-gold, #c9a44a);
}

.font-option-sample {
  font-size: 16px;
  color: var(--text-primary, #0d2e22);
  line-height: 1.3;
}

.font-system    { font-family: var(--font-system); }
.font-open-sans { font-family: var(--font-open-sans); }
.font-lora      { font-family: var(--font-lora); }
.font-atkinson  { font-family: var(--font-atkinson); }

/* ------------------------------------------------------------
   Version
   ------------------------------------------------------------ */
.settings-version {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary, #b6bdb9);
  margin: 24px 0 8px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .settings-header {
    padding: 16px 32px;
  }
  .settings-content {
    padding: 8px 32px 32px;
  }
}

/* ============================================================
   PAGE À PROPOS
   ============================================================ */
.about-hero {
  text-align: center;
  padding: 20px 0 30px;
}

.about-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--p-forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 57, 46, 0.25);
  overflow: hidden;
  padding: 10px;
}

.about-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.about-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.about-version {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.4px;
}

.about-description {
  text-align: center;
}

.about-description p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.about-description p:last-child {
  margin-bottom: 0;
  color: var(--accent-gold-text);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.about-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.about-stat-card strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold-text);
  line-height: 1;
}

.about-stat-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
