/* ==========================================================================
   Recto Verso · styles du thème
   Composants utilisables dans Elementor (widgets classiques) via « Classes CSS »
   ========================================================================== */

/* ---------- Polices locales ---------- */
@font-face {
	font-family: "Heavitas";
	src: url("../fonts/heavitas.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dmsans-italic.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--rv-noir: #1D1D1B;
	--rv-jaune: #EFDB2B;
	--rv-jaune-hover: #E3CF1F;
	--rv-creme: #F4F1EA;
	--rv-creme2: #E9E4D8;
	--rv-mute: #5E5C57;
	--rv-line: rgba(29, 29, 27, .14);

	--rv-display: "Heavitas", "Arial Black", Impact, sans-serif;
	--rv-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--rv-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--rv-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--rv-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

	--rv-radius: 6px;
	--rv-radius-card: 14px;
	--rv-radius-header: 20px;
	--rv-gutter: 120px;
	--rv-header-h: 88px;
}
@media (max-width: 1024px) { :root { --rv-gutter: 48px; } }
@media (max-width: 767px)  { :root { --rv-gutter: 20px; --rv-header-h: 68px; } }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	background: var(--rv-creme);
	color: var(--rv-noir);
	font-family: var(--rv-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
::selection { background: var(--rv-jaune); color: var(--rv-noir); }
:focus-visible { outline: 2px solid var(--rv-jaune); outline-offset: 3px; }
.rv-display { font-family: var(--rv-display); font-weight: 400; line-height: 1; text-transform: uppercase; }

/* ---------- Flèches en pseudo-élément (classes à ajouter sur un bouton ou un lien) ----------
   rv-fl : flèche A fractionnée (liens internes)
   rv-fl-ext : flèche A en diagonale (liens externes)                                     */
.rv-fl, .rv-fl-ext { align-items: center; gap: 12px; }
.rv-fl::after, .rv-fl-ext::after {
	content: ""; flex-shrink: 0; background: currentColor;
	-webkit-mask: var(--rv-fl-mask) center / contain no-repeat; mask: var(--rv-fl-mask) center / contain no-repeat;
	transition: transform 160ms var(--rv-ease-out);
}
.rv-fl { --rv-fl-mask: url("../svg/fleche-a.svg"); }
.rv-fl::after { width: 36px; height: 16px; }
.rv-fl-ext { --rv-fl-mask: url("../svg/fleche-externe.svg"); }
.rv-fl-ext::after { width: 16px; height: 16px; }
.rv-fl-ext.rv-fl-petite::after { width: 11px; height: 11px; }
.rv-fl-ext.rv-fl-petite { gap: 6px; }
.rv-fl-ext.rv-fl-jaune::after { background: var(--rv-jaune); }
@media (hover: hover) {
	.rv-fl:hover::after { transform: translateX(4px); }
	.rv-fl-ext:hover::after { transform: translate(3px, -3px); }
}
.rv-btn { transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms var(--rv-ease-out) !important; }
/* Contenu toujours centré dans les boutons encadrés, même étirés */
.elementor a.rv-btn:not(.rv-lien-fleche) { justify-content: center !important; text-align: center; }
.rv-btn:active { transform: scale(0.97); }

/* Liens externes dans un texte (classe rv-ext-inline sur le paragraphe) */
.rv-ext-inline a[target="_blank"] { color: inherit; text-decoration: underline; text-underline-offset: 4px; display: inline !important; width: auto !important; }
.rv-ext-inline a[target="_blank"]::after { content: ""; display: inline-block; vertical-align: 0.05em; margin-left: 6px; width: 11px; height: 11px; flex-shrink: 0; background: currentColor; -webkit-mask: url("../svg/fleche-externe.svg") center / contain no-repeat; mask: url("../svg/fleche-externe.svg") center / contain no-repeat; transition: transform 160ms var(--rv-ease-out); }
.rv-ext-inline.rv-ext-sobre a[target="_blank"] { text-decoration: none; }
.rv-ext-inline.rv-ext-jaune a[target="_blank"]::after { background: var(--rv-jaune); }
@media (hover: hover) { .rv-ext-inline a[target="_blank"]:hover::after { transform: translate(2px, -2px); } }

/* Flèche dans un titre : span vide dans un titre portant la classe rv-titre-fleche */
.rv-titre-fleche > span:empty { display: inline-block; width: 108px; height: 48px; margin: 0 .25em; vertical-align: -0.08em; background: currentColor; -webkit-mask: url("../svg/fleche-a.svg") center / contain no-repeat; mask: url("../svg/fleche-a.svg") center / contain no-repeat; }
@media (max-width: 767px) { .rv-titre-fleche > span:empty { width: 54px; height: 24px; } }

/* ---------- Header (Theme Builder) : classe rv-header sur le conteneur racine ---------- */
.rv-header {
	position: fixed !important;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	transition:
		top 280ms var(--rv-ease-out), left 280ms var(--rv-ease-out), right 280ms var(--rv-ease-out),
		border-radius 280ms var(--rv-ease-out), background-color 200ms ease,
		box-shadow 280ms var(--rv-ease-out), border-color 200ms ease, color 200ms ease;
}
body.admin-bar .rv-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rv-header { top: 46px; } }
body { padding-top: var(--rv-header-h); }
body.elementor-editor-active, body.elementor-editor-preview { padding-top: 0; }
.elementor-editor-active .rv-header { position: relative !important; }

.rv-header.is-floating {
	top: 16px;
	left: var(--rv-gutter);
	right: var(--rv-gutter);
	border-radius: var(--rv-radius-header) !important;
	border-bottom-color: transparent !important;
	background-color: rgba(244, 241, 234, .62) !important;
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	backdrop-filter: blur(24px) saturate(1.4);
	box-shadow: 0 12px 32px -16px rgba(29, 29, 27, .28);
}
body.admin-bar .rv-header.is-floating { top: 48px; }
.rv-header.is-floating { width: auto !important; padding-left: 28px !important; padding-right: 16px !important; height: 72px !important; }
@media (max-width: 767px) { .rv-header.is-floating { padding-left: 16px !important; padding-right: 8px !important; height: 60px !important; top: 10px; } }
.rv-header.is-floating.is-dark { background-color: rgba(29, 29, 27, .5) !important; }
.rv-header.is-dark, .rv-header.is-dark a, .rv-header.is-dark p { color: var(--rv-creme) !important; }
.rv-header.is-dark .rv-btn-contour { box-shadow: inset 0 0 0 1px var(--rv-creme) !important; }
.rv-header.is-dark a.rv-btn:not(.rv-btn-contour), .rv-header a.rv-btn:not(.rv-btn-contour) { color: var(--rv-noir) !important; }
.rv-header .rv-logo-clair { display: none !important; }
.rv-header.is-dark .rv-logo-clair { display: block !important; }
.rv-header.is-dark .rv-logo-sombre { display: none !important; }
.rv-header.is-dark .rv-burger span { background: var(--rv-creme); }

/* Burger + menu mobile */
.rv-burger { display: none !important; width: 44px; height: 44px; padding: 0 !important; background: transparent !important; position: relative; cursor: pointer; border: 0 !important; border-radius: 0 !important; }
.rv-burger span { position: absolute; left: 12px; height: 2px; background: var(--rv-noir); transition: transform 200ms var(--rv-ease-out), opacity 150ms ease, width 200ms var(--rv-ease-out); }
.rv-burger span:nth-child(1) { top: 16px; width: 20px; }
.rv-burger span:nth-child(2) { top: 22px; width: 20px; }
.rv-burger span:nth-child(3) { top: 28px; width: 12px; }
html.rv-menu-open .rv-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
html.rv-menu-open .rv-burger span:nth-child(2) { opacity: 0; }
html.rv-menu-open .rv-burger span:nth-child(3) { width: 20px; transform: translateY(-6px) rotate(-45deg); }
.rv-menu-mobile {
	position: fixed !important; inset: var(--rv-header-h) 0 0 0 !important; z-index: 999; width: auto !important;
	background: var(--rv-noir) !important; color: var(--rv-creme);
	display: flex !important; flex-direction: column !important; gap: 6px; padding: 32px 20px !important;
	opacity: 0; transform: translateY(-8px); visibility: hidden;
	transition: opacity 280ms var(--rv-ease-drawer), transform 280ms var(--rv-ease-drawer), visibility 0s linear 280ms;
}
.rv-menu-mobile a { font-family: var(--rv-display); font-size: 28px; line-height: 1.2; text-transform: uppercase; color: var(--rv-creme); text-decoration: none; padding: 8px 0; }
html.rv-menu-open .rv-menu-mobile { opacity: 1; transform: none; visibility: visible; transition: opacity 280ms var(--rv-ease-drawer), transform 280ms var(--rv-ease-drawer), visibility 0s; }
html.rv-menu-open, html.rv-menu-open body { overflow: hidden; }
/* Menu ouvert : le header redevient une barre pleine largeur, sans verre.
   (backdrop-filter crée un cadre de référence qui enfermerait le panneau fixe du menu) */
html.rv-menu-open .rv-header,
html.rv-menu-open .rv-header.is-floating {
	top: 0 !important; left: 0 !important; right: 0 !important;
	width: auto !important; height: var(--rv-header-h-base, 64px) !important;
	border-radius: 0 !important;
	-webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	background-color: var(--rv-creme) !important; color: var(--rv-noir) !important;
	box-shadow: inset 0 -1px 0 var(--rv-noir) !important;
	transition: none !important;
	padding-left: 20px !important; padding-right: 8px !important;
}
html.rv-menu-open .rv-header .rv-logo-clair { display: none !important; }
html.rv-menu-open .rv-header .rv-logo-sombre { display: block !important; }
html.rv-menu-open .rv-header .rv-burger span { background: var(--rv-noir) !important; }
html.rv-menu-open .rv-menu-mobile { top: var(--rv-header-h-base, 64px) !important; height: calc(100dvh - var(--rv-header-h-base, 64px)); overflow-y: auto; }
@media (min-width: 768px) and (max-width: 1024px) { html.rv-menu-open .rv-header { padding-left: 48px !important; padding-right: 36px !important; height: 88px !important; } html.rv-menu-open .rv-menu-mobile { top: 88px !important; height: calc(100dvh - 88px); } }

@media (min-width: 1025px) { .rv-menu-mobile { display: none !important; } }
@media (max-width: 1024px) {
	.rv-header .rv-nav { display: none !important; }
	.rv-burger { display: block !important; }
}
.elementor-editor-active .rv-menu-mobile { position: relative; inset: auto; opacity: 1; transform: none; visibility: visible; }

/* Liens de navigation : pastille au survol uniquement (arrondi 10px) */
.rv-nav p, .rv-nav p:hover { text-decoration: none !important; }
.rv-header .rv-nav { gap: 8px !important; margin-left: -14px !important; margin-right: -14px !important; }
.rv-nav a { display: inline-flex; align-items: center; padding: 9px 14px !important; border-radius: 10px !important; text-decoration: none !important; color: inherit !important; background-color: transparent; transition: background-color 180ms ease, color 180ms ease; }
.rv-nav a:hover, .rv-nav a:focus-visible { text-decoration: none !important; background-color: rgba(29, 29, 27, .07); }
.rv-header.is-dark .rv-nav a:hover, .rv-header.is-dark .rv-nav a:focus-visible { background-color: rgba(244, 241, 234, .12); }
.rv-menu-mobile a { text-decoration: none !important; }
.rv-menu-mobile a.rv-btn, .rv-menu-mobile .rv-btn { color: var(--rv-noir) !important; font-family: var(--rv-text) !important; font-size: 16px !important; text-transform: none !important; padding: 18px 24px !important; }
.rv-header > div .rv-btn:not(.rv-btn-contour)::after { display: none; }
.rv-menu-mobile a[aria-current="page"] { color: var(--rv-jaune) !important; }
.e-collection-loop-item { padding: 0; }

/* ---------- Cartes recto/verso (widgets V4 natifs) ----------
   Structure : conteneur rv-carte (+ rv-carte--recto ou rv-carte--verso)
     > conteneur rv-carte__haut > image rv-carte__mono + paragraphe rv-carte__label
     > paragraphe rv-carte__q (recto) ou rv-carte__s (verso)
   Pile du hero : conteneur rv-pile > deux cartes rv-pile__carte (recto + verso).          */
.rv-carte {
	container-type: inline-size;
	position: relative;
	display: flex !important; flex-direction: column !important; gap: 0 !important;
	width: 100%; max-width: 480px; aspect-ratio: 480 / 324;
	padding: 7.5% !important;
	border-radius: var(--rv-radius-card) !important;
	color: var(--rv-noir) !important;
	text-align: left;
}
.rv-carte--recto {
	background: linear-gradient(146deg, #F7F4EE 0%, #EDE8DD 91%) !important;
	box-shadow: 0 6px 0 0 #cfc9bb, 0 30px 60px 0 rgba(0, 0, 0, .5), inset 0 1px 0 0 rgba(255, 255, 255, .5);
}
.rv-carte--verso {
	background: linear-gradient(146deg, #F3E04A 0%, #E7D21F 91%) !important;
	box-shadow: 0 6px 0 0 #c4b20f, 0 30px 60px 0 rgba(0, 0, 0, .5), inset 0 1px 0 0 rgba(255, 255, 255, .5);
}
.rv-carte__haut { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 0 !important; width: 100%; }
.rv-carte__mono, .rv-carte__mono img { width: 7.1cqw !important; min-width: 22px; height: auto !important; display: block; }
.rv-carte__label { font-family: var(--rv-text) !important; font-size: max(10px, 2.92cqw) !important; font-weight: 500 !important; line-height: 1.3 !important; white-space: nowrap; color: inherit !important; }
.rv-carte__q { margin-top: 12.5cqw !important; font-family: var(--rv-text) !important; font-size: 5.42cqw !important; line-height: 1.18 !important; font-weight: 500 !important; letter-spacing: -0.015em; color: inherit !important; }
.rv-carte__s { margin-top: 12.5cqw !important; font-family: var(--rv-display) !important; font-size: 7.08cqw !important; line-height: 1 !important; text-transform: uppercase; color: inherit !important; }

/* Pile du hero : deux places, « derrière » et « devant » ; les cartes échangent leur place */
.rv-pile { --rv-tour-x: -14%; --rv-tour-y: 112%; z-index: 20; position: relative !important; display: block !important; width: min(549px, 100%); aspect-ratio: 549 / 600; padding: 0 !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-pile .rv-pile__carte {
	position: absolute !important; width: 87.4% !important; max-width: none;
	transition: left 900ms var(--rv-ease-in-out), top 900ms var(--rv-ease-in-out), transform 900ms var(--rv-ease-in-out);
}
/* place « derrière » */
.rv-pile .rv-pile__carte.rv-carte--verso, .rv-pile.is-swapped .rv-pile__carte.rv-carte--recto { left: 8.6%; top: 15.8%; transform: rotate(4deg); z-index: 1; }
/* place « devant » */
.rv-pile .rv-pile__carte.rv-carte--recto, .rv-pile.is-swapped .rv-pile__carte.rv-carte--verso { left: 5.1%; top: 31.9%; transform: rotate(-3deg); z-index: 2; }

/* Tour de cartes : la carte de devant sort entièrement sur le côté, change de plan
   seulement une fois dégagée, puis revient se glisser derrière ; l'autre avance. */
.rv-pile.has-swapped .rv-pile__carte { animation-duration: 900ms; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); animation-fill-mode: both; }
.rv-pile.has-swapped.is-swapped .rv-carte--recto { animation-name: rv-tour-sortie-a; }
.rv-pile.has-swapped.is-swapped .rv-carte--verso { animation-name: rv-tour-entree-a; }
.rv-pile.has-swapped:not(.is-swapped) .rv-carte--verso { animation-name: rv-tour-sortie-b; }
.rv-pile.has-swapped:not(.is-swapped) .rv-carte--recto { animation-name: rv-tour-entree-b; }
@keyframes rv-tour-sortie-a { 0% { translate: 0 0; rotate: 0deg; z-index: 3; } 36% { translate: var(--rv-tour-x) var(--rv-tour-y); rotate: -7deg; z-index: 3; } 40% { translate: var(--rv-tour-x) var(--rv-tour-y); rotate: -7deg; z-index: 0; } 100% { translate: 0 0; rotate: 0deg; z-index: 0; } }
@keyframes rv-tour-sortie-b { 0% { translate: 0 0; rotate: 0deg; z-index: 3; } 36% { translate: var(--rv-tour-x) var(--rv-tour-y); rotate: -7deg; z-index: 3; } 40% { translate: var(--rv-tour-x) var(--rv-tour-y); rotate: -7deg; z-index: 0; } 100% { translate: 0 0; rotate: 0deg; z-index: 0; } }
@keyframes rv-tour-entree-a { 0% { translate: 0 0; z-index: 1; } 36% { translate: 3% -4%; z-index: 1; } 40% { translate: 3% -4%; z-index: 2; } 100% { translate: 0 0; z-index: 2; } }
@keyframes rv-tour-entree-b { 0% { translate: 0 0; z-index: 1; } 36% { translate: 3% -4%; z-index: 1; } 40% { translate: 3% -4%; z-index: 2; } 100% { translate: 0 0; z-index: 2; } }
@media (min-width: 768px) and (max-width: 1024px) { .rv-pile { --rv-tour-x: -112%; --rv-tour-y: -6%; } }
@media (max-width: 767px) {
	.rv-pile { width: 100%; aspect-ratio: 350 / 330; --rv-tour-x: -112%; --rv-tour-y: -6%; }
	.rv-pile .rv-pile__carte { width: 82% !important; }
	.rv-pile .rv-pile__carte.rv-carte--verso, .rv-pile.is-swapped .rv-pile__carte.rv-carte--recto { left: 13%; top: 4%; }
	.rv-pile .rv-pile__carte.rv-carte--recto, .rv-pile.is-swapped .rv-pile__carte.rv-carte--verso { left: 1%; top: 30%; }
}
.elementor-editor-active .rv-pile .rv-pile__carte { transition: none; }

/* ---------- Pastille de retournement (conteneur rv-pastille + image flèche B) ---------- */
.rv-pastille {
	width: 96px !important; height: 96px; border-radius: 50% !important; padding: 0 !important;
	background: var(--rv-jaune) !important;
	display: grid !important; place-items: center;
	filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .35));
	transition: transform 600ms var(--rv-ease-in-out);
}
.rv-pastille img { width: 52px !important; height: auto; }
.rv-pastille.is-on { transform: rotate(180deg); }
.rv-pastille-80 .rv-pastille, .rv-pastille.rv-pastille-80 { width: 80px !important; height: 80px; }
@media (max-width: 767px) { .rv-pastille { width: 72px !important; height: 72px; } .rv-pastille img { width: 38px !important; } }

/* ---------- Frise (widgets natifs) ----------
   rv-frise > rv-frise__bout (titre + sous-titre) · rv-frise__track > rv-frise__ln, rv-frise__tk (x3), image rv-frise__ar · rv-frise__bout rv-frise__bout--fin */
.rv-frise { display: flex !important; flex-direction: row !important; gap: 32px; align-items: flex-start; padding: 0 !important; color: var(--rv-noir); }
.rv-frise__bout { display: flex !important; flex-direction: column !important; gap: 4px; width: auto !important; flex-shrink: 0; padding: 0 !important; }
.rv-frise__bout--fin { align-items: flex-end; text-align: right; }
.rv-frise__titre { font-family: var(--rv-display) !important; font-size: 22px !important; line-height: 1.15 !important; text-transform: uppercase; }
.rv-frise__sous { font-family: var(--rv-text) !important; font-size: 14px !important; line-height: 1.5 !important; }
.rv-frise__track { position: relative !important; display: block !important; flex: 1 1 0; height: 56px; margin-top: 8px; padding: 0 !important; min-width: 0; }
.rv-frise__ln { position: absolute !important; left: 0; right: 4px; top: 4.5px; height: 3px !important; width: auto !important; min-width: 0 !important; padding: 0 !important; background: var(--rv-noir) !important; transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--rv-ease-in-out); }
.rv-frise__tk { position: absolute !important; top: 0; width: 12px !important; height: 12px; min-width: 0 !important; margin-left: -6px; padding: 0 !important; background: var(--rv-noir) !important; overflow: visible !important; opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--rv-ease-out), transform 250ms var(--rv-ease-out); }
.rv-frise__tk:nth-of-type(2) { left: calc((100% - 24px) * .25); }
.rv-frise__tk:nth-of-type(3) { left: calc((100% - 24px) * .5); }
.rv-frise__tk:nth-of-type(4) { left: calc((100% - 24px) * .75); }
.rv-frise__tk p, .rv-frise__tk span { position: absolute !important; top: 24px; left: 50%; transform: translateX(-50%); font-family: var(--rv-text) !important; font-size: 14px !important; line-height: 1.5 !important; white-space: nowrap; text-align: center; color: var(--rv-noir) !important; }
.rv-frise__ar, .rv-frise__track > img { display: none !important; position: absolute !important; right: -6px; top: -6.5px; width: 56px !important; height: auto; opacity: 0; transform: translateX(-6px); transition: opacity 250ms var(--rv-ease-out), transform 250ms var(--rv-ease-out); }

