/* ==========================================================================
   Rêves Nomades — COMPOSANTS COMMUNS
   En-tête, menu plein écran (ordinateur et smartphone), pied de page,
   lien d’évitement, pages de texte simples, repères « provisoire ».
   Repris de la maquette validée (reference/maquette/Main.dc.html).
   ========================================================================== */

/* ---------- Lien d’évitement (clavier) ---------- */
.rn-aller {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--c-papier);
	color: var(--c-nuit);
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 12px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
	text-decoration: none;
}

.rn-aller:focus {
	top: 12px;
}

/* ---------- En-tête ---------- */
.hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px clamp(16px, 3vw, 40px);
	color: var(--c-papier);
	transition: background .45s ease, padding .45s ease, box-shadow .45s ease;
}

/* Fond presque opaque, sans flou d’arrière-plan : le flou était recalculé à chaque image
   pendant le défilement et provoquait de petites saccades. */
.hdr.solid {
	background: rgb(var(--c-nuit-rgb) / .97);
	padding-top: 6px;
	padding-bottom: 6px;
	box-shadow: 0 1px 0 rgb(var(--c-papier-rgb) / .08);
}

.logo {
	display: block;
	line-height: 0;
	border-radius: 4px;
}

.logo img {
	height: clamp(40px, 4.2vw, 58px);
	width: auto;
	display: block;
	transition: height .45s ease;
}

.hdr.solid .logo img {
	height: clamp(34px, 3.2vw, 44px);
}

.tools {
	display: flex;
	align-items: center;
	gap: clamp(0px, .6vw, 8px);
}

.ibtn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 50%;
	position: relative;
	padding: 0;
	text-decoration: none;
	font: inherit;
	transition: background .25s;
}

.ibtn:hover {
	background: rgb(var(--c-papier-rgb) / .12);
}

.badge {
	position: absolute;
	top: 5px;
	right: 3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--verm);
	font-family: var(--f-text);
	font-weight: 700;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
	color: var(--c-blanc);
}

.join {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	margin-right: 6px;
	border: 1px solid rgb(var(--c-papier-rgb) / .55);
	border-radius: 999px;
	color: var(--c-papier);
	text-decoration: none;
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 11px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
	transition: background .3s, border-color .3s, color .3s;
}

.join:hover {
	background: var(--c-papier);
	color: var(--c-nuit);
	border-color: var(--c-papier);
}

.join .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--verm);
}

.burger {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
}

.burger span {
	display: block;
	height: 2px;
	background: currentcolor;
	border-radius: 2px;
	transition: width .35s cubic-bezier(.2, .7, .2, 1);
}

.burger span:nth-child(1),
.burger span:nth-child(3) {
	width: 24px;
}

.burger span:nth-child(2) {
	width: 17px;
}

.ibtn:hover .burger span:nth-child(2) {
	width: 24px;
}

/* Contraste élevé de Windows (couleurs imposées) : les trois traits restent visibles. */
@media (forced-colors: active) {
	.burger span {
		background: CanvasText;
	}
}

/* « Agenda » dans l’en-tête */
.hdr-ag {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 10px;
	margin-right: 4px;
	color: inherit;
	text-decoration: none;
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 11px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
}

.hdr-ag svg {
	flex: 0 0 auto;
}

.hdr-ag::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 3px;
	height: 1px;
	background: currentcolor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s;
}

.hdr-ag:hover::after,
.hdr-ag.on::after {
	transform: scaleX(1);
}

