/* ==========================================================================
   Espace presse des Angles — gabarits « Connexion » et « Ressources »
   Mesures relevées sur la maquette Figma (1440 px) : grille de 1222 px,
   titres Poppins 50 / 30, textes Roboto 16 / 12.
   ========================================================================== */

.ep {
	--ep-navy: #1b2138;
	--ep-blue: #6cc6de;
	--ep-blue-soft: #74cada;
	--ep-light: #f5f5f5;
	--ep-tint-10: rgba(108, 198, 222, .1);
	--ep-tint-20: rgba(108, 198, 222, .2);
	--ep-tint-30: rgba(108, 198, 222, .3);
	--ep-muted: rgba(27, 33, 56, .5);
	--ep-green: #6cde77;
	--ep-orange: #ffb30e;
	--ep-red: #f02e19;
	--ep-radius: 10px;
	--ep-gutter: 20px;
	--ep-poppins: 'Poppins', sans-serif;
	--ep-roboto: 'Roboto', sans-serif;

	background: #fff;
	color: var(--ep-navy);
	font-family: var(--ep-roboto);
	font-size: 16px;
	line-height: 20px;
	overflow-x: clip;
}

.ep *,
.ep *::before,
.ep *::after { box-sizing: border-box; }

/* Divi pose des marges et paddings sur les titres, paragraphes et listes.
   :where() garde la spécificité d'une simple classe pour que les composants la remplacent. */
.ep :where(h1, h2, h3, h4, p, ul, dl, dd) {
	margin: 0;
	padding: 0;
}
.ep :where(ul) { list-style: none; }
.ep a { text-decoration: none; }
.ep img { max-width: 100%; }

.ep-container {
	width: 100%;
	max-width: calc(1222px + 32px);
	margin: 0 auto;
	padding: 0 16px;
}

.ep-icon {
	display: block;
	flex: none;
	width: auto;
	height: auto;
}

.ep-accent { color: var(--ep-blue); }

.ep-h2 {
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 30px;
	line-height: 30px;
	color: var(--ep-navy);
	padding: 0;
}
.ep-h2--light { color: var(--ep-light); }

.ep-note {
	font-size: 12px;
	line-height: 16px;
	color: var(--ep-muted);
}

/* Boutons pilule (maquette : 159 × 49, Poppins 14) */
.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 49px;
	padding: 12px 22px;
	border: 0;
	border-radius: 60px;
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 14px;
	line-height: 25px;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.ep-btn:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 3px; }
.ep-btn--blue { background: var(--ep-blue); color: var(--ep-navy); }
.ep-btn--blue:hover { background: #8fd4e6; color: var(--ep-navy); }
.ep-btn--white { background: #fff; color: var(--ep-navy); }
.ep-btn--white:hover { background: var(--ep-light); color: var(--ep-navy); }
.ep-btn--navy { background: var(--ep-navy); color: #fff; }
.ep-btn--navy:hover { background: #2c3558; color: #fff; }
.ep-btn--small {
	min-height: 35px;
	padding: 5px 18px;
	font-family: var(--ep-roboto);
	font-size: 16px;
	line-height: 20px;
}

.ep-round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 35px;
	height: 35px;
	border-radius: 50%;
}
.ep-round .ep-icon { width: 21px; height: 21px; }
.ep-round--light { background: var(--ep-light); }
.ep-round--blue { background: var(--ep-blue); }

.ep-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 8px;
	border-radius: 60px;
	background: rgba(255, 255, 255, .1);
	font-family: var(--ep-roboto);
	font-size: 12px;
	line-height: 16px;
	color: #fff;
	vertical-align: middle;
}
.ep-pill--status { background: var(--ep-tint-10); padding: 5px 12px 6px 9px; margin: -2px 0 -1px; }
.ep-pill__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ep-blue);
}

/* ==========================================================================
   Hero (fond photo assombri, en-tête Divi posé par-dessus)
   ========================================================================== */

