/* ==========================================================================
   Régie du Croset SA — main.css
   Tokens du design system + chrome global (nav, footer, boutons, prose).
   Accent : rouge brun #9a2421 (logo) ; le rosewood #9c3d42 reste réservé au
   listing Flatfox. Marcellus (titres, Regular seul) + Hanken Grotesk (le reste).
   Fonds plats, photo plein cadre uniquement au héro (sous scrim sombre).
   ========================================================================== */

:root {
	/* --- Gamme de rouges de marque --- */
	--rdc-red-900: #5c1311;
	--rdc-red-800: #7e1d1b;   /* survol / appui */
	--rdc-red-700: #9a2421;   /* rouge PRINCIPAL (logo, theme-color) */
	--rdc-red-600: #9c3d42;   /* rosewood : accent du listing Flatfox */
	--rdc-red-200: #e9c9c7;
	--rdc-red-100: #f5e2e0;
	--rdc-red-50:  #fbf2f1;

	/* --- Anthracite du logo --- */
	--rdc-gray-700: #58595b;

	/* --- Neutres chauds (pierre) --- */
	--rdc-stone-950: #1e1c1a;
	--rdc-stone-900: #2b2826;
	--rdc-stone-800: #3f3c39;
	--rdc-stone-600: #6b665f;
	--rdc-stone-500: #87817a;
	--rdc-stone-400: #a8a29a;
	--rdc-stone-300: #cfc9c0;
	--rdc-stone-200: #e5e1da;
	--rdc-stone-100: #f0eee9;
	--rdc-stone-50:  #f8f7f4;
	--rdc-white:     #ffffff;

	/* --- Statuts --- */
	--rdc-green-600: #2f7d4f;
	--rdc-amber-600: #b97324;

	/* --- Alias sémantiques --- */
	--color-accent:        var(--rdc-red-700);
	--color-accent-hover:  var(--rdc-red-800);
	--color-accent-soft:   var(--rdc-red-600);
	--color-accent-tint:   var(--rdc-red-50);
	--color-accent-border: var(--rdc-red-200);

	--text-heading:   var(--rdc-stone-950);
	--text-body:      var(--rdc-stone-800);
	--text-muted:     var(--rdc-stone-600);
	--text-faint:     var(--rdc-stone-400);
	--text-on-accent: var(--rdc-white);
	--text-on-dark:   #f4f1ec;
	--text-price:     var(--rdc-red-700);

	--surface-page:   var(--rdc-stone-50);
	--surface-card:   var(--rdc-white);
	--surface-sunken: var(--rdc-stone-100);
	--surface-dark:   #211e1c;

	--border-subtle:  #e8e4dd;
	--border-strong:  #d3cdc4;
	--border-input:   #d8d3ca;

	--focus-ring: rgba(154, 36, 33, 0.28);
	--scrim-hero: linear-gradient(180deg, rgba(30, 22, 20, 0.20) 0%, rgba(30, 22, 20, 0.62) 100%);

	/* --- Typo --- */
	--font-display: 'Marcellus', 'Times New Roman', serif;
	--font-body: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
	--tracking-caps: 0.16em;
	--tracking-wide: 0.08em;

	/* --- Espacement, rayons, ombres, mouvement --- */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 999px;

	--shadow-card:   0 1px 3px rgba(33, 26, 24, 0.07), 0 1px 2px rgba(33, 26, 24, 0.05);
	--shadow-hover:  0 10px 28px rgba(33, 26, 24, 0.14);
	--shadow-pop:    0 18px 48px rgba(33, 26, 24, 0.22);
	--shadow-search: 0 14px 40px rgba(33, 26, 24, 0.18);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--duration-fast: 150ms;
	--duration-base: 220ms;

	--container: 1200px;
	--rdc-nav-h: 76px;
}

