/* ============================================================
   MSI-LFI : habillage « à la manière de mantes-sud-insoumis.fr »
   Reproduit l'esprit visuel du site Framer d'origine :
   - violet LFI rgb(123,19,214) = #7b13d6 (couleur dominante)
   - rouge #f91616 (accents, dates)
   - jaune #ffec00 (surbrillance)
   - texte sombre rgb(17,17,17), surfaces claires #f2f2f2
   - typographie sans-serif type Inter, gras, très contrastée
   - boutons pleine largeur / grosses pastilles arrondies
   ============================================================ */

/* --- Police Inter (auto-hébergée, variable) --- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
}

:root {
	--msi-violet: #7b13d6;
	--msi-rouge: #f91616;
	--msi-jaune: #ffec00;
	--msi-encre: #111111;
	--msi-surface: #f2f2f2;
}

/* --- Base typographique : Inter partout (comme le site d'origine) --- */
body,
p,
.wp-block-post-content,
.wp-block-post-excerpt {
	font-family: 'Inter', sans-serif !important;
	color: var(--msi-encre, #111111);
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-site-title,
.wp-block-navigation,
.wp-element-button,
.wp-block-button__link {
	font-family: 'Inter', sans-serif !important;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Les titres restent violets (déjà définis dans theme.json) */

/* --- Boutons « pastille » : violet plein, hover rouge, coins très arrondis --- */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"] {
	background-color: var(--msi-violet, #7b13d6) !important;
	color: #ffffff !important;
	border-radius: 999px;
	padding: 0.8em 1.6em;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 2px 10px rgba(123, 19, 214, 0.25);
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
	background-color: var(--msi-rouge, #f91616) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(249, 22, 22, 0.3);
}

/* --- Cartes de contenu (événements / communications) : surface grise claire, coins arrondis --- */
.wp-block-post-excerpt,
.wp-block-group.card-msi,
.home-carte-evenement,
.home-carte-communication {
	background-color: var(--msi-surface, #f2f2f2);
	border-radius: 14px;
	padding: 1.25rem;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.wp-block-post-excerpt:hover,
.home-carte-evenement:hover,
.home-carte-communication:hover {
	box-shadow: 0 6px 18px rgba(17, 17, 17, 0.12);
	transform: translateY(-2px);
}

/* --- Dates en rouge (déjà en theme.json, renforcé ici) --- */
.wp-block-post-date {
	font-weight: 600;
}

/* --- Surlignage jaune pour les mots-clés (balise <mark>) --- */
mark,
.mark-msi {
	background-color: var(--msi-jaune, #ffec00);
	color: var(--msi-encre, #111111);
	padding: 0.05em 0.25em;
	border-radius: 4px;
}

/* --- Formulaire d'enquête / contact : champs arrondis comme l'original --- */
input[type="text"],
input[type="email"],
textarea,
select {
	border-radius: 10px;
	border: 2px solid #e0e0e0;
	background: #ffffff;
	font-family: 'Inter', sans-serif;
	padding: 0.6em 0.9em;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
	border-color: var(--msi-violet, #7b13d6);
	outline: none;
	box-shadow: 0 0 0 3px rgba(123, 19, 214, 0.15);
}

/* --- Pied de page : violet plein, texte blanc, pastilles réseaux sociaux --- */
footer.wp-block-template-part {
	background-color: var(--msi-violet, #7b13d6);
	color: #ffffff;
}

footer.wp-block-template-part a {
	color: #ffffff;
}

/* --- En-tête : géré par msi-header.css (bandeau blanc 80px, ombre douce) --- */

/* --- Mobile : le menu devient visible via burger (msi-header.css) --- */
@media (max-width: 900px) {
	.msi-nav-mobile {
		display: none;
	}
}

/* --- Badge « Groupe d'action La France insoumise » --- */
.badge-msi {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.85em;
	background: var(--msi-jaune, #ffec00);
	color: var(--msi-encre, #111111);
	border-radius: 999px;
	padding: 0.25em 0.8em;
}

/* --- Accessibilité : focus visible --- */
a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--msi-rouge, #f91616);
	outline-offset: 2px;
}

/* --- Écrans étroits : réduire l'ombrage des cartes --- */
@media (max-width: 640px) {
	.home-carte-evenement,
	.home-carte-communication,
	.wp-block-post-excerpt {
		transform: none;
	}
}
/* --- Événements : date en rouge, lieu en italique gris --- */
.msi-event-date {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: var(--msi-rouge, #f91616);
	margin: 0.15em 0;
}

.msi-event-lieu {
	font-style: italic;
	font-size: 0.95em;
	color: #444444;
	margin: 0.15em 0 0.5em;
}

/* Archive événements : images uniformes */
.wp-block-post-featured-image img {
	object-fit: cover;
}