.ep-hero {
	position: relative;
	isolation: isolate;
	background: var(--ep-navy);
	color: var(--ep-light);
	padding: 150px 0 60px;
}
.ep-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Imagify sert le WebP dans un <picture> qui reprend la classe de l'image */
picture.ep-hero__bg,
picture.ep-plan__img,
picture.ep-kit__img { display: block; }
picture.ep-hero__bg img,
picture.ep-kit__img img,
picture.ep-plan__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ep-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(27, 33, 56, .8);
}

.ep-hero__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-family: var(--ep-poppins);
	font-weight: 300;
	font-size: 20px;
	line-height: 24px;
	color: var(--ep-blue-soft);
}
.ep-hero__title {
	margin-top: 10px;
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 34px;
	line-height: 38px;
	color: #fff;
	padding: 0;
}
.ep-hero__intro {
	margin-top: 47px;
	max-width: 703px;
	color: var(--ep-light);
}
.ep-hero__intro p + p { margin-top: 24px; }
.ep-hero__update {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 31px;
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, .5);
}
.ep-hero__update .ep-icon { width: 16px; height: 16px; }

/* Rubriques du hero de connexion (256 × 63, pastille 49 px) */
.ep-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 256px));
	gap: 15px 20px;
	margin-top: 42px;
}
.ep-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 63px;
	padding: 7px 12px 7px 8px;
	border-radius: var(--ep-radius);
	background: var(--ep-tint-10);
	font-weight: 700;
	line-height: 16px;
	color: #fff;
}
.ep-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 49px;
	height: 49px;
	border-radius: 7px;
	background: var(--ep-tint-20);
}

/* ==========================================================================
   Carte de connexion + formulaire Gravity Forms
   ========================================================================== */

.ep-login {
	margin-top: 48px;
	padding: 24px 20px 32px;
	border: 1px solid var(--ep-blue);
	border-radius: var(--ep-radius);
	color: var(--ep-light);
}
.ep-login__title {
	margin-top: 13px;
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 30px;
	line-height: 30px;
	color: #fff;
	padding: 0;
}
.ep-login__text { margin-top: 21px; }
.ep-login__form { margin-top: 23px; }
.ep-login__legal {
	margin-top: 23px;
	font-size: 10px;
	line-height: 14px;
	color: rgba(245, 245, 245, .5);
}
.ep-login__legal strong { font-weight: 700; }
.ep-login__legal a { color: inherit; text-decoration: underline; }
.ep-login__legal a:hover { color: var(--ep-light); }

.ep .gform_wrapper.gravity-theme { margin: 0; }
.ep .gform_wrapper.gravity-theme .gform_fields { row-gap: 24px; }
.ep .gform_wrapper.gravity-theme .gfield_label { display: none; }
.ep .gform_wrapper.gravity-theme .gfield--type-email .ginput_container { position: relative; }
.ep .gform_wrapper.gravity-theme .gfield--type-email .ginput_container::before {
	content: '';
	position: absolute;
	left: 26px;
	top: 50%;
	width: 19px;
	height: 15px;
	transform: translateY(-50%);
	background: url(../icons/ic-mail-light.svg) center / contain no-repeat;
	pointer-events: none;
}
.ep .gform_wrapper.gravity-theme input[type=email] {
	width: 100%;
	height: 55px;
	margin: 0;
	padding: 0 20px 0 55px;
	border: 1px solid transparent;
	border-radius: 60px;
	background: rgba(255, 255, 255, .1);
	font-family: var(--ep-roboto);
	font-size: 16px;
	line-height: 16px;
	color: var(--ep-light);
	box-shadow: none;
}
/* CSS global Divi : « .gform_wrapper input:not(…) { padding: 13px 4px !important } », plus spécifique qu'une classe */
#ep-connexion .gform_wrapper input[type=email] { padding: 0 20px 0 55px !important; }
.ep .gform_wrapper.gravity-theme input[type=email]::placeholder { color: var(--ep-light); opacity: 1; }
.ep .gform_wrapper.gravity-theme input[type=email]:focus {
	outline: none;
	border-color: var(--ep-blue);
	background: rgba(255, 255, 255, .14);
}

