/* =============================================================================
   DOMAINE DU BAMBOIS — GLOBAL STYLES
   Version: 1.0.0

   Ce fichier définit les fondations du design system :
   variables CSS, reset, typographie de base, accessibilité.
   Il est chargé sur toutes les pages du plugin.
   ============================================================================= */

/* ── Variables de design ──────────────────────────────────────────────────── */
:root {
	/* Palette de couleurs */
	--dbb-green-deep:    #2F4F3E;
	--dbb-green-dark:    #1a2e24;
	--dbb-green-sage:    #A3B18A;
	--dbb-beige:         #E8E1D9;
	--dbb-off-white:     #F7F5F2;
	--dbb-brown:         #8B6F47;
	--dbb-gold:          #C8A96A;
	--dbb-gold-light:    #dfc091;
	--dbb-gold-pale:     rgba(200, 169, 106, 0.15);
	--dbb-text-dark:     #1C2B24;
	--dbb-text-body:     #3d4d45;
	--dbb-text-muted:    #7a8c83;
	--dbb-white:         #ffffff;

	/* Typographie */
	--dbb-font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
	--dbb-font-body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

	/* Échelle d'espacement */
	--dbb-space-xs:    8px;
	--dbb-space-sm:   16px;
	--dbb-space-md:   28px;
	--dbb-space-lg:   48px;
	--dbb-space-xl:   88px;
	--dbb-space-2xl: 140px;

	/* Rayons */
	--dbb-radius-sm:    6px;
	--dbb-radius-md:   16px;
	--dbb-radius-lg:   28px;
	--dbb-radius-xl:   40px;
	--dbb-radius-pill: 100px;

	/* Ombres */
	--dbb-shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.06);
	--dbb-shadow-md:  0 6px 28px rgba(0, 0, 0, 0.09);
	--dbb-shadow-lg:  0 12px 56px rgba(0, 0, 0, 0.13);
	--dbb-shadow-xl:  0 24px 80px rgba(0, 0, 0, 0.18);

	/* Transitions */
	--dbb-transition:      0.32s cubic-bezier(0.4, 0, 0.2, 1);
	--dbb-transition-slow: 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset de base ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	font-size: 16px;
}

body {
	font-family: var(--dbb-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--dbb-text-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video {
	max-width: 100%;
	display: block;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--dbb-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--dbb-text-dark);
}

p {
	line-height: 1.8;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* ── Accessibilité ────────────────────────────────────────────────────────── */
:focus-visible {
	outline: 2px solid var(--dbb-gold);
	outline-offset: 3px;
	border-radius: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =============================================================================
   FOOTER GLOBAL — DOMAINE DU BAMBOIS
   Chargé sur toutes les pages via global.css.

   Note : si votre thème possède son propre footer, masquez-le avec :
     footer.site-footer, #colophon, .site-footer { display: none !important; }
   ============================================================================= */

/* ── Structure ──────────────────────────────────────────────────────────────── */

.dbb-footer {
	background: var(--dbb-green-deep);
	font-family: var(--dbb-font-body);
	-webkit-font-smoothing: antialiased;
}

/* Conteneur centré — même largeur que le reste du site */
.dbb-footer-container {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 48px;
}

/* ── Séparateur doré en tête ──────────────────────────────────────────────── */

.dbb-footer-sep {
	height: 1px;
	background: linear-gradient(
		to right,
		transparent        0%,
		rgba(200, 169, 106, 0.22) 20%,
		var(--dbb-gold)    48%,
		var(--dbb-gold-light) 52%,
		rgba(200, 169, 106, 0.22) 80%,
		transparent       100%
	);
}

/* ── Grille intérieure ────────────────────────────────────────────────────── */

.dbb-footer-inner {
	padding-block: 80px 64px;
}

.dbb-footer-inner .dbb-footer-container {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 48px;
	align-items: start;
}

/* ── Colonne 1 : Marque ───────────────────────────────────────────────────── */

.dbb-footer-logo {
	font-family: var(--dbb-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--dbb-white);
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin-bottom: 20px;
}

.dbb-footer-tagline {
	font-size: 0.9rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.56);
	line-height: 1.75;
	margin-bottom: 28px;
	max-width: 24ch;
}

/* Petit bouton CTA dans la marque */
.dbb-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dbb-gold);
	transition: gap 0.3s ease, color 0.3s ease;
}

