/* ==========================================================================
   Simplement-Web — pages « Réalisation » (étude de cas)
   Les visuels reprennent la direction artistique du client (bleu nuit,
   lueur bleue, bandeau jaune « EN DIRECT ») ; le violet de l'agence est
   réservé aux appels à l'action.
   Titres en Clash Display, la police de la radio (licence ITF FFL,
   fichier officiel non modifié, déclaré dans simplement-web.css).
   ========================================================================== */

.rf-page {
	--rf-night: #0D0D0D;
	--rf-display: 'Clash Display', 'Unbounded', sans-serif;
	--rf-bg: url(../images/realisations/radiofm-plus/fond-radio-1600.webp);
	--rf-night-2: #15203B;
	--rf-blue: #2457E6;
	--rf-yellow: #FFD927;
	--rf-ink: #1B1230;
	--rf-text: #3F3756;
	--rf-line: rgba(27, 18, 48, .1);
	--rf-radius-xl: 30px;
	--rf-radius-l: 24px;
	--rf-radius-m: 16px;
	--rf-ease: cubic-bezier(.16, 1, .3, 1);
}

.rf-page #lqd-site-content { overflow-x: clip; font-family: var(--rf-display); font-weight: 450; letter-spacing: .005em; }
.rf-page :where(.rf-h2, .rf-h3, .rf-title .sw-reveal, .rf-cta-title, .rf-steps h3) { text-wrap: balance; }
.rf-page :where(a, button, [tabindex]):focus-visible { outline: 3px solid #B98CFF; outline-offset: 3px; border-radius: 6px; }

.rf-container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.rf-section { padding: 110px 0; }

.rf-page .rf-h2 {
	margin: 0; font-family: var(--rf-display); font-weight: 600;
	font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; color: var(--rf-ink);
}
.rf-page .rf-h3 {
	margin: 0 0 14px; font-family: var(--rf-display); font-weight: 600;
	font-size: 25px; line-height: 1.15; letter-spacing: -.01em; color: var(--rf-ink);
}

/* ---------- Boutons ---------- */
.rf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rf-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 100px;
	font-family: var(--rf-display); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; text-decoration: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--rf-ease);
}
.rf-btn:hover { transform: translateY(-2px); }
.rf-btn .bi { font-size: 14px; }
.rf-btn-light { background: #fff; color: var(--rf-ink); }
.rf-btn-light:hover { background: var(--rf-yellow); color: var(--rf-night); }
.rf-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.rf-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

/* ---------- En-tête du projet ---------- */
.rf-hero-wrap { position: relative; width: 90%; margin: 1.5% auto 0; padding-bottom: 50px; }
.rf-hero {
	position: relative; overflow: hidden; border-radius: var(--rf-radius-xl); color: #fff;
	padding: 72px 64px 110px;
	background: var(--rf-night) var(--rf-bg) center / 100% 100% no-repeat;
	box-shadow: 0 50px 90px -50px rgba(14, 20, 36, .7);
}
.rf-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.rf-breadcrumb { display: flex; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.rf-breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.rf-breadcrumb a:hover { color: #fff; text-decoration-color: #fff; }
.rf-page .rf-title {
	margin: 26px 0 52px; color: #fff; font-family: var(--rf-display); font-weight: 600;
	font-size: clamp(40px, 4.9vw, 70px); line-height: .98; letter-spacing: -.025em;
}
.rf-title .sw-reveal { display: block; text-wrap: balance; }

.rf-hero-visual { position: relative; }
.rf-hero-laptop { display: block; width: 100%; max-width: 760px; height: auto; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.rf-hero-phones { position: absolute; left: -4%; bottom: -10px; width: 36%; max-width: 280px; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }


/* Bandeau « EN DIRECT » : l'élément signature, repris de la DA du client */
.rf-tape { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 150px; transform: translateX(-50%); overflow: hidden; pointer-events: none; z-index: 3; }
.rf-tape-band {
	position: absolute; left: -5%; right: -5%; top: 44px; padding: 9px 0 6px;
	background: #FFD927; transform: rotate(-3deg);
	box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .45);
}
.rf-tape-track { display: flex; width: max-content; animation: rfTape 32s linear infinite; }
/* Comme la charte : texte blanc droit, doublé d'une copie noire décalée vers la gauche */
.rf-tape-track span {
	white-space: pre; color: #fff;
	font-family: var(--rf-display); font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: -.01em;
	text-transform: uppercase; text-shadow: -.07em .045em 0 #000;
}
@keyframes rfTape { to { transform: translateX(-50%); } }

/* ---------- Contexte ---------- */
.rf-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.rf-prose p { margin: 0 0 1.1em; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--rf-text); }
.rf-prose .rf-intro { font-size: 21px; line-height: 1.55; color: var(--rf-ink); }
.rf-prose .rf-h3 { margin-top: 40px; }
.rf-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.rf-goals li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--rf-line); font-size: 16px; line-height: 1.45; color: var(--rf-ink); }
.rf-goals li:before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--rf-yellow); }

