/* ==========================================================================
   Repar'Facile — styles du thème
   Les couleurs, tailles et espacements viennent de theme.json (variables --wp--preset--*).
   Organisation : 1. Bases · 2. En-tête · 3. Sections · 4. Composants · 5. Accueil/Formation
                  6. Blog · 7. Article · 8. Pages · 9. Pied de page · 10. Signature atelier · 11. Animations
   ========================================================================== */

:root {
	--rf-bleu: var(--wp--preset--color--bleu);
	--rf-bleu-fonce: var(--wp--preset--color--bleu-fonce);
	--rf-nuit: var(--wp--preset--color--nuit);
	--rf-gris: var(--wp--preset--color--gris);
	--rf-ligne: var(--wp--preset--color--ligne);
	--rf-pale: var(--wp--preset--color--bleu-pale);
	--rf-fond: var(--wp--preset--color--fond);
	--rf-orange: var(--wp--preset--color--orange);
	--rf-orange-pale: var(--wp--preset--color--orange-pale);
	--rf-r-s: 8px;
	--rf-r-m: 14px;
	--rf-r-l: 22px;
	--rf-shadow: var(--wp--preset--shadow--doux);
	--rf-shadow-up: var(--wp--preset--shadow--eleve);
	--rf-header-h: 72px;
	--rf-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 1. Bases ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rf-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; }
::selection { background: var(--rf-orange-pale); color: var(--rf-nuit); }

:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--rf-bleu);
	outline-offset: 3px;
	border-radius: 4px;
}

.rf-main { margin-block-start: 0; }
h1, h2, h3, .rf-bubble { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.rf-eyebrow {
	margin: 0 0 .75rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rf-bleu-fonce);
}
.rf-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--rf-gris); max-width: 38em; }
.has-text-align-center.rf-lead, .has-text-align-center + .rf-lead { margin-inline: auto; }

/* Boutons -------------------------------------------------------------- */

.wp-block-button__link, .rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	box-sizing: border-box;
	min-height: 48px;
	transition: background-color .2s var(--rf-ease), color .2s var(--rf-ease), border-color .2s var(--rf-ease), transform .2s var(--rf-ease), box-shadow .2s var(--rf-ease);
}
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(222, 147, 43, .28); }
.wp-block-button.is-style-outline > .wp-block-button__link,
.rf-btn--secondaire {
	background: transparent;
	color: var(--rf-bleu-fonce);
	border: 2px solid currentColor;
	padding: calc(.9rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.rf-btn--secondaire:hover { background: var(--rf-pale); color: var(--rf-nuit); box-shadow: none; }

.rf-btn--lien {
	padding: .5rem 0 !important;
	min-height: 44px;
	background: none !important;
	color: var(--rf-bleu-fonce) !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
	box-shadow: none !important;
}
.rf-btn--lien::after { content: "→"; transition: transform .2s var(--rf-ease); text-decoration: none; }
.rf-btn--lien:hover::after { transform: translateX(3px); }
.rf-btn--petit { min-height: 42px; padding: .6rem 1.15rem !important; font-size: .9375rem !important; }

.rf-cta { margin: 0; }
.rf-cta__note {
	margin: .5rem 0 0;
	padding: .5rem .75rem;
	font-size: .8125rem;
	background: #FFF8E1;
	border: 1px dashed #C99000;
	border-radius: var(--rf-r-s);
	color: #6B4E00;
}
.rf-actions, .rf-hero__actions { gap: .75rem 1rem; align-items: center; }

/* 2. En-tête -------------------------------------------------------------- */

.rf-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: rgba(250, 251, 253, .9);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.rf-site-header.is-scrolled { border-bottom-color: var(--rf-ligne); box-shadow: 0 4px 20px rgba(16, 33, 58, .05); }
/* Le flou (backdrop-filter) crée un cadre qui enfermerait le menu mobile plein écran dans la bande de l'en-tête :
   on le retire tant que le menu est ouvert. */
.rf-site-header:has(.is-menu-open), .has-modal-open .rf-site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 600px) { .admin-bar .rf-site-header { top: 0; } }

.rf-header { padding-inline: 1rem; }
.rf-header__inner { min-height: var(--rf-header-h); gap: 1.5rem; }
.rf-header__logo { flex-shrink: 0; margin: 0; }
.rf-header__logo img { width: 92px; height: auto; display: block; }
.rf-header__cta { flex-shrink: 0; }
.rf-header__cta .rf-cta__note { display: none; }

.rf-nav { flex: 1; justify-content: flex-end; }
.rf-nav .wp-block-navigation__container { gap: .25rem 1.75rem; }
.rf-nav .wp-block-navigation-item__content {
	padding: .5rem 0;
	color: var(--rf-nuit);
	text-decoration: none;
	position: relative;
}
.rf-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: .2rem;
	height: 2px;
	background: var(--rf-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--rf-ease);
}
.rf-nav .wp-block-navigation-item__content:hover::after,
.rf-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* Menu mobile (overlay de core/navigation) */
.rf-nav .wp-block-navigation__responsive-container-open {
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	border-radius: 12px;
	color: var(--rf-nuit);
}
@media (max-width: 599px) {
	.rf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; }
}
.rf-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.rf-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 1.25rem 2rem;
	background: var(--rf-fond) !important;
}
.rf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	align-items: stretch;
}
.rf-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.rf-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--rf-ligne); }
.rf-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: .9rem .25rem !important;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -.005em;
}
.rf-nav .is-menu-open .wp-block-navigation-item__content::before {
	content: "›";
	order: 2;
	color: var(--rf-gris);
	font-size: 1.25rem;
	line-height: 1;
}
/* Réseaux sociaux : seulement dans le menu mobile ouvert */
.rf-nav .rf-nav__social { display: none; }
.rf-nav .is-menu-open .rf-nav__social {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 2rem 0 0 !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rf-ligne);
	width: 100%;
}
.rf-nav .is-menu-open .rf-nav__social::before {
	content: "Suivez-nous";
	flex-basis: 100%;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rf-gris);
}
.rf-nav .is-menu-open .rf-nav__social .wp-social-link {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rf-nuit) !important;
	color: #fff !important;
	border-radius: 12px;
	border: 0;
}
.rf-nav .is-menu-open .rf-nav__social .wp-social-link a { padding: 0 !important; color: #fff; }
.rf-nav .is-menu-open .rf-nav__social, .rf-nav .is-menu-open .rf-nav__social .wp-social-link { border-bottom: 0 !important; }
.rf-nav .is-menu-open .rf-nav__social .wp-social-link svg { width: 22px; height: 22px; }
.rf-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.rf-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1.25rem; right: 1.25rem;
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rf-pale);
	border-radius: 12px;
}

@media (max-width: 599px) {
	.rf-header__inner { gap: .5rem; }
	.rf-header__logo img { width: 72px; }
	.rf-nav { order: 3; flex: 0 0 auto; }
	.rf-header__cta { margin-left: auto; }
}
@media (min-width: 600px) and (max-width: 940px) {
	.rf-nav .wp-block-navigation__container { gap: .25rem 1.1rem; }
	.rf-nav .wp-block-navigation-item__content { font-size: .9375rem; }
}
.rf-cta__label-court { display: none; }
@media (max-width: 940px) {
	.rf-header__cta .rf-cta__label-court { display: inline; }
	.rf-header__cta .rf-cta__label { display: none; }
}

/* 3. Sections --------------------------------------------------------------- */

.rf-section {
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: 1rem;
	margin-block: 0 !important;
}
.rf-section--compact { padding-block: var(--wp--preset--spacing--50); }
.rf-section--tint { background: var(--rf-pale); }
.rf-section__head { margin-bottom: var(--wp--preset--spacing--50); }
.rf-section__head h2 { margin-top: 0; }
.rf-section__head--split { gap: 1rem 2rem; }
.rf-section__head--split h2 { margin-bottom: 0; }

.wp-block-columns { gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50); }

/* 4. Composants ----------------------------------------------------------- */

.rf-card {
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--rf-shadow);
}
.rf-card > :first-child { margin-top: 0; }
.rf-card > :last-child { margin-bottom: 0; }
.rf-card h3 { margin-block: .25rem .5rem; }

.rf-grid { gap: clamp(1rem, 2.5vw, 1.5rem); }
/* Nombre de colonnes maximal fixe (évite les cartes orphelines) */
.rf-grid.rf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(max(16rem, calc((100% - 3rem) / 3)), 1fr)) !important; }
.rf-grid.rf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(max(14rem, calc((100% - 4.5rem) / 4)), 1fr)) !important; }
.rf-modules.rf-modules { grid-template-columns: repeat(auto-fill, minmax(max(16rem, calc((100% - 4.5rem) / 4)), 1fr)) !important; }
@media (max-width: 599px) {
	.rf-grid.rf-grid--3, .rf-grid.rf-grid--4, .rf-modules.rf-modules { grid-template-columns: 1fr !important; }
}

/* Listes */
.rf-check-list, .rf-dot-list, .rf-inline-list, .rf-badges, .rf-facts { list-style: none; padding: 0; margin-inline: 0; }
.rf-check-list li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: .75rem;
}
.rf-check-list li::before {
	content: "";
	position: absolute;
	left: 0; top: .2em;
	width: 1.25rem; height: 1.25rem;
	border-radius: 50%;
	background: var(--rf-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232A5794' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.rf-section--tint .rf-check-list li::before { background-color: #fff; }
@media (min-width: 782px) {
	.rf-check-list--cols { columns: 2; column-gap: 2.5rem; }
	.rf-check-list--cols li { break-inside: avoid; }
}

.rf-dot-list li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; font-size: .9688rem; line-height: 1.5; }
.rf-dot-list li::before {
	content: ""; position: absolute; left: 0; top: .6em;
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--rf-orange);
}

.rf-inline-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; font-size: .9375rem; color: var(--rf-gris); }
.rf-inline-list li { display: inline-flex; align-items: center; gap: .5rem; }
.rf-inline-list li::before {
	content: ""; width: 1rem; height: 1rem; flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%233B6FB4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rf-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem; }
