/*
Theme Name:   Aux Rythmes des Pattes
Description:  Thème enfant de Twenty Twenty-Five pour le site Aux Rythmes des Pattes.
Template:     twentytwentyfive
Version:      0.4.0
Requires at least: 6.7
Text Domain:  rdp
*/

/* =============================================================
   Variables — couleurs issues du logo (voir theme.json)
   ============================================================= */
:root {
	--rdp-cream: var(--wp--preset--color--base, #fbfaf6);
	--rdp-forest: var(--wp--preset--color--contrast, #26352f);
	--rdp-gold: var(--wp--preset--color--accent-1, #c6ab76);
	--rdp-sage-pale: var(--wp--preset--color--accent-2, #e3e8dc);
	--rdp-sage-dark: var(--wp--preset--color--accent-3, #5f6b54);
	--rdp-sage: var(--wp--preset--color--accent-4, #7c866e);
	--rdp-sand: var(--wp--preset--color--accent-5, #f1eee5);
	--rdp-line: color-mix(in srgb, var(--rdp-forest) 14%, transparent);
	--rdp-radius: 36px;
	--rdp-gutter: clamp(20px, 5vw, 64px);
	--rdp-width: 1340px;
	--rdp-shadow: 0 18px 50px -24px rgba(38, 53, 47, 0.28);
	--rdp-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5' cy='10.5' rx='2.1' ry='2.8'/%3E%3Cellipse cx='9.3' cy='5.8' rx='2.1' ry='2.9'/%3E%3Cellipse cx='14.7' cy='5.8' rx='2.1' ry='2.9'/%3E%3Cellipse cx='19' cy='10.5' rx='2.1' ry='2.8'/%3E%3Cpath d='M12 11c-3 0-6.2 3.6-6.2 6.5 0 1.9 1.4 2.9 3 2.9 1.3 0 2.1-.6 3.2-.6s1.900.6 3.2.6c1.600 0 3-1 3-2.900C18.200 14.600 15 11 12 11z'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 120px;
}

/* Les sections occupent toute la largeur et se suivent sans marge. */
.wp-site-blocks > *,
.rdp-main > *,
.rdp-main > .wp-block-post-content > * {
	margin-block-start: 0;
}

body:not(.home) .wp-site-blocks {
	padding-top: 130px;
}

.rdp-container {
	width: min(100% - 2 * var(--rdp-gutter), var(--rdp-width));
	margin-inline: auto;
}

.rdp-section {
	padding-block: clamp(72px, 10vw, 140px);
}

.rdp-section--sand {
	background: var(--rdp-sand);
}

/* Titres et textes communs */
.rdp-title {
	font-size: clamp(2.4rem, 5.6vw, 4.6rem);
	margin: 0;
}

.rdp-title em,
.rdp-hero__title em {
	font-style: italic;
	font-weight: 500;
	color: var(--rdp-sage);
}

.rdp-lead {
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	margin: 0;
}

.rdp-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rdp-sage-dark);
}

.rdp-eyebrow::before {
	content: "";
	width: 22px;
	height: 22px;
	background: var(--rdp-gold);
	-webkit-mask: var(--rdp-paw) center / contain no-repeat;
	mask: var(--rdp-paw) center / contain no-repeat;
}

.rdp-eyebrow--plain::before {
	display: none;
}

/* Boutons */
.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.rdp-btn--arrow .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.7em;
	transition: transform 0.2s;
}

.rdp-btn--arrow .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.rdp-btn--ghost .wp-block-button__link {
	background: transparent;
	color: var(--rdp-cream);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rdp-cream) 70%, transparent);
}

.rdp-btn--ghost .wp-block-button__link:hover {
	background: var(--rdp-cream);
	color: var(--rdp-forest);
}

/* =============================================================
   En-tête flottant
   ============================================================= */
.rdp-header {
	position: fixed;
	z-index: 50;
	top: 20px;
	left: 0;
	right: 0;
	pointer-events: none;
}

.admin-bar .rdp-header {
	top: 52px;
}

.rdp-header__inner {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100% - 2 * clamp(12px, 3vw, 40px), 1560px);
	margin-inline: auto;
	padding: 10px 12px 10px 14px;
	border-radius: 999px;
	/* Pas de backdrop-filter ici : il enfermerait le menu mobile plein écran dans la pilule. */
	background: var(--rdp-cream);
	box-shadow: var(--rdp-shadow);
}

.rdp-header__inner > * {
	margin: 0;
}

.rdp-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.rdp-brand > * {
	margin: 0;
}

.rdp-brand__logo {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: #fdfdfd;
	box-shadow: inset 0 0 0 1px var(--rdp-line);
}

.rdp-brand__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rdp-brand__name {
	font-family: var(--wp--preset--font-family--platypi);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.rdp-brand__name a {
	color: var(--rdp-forest);
	text-decoration: none;
}

.rdp-nav {
	font-size: 0.98rem;
	font-weight: 700;
}

.rdp-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: clamp(18px, 2.6vw, 44px);
}

.rdp-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

.rdp-nav .wp-block-navigation-item__content {
	color: var(--rdp-forest);
	transition: color 0.2s;
}

.rdp-nav .wp-block-navigation-item__content:hover {
	color: var(--rdp-sage);
}

.rdp-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 110px 32px 32px;
	background: var(--rdp-cream);
	font-family: var(--wp--preset--font-family--platypi);
	font-size: 1.8rem;
}