/* ---------- Ce que nous avons construit ---------- */
.rf-features { padding-top: 0; }
.rf-features-title { margin-bottom: 64px !important; }
.rf-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.rf-feature + .rf-feature { margin-top: 110px; }
.rf-feature-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.rf-feature-reverse .rf-panel { order: 2; }
.rf-panel {
	display: flex; align-items: center; justify-content: center; margin: 0; padding: 7%;
	aspect-ratio: 4 / 3; border-radius: var(--rf-radius-l); overflow: hidden;
	background: var(--rf-night) var(--rf-bg) center / 100% 100% no-repeat;
}
.rf-panel img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .5)); }
.rf-panel-wide img { width: 100%; }
/* Ordinateur : mockups agrandis qui débordent de leur case, du côté opposé au texte.
   Position de chaque mockup réglée par --mx / --my (décalage) et --mh (hauteur des téléphones). */
@media (min-width: 992px) {
	.rf-panel { position: relative; overflow: visible; padding: 0; min-height: 0; container-type: inline-size; }
	.rf-panel img {
		position: relative; z-index: 1; flex: none; max-width: none; max-height: none;
		translate: var(--mx, 0%) var(--my, 0%); transition: translate 1.4s cubic-bezier(.45, .05, .25, 1), scale 1.4s cubic-bezier(.45, .05, .25, 1);
	}
	.rf-feature:hover .rf-panel img { translate: calc(var(--mx, 0%) - 1%) calc(var(--my, 0%) - 1%); scale: 1.02; }
	.rf-panel-wide img { width: 124%; }
	/* hauteur en cqw : la case est en 4/3, donc 91.5cqw = 122 % de sa hauteur */
	.rf-panel-tall img { width: auto; height: var(--mh, 91.5cqw); }
	.rf-mock-accueil { --mx: -4.5%; --my: 5%; }
	.rf-mock-mobile  { --mx: 0%;  --my: -2%; }
	.rf-mock-episode { --mx: -5%; --my: 5%; }
	.rf-mock-reseaux { --mx: 3%;  --my: -2%; --mh: 85cqw; }
	.rf-feature + .rf-feature { margin-top: 150px; }
}
/* Écrans plus étroits : débordement réduit pour rester dans la marge de la page */
@media (min-width: 992px) and (max-width: 1399px) {
	.rf-panel-wide img { width: 112%; }
	.rf-mock-accueil { --mx: -1.5%; --my: 5%; }
	.rf-mock-mobile  { --mx: -2%; }
	.rf-mock-episode { --mx: -1%; --my: 5%; }
	.rf-mock-reseaux { --mx: 0%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.rf-panel-wide img { width: 104%; }
	.rf-panel-tall img { height: var(--mh, 84cqw); }
	.rf-mock-accueil { --mx: 0%; --my: 5%; }
	.rf-mock-mobile  { --mx: -3%; }
	.rf-mock-episode { --mx: 1%; --my: 5%; }
	.rf-mock-reseaux { --mx: -2%; --mh: 78cqw; }
}
.rf-feature-text p { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: var(--rf-text); }
.rf-points { margin: 0; padding: 0; list-style: none; }
.rf-points li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--rf-line); font-size: 15px; line-height: 1.45; color: var(--rf-ink); }
.rf-points li:before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--rf-yellow); }

/* Inclinaison au fil du défilement (même effet que l'encart de l'accueil) :
   --sw-tilt va de 0 (case qui entre par le bas) à 1 (qui sort par le haut).
   La position (translate) et le survol (scale) restent indépendants. */
