/*
Theme Name: MinervIA
Theme URI: https://minervia.fr
Author: MinervIA
Description: Thème MinervIA — IA souveraine. Réutilise le CSS Tailwind compilé du site d'origine pour un rendu identique.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: minervia
Tags: business, custom-menu
*/

/* Le CSS Tailwind compilé est enqueue dans functions.php (assets/tailwind.css).
   Les styles ci-dessous complètent le thème (police, réglages de base). */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; }

/* Le thème Tailwind gère déjà le reste. */

/* Pages internes (pas l'accueil, qui a la classe .home) — mode sombre "couleur accueil".
   Reprend le degrade slate-900 -> primary de la page d'accueil. Le texte pose
   directement sur le fond passe en clair ; les cartes blanches (.bg-card) gardent
   un texte sombre. Contrastes verifies WCAG 2.1 (tout >= 4.5:1, la plupart AAA) :
   blanc #ffffff 15.4:1 | #e2e8f0 12.5:1 | #cbd5e1 10.4:1 | liens #93c5fd 8.5:1. */
body:not(.home) #main {
	background: linear-gradient(160deg, #0f172a 0%, #12234a 100%);
	color: #e2e8f0;
}
body:not(.home) #main > section.bg-background {
	background-color: transparent;
}
body:not(.home) #main > section.bg-muted {
	background-color: #16294f;
}
/* Texte pose sur le fond -> clair. */
body:not(.home) #main h1,
body:not(.home) #main h2,
body:not(.home) #main h3,
body:not(.home) #main h4 {
	color: #ffffff;
}
body:not(.home) #main .text-foreground {
	color: #e2e8f0;
}
body:not(.home) #main .text-muted-foreground {
	color: #cbd5e1;
}
body:not(.home) #main .text-primary {
	color: #93c5fd;
}
/* Cartes blanches -> on remet le texte en sombre (contraste preserve). */
body:not(.home) #main .bg-card {
	color: #1d2530;
}
body:not(.home) #main .bg-card h1,
body:not(.home) #main .bg-card h2,
body:not(.home) #main .bg-card h3,
body:not(.home) #main .bg-card h4 {
	color: #1d2530;
}
body:not(.home) #main .bg-card .text-foreground {
	color: #1d2530;
}
body:not(.home) #main .bg-card .text-muted-foreground {
	color: #627084;
}
body:not(.home) #main .bg-card .text-primary {
	color: #0e3b9a;
}
/* Champs de formulaire (page contact) : fond de champ sombre + texte clair,
   bordure visible. Contraste #e2e8f0 sur #1e293b ~ 12:1 (AAA). */
body:not(.home) #main input:not([type="hidden"]),
body:not(.home) #main select,
body:not(.home) #main textarea {
	background-color: #1e293b;
	color: #e2e8f0;
	border-color: #3b4a63;
}
body:not(.home) #main input::placeholder,
body:not(.home) #main textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}
body:not(.home) #main select option {
	background-color: #1e293b;
	color: #e2e8f0;
}
