/**
 * Page « Rêve solidaire » : reprise fidèle de la maquette validée (ordinateur et smartphone).
 *
 * @package ReveNomades
 */

.rs-k {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--kick);
}

.rs-k .ci {
	width: 16px;
	height: 16px;
}

.rs-p {
	margin: 0;
	max-width: 54ch;
	font-size: clamp(14px,1.15vw,17px);
	line-height: 1.8;
}

.rs-inv {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	max-width: 54ch;
}

.rs-inv-t {
	margin: 0;
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(18px,1.5vw,24px);
	line-height: 1.1;
}

.rs-inv-t span {
	display: inline-block;
}

.rs-why {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--line);
}

.rs-why-it {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(16px,1.6vw,22px) 0;
	border-bottom: 1px solid var(--line);
}

.rs-why-k {
	color: var(--fg2);
}

/* Fiche de l’action, pour l’équipe : paragraphes regroupés pour être modifiés sur la page
   (même espacement que pour les visiteurs). */
.rs-why-txt {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rs-mail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(16px,1.6vw,22px) 0;
	color: var(--fg);
	text-decoration: none;
}

.rs-mail-a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentcolor;
	font-size: clamp(15px,1.25vw,18px);
	overflow-wrap: anywhere;
}

.rs-mail .arr-i {
	flex: 0 0 auto;
	transition: transform .35s;
}

.rs-mail:hover .arr-i {
	transform: translateX(4px);
}

.rs-ph {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--c-nuit-2);
}

.rs-ph > img,
.rs-ph > video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-polar {
	background: var(--c-papier);
	padding: clamp(8px,.8vw,12px) clamp(8px,.8vw,12px) clamp(28px,2.6vw,40px);
	box-shadow: 0 26px 50px -22px rgba(0,0,0,.6);
	transform: rotate(var(--r,-2deg));
}

.rs-polar .rs-ph {
	aspect-ratio: 4/5;
}

.rs-sec {
	position: relative;
}

/* ---------- Ouverture ---------- */

.rs-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: clamp(700px,60vw,920px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.rs-hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: var(--c-nuit-2);
}

.rs-hero-media img,
.rs-hero-media video {
	position: absolute;
	inset: -2%;
	width: 104%;
	height: 104%;
	object-fit: cover;
	display: block;
}

.rs-hero-media img {
	animation: kb 22s ease-in-out infinite alternate;
}

.rs-hero .scrim {
	background: linear-gradient(180deg,rgb(var(--c-nuit-rgb) / .6) 0%,rgb(var(--c-nuit-rgb) / 0) 24%),linear-gradient(180deg,rgb(var(--c-nuit-rgb) / 0) 40%,color-mix(in srgb,var(--bg) 92%,transparent) 100%);
}

.rs-hero:not(.amb-nuit) .scrim {
	background: linear-gradient(180deg,rgb(var(--c-nuit-rgb) / .55) 0%,rgb(var(--c-nuit-rgb) / 0) 20%),linear-gradient(180deg,rgba(0,0,0,0) 26%,color-mix(in srgb,var(--bg) 86%,transparent) 62%,var(--bg) 100%);
}

.rs-hero-in {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(18px,2vw,28px);
	padding-top: clamp(200px,18vw,260px);
	padding-bottom: clamp(40px,5vw,72px);
}

.rs-hero-t {
	margin: 0;
	font-size: clamp(52px,7.6vw,134px);
	line-height: .86;
	max-width: 13.5ch;
	color: var(--fg);
	text-shadow: 0 6px 40px rgba(0,0,0,.28);
}

.rs-hero-foot {
	align-self: stretch;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 60px;
}

.rs-hero-lead {
	margin: 0;
	max-width: 54ch;
	line-height: 1.8;
	font-size: clamp(14px,1.1vw,16px);
	color: var(--fg);
}

.rs-down {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--fg);
	text-decoration: none;
	min-height: 44px;
}