.dbb-footer-cta:hover {
	gap: 14px;
	color: var(--dbb-gold-light);
}

.dbb-footer-cta-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.dbb-footer-cta:hover .dbb-footer-cta-arrow {
	transform: translateX(3px);
}

/* ── Colonnes 2, 3, 4 ─────────────────────────────────────────────────────── */

.dbb-footer-col-title {
	font-family: var(--dbb-font-body);
	font-size: 0.67rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--dbb-gold);
	margin-bottom: 24px;
}

/* Liens de navigation */
.dbb-footer-links {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.dbb-footer-links li a {
	font-family: var(--dbb-font-body);
	font-size: 0.9rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.68);
	display: inline-flex;
	align-items: center;
	gap: 0;
	transition: color 0.28s ease, gap 0.28s ease;
}

/* Trait doré qui apparaît au hover, avant le texte */
.dbb-footer-links li a::before {
	content: '';
	display: inline-block;
	width: 0;
	height: 1px;
	background: var(--dbb-gold);
	transition: width 0.28s ease, margin-right 0.28s ease;
	flex-shrink: 0;
	margin-right: 0;
}

.dbb-footer-links li a:hover {
	color: rgba(255, 255, 255, 0.95);
}

.dbb-footer-links li a:hover::before {
	width: 14px;
	margin-right: 8px;
}

/* Colonne Contact */
.dbb-footer-contact-text {
	font-size: 0.875rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.54);
	line-height: 1.75;
	margin-bottom: 16px;
}

.dbb-footer-email {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
	transition: color 0.28s ease;
	word-break: break-all;
}

.dbb-footer-email:hover {
	color: var(--dbb-gold-light);
}

/* ── Barre inférieure ─────────────────────────────────────────────────────── */

.dbb-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding-block: 22px;
}

.dbb-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.dbb-footer-copyright {
	font-size: 0.78rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.36);
	letter-spacing: 0.04em;
	line-height: 1;
}

.dbb-footer-sep-dot {
	margin-inline: 10px;
	opacity: 0.50;
}

.dbb-footer-credit {
	font-size: 0.72rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.22);
	letter-spacing: 0.06em;
	line-height: 1;
}

/* ── Révélation au scroll ─────────────────────────────────────────────────── */

.dbb-footer-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity   0.70s ease,
		transform 0.70s ease;
	transition-delay: calc(var(--fi, 0) * 110ms + 40ms);
}

.dbb-footer-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

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

/* ── Responsive ──────────────────────────────────────────────────────────────*/

/* Tablette — ≤ 1024px */
@media (max-width: 1024px) {

	.dbb-footer-inner .dbb-footer-container {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}

	.dbb-footer-container {
		padding-inline: 32px;
	}
}

/* Mobile — ≤ 600px */
@media (max-width: 600px) {

	.dbb-footer-inner {
		padding-block: 52px 40px;
	}

	.dbb-footer-inner .dbb-footer-container {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.dbb-footer-container {
		padding-inline: 20px;
	}

	.dbb-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}

	.dbb-footer-tagline {
		max-width: none;
	}
	body.page-id-33794 .dbb-footer {
		padding-bottom: 120px;
	}
}

/* ── Badge preuve sociale — verre dépoli premium ─────────────────────────── */
/* Utilisé sur la homepage et la page contact (réutilisable sur toutes pages) */
.dbb-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	font-family: var(--dbb-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.90);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	margin-bottom: var(--dbb-space-md);
}

.dbb-hero-badge svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	color: var(--dbb-gold-light);
}