.rf-panel img[data-sw-tilt] {
	--t: calc(var(--sw-tilt, .5) - .5);
	transform: perspective(1600px) rotateY(calc(var(--t) * var(--tilt-dir, -1) * 22deg)) rotateX(calc(var(--t) * 10deg)) rotateZ(calc(var(--t) * var(--tilt-dir, -1) * -5deg));
	transform-origin: 50% 70%; will-change: transform;
}
.rf-feature-reverse .rf-panel img[data-sw-tilt] { --tilt-dir: 1; }

/* ---------- Émissions ---------- */
.rf-shows { padding-top: 0; }
.rf-shows-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.rf-shot { display: block; overflow: hidden; border-radius: var(--rf-radius-m); background: var(--rf-night); }
.rf-shot img { display: block; width: 100%; height: auto; transition: transform .8s var(--rf-ease); }
.rf-shot:hover img { transform: scale(1.03); }

/* ---------- Galerie ---------- */
.rf-gallery { padding: 100px 0 70px; background: var(--rf-night) var(--rf-bg) center / 100% 100% no-repeat; color: #fff; }
.rf-gallery .rf-h2 { color: #fff; }
.rf-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rf-gallery-nav { display: flex; gap: 10px; }
.rf-round {
	display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: 16px;
	cursor: pointer; transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
.rf-round:hover:not(:disabled) { background: #fff; color: var(--rf-night); border-color: #fff; }
.rf-round:disabled { opacity: .3; cursor: default; }
.rf-strip {
	--rf-gutter: max(24px, calc((100% - 1120px) / 2));
	display: flex; gap: 20px; margin-top: 40px; padding: 0 var(--rf-gutter) 6px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rf-gutter);
	scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.rf-strip::-webkit-scrollbar { display: none; }
.rf-strip-item { flex: 0 0 min(720px, 84vw); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rf-radius-m); scroll-snap-align: start; background: var(--rf-night-2); }
.rf-strip-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rf-ease); }
.rf-strip-item:hover img { transform: scale(1.03); }
.rf-gallery-hint { margin-top: 18px; margin-bottom: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Déroulé ---------- */
.rf-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; }
.rf-steps li { position: relative; padding: 28px 24px 0 0; border-top: 2px solid var(--rf-line); }
.rf-steps li:before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--rf-yellow); }
.rf-step-num {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 16px;
	border-radius: 50%; background: var(--rf-night); color: #fff; font-family: var(--rf-display); font-size: 14px; font-weight: 600;
}
.rf-page .rf-steps h3 { margin: 0 0 8px; font-family: var(--rf-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--rf-ink); }
.rf-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--rf-text); }

/* ---------- Témoignage ---------- */
.rf-quote-section { padding-top: 0; }
.rf-quote { max-width: 880px; margin: 0; padding-left: 36px; border-left: 4px solid var(--rf-yellow); }
.rf-quote blockquote { margin: 0; padding: 0; border: 0; font-style: normal; background: none; }
.rf-quote blockquote p { margin: 0; font-style: normal; font-family: var(--rf-display); font-weight: 500; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.3; letter-spacing: -.01em; color: var(--rf-ink); }
.rf-quote figcaption { margin-top: 22px; font-size: 15px; color: var(--rf-text); }
.rf-quote figcaption strong { color: var(--rf-ink); font-weight: 600; }