.rs-down .ring {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid currentcolor;
	display: grid;
	place-items: center;
	transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.rs-down:hover .ring {
	transform: translateY(5px);
}

.rs-hero .rs-k {
	color: var(--fg);
}

.rs-next {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	text-align: right;
	color: var(--fg);
	text-decoration: none;
	padding-left: clamp(14px,1.4vw,20px);
	border-left: 1px solid color-mix(in srgb,var(--fg) 35%,transparent);
}

.rs-next-k {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rs-next-k::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
}

.rs-next-t {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(18px,1.6vw,24px);
	line-height: 1.05;
}

.rs-next-d {
	opacity: .8;
}

.rs-next:hover .rs-next-t {
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

/* ---------- Notre intention (aéré) ---------- */

.rs-int {
	padding: clamp(100px,11vw,170px) 0 clamp(90px,10vw,150px);
}

.rs-g12 {
	display: grid;
	grid-template-columns: repeat(12,minmax(0,1fr));
	column-gap: clamp(14px,1.8vw,28px);
}

.rs-int-in {
	row-gap: clamp(26px,3vw,44px);
}

.rs-int-in .rs-k {
	grid-column: 1 / -1;
}

.rs-int-t {
	grid-column: 1 / 9;
	grid-row: 2;
	margin: 0;
	font-size: clamp(46px,6vw,108px);
	line-height: .88;
}

.rs-int-in > .rs-k {
	grid-column: 1 / 9;
	grid-row: 1;
}

.rs-mani {
	grid-column: 1 / 8;
	grid-row: 3;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: clamp(8px,2vw,30px);
}

.rs-mani p {
	margin: 0;
	font-size: clamp(14px,1.15vw,17px);
	line-height: 1.8;
}

.rs-int-ph {
	grid-column: 9 / -1;
	grid-row: 1 / 4;
	align-self: start;
	aspect-ratio: 4/5;
	margin-right: calc(-1 * clamp(16px,4vw,56px));
}

/* Étape par étape : une route en pointillés, sans numéros */

.rs-steps {
	grid-column: 1 / -1;
	grid-row: 4;
	margin-top: clamp(40px,6vw,96px);
}

.rs-steps > .rs-k {
	display: flex;
	margin-bottom: clamp(22px,2.6vw,36px);
}

.rs-route {
	--g: clamp(14px,1.8vw,28px);
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: var(--g);
}

.rs-route::before {
	content: "";
	position: absolute;
	left: 32px;
	right: calc((100% - 3 * var(--g)) / 4 - 32px);
	top: 31px;
	height: 2px;
	background: repeating-linear-gradient(90deg,var(--fg) 0 16px,transparent 16px 30px);
	opacity: .35;
}

.rs-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.rs-step-ic {
	--icbg: var(--bg);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--bg);
	border: 1.5px solid var(--fg);
	color: var(--fg);
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
}

.rs-step-t {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: clamp(18px,1.55vw,24px);
	line-height: 1.05;
	max-width: 12ch;
	text-wrap: balance;
}

/* ---------- L’action de l’année (une par an) : composition « Panorama » ---------- */

.rs-une {
	padding: clamp(90px,10vw,140px) 0;
}

.rs-une-top {
	row-gap: 22px;
	align-items: end;
	margin-bottom: clamp(24px,3vw,44px);
}

.rs-une-lead {
	grid-column: 1 / 8;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	min-width: 0;
}

.rs-une-sum {
	margin: 0;
	max-width: 46ch;
	font-size: clamp(17px,1.5vw,22px);
	line-height: 1.6;
}

/* La date, bien visible */

.rs-date {
	grid-column: 8 / -1;
	justify-self: end;
	display: flex;
	align-items: flex-end;
	gap: clamp(12px,1.4vw,20px);
}

.rs-date-n {
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(88px,9.6vw,160px);
	line-height: .78;
	letter-spacing: -.01em;
}

.rs-date-my {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: .35em;
}

.rs-date-m {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: clamp(26px,2.6vw,42px);
	line-height: 1;
	white-space: nowrap;
}

.rs-date-my .mono {
	color: var(--fg2);
}

/* Le titre, au-dessus du résumé */

.rs-une-t {
	margin: 0;
	font-size: clamp(64px,9vw,160px);
	line-height: .84;
}

.rs-une-txt {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	gap: clamp(20px,2.4vw,40px);
	align-items: start;
}

.rs-une-txt .rs-polar {
	width: clamp(150px,13vw,210px);
	margin-top: -4px;
}

.rs-une-main {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* ---------- Les rencontres et les histoires : un carnet de route ---------- */

.rs-his {
	padding: clamp(90px,10vw,150px) 0 clamp(70px,8vw,120px);
}

.rs-his-head {
	row-gap: 16px;
	align-items: end;
	margin-bottom: clamp(18px,2.4vw,36px);
}

.rs-his-head .rs-k {
	grid-column: 1 / -1;
}

.rs-his-t {
	grid-column: 1 / 7;
	margin: 0;
	font-size: clamp(56px,7.4vw,136px);
	line-height: .84;
}

.rs-his-side {
	grid-column: 8 / -1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.rs-soon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px dashed currentcolor;
	color: var(--kick);
}

.rs-soon::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
}

.gal.rs-cards {
	list-style: none;
	margin: 0;
	align-items: center;
	padding-top: 28px;
	padding-bottom: 44px;
}

.rs-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: clamp(230px,21vw,320px);
	transform: rotate(var(--r,0deg));
	transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.rs-card:hover {
	transform: rotate(0deg) translateY(-6px);
}

.rs-card-btn {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.rs-card-in {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 12px 18px;
	background: var(--c-papier);
	color: var(--c-nuit);
	box-shadow: 0 26px 50px -24px rgba(0,0,0,.75);
}

.rs-card .rs-ph {
	aspect-ratio: 1;
}

.rs-card-cap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 4px;
}

.rs-card-cap .mono {
	color: var(--c-brun);
}

.rs-card-t {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(18px,1.5vw,22px);
	line-height: 1.05;
}

.rs-card-play {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgb(var(--c-nuit-rgb) / .62);
	color: var(--c-papier);
	display: grid;
	place-items: center;
}

.rs-card.q .rs-card-in,
.rs-card.r .rs-card-in {
	min-height: clamp(300px,26vw,400px);
	justify-content: space-between;
	padding: clamp(20px,2vw,28px);
}

.rs-card.q .rs-card-in {
	background: var(--c-soleil);
	color: var(--c-carmin);
}

.rs-card.r .rs-card-in {
	background: var(--c-tilleul);
	color: var(--c-foret);
}

.rs-card.q .rs-card-cap .mono,
.rs-card.r .rs-card-cap .mono {
	color: inherit;
	opacity: .75;
}

.rs-card-q {
	font-family: var(--f-title);
	font-weight: 500;
	font-size: clamp(26px,2.3vw,34px);
	line-height: 1.02;
}

.rs-card-p {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
}

/* ---------- Partenaires et mécènes ---------- */

.rs-part {
	padding: clamp(70px,8vw,120px) 0;
}

.rs-part-in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(28px,3.2vw,48px);
}

