/*
Theme Name: RSB
Theme URI: https://rsb.ma
Author: RSB
Description: Thème rsb.ma — clean, élégant, premium. Navbar futuriste en verre dépoli, typographie Space Grotesk, accent violet unique. Fonctionne avec le plugin RSB Deals.
Version: 3.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rsb
*/

:root {
	--rsb-encre: #0F1115;
	--rsb-gris: #6B7080;
	--rsb-fond: #FAFAF9;
	--rsb-ligne: #E9E9EC;
	--rsb-accent: #E11D6F;
	--rsb-accent-2: #FF6FA5;
	--rsb-degrade: linear-gradient(92deg, #E11D6F, #FF6FA5);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--rsb-fond);
	color: var(--rsb-encre);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .rsb-logo {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

a { color: var(--rsb-accent); }

.rsb-conteneur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAVBAR FUTURISTE (verre dépoli) ---------- */
.rsb-entete {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(250, 250, 249, 0.72);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	border-bottom: 1px solid rgba(15, 17, 21, 0.07);
}
/* liseré dégradé façon néon discret */
.rsb-entete::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, #E11D6F 35%, #FF6FA5 55%, transparent 85%);
	opacity: 0.9;
}
.rsb-entete-inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: 66px;
}
.rsb-logo {
	font-size: 23px;
	text-decoration: none;
	color: var(--rsb-encre);
	letter-spacing: -0.02em;
}
.rsb-logo span {
	background: var(--rsb-degrade);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rsb-nav { display: flex; align-items: center; gap: 6px; }
.rsb-nav a {
	white-space: nowrap;
	text-decoration: none;
	color: var(--rsb-gris);
	font-weight: 500;
	font-size: 15px;
	padding: 9px 14px;
	border-radius: 10px;
	transition: color 0.15s ease;
}
.rsb-nav a:hover { color: var(--rsb-encre); }
.rsb-nav a.tmd-ouvrir-proposer,
.rsb-nav .rsb-nav-cta {
	margin-left: 8px;
	color: var(--rsb-accent);
	background: transparent;
	border: 1px solid rgba(225, 29, 111, 0.45);
	border-radius: 999px;
	padding: 9px 20px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	transition: all 0.18s ease;
}
.rsb-nav a.tmd-ouvrir-proposer:hover,
.rsb-nav .rsb-nav-cta:hover {
	background: var(--rsb-accent);
	color: #fff;
	box-shadow: 0 6px 22px rgba(225, 29, 111, 0.35);
	transform: none;
}

/* ---------- CONTENU ---------- */
.rsb-contenu { padding: 96px 0 72px; }

.rsb-titre-page {
	text-align: center;
	font-size: clamp(30px, 4.4vw, 44px);
	margin: 40px 0 12px;
}
.rsb-intro-page {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 40px;
	color: var(--rsb-gris);
}

/* Page deal individuel */
.rsb-deal-simple {
	background: #fff;
	border: 1px solid var(--rsb-ligne);
	border-radius: 20px;
	padding: 36px;
	max-width: 720px;
	margin: 28px auto;
}
.rsb-deal-simple h1 { margin-top: 0; font-size: clamp(24px, 3.6vw, 32px); }
.rsb-retour {
	display: inline-block;
	margin: 16px 0 4px;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	color: var(--rsb-gris);
	border: 1px solid var(--rsb-ligne);
	background: #fff;
	border-radius: 999px;
	padding: 9px 18px;
	transition: all 0.15s ease;
}
.rsb-retour:hover { color: var(--rsb-encre); border-color: #CFCFD6; }

/* ---------- PIED DE PAGE ---------- */
.rsb-pied {
	border-top: 1px solid var(--rsb-ligne);
	color: var(--rsb-gris);
	padding: 48px 24px 40px;
	text-align: center;
	font-size: 14px;
	background: #fff;
}
.rsb-pied a { color: var(--rsb-accent); text-decoration: none; }
.rsb-pied .rsb-logo { font-size: 21px; display: inline-block; margin-bottom: 8px; color: var(--rsb-encre); }

/* Accessibilité */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
	outline: 2px solid var(--rsb-accent);
	outline-offset: 2px;
}
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}

@media (max-width: 620px) {
	.rsb-entete-inner { padding: 0 12px; height: 56px; }
	.rsb-logo { font-size: 19px; }
	.rsb-nav { gap: 3px; }
	.rsb-nav a { padding: 7px 7px; font-size: 13.5px; }
	.rsb-nav a.tmd-ouvrir-proposer,
	.rsb-nav .rsb-nav-cta { padding: 8px 13px; font-size: 13px; margin-left: 4px; }
	.rsb-nav-txt { display: none; } /* libellés raccourcis sur mobile */
	.rsb-contenu { padding-top: 74px; }
}