/* Case de consentement (case 16 px bleue, texte 12 / 14) */
.ep .gform_wrapper.gravity-theme .ep-alertes .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-left: 25px;
}
.ep .gform_wrapper.gravity-theme .ep-alertes input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	border: 1.5px solid var(--ep-blue);
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
}
.ep .gform_wrapper.gravity-theme .ep-alertes input[type=checkbox]:checked {
	border: 0;
	background: url(../icons/ic-check.svg) center / 16px 16px no-repeat;
}
.ep .gform_wrapper.gravity-theme .ep-alertes input[type=checkbox]:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 2px; }
.ep .gform_wrapper.gravity-theme .ep-alertes label {
	margin: 0;
	max-width: 350px;
	font-family: var(--ep-roboto);
	font-size: 12px;
	line-height: 14px;
	font-weight: 400;
	color: var(--ep-light);
	cursor: pointer;
}

.ep .gform_wrapper.gravity-theme .gform_footer {
	margin: 27px 0 0 !important; /* CSS global Divi : margin-top -25px !important */
	padding: 0 !important;
}
.ep .gform_wrapper.gravity-theme .gform_footer input[type=submit],
.ep .gform_wrapper.gravity-theme .gform_footer button {
	width: 100%;
	height: 55px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 60px;
	background: var(--ep-blue);
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 16px;
	line-height: 25px;
	color: var(--ep-navy);
	cursor: pointer;
	transition: background-color .2s ease;
}
.ep .gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover,
.ep .gform_wrapper.gravity-theme .gform_footer button:hover { background: #8fd4e6; }
.ep .gform_wrapper.gravity-theme .gform_ajax_spinner { position: absolute; margin: 18px 0 0 10px; }

.ep .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid var(--ep-red);
	border-radius: var(--ep-radius);
	background: rgba(240, 46, 25, .12);
	box-shadow: none;
}
.ep .gform_wrapper.gravity-theme .gform_validation_errors h2 {
	font-family: var(--ep-roboto);
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	color: #fff;
}
.ep .gform_wrapper.gravity-theme .gform_validation_errors h2 .gform-icon { display: none; }
.ep .gform_wrapper.gravity-theme .gfield_error input[type=email] { border-color: var(--ep-red); }
.ep .gform_wrapper.gravity-theme .gfield_validation_message {
	margin-top: 8px;
	padding: 0 0 0 20px;
	border: 0;
	background: none;
	font-size: 12px;
	line-height: 16px;
	color: #ff8a7a;
}

.ep-login__confirmation {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--ep-radius);
	background: var(--ep-tint-20);
	color: var(--ep-light);
}
.ep-login__confirmation .ep-icon { width: 20px; height: 20px; margin-top: 1px; }
.ep-login__confirmation p + p { margin-top: 10px; }

/* ==========================================================================
   Besoin urgent (connexion)
   ========================================================================== */

.ep-urgent {
	background: var(--ep-navy);
	color: var(--ep-light);
	padding: 64px 0 72px;
}
.ep-urgent__grid {
	display: grid;
	gap: 32px;
	max-width: calc(877px + 32px);
}
.ep-urgent__intro p { margin-top: 30px; max-width: 395px; }

/* ==========================================================================
   Cartes contact (connexion : fond sombre, ressources : fond clair)
   ========================================================================== */