/* Fin de la frise : flèche A fractionnée à 36 × 16 px, soit des traits de 3 px comme la ligne, centrée sur son axe */
.rv-frise__track::after { content: ""; position: absolute; right: 3px; top: -0.5px; width: 13px; height: 13px; box-sizing: border-box; border-top: 3px solid var(--rv-noir); border-right: 3px solid var(--rv-noir); opacity: 0; transform: translateX(-6px) rotate(45deg); transition: opacity 250ms var(--rv-ease-out) 750ms, transform 250ms var(--rv-ease-out) 750ms; }
.rv-frise.is-on .rv-frise__track::after, .elementor-editor-active .rv-frise__track::after { opacity: 1; transform: rotate(45deg); }
.rv-frise.is-on .rv-frise__ln { transform: scaleX(1); }
.rv-frise.is-on .rv-frise__tk, .rv-frise.is-on .rv-frise__ar, .rv-frise.is-on .rv-frise__track > img { opacity: 1; transform: none; }
.rv-frise.is-on .rv-frise__tk:nth-of-type(2) { transition-delay: 250ms; }
.rv-frise.is-on .rv-frise__tk:nth-of-type(3) { transition-delay: 400ms; }
.rv-frise.is-on .rv-frise__tk:nth-of-type(4) { transition-delay: 550ms; }
.rv-frise.is-on .rv-frise__ar, .rv-frise.is-on .rv-frise__track > img { transition-delay: 750ms; }
@media (max-width: 1024px) {
	.rv-frise__tk p, .rv-frise__tk span { white-space: normal; width: 110px; font-size: 13px !important; line-height: 1.35 !important; }
	.rv-frise__track { height: 72px; }
}
@media (max-width: 900px) {
	.rv-frise { flex-direction: column !important; gap: 16px; }
	.rv-frise__titre { font-size: 18px !important; }
	.rv-frise__track { width: 100% !important; flex: none; height: 52px; margin: 0; }
	.rv-frise__tk p, .rv-frise__tk span { font-size: 11px !important; line-height: 1.3 !important; white-space: normal; width: 78px; }
	.rv-frise__bout--fin { align-self: flex-end; }
}
.elementor-editor-active .rv-frise__ln, .elementor-editor-active .rv-frise__tk, .elementor-editor-active .rv-frise__ar { opacity: 1 !important; transform: none !important; }

