/*
Theme Name: CPDA - Collège Privé Djorossoh d'Adjamené
Theme URI: https://example.com
Author: CPDA
Description: Thème WordPress pour le site du Collège Privé Djorossoh d'Adjamené. Favicon, logo, menu, image hero et articles gérés depuis l'admin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpda
*/

:root {
	--primary-color: #7dd3e8;
	--logo-yellow: #f4d03f;
	--logo-blue: #2563eb;
	--dark-blue: #1e3a8a;
	--light-blue: #dbeafe;
	--white: #ffffff;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-900: #111827;
}

* {
	font-family: "Inter", sans-serif;
}

html {
	scroll-behavior: smooth;
}

/* Masquer le contenu jusqu'à ce que les styles (Tailwind) soient appliqués — évite le flash "site vilain" */
html:not(.cpda-ready) body {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}
html.cpda-ready body {
	opacity: 1;
	visibility: visible;
}

body {
	background: #fff;
}

/* CSS critique : nav et logo stables dès le premier affichage (évite le "saut" au chargement) */
.site-nav {
	position: fixed;
	width: 100%;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--gray-100);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.05);
}
.site-nav > div {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.site-nav > div > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 5rem;
}
.site-nav > div > div > a:first-child {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}
.site-nav img.w-12,
.site-nav .custom-logo-link img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 0.5rem;
	flex-shrink: 0;
}
.site-nav .custom-logo-link {
	display: flex;
	align-items: center;
}
.site-nav .hidden {
	display: none;
}
.site-nav-menu {
	display: none;
	gap: 2rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav-menu ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}
.site-nav-menu a,
.site-nav-menu > a {
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-600);
	transition: color 0.3s;
}
.site-nav a.btn-primary {
	background: var(--primary-color);
	color: #fff;
	padding: 0.625rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
}
@media (min-width: 768px) {
	.site-nav-menu,
	.site-nav .hidden.md\:flex {
		display: flex;
	}
	.site-nav .hidden.md\:block {
		display: block;
	}
}

.nav-link {
	position: relative;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--logo-yellow);
	transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.current-menu-item::after {
	width: 100%;
}

.nav-link.current-menu-item,
.current-menu-item > a.nav-link {
	color: var(--logo-yellow);
	font-weight: 600;
}

.current-menu-item > a.nav-link::after {
	width: 100%;
}

.accent-color { color: var(--primary-color) !important; }

.icon,
div.icon {
	background: var(--primary-color) !important;
	color: var(--white) !important;
}

.bullet {
	background: var(--primary-color) !important;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
}

.btn-primary {
	background: var(--primary-color) !important;
	color: var(--white) !important;
}

[data-lucide] {
	color: var(--white) !important;
}

[class*="w-16"][class*="h-16"][class*="rounded-2xl"],
[class*="w-12"][class*="h-12"][class*="rounded-xl"] {
	background: var(--primary-color) !important;
	color: var(--white) !important;
}

.fade-in {
	animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
	animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
	from { opacity: 0; transform: translateX(-50px); }
	to { opacity: 1; transform: translateX(0); }
}

.card-hover { transition: all 0.3s ease; }

.card-hover:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.text-gradient {
	background: linear-gradient(135deg, #f4d03f, #f59e0b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.floating {
	animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.glass-effect {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.professional-shadow {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.05);
}

.hover-lift {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.text-shadow {
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-card {
	transition: all 0.3s ease;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.read-more {
	color: var(--logo-blue);
	font-weight: 600;
	text-decoration: none;
}

.read-more:hover {
	color: var(--dark-blue);
	text-decoration: underline;
}

.article-meta {
	color: var(--gray-500);
	font-size: 0.875rem;
}

.article-excerpt {
	color: var(--gray-600);
	line-height: 1.6;
}

@media (max-width: 768px) {
	.hover-lift:hover { transform: none; }
}