.ep-contact {
	display: flex;
	flex-direction: column;
	padding: 27px 20px 26px;
	border-radius: var(--ep-radius);
	background: var(--ep-tint-10);
	color: var(--ep-navy);
}
.ep-contact__kicker {
	margin-bottom: 9px;
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 12px;
	line-height: 30px;
	text-transform: uppercase;
	color: var(--ep-blue);
}
.ep-contact__name {
	font-weight: 700;
	font-size: 20px;
	line-height: 22px;
}
.ep-contact__role {
	margin-top: 3px;
	font-weight: 300;
	line-height: 20px;
}
.ep-contact__lines {
	display: grid;
	gap: 12px;
	margin-top: 15px;
	font-weight: 300;
}
.ep-contact__lines li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.ep-contact__lines .ep-icon { width: 21px; height: auto; max-height: 24px; object-fit: contain; object-position: left center; }
.ep-contact__lines a { color: inherit; overflow-wrap: anywhere; }
.ep-contact__lines a:hover { color: var(--ep-blue); }
.ep-contact__hours {
	margin-top: 12px;
	font-size: 10px;
	line-height: 14px;
	color: rgba(245, 245, 245, .5);
}
.ep-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 20px;
}
.ep-contact__actions .ep-btn { flex: 0 1 159px; padding: 12px 10px; white-space: nowrap; }

.ep-contact--dark { color: var(--ep-light); }
.ep-contact--dark .ep-contact__actions { gap: 12px; }
.ep-contact--dark .ep-contact__name { color: #fff; }
.ep-contact--dark .ep-contact__role { color: var(--ep-blue); }
.ep-contact--dark .ep-contact__lines a:hover { color: #fff; }

/* ==========================================================================
   Sections de l'espace ressources
   ========================================================================== */

.ep-section { padding: 48px 0 0; }
.ep-section:last-child { padding-bottom: 72px; }
.ep-section__head { margin-bottom: 24px; }
.ep-section__head .ep-note { margin-top: 12px; max-width: 540px; }

/* Contacts */
.ep-contacts__grid {
	display: grid;
	gap: var(--ep-gutter);
}

/* Chiffres clés : plan des pistes 532 + 2 × 325, gouttière 20 */
.ep-figures__grid {
	display: grid;
	gap: var(--ep-gutter);
}
.ep-plan {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 10px;
	border-radius: var(--ep-radius);
	background: var(--ep-blue);
	color: var(--ep-navy);
	transition: background-color .2s ease;
}
a.ep-plan:hover { background: #8fd4e6; color: var(--ep-navy); }
.ep-plan__img {
	display: block;
	width: 100%;
	aspect-ratio: 246 / 222;
	border-radius: var(--ep-radius);
	object-fit: cover;
}
.ep-plan__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 0 8px 12px;
}
.ep-plan__text {
	font-family: var(--ep-poppins);
	font-weight: 700;
	line-height: 20px;
}
.ep-plan__size {
	margin-top: -12px;
	font-family: var(--ep-poppins);
	font-weight: 300;
	line-height: 20px;
}

.ep-stat {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 112px;
	padding: 20px 24px;
	border-radius: var(--ep-radius);
	background: var(--ep-light);
}
.ep-stat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 60px;
}
.ep-stat__icon .ep-icon { max-width: 60px; max-height: 58px; }
.ep-stat__text { display: flex; flex-direction: column; }
.ep-stat__value {
	font-family: var(--ep-poppins);
	font-weight: 700;
	font-size: 40px;
	line-height: 40px;
	color: var(--ep-navy);
}
.ep-stat__label {
	font-family: var(--ep-poppins);
	font-weight: 700;
	line-height: 22px;
	color: var(--ep-blue);
}

/* Accordéon « Points clés » */
.ep-accordion {
	margin-top: var(--ep-gutter);
	border: 1px solid var(--ep-navy);
	border-radius: var(--ep-radius);
	overflow: hidden;
}
.ep-accordion__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	padding: 12px 20px;
	background: var(--ep-navy);
	font-weight: 700;
	font-size: 18px;
	line-height: 20px;
	color: #fff;
	cursor: pointer;
	list-style: none;
}
.ep-accordion__head::-webkit-details-marker { display: none; }
.ep-accordion__head:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: -4px; }
/* L'icône exportée pointe vers le haut (retournée dans la maquette) : droite fermé, bas ouvert */
.ep-accordion__chevron {
	width: 24px;
	height: 28px;
	transform: rotate(90deg);
	transition: transform .25s ease;
}
.ep-accordion[open] .ep-accordion__chevron { transform: rotate(180deg); }
.ep-accordion__rows { display: block; }
.ep-accordion__row {
	display: grid;
	gap: 4px;
	padding: 12px 20px;
	background: rgba(245, 245, 245, .3);
}
.ep-accordion__row:nth-child(even) { background: var(--ep-tint-10); }
.ep-accordion__row dt { font-weight: 500; }
.ep-accordion__row dd { font-weight: 300; }
.ep-accordion__foot { padding: 35px 20px 30px; }
.ep-btn--icon .ep-icon { width: 24px; height: 24px; }
.ep-btn--small.ep-btn--icon .ep-icon { width: 22px; height: 22px; }
.ep-btn--small.ep-btn--icon .ep-icon[src*="ic-list"] { width: 18px; height: 16px; }
.ep-btn--small.ep-btn--icon .ep-icon[src*="ic-bell"] { width: 15px; height: 18px; }