/* ---------- Appel à l'action ---------- */
.rf-cta-section { padding-top: 0; }
.rf-cta {
	padding: 72px; border-radius: var(--rf-radius-xl); color: #fff;
	background:
		radial-gradient(ellipse 50% 80% at 100% 0%, rgba(246, 199, 236, .45), rgba(246, 199, 236, 0) 60%),
		linear-gradient(120deg, #4B1BB0 0%, #7E3CF1 55%, #B05FD8 100%);
}
.rf-page .rf-cta-title { margin: 0 0 16px; max-width: 16ch; color: #fff; font-family: var(--rf-display); font-weight: 600; font-size: clamp(36px, 4.2vw, 60px); line-height: 1; letter-spacing: -.025em; }
.rf-cta p { margin: 0 0 34px; max-width: 48ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.rf-cta .rf-btn-light:hover { background: #F6C7EC; color: var(--rf-ink); }

/* ---------- Tablette ---------- */
@media (max-width: 1199px) {
	.rf-hero { padding: 56px 44px 100px; }
}
@media (max-width: 991px) {
	.rf-hero-grid { grid-template-columns: 1fr; gap: 36px; }
	/* Mise en scène empilée : l'ordinateur, plus grand, déborde à droite de la carte ;
	   les téléphones sont devant, en décalé à gauche, sans chevauchement */
	.rf-hero-visual { position: relative; margin: 8px -44px 0 0; aspect-ratio: 2.05 / 1; }
	.rf-hero-laptop, .rf-hero-phones { position: absolute; margin: 0; max-width: none; }
	.rf-hero-laptop { top: 0; right: -16%; width: 80%; }
	.rf-hero-phones { bottom: 0; left: 0; z-index: 2; width: 31%; }
	.rf-split { grid-template-columns: 1fr; gap: 24px; }
	.rf-feature, .rf-feature-reverse { grid-template-columns: 1fr; gap: 32px; }
	.rf-feature-reverse .rf-panel { order: 0; }
	.rf-feature + .rf-feature { margin-top: 80px; }
	.rf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

/* ---------- Tablette et mobile : mockups qui débordent légèrement de leur case ---------- */
@media (max-width: 991px) {
	.rf-panel { position: relative; overflow: visible; padding: 0; min-height: 0; aspect-ratio: 4 / 3; container-type: inline-size; }
	.rf-panel img { position: relative; z-index: 1; flex: none; max-width: none; max-height: none; }
	/* ordinateurs : case moins haute, ils en sortent par le bas */
	.rf-panel-wide { aspect-ratio: 16 / 10; }
	.rf-panel-wide img { width: 104%; translate: 0 10%; }
	/* téléphones et réseaux : 112 % de la hauteur de la case (hauteur = 75 % de la largeur) */
	.rf-panel-tall img { width: auto; height: 84cqw; translate: 4% -3%; }
	.rf-feature, .rf-feature-reverse { gap: 60px; }
	.rf-feature + .rf-feature { margin-top: 120px; }
}
@media (max-width: 767px) {
	.rf-panel-wide img { width: 105%; translate: 0 11%; }
	/* premier ordinateur : un peu plus grand, décalé vers la droite */
	.rf-mock-accueil img { width: 110%; translate: 0 9%; }
	.rf-panel-tall img { height: 88.5cqw; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.rf-page { --rf-bg: url(../images/realisations/radiofm-plus/fond-radio-800.webp); }
	.rf-container { width: calc(100% - 40px); }
	.rf-section { padding: 72px 0; }
	.rf-features, .rf-shows, .rf-quote-section, .rf-cta-section { padding-top: 0; }
	.rf-hero-wrap { width: calc(100% - 30px); margin-top: 15px; padding-bottom: 24px; }
	.rf-hero { padding: 36px 22px 76px; border-radius: 24px; }
	.rf-hero-visual { margin: 4px -22px 0 0; aspect-ratio: 1.72 / 1; }
	.rf-hero-laptop { right: -31%; width: 94%; }
	.rf-hero-phones { left: -3%; width: 38%; }
	.rf-page .rf-title { font-size: 40px; margin: 20px 0 36px; }
	.rf-actions .rf-btn { flex: 1 1 auto; justify-content: center; }
	.rf-tape { height: 110px; }
	.rf-tape-band { top: 22px; padding: 7px 0 4px; }
	.rf-tape-track span { font-size: 25px; }
	.rf-prose .rf-intro { font-size: 19px; }
	.rf-goals { grid-template-columns: 1fr; }
	.rf-features-title { margin-bottom: 40px !important; }
	.rf-shows-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
	.rf-gallery { padding: 72px 0 56px; }
	.rf-round { width: 44px; height: 44px; }
	.rf-strip { gap: 12px; }
	.rf-steps { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
	.rf-steps li { padding: 0 0 28px 48px; border-top: 0; border-left: 2px solid var(--rf-line); margin-left: 14px; }
	.rf-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
	.rf-steps li:before { display: none; }
	.rf-step-num { position: absolute; left: -16px; top: 0; margin: 0; }
	.rf-quote { padding-left: 22px; }
	.rf-cta { padding: 44px 26px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.rf-tape-track { animation: none; }
	.rf-panel img { transition: none; }
	.rf-btn, .rf-shot img, .rf-strip-item img { transition: none; }
}