/* ---------- Révélation au scroll (classes globales V4) ---------- */
.rv-js .rv-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--rv-ease-in-out); }
.rv-js .rv-reveal.is-on { clip-path: inset(-30% -10% -30% -10%); }
.rv-js .rv-reveal-text { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--rv-ease-out) 150ms, transform 400ms var(--rv-ease-out) 150ms; }
.rv-js .rv-reveal-text.is-on { opacity: 1; transform: none; }
.rv-js .rv-fade { opacity: 0; transition: opacity 400ms ease; }
.rv-js .rv-fade.is-on { opacity: 1; }
.rv-js .rv-hero-in { opacity: 0; transform: translateY(8px); }
.rv-hero-ready .rv-hero-in { opacity: 1; transform: none; transition: opacity 300ms var(--rv-ease-out), transform 300ms var(--rv-ease-out); }
.rv-js .rv-hero-cartes { opacity: 0; transform: translateY(16px); }
.rv-hero-ready .rv-hero-cartes { opacity: 1; transform: none; transition: opacity 500ms var(--rv-ease-out) 200ms, transform 500ms var(--rv-ease-out) 200ms; }
.elementor-editor-active .rv-reveal, .elementor-editor-active .rv-reveal-text, .elementor-editor-active .rv-fade,
.elementor-editor-active .rv-hero-in, .elementor-editor-active .rv-hero-cartes { clip-path: none !important; opacity: 1 !important; transform: none !important; }