.rf-badges li {
	padding: .4rem .85rem;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
}

.rf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rf-chips a, .rf-chip-list a, .rf-cat-pills a, .rf-post-card__cat a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: .25rem .8rem;
	background: var(--rf-pale);
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--rf-bleu-fonce);
	text-decoration: none;
	transition: background-color .2s;
}
.rf-chips a:hover, .rf-chip-list a:hover, .rf-cat-pills a:hover { background: #DCE6F4; color: var(--rf-nuit); }
.rf-tag {
	display: inline-block;
	padding: .2rem .65rem;
	border-radius: 999px;
	background: var(--rf-orange-pale);
	color: #7A4A06;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Mascotte et bulle */
.rf-mascot { margin: 0; }
.rf-mascot img { display: block; width: 100%; height: auto; }
.rf-bubble {
	position: relative;
	margin: 0;
	padding: .9rem 1.15rem;
	max-width: 17rem;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: 18px 18px 18px 4px;
	box-shadow: var(--rf-shadow-up);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.45;
}

/* Pictogrammes des cartes (masques SVG, couleur pilotée par le CSS) */
.rf-ico::before {
	content: "";
	display: block;
	width: 48px; height: 48px;
	margin-bottom: 1rem;
	border-radius: 14px;
	background-color: var(--rf-pale);
	background-image: var(--rf-ico);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px;
}
.rf-ico--diagnostic { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M8 11h1.5l1-2 1.5 4 1-2H15'/%3E%3C/svg%3E"); }
.rf-ico--ecran { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10 5.5h4M11 9l2 3-2 2 2 3'/%3E%3C/svg%3E"); }
.rf-ico--connecteur { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v5M15 2v5M6 7h12v4a6 6 0 0 1-12 0zM12 17v5'/%3E%3C/svg%3E"); }
.rf-ico--soudure { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M9 9h6v6H9zM9 1.5V4M15 1.5V4M9 20v2.5M15 20v2.5M1.5 9H4M1.5 15H4M20 9h2.5M20 15h2.5'/%3E%3C/svg%3E"); }
.rf-ico--entreprise { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12.5h18'/%3E%3C/svg%3E"); }
.rf-ico--clients { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E"); }

/* 5. Accueil & formation --------------------------------------------------- */

/* Ouverture */
.rf-hero {
	position: relative;
	padding-block: clamp(2rem, 3.5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	isolation: isolate;
}
.rf-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(70vw, 760px);
	aspect-ratio: 1;
	right: -12%;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--rf-pale), rgba(238, 243, 250, 0));
}
.rf-hero h1 { margin-block: 0 1.25rem; max-width: 13em; }
@media (min-width: 782px) {
	.rf-hero__grid { gap: clamp(2rem, 4vw, 4rem); }
	/* Texte et image partent du haut : pas de grand vide sous le menu. */
	.rf-hero__grid { align-items: flex-start !important; }
	.rf-hero__grid > .wp-block-column { align-self: flex-start !important; }
	.rf-hero__text { padding-top: 2.5rem; }
	.rf-about-hero__photo img { aspect-ratio: 1 / 1; }
}
.rf-hero .rf-lead { margin-bottom: 2rem; }
.rf-hero__visual { position: relative; padding: 3.25rem 0 2.5rem 7%; }
.rf-hero__visual::before {
	content: "";
	position: absolute;
	inset: 0 -6% -4% 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(59, 111, 180, .13) 1px, transparent 1px),
		linear-gradient(90deg, rgba(59, 111, 180, .13) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
	mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.rf-hero__photo { aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; box-shadow: var(--rf-shadow-up); outline: 8px solid #fff; }
.rf-mascot--hero { position: absolute; left: -9%; bottom: 2.5rem; width: 46%; z-index: 2; filter: drop-shadow(0 18px 24px rgba(16, 33, 58, .22)); }
.rf-bubble--hero { position: absolute; left: 0; top: 0; z-index: 3; }
.rf-spec--hero-a { top: 20%; right: -3%; }
.rf-spec--hero-b { bottom: 14%; right: 4%; }
/* Mobile : tout le premier écran d'un coup d'œil — l'atelier et la mascotte en haut, puis le titre et les deux boutons. */
@media (max-width: 781px) {
	.rf-hero { padding-top: 1rem; }
	.rf-hero__grid { gap: 1.25rem !important; }
	.rf-hero__visual { order: -1; width: 100%; padding: 0 0 0 18%; margin: 0; }
	.rf-hero__visual::before { display: none; }
	.rf-hero__photo { aspect-ratio: 16 / 10; border-radius: 18px; outline-width: 4px; }
	.rf-mascot--hero { left: -2%; bottom: -.5rem; width: 34%; }
	.rf-hero .rf-bubble--hero { display: none; }
	.rf-hero .rf-spec--hero-a { display: none; }
	.rf-spec--hero-b { bottom: .6rem; right: .6rem; font-size: .75rem; }
	.rf-hero::before { width: 120vw; right: -40%; top: 40%; }
	.rf-hero .rf-eyebrow { margin-bottom: .5rem; font-size: .75rem; }
	.rf-hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); margin-bottom: .75rem; }
	.rf-hero .rf-lead { margin-bottom: 1.1rem; font-size: 1rem; }
	.rf-hero__actions { flex-direction: column; align-items: stretch !important; gap: .6rem; }
	.rf-hero__actions .wp-block-button, .rf-hero__actions .wp-block-button__link { width: 100%; }
	.rf-hero .rf-inline-list { margin-top: 1rem; font-size: .875rem; }
}

/* Deux parcours */
.rf-paths__grid { gap: clamp(1rem, 3vw, 2rem); }
.rf-path {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	overflow: hidden;
	transition: transform .3s var(--rf-ease), box-shadow .3s var(--rf-ease);
}
.rf-path:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow-up); }
.rf-path .rf-path__mascot {
	width: 156px;
	margin: -.5rem 0 .75rem -.25rem;
	border-radius: 50%;
	background: var(--rf-pale);
	aspect-ratio: 1;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.rf-path .rf-path__mascot img { width: 92%; }
.rf-path--formation { border-top: 4px solid var(--rf-orange); }
.rf-path--tutos { border-top: 4px solid var(--rf-bleu); }
.rf-path .rf-cta { margin-top: auto; padding-top: 1rem; }
.rf-path p:not(.rf-eyebrow) { color: var(--rf-gris); }

/* La formation en bref */
.rf-overview__visual, .rf-format__visual { display: flex; justify-content: center; }
.rf-mascot--large { width: 460px; max-width: 100%; }
.rf-overview__visual .rf-mascot,
.rf-format__visual .rf-mascot {
	padding: 2rem 1.5rem 0;
	background: #fff;
	border-radius: 50% 50% var(--rf-r-l) var(--rf-r-l);
	box-shadow: var(--rf-shadow);
}
.rf-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-block: 2rem;
}
.rf-facts li {
	padding: 1rem 1.1rem;
	background: #fff;
	border-radius: var(--rf-r-m);
	font-size: .9375rem;
	line-height: 1.45;
	color: var(--rf-gris);
}
.rf-facts strong { display: block; font-size: 1.375rem; font-weight: 800; color: var(--rf-nuit); letter-spacing: -.01em; }
@media (max-width: 420px) { .rf-facts { grid-template-columns: 1fr; } }

/* Compétences, profils, bonus */
.rf-skill p, .rf-profile p, .rf-bonus__item p { color: var(--rf-gris); font-size: .9688rem; }
.rf-profile__num {
	margin: 0 0 .75rem;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--rf-bleu);
}
.rf-prereq { margin-top: clamp(1.5rem, 3vw, 2rem); background: var(--rf-orange-pale); border-color: #F5DFC0; box-shadow: none; }
.rf-prereq .rf-check-list li::before { background-color: #fff; }
.rf-bonus__item { border-top: 4px solid var(--rf-orange); }

/* Programme */
.rf-program__head { margin-bottom: var(--wp--preset--spacing--40); align-items: flex-end; }
.rf-program__visual .rf-mascot { width: min(100%, 220px); margin-left: auto; }
.rf-modules { gap: clamp(1rem, 2.5vw, 1.5rem); counter-reset: module; }
.rf-module { display: flex; flex-direction: column; position: relative; }
.rf-module__num {
	display: inline-flex;
	align-self: flex-start;
	margin: 0 0 .75rem;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: var(--rf-pale);
	color: var(--rf-bleu-fonce);
	font-size: .8125rem;
	font-weight: 800;
	letter-spacing: .03em;
}
.rf-module--business .rf-module__num { background: var(--rf-orange-pale); color: #7A4A06; }
.rf-module h3 { font-size: 1.25rem; }
.rf-module .rf-dot-list { margin-block: .75rem 1rem; }
.rf-module__goal {
	margin-top: auto !important;
	padding-top: .9rem;
	border-top: 1px solid var(--rf-ligne);
	font-size: .9063rem;
	color: var(--rf-gris);
}
.rf-module__goal strong { color: var(--rf-nuit); }
@media (max-width: 781px) {
	.rf-program__visual { display: none; }
}

/* Accès démo */
.rf-demo {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: linear-gradient(135deg, #fff 0%, var(--rf-orange-pale) 100%);
	border: 1px solid #F5DFC0;
	border-radius: var(--rf-r-l);
}
.rf-demo__visual .rf-mascot { width: min(100%, 220px); margin-inline: auto; }
.rf-demo__title { font-size: var(--wp--preset--font-size--x-large); margin-top: 0; }
@media (max-width: 781px) {
	.rf-demo__visual .rf-mascot { width: 150px; }
}

/* Packs */
.rf-packs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: clamp(1rem, 3vw, 1.75rem);
	align-items: stretch;
}
.rf-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
	box-shadow: var(--rf-shadow);
}
.rf-pack--vedette { border: 2px solid var(--rf-bleu); box-shadow: var(--rf-shadow-up); }
.rf-pack__badge {
	position: absolute;
	top: 0; right: 1.5rem;
	transform: translateY(-50%);
	padding: .35rem .85rem;
	border-radius: 999px;
	background: var(--rf-bleu-fonce);
	color: #fff;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.rf-pack__name { margin: 0; font-size: 1.375rem; }
.rf-pack__pitch { margin: .35rem 0 1.25rem; color: var(--rf-gris); font-size: .9688rem; }
.rf-pack__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; margin: 0; }
.rf-pack__amount { font-size: clamp(2.5rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rf-pack__old { color: var(--rf-gris); text-decoration: line-through; font-weight: 600; }
.rf-pack__access { margin: .5rem 0 1.5rem; font-size: .9375rem; font-weight: 700; color: var(--rf-bleu-fonce); }
.rf-pack .rf-check-list { margin: 0 0 1.75rem; font-size: .9688rem; }
.rf-pack .rf-check-list li { margin-bottom: .6rem; }
.rf-pack__cta { margin-top: auto; }
.rf-pack__cta .wp-block-button__link { width: 100%; }
.rf-pack:not(.rf-pack--vedette) .rf-pack__cta .wp-block-button__link {
	background: var(--rf-nuit);
	color: #fff;
}
.rf-pack:not(.rf-pack--vedette) .rf-pack__cta .wp-block-button__link:hover { background: var(--rf-bleu-fonce); box-shadow: 0 6px 18px rgba(16, 33, 58, .2); }
.rf-pack__small { margin: .9rem 0 0; font-size: .8125rem; color: var(--rf-gris); text-align: center; }
.rf-packs__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem 2rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
	color: var(--rf-gris);
}
.rf-packs__info li { display: inline-flex; align-items: center; gap: .5rem; }
.rf-packs__info li::before {
	content: ""; width: 1.25rem; height: 1.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B6FB4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rf-packs__note { margin: 1rem auto 0; max-width: 40rem; text-align: center; font-size: .875rem; color: var(--rf-gris); }

/* Témoignages */
.rf-testimonials__head { margin-bottom: var(--wp--preset--spacing--40); align-items: flex-end; }
.rf-testimonials__visual .rf-mascot { width: min(100%, 190px); margin-left: auto; }
@media (max-width: 781px) { .rf-testimonials__visual { display: none; } }
.rf-testimonial {
	margin: 0;
	border-left: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}
.rf-testimonial::before {
	content: "“";
	display: block;
	height: 2.25rem;
	font-size: 4.5rem;
	line-height: 1;
	font-weight: 800;
	color: var(--rf-orange);
}
.rf-testimonial p { font-size: 1rem; line-height: 1.6; }
.rf-testimonial cite {
	margin-top: auto;
	padding-top: 1rem;
	font-style: normal;
	font-weight: 700;
	font-size: .9375rem;
	color: var(--rf-nuit);
}

/* FAQ */
.rf-faq__aside { position: relative; }
@media (min-width: 782px) { .rf-faq__aside { position: sticky; top: calc(var(--rf-header-h) + 2rem); align-self: flex-start; } }
.rf-faq__mascot { width: 180px; margin-top: 1.5rem; }
@media (max-width: 781px) { .rf-faq__mascot { display: none; } }
.rf-faq__list { display: flex; flex-direction: column; gap: .75rem; }
.rf-faq__item {
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-m);
	transition: border-color .2s, box-shadow .2s;
}
.rf-faq__item[open] { border-color: #C9D6EA; box-shadow: var(--rf-shadow); }
.rf-faq__item summary {
	position: relative;
	display: block;
	padding: 1.1rem 3.5rem 1.1rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.rf-faq__item summary::-webkit-details-marker { display: none; }
.rf-faq__item summary::after {
	content: "";
	position: absolute;
	right: 1.1rem; top: 50%;
	width: 1.75rem; height: 1.75rem;
	margin-top: -.875rem;
	border-radius: 50%;
	background: var(--rf-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%232A5794' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .25s var(--rf-ease);
}
.rf-faq__item[open] summary::after { transform: rotate(45deg); }
.rf-faq__item > :not(summary) { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--rf-gris); }

/* Bandeau d'appel */
.rf-cta-section { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.rf-cta-band {
	position: relative;
	margin: 0;
	padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem) 0;
	background: var(--rf-nuit);
	border-radius: var(--rf-r-l);
	color: #fff;
	overflow: hidden;
}
.rf-cta-band::before {
	content: "";
	position: absolute;
	width: 520px; height: 520px;
	right: -140px; bottom: -260px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(59, 111, 180, .55), rgba(59, 111, 180, 0));
}
.rf-cta-band > .wp-block-column:first-child { padding-bottom: clamp(1.75rem, 5vw, 3.5rem); position: relative; }
.rf-cta-band h2 { color: #fff; margin-top: 0; }
.rf-cta-band p { color: #C9D4E6; }
.rf-cta-band a:not(.wp-block-button__link) { color: #fff; }
.rf-cta-band .rf-btn--secondaire { color: #fff; }
.rf-cta-band .rf-btn--secondaire:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.rf-cta-band__visual { position: relative; display: flex; justify-content: center; align-self: flex-end; }
.rf-cta-band__visual .rf-mascot { width: 310px; max-width: 100%; }
@media (max-width: 781px) {
	.rf-cta-band__visual .rf-mascot { width: 170px; }
}

/* Barre d'action collante (mobile, page formation) */
.rf-sticky-cta {
	position: fixed;
	z-index: 90;
	left: .75rem; right: .75rem;
	bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem .6rem .6rem 1.1rem;
	background: var(--rf-nuit);
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(16, 33, 58, .3);
	transform: translateY(calc(100% + 2rem));
	transition: transform .35s var(--rf-ease);
}
.rf-sticky-cta[hidden] { display: none; }
.rf-sticky-cta.is-visible { transform: none; }
.rf-sticky-cta__text { font-size: .875rem; font-weight: 600; line-height: 1.3; }
.rf-sticky-cta .wp-block-button__link { min-height: 44px; padding: .6rem 1.15rem; white-space: nowrap; }
@media (min-width: 782px) { .rf-sticky-cta { display: none; } }

/* 6. Blog ---------------------------------------------------------------- */

.rf-blog { padding: clamp(2rem, 5vw, 3.5rem) 1rem var(--wp--preset--spacing--60); }
.rf-blog__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 2rem;
	margin-bottom: 1.5rem;
}
.rf-blog__intro h1 { margin-block: 0 1rem; }
.rf-blog__intro .rf-lead { margin-bottom: 1.75rem; }
.rf-blog__mascot { width: 220px; }
@media (max-width: 781px) {
	.rf-blog__hero { grid-template-columns: minmax(0, 1fr); }
	.rf-blog__mascot { display: none; }
}
.rf-blog__head { margin-bottom: 1.5rem; max-width: 760px; }
.rf-blog__head h1 { margin-block: .5rem 1rem; }

/* Recherche */
.rf-search { max-width: min(100%, 34rem); }
.rf-search .wp-block-search__inside-wrapper {
	width: 100% !important;
	display: flex;
	padding: .35rem;
	background: #fff;
	border: 1.5px solid var(--rf-ligne);
	border-radius: 999px;
	box-shadow: var(--rf-shadow);
	transition: border-color .2s;
}
.rf-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--rf-bleu); }
.rf-search .wp-block-search__input {
	border: 0;
	padding: .6rem 1rem;
	font: inherit;
	background: transparent;
	min-width: 0;
	flex: 1;
}
.rf-search .wp-block-search__input:focus { outline: none; }
.rf-search .wp-block-search__button {
	margin: 0;
	padding: .65rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--rf-nuit);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	min-height: 44px;
}
.rf-search .wp-block-search__button:hover { background: var(--rf-bleu-fonce); }

/* Rubriques */
.rf-filters {
	gap: .75rem 1rem;
	align-items: center;
	margin-block: 0 2rem !important;
	padding-block: 1.25rem;
	border-block: 1px solid var(--rf-ligne);
}
.rf-filters__label { margin: 0; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rf-gris); }
.rf-cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rf-cat-pills li { margin: 0; }
.rf-cat-pills .current-cat > a { background: var(--rf-nuit); color: #fff; }

/* Cartes d'articles */
.rf-posts__grid { gap: clamp(1rem, 2.5vw, 1.75rem) !important; }
.rf-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	transition: transform .3s var(--rf-ease), box-shadow .3s var(--rf-ease);
}
.rf-post-card:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow-up); }
.rf-post-card__media { margin: 0 !important; background: var(--rf-pale); }
.rf-post-card__media img { transition: transform .5s var(--rf-ease); }
.rf-post-card:hover .rf-post-card__media img { transform: scale(1.03); }
.rf-post-card__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; padding: 1.25rem 1.35rem 1.35rem; }
.rf-post-card__body > * { margin: 0 !important; }
.rf-post-card__cat { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.rf-post-card__cat .wp-block-post-terms__separator { display: none; }
.rf-post-card__title { font-size: 1.1875rem !important; line-height: 1.3; letter-spacing: -.01em; }
.rf-post-card__title a { color: var(--rf-nuit); text-decoration: none; }
.rf-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rf-post-card__title a:focus-visible { outline: none; }
.rf-post-card:has(.rf-post-card__title a:focus-visible) { outline: 2px solid var(--rf-bleu); outline-offset: 3px; }
.rf-post-card__excerpt p { margin: 0; color: var(--rf-gris); font-size: .9375rem; line-height: 1.55; }
.rf-post-card__meta { margin-top: auto !important; padding-top: .35rem; gap: .35rem 1rem; font-size: .8125rem; color: var(--rf-gris); }
.rf-post-card__meta > * { margin: 0; }

.rf-pagination { margin-top: 3rem; gap: .5rem; font-weight: 700; }
.rf-pagination a, .rf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 .9rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	color: var(--rf-nuit);
	text-decoration: none;
}
.rf-pagination .page-numbers.current { background: var(--rf-nuit); border-color: var(--rf-nuit); color: #fff; }
.rf-empty { padding: 2rem 0; color: var(--rf-gris); }

/* Fil d'Ariane, temps de lecture */
.rf-breadcrumb { margin: 0 0 1rem; font-size: .8125rem; color: var(--rf-gris); }
.rf-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.rf-breadcrumb li { display: inline-flex; align-items: center; gap: .25rem; }
.rf-breadcrumb li + li::before { content: "›"; color: #9AA6B8; }
.rf-breadcrumb a { color: var(--rf-gris); text-decoration: none; }
.rf-breadcrumb a:hover { color: var(--rf-nuit); text-decoration: underline; }
.rf-breadcrumb [aria-current] { color: var(--rf-nuit); font-weight: 600; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-reading-time { display: inline-flex; align-items: center; gap: .35rem; }
.rf-reading-time::before {
	content: ""; width: 14px; height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355627A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 7. Article --------------------------------------------------------------- */

.rf-article { padding: clamp(1.5rem, 4vw, 3rem) 1rem 0; }
.rf-article__head { max-width: 820px; margin-inline: auto !important; }
.rf-article__head > * { margin-block: 0 1rem; }
.rf-chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.rf-chip-list .wp-block-post-terms__separator { display: none; }
.rf-article__title { font-size: clamp(2rem, 5vw, 3rem) !important; line-height: 1.12; }
.rf-article__head .rf-lead p { margin: 0; }
.rf-article__meta { gap: .5rem 1.25rem; font-size: .875rem; color: var(--rf-gris); }
.rf-article__meta > * { margin: 0; }
.rf-article__cover { max-width: 1040px; margin: 1.5rem auto 0 !important; }
.rf-article__cover img { border-radius: var(--rf-r-l); }

.rf-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	max-width: 1040px;
	margin: clamp(2rem, 4vw, 3rem) auto 0 !important;
}
@media (min-width: 1000px) {
	.rf-article__layout { grid-template-columns: 250px minmax(0, 720px); gap: 3.5rem; justify-content: center; }
	/* Article sans sommaire (moins de 2 intertitres) : une seule colonne centrée. */
	.rf-article__layout:not(:has(.rf-toc)) { grid-template-columns: minmax(0, 720px); }
	.rf-article__toc { position: sticky; top: calc(var(--rf-header-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--rf-header-h) - 3rem); overflow: auto; }
}
.rf-article__body { min-width: 0; }

/* Sommaire */
.rf-toc { margin: 0; font-size: .9063rem; }
.rf-toc__box { background: #fff; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-m); }
.rf-toc summary {
	display: flex; align-items: center; justify-content: space-between;
	padding: .9rem 1.1rem;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}
.rf-toc summary::-webkit-details-marker { display: none; }
.rf-toc summary::after { content: "▾"; color: var(--rf-gris); transition: transform .2s; }
.rf-toc__box[open] summary::after { transform: rotate(180deg); }
.rf-toc ol { margin: 0; padding: 0 1.1rem 1rem; list-style: none; counter-reset: toc; }
.rf-toc li { margin: 0; }
.rf-toc a {
	display: block;
	padding: .4rem 0 .4rem .9rem;
	border-left: 2px solid var(--rf-ligne);
	color: var(--rf-gris);
	text-decoration: none;
	line-height: 1.4;
	transition: color .2s, border-color .2s;
}
.rf-toc a:hover { color: var(--rf-nuit); }
.rf-toc a.is-active { color: var(--rf-bleu-fonce); border-left-color: var(--rf-bleu); font-weight: 700; }
.rf-toc .rf-toc__sub a { padding-left: 1.75rem; font-size: .875rem; }

/* Texte des articles et pages */
.rf-prose { font-size: 1.0625rem; line-height: 1.75; }
.rf-prose > * { margin-block: 0 1.25rem; }
.rf-prose h2 { margin-block: 2.75rem 1rem; font-size: clamp(1.5rem, 3.5vw, 1.875rem); scroll-margin-top: calc(var(--rf-header-h) + 1.5rem); }
.rf-prose h3 { margin-block: 2rem .75rem; font-size: 1.25rem; scroll-margin-top: calc(var(--rf-header-h) + 1.5rem); }
.rf-prose > h2:first-child { margin-top: 0; }
.rf-prose ul, .rf-prose ol { padding-left: 1.4rem; }
.rf-prose li { margin-bottom: .45rem; }
.rf-prose li::marker { color: var(--rf-bleu); font-weight: 700; }
.rf-prose figure { margin-block: 2rem; }
.rf-prose figure img { border-radius: var(--rf-r-m); }
.rf-prose figcaption { margin-top: .6rem; font-size: .875rem; color: var(--rf-gris); text-align: center; }
.rf-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.rf-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-m); background: #fff; }
.rf-prose .wp-block-table table { border: 0; }
.rf-prose th, .rf-prose td { padding: .75rem 1rem; border: 0 !important; border-bottom: 1px solid var(--rf-ligne) !important; text-align: left; vertical-align: top; }
.rf-prose tbody tr:last-child td { border-bottom: 0 !important; }
.rf-prose thead th { background: var(--rf-pale); font-weight: 800; border-bottom: 0; }
.rf-prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--rf-bleu); }

/* Encadrés dans les articles (styles de bloc « Astuce » et « Attention ») */
.rf-prose .is-style-rf-astuce, .rf-prose .is-style-rf-attention, .rf-note {
	position: relative;
	padding: 1.1rem 1.25rem 1.1rem 3.5rem;
	border-radius: var(--rf-r-m);
	font-size: 1rem;
	line-height: 1.6;
}
.rf-prose .is-style-rf-astuce, .rf-note--astuce { background: var(--rf-pale); }
.rf-prose .is-style-rf-attention, .rf-note--attention { background: var(--rf-orange-pale); }
.rf-prose .is-style-rf-astuce::before, .rf-prose .is-style-rf-attention::before {
	content: "";
	position: absolute;
	left: 1.1rem; top: 1.15rem;
	width: 1.5rem; height: 1.5rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.rf-prose .is-style-rf-astuce::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.rf-prose .is-style-rf-attention::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4A06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v4M12 17.5v.5'/%3E%3C/svg%3E"); }

/* Emplacement Google AdSense (articles uniquement, éteint par défaut) : hauteur réservée pour éviter les sauts de mise en page. */
.rf-pub { margin: 2.5rem 0; padding: .75rem 0 1rem; border-block: 1px solid var(--rf-ligne); min-height: 290px; }
.rf-pub__label { display: block; margin-bottom: .5rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-gris); }

/* Vidéo YouTube : image + bouton, le lecteur se charge au clic */
.rf-yt { margin: 2rem auto; }
.rf-yt__btn, .rf-yt__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--rf-r-l); overflow: hidden; background: var(--rf-nuit); border: 0; }
.rf-yt--vertical { max-width: 360px; }
.rf-yt--vertical .rf-yt__btn, .rf-yt--vertical .rf-yt__frame, .rf-yt--vertical + .rf-yt__frame { aspect-ratio: 9 / 16; }
.rf-yt__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.rf-yt__btn:hover img { transform: scale(1.03); opacity: .9; }
.rf-yt__play {
	position: absolute; inset: 50% auto auto 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
	border-radius: 14px; background: #e00; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.rf-yt__play::after { content: ""; position: absolute; inset: 50% auto auto 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.rf-yt__btn:focus-visible { outline: 3px solid var(--rf-orange); outline-offset: 3px; }

/* Encart formation en fin d'article */
.rf-inline-cta {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	margin: 3rem 0;
	padding: 1.5rem;
	background: linear-gradient(135deg, var(--rf-pale), #fff);
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
}
.rf-inline-cta img { width: 120px; height: auto; display: block; }
.rf-inline-cta__title { margin: 0 0 .35rem; font-size: 1.25rem; }
.rf-inline-cta p { margin: 0 0 1rem; color: var(--rf-gris); font-size: .9688rem; }
@media (max-width: 520px) {
	.rf-inline-cta { grid-template-columns: 1fr; text-align: left; }
	.rf-inline-cta img { width: 96px; }
}

/* Navigation précédent / suivant */
.rf-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 2rem; }
.rf-postnav > * { margin: 0 !important; }
.rf-postnav .post-navigation-link-previous,
.rf-postnav .post-navigation-link-next {
	padding: 1rem 1.25rem;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-m);
	background: #fff;
	font-size: .9375rem;
}
.rf-postnav .post-navigation-link-next { text-align: right; }
.rf-postnav > :not(:has(a)) { display: none; }
.rf-postnav .post-navigation-link__label { display: block; margin-bottom: .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-gris); }
.rf-postnav a { color: var(--rf-nuit); font-weight: 700; text-decoration: none; }
.rf-postnav a:hover { color: var(--rf-bleu-fonce); text-decoration: underline; }

/* Articles associés */
.rf-related {
	margin-top: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--60);
	border-top: 1px solid var(--rf-ligne);
}
.rf-related__title { margin: 0 0 1.75rem; font-size: var(--wp--preset--font-size--xx-large); }
.rf-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.rf-related .rf-post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 8. Pages ---------------------------------------------------------------- */

