/* ==========================================================================
   eBook Premium — feuille principale
   Écrite en mobile first : le style de base vise l'écran de téléphone,
   les media queries `min-width` ajoutent ce que les grands écrans permettent.

   Sommaire
   1.  Base et typographie
   2.  Utilitaires et conteneurs
   3.  Boutons et liens
   4.  Bandeau, en-tête, recherche, tiroir
   5.  Accueil — ouverture
   6.  Sections communes
   7.  Rayons et grille de titres
   8.  Étapes, marketplace, auteurs, avis
   9.  Accordéon, journal
   10. Pages intérieures, prose, pages légales
   11. Formulaires
   12. Tableaux et répartition des gains
   13. Pied de page et barre mobile
   14. États vides, 404, pagination
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base et typographie
   ----------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body.ep-theme {
	margin: 0;
	background: var(--ep-papier);
	color: var(--ep-encre);
	font-family: var(--ep-texte);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.ep-theme h1,
.ep-theme h2,
.ep-theme h3,
.ep-theme h4 {
	font-family: var(--ep-titre);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--ep-encre);
	margin: 0 0 .6em;
	font-variation-settings: "SOFT" 0, "WONK" 1;
	text-wrap: balance;
}

.ep-theme h1 { font-size: var(--ep-t-2xl); }
.ep-theme h2 { font-size: var(--ep-t-xl); }
.ep-theme h3 { font-size: var(--ep-t-lg); }
.ep-theme h4 { font-size: var(--ep-t-md); }

.ep-theme p { margin: 0 0 1em; }
.ep-theme p:last-child { margin-bottom: 0; }

.ep-theme a {
	color: var(--ep-rouge-fonce);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

.ep-theme a:hover { color: var(--ep-rouge); }

.ep-theme img,
.ep-theme picture,
.ep-theme svg,
.ep-theme video { max-width: 100%; height: auto; display: block; }

.ep-theme ul,
.ep-theme ol { margin: 0 0 1em; padding-left: 1.2em; }

:where(.ep-theme) :focus-visible {
	outline: 3px solid var(--ep-orange);
	outline-offset: 2px;
	border-radius: 3px;
}

::selection { background: var(--ep-or); color: var(--ep-encre); }

/* --------------------------------------------------------------------------
   2. Utilitaires et conteneurs
   ----------------------------------------------------------------------- */

.ep-conteneur {
	width: 100%;
	max-width: var(--ep-largeur);
	margin-inline: auto;
	padding-inline: var(--ep-gouttiere);
}

.ep-main { padding-bottom: var(--ep-section-y); }

.ep-section { padding-block: var(--ep-section-y); }
.ep-section + .ep-section { padding-top: 0; }

.ep-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ep-skip {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: .8rem 1.2rem;
	background: var(--ep-encre);
	color: #fff;
	border-radius: 0 0 var(--ep-r-sm) 0;
}
.ep-skip:focus { left: 0; top: 0; color: #fff; }

.ep-piege {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.ep-icone { flex: none; }

/* --------------------------------------------------------------------------
   3. Boutons et liens
   ----------------------------------------------------------------------- */

.ep-bouton,
.ep-theme .ep-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	background: var(--ep-degrade);
	color: #fff;
	font-family: var(--ep-texte);
	font-size: var(--ep-t-base);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	border-radius: var(--ep-r-pill);
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(168, 12, 31, .28);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.ep-bouton:hover,
.ep-theme .ep-bouton:hover {
	color: #fff;
	filter: saturate(1.08);
	transform: translateY(-1px);
	box-shadow: 0 4px 0 rgba(168, 12, 31, .28);
}

.ep-bouton:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(168, 12, 31, .3); }

.ep-bouton--compact { padding: .5rem .9rem; font-size: var(--ep-t-sm); }
.ep-bouton--large { padding: .95rem 1.75rem; font-size: var(--ep-t-md); }

.ep-bouton--fantome {
	background: transparent;
	color: var(--ep-encre);
	border: 1.5px solid var(--ep-trait);
	box-shadow: none;
}
.ep-bouton--fantome:hover {
	color: var(--ep-encre);
	border-color: var(--ep-rouge);
	background: rgba(224, 16, 42, .04);
	box-shadow: none;
}

.ep-lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
	color: var(--ep-rouge-fonce);
	text-decoration: none;
	border-bottom: 2px solid rgba(224, 16, 42, .28);
	padding-bottom: 2px;
	white-space: nowrap;
}
.ep-lien-fleche:hover { border-bottom-color: var(--ep-rouge); }

/* --------------------------------------------------------------------------
   4. Bandeau, en-tête, recherche, tiroir
   ----------------------------------------------------------------------- */

.ep-bandeau {
	background: var(--ep-encre);
	color: #f6ece4;
	font-size: var(--ep-t-sm);
	text-align: center;
	padding-block: .55rem;
}
.ep-bandeau a { color: var(--ep-or); }

.ep-entete {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 251, 247, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ep-trait);
}

.ep-entete__interieur {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 62px;
}

.ep-entete__burger,
.ep-entete__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--ep-r-pill);
	color: var(--ep-encre);
	cursor: pointer;
	text-decoration: none;
}
.ep-entete__burger:hover,
.ep-entete__action:hover { background: var(--ep-papier-2); color: var(--ep-encre); }

.ep-logo {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	text-decoration: none;
	color: var(--ep-encre);
	margin-right: auto;
}
.ep-logo__marque { width: 34px; height: 34px; flex: none; }
.ep-logo__texte {
	display: flex;
	flex-direction: column;
	font-family: var(--ep-titre);
	line-height: 1;
}
.ep-logo__texte strong {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -.02em;
}
.ep-logo__texte span {
	font-size: .68rem;
	letter-spacing: .16em;
	color: var(--ep-rouge);
	font-family: var(--ep-texte);
	font-weight: 600;
}

.ep-entete .custom-logo { max-height: 44px; width: auto; }

.ep-nav { display: none; }

.ep-entete__actions { display: flex; align-items: center; gap: .15rem; }
.ep-entete__action--compte { display: none; }
.ep-entete__cta { display: none; }

.ep-compteur-panier {
	position: absolute;
	top: 2px; right: 2px;
	min-width: 18px; height: 18px;
	display: grid;
	place-items: center;
	padding: 0 4px;
	background: var(--ep-rouge);
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	border-radius: var(--ep-r-pill);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .15s ease, transform .15s ease;
}
.ep-compteur-panier.a-des-articles { opacity: 1; transform: scale(1); }