/* ---------- FAQ (accordéon V4, classe rv-faq) ---------- */
.rv-faq details > summary { list-style: none; cursor: pointer; }
.rv-faq details > summary::-webkit-details-marker { display: none; }

/* Photos noir et blanc */
.rv-nb img, img.rv-nb { filter: grayscale(1); }


/* ---------- Puces fléchées (classe rv-puce sur un paragraphe) ---------- */
.rv-puce { display: flex !important; gap: 14px; align-items: flex-start; }
.rv-puce::before { content: ""; flex-shrink: 0; width: 26px; height: 12px; margin-top: calc(0.75em - 6px); background: currentColor; -webkit-mask: url("../svg/fleche-a.svg") center / 100% 100% no-repeat; mask: url("../svg/fleche-a.svg") center / 100% 100% no-repeat; }
.rv-fond-noir .rv-puce::before, .rv-dark .rv-puce::before { background: var(--rv-jaune); }

/* Flèche vers le bas (lien d’ancre) */
.rv-fl-bas::after { width: 12px !important; height: 18px !important; -webkit-mask: none !important; mask: none !important; background: none !important; content: "↓" !important; font-size: 18px; line-height: 1; }
.rv-fl-bas:hover::after { transform: translateY(3px) !important; }

/* Pastille 80 px */
.rv-pastille-80 .rv-pastille { width: 80px; height: 80px; }
.rv-pastille-80 .rv-pastille .rv-fleche { width: 44px; }