/* --------------------------------------------------------------------------
   Reset léger + base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-body);
	background: var(--surface-page);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--text-heading);
	margin: 0 0 0.5em;
}

.rdc-icon { flex-shrink: 0; }
.rdc-flip { transform: rotate(180deg); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute;
}
.rdc-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	background: var(--color-accent); color: #fff; padding: 10px 16px;
	border-radius: var(--radius-md); font-weight: 600;
}

/* Conteneurs */
.rdc-wrap { max-width: var(--container); margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.rdc-inner { position: relative; z-index: 2; }
.rdc-site-main { display: block; }
.rdc-s-light { background: var(--surface-page); }

/* --------------------------------------------------------------------------
   Boutons — rayon 8 px, le survol assombrit (pas de réduction)
   -------------------------------------------------------------------------- */

.rdc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px;
	border-radius: var(--radius-md);
	border: 1.5px solid transparent;
	font-family: var(--font-body);
	font-size: 15px; font-weight: 600; line-height: 1;
	cursor: pointer; white-space: nowrap;
	text-decoration: none !important;
	transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.rdc-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.rdc-btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

.rdc-btn-primary { background: var(--color-accent); color: var(--text-on-accent); border-color: var(--color-accent); }
.rdc-btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--text-on-accent); }

.rdc-btn-ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.rdc-btn-ghost:hover { background: var(--color-accent-tint); color: var(--color-accent); }

.rdc-btn-quiet { background: var(--surface-sunken); color: var(--text-heading); }
.rdc-btn-quiet:hover { background: var(--rdc-stone-200); color: var(--text-heading); }

.rdc-btn-light { background: #fff; color: var(--color-accent); border-color: #fff; }
.rdc-btn-light:hover { background: var(--rdc-stone-100); border-color: var(--rdc-stone-100); color: var(--color-accent); }

.rdc-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.rdc-btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.rdc-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus-ring); }

/* --------------------------------------------------------------------------
   En-tête de section (eyebrow + Marcellus + filet rouge + lead)
   -------------------------------------------------------------------------- */

.rdc-sh { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 720px; }
.rdc-sh--center { align-items: center; text-align: center; margin: 0 auto; }
.rdc-sh-eyebrow {
	font-size: 13px; font-weight: 600;
	letter-spacing: var(--tracking-caps); text-transform: uppercase;
	color: var(--color-accent);
}
.rdc-sh-title {
	margin: 0;
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: 0.01em;
	color: var(--text-heading);
	text-wrap: balance;
}
.rdc-sh-rule { width: 56px; height: 3px; background: var(--color-accent); border-radius: 2px; }
.rdc-sh-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.rdc-sh--dark .rdc-sh-eyebrow { color: var(--rdc-red-200); }
.rdc-sh--dark .rdc-sh-title { color: var(--text-on-dark); }
.rdc-sh--dark .rdc-sh-lead { color: rgba(244, 241, 236, 0.75); }

/* Ligne « en-tête + bouton » des sections de l'accueil */
.rdc-sh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Pilule à filets : —— ◦ [ Libellé ] ◦ —— */
.rdc-pill { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rdc-pill-line { flex: 0 0 56px; height: 1px; background: var(--border-strong); }
.rdc-pill-dot { width: 5px; height: 5px; border-radius: 99px; background: var(--color-accent); flex-shrink: 0; }
.rdc-pill-label {
	display: inline-flex; align-items: center; height: 30px; padding: 0 16px;
	border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
	font-size: 12.5px; font-weight: 600;
	letter-spacing: var(--tracking-caps); text-transform: uppercase;
	color: var(--text-muted); white-space: nowrap;
}
.rdc-pill--dark .rdc-pill-line { background: rgba(244, 241, 236, 0.3); }
.rdc-pill--dark .rdc-pill-label { border-color: rgba(244, 241, 236, 0.3); color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   Navigation — blanche givrée par-dessus le héro, blanche pleine ailleurs
   -------------------------------------------------------------------------- */

.rdc-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--rdc-nav-h);
	display: flex; flex-direction: column; justify-content: center;
	background: var(--surface-card);
	border-bottom: 1px solid var(--border-subtle);
	transition: box-shadow var(--duration-base) var(--ease-out);
}
body.rdc-has-dark-hero .rdc-nav {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: rgba(255, 255, 255, 0.4);
}
.rdc-nav.rdc-scrolled { box-shadow: var(--shadow-card); }
.admin-bar .rdc-nav { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .rdc-nav { top: 46px; }
}