.rf-page { padding: clamp(2rem, 5vw, 3.5rem) 1rem var(--wp--preset--spacing--60); }
.rf-page__head { margin-bottom: 2rem; }
.rf-page__head h1 { margin-block: .5rem 0; }
.rf-404__grid { padding-block: clamp(2rem, 5vw, 4rem); }

/* Texte à remplacer avant la mise en ligne : bien visible, en rouge */
.rf-todo {
	padding: .15rem .45rem;
	background: #FDECEC;
	border: 1px dashed #E5484D;
	border-radius: 4px;
	font-weight: 700;
	color: #B42318;
}

/* À propos */
.rf-about-hero__visual { position: relative; padding: 2.5rem 0 0 18%; }
.rf-about-hero__visual::before {
	content: "";
	position: absolute;
	inset: 8% -4% 10% 10%;
	z-index: -1;
	border-radius: 36px;
	background: linear-gradient(160deg, var(--rf-orange-pale), #F8D9AE);
}
.rf-about-hero__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--rf-shadow-up); outline: 8px solid #fff; }
.rf-about-hero__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.rf-about-hero__mascot { position: absolute; left: -2%; bottom: 0; z-index: 2; width: 44%; margin: 0; filter: drop-shadow(0 16px 22px rgba(16, 33, 58, .22)); }
.rf-about-hero__bubble { position: absolute; top: 0; left: 0; z-index: 3; }
@media (min-width: 782px) { .rf-about-hero__visual { width: 100%; max-width: 520px; margin-left: auto; } }
@media (max-width: 781px) {
	.rf-about-hero__visual { padding: 3rem 0 0 16%; }
	.rf-about-hero__mascot { width: 54%; left: -6%; }
}

