/* ==================================================================== */
/*  Template « Modulable »                                               */
/*  Contenu dans le wrapper du thème, chaque module à 100% du wrapper.   */
/* ==================================================================== */

.content.modulable .module {
	width: 100%;
	padding: 48px 0;
	margin: 0;
}

/* Le module bouton reste plus compact */
.content.modulable .module-bouton {
	padding: 16px 0;
}

/* Cartes entièrement cliquables (quand un lien est présent) */
.content.modulable a.cta-card,
.content.modulable a.evenement-card {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.content.modulable a.evenement-card:hover .evenement-lien,
.content.modulable a.evenement-card:focus .evenement-lien {
	background: #c99746;
}

.content.modulable a.cta-card:hover .cta-card-button,
.content.modulable a.cta-card:focus .cta-card-button {
	opacity: 0.85;
}

/* Le thème limite .content à max-width 24.375em : on l'annule pour occuper
   100% de la largeur du wrapper (.main-content). */
.main-content .wrapper-content .content.modulable {
	max-width: none;
	width: 100%;
	padding: 0;
}

/* Conteneur interne : occupe 100% de la largeur disponible du wrapper */
.content.modulable .module-inner {
	width: 100%;
}

/* Espacement normal entre les paragraphes du contenu */
.content.modulable .text p {
	margin: 0 0 1em;
}

.content.modulable .text p:last-child {
	margin-bottom: 0;
}
.content.modulable .text h2 {
	color: black;
}
/* ------------------------------------------------------------------ */
/* Module : Titre                                                      */
/* ------------------------------------------------------------------ */
.content.modulable .module-titre h2,
.content.modulable .module-titre h3,
.content.modulable .module-titre h4 {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
	line-height: 1.1;
}

.content.modulable .module-titre h2,
.content.modulable .text h2 {
	font-size: 28px;
	font-weight: 700;
}
.content.modulable .module-titre h3,
.content.modulable .text h3 {
	font-size: 22px;
	font-weight: 700;
}
.content.modulable .module-titre h4,
.content.modulable .text h4 {
	font-size: 18px;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Module : Image                                                      */
/* ------------------------------------------------------------------ */
.content.modulable .module-image figure {
	margin: 0;
}

.content.modulable .module-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.content.modulable .module-image figcaption {
	margin-top: 8px;
	font-size: 0.8em;
	color: #666;
}

.content.modulable .module-image.is-full-width img {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Module : Deux colonnes                                              */
/* ------------------------------------------------------------------ */
.content.modulable .module-deux-colonnes {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.content.modulable .module-deux-colonnes .col {
	flex: 1 1 0;
	min-width: 260px;
	border-left: 4px solid #ed1c24; /* accent charte */
	padding-left: 24px;
}

/* Typographie des colonnes */
.content.modulable .module-deux-colonnes .col > :first-child {
	margin-top: 0;
}

.content.modulable .module-deux-colonnes .col h2,
.content.modulable .module-deux-colonnes .col h3,
.content.modulable .module-deux-colonnes .col h4 {
	margin: 0 0 0.5em;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
	color: #000;
}

.content.modulable .module-deux-colonnes .col h2 {
	font-size: 22px;
}
.content.modulable .module-deux-colonnes .col h3 {
	font-size: 18px;
}
.content.modulable .module-deux-colonnes .col h4 {
	font-size: 16px;
}

.content.modulable .module-deux-colonnes .col p {
	margin: 0 0 1em;
	line-height: 1.6;
}

.content.modulable .module-deux-colonnes .col p:last-child {
	margin-bottom: 0;
}

.content.modulable .module-deux-colonnes .col a {
	color: #ed1c24;
	text-decoration: underline;
}

.content.modulable .module-deux-colonnes .col a:hover,
.content.modulable .module-deux-colonnes .col a:focus {
	color: #c8161d;
}

/* Empilement sur mobile */
@media (max-width: 700px) {
	.content.modulable .module-deux-colonnes .col {
		flex-basis: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Bouton simple + bouton d'en-tête (rouge, avec texte)               */
/* ------------------------------------------------------------------ */
.content.modulable .cta-button,
.modulable-header .cta-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 25px;
	padding: 0 16px;
	background: #ed1c24;
	color: #fff;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.content.modulable .cta-button:hover,
.content.modulable .cta-button:focus,
.modulable-header .cta-button:hover,
.modulable-header .cta-button:focus {
	background: #c99746;
	color: #fff;
}

.content.modulable .cta-button .cta-arrow,
.modulable-header .cta-button .cta-arrow {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* En-tête du template modulable : PLEINE LARGEUR page, image 100vh,   */
/* la barre de navigation passe par-dessus.                            */
/* ------------------------------------------------------------------ */

/* La nav du thème passe au-dessus du hero (seulement si un hero est présent). */
.modulable-has-hero .wrapper-inner {
	position: relative;
}

.modulable-has-hero .wrapper-main-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
}

.modulable-header {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center; /* contenu centré verticalement */
	min-height: 100vh; /* image plein écran */
	background-color: #333;
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
}

/* Contenu aligné à gauche, dans la largeur du contenu (40em ≈ celle du wrapper) */
.modulable-header-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* aligné à gauche */
	gap: 20px;
	width: 100%;
	max-width: 40em;
	margin: 0 auto;
	padding: 0 0.41667em;
	box-sizing: border-box;
	text-align: left;
}

/* Titre sur fond sombre translucide + bordure gauche (visuel carrousel) */
.modulable-header-title {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 1.33333em;
	line-height: 1.5;
	text-transform: uppercase;
}

.modulable-header-title span {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	padding: 6px 14px;
}

/* ------------------------------------------------------------------ */
/* Module : Contenu (WYSIWYG) — fond gris clair PLEINE LARGEUR         */
/* ------------------------------------------------------------------ */
.content.modulable .module-wysiwyg {
	position: relative;
	padding: 48px 0;
}

/* Le fond gris déborde sur toute la largeur de la fenêtre.
   left/right -100vw : couvre toute la largeur quel que soit le décalage du
   conteneur parent (le débordement est masqué par .wrapper-outer{overflow:hidden}). */
.content.modulable .module-wysiwyg::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -100vw;
	right: -100vw;
	background: #f2f2f2;
	z-index: 0;
}

.content.modulable .module-wysiwyg .text {
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Module : cartes Section (Appel à l'action) — Figma node 3105:469    */
/* ------------------------------------------------------------------ */
.content.modulable .module-cta .module-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.content.modulable .cta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.content.modulable .cta-card {
	position: relative;
	flex: 0 0 calc((100% - 32px) / 3); /* 3 colonnes (gap 16px) */
	max-width: calc((100% - 32px) / 3);
	min-width: 0;
	aspect-ratio: 304 / 209; /* respecte le ratio de la maquette */
	display: flex;
	align-items: flex-end; /* contenu en bas */
	overflow: hidden;
	background-color: #333;
}

/* Image de fond (élément interne, scale au survol) */
.content.modulable .cta-card__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.content.modulable .cta-card:hover .cta-card__bg,
.content.modulable .cta-card:focus .cta-card__bg {
	transform: scale(1.1);
}

/* Léger voile noir sur l'image (plus de voile rouge) */
.content.modulable .cta-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.content.modulable .cta-card-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* aligné à gauche */
	gap: 12px;
	width: 100%;
	padding: 24px 16px;
	box-sizing: border-box;
}

.content.modulable .cta-card-title {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	text-align: left;
}

/* Bouton des cartes CTA : fond blanc, flèche noire, sans texte */
.content.modulable .cta-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 25px;
	padding: 0 16px;
	background: #fff;
	transition: opacity 0.2s ease;
}

.content.modulable .cta-card-button:hover,
.content.modulable .cta-card-button:focus {
	opacity: 0.85;
}

.content.modulable .cta-card-button .cta-arrow {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.content.modulable .cta-card {
		flex-basis: calc((100% - 16px) / 2); /* 2 colonnes en tablette */
		max-width: calc((100% - 16px) / 2);
	}
}

@media (max-width: 600px) {
	.content.modulable .cta-card {
		flex-basis: 100%; /* 1 colonne en mobile */
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Module : Événements (cartes) — Figma node 3105:230 / 3105:250       */
/* ------------------------------------------------------------------ */
.content.modulable .evenements-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.content.modulable .evenements-titre {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.1;
	text-transform: uppercase;
	color: #000;
}

.content.modulable .evenements-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.content.modulable .evenement-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 0 calc((100% - 64px) / 3); /* 3 colonnes (gap 32px) */
	max-width: calc((100% - 64px) / 3);
	min-width: 0;
}

.content.modulable .evenement-image {
	position: relative;
	width: 100%;
	aspect-ratio: 293 / 164; /* respecte le ratio de la maquette */
	background-color: #333;
	overflow: hidden;
}

/* Image de fond (élément interne, scale au survol) */
.content.modulable .evenement-image__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.content.modulable .evenement-card:hover .evenement-image__bg,
.content.modulable .evenement-card:focus .evenement-image__bg {
	transform: scale(1.1);
}

.content.modulable .evenement-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 0 auto;
	gap: 16px;
}

.content.modulable .evenement-top {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.content.modulable .evenement-tag {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 16px;
	background: #000;
	color: #fff;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
}

.content.modulable .evenement-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.content.modulable .evenement-card-titre {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.1;
	text-transform: uppercase;
	color: #000;
}

.content.modulable .evenement-description {
	margin: 0;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.7);
}

.content.modulable .evenement-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.content.modulable .evenement-date {
	margin: 0;
	font-family: 'Quantico', Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	color: #000;
}

.content.modulable .evenement-heure {
	color: #c99746;
}

.content.modulable .evenement-jour + .evenement-heure::before {
	content: '/ ';
	color: #000;
}

.content.modulable .evenement-lien {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 25px;
	padding: 0 8px;
	background: #ed1c24;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

.content.modulable .evenement-lien:hover,
.content.modulable .evenement-lien:focus {
	background: #c99746;
}

.content.modulable .evenement-lien .cta-arrow {
	width: 18px;
	height: 18px;
}

@media (max-width: 1024px) {
	.content.modulable .evenement-card {
		flex-basis: calc((100% - 32px) / 2); /* 2 colonnes en tablette */
		max-width: calc((100% - 32px) / 2);
	}
}

@media (max-width: 600px) {
	.content.modulable .evenement-card {
		flex-basis: 100%; /* 1 colonne en mobile */
		max-width: 100%;
	}
}