.ep-recherche {
	border-top: 1px solid var(--ep-trait);
	background: var(--ep-papier);
	padding-block: .75rem;
}
.ep-recherche[hidden] { display: none; }

.ep-recherche__form {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: #fff;
	border: 1.5px solid var(--ep-trait);
	border-radius: var(--ep-r-pill);
	padding: .3rem .3rem .3rem .9rem;
}
.ep-recherche__form > .ep-icone { color: var(--ep-encre-doux); }
.ep-recherche__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	padding: .5rem 0;
}
.ep-recherche__form input[type="search"]:focus { outline: none; }
.ep-recherche__fermer {
	background: none;
	border: 0;
	color: var(--ep-encre-doux);
	cursor: pointer;
	padding: .4rem;
}
.ep-recherche__form--page { margin-bottom: 2rem; max-width: 42rem; }

/* Tiroir de navigation mobile */
.ep-tiroir { position: fixed; inset: 0; z-index: 80; }
.ep-tiroir[hidden] { display: none; }
.ep-tiroir__voile {
	position: absolute;
	inset: 0;
	background: rgba(26, 18, 16, .5);
	animation: ep-fondu .18s ease-out;
}
.ep-tiroir__panneau {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: min(88vw, 22rem);
	background: var(--ep-papier);
	padding: 1.1rem var(--ep-gouttiere) 1.75rem;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	animation: ep-glisse .22s cubic-bezier(.2, .7, .3, 1);
}
@keyframes ep-fondu { from { opacity: 0; } }
@keyframes ep-glisse { from { transform: translateX(-100%); } }

.ep-tiroir__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}
.ep-tiroir__fermer {
	background: none;
	border: 0;
	padding: .4rem;
	color: var(--ep-encre);
	cursor: pointer;
}
.ep-tiroir__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.ep-tiroir__liste li { border-bottom: 1px solid var(--ep-trait); }
.ep-tiroir__liste a {
	display: block;
	padding: .85rem 0;
	font-family: var(--ep-titre);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ep-encre);
	text-decoration: none;
}
.ep-tiroir__liste a:hover { color: var(--ep-rouge); }
.ep-tiroir__liste .sub-menu {
	list-style: none;
	margin: 0 0 .5rem;
	padding-left: .9rem;
}
.ep-tiroir__liste .sub-menu a {
	font-family: var(--ep-texte);
	font-size: var(--ep-t-base);
	padding: .5rem 0;
}
.ep-tiroir__pied { margin-top: auto; padding-top: 1.5rem; }
.ep-tiroir__pied .ep-bouton { width: 100%; }
.ep-tiroir__contact { margin-top: .9rem; font-size: var(--ep-t-sm); }

@media (min-width: 62em) {
	.ep-entete__burger { display: none; }
	.ep-nav { display: block; margin-left: 1.5rem; margin-right: auto; }
	.ep-nav__liste {
		list-style: none;
		display: flex;
		align-items: center;
		gap: 1.35rem;
		margin: 0;
		padding: 0;
	}
	.ep-nav__liste > li { position: relative; }
	.ep-nav__liste > li > a {
		display: block;
		padding: .4rem 0;
		font-size: .97rem;
		font-weight: 600;
		color: var(--ep-encre);
		text-decoration: none;
	}
	.ep-nav__liste > li > a::after {
		content: "";
		display: block;
		height: 2px;
		margin-top: 3px;
		background: var(--ep-degrade);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .16s ease;
	}
	.ep-nav__liste > li:hover > a::after,
	.ep-nav__liste > .current-menu-item > a::after { transform: scaleX(1); }

	.ep-nav__liste .sub-menu {
		position: absolute;
		top: 100%;
		left: -.9rem;
		min-width: 14rem;
		list-style: none;
		margin: 0;
		padding: .5rem;
		background: #fff;
		border: 1px solid var(--ep-trait);
		border-radius: var(--ep-r-md);
		box-shadow: var(--ep-ombre-2);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.ep-nav__liste > li:hover .sub-menu,
	.ep-nav__liste > li:focus-within .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.ep-nav__liste .sub-menu a {
		display: block;
		padding: .5rem .7rem;
		border-radius: var(--ep-r-sm);
		color: var(--ep-encre);
		text-decoration: none;
		font-size: .95rem;
	}
	.ep-nav__liste .sub-menu a:hover { background: var(--ep-papier-2); }

	.ep-entete__action--compte { display: inline-flex; }
	.ep-entete__cta { display: inline-flex; margin-left: .6rem; }
	.ep-entete__interieur { min-height: 74px; }
	.ep-logo__marque { width: 38px; height: 38px; }
}

/* --------------------------------------------------------------------------
   5. Accueil — ouverture
   ----------------------------------------------------------------------- */

.ep-hero {
	position: relative;
	padding-block: 2.5rem 3rem;
	background:
		radial-gradient(120% 90% at 12% 0%, rgba(247, 158, 27, .16), transparent 60%),
		radial-gradient(90% 70% at 100% 10%, rgba(224, 16, 42, .12), transparent 55%),
		var(--ep-papier);
	overflow: hidden;
}

.ep-hero__interieur { display: grid; gap: 2.25rem; }

.ep-hero__titre {
	font-size: var(--ep-t-3xl);
	font-weight: 600;
	max-width: 16ch;
	margin-bottom: .45em;
}

.ep-hero__chapo {
	font-size: var(--ep-t-md);
	color: var(--ep-encre-doux);
	max-width: 46ch;
	margin-bottom: 1.6rem;
}

.ep-hero__recherche {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: #fff;
	border: 2px solid var(--ep-encre);
	border-radius: var(--ep-r-pill);
	padding: .35rem .35rem .35rem 1rem;
	box-shadow: var(--ep-ombre-couverture);
	max-width: 34rem;
}
.ep-hero__recherche > .ep-icone { color: var(--ep-encre-doux); }
.ep-hero__recherche input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	padding: .65rem 0;
	color: inherit;
}
.ep-hero__recherche input[type="search"]:focus { outline: none; }
.ep-hero__recherche .ep-bouton { flex: none; }