.rdc-nav-row { display: flex; align-items: center; gap: 24px; width: 100%; }

.rdc-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-heading); text-decoration: none !important; }
.rdc-brand .rdc-mark { color: var(--color-accent); }
.rdc-brand-logo { height: 44px; width: auto; display: block; }
.rdc-brand-name {
	font-weight: 700; font-size: 16px;
	letter-spacing: var(--tracking-caps); text-transform: uppercase;
	color: var(--rdc-gray-700); white-space: nowrap;
}
.rdc-brand-sa { font-weight: 400; font-size: 10px; vertical-align: super; margin-left: 5px; opacity: 0.75; }

.rdc-nav-links {
	display: flex; align-items: center; gap: 4px;
	list-style: none; margin: 0 0 0 auto; padding: 0;
}
.rdc-nav-links > li { position: relative; }
.rdc-nav-links a {
	position: relative; display: inline-block; padding: 8px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-body); font-size: 15px; font-weight: 500;
	text-decoration: none !important;
	transition: color var(--duration-fast) var(--ease-out);
}
.rdc-nav-links a:hover { color: var(--text-heading); }
.rdc-nav-links .current-menu-item > a,
.rdc-nav-links .current_page_item > a { color: var(--color-accent); font-weight: 600; }
.rdc-nav-links .current-menu-item > a::after,
.rdc-nav-links .current_page_item > a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
	height: 2px; border-radius: 1px; background: var(--color-accent);
}

/* Sous-menus (menus WP, profondeur 2) */
.rdc-nav-links .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0;
	min-width: 230px; padding: 8px; margin: 0; list-style: none;
	background: var(--surface-card); border-radius: var(--radius-lg);
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-pop);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
}
.rdc-nav-links li:hover > .sub-menu,
.rdc-nav-links li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.rdc-nav-links .sub-menu a { display: block; border-radius: var(--radius-md); padding: 9px 12px; }
.rdc-nav-links .sub-menu a:hover { background: var(--color-accent-tint); color: var(--color-accent); }

.rdc-nav-cta { flex-shrink: 0; }

/* Burger */
.rdc-nav-burger {
	display: none; margin-left: auto;
	width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.rdc-nav-burger span {
	display: block; width: 22px; height: 2px; border-radius: 2px;
	background: var(--text-heading);
	transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast);
}
.rdc-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rdc-nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rdc-nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.rdc-nav-mobile {
	background: var(--surface-card);
	border-bottom: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-pop);
}
.rdc-nav-mobile-list { list-style: none; margin: 0; padding: 10px clamp(20px, 4vw, 40px) 18px; }
.rdc-nav-mobile-list a {
	display: block; padding: 13px 4px;
	color: var(--text-heading); font-size: 17px; font-weight: 600;
	border-bottom: 1px solid var(--border-subtle);
	text-decoration: none !important;
}
.rdc-nav-mobile-list li:last-child a { border-bottom: 0; }
.rdc-nav-mobile-list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
.rdc-nav-mobile-list .sub-menu a { font-weight: 400; font-size: 15.5px; }

@media (max-width: 1080px) {
	.rdc-nav-links, .rdc-nav-cta { display: none; }
	.rdc-nav-burger { display: flex; }
}

/* --------------------------------------------------------------------------
   Révélations au scroll (IntersectionObserver pose .rdc-in) — discrètes
   -------------------------------------------------------------------------- */

.rdc-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
	will-change: opacity, transform;
}
.rdc-reveal.rdc-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.rdc-reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Fil d'Ariane
   -------------------------------------------------------------------------- */

.rdc-breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 600;
	letter-spacing: var(--tracking-wide); text-transform: uppercase;
	color: var(--text-muted); margin-bottom: 26px;
}
.rdc-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.rdc-breadcrumb a:hover { color: var(--color-accent); }
.rdc-breadcrumb .rdc-sep { opacity: 0.4; }

/* --------------------------------------------------------------------------
   Pages génériques + prose
   -------------------------------------------------------------------------- */