/* La barre d’administration de WordPress (visible seulement pour l’équipe connectée). */
.admin-bar .hdr,
.admin-bar .menu {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .hdr,
	.admin-bar .menu {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .hdr.solid {
		top: 0;
	}

	/* Sur smartphone, la barre d’administration défile avec la page : le menu ouvert couvre
	   tout l’écran, barre comprise (sinon l’en-tête restait visible au-dessus du menu, avec un
	   second logo). */
	.admin-bar .menu {
		top: 0;
		z-index: 100000;
	}
}

/* ---------- Menu plein écran ---------- */
.menu {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: mopen .55s cubic-bezier(.2, .7, .2, 1) both;
}

.menu[hidden] {
	display: none;
}

@keyframes mopen {
	from {
		clip-path: inset(0 0 100% 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}

.menu .grain {
	position: fixed;
	opacity: .5;
}

.menu-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px clamp(16px, 3vw, 40px);
	position: relative;
	z-index: 2;
}

.menu-top .logo img {
	height: clamp(40px, 4.2vw, 58px);
}

.menu-body {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 5vw, 90px);
	padding: clamp(8px, 2vw, 24px) clamp(16px, 6vw, 96px) 24px;
	position: relative;
	z-index: 2;
}

.menu-list {
	flex: 999 1 560px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-self: center;
}

.mitem {
	border-bottom: 1px solid var(--line);
	animation: mitem .8s cubic-bezier(.2, .7, .2, 1) both;
}

.mitem:nth-child(1) {
	animation-delay: .12s;
}

.mitem:nth-child(2) {
	animation-delay: .18s;
}

.mitem:nth-child(3) {
	animation-delay: .24s;
}

.mitem:nth-child(4) {
	animation-delay: .3s;
}

.mitem:nth-child(5) {
	animation-delay: .36s;
}

.mitem:nth-child(6) {
	animation-delay: .42s;
}

.mitem:nth-child(7) {
	animation-delay: .48s;
}

@keyframes mitem {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.mbtn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 26px);
	background: none;
	border: 0;
	color: var(--fg);
	cursor: pointer;
	padding: clamp(14px, 1.6vw, 20px) 0;
	text-align: left;
	font: inherit;
	text-decoration: none;
}

.mbtn .num {
	color: var(--fg2);
	width: 26px;
	flex: 0 0 auto;
}

.mbtn .t {
	font-family: var(--f-title);
	font-style: var(--t-style);
	font-weight: var(--t-weight);
	text-transform: var(--t-case);
	letter-spacing: var(--t-track);
	font-size: clamp(34px, 4.8vw, 70px);
	line-height: 1;
	flex: 1;
	transition: color .3s, transform .45s cubic-bezier(.2, .7, .2, 1);
}

.mbtn:hover .t {
	transform: translateX(10px);
	color: var(--c-verm-vif);
}

.plus {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s;
}

.mbtn:hover .plus {
	background: var(--fg);
	color: var(--bg);
	transform: translateX(4px);
}

/* Lignes « Agenda de la saison » et « Contact » sous les rubriques */
.menu-ag {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 26px);
	padding: clamp(14px, 1.6vw, 20px) 0;
	color: var(--fg);
	text-decoration: none;
}

.menu-ag .num {
	width: 26px;
	flex: 0 0 auto;
}

.menu-ag-in {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

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

.menu-ag-t {
	font-family: var(--f-title);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(18px, 1.8vw, 26px);
	line-height: 1.1;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.menu-ag:hover .menu-ag-t {
	transform: translateX(10px);
}

.menu-ag:hover .plus {
	background: var(--fg);
	color: var(--bg);
	transform: translateX(4px);
}

.menu-aside {
	flex: 1 1 340px;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-self: center;
	animation: mitem .9s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.menu-aside figure {
	margin: 0;
	aspect-ratio: 4/5;
	overflow: hidden;
	position: relative;
	background: var(--c-nuit-2);
}

.menu-aside img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.menu-aside img.on {
	display: block;
	animation: fadein .7s ease both;
}

@keyframes fadein {
	from {
		opacity: 0;
		transform: scale(1.04);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.menu-aside .mono {
	color: var(--fg2);
}

.menu-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	justify-content: space-between;
	align-items: center;
	padding: 18px clamp(16px, 6vw, 96px) 26px;
	border-top: 1px solid var(--line);
	position: relative;
	z-index: 2;
	animation: mitem .8s .42s cubic-bezier(.2, .7, .2, 1) both;
}

.menu-foot .socials {
	display: flex;
	gap: 4px;
	margin-left: -10px;
}

.menu-foot .socials a {
	color: var(--fg2);
}

.menu-foot .socials a:hover {
	color: var(--fg);
}

.menu-acc {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.menu-acc a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fg2);
	text-decoration: none;
	min-height: 44px;
	padding: 0 10px;
}

.menu-acc a:hover {
	color: var(--fg);
}

/* Le menu ouvert bloque le défilement de la page derrière lui. */
html.rn-menu-ouvert,
html.rn-menu-ouvert body {
	overflow: hidden;
}

/* ---------- Pied de page ---------- */
.foot {
	padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}

.foot-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 48px clamp(24px, 6vw, 120px);
	padding: 0 clamp(0px, 5vw, 88px) clamp(56px, 6vw, 90px);
}

.news {
	flex: 1 1 420px;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.news-t {
	margin: 0;
	font-size: clamp(40px, 3.8vw, 56px);
	line-height: .9;
}

.news p {
	margin: 0;
	line-height: 1.75;
	max-width: 50ch;
	color: var(--fg2);
	font-size: clamp(13px, 1vw, 15px);
}

.news-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}

.news-form input {
	height: 48px;
	width: 100%;
	border: 0;
	border-radius: 0;
	background: var(--c-papier);
	color: var(--c-nuit);
	padding: 0 16px;
	font-family: var(--f-text);
	font-size: 15px;
}

.news-form input::placeholder {
	color: var(--c-brun);
}

.news-form input:focus {
	outline: 2px solid var(--kick);
	outline-offset: 2px;
}

.news-form .btn {
	width: 100%;
	min-height: 48px;
}

.news-form .news-ok {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--fg2);
	cursor: pointer;
}

.news-form .news-ok input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--kick);
}