/* ---------- Formulaire de contact ---------- */
.rv-tuile { transition: background-color 160ms ease, color 160ms ease; position: relative; }
.rv-tuile:has(input:checked) { background-color: var(--rv-noir) !important; color: var(--rv-creme); }
.rv-tuile input[type="radio"] { appearance: none; -webkit-appearance: none; width: 16px !important; height: 16px !important; border-radius: 50%; border: 1px solid currentColor !important; background: transparent !important; margin: 0; position: relative; cursor: pointer; }
.rv-tuile input[type="radio"]::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--rv-jaune); transform: scale(.6); opacity: 0; transition: transform 160ms var(--rv-ease-out), opacity 160ms ease; }
.rv-tuile input[type="radio"]:checked { border-color: var(--rv-jaune) !important; }
.rv-tuile input[type="radio"]:checked::after { opacity: 1; transform: scale(1); }
.rv-tuile input[type="radio"]:focus-visible { outline: 2px solid var(--rv-jaune); outline-offset: 3px; }
.rv-formulaire input::placeholder, .rv-formulaire textarea::placeholder { color: var(--rv-gris, #5E5C57); opacity: 1; }
.rv-formulaire button[type="submit"]::after { content: ""; width: 36px; height: 16px; background: currentColor; -webkit-mask: url("../svg/fleche-a.svg") center / contain no-repeat; mask: url("../svg/fleche-a.svg") center / contain no-repeat; }

/* ---------- Contenu d’un article (récap) ---------- */
.rv-article-contenu { font-family: var(--rv-text); font-size: 17px; line-height: 1.55; color: var(--rv-noir); }
.rv-article-contenu > * + * { margin-top: 24px; }
.rv-article-contenu p:first-child { font-size: 20px; line-height: 1.5; }
.rv-article-contenu h2 { font-family: var(--rv-display); font-size: 26px; line-height: 1.15; text-transform: uppercase; margin-top: 56px; }
.rv-article-contenu h3 { font-family: var(--rv-display); font-size: 20px; line-height: 1.15; text-transform: uppercase; margin-top: 40px; }
.rv-article-contenu blockquote { margin: 48px 0; padding: 32px 0; border-top: 1px solid var(--rv-jaune); border-bottom: 1px solid var(--rv-jaune); font-family: var(--rv-display); font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.rv-article-contenu blockquote cite, .rv-article-contenu blockquote footer { display: block; margin-top: 16px; font-family: var(--rv-text); font-size: 14px; text-transform: none; font-style: normal; }
.rv-article-contenu img { border-radius: var(--rv-radius); filter: grayscale(1); height: auto; }
.rv-article-contenu ul { list-style: none; padding: 0; }
.rv-article-contenu ul li { display: flex; gap: 12px; align-items: baseline; margin-top: 10px; }
.rv-article-contenu ul li::before { content: ""; flex-shrink: 0; width: 25px; height: 11px; background: var(--rv-jaune); -webkit-mask: url("../svg/fleche-a.svg") center / contain no-repeat; mask: url("../svg/fleche-a.svg") center / contain no-repeat; }
.rv-article-contenu a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.rv-article-contenu .wp-block-group.has-background { border-radius: var(--rv-radius); padding: 32px; }
@media (max-width: 767px) { .rv-article-contenu h2 { font-size: 22px; } .rv-article-contenu blockquote { font-size: 19px; } }


/* ---------- Survol des boutons : une couleur par type d’action ----------
   Jaune (réserver, action principale) → noir sur fond clair, crème sur fond sombre
   Contour (découvrir, header)          → se remplit de jaune
   Noir (CTA sur fond jaune)            → crème
   Lien fléché                          → soulignement jaune                                 */
.elementor .rv-btn:hover, .elementor .rv-btn:focus-visible { background-color: var(--rv-noir) !important; color: var(--rv-jaune) !important; box-shadow: none !important; }
.elementor .rv-fond-noir .rv-btn:not(.rv-btn-contour):not(.rv-lien-fleche):hover,
.elementor .rv-dark .rv-btn:not(.rv-btn-contour):not(.rv-lien-fleche):hover,
.elementor .rv-menu-mobile .rv-btn:hover { background-color: var(--rv-creme) !important; color: var(--rv-noir) !important; }
.elementor .rv-btn.rv-btn-contour:hover, .elementor .rv-btn.rv-btn-contour:focus-visible,
.rv-header.is-dark .rv-btn.rv-btn-contour:hover { background-color: var(--rv-jaune) !important; color: var(--rv-noir) !important; box-shadow: inset 0 0 0 1px var(--rv-jaune) !important; }
.elementor .rv-btn.rv-btn-noir:hover, .elementor .rv-btn.rv-btn-noir:focus-visible { background-color: var(--rv-creme) !important; color: var(--rv-noir) !important; }
.elementor .rv-btn.rv-lien-fleche:hover { background-color: transparent !important; color: inherit !important; text-decoration-color: var(--rv-jaune) !important; text-decoration-thickness: 2px; }
.rv-header a.rv-btn:not(.rv-btn-contour):hover { color: var(--rv-jaune) !important; }
.rv-formulaire button[type="submit"] { transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--rv-ease-out); }
.rv-formulaire button[type="submit"]:hover, .rv-formulaire button[type="submit"]:focus-visible { background-color: var(--rv-noir) !important; color: var(--rv-jaune) !important; }
.rv-formulaire button[type="submit"]:active, .elementor .rv-btn:active { transform: scale(0.97); }

/* Tuiles du formulaire : toute la tuile est cliquable */
.rv-tuile { cursor: pointer; user-select: none; }
@media (hover: hover) { .rv-tuile:not(:has(input:checked)):hover { background-color: #DED8CA !important; } }

/* ---------- Cadrage des images ---------- */
img.rv-img[src*="portrait-"] { object-position: 50% 15% !important; }
/* Portraits 2027 (fauteuil suspendu) : personne entière visible, jambes, pieds et mains compris */
img.rv-img[src*="portrait-"][src*="-2027"] { object-position: 50% 72% !important; }
img.rv-img[src*="batiment-ecla"] { object-position: 50% 45% !important; }
img.rv-img[src*="dirigeante-concentree"] { object-position: 50% 25% !important; }


/* ---------- Grands écrans : contenu limité à 1440 px, centré (fonds pleine largeur) ---------- */
@media (min-width: 1681px) {
	.elementor .rv-section { padding-left: calc((100vw - 1440px) / 2) !important; padding-right: calc((100vw - 1440px) / 2) !important; }
	.elementor footer.rv-fond-noir { padding-left: calc((100vw - 1440px) / 2) !important; padding-right: calc((100vw - 1440px) / 2) !important; }
	.rv-header:not(.is-floating) { padding-left: calc((100vw - 1440px) / 2) !important; padding-right: calc((100vw - 1440px) / 2) !important; }
	.rv-header.is-floating { left: calc((100vw - 1440px) / 2 - 24px); right: calc((100vw - 1440px) / 2 - 24px); }
}

/* ---------- Petits écrans : boutons compacts, libellé de réservation sur une ligne ---------- */
@media (max-width: 767px) {
	.elementor .rv-btn:not(.rv-lien-fleche) { font-size: 15px !important; padding-left: 20px !important; padding-right: 20px !important; }
	.elementor .rv-btn.rv-fl-ext { white-space: nowrap; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
	.rv-js .rv-reveal, .rv-js .rv-reveal-text, .rv-js .rv-fade, .rv-js .rv-hero-in, .rv-js .rv-hero-cartes { clip-path: none; opacity: 1; transform: none; }
}

/* ---------- Exemples de carte qui défilent (classe rv-defile) ---------- */
.rv-defile { display: grid !important; }
.rv-defile > * { grid-area: 1 / 1; transition: opacity 500ms var(--rv-ease-out), transform 500ms var(--rv-ease-out); }
.rv-js .rv-defile > * { opacity: 0; transform: translateY(8px); }
.rv-js .rv-defile > .is-on, .rv-js .rv-defile:not(.is-pret) > :first-child { opacity: 1; transform: none; }
.elementor-editor-active .rv-defile { display: flex !important; flex-direction: column; gap: 12px; }
.elementor-editor-active .rv-defile > * { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .rv-defile > * { transition: none; } }

/* Mention surlignée (haut de page) */
.rv-surligne { display: inline-block; width: auto !important; }

/* Titres principaux : lignes équilibrées, pas de mot isolé */
h1 { text-wrap: balance; }

/* ---------- Carte Google Maps en attente de consentement ---------- */
.rv-consent-ph { position: absolute; top: 0; left: 0; box-sizing: border-box; overflow: hidden; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; background: var(--rv-creme-fonce, #E9E4D8); border-radius: inherit; color: var(--rv-noir); }
.rv-consent-ph__titre { margin: 0; font-family: var(--rv-display); font-size: 22px; line-height: 1.15; text-transform: uppercase; }
.rv-consent-ph__texte { margin: 0; max-width: 360px; font-family: var(--rv-text); font-size: 15px; line-height: 1.5; }
.rv-consent-ph__btn { margin-top: 8px; padding: 14px 22px; font-family: var(--rv-text); font-size: 15px; font-weight: 600; color: var(--rv-noir); background: var(--rv-jaune); border: 0; border-radius: 6px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.rv-consent-ph__btn:hover, .rv-consent-ph__btn:focus-visible { background: var(--rv-noir); color: var(--rv-jaune); }
.rv-consent-ph__lien { padding: 4px; font-family: var(--rv-text); font-size: 14px; color: var(--rv-noir); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-consent-ph__lien:hover { text-decoration-color: var(--rv-jaune); }
.rv-consent-ph button:focus-visible { outline: 2px solid var(--rv-noir); outline-offset: 2px; }

/* Liens fléchés : jamais de rembourrage de bouton, y compris sur mobile (alignés sur le texte) */
@media (max-width: 1024px) { .elementor a.rv-btn.rv-lien-fleche { padding: 0 !important; } }