.rdp-header .wp-block-button__link {
	padding: 0.85rem 1.6rem;
	background: var(--rdp-forest);
	color: var(--rdp-cream);
	font-size: 0.98rem;
	white-space: nowrap;
}

.rdp-header .wp-block-button__link:hover {
	background: var(--rdp-sage-dark);
	color: var(--rdp-cream);
}

/* =============================================================
   Accueil (héro)
   ============================================================= */
.rdp-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	color: var(--rdp-cream);
	background:
		radial-gradient(60% 70% at 85% 35%, color-mix(in srgb, var(--rdp-sage) 55%, transparent), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--rdp-gold) 22%, transparent), transparent 70%),
		var(--rdp-forest);
	overflow: hidden;
}

.rdp-hero > * {
	margin-block: 0;
}

.rdp-hero__grid {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	padding-block: 150px 56px;
}

.rdp-hero__grid > *,
.rdp-hero__text > * {
	margin: 0;
}

.rdp-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--rdp-cream);
	color: var(--rdp-forest);
	font-size: 0.92rem;
	font-weight: 700;
}

.rdp-pill::before {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--rdp-sage-dark);
	-webkit-mask: var(--rdp-paw) center / contain no-repeat;
	mask: var(--rdp-paw) center / contain no-repeat;
}

.rdp-hero__title {
	margin-top: 34px;
	font-size: clamp(2.6rem, 5.2vw, 5.2rem);
	line-height: 1.02;
	color: var(--rdp-cream);
}

.rdp-hero__title em {
	color: var(--rdp-gold);
}

.rdp-hero__text .rdp-lead {
	max-width: 34em;
	margin-top: 30px;
	color: color-mix(in srgb, var(--rdp-cream) 88%, transparent);
}

.rdp-hero__text .wp-block-buttons {
	margin-top: 40px;
	gap: 16px;
}

.rdp-hero .wp-block-button__link {
	padding: 1.15rem 2rem;
	font-size: 1.05rem;
}

.rdp-hero__logo {
	position: relative;
	justify-self: center;
	width: min(100%, 440px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fdfdfd;
	box-shadow:
		0 0 0 14px color-mix(in srgb, var(--rdp-cream) 14%, transparent),
		0 40px 80px -30px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.rdp-hero__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =============================================================
   Formules
   ============================================================= */
.rdp-intro {
	max-width: 780px;
}

.rdp-intro > * {
	margin: 0;
}

.rdp-intro .rdp-eyebrow {
	margin-bottom: 22px;
}

.rdp-intro .rdp-lead {
	margin-top: 24px;
}

.rdp-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin-top: clamp(40px, 6vw, 72px);
}

.rdp-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 36px;
	border-radius: var(--rdp-radius);
	background: #fff;
	box-shadow: var(--rdp-shadow);
	transition: transform 0.25s;
}