.news-form .news-ok a {
	color: inherit;
}

.news .note {
	font-size: 12px;
}

.news .rn-lettre-message {
	color: var(--kick);
	padding: 4px 0 0;
}

.news .rn-lettre-message[hidden] {
	display: none;
}

.follow {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.follow .mono {
	color: var(--fg2);
}

.socials-plain {
	display: flex;
	gap: 10px;
}

.socials-plain a {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	color: var(--fg);
	text-decoration: none;
	transition: color .3s, transform .3s;
}

.socials-plain a:hover {
	color: var(--c-verm-vif);
	transform: translateY(-2px);
}

.foot-bot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px 48px;
	padding-top: clamp(36px, 4vw, 56px);
	border-top: 1px solid var(--line);
}

.foot-id {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.foot-id img {
	width: min(220px, 64%);
	height: auto;
	display: block;
}

.foot-mail {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	transition: color .3s;
}

.foot-mail:hover {
	color: var(--kick);
}

.foot-id p {
	margin: 0;
	line-height: 1.75;
	max-width: 42ch;
	color: var(--fg2);
	font-size: clamp(13px, 1vw, 15px);
}

.foot-nav {
	flex: 0 1 auto;
}

.foot-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 26px;
}

.foot-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--fg);
	text-decoration: none;
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 11px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
	transition: color .3s;
}

.foot-nav a:hover {
	color: var(--kick);
}

.legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 20px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--fg2);
}

.legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.legal-liens {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}

.legal a:hover {
	color: var(--fg);
}

/* ---------- Pages de texte simples (mentions légales, confidentialité…) ---------- */
.rn-page {
	padding: clamp(120px, 14vw, 190px) 0 clamp(64px, 8vw, 110px);
	min-height: 70vh;
}

.rn-page-t {
	margin: 0 0 clamp(24px, 3vw, 40px);
	font-size: clamp(46px, 6vw, 96px);
}

.rn-prose {
	max-width: 760px;
	font-size: clamp(13px, 1vw, 15px);
	line-height: 1.75;
}

.rn-prose > * {
	margin: 0 0 1.1em;
}

.rn-prose h2,
.rn-prose h3 {
	font-family: var(--f-sub);
	font-weight: var(--s-weight);
	letter-spacing: var(--s-track);
	text-transform: uppercase;
	line-height: 1.1;
	margin-top: 1.6em;
}

.rn-prose h2 {
	font-size: clamp(24px, 2.2vw, 32px);
}

.rn-prose h3 {
	font-size: clamp(19px, 1.7vw, 24px);
}

.rn-prose img {
	max-width: 100%;
	height: auto;
}

.rn-prose a {
	color: var(--fg);
	text-underline-offset: 3px;
}

/* encadré réglementaire (conditions générales de vente) */
.rn-prose .rn-encadre {
	border: 1px solid var(--line);
	padding: clamp(18px, 2vw, 28px);
}

.rn-prose .rn-encadre > * {
	margin: 0 0 .9em;
}

.rn-prose .rn-encadre > :last-child {
	margin-bottom: 0;
}

/* formulaire « Renoncer au contrat ici » */
.rn-prose .rn-retract,
.rn-prose .rn-retract-ok {
	margin-top: 2em;
}

.rn-prose .rn-retract-ok p,
.rn-prose .rn-retract-ok ul {
	margin: 0;
}

/* page « Adhérer » : montant, puis carte (HelloAsso) et virement, l’un sous l’autre */
.rn-prose .rn-adh {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 2vw, 26px);
}

