/**
 * Fichier  : theme.css
 * Chemin   : /www.termiser-traitement.fr/termiser-rdv/public/css/theme.css
 * @version 1.1.0 — 2026-09-24
 * Rôle     : Palettes de couleurs du kit RDV, source UNIQUE pour toutes
 *            les pages (publique, réponse client, connexion, admin).
 *            Chargée APRÈS style.css / admin.css.
 *              - :root                    : thème sombre
 *              - html[data-theme="clair"] : thème clair (fond blanc,
 *                                           texte noir)
 *            L'attribut data-theme est posé sur <html> par PHP selon le
 *            réglage « theme » de {prefix}rdv_settings.
 *            Les couleurs d'accent (--accent, --accent-hover) ne sont pas
 *            définies ici : elles viennent des réglages, dans les deux
 *            thèmes.
 *            --primary sert à la fois de fond d'en-tête/menu ET de couleur
 *            du texte posé sur l'accent (boutons) : blanc en thème clair.
 * Utilisé par : index.php, reponse-creneau.php, admin/login.php,
 *               inc/admin-layout.php (toutes les pages d'admin)
 * © MACWIN
 *
 * Historique :
 * - 1.1.0 (2026-09-24) : création (ajout du thème clair).
 */

:root {
    --primary: #0a1628;
    --primary-light: #1a2d4a;
    --bg: #050b14;
    --bg-card: #0f1a2e;
    --bg-input: #162238;
    --text: #ffffff;
    --text-secondary: #b0bec5;
    --border: #263855;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="clair"] {
    --primary: #ffffff;
    --primary-light: #eef3f8;
    --bg: #f4f6f8;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #5a6472;
    --border: #d5dbe3;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 2px 8px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.12);
    color-scheme: light;
}

html[data-theme="sombre"] {
    color-scheme: dark;
}

/* ---------------------------------------------------------------
   Ajustements propres au thème clair
   --------------------------------------------------------------- */

/* En-tête public et menu admin blancs : séparation par une bordure */
html[data-theme="clair"] .header { border-bottom: 1px solid var(--border); }
html[data-theme="clair"] .sidebar { box-shadow: 1px 0 0 var(--border); }

/* Badges : textes plus foncés pour rester lisibles sur fond clair */
html[data-theme="clair"] .urgence-faible,
html[data-theme="clair"] .statut-termine  { color: #2e7d32; }
html[data-theme="clair"] .urgence-moyenne,
html[data-theme="clair"] .statut-confirme { color: #1565c0; }
html[data-theme="clair"] .urgence-haute,
html[data-theme="clair"] .statut-attente  { color: #e65100; }
html[data-theme="clair"] .urgence-critique { color: #c62828; }
html[data-theme="clair"] .statut-annule   { color: #616161; }

/* Bouton Google Agenda (blanc) : bordure pour le détacher de la carte */
html[data-theme="clair"] .gcal-btn { border: 1px solid var(--border); }

/* Fenêtres modales : voile moins opaque */
html[data-theme="clair"] .modal { background: rgba(16, 24, 40, 0.45); }