.ep-hero__suggestions {
	margin-top: .9rem;
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}
.ep-hero__suggestions a {
	color: var(--ep-encre);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-pill);
	padding: .25rem .7rem;
}
.ep-hero__suggestions a:hover { border-color: var(--ep-rouge); color: var(--ep-rouge-fonce); }

.ep-hero__chiffres {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.25rem;
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ep-trait);
}
.ep-hero__chiffres dt {
	order: 2;
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-doux);
	max-width: 12ch;
	line-height: 1.3;
}
.ep-hero__chiffres dd {
	order: 1;
	margin: 0 0 .15rem;
	font-family: var(--ep-titre);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1;
}
.ep-hero__chiffres dd span { font-size: 1.1rem; color: var(--ep-rouge); }
.ep-hero__chiffres > div { display: flex; flex-direction: column; }

.ep-hero__visuel { position: relative; }
.ep-hero__photo img {
	width: 100%;
	border-radius: var(--ep-r-lg) var(--ep-r-lg) var(--ep-r-lg) 60px;
	box-shadow: var(--ep-ombre-2);
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.ep-hero__carte {
	position: absolute;
	left: 1rem;
	bottom: -1.25rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	box-shadow: var(--ep-ombre-2);
	padding: .8rem 1rem;
	display: grid;
	gap: .15rem;
	max-width: 17rem;
}
.ep-hero__carte-etat {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: var(--ep-t-xs);
	font-weight: 600;
	color: var(--ep-vert);
}
.ep-hero__carte strong { font-family: var(--ep-titre); font-size: 1.05rem; }
.ep-hero__carte-detail { font-size: var(--ep-t-xs); color: var(--ep-encre-doux); }

@media (min-width: 62em) {
	.ep-hero { padding-block: 4.5rem 5.5rem; }
	.ep-hero__interieur {
		grid-template-columns: 1.05fr .95fr;
		align-items: center;
		gap: 3.5rem;
	}
	.ep-hero__carte { left: -2rem; bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   6. Sections communes
   ----------------------------------------------------------------------- */

.ep-section__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}
.ep-section__titre { margin: 0 0 .35em; max-width: 22ch; }
.ep-section__chapo {
	margin: 0;
	color: var(--ep-encre-doux);
	max-width: 56ch;
}

.ep-confiance { padding-top: 2.5rem; }
.ep-confiance__liste {
	list-style: none;
	margin: 0;
	padding: 1.25rem;
	display: grid;
	gap: 1.25rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-lg);
}
.ep-confiance__liste li { display: flex; gap: .8rem; }
.ep-confiance__liste strong { display: block; font-size: var(--ep-t-base); }
.ep-confiance__liste p {
	margin: .2rem 0 0;
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
}
.ep-confiance__icone {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	flex: none;
	border-radius: 50%;
	background: #fff;
	color: var(--ep-rouge);
	box-shadow: var(--ep-ombre-1);
}

@media (min-width: 40em) {
	.ep-confiance__liste { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; padding: 1.75rem; }
}
@media (min-width: 62em) {
	.ep-confiance__liste { grid-template-columns: repeat(4, 1fr); padding: 2rem; }
}

/* --------------------------------------------------------------------------
   7. Rayons et grille de titres
   ----------------------------------------------------------------------- */

.ep-rayons__grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .75rem;
}

.ep-rayon a {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1rem 1rem 1rem 1.4rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	text-decoration: none;
	color: var(--ep-encre);
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease;
}
.ep-rayon a:hover { border-color: var(--ep-rouge); transform: translateY(-2px); }

/* La tranche colorée évoque le dos d'un livre sur une étagère. */
.ep-rayon__tranche {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 6px;
	background: var(--ep-degrade);
}
.ep-rayon__nom { font-family: var(--ep-titre); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.ep-rayon__desc {
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
	margin-top: .35rem;
	display: none;
}
.ep-rayon__compte {
	margin-top: auto;
	padding-top: .8rem;
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-tres-doux);
}

@media (min-width: 40em) {
	.ep-rayons__grille { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
	.ep-rayon__desc { display: block; }
}
@media (min-width: 62em) {
	.ep-rayons__grille { grid-template-columns: repeat(4, 1fr); }
	.ep-rayon a { padding: 1.25rem 1.25rem 1.25rem 1.6rem; }
}

/* Grille de titres : deux colonnes dès le mobile, comme un rayon de librairie */
.ep-grille-produits,
.ep-theme ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem .9rem;
}

@media (min-width: 48em) {
	.ep-grille-produits,
	.ep-theme ul.products { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; }
}
@media (min-width: 62em) {
	.ep-grille-produits,
	.ep-theme ul.products { grid-template-columns: repeat(4, 1fr); }
}

.ep-carte {
	display: flex;
	flex-direction: column;
	position: relative;
}
.ep-carte__lien {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	text-decoration: none;
	color: inherit;
}
.ep-carte__couverture {
	position: relative;
	border-radius: var(--ep-r-sm);
	overflow: hidden;
	background: var(--ep-papier-2);
	aspect-ratio: 2 / 3;
	box-shadow: var(--ep-ombre-couverture);
	transition: transform .18s ease, box-shadow .18s ease;
}
.ep-carte__couverture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ep-carte:hover .ep-carte__couverture {
	transform: translate(-2px, -2px);
	box-shadow: 10px 12px 0 rgba(26, 18, 16, .1);
}

.ep-pastille {
	position: absolute;
	top: .5rem;
	left: .5rem;
	z-index: 2;
	padding: .2rem .55rem;
	font-size: .68rem;
	font-weight: 700;
	border-radius: var(--ep-r-pill);
	color: #fff;
	letter-spacing: .01em;
}
.ep-pastille--promo { background: var(--ep-rouge); }
.ep-pastille--nouveau { background: var(--ep-encre); }

.ep-carte__titre {
	font-size: 1rem;
	margin: 0;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-carte__auteur {
	margin: .2rem 0 0;
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
}
.ep-carte__note {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin: .35rem 0 0;
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
}
.ep-carte__note .ep-icone { color: var(--ep-orange); fill: var(--ep-orange); }
.ep-carte__note span { font-weight: 600; color: var(--ep-encre); }

.ep-carte__pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .7rem;
	flex-wrap: wrap;
}
.ep-carte__prix {
	font-family: var(--ep-titre);
	font-size: 1.05rem;
	font-weight: 700;
}
.ep-carte__prix del { color: var(--ep-encre-tres-doux); font-size: .85em; font-weight: 400; margin-right: .3em; }
.ep-carte__prix ins { text-decoration: none; color: var(--ep-rouge); }