/* Cinq cartes : trois sur la première ligne, deux plus larges sur la seconde. */
@media (min-width: 961px) {
	.rdp-cards {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.rdp-card {
		grid-column: span 2;
	}

	.rdp-card:nth-child(3n + 1):nth-last-child(2),
	.rdp-card:nth-child(3n + 2):last-child {
		grid-column: span 3;
	}
}

.rdp-card:hover {
	transform: translateY(-6px);
}

.rdp-card > * {
	margin: 0;
}

.rdp-card::before {
	content: "";
	width: 64px;
	height: 64px;
	margin-bottom: 36px;
	border-radius: 20px;
	background: var(--rdp-icon) center / 26px no-repeat, var(--rdp-sage-pale);
}

.rdp-card--puppy {
	--rdp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='10' r='1.8'/%3E%3Ccircle cx='9.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='14.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='18' cy='10' r='1.8'/%3E%3Cpath d='M12 11.500c-2.800 0-5 3.400-5 5.600 0 1.600 1.300 2.400 2.700 2.400 1 0 1.500-.5 2.300-.5s1.300.5 2.300.5c1.400 0 2.700-.8 2.700-2.400 0-2.200-2.200-5.600-5-5.600z'/%3E%3C/svg%3E");
}

.rdp-card--adult {
	--rdp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.500-4.500-7.500-10.200A4.200 4.200 0 0 1 12 7.300a4.200 4.200 0 0 1 7.500 2.500C19.500 15.500 12 20 12 20z'/%3E%3C/svg%3E");
}

.rdp-card--adult::before {
	background-color: color-mix(in srgb, var(--rdp-gold) 30%, #fff);
}

.rdp-card--behavior {
	--rdp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.500A2.500 2.500 0 0 1 6.500 4h11A2.500 2.500 0 0 1 20 6.500v7a2.500 2.500 0 0 1-2.500 2.500H10l-4.500 4v-4h0A1.500 1.500 0 0 1 4 14.500z'/%3E%3Cpath d='M8.500 10h.01M12 10h.01M15.500 10h.01'/%3E%3C/svg%3E");
}

.rdp-card--behavior::before {
	background-color: var(--rdp-sand);
}

.rdp-card--group {
	--rdp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.500 19.500c.6-3 2.800-5 5.500-5s4.900 2 5.500 5'/%3E%3Ccircle cx='16.500' cy='9' r='2.400'/%3E%3Cpath d='M16 14.200c2.300.1 4 1.800 4.500 4.300'/%3E%3C/svg%3E");
}

.rdp-card--sport {
	--rdp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326352f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.500'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.500'/%3E%3C/svg%3E");
}

.rdp-card--sport::before {
	background-color: color-mix(in srgb, var(--rdp-gold) 30%, #fff);
}

.rdp-card h3 {
	font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.rdp-card__text {
	flex: 1;
	margin-top: 16px;
	line-height: 1.6;
}

.rdp-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 44px;
}

.rdp-card__foot > * {
	margin: 0;
}

.rdp-card__price {
	font-family: var(--wp--preset--font-family--platypi);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
}

.rdp-card__price small {
	display: block;
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.85rem;
	font-weight: 600;
}

.rdp-card__link {
	font-weight: 800;
	white-space: nowrap;
}

.rdp-card__link a {
	color: var(--rdp-sage-dark);
	text-decoration: none;
}

.rdp-card__link a::after {
	content: " →";
}

.rdp-card__link a:hover {
	color: var(--rdp-forest);
}

/* =============================================================
   Notre approche
   ============================================================= */
.rdp-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
	margin-top: clamp(40px, 6vw, 72px);
	padding: clamp(28px, 5vw, 72px);
	border-radius: var(--rdp-radius);
	background: var(--rdp-sage-pale);
}

.rdp-panel > *,
.rdp-panel__text > *,
.rdp-panel__media > * {
	margin: 0;
}

.rdp-panel__media {
	position: relative;
}

.rdp-panel__media .wp-block-image {
	border-radius: 28px;
	overflow: hidden;
	background: #fdfdfd;
}

.rdp-panel__media img {
	display: block;
	width: 100%;
	height: auto;
}

.rdp-chip {
	position: absolute;
	top: 28px;
	left: -18px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px 16px 16px;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--rdp-shadow);
	font-weight: 700;
}

.rdp-chip::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rdp-gold);
	-webkit-mask: var(--rdp-paw) center / 24px no-repeat, linear-gradient(#000 0 0);
	mask: var(--rdp-paw) center / 24px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.rdp-panel__text h3 {
	font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.rdp-panel__text p:not(.rdp-eyebrow) {
	margin-top: 22px;
	font-size: 1.1rem;
	line-height: 1.6;
}

.rdp-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin-top: 26px;
	counter-reset: rdp-step;
}

.rdp-step {
	margin: 0;
	padding: 32px;
	border-radius: 28px;
	background: #fff;
	counter-increment: rdp-step;
}

.rdp-step > * {
	margin: 0;
}

.rdp-step::before {
	content: counter(rdp-step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: var(--rdp-forest);
	color: var(--rdp-cream);
	font-weight: 800;
}

.rdp-step h3 {
	font-size: 1.45rem;
}

.rdp-step p {
	margin-top: 12px;
	line-height: 1.6;
}

/* Présentation du formateur : titre pleine largeur, puis grille 2×2 */
.rdp-trainer {
	margin-top: clamp(72px, 10vw, 130px);
}

.rdp-trainer > *,
.rdp-trainer__head > * {
	margin: 0;
}

.rdp-trainer .rdp-title {
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

/* Titre à gauche, phrase d'introduction à droite, alignée sur le bas du titre */
.rdp-trainer__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 96px);
	align-items: end;
}

.rdp-trainer__head > :not(.rdp-lead) {
	grid-column: 1;
}

.rdp-trainer__head .rdp-lead {
	grid-column: 2;
	grid-row: 1 / span 2;
	padding: 4px 0 4px 28px;
	border-left: 3px solid var(--rdp-gold);
	font-family: var(--wp--preset--font-family--platypi);
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	line-height: 1.4;
	color: var(--rdp-forest);
}

.rdp-trainer__head .rdp-lead strong {
	color: var(--rdp-sage-dark);
	font-style: italic;
}

/* Noms des chiens : italique et surlignage doré */
.rdp-trainer__item strong {
	padding: 0 0.15em;
	font-family: var(--wp--preset--font-family--platypi);
	font-size: 1.1em;
	font-style: italic;
	font-weight: 700;
	color: var(--rdp-forest);
	background: linear-gradient(transparent 58%, color-mix(in srgb, var(--rdp-gold) 45%, transparent) 58%);
}

.rdp-trainer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	margin-top: clamp(32px, 5vw, 56px);
	counter-reset: rdp-item;
}