.rf-story__visual { position: relative; }
.rf-story__photo { border-radius: 24px; overflow: hidden; box-shadow: var(--rf-shadow-up); }
.rf-story__photo img { aspect-ratio: 4 / 3; }
.rf-story__spec { left: 1rem; bottom: 1rem; }
.rf-story__quote {
	margin: 1.5rem 0 0;
	padding: 1.1rem 1.25rem;
	border-left: 4px solid var(--rf-orange);
	border-radius: 0 14px 14px 0;
	background: #fff;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--rf-nuit);
}
.rf-story__quote p { margin: 0 0 .5rem; }
.rf-story__quote cite { font-size: .875rem; font-style: normal; font-weight: 700; color: var(--rf-bleu-fonce); }

.rf-partners__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .5rem 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-l); }
.rf-partners__inner .rf-eyebrow { margin: 0; }
.rf-partners__intro { grid-column: 1; margin: 0; color: var(--rf-gris); font-size: .9375rem; }
.rf-partners__list { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rf-partners__list li { padding: 1rem; border-radius: 14px; background: var(--rf-pale); font-size: .875rem; color: var(--rf-gris); }
.rf-partners__list strong { display: block; font-size: 1.125rem; color: var(--rf-nuit); }
@media (max-width: 781px) { .rf-partners__inner { grid-template-columns: 1fr; } .rf-partners__list { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; } }

.rf-value__num { margin: 0 0 .75rem; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--rf-orange); }
.rf-value p:not(.rf-value__num) { color: var(--rf-gris); }