.ep-cat-barre { margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; }
.ep-cat-barre::-webkit-scrollbar { display: none; }
.ep-cat-barre ul {
	list-style: none;
	display: flex;
	gap: .5rem;
	margin: 0;
	padding: 0 0 .25rem;
	width: max-content;
}
.ep-puce {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem .9rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-pill);
	font-size: var(--ep-t-sm);
	font-weight: 600;
	color: var(--ep-encre);
	text-decoration: none;
	white-space: nowrap;
}
.ep-puce span { color: var(--ep-encre-tres-doux); font-weight: 400; }
.ep-puce:hover { border-color: var(--ep-rouge); color: var(--ep-rouge-fonce); }
.ep-puce.est-actif {
	background: var(--ep-encre);
	border-color: var(--ep-encre);
	color: #fff;
}
.ep-puce.est-actif span { color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   8. Étapes, marketplace, auteurs, avis
   ----------------------------------------------------------------------- */

.ep-etapes__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	counter-reset: ep-etape;
}
.ep-etape { position: relative; padding-left: 3.25rem; }
.ep-etape__num {
	position: absolute;
	left: 0;
	top: -.15rem;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--ep-papier-2);
	border: 1.5px solid var(--ep-trait);
	font-family: var(--ep-titre);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ep-rouge-fonce);
}
.ep-etape h3 { margin-bottom: .3em; font-size: var(--ep-t-md); }
.ep-etape p { color: var(--ep-encre-doux); font-size: var(--ep-t-base); margin: 0; }
.ep-etapes__lien { margin-top: 1.75rem; }

@media (min-width: 48em) {
	.ep-etapes__liste { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
	.ep-etapes__liste--quatre { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
	.ep-etapes__liste--quatre { grid-template-columns: repeat(4, 1fr); }
}

/* Bloc « vendre vos ebooks » */
.ep-vendre__interieur { display: grid; gap: 2.5rem; }
.ep-vendre__visuel { position: relative; }
.ep-vendre__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ep-r-lg) 60px var(--ep-r-lg) var(--ep-r-lg);
	box-shadow: var(--ep-ombre-2);
}
.ep-vendre__badge {
	position: absolute;
	right: 1rem;
	bottom: -1.5rem;
	background: var(--ep-encre);
	color: #fff;
	padding: 1rem 1.2rem;
	border-radius: var(--ep-r-md);
	max-width: 12rem;
	box-shadow: var(--ep-ombre-2);
}
.ep-vendre__badge strong {
	display: block;
	font-family: var(--ep-titre);
	font-size: 2.4rem;
	line-height: 1;
	background: var(--ep-degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ep-vendre__badge strong span { font-size: 1.4rem; }
.ep-vendre__badge > span { font-size: var(--ep-t-xs); color: rgba(255, 255, 255, .78); }

.ep-vendre__texte h2 { max-width: 20ch; }
.ep-vendre__texte > p { color: var(--ep-encre-doux); max-width: 52ch; }
.ep-vendre__points {
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
	display: grid;
	gap: .8rem;
}
.ep-vendre__points li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-size: var(--ep-t-base);
}
.ep-vendre__points .ep-icone { color: var(--ep-rouge); margin-top: .2rem; }
.ep-vendre__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

@media (min-width: 62em) {
	.ep-vendre__interieur { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
	.ep-vendre__badge { right: -2rem; bottom: 2rem; }
}

/* Auteurs */
.ep-auteurs__grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}
.ep-auteur {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
}
.ep-auteur__portrait {
	flex: none;
	width: 88px;
	height: 88px;
	border-radius: var(--ep-r-md);
	overflow: hidden;
	background: var(--ep-papier-2);
}
.ep-auteur__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ep-auteur__infos h2,
.ep-auteur__infos h3 { font-size: var(--ep-t-md); margin-bottom: .15em; }
.ep-auteur__role {
	margin: 0 0 .4rem;
	font-size: var(--ep-t-sm);
	font-weight: 600;
	color: var(--ep-rouge-fonce);
}
.ep-auteur__bio { margin: 0 0 .5rem; font-size: var(--ep-t-sm); color: var(--ep-encre-doux); }
.ep-auteur__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .75rem;
	margin: 0;
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-tres-doux);
}
.ep-auteur__meta span + span::before { content: "· "; }

@media (min-width: 48em) {
	.ep-auteurs__grille { grid-template-columns: repeat(2, 1fr); }
	.ep-auteur__portrait { width: 104px; height: 130px; }
}
@media (min-width: 62em) {
	.ep-auteurs__grille--page { grid-template-columns: repeat(3, 1fr); }
}

.ep-mp-chiffres {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin-bottom: 2.5rem;
	background: var(--ep-trait);
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	overflow: hidden;
}
.ep-mp-chiffres > div {
	background: var(--ep-papier);
	padding: 1.1rem 1rem;
	text-align: center;
}
.ep-mp-chiffres strong {
	display: block;
	font-family: var(--ep-titre);
	font-size: 1.7rem;
	line-height: 1;
	margin-bottom: .3rem;
}
.ep-mp-chiffres span { font-size: var(--ep-t-xs); color: var(--ep-encre-doux); }

@media (min-width: 48em) {
	.ep-mp-chiffres { grid-template-columns: repeat(4, 1fr); }
}

/* Avis */
.ep-avis__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}
.ep-avis__carte {
	display: flex;
	flex-direction: column;
	padding: 1.4rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
}
.ep-avis__note { display: flex; gap: .1rem; margin: 0 0 .75rem; color: var(--ep-orange); }
.ep-avis__note .ep-icone { fill: var(--ep-orange); }
.ep-avis__carte blockquote {
	margin: 0 0 1.1rem;
	font-family: var(--ep-titre);
	font-size: 1.08rem;
	line-height: 1.45;
}
.ep-avis__carte blockquote p:first-child::before { content: "« "; }
.ep-avis__carte blockquote p:last-child::after { content: " »"; }
.ep-avis__signature {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-top: auto;
}
.ep-avis__portrait {
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ep-papier-3);
}
.ep-avis__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ep-avis__signature strong { display: block; font-size: var(--ep-t-base); }
.ep-avis__signature small { color: var(--ep-encre-doux); font-size: var(--ep-t-sm); }

