/* Solution Entretien — mode jour pour les pages secondaires
   (connexion, paiement, juridique, tutoriels). Chargé après la feuille de la page. */

/* Bouton jour/nuit commun */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: var(--surface, rgba(255,255,255,.06)); color: var(--text, #f3f4fb); cursor: pointer; transition: background .2s, color .2s, transform .2s; flex-shrink: 0; }
.theme-btn:hover { transform: translateY(-1px); background: var(--surface-2, rgba(255,255,255,.1)); }
.theme-btn:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.theme-btn svg { display: block; }
.theme-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1000; width: 44px; height: 44px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
html[data-theme="light"] .theme-fab { box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* Variables communes (legal.css, auth.css, paiement) */
html[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f5f5f7;
  --surface: #f5f5f7; --surface-2: #ebebf0;
  --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14);
  --text: #1d1d1f; --muted: #6e6e73; --muted-2: #86868b;
  --violet: #0071e3; --cyan: #0071e3; --lime: #34c759; --pink: #0071e3; --amber: #1d1d1f; --red: #d70015;
  --grad: linear-gradient(100deg, #0071e3, #0071e3);
  color-scheme: light;
}
html[data-theme="light"] body { background-image: none; }
html[data-theme="light"] .topbar { background: rgba(255,255,255,.72); }
html[data-theme="light"] .btn-primary { color: #fff; box-shadow: none; }
html[data-theme="light"] .btn:hover { border-color: var(--line-2); background: var(--surface-2); }
html[data-theme="light"] .btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
html[data-theme="light"] .doc,
html[data-theme="light"] .card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .panel { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #ffffff; color: var(--text); border-color: var(--line-2); }
html[data-theme="light"] ::placeholder { color: var(--muted-2); }

/* Tutoriels (tuto-mac / tuto-windows) */
html[data-theme="light"] body[data-tuto] { background-color: #ffffff; color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] .ag-format-container { color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] header h1,
html[data-theme="light"] body[data-tuto] .reco-ext-title,
html[data-theme="light"] body[data-tuto] .reco-ext > p strong,
html[data-theme="light"] body[data-tuto] .reco-ext-steps strong { color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] .reco-ext > p,
html[data-theme="light"] body[data-tuto] .reco-ext-steps { color: #424245; }
html[data-theme="light"] body[data-tuto] .reco-ext { background: #f5f5f7; border-color: rgba(0,0,0,.08); }
html[data-theme="light"] body[data-tuto] .reco-ext-btn { color: #1d1d1f; background: #ffffff; border-color: rgba(0,0,0,.14); }
html[data-theme="light"] body[data-tuto] .reco-ext-btn:hover { background: #ebebf0; }
html[data-theme="light"] body[data-tuto] .reco-ext-btn.primary,
html[data-theme="light"] body[data-tuto] .os-switch { color: #fff; background: #0071e3; box-shadow: none; }
html[data-theme="light"] body[data-tuto] .reco-ext-title strong { background: none; color: #0071e3; }
html[data-theme="light"] body[data-tuto] .lang-switch { border-color: rgba(0,0,0,.14); background: #f5f5f7; }
html[data-theme="light"] body[data-tuto] .lang-switch button { color: #6e6e73; }
html[data-theme="light"] body[data-tuto] .lang-switch button.is-active,
html[data-theme="light"] body[data-tuto] .lang-switch button:hover { color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] .lang-switch button.is-active { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
html[data-theme="light"] body[data-tuto] .ag-courses-item_link { background-color: #f5f5f7; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_title,
html[data-theme="light"] body[data-tuto] .ag-courses-item_date-box,
html[data-theme="light"] body[data-tuto] .ag-courses-item_link:hover,
html[data-theme="light"] body[data-tuto] .ag-courses-item_link:hover .ag-courses-item_date { color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_date { color: #0071e3; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_link:hover .ag-courses-item_title,
html[data-theme="light"] body[data-tuto] .ag-courses-item_link:hover .ag-courses-item_date-box,
html[data-theme="light"] body[data-tuto] .ag-courses-item_link:hover .ag-courses-item_date { color: #fff; }
html[data-theme="light"] body[data-tuto] #btn-retour button { background-color: #ebebf0; color: #1d1d1f; }
html[data-theme="light"] body[data-tuto] #btn-retour button:hover { background-color: #dcdce1; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_date-box button { color: #1d1d1f; background: #ffffff; border-color: rgba(0,0,0,.14); }
html[data-theme="light"] body[data-tuto] .ag-courses-item_date-box button:hover { background: #ebebf0; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_date-box button:first-of-type { color: #fff; background: #0071e3; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_date-box button:first-of-type:hover { background: #0077ed; }
html[data-theme="light"] body[data-tuto] .theme-fab { background: #ffffff; border-color: rgba(0,0,0,.14); color: #1d1d1f; }
body[data-tuto] .theme-fab { background: #222; border-color: rgba(255,255,255,.18); color: #fff; }
html[data-theme="light"] body[data-tuto] header { background-color: #ffffff; }
html[data-theme="light"] body[data-tuto] .ag-courses-item_bg { opacity: .9; }