.rf-team__grid.rf-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(1rem, 3vw, 2rem); max-width: 980px; margin-inline: auto !important; }
@media (max-width: 781px) { .rf-team__grid.rf-team__grid { grid-template-columns: minmax(0, 320px) !important; justify-content: center; } }
.rf-member { text-align: center; }
.rf-member__photo { margin: 0 0 1rem; border-radius: 22px; overflow: hidden; background: #DE932B; }
.rf-member__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform .5s var(--rf-ease); }
.rf-member:hover .rf-member__photo img { transform: scale(1.03); }
.rf-member__name { margin: 0 0 .25rem; font-size: 1.375rem; }
.rf-member__role { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #F2B55E; }
.rf-member__bio { margin: 0; color: #B9C5D9; font-size: .9375rem; }

/* Contact */
.rf-contact-page { padding-top: clamp(2rem, 3.5vw, 3.5rem) !important; background: linear-gradient(180deg, var(--rf-pale) 0, var(--rf-fond) 360px); }
.rf-contact-page__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.rf-contact-page__head > * { max-width: 720px; }
.rf-contact-page__head h1 { margin-block: .25rem 1rem; }
.rf-contact-page__grid { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: flex-start; }
.rf-contact-cards { display: grid; gap: .75rem; margin-bottom: 1rem; }
.rf-contact-card {
	position: relative;
	margin: 0;
	padding: 1rem 1.1rem 1rem 4.25rem;
	min-height: 72px;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: 16px;
	box-shadow: var(--rf-shadow);
	font-size: 1rem;
	line-height: 1.45;
}
.rf-contact-card::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
	border-radius: 12px;
	background: var(--rf-pale) var(--rf-ico) center / 22px no-repeat;
}
.rf-contact-card strong { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-gris); }
.rf-contact-card a { font-weight: 700; color: var(--rf-bleu-fonce); word-break: break-word; }
.rf-contact-card--email { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.rf-contact-card--tel { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h3.5l1.7 4.3-2.2 1.4a11 11 0 0 0 6.8 6.8l1.4-2.2 4.3 1.7V19a1.5 1.5 0 0 1-1.5 1.5A16.5 16.5 0 0 1 3.5 5 1.5 1.5 0 0 1 5 3.5z'/%3E%3C/svg%3E"); }
.rf-contact-card--whatsapp { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8.5 8.5 0 1 1 8 19z'/%3E%3Cpath d='M9 9.5c.3 2.2 2.3 4.2 4.5 4.5l1-1.2 2 .9-.4 1.6c-3.6.2-7.2-3.4-7-7l1.6-.4.9 2z'/%3E%3C/svg%3E"); }
.rf-contact-card--adresse { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.rf-contact-faq { padding: 1.25rem; border: 1px dashed #C9D6EA; border-radius: 16px; }
.rf-contact-faq__title { margin: 0 0 .5rem; font-weight: 700; font-size: .9375rem; }
.rf-contact-faq__list { margin: 0; padding: 0; list-style: none; }
.rf-contact-faq__list li { padding: .35rem 0; }
.rf-contact-faq__list a { font-weight: 600; color: var(--rf-bleu-fonce); text-underline-offset: 3px; }
.rf-contact-faq__list a::after { content: " →"; }
/* Colonne gauche : la mascotte dans une carte, puis les coordonnées. Formulaire à droite. */
.rf-contact-visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	min-height: 300px;
	margin-bottom: 1rem;
	padding: 3.5rem 1rem 0;
	overflow: hidden;
	border-radius: 24px;
	background:
		linear-gradient(rgba(59, 111, 180, .08) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(59, 111, 180, .08) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(160deg, #DCE6F4, var(--rf-pale));
}
.rf-contact-visual .rf-mascot { width: 340px; margin: 0; }
.rf-contact-visual__bubble { position: absolute; top: 1rem; left: 1rem; z-index: 2; max-width: 15rem; }
.rf-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rf-contact-card--email, .rf-contact-card--adresse { grid-column: 1 / -1; }
.rf-contact-page__main .rf-form { box-shadow: var(--rf-shadow-up); }
@media (min-width: 782px) {
	.rf-contact-page__main { position: sticky; top: calc(var(--rf-header-h) + 1.5rem); }
}
@media (max-width: 781px) {
	.rf-contact-visual { min-height: 0; padding-top: 4.25rem; }
	.rf-contact-visual .rf-mascot { width: min(78%, 300px); }
	.rf-contact-visual__bubble { right: 1rem; max-width: none; font-size: .875rem; }
	.rf-contact-cards { grid-template-columns: minmax(0, 1fr); }
	.rf-contact-page__grid { gap: 1rem; }
	/* Mobile : mascotte, coordonnées, formulaire, puis les raccourcis FAQ. */
	.rf-contact-page__aside { display: contents; }
	.rf-contact-visual { order: 1; margin: 0; }
	.rf-contact-cards { order: 2; margin: 0; }
	.rf-contact-page__main { order: 3; margin-top: .5rem; }
	.rf-contact-faq { order: 4; }
}

.rf-form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 4vw, 2rem); background: #fff; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-l); box-shadow: var(--rf-shadow); }
.rf-form__row { display: grid; gap: .4rem; }
.rf-form label { font-weight: 700; font-size: .9375rem; }
.rf-form .rf-form__hint { font-weight: 400; color: var(--rf-gris); font-size: .8125rem; }
.rf-form input[type="text"], .rf-form input[type="email"], .rf-form textarea {
	width: 100%;
	padding: .8rem 1rem;
	font: inherit;
	color: var(--rf-nuit);
	background: var(--rf-fond);
	border: 1.5px solid var(--rf-ligne);
	border-radius: 12px;
	transition: border-color .2s, background-color .2s;
	box-sizing: border-box;
}
.rf-form input:focus, .rf-form textarea:focus { outline: none; border-color: var(--rf-bleu); background: #fff; }
.rf-form textarea { min-height: 9rem; resize: vertical; }
.rf-form__consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--rf-gris); }
.rf-form__consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--rf-bleu); flex-shrink: 0; }
.rf-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rf-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.rf-alert { padding: 1rem 1.25rem; border-radius: var(--rf-r-m); font-weight: 600; }
.rf-alert--ok { background: #E6F4EA; color: #1E5631; }
.rf-alert--erreur { background: #FDECEA; color: #8A1C12; }

/* 9. Pied de page ------------------------------------------------------- */

.rf-site-footer { margin-top: 0 !important; }
.rf-footer {
	padding: clamp(3rem, 7vw, 4.5rem) 1rem 1.5rem;
	background: var(--rf-nuit);
	color: #C9D4E6;
	font-size: .9375rem;
}
.rf-footer a { color: #fff; text-decoration: none; }
.rf-footer a:hover { text-decoration: underline; }
.rf-footer__grid { gap: 2rem; }
.rf-footer__logo { margin: 0 0 1rem; display: inline-block; } /* logo PNG transparent, sans cadre blanc */
.rf-footer__logo img { display: block; width: 130px; height: auto; }
.rf-footer__brand p { max-width: 22rem; }
.rf-footer__title { margin: 0 0 1rem; font-size: .8125rem !important; text-transform: uppercase; letter-spacing: .08em; color: #8EA0BC; font-weight: 700; }
.rf-footer__links { list-style: none; padding: 0; margin: 0; }
.rf-footer__links li { margin-bottom: .55rem; }
.rf-social { gap: .5rem; margin-top: 1.25rem; }
.rf-social .wp-social-link { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.rf-social .wp-social-link a { padding: .55rem; }
.rf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-top: 3rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8125rem;
	color: #8EA0BC;
}
.rf-footer__bottom p { margin: 0; }
@media (max-width: 781px) {
	.rf-footer__grid { display: grid !important; grid-template-columns: 1fr 1fr; }
	.rf-footer__brand { grid-column: 1 / -1; }
}

/* 10. Signature « atelier de précision » ------------------------------------
   Photos, étiquettes techniques, diagnostic avec vue éclatée, section sombre, défis.
   -------------------------------------------------------------------------- */

/* Photo responsive (bloc reparfacile/photo) */
.rf-photo { margin: 0; }
.rf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-photo figcaption { margin: 0; font-size: .75rem; color: var(--rf-gris); }

/* Étiquette technique façon fiche de réparation */
.rf-spec {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
	padding: .45rem .8rem .45rem .45rem;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: 999px;
	box-shadow: var(--rf-shadow-up);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--rf-nuit);
	white-space: nowrap;
}
.rf-spec span {
	padding: .2rem .55rem;
	border-radius: 999px;
	background: var(--rf-orange);
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Quelle est ta panne ? */
.rf-diag-section {
	background-color: var(--rf-pale);
	background-image:
		linear-gradient(rgba(59, 111, 180, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(59, 111, 180, .07) 1px, transparent 1px);
	background-size: 32px 32px;
}
.rf-diag-section__head { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.rf-diag-section__head .rf-mascot { flex: 0 0 auto; width: clamp(96px, 14vw, 150px); }
.rf-diag-section__head h2 { margin-bottom: .5rem; }
.rf-diag-section__head .rf-lead { margin: 0; }

.rf-diag {
	display: grid;
	grid-template-columns: minmax(0, 290px) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
	padding: clamp(1rem, 3vw, 2rem);
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: 28px;
	box-shadow: var(--rf-shadow-up);
}
.rf-diag__choices { display: grid; gap: .5rem; }
.rf-diag__choice {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: 100%;
	min-height: 52px;
	padding: .5rem .9rem .5rem .5rem;
	background: #fff;
	border: 1.5px solid var(--rf-ligne);
	border-radius: 14px;
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--rf-nuit);
	text-align: left;
	cursor: pointer;
	transition: border-color .2s var(--rf-ease), background-color .2s var(--rf-ease), transform .2s var(--rf-ease);
}
.rf-diag__choice:hover { border-color: var(--rf-bleu); transform: translateX(2px); }
.rf-diag__choice.is-active { border-color: var(--rf-orange); background: var(--rf-orange-pale); font-weight: 700; }
.rf-diag__ico {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--rf-pale) var(--rf-ico) center / 22px no-repeat;
}
.rf-diag__choice.is-active .rf-diag__ico { background-color: #fff; }
.rf-diag__choice--charge { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M13 2 5 13.5h6L10 22l8-11.5h-6z'/%3E%3C/svg%3E"); }
.rf-diag__choice--batterie { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='18' rx='2.5'/%3E%3Cpath d='M10 2h4M9.5 17.5h5'/%3E%3C/svg%3E"); }
.rf-diag__choice--ecran { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M11 6l2 3.5-2 2.5 2 3.5'/%3E%3C/svg%3E"); }
.rf-diag__choice--son { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6'/%3E%3C/svg%3E"); }
.rf-diag__choice--sim { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h8.5L19 7v14.5H6z'/%3E%3Crect x='9' y='11' width='7' height='7' rx='1.2'/%3E%3C/svg%3E"); }
.rf-diag__choice--allumage { --rf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5794' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='M6.8 6.5a7.5 7.5 0 1 0 10.4 0'/%3E%3C/svg%3E"); }

/* Vue éclatée : 5 couches empilées en 3D, écartées quand le bloc entre à l'écran */
.rf-diag__stage { display: grid; justify-items: center; gap: 1rem; }
.rf-phone { display: grid; place-items: center; width: 100%; height: 340px; perspective: 1400px; }
.rf-phone__stack {
	--gap: 7px;
	position: relative;
	width: 140px;
	height: 280px;
	transform: rotateX(56deg) rotateZ(-38deg);
	transform-style: preserve-3d;
}
.rf-diag.is-exploded .rf-phone__stack { --gap: 40px; }
/* Mobile : le téléphone ouvert monte vers le haut ; on lui réserve la place pour qu'il ne touche pas les choix. */
@media (max-width: 781px) {
	.rf-diag__stage { margin-top: 4rem; }
	.rf-phone { height: 360px; }
	.rf-diag.is-exploded .rf-phone__stack { --gap: 24px; }
}
.rf-phone__layer {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	transform: translateZ(calc(var(--i) * var(--gap)));
	transition: transform .9s var(--rf-ease), opacity .3s var(--rf-ease), box-shadow .3s var(--rf-ease), outline-color .3s var(--rf-ease);
	outline: 3px solid transparent;
	outline-offset: 2px;
}
.rf-phone__layer span {
	position: absolute;
	top: 8px;
	left: 8px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	font-size: .6875rem;
	font-weight: 800;
	color: var(--rf-nuit);
	transform: rotateZ(38deg);
}
.rf-phone__layer--ecran {
	background: linear-gradient(150deg, #2B4C80 0%, #10213A 55%, #1C3560 100%);
	border: 4px solid #0B1626;
	box-shadow: inset 18px 0 30px -18px rgba(255, 255, 255, .35);
}
.rf-phone__layer--batterie {
	inset: 16% 16% 34% 16%;
	border-radius: 10px;
	background: linear-gradient(135deg, #F0B158, var(--rf-orange));
	box-shadow: inset 0 0 0 2px rgba(16, 33, 58, .15);
}
.rf-phone__layer--carte-mere {
	inset: 4% 9% 62% 9%;
	border-radius: 12px;
	background:
		linear-gradient(#10213A, #10213A) 22% 30% / 26% 30% no-repeat,
		linear-gradient(#10213A, #10213A) 72% 40% / 18% 22% no-repeat,
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 9px),
		var(--rf-bleu);
}
.rf-phone__layer--connecteur {
	inset: 85% 24% 3% 24%;
	border-radius: 8px;
	background: repeating-linear-gradient(90deg, #8D99AE 0 6px, #6B7890 6px 9px);
}
.rf-phone__layer--connecteur span, .rf-phone__layer--batterie span, .rf-phone__layer--carte-mere span { top: 4px; left: 4px; }
.rf-phone__layer--coque {
	background:
		radial-gradient(circle at 26% 12%, #10213A 0 9px, #3A4659 10px 13px, transparent 14px),
		radial-gradient(circle at 26% 24%, #10213A 0 9px, #3A4659 10px 13px, transparent 14px),
		linear-gradient(160deg, #F3F6FA, #D5DDE9);
	border: 2px solid #C6D0DE;
}
.rf-diag[data-piece] .rf-phone__layer { opacity: .6; }
.rf-diag[data-piece="ecran"] .rf-phone__layer--ecran,
.rf-diag[data-piece="batterie"] .rf-phone__layer--batterie,
.rf-diag[data-piece="carte-mere"] .rf-phone__layer--carte-mere,
.rf-diag[data-piece="connecteur"] .rf-phone__layer--connecteur,
.rf-diag[data-piece="coque"] .rf-phone__layer--coque {
	opacity: 1;
	outline-color: var(--rf-orange);
	box-shadow: 0 0 0 6px rgba(222, 147, 43, .25), 0 0 40px rgba(222, 147, 43, .55);
}
.rf-phone__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; margin: 0; padding: 0; list-style: none; font-size: .75rem; color: var(--rf-gris); }
.rf-phone__legend li { display: inline-flex; align-items: center; gap: .35rem; }
.rf-phone__legend span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--rf-pale); font-size: .625rem; font-weight: 800; color: var(--rf-nuit); }
.rf-diag[data-piece="ecran"] .rf-phone__legend [data-piece="ecran"],
.rf-diag[data-piece="batterie"] .rf-phone__legend [data-piece="batterie"],
.rf-diag[data-piece="carte-mere"] .rf-phone__legend [data-piece="carte-mere"],
.rf-diag[data-piece="connecteur"] .rf-phone__legend [data-piece="connecteur"],
.rf-diag[data-piece="coque"] .rf-phone__legend [data-piece="coque"] { color: var(--rf-nuit); font-weight: 700; }
.rf-diag[data-piece="ecran"] .rf-phone__legend [data-piece="ecran"] span,
.rf-diag[data-piece="batterie"] .rf-phone__legend [data-piece="batterie"] span,
.rf-diag[data-piece="carte-mere"] .rf-phone__legend [data-piece="carte-mere"] span,
.rf-diag[data-piece="connecteur"] .rf-phone__legend [data-piece="connecteur"] span,
.rf-diag[data-piece="coque"] .rf-phone__legend [data-piece="coque"] span { background: var(--rf-orange); }

.js .rf-diag__panel:not(.is-active) { display: none; }
html:not(.js) .rf-diag__choices, html:not(.js) .rf-diag__stage { display: none; }
html:not(.js) .rf-diag { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.rf-diag__panel:focus { outline: none; }
.rf-diag__piece { margin: 0 0 .25rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9A5B07; }
.rf-diag__title { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--x-large, 1.5rem); }
.rf-diag__label { margin: 0 0 .5rem; font-size: .875rem; font-weight: 700; }
.rf-diag__causes { counter-reset: rf-cause; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.rf-diag__causes li { counter-increment: rf-cause; position: relative; padding: .35rem 0 .35rem 2.1rem; font-size: .9688rem; color: var(--rf-gris); }
.rf-diag__causes li::before {
	content: counter(rf-cause);
	position: absolute;
	left: 0;
	top: .3rem;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--rf-pale);
	font-size: .75rem;
	font-weight: 800;
	color: var(--rf-bleu-fonce);
}
.rf-diag__tip { margin: 0 0 1.25rem; padding: .85rem 1rem; border-left: 4px solid var(--rf-orange); border-radius: 0 12px 12px 0; background: var(--rf-orange-pale); font-size: .9375rem; }
.rf-diag__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.rf-diag__module { margin: 0; padding-top: 1rem; border-top: 1px dashed var(--rf-ligne); font-size: .9375rem; }
.rf-diag__module span { display: block; color: var(--rf-gris); font-size: .875rem; }
.rf-diag__module a { font-weight: 700; color: var(--rf-bleu-fonce); text-underline-offset: 3px; }
.rf-diag__module a::after { content: " →"; }

@media (max-width: 1099px) {
	.rf-diag { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.rf-diag__choices { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rf-phone { height: 300px; }
}
@media (max-width: 699px) {
	.rf-diag-section__head { align-items: flex-start; }
	.rf-diag { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
	.rf-diag__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rf-diag__choice { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .6rem .7rem; font-size: .875rem; line-height: 1.25; }
	.rf-diag__choice:hover { transform: none; }
	.rf-phone { height: 210px; }
	.rf-phone__stack { width: 96px; height: 192px; }
	.rf-diag.is-exploded .rf-phone__stack { --gap: 26px; }
	.rf-phone__layer { border-radius: 16px; }
	.rf-phone__layer span { display: none; }
}

/* La formation en bref : écran d'ordinateur */
.rf-overview__visual { position: relative; display: block; padding: 0 0 2rem 8%; }
.rf-device { position: relative; padding: 10px 10px 0; background: #0E1A2D; border-radius: 18px 18px 8px 8px; box-shadow: var(--rf-shadow-up); }
.rf-device::after {
	content: "";
	position: absolute;
	left: -6%;
	right: -6%;
	bottom: -14px;
	height: 14px;
	border-radius: 2px 2px 16px 16px;
	background: linear-gradient(#DCE2EB, #A9B4C4);
}
.rf-device__screen img { border-radius: 8px; aspect-ratio: 16 / 9; }
.rf-device__screen figcaption { padding: .3rem 0 .35rem; text-align: center; color: #8FA0BA; font-size: .6875rem; }
.rf-overview__visual .rf-overview__mascot {
	position: absolute;
	left: -6%;
	bottom: 2rem;
	z-index: 2;
	width: 34%;
	padding: 0;
	background: none;
	box-shadow: none;
	filter: drop-shadow(0 14px 18px rgba(16, 33, 58, .2));
}
@media (max-width: 781px) {
	.rf-overview__visual { padding: 0 0 2.5rem 14%; }
	.rf-overview__visual .rf-overview__mascot { left: -2%; bottom: 2.5rem; width: 32%; }
}

/* Section sombre « atelier » */
.rf-section--nuit {
	position: relative;
	color: #fff;
	background-color: var(--rf-nuit);
	background-image:
		radial-gradient(ellipse at 85% 0%, rgba(59, 111, 180, .45), transparent 55%),
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: auto, 32px 32px, 32px 32px;
}
.rf-section--nuit :where(h2, h3) { color: #fff; }
.rf-section--nuit .rf-eyebrow { color: #F2B55E; }
.rf-section--nuit .rf-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.rf-section--nuit .rf-skill p { color: #B9C5D9; }
.rf-section--nuit .rf-ico::before { background-color: #fff; }

.rf-mosaic {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	grid-template-rows: 190px 190px;
	gap: 1rem;
	margin-bottom: var(--wp--preset--spacing--50);
}
.rf-mosaic .rf-photo { border-radius: 18px; overflow: hidden; }
.rf-mosaic__a { grid-row: 1 / 3; }
.rf-mosaic__b { grid-column: 2 / 4; }
@media (max-width: 781px) {
	.rf-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px; gap: .75rem; }
	.rf-mosaic__a { grid-row: auto; grid-column: 1 / -1; }
	.rf-mosaic__b { display: none; }
}

/* Défis */
.rf-quiz-section__social { margin: 0; color: var(--rf-gris); font-size: .9375rem; }
.rf-quiz-section__social a { font-weight: 700; color: var(--rf-bleu-fonce); }
.rf-quiz__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(272px, 1fr);
	gap: 1.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding: .25rem .25rem 1rem;
	margin-inline: -.25rem;
}
.rf-quiz__track:focus-visible { outline: 2px solid var(--rf-bleu); }
.rf-quiz__card {
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
	box-shadow: var(--rf-shadow);
	overflow: hidden;
}
.rf-quiz__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.rf-quiz__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.25rem; }
.rf-quiz__q { margin: 0 0 .85rem; font-size: 1.0625rem; line-height: 1.35; }
.rf-quiz__opts { display: grid; gap: .45rem; }
.rf-quiz__opt {
	display: flex;
	align-items: center;
	gap: .6rem;
	min-height: 44px;
	padding: .4rem .7rem .4rem .4rem;
	background: #fff;
	border: 1.5px solid var(--rf-ligne);
	border-radius: 12px;
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	color: var(--rf-nuit);
	text-align: left;
	cursor: pointer;
	transition: border-color .2s var(--rf-ease), background-color .2s var(--rf-ease);
}
.rf-quiz__opt:hover { border-color: var(--rf-bleu); }
.rf-quiz__letter { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--rf-pale); font-weight: 800; }
.rf-quiz__opt.is-good { border-color: #2E8B57; background: #EAF6EF; }
.rf-quiz__opt.is-good .rf-quiz__letter { background: #2E8B57; color: #fff; }
.rf-quiz__opt.is-bad { border-color: #C2413B; background: #FCEDEC; }
.rf-quiz__opt.is-bad .rf-quiz__letter { background: #C2413B; color: #fff; }
.rf-quiz__feedback { margin: .75rem 0 0; font-size: .9375rem; font-weight: 700; }
.rf-quiz__feedback:empty { display: none; }
.rf-quiz__answer { margin-top: auto; padding-top: .75rem; }
.rf-quiz__answer summary { cursor: pointer; font-size: .875rem; font-weight: 700; color: var(--rf-bleu-fonce); }
.rf-quiz__answer p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--rf-gris); }
.rf-quiz__answer p strong { color: var(--rf-nuit); }

/* Programme : parcours en 8 étapes (la ligne se remplit pendant la lecture des modules) */
.rf-route {
	--p: 0;
	position: relative;
	display: grid;
	grid-template-columns: 5fr 3fr;
	gap: .5rem 1rem;
	margin-bottom: var(--wp--preset--spacing--50);
	padding: 1.25rem 1.5rem 1.5rem;
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
	box-shadow: var(--rf-shadow);
}
.rf-route__phase { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-bleu-fonce); }
.rf-route__phase--business { color: #9A5B07; }
.rf-route__steps {
	position: relative;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.rf-route__steps::before, .rf-route__steps::after {
	content: "";
	position: absolute;
	top: 19px;
	left: 6.25%;
	height: 4px;
	border-radius: 4px;
}
.rf-route__steps::before { right: 6.25%; background: var(--rf-ligne); }
.rf-route__steps::after { width: calc(87.5% * var(--p)); background: var(--rf-bleu); transition: width .2s linear; }
.rf-route__step a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 .25rem; text-align: center; text-decoration: none; color: var(--rf-nuit); }
.rf-route__num {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--rf-pale);
	box-shadow: 0 0 0 1px var(--rf-ligne);
	font-weight: 800;
	color: var(--rf-bleu-fonce);
	transition: background-color .2s var(--rf-ease), color .2s var(--rf-ease), transform .2s var(--rf-ease);
}
.rf-route__step--business .rf-route__num { background: var(--rf-orange-pale); color: #7A4A06; }
.rf-route__step a:hover .rf-route__num { transform: scale(1.08); }
.rf-route__step.is-done .rf-route__num { background: var(--rf-bleu); color: #fff; }
.rf-route__step--business.is-done .rf-route__num { background: var(--rf-orange); color: var(--rf-nuit); }
.rf-route__label { font-size: .8125rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 899px) {
	.rf-route { grid-template-columns: 1fr; padding: 1rem; overflow-x: auto; }
	.rf-route__phase--business { display: none; }
	.rf-route__steps { grid-template-columns: repeat(8, 92px); }
	.rf-route__steps::before { right: 46px; left: 46px; }
	.rf-route__steps::after { left: 46px; width: calc((736px - 92px) * var(--p)); }
}

/* Témoignages vidéo : format story, chargées seulement au clic */
.rf-videos { margin-bottom: var(--wp--preset--spacing--50); }
.rf-vids {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(170px, 1fr);
	gap: 1rem;
	margin: 0 -.25rem;
	padding: .25rem .25rem 1rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
}
.rf-vids:focus-visible { outline: 2px solid var(--rf-bleu); }
.rf-vid { position: relative; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--rf-nuit); box-shadow: var(--rf-shadow-up); }
.rf-vid video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 982; object-fit: cover; background: var(--rf-nuit); }
.rf-vid__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	border: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(16, 33, 58, .55));
	cursor: pointer;
}
.rf-vid__play::before {
	content: "";
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--rf-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%2310213A'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
	box-shadow: 0 10px 30px rgba(16, 33, 58, .35);
	transition: transform .2s var(--rf-ease);
}
.rf-vid__play:hover::before, .rf-vid__play:focus-visible::before { transform: scale(1.08); }
.rf-vid__play[hidden] { display: none; }
@media (max-width: 781px) { .rf-vids { grid-auto-columns: 62%; } }

.rf-testimonials__sub { margin: 0 0 1.25rem; font-size: 1.375rem; }
.rf-testimonial--todo { background: #FFF6F5; border: 2px dashed #E5484D; box-shadow: none; }
.rf-testimonial--todo::before { color: #E5484D; }

/* Mascotte : tailles fixes (jamais en % d'un parent qui s'adapte au contenu), un peu plus grandes */
.rf-mascot { flex-shrink: 0; max-width: 100%; }
.rf-diag-section__head .rf-mascot { width: clamp(140px, 17vw, 230px); }
.rf-testimonials__visual .rf-mascot { width: 290px; margin: 0 0 -1px auto; }
.rf-program__visual .rf-mascot { width: 270px; margin: 0 0 0 auto; }
.rf-faq__mascot { width: 270px; }
.rf-demo { position: relative; overflow: hidden; }
.rf-demo__visual { align-self: flex-end !important; margin-bottom: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); }
.rf-demo__visual .rf-mascot { width: 290px; margin-inline: auto; }
.rf-blog__mascot { width: 300px; }
@media (max-width: 781px) {
	.rf-demo__visual { order: 2; margin-top: 1rem; }
	.rf-demo__visual .rf-mascot { width: 190px; }
}

/* Formulaire d'accès démo */
.rf-demo-form { margin-top: 1.25rem; }
.rf-demo-form .rf-alert { margin: 0 0 .75rem; }
.rf-demo-form__form { display: grid; gap: .75rem; }
.rf-demo-form__row { display: flex; gap: .5rem; padding: .375rem; background: #fff; border: 1.5px solid #F0D3A8; border-radius: 999px; box-shadow: var(--rf-shadow); }
.rf-demo-form__row input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--rf-nuit); }
.rf-demo-form__row input:focus { outline: none; }
.rf-demo-form__row:focus-within { border-color: var(--rf-bleu); }
.rf-demo-form__row .wp-block-button__link { flex: 0 0 auto; }
@media (max-width: 599px) {
	.rf-demo-form__row { flex-direction: column; border-radius: 18px; }
	.rf-demo-form__row input { min-height: 48px; }
}

/* Note Google et avis Google mis en avant */
.rf-google { margin: 1rem 0 0; }
.rf-google a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .55rem 1rem; background: #fff; border: 1px solid var(--rf-ligne); border-radius: 999px; box-shadow: var(--rf-shadow); color: var(--rf-nuit); text-decoration: none; font-size: .9375rem; }
.rf-google__stars { color: #F4B400; letter-spacing: .05em; }
.rf-google__cta { color: var(--rf-bleu-fonce); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rf-testimonial--google { grid-column: 1 / -1; border-left: 4px solid #F4B400; }
.rf-testimonial--google p { font-size: 1.125rem; }
.rf-testimonial--google cite::before { content: "★★★★★ "; color: #F4B400; }

/* Mascotte debout (version 3) : en pied, posée sur le bord bas de la photo */
.rf-mascot--hero.rf-mascot--debout { width: 36%; left: -10%; bottom: 2.5rem; }
@media (max-width: 781px) { .rf-mascot--hero.rf-mascot--debout { width: 30%; left: -2%; bottom: 1rem; } }

/* Mascottes : les poses sont coupées à la taille. Règle unique pour tout le site :
   - mascotte « libre » (à côté d'un titre, d'un écran, d'une photo) : le bas s'efface en fondu, aucune coupe nette ;
   - mascotte « posée » sur le bord d'une carte ou d'un bandeau : pas de fondu, la coupe touche exactement le bord. */
.rf-mascot img {
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
	mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}
.rf-cta-band__visual .rf-mascot img,
.rf-contact-visual .rf-mascot img,
.rf-format__visual .rf-mascot img,
.rf-path .rf-path__mascot img,
.rf-demo__visual .rf-mascot img,
.rf-mascot--debout img {
	-webkit-mask-image: none;
	mask-image: none;
}
.rf-cta-band__visual, .rf-demo__visual { line-height: 0; }
.rf-cta-band__visual .rf-mascot, .rf-demo__visual .rf-mascot, .rf-contact-visual .rf-mascot { margin-bottom: 0 !important; }
/* Encart démo : la carte n'a plus de marge en bas, la mascotte s'y pose ; le texte garde sa marge. */
.rf-demo { padding-bottom: 0; align-items: stretch !important; }
.rf-demo > .wp-block-column:not(.rf-demo__visual) { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); align-self: center !important; }
.rf-demo__visual { align-self: flex-end !important; margin-bottom: 0 !important; display: flex; justify-content: center; }
@media (max-width: 781px) {
	.rf-demo__visual { margin-top: 0 !important; }
	.rf-demo > .wp-block-column:not(.rf-demo__visual) { padding-bottom: .5rem; }
}

/* Bouton WhatsApp flottant (sans extension) */
.rf-wa {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: inline-flex; align-items: center; gap: .5rem;
	height: 56px; padding: 0 1.1rem 0 .85rem;
	border-radius: 999px;
	background: #25d366; color: #fff;
	font-weight: 700; font-size: .9375rem; text-decoration: none;
	box-shadow: 0 10px 28px -8px rgba(16, 33, 58, .45);
	transition: transform .2s var(--rf-ease), box-shadow .2s;
}
.rf-wa:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 32px -8px rgba(16, 33, 58, .5); }
.rf-wa:focus-visible { outline: 3px solid var(--rf-nuit); outline-offset: 3px; }
@media (max-width: 599px) {
	.rf-wa { width: 56px; padding: 0; justify-content: center; }
	.rf-wa__label { display: none; }
}
.has-modal-open .rf-wa { display: none; } /* menu mobile ouvert */

/* 10 bis. Boutique (WooCommerce) --------------------------------------------
   Les modèles WooCommerce reprennent l'en-tête et le pied de page du thème ;
   on aligne ici les espacements, les cartes et la fiche produit sur le reste du site. */

.woocommerce-page .wp-site-blocks > main,
.woocommerce-page .wp-site-blocks > .wp-block-group:not(.rf-site-header):not(.rf-site-footer) { padding-top: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.woocommerce-page .woocommerce-breadcrumb, .woocommerce-page .wc-block-breadcrumbs { font-size: .875rem; color: var(--rf-gris); margin-bottom: 1rem; }
.woocommerce-page .woocommerce-breadcrumb a, .woocommerce-page .wc-block-breadcrumbs a { color: var(--rf-gris); }

/* Liste des produits */
.wc-block-product {
	background: #fff;
	border: 1px solid var(--rf-ligne);
	border-radius: var(--rf-r-l);
	padding: 0 0 1.25rem;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.wc-block-product:hover { box-shadow: 0 14px 34px -18px rgba(16, 33, 58, .35); transform: translateY(-2px); }
.wc-block-product .wc-block-components-product-image { margin-bottom: 1rem !important; border-bottom: 1px solid var(--rf-ligne); }
.wc-block-product .wp-block-post-title { padding-inline: 1rem; font-size: 1rem !important; line-height: 1.35; }
.wc-block-product .wp-block-post-title a { color: var(--rf-nuit); text-decoration: none; }
.wc-block-product .wp-block-post-title a:hover { color: var(--rf-bleu-fonce); }
.wc-block-product .wc-block-components-product-price { font-weight: 700; color: var(--rf-bleu-fonce); }
.wc-block-product .wc-block-components-product-button { padding-inline: 1rem; box-sizing: border-box; }
.wc-block-product .wc-block-components-product-button .wp-block-button__link { max-width: 100%; white-space: normal; }
@media (max-width: 600px) {
	.wc-block-product .wp-block-post-title { font-size: .9375rem !important; padding-inline: .75rem; }
	.wc-block-product .wc-block-components-product-button { padding-inline: .75rem; }
	.wc-block-product .wc-block-components-product-button .wp-block-button__link { width: 100%; padding: .65rem .5rem; font-size: .875rem; }
}

/* Fiche produit */
.single-product .wp-block-post-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important; line-height: 1.15; }
.single-product .wp-block-woocommerce-product-price { font-size: 1.6rem; font-weight: 800; color: var(--rf-bleu-fonce); }
.woocommerce-product-gallery { background: #fff; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-l); overflow: hidden; }
.woocommerce-product-gallery .flex-control-thumbs { padding: .75rem !important; gap: .5rem; display: flex; }
.woocommerce-product-gallery .flex-control-thumbs li { border-radius: var(--rf-r-m); overflow: hidden; border: 1px solid var(--rf-ligne); }
.wp-block-woocommerce-product-meta { font-size: .875rem; color: var(--rf-gris); }
.woocommerce-Tabs-panel--description > h2:first-child { display: none; } /* titre « Description » répété sous l'onglet */
.woocommerce-tabs .tabs { border-bottom: 1px solid var(--rf-ligne); }
.single-product .woocommerce-Tabs-panel { max-width: 760px; }
.woocommerce .quantity input.qty { border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-m); min-height: 46px; }

/* Panier, commande, compte */
.wc-block-cart, .wc-block-checkout, .woocommerce-account .woocommerce { background: #fff; border: 1px solid var(--rf-ligne); border-radius: var(--rf-r-l); padding: clamp(1rem, 3vw, 2rem); }
.wc-block-components-totals-wrapper, .wc-block-components-sidebar { border-color: var(--rf-ligne) !important; }
.wp-block-woocommerce-cart.is-loading { min-height: 22rem; } /* place réservée : pas de saut quand le panier s'affiche */
.wp-block-woocommerce-empty-cart-block .is-style-dots { display: none; }

/* 11. Animations --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.js .rf-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .6s var(--rf-ease), transform .6s var(--rf-ease);
	}
	.js .rf-reveal.is-visible { opacity: 1; transform: none; }
	.rf-grid > .rf-reveal:nth-child(2), .rf-modules > .rf-reveal:nth-child(2), .rf-paths__grid > .rf-reveal:nth-child(2) { transition-delay: .08s; }
	.rf-grid > .rf-reveal:nth-child(3), .rf-modules > .rf-reveal:nth-child(3) { transition-delay: .16s; }
	.rf-grid > .rf-reveal:nth-child(4), .rf-modules > .rf-reveal:nth-child(4) { transition-delay: .24s; }

	.rf-bubble--hero { animation: rf-pop .6s .5s var(--rf-ease) both; }
}
@keyframes rf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rf-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Éditeur : on montre tout sans animation */
.editor-styles-wrapper .rf-reveal { opacity: 1 !important; transform: none !important; }