@media (min-width: 48em) { .ep-avis__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75em) { .ep-avis__liste { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   9. Accordéon, journal
   ----------------------------------------------------------------------- */

.ep-faq-accueil__interieur { display: grid; gap: 2rem; }
.ep-faq-accueil__intro .ep-section__titre { max-width: 18ch; }

.ep-accordeon { display: grid; gap: .5rem; }
.ep-accordeon__item {
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	overflow: hidden;
}
.ep-accordeon__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}
.ep-accordeon__item summary::-webkit-details-marker { display: none; }
.ep-accordeon__item summary .ep-icone {
	color: var(--ep-rouge);
	transition: transform .18s ease;
}
.ep-accordeon__item[open] summary .ep-icone { transform: rotate(45deg); }
.ep-accordeon__reponse {
	padding: 0 1.1rem 1.1rem;
	color: var(--ep-encre-doux);
}
.ep-accordeon__reponse p:last-child { margin-bottom: 0; }

@media (min-width: 62em) {
	.ep-faq-accueil__interieur { grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
}

.ep-journal__grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.75rem;
}
.ep-article-carte a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
.ep-article-carte__image {
	display: block;
	border-radius: var(--ep-r-md);
	overflow: hidden;
	margin-bottom: .9rem;
	background: var(--ep-papier-2);
}
.ep-article-carte__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .3s ease;
}
.ep-article-carte a:hover .ep-article-carte__image img { transform: scale(1.03); }
.ep-article-carte__meta {
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-tres-doux);
	margin-bottom: .35rem;
}
.ep-article-carte h2,
.ep-article-carte h3 { font-size: var(--ep-t-md); margin-bottom: .35em; }
.ep-article-carte p { color: var(--ep-encre-doux); font-size: var(--ep-t-sm); margin: 0; }

@media (min-width: 48em) { .ep-journal__grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48em) { .ep-journal__grille--archive { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 62em) { .ep-journal__grille--archive { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   10. Pages intérieures, prose, pages légales
   ----------------------------------------------------------------------- */

.ep-page-hero {
	padding-block: 2rem 2.5rem;
	background: linear-gradient(180deg, var(--ep-papier-2), var(--ep-papier));
	border-bottom: 1px solid var(--ep-trait);
	margin-bottom: var(--ep-section-y);
}
.ep-page-hero__titre { font-size: var(--ep-t-2xl); max-width: 20ch; margin-bottom: .3em; }
.ep-page-hero__chapo {
	font-size: var(--ep-t-md);
	color: var(--ep-encre-doux);
	max-width: 60ch;
	margin: 0;
}
.ep-page-hero__mention {
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
	margin: 0 0 .5rem;
}

.ep-ariane { font-size: var(--ep-t-xs); margin-bottom: 1rem; color: var(--ep-encre-tres-doux); }
.ep-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.ep-ariane li + li::before { content: "/"; margin-right: .35rem; color: var(--ep-trait); }
.ep-ariane a { color: var(--ep-encre-doux); text-decoration: none; }
.ep-ariane a:hover { color: var(--ep-rouge); }

.ep-prose { max-width: var(--ep-largeur-texte); }
.ep-prose > h2 { margin-top: 2.25em; }
.ep-prose > h3 { margin-top: 1.75em; }
.ep-prose > h2:first-child,
.ep-prose > h3:first-child { margin-top: 0; }
.ep-prose ul,
.ep-prose ol { padding-left: 1.35em; }
.ep-prose li { margin-bottom: .4em; }
.ep-prose img { border-radius: var(--ep-r-md); }
.ep-prose blockquote {
	margin: 1.75em 0;
	padding: .25rem 0 .25rem 1.25rem;
	border-left: 4px solid var(--ep-orange);
	font-family: var(--ep-titre);
	font-size: 1.15rem;
}
.ep-prose__image { margin: 0 0 2rem; }
.ep-prose__image img { width: 100%; border-radius: var(--ep-r-lg); }
.ep-prose code {
	background: var(--ep-papier-2);
	padding: .1em .35em;
	border-radius: 4px;
	font-size: .9em;
}

.ep-legal__interieur { display: grid; gap: 2rem; }
.ep-legal__sommaire {
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	padding: 1.25rem;
	align-self: start;
}
.ep-legal__sommaire h2 { font-size: var(--ep-t-base); margin-bottom: .75em; }
.ep-legal__sommaire ol { margin: 0; padding-left: 1.1rem; font-size: var(--ep-t-sm); }
.ep-legal__sommaire li { margin-bottom: .4em; }
.ep-legal__sommaire a { color: var(--ep-encre); text-decoration: none; }
.ep-legal__sommaire a:hover { color: var(--ep-rouge); text-decoration: underline; }
.ep-prose--legal h2 {
	padding-top: .5rem;
	border-top: 1px solid var(--ep-trait);
	font-size: var(--ep-t-lg);
}
.ep-legal__contact {
	margin-top: 2.5rem;
	padding: 1rem 1.25rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	font-size: var(--ep-t-sm);
}

@media (min-width: 62em) {
	.ep-legal__interieur { grid-template-columns: 16rem 1fr; gap: 3.5rem; }
	.ep-legal__sommaire { position: sticky; top: 6rem; }
}

.ep-article__image { margin: 0 0 2.5rem; }
.ep-article__image img { width: 100%; border-radius: var(--ep-r-lg); }
.ep-article__pied {
	max-width: var(--ep-largeur-texte);
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ep-trait);
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
}
.ep-nav-articles {
	max-width: var(--ep-largeur-texte);
	margin-top: 2.5rem;
	display: grid;
	gap: 1rem;
}
.ep-nav-articles a {
	display: block;
	padding: 1rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	text-decoration: none;
	color: var(--ep-encre);
	font-family: var(--ep-titre);
	font-size: 1.05rem;
}
.ep-nav-articles span {
	display: block;
	font-family: var(--ep-texte);
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-doux);
	margin-bottom: .25rem;
}
@media (min-width: 48em) { .ep-nav-articles { grid-template-columns: 1fr 1fr; } }

/* Pages à propos, aide, plan du site */
.ep-apropos__image { margin: 0 0 2.5rem; }
.ep-apropos__image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--ep-r-lg); }
.ep-apropos__grille { display: grid; gap: 2.5rem; }
.ep-apropos__aside { display: grid; gap: 1.25rem; align-content: start; }
.ep-apropos__carte {
	padding: 1.4rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
}
.ep-apropos__carte h3 { font-size: var(--ep-t-md); }
.ep-apropos__carte dl { margin: 0; display: grid; gap: .6rem; }
.ep-apropos__carte dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--ep-t-sm); }
.ep-apropos__carte dt { color: var(--ep-encre-doux); }
.ep-apropos__carte dd { margin: 0; font-weight: 600; text-align: right; }
.ep-apropos__carte--accent { background: var(--ep-encre); color: #f4e9e2; }
.ep-apropos__carte--accent h3 { color: #fff; }
.ep-apropos__carte--accent p { font-size: var(--ep-t-sm); margin-bottom: 1rem; }

@media (min-width: 62em) {
	.ep-apropos__grille { grid-template-columns: 1fr 20rem; gap: 4rem; }
}

.ep-engagements__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}
.ep-engagements__liste li {
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
}
.ep-engagements__liste h3 { font-size: var(--ep-t-md); }
.ep-engagements__liste p { color: var(--ep-encre-doux); font-size: var(--ep-t-sm); margin: 0; }
@media (min-width: 48em) { .ep-engagements__liste { grid-template-columns: repeat(3, 1fr); } }

.ep-aide__sommaire {
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	padding: 1.1rem 1.25rem;
	margin-bottom: 2.5rem;
}
.ep-aide__sommaire ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
}
.ep-aide__sommaire a {
	display: inline-block;
	padding: .35rem .85rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-pill);
	font-size: var(--ep-t-sm);
	font-weight: 600;
	color: var(--ep-encre);
	text-decoration: none;
}
.ep-aide__sommaire a:hover { border-color: var(--ep-rouge); color: var(--ep-rouge-fonce); }
.ep-aide__rubrique { margin-bottom: 3rem; scroll-margin-top: 6rem; }
.ep-aide__rubrique h2 { font-size: var(--ep-t-lg); margin-bottom: 1rem; }