/* Communiqués & dossiers de presse */
.ep-docs__grid {
	display: grid;
	gap: var(--ep-gutter);
}
.ep-season {
	padding: 26px 20px 30px;
	border-radius: var(--ep-radius);
	background: var(--ep-tint-10);
}
.ep-season__title {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0 0 17px;
	border-bottom: 1px solid #fff;
	font-family: var(--ep-roboto);
	font-weight: 700;
	font-size: 20px;
	line-height: 22px;
	color: var(--ep-navy);
}
.ep-season__title .ep-icon { width: 30px; height: 30px; }
.ep-season__docs {
	display: grid;
	gap: 30px;
	margin-top: 27px;
}
.ep-doc {
	display: flex;
	align-items: flex-start;
	gap: 13px;
}
.ep-doc__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 35px;
	height: 35px;
	border-radius: 7px;
	background: var(--ep-tint-20);
}
.ep-doc__text { flex: 1; min-width: 0; padding-top: 8px; }
.ep-doc__title {
	display: block;
	font-weight: 500;
	line-height: 20px;
	color: var(--ep-navy);
}
.ep-doc__meta {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	line-height: 16px;
	color: var(--ep-muted);
}
.ep-doc .ep-btn { flex: none; min-width: 90px; margin-top: 2px; padding: 5px 16px; }
.ep-doc.is-soon .ep-doc__title { color: var(--ep-muted); }

.ep-banner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: var(--ep-gutter);
	padding: 34px 20px;
	border-radius: var(--ep-radius);
	background: var(--ep-tint-30);
}
.ep-banner__title {
	font-family: var(--ep-roboto);
	font-weight: 700;
	font-size: 20px;
	line-height: 22px;
	color: var(--ep-navy);
	padding: 0;
}
.ep-banner .ep-note { margin-top: 2px; }
.ep-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 52px;
	row-gap: 14px;
}
.ep-banner__actions .ep-btn { gap: 8px; }
.ep-banner__actions .ep-btn--blue { color: #fff; }

/* Médiathèque : 4 cartes 292 × 312, gouttière 18 */
.ep-kits {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}
.ep-kit {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	aspect-ratio: 292 / 312;
	padding: 25px;
	border-radius: var(--ep-radius);
	overflow: hidden;
	isolation: isolate;
	background: var(--ep-navy);
	color: #fff;
}
.ep-kit::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 100%);
}
.ep-kit__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
a.ep-kit:hover .ep-kit__img { transform: scale(1.04); }
a.ep-kit:hover .ep-round--blue { background: #8fd4e6; }
.ep-kit__type {
	position: absolute;
	top: 25px;
	left: 25px;
}
.ep-kit__type .ep-icon { width: 32px; height: 32px; }
.ep-kit__type .ep-icon[src*="ic-play"] { width: 40px; }
.ep-kit__title {
	font-weight: 700;
	line-height: 20px;
	padding-bottom: 7px;
}
.ep-kit__title small {
	display: block;
	font-weight: 400;
	font-size: 12px;
	opacity: .8;
}
.ep-kit .ep-round { transition: background-color .2s ease; }

/* Conditions d'utilisation des visuels */
.ep-rules {
	margin-top: 29px;
	padding: 30px 20px;
	border-radius: var(--ep-radius);
	background: var(--ep-light);
}
.ep-rules__title {
	font-family: var(--ep-roboto);
	font-weight: 700;
	font-size: 20px;
	line-height: 22px;
	color: var(--ep-navy);
	padding: 0;
}
.ep-rules > .ep-note { margin-top: 14px; max-width: 570px; }
.ep-rules__grid {
	display: grid;
	gap: 35px;
	margin-top: 39px;
}
.ep-rule {
	--ep-rule: var(--ep-green);
	padding: 28px 24px 9px;
	border: 1px solid var(--ep-rule);
	border-radius: var(--ep-radius);
	background: color-mix(in srgb, var(--ep-rule) 10%, transparent);
	color: var(--ep-rule);
}
.ep-rule--doit { --ep-rule: var(--ep-orange); }
.ep-rule--interdit { --ep-rule: var(--ep-red); }
.ep-rule__title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--ep-roboto);
	font-weight: 700;
	font-size: 16px;
	line-height: 20px;
	color: inherit;
	padding: 0;
}
.ep-rule__title .ep-icon { width: 24px; height: 24px; }
.ep-rule__list {
	display: grid;
	gap: 13px;
	margin-top: 26px;
}
.ep-rule__list li {
	display: flex;
	align-items: flex-start;
	gap: 23px;
	font-size: 12px;
	line-height: 20px;
}
.ep-rule__list .ep-icon { width: 16px; height: 16px; margin-top: 2px; }