.rn-prose .rn-adh-choix {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 1.8vw, 24px);
}

.rn-prose .rn-adh p,
.rn-prose .rn-adh h3 {
	margin: 0;
}

.rn-prose .rn-adh-montant {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding-bottom: clamp(14px, 1.6vw, 20px);
	border-bottom: 1px solid var(--line);
}

.rn-prose .rn-adh-montant .mono {
	color: var(--kick);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rn-prose .rn-adh-montant strong {
	font-family: var(--f-sub);
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1;
}

.rn-prose .rn-adh-option {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border: 1px solid var(--line);
	padding: clamp(18px, 2vw, 28px);
}

.rn-prose .rn-adh-option h3 {
	font-size: clamp(18px, 1.5vw, 22px);
}

.rn-prose .rn-adh a.btn {
	color: var(--btn-fg);
	text-decoration: none;
}

.rn-prose .rn-adh a.btn.is-closed {
	color: var(--fg);
}

.rn-prose .rn-adh-ha {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rn-prose .rn-adh-case label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--fg);
	cursor: pointer;
}

.rn-prose .rn-adh-case input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--verm);
}

.rn-prose .rn-adh-case .required {
	color: var(--verm);
	text-decoration: none;
}

.rn-prose .rn-adh-rib {
	display: grid;
	gap: 6px;
	margin: 0;
}

.rn-prose .rn-adh-rib > div {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 12px;
}

.rn-prose .rn-adh-rib dt {
	color: var(--fg2);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rn-prose .rn-adh-rib dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.rn-prose .rn-adh-note {
	color: var(--fg2);
}

@media (max-width: 600px) {
	.rn-prose .rn-adh-rib > div {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rn-prose .rn-adh-cta .btn {
		width: 100%;
	}
}

/* ---------- Repères « provisoire » (visibles uniquement par l’équipe connectée) ---------- */
.rn-reperes [data-rn-provisoire] {
	outline: 1px dashed var(--rn-repere) !important;
	outline-offset: 3px;
}

.rn-reperes-pilule {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 75;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px dashed var(--rn-repere);
	border-radius: 999px;
	background: rgb(var(--c-nuit-rgb) / .9);
	color: var(--rn-repere);
	cursor: pointer;
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 11px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
}

.rn-reperes-pilule:hover {
	background: var(--rn-repere);
	color: var(--c-nuit);
}

.rn-reperes-pilule[aria-pressed="false"] {
	opacity: .6;
	border-style: solid;
}

/* Petit message « bientôt disponible » quand on touche un élément provisoire sans destination. */
.rn-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 90;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	transform: translateX(-50%);
	background: var(--c-papier);
	color: var(--c-nuit);
	font-family: var(--f-label);
	font-weight: var(--l-weight);
	font-size: 11px;
	letter-spacing: var(--l-track);
	text-transform: uppercase;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}

.rn-toast[hidden] {
	display: none;
}

/* Sur grand écran seulement : le menu s'ouvre du même côté que le bouton ☰ (en haut à droite).
   La liste des rubriques passe à droite de l'écran et l'illustration à gauche ; chaque rubrique
   est alignée à droite et sa flèche, placée à gauche, pointe vers la gauche. Sur mobile, le menu
   garde sa disposition d'origine (numéros à gauche, flèche à droite). */
@media (min-width: 900px) {
	.menu-body {
		flex-direction: row-reverse;
	}

	.mbtn,
	.menu-ag {
		flex-direction: row-reverse;
		text-align: right;
	}

	.menu-ag-in {
		align-items: flex-end;
	}

	.plus svg {
		transform: scaleX(-1);
	}
}

/* ---------- Petits écrans ---------- */
@media (max-width: 899px) {
	.menu-aside {
		display: none;
	}

	.menu-list {
		align-self: flex-start;
	}

	.foot-nav ul {
		justify-content: flex-start;
	}

	.follow {
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.join .lbl-long {
		display: none;
	}

	.join {
		padding: 0 11px;
		margin-right: 2px;
		height: 32px;
		font-size: 10px;
	}

	.tools .acc {
		display: none;
	}

	.hdr-ag {
		width: 40px;
		height: 40px;
		padding: 0;
		margin-right: 0;
		justify-content: center;
	}

	.hdr-ag span {
		display: none;
	}

	.hdr-ag::after {
		display: none;
	}

	.hdr .tools .join {
		order: -1;
	}
}