.ep-plan__grille { display: grid; gap: 2.5rem; }
.ep-plan h2 { font-size: var(--ep-t-lg); padding-bottom: .5rem; border-bottom: 2px solid var(--ep-trait); }
.ep-plan ul { list-style: none; padding: 0; margin: 0; }
.ep-plan li { padding: .35rem 0; border-bottom: 1px solid var(--ep-papier-2); }
.ep-plan a { color: var(--ep-encre); text-decoration: none; }
.ep-plan a:hover { color: var(--ep-rouge); }
.ep-plan .children { padding-left: 1rem; }
@media (min-width: 48em) { .ep-plan__grille { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

.ep-encart-cta {
	display: grid;
	gap: 1.25rem;
	align-items: center;
	margin-top: 3.5rem;
	padding: 1.75rem;
	background: var(--ep-encre);
	color: #f4e9e2;
	border-radius: var(--ep-r-lg);
}
.ep-encart-cta h2 { color: #fff; font-size: var(--ep-t-lg); margin-bottom: .3em; }
.ep-encart-cta p { margin: 0; font-size: var(--ep-t-sm); color: rgba(244, 233, 226, .82); }
.ep-encart-cta .ep-bouton { justify-self: start; }
@media (min-width: 48em) {
	.ep-encart-cta { grid-template-columns: 1fr auto; padding: 2.25rem 2.5rem; }
	.ep-encart-cta .ep-bouton { justify-self: end; }
}

/* Page devenir auteur */
.ep-auteur-hero {
	padding-block: 1.5rem 3rem;
	background: linear-gradient(180deg, var(--ep-papier-2), var(--ep-papier));
	border-bottom: 1px solid var(--ep-trait);
	margin-bottom: var(--ep-section-y);
}
.ep-auteur-hero__interieur { display: grid; gap: 2rem; }
.ep-auteur-hero h1 { font-size: var(--ep-t-2xl); max-width: 17ch; }
.ep-auteur-hero__chapo { font-size: var(--ep-t-md); color: var(--ep-encre-doux); max-width: 52ch; }
.ep-auteur-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.ep-auteur-hero__visuel img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-ombre-2);
}
@media (min-width: 62em) {
	.ep-auteur-hero { padding-block: 2.5rem 4.5rem; }
	.ep-auteur-hero__interieur { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3.5rem; }
}

.ep-pourquoi__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}
.ep-pourquoi__liste li {
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
}
.ep-pourquoi__icone {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: var(--ep-r-sm);
	background: var(--ep-degrade-doux);
	color: var(--ep-rouge);
	margin-bottom: .9rem;
}
.ep-pourquoi__liste h3 { font-size: var(--ep-t-md); }
.ep-pourquoi__liste p { color: var(--ep-encre-doux); font-size: var(--ep-t-sm); margin: 0; }
@media (min-width: 48em) { .ep-pourquoi__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .ep-pourquoi__liste { grid-template-columns: repeat(3, 1fr); } }