/* ==========================================================================
   Mobile (< 768 px) : tout est centré
   ========================================================================== */

@media (max-width: 767px) {
	.ep-hero { text-align: center; }
	/* retours à la ligne pensés pour le desktop : on laisse le texte couler */
	.ep-hero__title br,
	.ep-login__title br { display: none; }
	.ep-contact__actions { width: 100%; flex-wrap: nowrap; }
	.ep-contact__actions .ep-btn { flex: 1 1 0; min-width: 0; }
	.ep-hero__kicker,
	.ep-hero__update { justify-content: center; }
	.ep-hero__intro { margin-left: auto; margin-right: auto; }
	.ep-tiles { grid-template-columns: 1fr; justify-items: stretch; }
	.ep-tile { text-align: left; }
	.ep-login { text-align: left; }
	.ep-login .ep-pill { display: table; margin: 0 auto; }
	.ep-login__title,
	.ep-login__text,
	.ep-login__legal { text-align: center; }

	.ep-urgent__intro { text-align: center; }
	.ep-urgent__intro p { margin-left: auto; margin-right: auto; }

	.ep-contact { align-items: center; text-align: center; }
	.ep-contact__lines li { justify-content: center; }
	.ep-contact__actions { justify-content: center; }

	.ep-section__head,
	.ep-contacts__title { text-align: center; }
	.ep-section__head .ep-note { margin-left: auto; margin-right: auto; }

	.ep-plan__body { align-items: center; text-align: center; }
	.ep-figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ep-plan { grid-column: 1 / -1; }
	.ep-stat { flex-direction: column; gap: 10px; min-height: 0; padding: 18px 8px; text-align: center; }
	.ep-stat__icon { width: 48px; height: 46px; }
	.ep-stat__icon .ep-icon { max-width: 48px; max-height: 46px; }
	.ep-stat__value { font-size: 28px; line-height: 32px; }
	.ep-stat__label { font-size: 14px; line-height: 18px; }

	.ep-accordion__row { text-align: center; }
	.ep-accordion__foot { text-align: center; }
	.ep-accordion__foot .ep-btn { width: 100%; }

	.ep-season__title { justify-content: center; }
	.ep-doc { flex-direction: column; align-items: center; text-align: center; }
	.ep-doc__text { padding-top: 0; }

	.ep-banner { align-items: center; text-align: center; }
	.ep-banner__actions { flex-direction: column; align-items: stretch; width: 100%; }

	.ep-kit { aspect-ratio: 4 / 3; }

	.ep-rules { text-align: center; }
	.ep-rules > .ep-note { margin-left: auto; margin-right: auto; }
	.ep-rule__title { justify-content: center; }
	.ep-rule__list li { text-align: left; }
}