.rs-part-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.rs-part-t {
	margin: 0;
	font-size: clamp(36px,3.6vw,60px);
	line-height: .9;
}

.rs-logos {
	width: 100%;
	max-width: 1240px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6,minmax(0,1fr));
	gap: clamp(10px,1.2vw,18px);
}

.rs-logo {
	aspect-ratio: 5/2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px dashed var(--line);
	color: var(--fg2);
	text-align: center;
	padding: 10px;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 899px) {
	.rs-hero {
		min-height: 0;
	}

	.rs-hero-in {
		padding-top: clamp(300px,86vw,520px);
	}

	.rs-hero-t {
		font-size: clamp(42px,11.4vw,84px);
	}

	.rs-int-t,
	.rs-mani,
	.rs-his-t,
	.rs-his-side {
		grid-column: 1 / -1;
	}

	.rs-int-in > * {
		grid-row: auto;
	}

	.rs-int-in > .rs-k,
	.rs-steps {
		grid-column: 1 / -1;
	}

	.rs-int-ph {
		grid-column: 3 / -1;
	}

	.rs-route {
		grid-template-columns: minmax(0,1fr);
		gap: 18px;
	}

	.rs-route::before {
		left: 31px;
		right: auto;
		top: 32px;
		bottom: 32px;
		width: 2px;
		height: auto;
		background: repeating-linear-gradient(180deg,var(--fg) 0 12px,transparent 12px 22px);
	}

	.rs-step {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.rs-step-t {
		max-width: none;
	}

	.rs-une-lead,
	.rs-date {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.rs-date {
		grid-row: 1;
	}

	.rs-une-t {
		font-size: clamp(44px,12.5vw,90px);
	}

	.rs-card {
		width: 66vw;
	}

	.rs-logos {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
}

@media (max-width: 640px) {
	.rs-une-txt {
		grid-template-columns: minmax(0,1fr);
	}

	.rs-une-txt .rs-polar {
		width: 56%;
		justify-self: end;
	}
}


/* ---------- Ajouts au site : logos réels, liens des cartes ---------- */
.rs-logo a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.rs-logo.a-logo {
	border-style: solid;
	background: var(--c-blanc);
}

.rs-logo-img {
	max-width: 80%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}

a.rs-card-btn {
	text-decoration: none;
}

/* ---------- Fiches : action solidaire, histoire du carnet (mises en page à valider) ---------- */
.fs-action {
	padding-top: clamp(130px, 12vw, 180px);
}

.fs-histoire {
	padding-top: clamp(130px, 12vw, 180px);
}

.fs-h-corps {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(28px, 3vw, 44px);
	max-width: 760px;
}

.fs-h-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.fs-h-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fs-h-photo {
	width: min(100%, 640px);
}

.fs-h-photo .rs-ph {
	aspect-ratio: 4 / 3;
}

.fs-h-photo figcaption {
	padding-top: 12px;
	color: var(--c-nuit);
}

.fs-h-cit {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fs-h-cit p {
	margin: 0;
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(26px, 3vw, 44px);
	line-height: 1.05;
}

.fs-h-cit cite {
	font-style: normal;
	color: var(--fg2);
}

.fs-histoire .fe-prose {
	color: var(--fg);
}

/* Titres équilibrés sur leurs lignes et résumé de l’action, comme dans la maquette. */
.rs-hero-t,
.rs-int-t,
.rs-une-t,
.rs-his-t,
.rs-part-t {
	text-wrap: balance;
}

.rs-une-sum > span {
	font-size: 16.56px;
}

/* Lien d’appel de l’ouverture (ex. « Voulez-vous organiser une sortie dans votre ville ? »). */
.rs-appel .rs-next-t {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 22ch;
	text-align: right;
}

.rs-appel .rs-next-t svg {
	flex: 0 0 auto;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.rs-appel:hover .rs-next-t svg {
	transform: translateX(4px);
}

/* ---------- Les villes : inscriptions par ville, comme au DGR ---------- */
.rs-villes {
	padding: clamp(80px, 9vw, 130px) 0;
}

.rs-villes-vide {
	padding: 28px 0;
}

.rs-villes-head {
	row-gap: 16px;
	align-items: end;
	margin-bottom: clamp(28px, 3.4vw, 52px);
}

.rs-villes-head .rs-k {
	grid-column: 1 / -1;
}

.rs-villes-t {
	grid-column: 1 / 8;
	margin: 0;
	font-size: clamp(56px, 7.4vw, 136px);
	line-height: .84;
	text-wrap: balance;
}

.rs-villes-side {
	grid-column: 8 / -1;
}

.rs-villes-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.rs-ville {
	display: grid;
	/* Mêmes colonnes d’une ville à l’autre : les contacts et les boutons restent alignés. */
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, .95fr) minmax(0, 1.2fr);
	align-items: center;
	gap: 12px clamp(16px, 2vw, 32px);
	padding: clamp(18px, 2vw, 26px) 0;
	border-bottom: 1px solid var(--line);
}

.rs-ville-id {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rs-ville-n {
	margin: 0;
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(26px, 2.4vw, 38px);
	line-height: 1;
	overflow-wrap: anywhere;
}

.rs-ville-h,
.rs-ville-rdv,
.rs-ville-amb .mono {
	color: var(--fg2);
}

.rs-ville-amb {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rs-ville-amb strong {
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 600;
}

.rs-ville-rdv {
	margin: 0;
}

.rs-ville-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.rs-ville-libre .rs-ville-cherche {
	grid-column: 2 / 4;
}

.rs-ville-libre .rs-ville-n {
	color: var(--fg2);
}

.rs-ville-cherche {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.rs-ville-cherche::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
	flex: 0 0 auto;
}

.rs-villes-appel {
	margin: clamp(26px, 3vw, 40px) 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
}

.rs-villes-appel > span {
	font-family: var(--f-sub);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.1;
}

@media (max-width: 899px) {
	.rs-villes-t,
	.rs-villes-side {
		grid-column: 1 / -1;
	}

	.rs-ville {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.rs-ville-libre .rs-ville-cherche {
		grid-column: auto;
	}

	.rs-ville-acts {
		margin-top: 4px;
	}
}