.ep-attentes__grille { display: grid; gap: 2rem; }
.ep-attentes h2 { font-size: var(--ep-t-lg); }
.ep-liste-oui,
.ep-liste-non { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ep-liste-oui li,
.ep-liste-non li {
	position: relative;
	padding-left: 1.75rem;
	font-size: var(--ep-t-base);
}
.ep-liste-oui li::before,
.ep-liste-non li::before {
	position: absolute;
	left: 0;
	top: -.05em;
	font-weight: 700;
	font-size: 1.1em;
}
.ep-liste-oui li::before { content: "✓"; color: var(--ep-vert); }
.ep-liste-non li::before { content: "✕"; color: var(--ep-rouge); }
@media (min-width: 48em) { .ep-attentes__grille { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

/* --------------------------------------------------------------------------
   11. Formulaires
   ----------------------------------------------------------------------- */

.ep-form { display: grid; gap: 1rem; }
.ep-form__ligne { display: grid; gap: 1rem; }
@media (min-width: 40em) { .ep-form__ligne { grid-template-columns: 1fr 1fr; } }

.ep-champ { display: grid; gap: .35rem; }
.ep-champ label { font-size: var(--ep-t-sm); font-weight: 600; }

.ep-theme input[type="text"],
.ep-theme input[type="email"],
.ep-theme input[type="tel"],
.ep-theme input[type="url"],
.ep-theme input[type="number"],
.ep-theme input[type="password"],
.ep-theme input[type="search"]:not([name="s"]),
.ep-theme select,
.ep-theme textarea {
	width: 100%;
	padding: .7rem .9rem;
	background: #fff;
	border: 1.5px solid var(--ep-trait);
	border-radius: var(--ep-r-sm);
	font: inherit;
	color: var(--ep-encre);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ep-theme input:focus,
.ep-theme select:focus,
.ep-theme textarea:focus {
	border-color: var(--ep-rouge);
	box-shadow: 0 0 0 3px rgba(224, 16, 42, .12);
	outline: none;
}
.ep-theme textarea { resize: vertical; min-height: 8rem; }
.ep-theme select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4b45' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 18px;
	padding-right: 2.4rem;
}

.ep-champ--case {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
}
.ep-champ--case input { margin-top: .3rem; flex: none; width: 18px; height: 18px; accent-color: var(--ep-rouge); }
.ep-champ--case label { font-weight: 400; font-size: var(--ep-t-sm); }

.ep-form button[type="submit"] { justify-self: start; }
.ep-form__note { font-size: var(--ep-t-xs); color: var(--ep-encre-tres-doux); margin: 0; }
.ep-form__reponse { margin: 0; font-size: var(--ep-t-sm); font-weight: 600; }
.ep-form__reponse:empty { display: none; }
.ep-form__reponse.est-succes { color: var(--ep-vert); }
.ep-form__reponse.est-erreur { color: var(--ep-rouge); }
.ep-form.est-en-cours { opacity: .6; pointer-events: none; }

.ep-contact { display: grid; gap: 2.5rem; }
.ep-contact__bloc {
	padding: 1.25rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	margin-bottom: 1rem;
}
.ep-contact__bloc h2 { font-size: var(--ep-t-md); margin-bottom: .3em; }
.ep-contact__bloc p { margin: 0 0 .25rem; font-weight: 600; }
.ep-contact__delai { font-weight: 400 !important; font-size: var(--ep-t-sm); color: var(--ep-encre-doux); }
.ep-contact__bloc--aide { background: var(--ep-encre); color: #f4e9e2; }
.ep-contact__bloc--aide h2 { color: #fff; }
.ep-contact__bloc--aide p { font-weight: 400; font-size: var(--ep-t-sm); margin-bottom: .75rem; }
.ep-contact__bloc--aide .ep-lien-fleche { color: var(--ep-or); border-bottom-color: rgba(255, 208, 138, .4); }

@media (min-width: 62em) {
	.ep-contact { grid-template-columns: 1.4fr .8fr; gap: 4rem; align-items: start; }
}

.ep-candidature { background: var(--ep-papier-2); padding-block: var(--ep-section-y); }
.ep-candidature__interieur { display: grid; gap: 2rem; }
.ep-candidature__intro h2 { font-size: var(--ep-t-xl); max-width: 16ch; }
.ep-candidature__intro p { color: var(--ep-encre-doux); }
.ep-candidature__contact { font-size: var(--ep-t-sm); }
.ep-form--candidature {
	background: var(--ep-papier);
	padding: 1.5rem;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-ombre-1);
}
@media (min-width: 62em) {
	.ep-candidature__interieur { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
	.ep-candidature__intro { position: sticky; top: 6rem; }
	.ep-form--candidature { padding: 2.25rem; }
}

/* --------------------------------------------------------------------------
   12. Tableaux et répartition des gains
   ----------------------------------------------------------------------- */

.ep-table-enveloppe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ep-table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-size: var(--ep-t-sm);
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	overflow: hidden;
}
.ep-table th,
.ep-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--ep-trait); }
.ep-table thead th {
	background: var(--ep-papier-2);
	font-weight: 700;
	font-size: var(--ep-t-xs);
	color: var(--ep-encre-doux);
}
.ep-table tbody tr:last-child td { border-bottom: 0; }
.ep-table__fort { font-weight: 700; color: var(--ep-vert); }

.ep-repartition { margin-bottom: 3rem; }
.ep-repartition__barre {
	display: flex;
	height: 5.5rem;
	border-radius: var(--ep-r-md);
	overflow: hidden;
	box-shadow: var(--ep-ombre-1);
}
.ep-repartition__auteur,
.ep-repartition__plateforme {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1rem;
	color: #fff;
	min-width: 0;
}
.ep-repartition__auteur { background: var(--ep-degrade); }
.ep-repartition__plateforme { background: var(--ep-encre); }
.ep-repartition strong { font-family: var(--ep-titre); font-size: 1.6rem; line-height: 1; }
.ep-repartition span span,
.ep-repartition__auteur > span,
.ep-repartition__plateforme > span {
	font-size: var(--ep-t-xs);
	opacity: .85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ep-repartition__note {
	margin-top: 1rem;
	font-size: var(--ep-t-sm);
	color: var(--ep-encre-doux);
	max-width: 60ch;
}

.ep-versements__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}
.ep-versements__liste li {
	padding: 1.25rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
}
.ep-versements__liste h3 { font-size: var(--ep-t-base); margin-bottom: .3em; }
.ep-versements__liste p { margin: 0; font-size: var(--ep-t-sm); color: var(--ep-encre-doux); }
@media (min-width: 48em) { .ep-versements__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .ep-versements__liste { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   13. Pied de page et barre mobile
   ----------------------------------------------------------------------- */

.ep-pied {
	background: var(--ep-encre);
	color: #d9cec8;
	margin-top: var(--ep-section-y);
	padding-bottom: 5rem; /* place pour la barre mobile */
}
.ep-pied a { color: #f2e7e1; text-decoration: none; }
.ep-pied a:hover { color: #fff; text-decoration: underline; }
.ep-pied h3 {
	color: #fff;
	font-family: var(--ep-texte);
	font-size: var(--ep-t-sm);
	font-weight: 700;
	letter-spacing: .02em;
	margin-bottom: 1rem;
}

.ep-pied__lettre {
	background: var(--ep-degrade);
	padding-block: 2.25rem;
}
.ep-lettre { display: grid; gap: 1.5rem; align-items: center; }
.ep-lettre h2 { color: #fff; font-size: var(--ep-t-xl); max-width: 18ch; margin-bottom: .3em; }
.ep-lettre p { color: rgba(255, 255, 255, .9); font-size: var(--ep-t-sm); max-width: 50ch; margin: 0; }
.ep-lettre__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .5rem;
	align-items: start;
}
.ep-lettre__form input[type="email"] {
	padding: .8rem 1rem;
	border: 0;
	border-radius: var(--ep-r-pill);
	font: inherit;
	width: 100%;
}
.ep-lettre__form .ep-bouton {
	background: var(--ep-encre);
	box-shadow: none;
	white-space: nowrap;
}
.ep-lettre__form .ep-bouton:hover { background: #000; }
.ep-lettre__form .ep-form__reponse {
	grid-column: 1 / -1;
	color: #fff;
	background: rgba(0, 0, 0, .22);
	padding: .5rem .8rem;
	border-radius: var(--ep-r-sm);
}
.ep-lettre__form .ep-form__reponse.est-succes,
.ep-lettre__form .ep-form__reponse.est-erreur { color: #fff; }

@media (min-width: 62em) {
	.ep-pied__lettre { padding-block: 3rem; }
	.ep-lettre { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.ep-pied__grille {
	display: grid;
	gap: 2rem;
	padding-top: 2.75rem;
	padding-bottom: 2rem;
}
.ep-pied__marque .ep-logo__texte strong { color: #fff; }
.ep-pied__marque .ep-logo__texte span { color: var(--ep-orange); }
.ep-pied__baseline {
	margin: 1rem 0;
	font-size: var(--ep-t-sm);
	max-width: 38ch;
	color: #b9aca6;
}
.ep-pied__contacts,
.ep-pied__reseaux,
.ep-pied__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .5rem;
	font-size: var(--ep-t-sm);
}
.ep-pied__reseaux {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .9rem;
	margin-top: 1rem;
}
.ep-pied__liste a { display: inline-block; padding: .1rem 0; }

@media (min-width: 48em) {
	.ep-pied__grille { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (min-width: 62em) {
	.ep-pied__grille { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-top: 3.5rem; }
}

.ep-paiements {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1rem;
	padding: 1.25rem 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.ep-paiements__label { font-size: var(--ep-t-xs); color: #9d918b; }
.ep-paiements ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
}
.ep-paiements li {
	padding: .25rem .6rem;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--ep-r-sm);
	font-size: var(--ep-t-xs);
	color: #d9cec8;
}

.ep-pied__bas { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; }
.ep-pied__bas-interieur {
	display: grid;
	gap: .9rem;
	font-size: var(--ep-t-xs);
	color: #9d918b;
}
.ep-pied__copyright { margin: 0; }
.ep-pied__legal-liste {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1rem;
	margin: 0;
	padding: 0;
}

.ep-signature {
	display: flex;
	align-items: center;
	gap: .3rem;
	margin: 0;
	color: #b9aca6;
}
.ep-signature a { font-weight: 700; color: #fff; }
.ep-signature__coeur { display: inline-flex; color: var(--ep-rouge); }
.ep-signature__coeur .ep-icone { fill: var(--ep-rouge); }

@media (min-width: 62em) {
	.ep-pied__bas-interieur {
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 2rem;
	}
	.ep-pied__legal-liste { justify-content: center; }
}

/* Barre de navigation fixe sur mobile */
.ep-barre-mobile {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 70;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: rgba(255, 251, 247, .96);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--ep-trait);
	padding-bottom: env(safe-area-inset-bottom);
}
.ep-barre-mobile a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	padding: .55rem 0 .5rem;
	font-size: .68rem;
	font-weight: 600;
	color: var(--ep-encre-doux);
	text-decoration: none;
}
.ep-barre-mobile a.est-actif { color: var(--ep-rouge); }
.ep-barre-mobile .ep-compteur-panier { top: .3rem; right: calc(50% - 1.3rem); }

@media (min-width: 62em) {
	.ep-barre-mobile { display: none; }
	.ep-pied { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   14. États vides, 404, pagination
   ----------------------------------------------------------------------- */

.ep-vide {
	padding: 2.5rem 1.5rem;
	background: var(--ep-papier-2);
	border-radius: var(--ep-r-md);
	text-align: center;
	color: var(--ep-encre-doux);
}

.ep-404 { padding-block: 3rem; text-align: center; }
.ep-404__code {
	font-family: var(--ep-titre);
	font-size: clamp(4rem, 22vw, 9rem);
	line-height: .9;
	margin: 0;
	background: var(--ep-degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ep-404__titre { margin-top: .5rem; }
.ep-404__texte { max-width: 44ch; margin-inline: auto; color: var(--ep-encre-doux); }
.ep-404 .ep-recherche__form { margin: 2rem auto; max-width: 30rem; }
.ep-404__liens {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.25rem;
	padding: 0;
	font-weight: 600;
}

.ep-resultats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.ep-resultat a {
	display: block;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-md);
	text-decoration: none;
	color: inherit;
}
.ep-resultat a:hover { border-color: var(--ep-rouge); }
.ep-resultat__type {
	display: inline-block;
	font-size: var(--ep-t-xs);
	color: var(--ep-rouge-fonce);
	font-weight: 700;
	margin-bottom: .3rem;
}
.ep-resultat h2 { font-size: var(--ep-t-md); margin-bottom: .3em; }
.ep-resultat p { margin: 0; color: var(--ep-encre-doux); font-size: var(--ep-t-sm); }

.ep-theme .pagination,
.ep-theme .navigation.pagination,
.ep-theme .woocommerce-pagination { margin-top: 3rem; }
.ep-theme .nav-links,
.ep-theme .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.ep-theme .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .6rem;
	background: #fff;
	border: 1px solid var(--ep-trait);
	border-radius: var(--ep-r-sm);
	font-weight: 600;
	color: var(--ep-encre);
	text-decoration: none;
}
.ep-theme .page-numbers.current,
.ep-theme .page-numbers:hover {
	background: var(--ep-encre);
	border-color: var(--ep-encre);
	color: #fff;
}
.ep-theme .woocommerce-pagination li { border: 0 !important; }

.ep-espace-auteur { padding: 1.25rem; background: var(--ep-papier-2); border-radius: var(--ep-r-md); }
.ep-compte-accueil { font-size: var(--ep-t-md); }

/* Respect des préférences système */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.ep-entete, .ep-bandeau, .ep-pied, .ep-barre-mobile, .ep-tiroir, .ep-encart-cta { display: none !important; }
	body.ep-theme { background: #fff; color: #000; }
}
