/* ==========================================================================
   Rêve d’Être Mère — charte graphique
   --------------------------------------------------------------------------
   Classes utilitaires (à saisir dans « Classe(s) CSS additionnelle(s) ») :
     .rdem-section          padding vertical 96 px (64 px mobile)
     .rdem-mesure           largeur de lecture max. 68 caractères
     .rdem-placeholder      emplacement photo/visuel (fond lavande, texte centré)
     .rdem-hero             section avec cercles décoratifs (overflow masqué)
     .rdem-cercle + --ciel / --lavande / --lavande-pale / --prune   cercle décoratif
     .rdem-fond-prune / -ciel / -lavande / -sauge / -carte / -creme   fonds de section
     .rdem-sur-ciel         surtitres lisibles sur fond ciel (#34506A)
   Styles de blocs (sélecteur « Styles » de l’éditeur) : voir functions.php.
   Mot signature d’un titre : le mettre en italique (Ctrl+I) → Fraunces 300 italique.
   Mouvement : apparitions (motion.js), survol des cartes et boutons, cercles et brin.
   Coupé quand le visiteur demande à réduire les animations.
   ========================================================================== */

:root {
	--rdem-prune: #4A2C5E;
	--rdem-prune-profonde: #2E1A3B;
	--rdem-bleu-brume: #4E6B82;
	--rdem-bleu-logo: #5B7A93;
	--rdem-bleu-fonce: #34506A;
	--rdem-sauge: #7E9473;
	--rdem-sauge-texte: #5A6F50;
	--rdem-sauge-fonce: #4A5E40;
	--rdem-sauge-clair: #E3EBDD;
	--rdem-hibiscus: #B4533E;
	--rdem-lavande: #CBB8D6;
	--rdem-lavande-pale: #EEE4F1;
	--rdem-ciel: #DCE6EC;
	--rdem-creme: #F8F3EC;
	--rdem-carte: #FFFCF8;
	--rdem-liseré: #EADFD2;
	--rdem-pied-texte: #E4D6EA;

	--rdem-titre: 'Fraunces', Georgia, serif;
	--rdem-texte: 'Figtree', system-ui, sans-serif;
	--rdem-rayon: 28px;
	--rdem-arche: 999px 999px 28px 28px;
	--rdem-demi-arche: 120px 120px 24px 24px;
	--rdem-section: 96px;
}
@media (max-width: 767px) {
	:root { --rdem-section: 64px; }
}

/* ---------- Typographie ---------- */
body { background: var(--rdem-creme); color: var(--rdem-prune-profonde); }

h1, h2, h3, h4, .rdem-titre {
	font-family: var(--rdem-titre);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--rdem-prune);
	text-wrap: balance;
}
h3, h4 { line-height: 1.2; letter-spacing: -0.005em; }
/* Signature : un mot en italique léger par titre */
h1 em, h2 em, h3 em, h4 em, .rdem-titre em, .rdem-em {
	font-style: italic;
	font-weight: 300;
}

.rdem-mesure, .rdem-mesure p { max-width: 68ch; }

.is-style-rdem-surtitre, .rdem-surtitre {
	font-family: var(--rdem-texte);
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--rdem-bleu-brume);
	margin-bottom: 0.75rem;
}
.rdem-sur-ciel .is-style-rdem-surtitre, .rdem-fond-ciel .is-style-rdem-surtitre,
.rdem-sur-ciel .rdem-surtitre, .rdem-fond-ciel .rdem-surtitre { color: var(--rdem-bleu-fonce); }
.rdem-fond-prune .is-style-rdem-surtitre, .rdem-fond-prune .rdem-surtitre { color: var(--rdem-lavande); }

a { text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--rdem-bleu-brume); outline-offset: 3px; }

