/* Aly Imrane — Cartes Programmes
   Les couleurs, tailles et espacements sont pilotés par Elementor.
   Ce fichier ne porte que la structure et les états. */

.alyic__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 40px;
}

.alyic__eyebrow,
.alyic__title,
.alyic__subtitle {
	width: 100%;
}

.alyic__eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.alyic__title {
	margin: 0 0 12px;
	line-height: 1.25;
}

.alyic__subtitle {
	margin: 0;
	line-height: 1.65;
}

.alyic__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.alyic__card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 28px 26px;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.alyic__icon {
	display: block;
	margin-bottom: 14px;
	font-size: 26px;
	line-height: 1;
	color: #f47b20;
}

.alyic__icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.alyic__meta {
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.alyic__card-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	color: #2e3a45;
}

.alyic__text {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.65;
	color: #4a4a4a;
}

.alyic__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #c2410c;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.alyic__link:hover,
.alyic__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alyic__link--inactive {
	opacity: 0.55;
	cursor: default;
}

.alyic__arrow {
	transition: transform 0.2s ease;
}

.alyic__card:hover .alyic__arrow {
	transform: translateX(3px);
}

/* Carte entièrement cliquable : le lien couvre la surface,
   tout en restant un seul élément focalisable au clavier. */
.alyic--clickable .alyic__card {
	cursor: pointer;
}

.alyic--clickable .alyic__card .alyic__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Le focus clavier doit rester visible sur toute la carte. */
.alyic--clickable .alyic__card:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.alyic__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Effets de survol */
.alyic--hover-lift .alyic__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.alyic--hover-border .alyic__card:hover {
	border-color: #f47b20;
}

/* Repli responsive si aucune valeur mobile n'est définie dans Elementor */
@media (max-width: 1024px) {
	.alyic__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.alyic__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.alyic__head {
		margin-bottom: 28px;
	}
}

/* Respect des préférences système */
@media (prefers-reduced-motion: reduce) {
	.alyic__card,
	.alyic__link,
	.alyic__arrow {
		transition: none;
	}

	.alyic--hover-lift .alyic__card:hover {
		transform: none;
	}
}


/* ==========================================================
   BANDEAU D'APPEL
   ========================================================== */

.alyic-cta {
	position: relative;
	overflow: hidden;
	background-color: #f47b20;
	border-radius: 12px;
	padding: 56px 32px;
}

.alyic-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: transparent;
	pointer-events: none;
}

.alyic-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
}

.alyic-cta--split .alyic-cta__inner {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	gap: 32px;
}

.alyic-cta__text {
	max-width: 560px;
}

.alyic-cta--centre .alyic-cta__text {
	margin-left: auto;
	margin-right: auto;
}

.alyic-cta__eyebrow {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.4;
	color: #7a3a08;
}

.alyic-cta__title {
	margin: 0 0 10px;
	font-size: 32px;
	line-height: 1.25;
	color: #1a1a1a;
}

.alyic-cta__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #2b2b2b;
}

.alyic-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.alyic-cta--split .alyic-cta__actions {
	flex-shrink: 0;
	justify-content: flex-end;
}

.alyic-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.alyic-cta__btn--primary {
	background-color: #2e3a45;
	border-color: #2e3a45;
	color: #fff;
}

.alyic-cta__btn--secondary {
	background-color: transparent;
	border-color: #1a1a1a;
	color: #1a1a1a;
}

.alyic-cta__btn:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.alyic-cta {
		padding: 36px 20px;
	}

	.alyic-cta--split .alyic-cta__inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.alyic-cta__title {
		font-size: 25px;
	}

	.alyic-cta__actions {
		width: 100%;
		justify-content: stretch;
	}

	.alyic-cta__btn {
		flex: 1 1 100%;
	}
}


/* ==========================================================
   GALERIE
   ========================================================== */

.alyic-gal__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 28px;
}

.alyic-gal__title,
.alyic-gal__subtitle {
	width: 100%;
}

.alyic-gal__title {
	margin: 0 0 10px;
	line-height: 1.25;
	color: #2e3a45;
}

.alyic-gal__subtitle {
	margin: 0;
	max-width: 620px;
	line-height: 1.65;
	color: #4a4a4a;
}

.alyic-gal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.alyic-gal__item {
	margin: 0;
	min-width: 0;
}

.alyic-gal__item--large {
	grid-column: span 2;
}

.alyic-gal__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
	background-color: #f1f1f1;
}

.alyic-gal__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.alyic-gal--zoom .alyic-gal__media:hover img {
	transform: scale(1.05);
}

.alyic-gal--fade .alyic-gal__media:hover img {
	opacity: 0.82;
}

.alyic-gal__caption--survol {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 14px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
	opacity: 0;
	transition: opacity 0.25s ease;
}

.alyic-gal__media:hover .alyic-gal__caption--survol,
.alyic-gal__media:focus-visible .alyic-gal__caption--survol {
	opacity: 1;
}

.alyic-gal__caption--sous {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #4a4a4a;
}

a.alyic-gal__media:focus-visible {
	outline: 3px solid #c2410c;
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.alyic-gal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.alyic-gal__item--large {
		grid-column: span 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alyic-gal__media img,
	.alyic-gal__caption--survol,
	.alyic-cta__btn {
		transition: none;
	}

	.alyic-gal--zoom .alyic-gal__media:hover img {
		transform: none;
	}
}
