:root{
	--ink: #17201d;
	--ink-soft: #3f4c47;
	--muted: #6e7c76;
	--paper: #f5f7f2;
	--surface: #ffffff;
	--line: #dfe6df;
	--line-dark: #cbd6cc;
	--green: #0b6b4f;
	--green-dark: #074b38;
	--mint: #a9f6cf;
	--lime: #dfff74;
	--violet: #d8d0ff;
	--coral: #ff9c82;
	--shadow-sm: 0 8px 24px rgba(23, 32, 29, .06);
	--shadow-lg: 0 24px 70px rgba(23, 32, 29, .12);
	--radius-sm: 12px;
	--radius-md: 20px;
	--radius-lg: 32px;
}

*{
	box-sizing: border-box;
}

html{
	font-size: 16px;
	scroll-behavior: smooth;
}

body{
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: .96rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a{
	color: var(--green);
	text-decoration: none;
}

a:hover{
	color: var(--green-dark);
	text-decoration: none;
}

img{
	display: block;
	max-width: 100%;
}

h1,
h2,
h3{
	color: var(--ink);
	font-weight: 760;
	letter-spacing: -.04em;
	line-height: 1.08;
}

h1{
	/* font-size: clamp(2.4rem, 6vw, 5.35rem); */
}

h2{
	font-size: clamp(1.65rem, 3vw, 2.65rem);
}

button,
input,
select,
textarea{
	font: inherit;
}

.container{
	max-width: 1240px;
}

.site-header{
	background: rgba(245, 247, 242, .88);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(203, 214, 204, .72);
	position: sticky;
	top: 0;
	z-index: 1030;
}

.navbar{
	min-height: 68px;
}

.navbar-brand{
	align-items: center;
	color: var(--ink) !important;
	display: flex;
	font-size: .96rem;
	font-weight: 800;
	gap: .55rem;
	letter-spacing: -.02em;
}

.navbar-brand img{
	border-radius: 10px;
	height: 34px;
	object-fit: contain;
	width: 34px;
}

.navbar-light .navbar-nav .nav-link{
	border-radius: 99px;
	color: var(--ink-soft);
	font-size: .88rem;
	font-weight: 650;
	padding: .55rem .78rem;
}

.navbar-light .navbar-nav .nav-link:hover{
	background: rgba(11, 107, 79, .08);
	color: var(--green);
}

.navbar .btn{
	border-radius: 99px;
	font-size: .86rem;
	font-weight: 700;
	padding: .52rem .95rem;
}

.navbar .btn-success,
.btn-success{
	background: var(--ink);
	border-color: var(--ink);
}

.navbar .btn-success:hover,
.btn-success:hover{
	background: var(--green);
	border-color: var(--green);
}

.discovery-hero{
	background:
		radial-gradient(circle at 82% 18%, rgba(216, 208, 255, .72), transparent 26%),
		radial-gradient(circle at 68% 88%, rgba(169, 246, 207, .76), transparent 30%),
		var(--paper);
	overflow: hidden;
	padding: 5.7rem 0 4.8rem;
	position: relative;
}

.discovery-hero__grid{
	align-items: center;
	display: grid;
	gap: 5rem;
	grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
}

.discovery-hero__content{
	max-width: 790px;
}

.eyebrow{
	align-items: center;
	color: var(--green);
	display: flex;
	font-size: .72rem;
	font-weight: 800;
	gap: .55rem;
	letter-spacing: .12em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.eyebrow span{
	background: currentColor;
	border-radius: 99px;
	display: inline-block;
	height: 7px;
	width: 7px;
}

.eyebrow--light{
	color: var(--mint);
}

.discovery-hero h1{
	max-width: 760px;
}

.discovery-hero__lead{
	color: var(--ink-soft);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	max-width: 670px;
}

.discovery-search{
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
	display: flex;
	gap: .75rem;
	margin-top: 2rem;
	max-width: 700px;
	padding: .55rem .55rem .55rem 1.1rem;
}

.discovery-search i{
	color: var(--muted);
	font-size: 1.1rem;
}

.discovery-search input{
	background: transparent;
	border: 0;
	color: var(--ink);
	flex: 1;
	min-width: 0;
	outline: 0;
	padding: .65rem 0;
}

.discovery-search button,
.newsletter-band button{
	background: var(--ink);
	border: 0;
	border-radius: 13px;
	color: #fff;
	font-size: .84rem;
	font-weight: 750;
	padding: .82rem 1.15rem;
	white-space: nowrap;
}

.discovery-search button:hover,
.newsletter-band button:hover{
	background: var(--green);
}

.discovery-proof{
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	font-size: .78rem;
	gap: .8rem 1.25rem;
	margin-top: 1.15rem;
}

.discovery-proof strong,
.discovery-proof i{
	color: var(--green);
}

.discovery-hero__aside{
	height: 340px;
	position: relative;
}

.signal-card{
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: var(--shadow-lg);
	position: absolute;
	z-index: 2;
}

.signal-card--first{
	background: var(--ink);
	border-radius: 28px;
	color: #fff;
	padding: 1.5rem;
	right: 1rem;
	top: 2rem;
	transform: rotate(3deg);
	width: 240px;
}

.signal-card--first span{
	color: var(--lime);
	display: block;
	font-size: .69rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin-bottom: .65rem;
	text-transform: uppercase;
}

.signal-card--first strong{
	display: block;
	font-size: 1.25rem;
	line-height: 1.25;
}

.signal-card--second{
	align-items: center;
	background: rgba(255, 255, 255, .8);
	border-radius: 18px;
	bottom: 3.5rem;
	display: flex;
	font-size: .82rem;
	font-weight: 700;
	gap: .75rem;
	left: 0;
	padding: 1rem;
	transform: rotate(-4deg);
	width: 225px;
}

.signal-card--second i{
	align-items: center;
	background: var(--coral);
	border-radius: 12px;
	display: flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.signal-orbit{
	border: 1px solid rgba(11, 107, 79, .2);
	border-radius: 50%;
	height: 290px;
	position: absolute;
	right: -50px;
	top: 20px;
	width: 290px;
}

.discovery-filters{
	background: rgba(255, 255, 255, .82);
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
}

.filter-row{
	display: flex;
	gap: .45rem;
	overflow-x: auto;
	padding: .75rem 0;
	scrollbar-width: none;
}

.filter-chip{
	border-radius: 99px;
	color: var(--ink-soft);
	font-size: .8rem;
	font-weight: 700;
	padding: .52rem .85rem;
	white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.is-active{
	background: var(--ink);
	color: #fff;
}

.catalog-section,
.section-space{
	padding: 4rem 0;
}

.catalog-heading{
	align-items: flex-end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.7rem;
}

.catalog-heading .eyebrow{
	margin-bottom: .45rem;
}

.catalog-heading h2{
	margin: 0;
}

.catalog-count{
	color: var(--muted);
	font-size: .82rem;
	margin: 0 0 .35rem;
}

.catalog-grid{
	display: grid;
	gap: 1.15rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contest-card{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contest-card:hover{
	border-color: var(--line-dark);
	box-shadow: var(--shadow-sm);
	transform: translateY(-4px);
}

.contest-card__media{
	aspect-ratio: 16 / 9;
	background: #e8ede8;
	display: block;
	overflow: hidden;
	position: relative;
}

.contest-card__media img{
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
	width: 100%;
}

.contest-card:hover .contest-card__media img{
	transform: scale(1.025);
}

.contest-card__featured{
	background: var(--lime);
	border-radius: 99px;
	color: var(--ink);
	font-size: .68rem;
	font-weight: 800;
	left: .8rem;
	padding: .35rem .58rem;
	position: absolute;
	top: .8rem;
}

.contest-card__content{
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem 1.05rem 1.05rem;
}

.contest-card__topline{
	align-items: center;
	color: var(--muted);
	display: flex;
	font-size: .68rem;
	font-weight: 650;
	gap: .6rem;
	justify-content: space-between;
	margin-bottom: .7rem;
	min-width: 0;
}

.contest-card__topline > span:first-child{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.deadline{
	color: var(--green);
	white-space: nowrap;
}

.contest-card h3{
	font-size: 1.04rem;
	letter-spacing: -.025em;
	line-height: 1.25;
	margin: 0 0 1.25rem;
}

.contest-card h3 a{
	color: var(--ink);
}

.contest-card__link{
	align-items: center;
	color: var(--ink-soft);
	display: flex;
	font-size: .76rem;
	font-weight: 750;
	justify-content: space-between;
	margin-top: auto;
}

.contest-card__link i{
	align-items: center;
	background: var(--paper);
	border-radius: 50%;
	display: flex;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.catalog-ad{
	grid-column: 1 / -1;
}

.editorial-note{
	align-items: center;
	background: var(--ink);
	border-radius: var(--radius-lg);
	color: #cbd8d2;
	display: grid;
	gap: 3rem;
	grid-template-columns: .8fr 1.2fr;
	margin-top: 4.5rem;
	padding: 2.5rem 3rem;
}

.editorial-note h2{
	color: #fff;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	margin: 0;
}

.editorial-note > p{
	font-size: .94rem;
	margin: 0;
}

.newsletter-band{
	align-items: center;
	background: var(--mint);
	border: 1px solid rgba(11, 107, 79, .14);
	border-radius: var(--radius-lg);
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr 1fr;
	margin-top: 1.2rem;
	padding: 2.35rem 3rem;
}

.newsletter-band h2{
	font-size: clamp(1.55rem, 2.5vw, 2.2rem);
	margin-bottom: .35rem;
}

.newsletter-band p{
	margin-bottom: 0;
}

.newsletter-band__form{
	background: rgba(255, 255, 255, .75);
	border: 1px solid rgba(11, 107, 79, .18);
	border-radius: 16px;
	display: flex;
	gap: .5rem;
	padding: .45rem;
}

.newsletter-band__form input{
	background: transparent;
	border: 0;
	flex: 1;
	min-width: 0;
	outline: 0;
	padding: 0 .8rem;
}

.empty-state{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 4rem 2rem;
	text-align: center;
}

.empty-state__icon{
	align-items: center;
	background: var(--violet);
	border-radius: 50%;
	display: flex;
	font-size: 1.3rem;
	height: 52px;
	justify-content: center;
	margin: 0 auto 1rem;
	width: 52px;
}

.button{
	align-items: center;
	border: 0;
	border-radius: 12px;
	display: inline-flex;
	font-size: .82rem;
	font-weight: 750;
	gap: .5rem;
	justify-content: center;
	padding: .75rem 1rem;
}

.button--primary{
	background: var(--ink);
	color: #fff;
}

.button--primary:hover{
	background: var(--green);
	color: #fff;
}

.button--secondary{
	background: var(--green);
	color: #fff;
}

.button--wide{
	width: 100%;
}

.quiet-breadcrumb{
	align-items: center;
	color: var(--muted);
	display: flex;
	font-size: .72rem;
	gap: .5rem;
	padding: 1.45rem 0;
}

.quiet-breadcrumb a{
	color: var(--muted);
}

.quiet-breadcrumb i{
	font-size: .6rem;
}

.contest-heading{
	align-items: end;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 2.2rem 0 3rem;
}

.contest-heading h1{
	/* font-size: clamp(2.25rem, 5vw, 4.6rem); */
	max-width: 950px;
}

.contest-heading__source{
	color: var(--muted);
	font-size: .82rem;
	margin: 1.1rem 0 0;
}

.contest-heading__source span{
	margin: 0 .35rem;
}

.date-card{
	background: var(--lime);
	border-radius: 18px;
	min-width: 170px;
	padding: 1rem 1.15rem;
	transform: rotate(1.5deg);
}

.date-card span{
	display: block;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.date-card strong{
	display: block;
	font-size: 1.05rem;
	margin-top: .15rem;
}

.date-card.is-expired{
	background: #e7e9e6;
}

.contest-layout{
	align-items: start;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) 330px;
}

.contest-main{
	min-width: 0;
}

.contest-visual{
	background: #e7ebe6;
	border-radius: var(--radius-lg);
	margin: 0 0 1.2rem;
	overflow: hidden;
}

.contest-visual img{
	max-height: 620px;
	object-fit: cover;
	width: 100%;
}

.reading-panel,
.comments-section{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: clamp(1.4rem, 4vw, 2.5rem);
}

.section-kicker{
	color: var(--green);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin-bottom: .55rem;
	text-transform: uppercase;
}

.reading-panel h2,
.comments-section h2,
.answer-panel h2{
	font-size: 1.55rem;
	margin-bottom: 1.15rem;
}

.article-body{
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.78;
}

.answer-panel{
	align-items: flex-start;
	background: var(--violet);
	border-radius: var(--radius-md);
	display: flex;
	gap: 1rem;
	margin-top: 1.2rem;
	padding: 1.5rem;
}

.answer-panel__icon{
	align-items: center;
	background: rgba(255, 255, 255, .65);
	border-radius: 12px;
	display: flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
}

.answer-panel h2,
.answer-panel p{
	margin-bottom: .35rem;
}

.comments-section{
	margin-top: 1.2rem;
}

.section-heading-inline{
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.section-heading-inline h2{
	margin: 0;
}

.section-heading-inline > span{
	align-items: center;
	background: var(--paper);
	border-radius: 50%;
	display: flex;
	font-size: .76rem;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.safety-note{
	background: #f3f6f2;
	border-radius: 10px;
	color: var(--muted);
	font-size: .72rem;
	margin: 1.25rem 0;
	padding: .65rem .8rem;
}

.comments-list{
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment{
	border-top: 1px solid var(--line);
	display: grid;
	gap: .8rem;
	grid-template-columns: 36px 1fr;
	padding: 1rem 0;
}

.comment__avatar{
	align-items: center;
	background: var(--mint);
	border-radius: 50%;
	display: flex;
	font-size: .76rem;
	font-weight: 800;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.comment time{
	color: var(--muted);
	font-size: .68rem;
	margin-left: .45rem;
}

.comment p{
	color: var(--ink-soft);
	font-size: .88rem;
	margin: .3rem 0 0;
}

.comment-form{
	border-top: 1px solid var(--line);
	margin-top: .5rem;
	padding-top: 1.2rem;
}

.comment-form label{
	display: block;
	font-size: .78rem;
	font-weight: 750;
}

.comment-form textarea{
	border: 1px solid var(--line-dark);
	border-radius: 12px;
	display: block;
	margin-bottom: .7rem;
	outline: 0;
	padding: .8rem;
	resize: vertical;
	width: 100%;
}

.contest-sidebar{
	position: sticky;
	top: 88px;
}

.action-panel,
.fact-panel{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 1.35rem;
}

.action-panel__state{
	color: var(--green);
	display: block;
	font-size: .69rem;
	font-weight: 800;
	letter-spacing: .07em;
	margin-bottom: 1.15rem;
	text-transform: uppercase;
}

.action-panel__state.is-expired{
	color: var(--muted);
}

.action-panel h2{
	font-size: 1.35rem;
}

.action-panel p{
	color: var(--muted);
	font-size: .8rem;
}

.member-actions{
	border-top: 1px solid var(--line);
	display: grid;
	gap: .35rem;
	margin-top: 1rem;
	padding-top: .8rem;
}

.member-actions button{
	background: transparent;
	border: 0;
	color: var(--ink-soft);
	font-size: .76rem;
	font-weight: 700;
	padding: .35rem 0;
	text-align: left;
}

.fact-panel{
	margin-top: .8rem;
}

.fact-panel h2{
	font-size: 1rem;
	margin-bottom: .5rem;
}

.fact-panel dl,
.fact-panel dd{
	margin: 0;
}

.fact-panel dl > div{
	border-top: 1px solid var(--line);
	display: grid;
	gap: .5rem;
	grid-template-columns: 1fr 1.25fr;
	padding: .65rem 0;
}

.fact-panel dt{
	color: var(--muted);
	font-size: .68rem;
	font-weight: 600;
}

.fact-panel dd{
	font-size: .72rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-align: right;
}

.share-row{
	align-items: center;
	color: var(--muted);
	display: flex;
	font-size: .72rem;
	gap: .4rem;
	padding: 1rem .25rem;
}

.share-row span{
	margin-right: auto;
}

.share-row a{
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	display: flex;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.suggestions{
	margin-top: 4.5rem;
}

.content-panel,
.profile-stat,
.portal-card{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: none;
	padding: 1.5rem;
}

.profile-stat strong{
	font-size: 1.7rem;
}

/* La suppression reste identifiable sans transformer tout le panneau en alerte agressive. */
.account-danger-zone{
	border-color: rgba(185, 55, 55, .26);
	background: linear-gradient(135deg, #fff 0%, #fff8f7 100%);
}

.account-danger-zone h2{
	color: #8f2929;
}

.form-control{
	border: 1px solid var(--line-dark);
	border-radius: 10px;
	font-size: .88rem;
	min-height: 44px;
}

.form-control:focus{
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(11, 107, 79, .1);
}

.form-group label{
	font-size: .76rem;
	font-weight: 750;
}

.pagination{
	gap: .25rem;
}

.page-link{
	background: transparent;
	border: 0;
	border-radius: 9px !important;
	color: var(--ink-soft);
	font-size: .78rem;
	font-weight: 700;
}

.page-item.active .page-link{
	background: var(--ink);
}

.ad-slot{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	margin: 1.5rem 0;
	min-height: 90px;
	overflow: hidden;
	padding: .4rem;
}

/* Emplacement publicitaire de la fiche : assez haut pour être vu après la
 * lecture, mais séparé du bouton de participation pour rester non intrusif. */
.contest-inline-ad{
	margin: 1.2rem 0;
}

.contest-inline-ad .ad-slot{
	margin: 0;
	min-height: 120px;
}

.site-footer{
	background: var(--ink);
	color: #b9c8c1;
	margin-top: 4rem;
	padding: 3rem 0;
}

.site-footer strong,
.site-footer a{
	color: #fff;
}

.site-footer__logo{
	height: auto;
	margin-bottom: .65rem;
	max-width: 245px;
	width: 100%;
}

.site-footer p,
.site-footer span,
.site-footer a{
	font-size: .78rem;
}

.muted-copy{
	color: var(--muted);
}

.text-link{
	font-size: .78rem;
	font-weight: 750;
}

@media (max-width: 991.98px){
	.discovery-hero__grid{
		gap: 2rem;
		grid-template-columns: 1fr;
	}

	.discovery-hero__aside{
		display: none;
	}

	.catalog-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contest-layout{
		grid-template-columns: 1fr;
	}

	.contest-sidebar{
		position: static;
	}

	.editorial-note,
	.newsletter-band{
		gap: 1.5rem;
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px){
	body{
		font-size: .93rem;
	}

	.site-header{
		position: static;
	}

	.discovery-hero{
		padding: 3.4rem 0 3rem;
	}

	.discovery-search{
		align-items: stretch;
		box-shadow: var(--shadow-sm);
		flex-wrap: wrap;
	}

	.discovery-search input{
		width: calc(100% - 2rem);
	}

	.discovery-search button{
		width: 100%;
	}

	.discovery-proof{
		display: grid;
	}

	.catalog-section,
	.section-space{
		padding: 2.8rem 0;
	}

	.catalog-heading{
		align-items: flex-start;
		gap: .7rem;
	}

	.catalog-grid{
		grid-template-columns: 1fr;
	}

	.editorial-note,
	.newsletter-band{
		border-radius: 22px;
		padding: 1.6rem;
	}

	.newsletter-band__form{
		align-items: stretch;
		background: transparent;
		border: 0;
		flex-direction: column;
		padding: 0;
	}

	.newsletter-band__form input{
		background: rgba(255, 255, 255, .78);
		border-radius: 12px;
		min-height: 46px;
		padding: .7rem;
	}

	.contest-heading{
		align-items: start;
		grid-template-columns: 1fr;
		padding: 1.2rem 0 2rem;
	}

	.date-card{
		min-width: 0;
		transform: none;
		width: 100%;
	}

	.contest-visual,
	.reading-panel,
	.comments-section{
		border-radius: 18px;
	}
}

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