.rdc-generic { padding: calc(var(--rdc-nav-h) + clamp(48px, 7vw, 90px)) 0 clamp(72px, 9vw, 128px); }
.rdc-lead { font-size: clamp(30px, 4vw, 44px); max-width: 24ch; }

.rdc-prose { max-width: 72ch; font-size: 17px; line-height: 1.6; }
.rdc-prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
.rdc-prose h3 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 1.4em; }
.rdc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.rdc-prose img { border-radius: var(--radius-lg); }
.rdc-prose blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px;
	border-left: 3px solid var(--color-accent);
	font-family: var(--font-display); font-size: 1.15em; color: var(--text-heading);
}

/* Liste d'articles (index.php) */
.rdc-post-list { display: grid; gap: 24px; margin-top: 36px; max-width: 760px; }
.rdc-post-card {
	padding: 26px 28px; background: var(--surface-card);
	border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.rdc-post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rdc-post-title { font-size: 24px; margin-bottom: 4px; }
.rdc-post-title a { color: var(--text-heading); text-decoration: none; }
.rdc-post-title a:hover { color: var(--color-accent); }
.rdc-post-meta {
	font-size: 12.5px; font-weight: 600;
	letter-spacing: var(--tracking-wide); text-transform: uppercase;
	color: var(--text-muted); margin-bottom: 10px;
}
.rdc-post-thumb { margin: 8px 0 26px; }
.rdc-post-thumb img { border-radius: var(--radius-lg); }
.rdc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rdc-pagination { margin-top: 40px; }
.rdc-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.rdc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-md);
	color: var(--text-heading); font-weight: 600; text-decoration: none;
}
.rdc-pagination .page-numbers.current { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.rdc-pagination a.page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

/* 404 */
.rdc-404 .rdc-404-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rdc-eyebrow {
	font-size: 13px; font-weight: 600;
	letter-spacing: var(--tracking-caps); text-transform: uppercase;
	color: var(--color-accent); margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Footer — surface sombre chaude
   -------------------------------------------------------------------------- */

.rdc-footer { background: var(--surface-dark); color: var(--text-on-dark); }
.rdc-footer a { color: rgba(244, 241, 236, 0.78); text-decoration: none; }
.rdc-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.rdc-footer-top { padding-top: 64px; padding-bottom: 48px; }
.rdc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }

.rdc-footer-logo { height: 56px; width: auto; align-self: flex-start; }
.rdc-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.rdc-footer-mark { color: var(--color-accent); }
.rdc-footer-brand .rdc-brand-name { color: #fff; }
.rdc-footer-brand p {
	margin: 0; font-size: 15px; line-height: 1.55;
	color: rgba(244, 241, 236, 0.72); max-width: 380px; text-wrap: pretty;
}
.rdc-footer-social { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; width: fit-content; }

.rdc-fcol { display: flex; flex-direction: column; gap: 10px; }
.rdc-fcol-title {
	font-family: var(--font-body);
	font-size: 13px; font-weight: 600;
	letter-spacing: var(--tracking-caps); text-transform: uppercase;
	color: rgba(244, 241, 236, 0.55); margin: 0 0 8px;
}
.rdc-fcol a { font-size: 15px; width: fit-content; }

.rdc-fcontact { display: grid; gap: 12px; font-size: 15px; color: rgba(244, 241, 236, 0.78); }
.rdc-fcontact-row { display: flex; gap: 10px; align-items: flex-start; }
.rdc-fcontact-row .rdc-icon { margin-top: 2px; color: var(--rdc-red-200); }

.rdc-footer-bar { border-top: 1px solid rgba(244, 241, 236, 0.12); }
.rdc-footer-bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	padding-top: 18px; padding-bottom: 18px;
	font-size: 13px; color: rgba(244, 241, 236, 0.45);
}
.rdc-footer-legal { display: flex; gap: 20px; }
.rdc-footer-legal a { color: rgba(244, 241, 236, 0.45); font-size: 13px; }

@media (max-width: 900px) {
	.rdc-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
	.rdc-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