/* ==========================================================================
   Tablette (≥ 768 px)
   ========================================================================== */

@media (min-width: 768px) {
	.ep-container { padding: 0 32px; max-width: calc(1222px + 64px); }
	.ep-hero { padding: 200px 0 90px; }
	.ep-hero__title { font-size: 44px; line-height: 46px; }
	.ep-login { max-width: 463px; padding: 23px 28px 39px; }

	.ep-contacts__grid,
	.ep-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ep-contacts__title { grid-column: 1 / -1; }

	.ep-figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ep-plan { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
	.ep-plan__img { width: 246px; }
	.ep-plan__body { justify-content: center; padding: 10px 20px; }

	.ep-accordion__row {
		grid-template-columns: minmax(180px, 402px) minmax(0, 1fr);
		gap: 0;
		align-items: center;
		min-height: 52px;
		padding: 8px 25px 8px 32px;
	}
	.ep-accordion__head { padding: 12px 20px 12px 32px; font-size: 20px; }
	.ep-accordion__row dt { padding-right: 24px; }
	.ep-accordion__foot { padding: 35px 32px 30px; }

	.ep-season { padding: 26px 49px 30px; }
	.ep-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 49px; }
	.ep-rules { padding: 28px 30px 27px; }
	.ep-rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ep-urgent__grid { grid-template-columns: minmax(0, 395px) minmax(0, 394px); justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Desktop (≥ 1024 px) : grille de la maquette
   ========================================================================== */

@media (min-width: 1024px) {
	.ep-hero--connexion { padding: 272px 0 108px; }
	.ep-hero--ressources { padding: 272px 0 59px; }
	.ep-hero--ressources .ep-hero__intro { margin-top: 30px; }
	.ep-hero__grid {
		display: grid;
		grid-template-columns: minmax(0, 739px) minmax(0, 463px);
		justify-content: space-between;
		gap: 20px;
		align-items: start;
	}
	.ep-hero__title { font-size: 50px; line-height: 50px; }
	.ep-hero--connexion .ep-hero__intro { margin-left: 4px; }
	.ep-login { margin-top: 0; }

	.ep-urgent { padding: 111px 0 133px; }
	/* maquette : colonnes 394 + 394, bloc décalé à droite du centre (317 → 1194 à 1440) */
	.ep-urgent__grid {
		grid-template-columns: 394px 394px;
		justify-content: space-between;
		max-width: 877px;
		margin-left: max(16px, calc(50% - 403px));
		margin-right: auto;
		padding: 0;
	}
	.ep-urgent .ep-contact--dark { padding: 27px 32px; }

	.ep-section { padding-top: 69px; }
	.ep-section + .ep-section { padding-top: 76px; }
	.ep-media .ep-section__head { margin-bottom: 43px; }
	.ep-section:last-child { padding-bottom: 60px; }

	.ep-contacts__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 414px) minmax(0, 414px);
		column-gap: var(--ep-gutter);
	}
	.ep-contacts__title { grid-column: auto; padding-right: 21px; }
	.ep-contact { padding: 28px 41px 30px; }
	.ep-contacts .ep-contact__lines { margin-top: 19px; }

	.ep-figures__grid {
		grid-template-columns: minmax(0, 532fr) minmax(0, 325fr) minmax(0, 325fr);
		grid-template-rows: repeat(2, minmax(112px, auto));
	}
	.ep-plan { grid-column: 1; grid-row: 1 / span 2; }
	.ep-plan__body { padding: 10px 12px 10px 20px; }

	.ep-banner { padding: 49px 49px 50px; }
	.ep-rules__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ep-kits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.ep *, .ep *::before, .ep *::after { transition: none !important; }
}