.rdp-trainer__item {
	margin: 0;
	padding: 32px;
	border-radius: 28px;
	background: #fff;
	counter-increment: rdp-item;
}

.rdp-trainer__item::before {
	content: counter(rdp-item, decimal-leading-zero);
	display: block;
	margin-bottom: 14px;
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--rdp-sage);
}

.rdp-trainer__item > * {
	margin: 0;
}

.rdp-trainer__item h3 {
	font-size: 1.45rem;
}

.rdp-trainer__item p {
	margin-top: 10px;
	line-height: 1.6;
}

/* =============================================================
   FAQ
   ============================================================= */
.rdp-faq {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 7vw, 120px);
	align-items: start;
}

.rdp-faq > *,
.rdp-faq__head > *,
.rdp-faq__list > * {
	margin: 0;
}

.rdp-faq__head {
	position: sticky;
	top: 140px;
}

.rdp-faq__head .rdp-lead {
	margin-top: 24px;
}

.rdp-faq__list {
	border-top: 1px solid var(--rdp-line);
}

.rdp-faq__item {
	border-bottom: 1px solid var(--rdp-line);
}

.rdp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--platypi);
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 600;
	line-height: 1.25;
}

.rdp-faq__item summary::-webkit-details-marker {
	display: none;
}

.rdp-faq__item summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--rdp-line);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--rdp-sage-dark);
	transition: transform 0.25s, background-color 0.25s;
}

.rdp-faq__item[open] summary::after {
	transform: rotate(45deg);
	background: var(--rdp-sage-pale);
}

.rdp-faq__item summary:hover::after {
	background: var(--rdp-sage-pale);
}

.rdp-faq__item > :not(summary) {
	margin: 0;
	padding: 0 64px 32px 0;
	font-size: 1.08rem;
	line-height: 1.65;
}

/* =============================================================
   Contact et pied de page
   ============================================================= */