/* ---------- Boutons pilule ---------- */
.wp-block-button__link,
.wp-element-button,
.button,
.header-button,
input[type="submit"],
button.rdem-bouton,
a.rdem-bouton {
	border-radius: 999px !important;
	min-height: 48px;
	padding: 0.75rem 1.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: var(--rdem-texte);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none !important;
}
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link,
a.rdem-bouton {
	background: var(--rdem-hibiscus);
	color: #fff;
	border: 1.5px solid var(--rdem-hibiscus);
}
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover,
a.rdem-bouton:hover { background: #9C4533; border-color: #9C4533; color: #fff; }

.wp-block-button.is-style-rdem-secondaire .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
a.rdem-bouton--secondaire, button.rdem-bouton--secondaire {
	background: transparent;
	color: var(--rdem-prune);
	border: 1.5px solid var(--rdem-prune);
}
.wp-block-button.is-style-rdem-secondaire .wp-block-button__link:hover,
a.rdem-bouton--secondaire:hover, button.rdem-bouton--secondaire:hover { background: var(--rdem-prune); color: var(--rdem-creme); }

.wp-block-button.is-style-rdem-clair .wp-block-button__link {
	background: var(--rdem-creme);
	color: var(--rdem-prune);
	border: 1.5px solid var(--rdem-creme);
}
.wp-block-button.is-style-rdem-clair .wp-block-button__link:hover { background: #fff; }

.rdem-fond-sauge .wp-block-button.is-style-rdem-secondaire .wp-block-button__link { color: var(--rdem-prune-profonde); border-color: var(--rdem-prune-profonde); }

/* ---------- Étiquettes pilules ---------- */
.is-style-rdem-etiquette-parole,
.is-style-rdem-etiquette-conference,
.is-style-rdem-etiquette-gratuit,
.rdem-etiquette {
	display: inline-block;
	width: fit-content;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	font-family: var(--rdem-texte);
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0.4em 0.4em 0;
	background: var(--rdem-carte);
	color: var(--rdem-prune-profonde);
}
.is-style-rdem-etiquette-parole, .rdem-etiquette--parole, .rdem-etiquette--groupe-de-parole { background: var(--rdem-lavande-pale); color: var(--rdem-prune); }
.is-style-rdem-etiquette-conference, .rdem-etiquette--conference { background: var(--rdem-ciel); color: var(--rdem-bleu-fonce); }
.is-style-rdem-etiquette-gratuit, .rdem-etiquette--gratuit, .rdem-etiquette--atelier { background: var(--rdem-sauge-clair); color: var(--rdem-sauge-fonce); }
.rdem-etiquette--prune { background: var(--rdem-prune); color: #fff; }
.rdem-etiquette--hibiscus { background: var(--rdem-hibiscus); color: #fff; }

/* ---------- Arches et cartes ---------- */
.is-style-rdem-arche img,
.wp-block-group.is-style-rdem-arche,
.rdem-arche {
	border-radius: var(--rdem-arche);
	overflow: hidden;
}
.is-style-rdem-arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.wp-block-group.is-style-rdem-carte,
.rdem-carte {
	background: var(--rdem-carte);
	border-radius: var(--rdem-rayon);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.wp-block-group.is-style-rdem-demi-arche,
.rdem-demi-arche {
	border-radius: var(--rdem-demi-arche);
	padding: 3.5rem 1.5rem 1.75rem;
	background: var(--rdem-carte);
}

.rdem-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.5rem;
	background: var(--rdem-lavande);
	color: var(--rdem-prune-profonde);
	font-size: 13px;
	line-height: 1.5;
	min-height: 220px;
}
.rdem-placeholder--ciel { background: var(--rdem-ciel); }
.rdem-placeholder--sauge { background: var(--rdem-sauge-clair); }
.rdem-placeholder--pale { background: var(--rdem-lavande-pale); }

/* Main sur tout ce qui se clique (les navigateurs laissent la flèche sur <button>). */
button:not(:disabled), [role="button"], input:is([type="submit"], [type="button"], [type="checkbox"], [type="radio"]), select, summary, label:has(> input:is([type="checkbox"], [type="radio"])) { cursor: pointer; }

/* ---------- Fonds de section ---------- */
.rdem-section { padding-top: var(--rdem-section) !important; padding-bottom: var(--rdem-section) !important; }
.rdem-fond-prune { background: var(--rdem-prune); color: var(--rdem-creme); }
.rdem-fond-prune h1, .rdem-fond-prune h2, .rdem-fond-prune h3 { color: #fff; }
.rdem-fond-prune a:not(.wp-block-button__link) { color: #fff; }
.rdem-fond-ciel { background: var(--rdem-ciel); }
.rdem-fond-lavande { background: var(--rdem-lavande-pale); }
.rdem-fond-sauge { background: var(--rdem-sauge-clair); }
.rdem-fond-sauge h2, .rdem-fond-sauge h3 { color: var(--rdem-prune-profonde); }
.rdem-fond-carte { background: var(--rdem-carte); }
.rdem-fond-creme { background: var(--rdem-creme); }

/* ---------- Cercles décoratifs ---------- */
.rdem-hero { position: relative; overflow: hidden; isolation: isolate; }
.rdem-cercle {
	position: absolute;
	border-radius: 50%;
	z-index: -1;
	pointer-events: none;
	aspect-ratio: 1;
}
.rdem-cercle--ciel { background: var(--rdem-ciel); }
.rdem-cercle--lavande { background: var(--rdem-lavande); }
.rdem-cercle--lavande-pale { background: var(--rdem-lavande-pale); }
.rdem-cercle--prune { background: #5E3F72; }

/* ---------- Brin végétal ---------- */
.rdem-brin { pointer-events: none; }
img.rdem-brin { width: auto; max-width: none; }

/* ---------- Médias ---------- */
img { height: auto; }

/* ---------- En-tête ---------- */
.site-header .header-navigation .menu > li > a { padding-block: 0.6em; }
.site-header .header-button { min-height: 44px; padding: 0.6rem 1.4rem; font-size: 15px; }
.mobile-toggle-open-container .menu-toggle-open { min-height: 44px; min-width: 44px; }
#mobile-drawer .drawer-inner .mobile-navigation a { min-height: 48px; display: flex; align-items: center; }
#mobile-drawer .mobile-header-button-wrap { margin-top: 1.5rem; }

/* ---------- Pied de page ---------- */
.site-footer .rdem-pied-titre { color: var(--rdem-pied-texte); margin: 0 0 1rem; }
.site-footer .rdem-pied-nom { font-family: var(--rdem-titre); font-size: 24px; color: #fff; margin: 0 0 0.75rem; line-height: 1.2; }
.site-footer .rdem-pied-nom em { font-weight: 300; }
.site-footer p { margin: 0 0 0.75rem; }
.rdem-pied-liens { list-style: none; margin: 0 0 1rem; padding: 0; }
.rdem-pied-liens li { margin: 0; }
.rdem-pied-liens a, .site-footer .footer-widget-area a { display: inline-block; padding-block: 0.35rem; }
.site-footer .rdem-pied-news { font-size: 13px; margin-bottom: 0.5rem; }
.rdem-a-fournir { opacity: 0.7; font-size: 0.85em; }
.site-footer .footer-navigation .menu { gap: 0; }
.site-footer .footer-navigation a { padding: 0.75rem 0.5rem; }
.site-footer .footer-navigation li + li::before { content: "·"; color: var(--rdem-pied-texte); }
.site-footer .footer-navigation li { display: flex; align-items: center; }
@media (max-width: 767px) {
	.site-footer .site-middle-footer-inner-wrap { row-gap: 2rem; }
}
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }
.site-footer a:hover { color: var(--rdem-lavande); }
.site-footer .site-middle-footer-inner-wrap { padding-top: 64px; padding-bottom: 40px; }
.site-footer .site-bottom-footer-inner-wrap { padding-top: 16px; padding-bottom: 16px; align-items: center; }

/* ==========================================================================
   Sections (compositions de patterns/)
   ========================================================================== */
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.rdem-section, .rdem-hero, .rdem-logos-section { padding-left: var(--global-content-edge-padding, 1.5rem) !important; padding-right: var(--global-content-edge-padding, 1.5rem) !important; }
.wp-block-columns { gap: clamp(1.25rem, 3vw, 2.5rem); }
.rdem-intro { font-size: 1.1rem; }

/* ---------- Accueil — héro ---------- */
.rdem-accueil-hero { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.rdem-accueil-hero__cols { align-items: center; }
.rdem-accueil-hero__texte { flex-basis: 52% !important; }
.rdem-accueil-hero__visuel { position: relative; flex-basis: 48% !important; padding-bottom: 48px; }
.rdem-accueil-hero__photo { aspect-ratio: 4 / 4.6; max-width: 440px; margin-inline: auto !important; }
.rdem-accueil-hero__brin { position: absolute; height: 150px; left: 2%; top: 4%; z-index: 1; }
.rdem-accueil-hero__c1 { width: 46vw; max-width: 640px; right: -14vw; top: -18%; }
.rdem-accueil-hero__c2 { width: 22vw; max-width: 300px; left: -9vw; bottom: -10%; }
.rdem-carte-rdv {
	position: absolute; right: 0; bottom: 0; z-index: 2;
	background: #fff; border-radius: 22px; padding: 1.1rem 1.4rem;
	border: 1px solid var(--rdem-liseré); max-width: 280px;
}
.rdem-carte-rdv p { margin: 0; }
.rdem-carte-rdv__surtitre { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rdem-hibiscus); }
.rdem-carte-rdv__titre { font-family: var(--rdem-titre); font-size: 22px; line-height: 1.25; margin: 0.25rem 0 !important; }
.rdem-carte-rdv__titre a { color: var(--rdem-prune); text-decoration: none; }
.rdem-carte-rdv__titre a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rdem-carte-rdv__titre a:focus-visible { outline: none; }
.rdem-carte-rdv:focus-within { outline: 3px solid var(--rdem-bleu-brume); outline-offset: 3px; }
.rdem-carte-rdv__infos { font-size: 14px; line-height: 1.5; }
@media (max-width: 781px) {
	.rdem-accueil-hero__visuel { padding-bottom: 80px; }
	.rdem-accueil-hero__photo { max-width: 300px; }
	.rdem-carte-rdv { right: 50%; transform: translateX(50%); width: calc(100% - 2rem); }
	.rdem-accueil-hero__c1 { width: 80vw; right: -40vw; top: 40%; }
}

/* ---------- Bandeau chiffre ---------- */
.rdem-chiffre { padding: clamp(48px, 6vw, 72px) var(--global-content-edge-padding, 1.5rem); }
.rdem-chiffre__cols { align-items: center; }
.rdem-chiffre__nombre {
	font-family: var(--rdem-titre); font-weight: 300; font-size: clamp(4rem, 9vw, 7.5rem);
	line-height: 1; color: var(--rdem-lavande); margin: 0; white-space: nowrap; letter-spacing: -0.03em;
}
.rdem-chiffre__nombre em { font-weight: 300; }
.rdem-chiffre__titre { font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; line-height: 1.25 !important; margin-bottom: 0.75rem; }
.rdem-chiffre p.rdem-mesure { color: var(--rdem-pied-texte); margin: 0; }

/* ---------- Grilles de cartes ---------- */
.rdem-grille-4 { margin-top: 2.5rem; }
.rdem-grille-4 > .wp-block-column { flex: 1 1 0; }
.rdem-demi-arche .rdem-icone { color: var(--rdem-prune); display: block; margin-bottom: 1rem; }
.rdem-demi-arche h3 { font-size: 22px; margin: 0 0 0.6rem; }
.rdem-demi-arche p { font-size: 15px; margin: 0; }
.rdem-demi-arche.rdem-fond-ciel h3, .rdem-demi-arche.rdem-fond-ciel .rdem-icone { color: var(--rdem-bleu-fonce); }
.rdem-demi-arche.rdem-fond-sauge h3, .rdem-demi-arche.rdem-fond-sauge .rdem-icone { color: var(--rdem-sauge-fonce); }
@media (min-width: 600px) and (max-width: 1024px) {
	.rdem-grille-4 { flex-wrap: wrap !important; }
	.rdem-grille-4 > .wp-block-column { flex: 1 1 calc(50% - 2rem) !important; }
}

/* ---------- Parcours ---------- */
.rdem-parcours__entete { align-items: end; }
.rdem-parcours__entete p:not(.is-style-rdem-surtitre) { margin: 0; }
.rdem-parcours__etapes { position: relative; margin-top: 2.5rem; }
/* Du centre de la 1re pastille (20 px) au centre de la 4e : 3 × (colonne + écart), colonnes = (100 % − 3 × 2rem) / 4. */
.rdem-chemin { position: absolute; left: 20px; top: 0; width: calc(75% + 1.5rem); height: 60px; overflow: visible; }
.rdem-etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 0; margin: 0; position: relative; }
ol.rdem-etapes.wp-block-list { padding-left: 0; } /* retrait des listes numérotées du thème : décalait les pastilles du pointillé */
.rdem-etape { counter-increment: etape; font-size: 15px; line-height: 1.55; }
.rdem-etape::before {
	content: counter(etape); display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; margin-bottom: 0.9rem;
	font-family: var(--rdem-titre); font-size: 18px; color: #fff; background: var(--rdem-prune);
}
.rdem-etape--bleu::before { background: var(--rdem-bleu-brume); }
.rdem-etape--sauge::before { background: var(--rdem-sauge-texte); }
.rdem-etape--hibiscus::before { background: var(--rdem-hibiscus); }
.rdem-etape strong { display: block; font-family: var(--rdem-titre); font-weight: 400; font-size: 22px; color: var(--rdem-prune); margin-bottom: 0.4rem; line-height: 1.2; }
@media (max-width: 781px) {
	.rdem-chemin { display: none; }
	.rdem-etapes { grid-template-columns: 1fr; gap: 1.75rem; }
	.rdem-etape { position: relative; padding-left: 60px; }
	.rdem-etape::before { position: absolute; left: 0; top: 0; margin: 0; }
	.rdem-etape:not(:last-child)::after {
		content: ""; position: absolute; left: 19px; top: 46px; bottom: -1.6rem; width: 3px;
		background: radial-gradient(circle, var(--rdem-hibiscus) 1.2px, transparent 1.6px) 0 0 / 3px 12px repeat-y;
	}
}

/* ---------- Événement à la une ---------- */
.rdem-une { border-radius: var(--rdem-rayon); overflow: hidden; gap: 0 !important; }
.rdem-une__visuel { position: relative; flex-basis: 45% !important; min-height: 320px; }
.rdem-une__texte { flex-basis: 55% !important; padding: clamp(1.75rem, 4vw, 3rem); }
.rdem-une__texte h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.rdem-badge-date {
	position: absolute; left: 1.25rem; top: 1.25rem; margin: 0;
	background: #fff; border-radius: 16px; padding: 0.6rem 0.9rem; text-align: center; line-height: 1;
}
.rdem-badge-date span { display: block; font-family: var(--rdem-titre); font-size: 30px; color: var(--rdem-prune); }
.rdem-badge-date small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rdem-hibiscus); margin-top: 0.3rem; }
.rdem-etiquettes { margin: 0 0 1.5rem; }
.rdem-une .rdem-etiquette { background: #fff; }
.rdem-une .rdem-etiquette--gratuit { background: var(--rdem-sauge-clair); }
@media (max-width: 781px) { .rdem-une__visuel { min-height: 220px; } }
/* Image ajoutée dans la colonne visuel : elle la remplit (recadrée depuis le haut), badge date par-dessus. */
.rdem-une__visuel:has(img) { padding: 0; background: var(--rdem-lavande-pale); }
.rdem-une__visuel .wp-block-image { position: absolute; inset: 0; margin: 0; }
.rdem-une__visuel .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; }
.rdem-une__visuel .rdem-badge-date { z-index: 1; }
@media (min-width: 782px) {
	/* Hauteur de l’affiche (format A4 environ) : elle s’affiche en entier, le texte est centré verticalement. */
	.rdem-une__visuel:has(img) { aspect-ratio: 1103 / 1426; }
	.rdem-une:has(.rdem-une__visuel img) .rdem-une__texte { align-self: center; }
}
@media (max-width: 781px) { .rdem-une__visuel:has(img) { min-height: 440px; } }

/* ---------- Agenda ---------- */
.rdem-une-section + .rdem-agenda-section { padding-top: 0 !important; } /* collé à l’événement à la une, s’il est affiché */
.rdem-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.rdem-agenda__item {
	position: relative; display: flex; align-items: center; gap: 1rem;
	background: var(--rdem-carte); border-radius: 18px; padding: 0.9rem 1.1rem;
}
.rdem-agenda__date {
	flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-content: center; text-align: center; line-height: 1;
	background: var(--rdem-lavande-pale); color: var(--rdem-prune);
}
.rdem-agenda__date span { font-family: var(--rdem-titre); font-size: 20px; }
.rdem-agenda__date small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.rdem-agenda__item--conference .rdem-agenda__date { background: var(--rdem-ciel); color: var(--rdem-bleu-fonce); }
.rdem-agenda__item--atelier .rdem-agenda__date { background: var(--rdem-sauge-clair); color: var(--rdem-sauge-fonce); }
.rdem-agenda__corps { flex: 1; min-width: 0; }
.rdem-agenda__titre { font-family: var(--rdem-titre); font-size: 20px; margin: 0; line-height: 1.25; }
.rdem-agenda__titre a { color: var(--rdem-prune); text-decoration: none; }
.rdem-agenda__titre a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rdem-agenda__item:focus-within { outline: 3px solid var(--rdem-bleu-brume); outline-offset: 2px; }
.rdem-agenda__titre a:focus-visible { outline: none; }
.rdem-agenda__infos { font-size: 13px; margin: 0.2rem 0 0; color: var(--rdem-prune-profonde); }
.rdem-agenda .rdem-etiquette { margin: 0; flex: 0 0 auto; }
.rdem-agenda__vide { background: var(--rdem-carte); border-radius: 18px; padding: 1.25rem; margin: 0; }
@media (max-width: 600px) {
	.rdem-agenda__item { flex-wrap: wrap; }
	.rdem-agenda__corps { flex: 1 1 calc(100% - 72px); }
	.rdem-agenda .rdem-etiquette { margin-left: 72px; }
}

/* ---------- Témoignage ---------- */
.is-style-rdem-temoignage { border: 0 !important; padding: 0 !important; margin: 0 auto !important; max-width: 860px; text-align: center; }
.is-style-rdem-temoignage::before {
	content: "“"; display: block; font-family: var(--rdem-titre); font-size: 96px; line-height: 0.6;
	color: var(--rdem-lavande); margin-bottom: 1rem;
}
.is-style-rdem-temoignage p { font-family: var(--rdem-titre); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--rdem-prune); }
.is-style-rdem-temoignage cite { display: block; margin-top: 1rem; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rdem-prune-profonde); }

/* ---------- Cartes d’appel ---------- */
.rdem-cta-duo > .wp-block-column { flex: 1 1 0; }
.rdem-cta-duo h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.rdem-cta-duo p { font-size: 15px; }

/* ---------- Logos partenaires ---------- */
.rdem-logos-section { padding-top: 56px; padding-bottom: var(--rdem-section); }
.rdem-cta-section + .rdem-logos-section { padding-top: 0; }
.rdem-logos { list-style: none; padding: 0; margin: 1rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.rdem-logos li {
	width: 160px; height: 92px; display: grid; place-items: center;
	border: 1px solid var(--rdem-liseré); border-radius: 16px; font-size: 12px; color: var(--rdem-prune-profonde);
}
.rdem-logos img { display: block; width: auto; height: auto; max-width: 136px; max-height: 64px; }
@media (max-width: 400px) { .rdem-logos li { width: calc(50% - 0.375rem); } .rdem-logos img { max-width: 85%; } }

/* ==========================================================================
   Événement seul (tribe/events/single-event-blocks.php)
   ========================================================================== */
.rdem-evenement { max-width: none; padding: 0; margin: 0; }
.single-tribe_events .content-container.site-container { max-width: none; padding: 0; }
.rdem-ancre { display: block; position: relative; top: -100px; visibility: hidden; }
.rdem-evenement__entete { padding: clamp(40px, 6vw, 80px) var(--global-content-edge-padding, 1.5rem); }
.rdem-evenement__entete-inner {
	max-width: var(--global-content-width, 1200px); margin: 0 auto; display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.rdem-evenement__c1 { width: 520px; right: -140px; top: 30%; }
.rdem-evenement__retour { margin: 0 0 1.5rem; font-size: 14px; }
.rdem-evenement__retour a { color: var(--rdem-pied-texte) !important; display: inline-block; padding-block: 0.6rem; }
.rdem-evenement__surtitre { color: #F0A58F !important; }
.rdem-evenement__titre { color: #fff !important; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 1rem; }
.rdem-evenement__titre em { color: var(--rdem-lavande); }
.rdem-evenement__sous-titre { font-family: var(--rdem-titre); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; color: var(--rdem-pied-texte); margin: 0; max-width: 32ch; }
.rdem-evenement__infos { background: var(--rdem-creme); color: var(--rdem-prune-profonde); border-radius: var(--rdem-rayon); padding: 1.6rem; position: relative; z-index: 1; }
.rdem-evenement__infos ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.8rem; font-size: 15px; }
.rdem-evenement__infos li { display: flex; gap: 0.75rem; align-items: center; }
.rdem-evenement__infos svg { flex: 0 0 auto; color: var(--rdem-prune); }
.rdem-evenement__cout { color: var(--rdem-sauge-fonce); font-weight: 600; }
.rdem-evenement__infos .rdem-bouton { width: 100%; }
.rdem-evenement__agenda { text-align: center; margin: 0.6rem 0 0; font-size: 13px; }
.rdem-evenement__agenda a { color: var(--rdem-prune) !important; display: inline-block; padding: 0.6rem; }
@media (max-width: 860px) {
	.rdem-evenement__entete-inner { grid-template-columns: 1fr; }
	.rdem-evenement__c1 { display: none; }
}
.rdem-evenement__contenu .tribe-events-single-event-description { margin: 0; }
.rdem-evenement .tribe-events-single-event-description > .alignfull { margin-left: 0; margin-right: 0; max-width: none; width: auto; }

/* ---------- Programme (frise verticale) ---------- */
.rdem-programme__brin { height: 120px; margin-top: 1.5rem; }
.rdem-frise { position: relative; display: grid; gap: 0.75rem; }
.rdem-frise::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px; background: var(--rdem-liseré); }
.rdem-prog {
	position: relative; display: grid; grid-template-columns: 112px 1fr; column-gap: 48px; align-items: start;
}
.rdem-prog > * { grid-column: 2; margin: 0 !important; }
.rdem-prog > .rdem-prog__heure { grid-column: 1; grid-row: 1 / span 3; font-size: 13px; font-weight: 700; color: var(--rdem-bleu-brume); padding-top: 1.1rem; }
.rdem-prog::before {
	content: ""; position: absolute; left: 127px; top: 1.25rem; width: 12px; height: 12px; border-radius: 50%;
	background: var(--rdem-lavande); box-shadow: 0 0 0 4px var(--rdem-creme);
}
/* Carte du créneau : pseudo-élément derrière la colonne 2, couleur via --carte */
.rdem-prog { isolation: isolate; --carte: var(--rdem-carte); --tag-bg: var(--rdem-lavande-pale); --tag-fg: var(--rdem-prune); }
.rdem-prog::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 160px; background: var(--carte); border-radius: 18px; }
.rdem-prog > .rdem-prog__titre { font-size: 20px; padding: 1rem 1.25rem 0; }
.rdem-prog > .rdem-prog__type {
	width: fit-content; margin: 0.4rem 1.25rem 0 !important; padding: 0.15em 0.7em; border-radius: 999px;
	font-size: 11px; font-weight: 700; background: var(--tag-bg); color: var(--tag-fg);
}
.rdem-prog > .rdem-prog__type:last-child { margin-bottom: 1rem !important; } /* créneau sans texte */
.rdem-prog > .rdem-prog__texte { font-size: 14px; padding: 0.4rem 1.25rem 1rem; }
.rdem-prog--conference { --carte: var(--rdem-lavande-pale); --tag-bg: var(--rdem-prune); --tag-fg: #fff; }
.rdem-prog--conference::before { background: var(--rdem-prune); }
.rdem-prog--pause { --tag-bg: var(--rdem-sauge-clair); --tag-fg: var(--rdem-sauge-fonce); }
.rdem-prog--pause::before { background: var(--rdem-sauge); }
.rdem-prog--table-ronde { --carte: #F8E9E4; --tag-bg: var(--rdem-hibiscus); --tag-fg: #fff; }
.rdem-prog--table-ronde::before { background: var(--rdem-hibiscus); }
@media (max-width: 781px) {
	.rdem-frise::before { left: 5px; }
	.rdem-prog { grid-template-columns: 1fr; padding-left: 28px; }
	.rdem-prog > *, .rdem-prog > .rdem-prog__heure { grid-column: 1; grid-row: auto; }
	.rdem-prog > .rdem-prog__heure { padding: 0 0 0.4rem; }
	.rdem-prog::before { left: 0; top: 0.2rem; }
	.rdem-prog::after { left: 28px; top: 1.8rem; }
}

/* ---------- Intervenant·es ---------- */
.rdem-intervenant__photo { aspect-ratio: 4 / 5; min-height: 0; }
.rdem-intervenant__nom { font-size: 22px; margin: 1rem 0 0.3rem; }
.rdem-intervenant__role { font-size: 14px; margin: 0; }
@media (min-width: 1025px) { /* 6 intervenant·es : 3 par ligne */
	.rdem-intervenants .rdem-grille-4 { display: grid !important; grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 600px) {
	.rdem-intervenants .rdem-grille-4 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* ---------- Réservation ---------- */
.rdem-reservation .wp-block-column { align-self: flex-start; } /* le cœur force align-items: normal !important sur les colonnes */
@media (min-width: 782px) { .rdem-reservation__form { position: sticky; top: 2rem; } } /* le bouton reste visible le long de la colonne de droite */
.rdem-reservation__aside { display: grid; gap: 1rem; align-content: start; }
.rdem-reservation__aside .rdem-carte h3 { font-size: 22px; margin-top: 0; }
.rdem-reservation__aside .rdem-carte p { font-size: 15px; }
.rdem-reservation__aside .rdem-fond-sauge a { color: var(--rdem-prune-profonde); }

/* ---------- Ajustements ---------- */
.is-style-rdem-surtitre + .wp-block-heading, .rdem-surtitre + h1, .rdem-surtitre + h2 { margin-top: 0; }
.rdem-agenda-section .wp-block-column { align-self: flex-start; }

/* ---------- En-tête de page intérieure ---------- */
.rdem-entete { padding: clamp(48px, 7vw, 96px) var(--global-content-edge-padding, 1.5rem) clamp(40px, 5vw, 64px); }
.rdem-entete__c1 { width: 34vw; max-width: 420px; right: -8vw; top: -30%; }
.rdem-entete h1 { max-width: 16ch; }
@media (max-width: 781px) { .rdem-entete__c1 { width: 60vw; right: -30vw; top: -10%; } }

/* ---------- Pages intérieures ---------- */
.rdem-trio > .wp-block-column { flex: 1 1 0; }
.rdem-trio .rdem-demi-arche h3, .rdem-trio .rdem-carte h3 { margin-top: 0; }
.rdem-trio .rdem-demi-arche { padding-top: 4rem; }
.rdem-ressources { padding-left: 1.1em; }
.rdem-ressources li + li { margin-top: 1rem; }
.rdem-note { font-size: 14px; color: var(--rdem-prune-profonde); opacity: 0.85; }
.rdem-legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.5rem; }
.rdem-legal ul { padding-left: 1.2rem; }
.rdem-legal li { margin-bottom: 0.5rem; }
.rdem-presidente { align-items: center; }
.rdem-presidente__photo { aspect-ratio: 4 / 5; min-height: 0; max-width: 360px; }
.rdem-presidente__mot { text-align: left; margin: 0 !important; }
.rdem-presidente__mot::before { display: none; }
.rdem-bureau > .wp-block-column { max-width: 280px; }
.rdem-fond-prune .rdem-carte a, .rdem-carte.rdem-fond-prune a:not(.wp-block-button__link) { color: #fff; }
/* Bloc plus étroit que la largeur de contenu : aligné à gauche de cette largeur, pas centré. */
.is-layout-constrained > .rdem-mesure,
.is-layout-constrained > .rdem-formules,
.is-layout-constrained > .rdem-filtres,
.is-layout-constrained > .rdem-formule--atelier,
.rdem-entete.is-layout-constrained > h1 {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* ==========================================================================
   Paid Memberships Pro — toutes les pages (paiement, formules, compte, factures, confirmation, connexion)
   ========================================================================== */
:root {
	--pmpro--color--accent: var(--rdem-prune);
	--pmpro--color--base: var(--rdem-carte);
	--pmpro--color--base-2: var(--rdem-creme);
	--pmpro--color--contrast: var(--rdem-prune-profonde);
	--pmpro--color--border: #CDBFD3;
	--pmpro--base--border-radius: 14px;
	--pmpro--btn--border-radius: 999px;
	--pmpro--btn--top-bottom-padding: 14px;
	--pmpro--btn--left-right-padding: 28px;
	--pmpro--box-shadow: none;
}
.pmpro { font-family: var(--rdem-texte); }
.pmpro .pmpro_card {
	background: var(--rdem-carte); border: 0; border-radius: var(--rdem-rayon); box-shadow: none;
	margin-bottom: 1.25rem;
}
.pmpro .pmpro_card_title, .pmpro .pmpro_form_heading, .pmpro h2, .pmpro h3 {
	font-family: var(--rdem-titre); font-weight: 400; color: var(--rdem-prune);
}
.rdem-adhesion .pmpro .pmpro_card_title {
	font-family: var(--rdem-texte); font-size: 12px !important; font-weight: 700; letter-spacing: 0.22em;
	text-transform: uppercase; color: var(--rdem-bleu-brume);
}
.pmpro .pmpro_card_actions { background: var(--rdem-creme); border-radius: 0 0 var(--rdem-rayon) var(--rdem-rayon); }
.pmpro .pmpro_form_label { font-size: 14px; font-weight: 600; color: var(--rdem-prune-profonde); }
.pmpro .pmpro_form_input, .pmpro input[type="text"], .pmpro input[type="email"], .pmpro input[type="password"],
.pmpro input[type="number"], .pmpro input[type="tel"], .pmpro select, .pmpro textarea {
	border: 1px solid #CDBFD3; border-radius: 14px; background: #fff; min-height: 48px; padding: 0.7rem 0.9rem; box-shadow: none;
	font-size: 16px; color: var(--rdem-prune-profonde);
}
.pmpro .pmpro_form_input:focus, .pmpro select:focus { border-color: var(--rdem-prune); outline: 3px solid rgba(74,44,94,0.2); outline-offset: 0; }
.pmpro .pmpro_form_hint { font-size: 13px; color: var(--rdem-prune-profonde); opacity: 0.85; }
.pmpro .pmpro_asterisk abbr, .pmpro .pmpro_asterisk { color: var(--rdem-hibiscus); text-decoration: none; }
.pmpro .pmpro_btn, .pmpro input[type="submit"].pmpro_btn, .pmpro .pmpro_btn-submit-checkout {
	background: var(--rdem-hibiscus); border: 1.5px solid var(--rdem-hibiscus); color: #fff; border-radius: 999px;
	min-height: 52px; font-weight: 600; font-size: 16px; box-shadow: none;
}
.pmpro .pmpro_btn:hover, .pmpro .pmpro_btn-submit-checkout:hover { background: #9C4533; border-color: #9C4533; color: #fff; }
.pmpro .pmpro_btn-outline, .pmpro .pmpro_btn-cancel { background: transparent; color: var(--rdem-prune); border-color: var(--rdem-prune); }
.pmpro a:not(.pmpro_btn) { color: var(--rdem-prune); }
.pmpro .pmpro_message { border-radius: 14px; }
.pmpro_table th { font-weight: 600; color: var(--rdem-prune); }

/* Paiement : formulaire simplifié */
.rdem-adhesion #pmpro_pricing_fields,
.rdem-adhesion .pmpro_form_field-username { display: none; }
.rdem-adhesion__form .pmpro_form_submit .pmpro_btn-submit-checkout { width: 100%; }
.rdem-adhesion .pmpro_form_field-checkbox label, .rdem-adhesion .pmpro_form_field-rdem_consentement { font-size: 14px; }
.rdem-adhesion .pmpro_form_field-rdem_consentement input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--rdem-prune); }
@media (min-width: 782px) {
	.rdem-adhesion #pmpro_user_fields .pmpro_form_fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
	.rdem-adhesion #pmpro_user_fields .pmpro_form_field-rdem_profil,
	.rdem-adhesion #pmpro_user_fields .pmpro_form_field-rdem_conjoint,
	.rdem-adhesion #pmpro_user_fields .pmpro_cols-2 { grid-column: 1 / -1; }
}

/* Cartes de formules */
.rdem-adhesion > .rdem-surtitre { margin-bottom: 1rem; }
.rdem-formules { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rdem-formule {
	position: relative; background: var(--rdem-carte); border: 1.5px solid var(--rdem-liseré); border-radius: var(--rdem-rayon);
	padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start;
}
.rdem-formule.is-choisie { border: 2.5px solid var(--rdem-prune); padding: calc(1.5rem - 1px); }
.rdem-formule:hover { border-color: var(--rdem-prune); }
.rdem-formule:focus-within { outline: 3px solid var(--rdem-bleu-brume); outline-offset: 3px; }
.rdem-formule__icone { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--rdem-prune); background: var(--rdem-lavande-pale); }
.rdem-formule__icone--ciel { background: var(--rdem-ciel); color: var(--rdem-bleu-fonce); }
.rdem-formule__icone--sauge-clair { background: var(--rdem-sauge-clair); color: var(--rdem-sauge-fonce); }
.rdem-formule__titre { font-size: 24px; margin: 0.5rem 0 0; }
.rdem-formule__titre a { color: var(--rdem-prune); text-decoration: none; }
.rdem-formule__titre a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rdem-formule__titre a:focus-visible { outline: none; }
.rdem-formule__prix { font-family: var(--rdem-titre); font-size: 30px; color: var(--rdem-prune-profonde); margin: 0; line-height: 1.1; }
.rdem-formule__texte { font-size: 14px; margin: 0; flex: 1; }
.rdem-formule .rdem-etiquette { margin: 0.25rem 0 0; font-size: 12px !important; background: var(--rdem-creme); }
.rdem-formule .rdem-etiquette--prune { background: var(--rdem-prune); }
.rdem-formule__ferme { font-size: 13px; font-weight: 600; color: var(--rdem-hibiscus); margin: 0; }
@media (max-width: 781px) { .rdem-formules { grid-template-columns: 1fr; } }

.rdem-puces { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 15px; }
.rdem-puces li { position: relative; padding-left: 1.2rem; }
.rdem-puces li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--rdem-lavande); }

/* Espace membre */
.rdem-carte-adherent {
	background: var(--rdem-prune); color: var(--rdem-creme); border-radius: var(--rdem-rayon); padding: 1.75rem;
	position: relative; overflow: hidden;
}
.rdem-carte-adherent::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: #5E3F72; right: -70px; bottom: -90px; }
.rdem-carte-adherent > * { position: relative; z-index: 1; }
.rdem-carte-adherent__logo { height: 64px; width: auto; margin-bottom: 1.25rem; }
.rdem-carte-adherent .rdem-surtitre { color: var(--rdem-lavande); }
.rdem-carte-adherent__nom { font-family: var(--rdem-titre); font-size: 28px; color: #fff; margin: 0 0 1rem; }
.rdem-carte-adherent dl { margin: 0; display: grid; gap: 0.5rem; font-size: 14px; }
.rdem-carte-adherent dl div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(228,214,234,0.25); padding-top: 0.5rem; }
.rdem-carte-adherent dt { color: var(--rdem-pied-texte); }
.rdem-carte-adherent dd { margin: 0; font-weight: 600; }
.rdem-carte-adherent__actions { margin: 1.75rem 0 0.5rem; }
.rdem-carte-adherent__aide { font-size: 13px; margin: 0; }
.rdem-compte .pmpro .pmpro_card { background: var(--rdem-creme); }
.entry-content ul.rdem-formules, .entry-content ul.rdem-agenda, .entry-content ul.rdem-logos { padding-left: 0 !important; }
.entry-content ul.rdem-agenda { margin-left: 0 !important; }
.rdem-adhesion .pmpro_form_field-rdem_consentement { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0; }
.rdem-adhesion .pmpro_form_field-rdem_consentement input[type="checkbox"] { flex: 0 0 auto; margin-top: 2px; }
.rdem-adhesion .pmpro_form_field-rdem_consentement label { font-weight: 400; }

/* ---------- Event Tickets — RSVP ---------- */
.rdem-evenement .tribe-common, .rdem-evenement .tribe-common :is(h1,h2,h3,h4,p,label,span,input,button,a,div) { font-family: var(--rdem-texte) !important; }
.rdem-evenement .tribe-tickets__rsvp-wrapper { border: 0 !important; border-radius: 20px !important; background: var(--rdem-carte) !important; max-width: none !important; }
.rdem-evenement .tribe-tickets__rsvp-wrapper :is(h2,h3,.tribe-common-h4,.tribe-common-h5) { font-family: var(--rdem-titre) !important; font-weight: 400 !important; color: var(--rdem-prune) !important; }
.rdem-evenement .tribe-tickets__rsvp-wrapper input:not([type="checkbox"]):not([type="radio"]) {
	border: 1px solid #CDBFD3 !important; border-radius: 14px !important; min-height: 48px; background: #fff !important; font-size: 16px !important;
}
.rdem-evenement .tribe-tickets__rsvp-wrapper .tribe-common-c-btn,
.rdem-evenement .tribe-tickets__rsvp-wrapper button[type="submit"] {
	background: var(--rdem-hibiscus) !important; border-radius: 999px !important; min-height: 48px; font-weight: 600 !important; color: #fff !important;
}
.rdem-evenement .tribe-tickets__rsvp-wrapper .tribe-common-c-btn-link,
.rdem-evenement .tribe-tickets__rsvp-wrapper .tribe-tickets__rsvp-form-button--cancel { background: transparent !important; color: var(--rdem-prune) !important; min-height: 48px; }
.rdem-evenement .tribe-tickets__rsvp-message { border-radius: 14px; }

/* ---------- Fluent Forms ---------- */
.fluentform .ff-el-input--label label { font-family: var(--rdem-texte); font-weight: 600; font-size: 14px; color: var(--rdem-prune-profonde); }
.fluentform .ff-el-form-control { border: 1px solid #CDBFD3 !important; border-radius: 14px !important; min-height: 48px; background: #fff !important; font-size: 16px; color: var(--rdem-prune-profonde); }
.fluentform .ff-el-form-control:focus { border-color: var(--rdem-prune) !important; outline: 3px solid rgba(74,44,94,0.2); }
.fluentform .ff-el-is-required.asterisk-right label::after { color: var(--rdem-hibiscus); }
.fluentform .ff-el-form-check-input { width: 20px; height: 20px; accent-color: var(--rdem-prune); vertical-align: -4px; margin-right: 0.4rem; }
.fluentform .ff-el-form-check label, .fluentform .ff_t_c { font-size: 14px; }
.fluentform .ff-btn-submit, .fluentform .rdem-ff-submit {
	background: var(--rdem-hibiscus) !important; border-color: var(--rdem-hibiscus) !important; color: #fff !important;
	border-radius: 999px !important; min-height: 52px; padding: 0.75rem 2rem !important; font-weight: 600; font-size: 16px; box-shadow: none !important;
}
.fluentform .ff-btn-submit:hover { background: #9C4533 !important; }
.ff-message-success { border: 0 !important; border-radius: 18px; background: var(--rdem-sauge-clair) !important; color: var(--rdem-sauge-fonce); box-shadow: none !important; }
.fluentform .error, .fluentform .text-danger { color: #9C2F1F; }

/* ---------- MailPoet (pied de page) ---------- */
.rdem-newsletter .mailpoet_form { padding: 0 !important; margin: 0 !important; background: none !important; }
.rdem-newsletter form.mailpoet_form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.rdem-newsletter .mailpoet_paragraph { margin: 0 !important; }
.rdem-newsletter .mailpoet_paragraph:has(.mailpoet_text) { flex: 1 1 160px; }
.rdem-newsletter .mailpoet_text {
	width: 100% !important; min-height: 44px; border-radius: 999px !important; border: 1px solid rgba(228,214,234,0.35) !important;
	background: rgba(255,255,255,0.06) !important; color: #fff !important; padding: 0.5rem 1rem !important; font-size: 15px;
}
.rdem-newsletter .mailpoet_text::placeholder { color: var(--rdem-pied-texte); opacity: 0.85; }
.rdem-newsletter .mailpoet_submit {
	min-height: 44px; min-width: 52px; border-radius: 999px !important; border: 0 !important; background: var(--rdem-hibiscus) !important;
	color: #fff !important; font-weight: 600; padding: 0.5rem 1rem !important; cursor: pointer;
}
.rdem-newsletter .mailpoet_message { flex-basis: 100%; font-size: 13px; }
.rdem-newsletter .mailpoet_validate_success { color: #D6E2CC !important; }
.rdem-newsletter .mailpoet_validate_error, .rdem-newsletter .parsley-errors-list { color: #F0A58F !important; }

/* ---------- The Events Calendar — vues liste / mois ---------- */
.tribe-common, .tribe-events {
	--tec-font-family-sans-serif: var(--rdem-texte);
	--tec-color-accent-primary: #B4533E;
	--tec-color-accent-primary-hover: #9C4533;
	--tec-color-accent-primary-active: #9C4533;
	--tec-color-accent-primary-background: rgba(180, 83, 62, 0.07);
	--tec-color-accent-secondary: #4A2C5E;
	--tec-color-text-primary: #2E1A3B;
	--tec-color-text-secondary: #5C4A66;
	--tec-color-text-events-title: #4A2C5E;
	--tec-color-text-event-title: #4A2C5E;
	--tec-color-text-event-date: #4E6B82;
	--tec-color-background: #FFFCF8;
	--tec-color-background-events: transparent;
	--tec-color-background-secondary: #F8F3EC;
	--tec-color-border-default: #EADFD2;
	--tec-border-radius-default: 14px;
}
.rdem-agenda-entete { padding: clamp(40px, 6vw, 80px) 0 2rem; }
.rdem-agenda-entete h1 { margin: 0 0 0.75rem; }
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-list__event-title a,
.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-c-top-bar__datepicker-button { font-family: var(--rdem-titre) !important; font-weight: 400 !important; }
.tribe-events .tribe-events-calendar-list__event-title { font-size: 26px !important; }
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum { font-family: var(--rdem-titre); font-weight: 400; color: var(--rdem-prune); }
.tribe-events .tribe-events-c-search__button, .tribe-events .tribe-common-c-btn {
	border-radius: 999px !important; min-height: 44px; font-weight: 600;
}
.tribe-events .tribe-events-c-events-bar__search-container, .tribe-events .tribe-events-header__events-bar { border-radius: 18px; border-color: var(--rdem-liseré); background: var(--rdem-carte); }
.tribe-events .tribe-events-calendar-list__event-row { background: var(--rdem-carte); border-radius: 22px; padding: 1.5rem 1rem; }
.tribe-events .tribe-events-c-subscribe-dropdown__button { border-radius: 999px !important; border-color: var(--rdem-prune) !important; color: var(--rdem-prune) !important; }
.tribe-events .tribe-events-c-subscribe-dropdown__button-text { color: inherit !important; }
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum { color: var(--rdem-hibiscus); }
.tribe-events a.tribe-events-c-small-cta__link { color: var(--rdem-prune); }
.rdem-temoignage-carte h3 { font-size: 22px; margin: 0.25rem 0 0.5rem; }
.rdem-temoignage-carte h3 a { color: var(--rdem-prune); text-decoration: none; }
.rdem-temoignage-carte .wp-block-post-excerpt { font-size: 15px; }

/* ---------- Zones cliquables ≥ 44 px ---------- */
.site-branding a.brand { min-height: 44px; display: inline-flex; align-items: center; }
.pmpro .pmpro_btn-password-toggle { min-height: 44px; padding: 0 0.5rem; }
.tribe-events .tribe-events-c-events-bar__search-button,
.tribe-events .tribe-common-c-btn__clear,
.tribe-events .tribe-events-c-subscribe-dropdown__button { min-height: 44px; min-width: 44px; }
.rdem-affiche img { border-radius: var(--rdem-rayon); width: 100%; height: auto; }
.rdem-video .wp-block-embed iframe, .rdem-video .cmplz-placeholder-element { border-radius: var(--rdem-rayon); overflow: hidden; }
/* Galerie « L’association en images » : mosaïque (1 grande arche + formats variés), agrandissement au clic (lightbox WordPress). */
.wp-block-gallery.rdem-galerie { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px !important; margin-top: 2.5rem; }
.wp-block-gallery.rdem-galerie > figure.wp-block-image { width: auto !important; margin: 0 !important; border-radius: 24px; overflow: hidden; }
.wp-block-gallery.rdem-galerie > figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.6s ease; }
.wp-block-gallery.rdem-galerie > figure:hover img { transform: scale(1.04); }
.wp-block-gallery.rdem-galerie > figure:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: 999px 999px 28px 28px; }
.wp-block-gallery.rdem-galerie > figure:nth-child(2) { grid-column: span 2; border-radius: 120px 120px 24px 24px; }
.wp-block-gallery.rdem-galerie > figure:nth-child(5), .wp-block-gallery.rdem-galerie > figure:nth-child(6) { grid-column: span 2; }
@media (max-width: 767px) {
	.wp-block-gallery.rdem-galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px !important; }
	.wp-block-gallery.rdem-galerie > figure:nth-child(1) { grid-row: span 2; }
	.wp-block-gallery.rdem-galerie > figure:nth-child(n+3):nth-child(-n+4) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .wp-block-gallery.rdem-galerie > figure img { transition: none; } .wp-block-gallery.rdem-galerie > figure:hover img { transform: none; } }
.rdem-video figcaption { font-size: 13px; text-align: left; color: var(--rdem-prune-profonde); }
.rdem-video__lecteur { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rdem-rayon); overflow: hidden; background: var(--rdem-prune); }
.rdem-video__lecteur iframe, .rdem-video__vignette { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.rdem-video__bouton { border-radius: 0 !important; min-height: 0;
	position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
	background: rgba(46, 26, 59, 0.35); color: #fff; border: 0; cursor: pointer; font: 600 17px var(--rdem-texte);
}
.rdem-video__bouton:hover { background: rgba(46, 26, 59, 0.5); }
.rdem-video__bouton:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.rdem-video__play { width: 64px; height: 64px; border-radius: 50%; background: var(--rdem-hibiscus); position: relative; }
.rdem-video__play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.rdem-video__note { font-size: 13px; margin: 0.6rem 0 0; }
.rdem-helloasso__formulaire { display: block; width: 100%; height: 750px; border: 0; border-radius: 16px; background: #fff; }

/* ---------- Adhésion 2 formules / inscription atelier ---------- */
.rdem-formules--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 781px) { .rdem-formules--2 { grid-template-columns: 1fr; } }
.rdem-formule--atelier { max-width: 820px; margin-bottom: 2.5rem; }
.rdem-formule--atelier .rdem-formule__titre { margin-top: 0; }

/* ---------- Mouvement ---------- */
@keyframes rdem-monter {
	from { opacity: 0; translate: 0 16px; }
	to { opacity: 1; translate: none; }
}
@keyframes rdem-flotter {
	50% { translate: 0 14px; }
}
@keyframes rdem-balancier {
	50% { rotate: 3deg; }
}
@keyframes rdem-points {
	to { stroke-dashoffset: -120; }
}

@media (prefers-reduced-motion: no-preference) {
	.rdem-reveal:not(.is-in) { opacity: 0; translate: 0 16px; }
	.rdem-reveal.is-in:not(.is-pose) {
		animation: rdem-monter 0.75s cubic-bezier(0.22, 0.8, 0.3, 1) both;
		animation-delay: var(--rdem-delai, 0ms);
	}

	.rdem-cercle { animation: rdem-flotter 16s ease-in-out infinite; }
	.rdem-accueil-hero__c2, .rdem-entete__c1 { animation-duration: 21s; animation-delay: -7s; }
	.rdem-brin { transform-origin: 50% 100%; animation: rdem-balancier 7.5s ease-in-out infinite; }
	.rdem-chemin path { animation: rdem-points 22s linear infinite; }

	.wp-block-button__link,
	a.rdem-bouton,
	.header-button,
	.rdem-carte,
	.rdem-demi-arche,
	.rdem-formule,
	.rdem-agenda__item,
	.rdem-carte-rdv,
	.rdem-logos li,
	.rdem-article-carte,
	.tribe-events .tribe-events-calendar-list__event-row {
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, translate 0.3s ease;
	}
	.wp-block-button__link:hover,
	a.rdem-bouton:hover,
	.header-button:hover { translate: 0 -2px; }
	.rdem-carte:hover,
	.rdem-demi-arche:hover,
	.rdem-formule:hover,
	.rdem-agenda__item:hover,
	.rdem-carte-rdv:hover,
	.rdem-logos li:hover,
	.rdem-article-carte:hover,
	.tribe-events .tribe-events-calendar-list__event-row:hover { translate: 0 -4px; }
	.rdem-article-carte__image img { transition: scale 0.6s ease; }
	.rdem-article-carte:hover .rdem-article-carte__image img { scale: 1.04; }
}

.editor-styles-wrapper .rdem-cercle,
.editor-styles-wrapper .rdem-brin,
.editor-styles-wrapper .rdem-chemin path { animation: none; }

@media (prefers-reduced-motion: reduce), print {
	.rdem-reveal { animation: none !important; opacity: 1 !important; translate: none !important; }
	.rdem-cercle, .rdem-brin, .rdem-chemin path { animation: none !important; }
}

.rdem-paiement-atelier .rdem-aside-adhesion { display: none; }
.rdem-paiement-atelier .rdem-adhesion__form { flex-basis: 100% !important; max-width: 820px; }
.rdem-inscription { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.rdem-inscription__note { font-size: 14px; margin: 0.5rem 0 0; }

/* ---------- Connexion (PMPro) ---------- */
.rdem-connexion { padding-top: 0 !important; }
.rdem-connexion .rdem-carte { padding: 2rem; }
.rdem-connexion .pmpro_card, .rdem-connexion .pmpro_card_content { background: transparent; padding: 0; margin: 0; }
.rdem-connexion .pmpro_card_actions { background: none; padding: 1rem 0 0; text-align: center; }
.rdem-connexion .login-remember label { font-size: 15px; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.rdem-connexion .login-remember input { width: 20px; height: 20px; accent-color: var(--rdem-prune); }
.rdem-connexion input[type="submit"], .pmpro_login_wrap input[type="submit"] {
	width: 100%; background: var(--rdem-hibiscus) !important; border: 1.5px solid var(--rdem-hibiscus) !important; color: #fff !important;
}
.rdem-connexion input[type="submit"]:hover, .pmpro_login_wrap input[type="submit"]:hover { background: #9C4533 !important; }

/* ---------- Blog : cartes d’articles ---------- */
.rdem-articles .wp-block-post-template { gap: clamp(1rem, 2.5vw, 1.75rem); margin: 0; padding: 0; }
@media (max-width: 781px) { .rdem-articles .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
.rdem-article-carte { position: relative; height: 100%; background: var(--rdem-carte); border-radius: var(--rdem-rayon); overflow: hidden; display: flex; flex-direction: column; }
.rdem-article-carte__image { margin: 0 !important; overflow: hidden; border-radius: 120px 120px 0 0; }
.rdem-article-carte__image img { width: 100%; height: 100%; object-fit: cover; }
.rdem-article-carte__corps { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.rdem-article-carte__corps > * { margin: 0 !important; }
.rdem-article-carte__cat a { display: inline-block; font-size: 12px; font-weight: 600; padding: 0.2em 0.8em; border-radius: 999px; background: var(--rdem-lavande-pale); color: var(--rdem-prune); text-decoration: none; position: relative; z-index: 1; }
.rdem-article-carte .wp-block-post-title { font-size: 22px; line-height: 1.25; }
.rdem-article-carte .wp-block-post-title a { color: var(--rdem-prune); text-decoration: none; }
.rdem-article-carte .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.rdem-article-carte:focus-within { outline: 3px solid var(--rdem-bleu-brume); outline-offset: 3px; }
.rdem-article-carte .wp-block-post-title a:focus-visible { outline: none; }
.rdem-article-carte .wp-block-post-excerpt { font-size: 15px; flex: 1; }
.rdem-article-carte .wp-block-post-excerpt__more-text { display: none; }
.rdem-article-carte__date { font-size: 13px; color: var(--rdem-bleu-brume); }
.rdem-articles__vide { background: var(--rdem-lavande-pale); border-radius: var(--rdem-rayon); padding: 1.5rem; margin: 0; }
.rdem-articles .wp-block-query-pagination { margin-top: 2rem; gap: 0.5rem; }
.rdem-articles .wp-block-query-pagination a, .rdem-articles .wp-block-query-pagination .current { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 0.9rem; }
.rdem-articles .wp-block-query-pagination .current { background: var(--rdem-prune); color: #fff; }
.rdem-articles-recents { background: var(--rdem-carte); }
.rdem-articles-recents .rdem-article-carte { background: var(--rdem-creme); }
.rdem-articles-recents__entete { align-items: end; margin-bottom: 1.5rem; }

/* Filtres par catégorie (bloc Catégories) */
.rdem-filtres { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 !important; margin-bottom: 2rem !important; }
.rdem-filtres li { margin: 0; }
.rdem-filtres a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--rdem-prune); color: var(--rdem-prune); text-decoration: none; font-weight: 600; font-size: 15px; }
.rdem-filtres a:hover, .rdem-filtres .current-cat a { background: var(--rdem-prune); color: #fff; }

/* Article seul */
.single-post .entry-header .entry-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.single-post .entry-meta, .single-post .entry-taxonomies a { font-size: 14px; }
.single-post .entry-taxonomies a { background: var(--rdem-lavande-pale); color: var(--rdem-prune); border-radius: 999px; padding: 0.25em 0.9em; text-decoration: none; }
.single-post .post-thumbnail img, .single-post .article-post-thumbnail img { border-radius: var(--rdem-rayon); }
/* Photos recadrées : garder le haut (visages) plutôt que le centre. */
.single-post .post-thumbnail img, .single-post .article-post-thumbnail img, .rdem-article-carte__image img { object-position: center top; }
.single-post .entry-content { font-size: 18px; }
.single-post .entry-content > p { max-width: 68ch; }
.single-post .post-navigation a { color: var(--rdem-prune); }

/* Article sans image mise en avant : visuel par défaut (arche lavande + symbole) */
.rdem-article-carte:not(:has(.wp-block-post-featured-image))::before {
	content: ""; display: block; aspect-ratio: 4 / 3; border-radius: 120px 120px 0 0;
	background: var(--rdem-lavande-pale) url("../logo/symbole.png") center / 58% no-repeat;
}
.rdem-articles-recents .rdem-article-carte:not(:has(.wp-block-post-featured-image))::before { background-color: var(--rdem-ciel); }

/* Infographies d’articles */
.rdem-infographie { margin: 2.5rem auto !important; max-width: 640px; }
.rdem-infographie img { border-radius: var(--rdem-rayon); }
.rdem-infographie figcaption { font-size: 13px; color: var(--rdem-bleu-brume); text-align: center; }

/* Adhérer via HelloAsso */
.rdem-adhesion__action { margin: -1rem 0 2.5rem; }
.is-layout-constrained > .rdem-adhesion__action { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.rdem-etapes--liste { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1rem; }
.rdem-etapes--liste .rdem-etape { position: relative; padding-left: 60px; }
.rdem-etapes--liste .rdem-etape::before { position: absolute; left: 0; top: 0; margin: 0; }
.rdem-adhesion__etapes .rdem-note { margin-top: 1.5rem; }
.rdem-adhesion__cols > .wp-block-column { align-self: flex-start; }
