/* MYS Core — styles publics minimaux (le design global reste géré par Elementor) */

.mys-infos {
	background: #f6f8fa;
	border-left: 4px solid #f39c12;
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}

.mys-infos dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.25rem;
	margin: 0;
}

.mys-infos dt {
	font-weight: 700;
}

.mys-infos dd {
	margin: 0;
}

.mys-sessions {
	margin: 2rem 0;
}

.mys-sessions table {
	width: 100%;
	border-collapse: collapse;
}

.mys-sessions th,
.mys-sessions td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid #e2e6ea;
	text-align: left;
}

.mys-sessions thead th {
	background: #1a2b4a;
	color: #fff;
}

.mys-statut {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-size: 0.85em;
	background: #e2e6ea;
}

.mys-statut--inscriptions_ouvertes {
	background: #d4efdf;
	color: #1e7d45;
}

.mys-statut--complet,
.mys-statut--annulee {
	background: #fdecea;
	color: #b03a2e;
}

.mys-references {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.5rem;
	align-items: center;
	margin: 2rem 0;
}

.mys-reference {
	margin: 0;
	text-align: center;
}

.mys-reference img {
	max-height: 80px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.8;
	transition: 0.2s;
}

.mys-reference:hover img {
	filter: none;
	opacity: 1;
}

.mys-reference figcaption {
	font-size: 0.85em;
	margin-top: 0.5rem;
}

.mys-reference figcaption small {
	display: block;
	opacity: 0.7;
}

@media (max-width: 600px) {
	.mys-infos dl {
		grid-template-columns: 1fr;
	}

	.mys-sessions {
		overflow-x: auto;
	}
}

/* ---------- Archives métier (activités, formations, réalisations) ---------- */

.mys-archive__hero {
	background: linear-gradient(160deg, #1b2a4a, #12203a);
	color: #fff;
	text-align: center;
	padding: 4rem 1.25rem;
}

.mys-archive__hero h1 {
	color: #fff;
	margin: 0 0 0.75rem;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.mys-archive__hero p {
	max-width: 46rem;
	margin: 0 auto;
	opacity: 0.85;
	font-size: 1.05rem;
	line-height: 1.6;
}

.mys-archive__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 3rem 1.25rem 4rem;
}

.mys-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.75rem;
}

.mys-archive__vide {
	text-align: center;
	font-size: 1.1rem;
	padding: 2rem 0;
}

.mys-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(27, 42, 74, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.mys-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(27, 42, 74, 0.14);
}

.mys-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.mys-card__media img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.mys-card__body {
	padding: 1.4rem 1.5rem 1.6rem;
}

.mys-card__body h2 {
	font-size: 1.25rem;
	color: #1b2a4a;
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.mys-card__badge {
	display: inline-block;
	background: #fdf1dd;
	color: #b06e08;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	margin-bottom: 0.7rem;
}

.mys-card__accroche {
	color: #3a4353;
	margin: 0 0 0.75rem;
	line-height: 1.55;
}

.mys-card__meta {
	color: #6b7280;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.mys-card__more {
	color: #f39c12;
	font-weight: 600;
}

/* ---------- Boutons et encart d'appel à l'action ---------- */

.mys-cta {
	background: #f6f8fa;
	border-radius: 12px;
	text-align: center;
	padding: 2.5rem 1.5rem;
	margin-top: 3rem;
}

.mys-cta h2 {
	color: #1b2a4a;
	margin: 0 0 0.5rem;
}

.mys-cta p {
	margin: 0 0 1rem;
	color: #3a4353;
}

.mys-cta__actions {
	display: flex;
	gap: 0.9rem;
	justify-content: center;
	flex-wrap: wrap;
}

.mys-btn {
	display: inline-block;
	background: #f39c12;
	color: #fff !important;
	font-weight: 600;
	padding: 0.85rem 1.7rem;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background 0.2s;
}

.mys-btn:hover {
	background: #d9880f;
}

.mys-btn--ghost {
	background: transparent;
	color: #1b2a4a !important;
	border: 2px solid #1b2a4a;
}

.mys-btn--ghost:hover {
	background: rgba(27, 42, 74, 0.07);
}

.mys-lead {
	font-size: 1.2rem;
	color: #1b2a4a;
	font-weight: 600;
	border-left: 4px solid #f39c12;
	padding-left: 1rem;
}

/* Pagination des archives */
.mys-archive .navigation.pagination {
	margin-top: 2.5rem;
	text-align: center;
}

/* ============================ EN-TÊTE ============================ */

.mys-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(27, 42, 74, 0.08);
	box-shadow: 0 2px 16px rgba(15, 27, 51, 0.06);
}

body.admin-bar .mys-header {
	top: 32px;
}

.mys-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.65rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.mys-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none !important;
}

/* Le logo est plus dense que l'ancien monogramme (cinq symboles au lieu de
   deux) : 52px lui donnent la place de rester lisible sans déséquilibrer
   l'en-tête. flex-shrink évite qu'il s'écrase quand le menu prend de la place. */