.rdp-contact-wrap {
	padding: 0 clamp(12px, 3vw, 40px);
	background: var(--rdp-cream);
}

.rdp-contact-wrap > * {
	margin: 0;
}

.rdp-footer {
	padding: 24px clamp(12px, 3vw, 40px) clamp(20px, 3vw, 40px);
	background: var(--rdp-cream);
}

.rdp-footer > * {
	margin: 0;
}

.rdp-contact {
	padding: clamp(40px, 7vw, 96px) var(--rdp-gutter);
	border-radius: var(--rdp-radius);
	color: var(--rdp-cream);
	background:
		radial-gradient(50% 80% at 100% 0%, color-mix(in srgb, var(--rdp-sage) 50%, transparent), transparent 70%),
		var(--rdp-forest);
}

.rdp-contact > * {
	margin: 0;
}

.rdp-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: end;
}

.rdp-contact__grid > *,
.rdp-contact__head > *,
.rdp-contact__infos > * {
	margin: 0;
}

.rdp-contact .rdp-title {
	color: var(--rdp-cream);
}

.rdp-contact .rdp-title em {
	color: var(--rdp-gold);
}

.rdp-contact .rdp-eyebrow {
	color: var(--rdp-gold);
}

.rdp-contact__head .rdp-lead {
	margin-top: 24px;
	max-width: 30em;
	color: color-mix(in srgb, var(--rdp-cream) 85%, transparent);
}

.rdp-contact__info {
	padding: 20px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--rdp-cream) 20%, transparent);
	font-size: 1.15rem;
	font-weight: 600;
}

.rdp-contact__info strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rdp-gold);
}

.rdp-contact__info a {
	color: inherit;
}

/* Réseaux sociaux : icônes rondes dorées sur le fond vert */
.rdp-contact__social > * {
	margin: 0;
}

.rdp-contact .rdp-contact__social .wp-block-social-links {
	gap: 12px;
	margin-top: 10px;
	padding: 0;
}

.rdp-contact .rdp-contact__social .wp-block-social-link {
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--rdp-cream) 30%, transparent);
	background: transparent;
	color: var(--rdp-gold);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rdp-contact .rdp-contact__social .wp-block-social-link:hover {
	transform: none;
	border-color: var(--rdp-gold);
	background: var(--rdp-gold);
	color: var(--rdp-forest);
}

.rdp-contact .rdp-contact__social .wp-block-social-link-anchor {
	padding: 10px;
}

.rdp-contact .rdp-contact__social .wp-block-social-link svg {
	width: 22px;
	height: 22px;
}

.rdp-footer__legal {
	padding: 0 var(--rdp-gutter);
	font-size: 0.9rem;
	color: var(--rdp-sage-dark);
}

/* =============================================================
   Adaptation mobile
   ============================================================= */
@media (max-width: 960px) {
	.rdp-hero__grid,
	.rdp-panel,
	.rdp-trainer__grid,
	.rdp-faq,
	.rdp-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rdp-cards,
	.rdp-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.rdp-hero__grid {
		padding-top: 130px;
	}

	.rdp-hero__logo {
		order: -1;
		width: min(60%, 260px);
		justify-self: start;
	}

	.rdp-faq__head {
		position: static;
	}

	.rdp-trainer__head {
		grid-template-columns: minmax(0, 1fr);
	}

	.rdp-trainer__head .rdp-lead {
		grid-column: 1;
		grid-row: auto;
		margin-top: 24px;
	}

	.rdp-chip {
		position: static;
		width: fit-content;
		margin-top: 16px;
	}

	.rdp-faq__item > :not(summary) {
		padding-right: 0;
	}
}

/* Tablette : le menu tient sur une ligne, le nom du site laisse la place au logo. */
@media (min-width: 600px) and (max-width: 960px) {
	.rdp-brand__name {
		display: none;
	}

	.rdp-nav .wp-block-navigation__container {
		flex-wrap: nowrap;
		gap: 18px;
	}
}

@media (max-width: 780px) {
	.rdp-header .wp-block-buttons {
		display: none;
	}

	.rdp-header__inner {
		padding-right: 20px;
	}

	.rdp-brand__name {
		font-size: 1.05rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.rdp-card,
	.wp-block-button__link {
		transition: none;
	}
}