.mys-brand__logo {
	height: 52px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.mys-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.mys-brand__name {
	font-weight: 800;
	font-size: 1.15rem;
	color: #1b2a4a;
	letter-spacing: 0.01em;
}

.mys-brand__name em {
	font-style: normal;
	color: #f39c12;
}

.mys-brand__tagline {
	font-size: 0.68rem;
	color: #6b7280;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mys-nav {
	margin-left: auto;
}

.mys-nav__list {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mys-nav__list a {
	display: block;
	padding: 0.55rem 0.9rem;
	color: #1b2a4a;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.mys-nav__list a:hover {
	background: rgba(243, 156, 18, 0.12);
	color: #d9880f;
}

.mys-nav__list .current-menu-item > a,
.mys-nav__list .current_page_item > a {
	color: #f39c12;
}

.mys-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mys-btn--header {
	padding: 0.6rem 1.2rem;
	font-size: 0.92rem;
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
}

.mys-burger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.5rem;
}

.mys-burger span {
	display: block;
	width: 24px;
	height: 3px;
	background: #1b2a4a;
	border-radius: 2px;
	margin: 5px 0;
	transition: 0.2s;
}

@media (max-width: 980px) {
	.mys-burger {
		display: block;
	}

	.mys-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid rgba(27, 42, 74, 0.1);
		box-shadow: 0 16px 24px rgba(15, 27, 51, 0.12);
		padding: 0.75rem 1.25rem 1.25rem;
	}

	.mys-header.is-open .mys-nav {
		display: block;
	}

	.mys-nav__list {
		flex-direction: column;
	}

	.mys-brand__tagline {
		display: none;
	}

	/* Sans la baseline, le bloc texte perd une ligne : on réduit le logo
	   d'autant pour qu'il ne dépasse pas du nom de l'entreprise. */
	.mys-brand__logo {
		height: 42px;
	}
}

/* ============================ PIED DE PAGE ============================ */

.mys-footer {
	position: relative;
	background: linear-gradient(160deg, #14233f, #0f1b33);
	color: rgba(255, 255, 255, 0.78);
	overflow: hidden;
	margin-top: 0;
}

.mys-footer__bolt {
	position: absolute;
	right: -60px;
	top: -40px;
	color: rgba(243, 156, 18, 0.07);
	pointer-events: none;
}

.mys-footer__inner {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 3.5rem 1.25rem 2.5rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2.5rem;
}

.mys-footer h3 {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 1rem;
}

.mys-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mys-footer li {
	margin-bottom: 0.6rem;
	line-height: 1.5;
}

.mys-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	transition: color 0.15s;
}

.mys-footer a:hover {
	color: #f39c12;
}

.mys-footer__logobox {
	display: inline-block;
	background: #fff;
	border-radius: 10px;
	padding: 0.6rem 0.9rem;
	margin-bottom: 1rem;
}

.mys-footer__logobox img {
	max-width: 210px;
	height: auto;
	display: block;
}

.mys-footer__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(243, 156, 18, 0.12);
	border: 1px solid rgba(243, 156, 18, 0.4);
	color: #ffc55f;
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.mys-footer__cta {
	color: #f39c12 !important;
	font-weight: 600;
}

.mys-footer__bottom {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	padding: 1.1rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.mys-footer__bottom p {
	margin: 0;
}

@media (max-width: 980px) {
	.mys-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.mys-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

/* Fiches et pages hors Elementor (single CPT, Contact, mentions…) : titre H1 + contenu lisible */
.site-main {
	max-width: 900px;
	margin: 0 auto;
	padding: 2.75rem 1.25rem 3.5rem;
}

.site-main .page-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 3px solid #f39c12;
}

.site-main .entry-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: #1b2a4a;
	line-height: 1.2;
	margin: 0;
}

.site-main .page-content {
	color: #3a4353;
	line-height: 1.7;
}

.site-main .page-content h2 {
	color: #1b2a4a;
	margin-top: 2rem;
}

.site-main .page-content a {
	color: #d9880f;
}

/* Cartes activités (image-box Elementor) : images uniformes + survol */
.elementor-widget-image-box .elementor-image-box-img {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

.elementor-widget-image-box .elementor-image-box-img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.elementor-widget-image-box:hover .elementor-image-box-img img {
	transform: scale(1.06);
}

.elementor-widget-image-box .elementor-image-box-wrapper {
	overflow: hidden;
	height: 100%;
}

/* Bandeau d'archive : motif éclair en filigrane + halo de contraste */
.mys-archive__hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 120% at 85% -20%, rgba(243, 156, 18, 0.22), transparent 60%),
		linear-gradient(160deg, #1b2a4a, #0f1b33);
}

.mys-archive__hero::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 260px;
	height: 260px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M26.5 3 9 30h10.5L16 45l19-28H24.5L26.5 3Z' fill='%23f39c12' fill-opacity='0.1'/%3E%3C/svg%3E") no-repeat center / contain;
	pointer-events: none;
}
