/* ==========================================================================
   IDYLHOM — Overrides Blocksy
   Design tokens issus de la maquette Magic Patterns.
   Préfixe projet : .idh-
   ========================================================================== */

:root {
	--idh-brand: #02012e;
	--idh-brand-light: #1a1957;
	--idh-ink: #1c1917;        /* stone-900 */
	--idh-muted: #78716c;      /* stone-500 */
	--idh-warm: #f5f1eb;
	--idh-warm-dark: #e8e2d9;
	--idh-border: #e7e5e4;     /* stone-200 */
	--idh-surface: #ffffff;
	--idh-radius: 1.5rem;      /* rounded-3xl */
	--idh-radius-sm: 0.75rem;  /* rounded-xl */
	--idh-shadow: 0 1px 2px rgba(28, 25, 23, .04);
	--idh-shadow-lg: 0 20px 40px -12px rgba(2, 1, 46, .12);
	--idh-section-y: 96px;
}

@media (max-width: 768px) {
	:root { --idh-section-y: 60px; }
}

body {
	font-family: "Geist", system-ui, sans-serif;
	color: var(--idh-ink);
	background: var(--idh-warm);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ct-header .site-title {
	font-family: "Geist", system-ui, sans-serif;
	letter-spacing: -0.01em;
}

/* --- Boutons (pill marque) --------------------------------------------- */
.ct-button,
.wp-block-button__link,
.idh-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background-color: var(--idh-brand);
	color: #fff;
	border-radius: 999px;
	padding: 14px 28px;
	font-weight: 600;
	line-height: 1;
	transition: background-color .2s ease, transform .2s ease;
}

.ct-button:hover,
.wp-block-button__link:hover,
.idh-btn:hover {
	background-color: var(--idh-brand-light);
	color: #fff;
}

.idh-btn--ghost {
	background: transparent;
	color: var(--idh-brand);
	border: 1px solid var(--idh-border);
}

.idh-btn--ghost:hover {
	background: var(--idh-brand);
	color: #fff;
	border-color: var(--idh-brand);
}

/* --- Liens d'accent ----------------------------------------------------- */
a { color: inherit; }
.idh-link,
.entry-content a:not(.wp-block-button__link) {
	color: var(--idh-brand);
	text-decoration-color: rgba(2, 1, 46, .3);
}

/* --- Utilitaires layout ------------------------------------------------- */
.idh-section { padding-block: var(--idh-section-y); }
.idh-container { max-width: 1320px; margin-inline: auto; padding-inline: 1.5rem; }

.idh-kicker {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--idh-brand);
}

.idh-badge {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 600;
	background: rgba(2, 1, 46, .08);
	color: var(--idh-brand);
}

.idh-badge--dark { background: var(--idh-brand); color: #fff; }

/* --- Sections sombres (footer, bandeaux CTA) ---------------------------- */
.idh-dark {
	background: var(--idh-brand);
	color: #fff;
}
.idh-dark .idh-kicker { color: #c7c6e6; }

/* --- Cards génériques --------------------------------------------------- */
.idh-card {
	background: var(--idh-surface);
	border: 1px solid var(--idh-border);
	border-radius: var(--idh-radius);
	box-shadow: var(--idh-shadow);
	transition: box-shadow .3s ease, transform .3s ease;
}
.idh-card:hover {
	box-shadow: var(--idh-shadow-lg);
	transform: translateY(-2px);
}

/* --- Footer ------------------------------------------------------------- */
.idh-ft {
	background: #0a0908;            /* stone-950 */
	color: #d6d3d1;                /* stone-300 */
	font-family: inherit;
}
.idh-ft__inner {
	max-width: 80rem;
	margin-inline: auto;
	padding: 56px 24px;
}
.idh-ft__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}
@media (min-width: 640px)  { .idh-ft__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .idh-ft__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Colonne marque */
.idh-ft__logo {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
}
.idh-ft__logo-img { display: block; height: 36px; width: auto; }
.idh-ft__desc {
	margin-top: 16px;
	font-size: .875rem;
	line-height: 1.6;
	color: #a8a29e;               /* stone-400 */
	max-width: 30ch;
}
.idh-ft__addr {
	margin-top: 20px;
	font-style: normal;
	font-size: .875rem;
	line-height: 1.7;
	color: #d6d3d1;
}
.idh-ft__addr-name { display: block; font-weight: 600; color: #fff; }
.idh-ft__addr a { color: inherit; text-decoration: none; }
.idh-ft__addr a:hover { color: #fff; }

.idh-ft__social { margin-top: 20px; display: flex; gap: 12px; }
.idh-ft__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	width: 36px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	transition: background-color .2s ease;
}
.idh-ft__social a:hover { background: #9a3412; } /* orange-800 */

/* Colonnes de liens */
.idh-ft__col-title {
	font-size: .8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #fff;
	margin: 0 0 16px;
}
.idh-ft__col ul { list-style: none; margin: 0; padding: 0; }
.idh-ft__col li + li { margin-top: 8px; }
.idh-ft__col a {
	font-size: .875rem;
	color: #a8a29e;
	text-decoration: none;
	transition: color .2s ease;
}
.idh-ft__col a:hover { color: #fb923c; } /* orange-400 */

/* Barre légale */
.idh-ft__bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	font-size: .75rem;
	color: #78716c;               /* stone-500 */
}
.idh-ft__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.idh-ft__legal a { color: inherit; text-decoration: none; }
.idh-ft__legal a:hover { color: #fff; }
@media (min-width: 640px) {
	.idh-ft__bottom { flex-direction: row; }
}

/* ===== Masquer la barre de titre du thème sur les pages avec hero (cover) ===== */
.page article:has(.entry-content .wp-block-cover) .hero-section,
.page article:has(.entry-content .wp-block-cover) > .entry-header,
.home article:has(.wp-block-cover) .hero-section { display: none !important; }

/* Filet de sécurité : titre de page dupliqué au-dessus d'un hero */
.page article:has(.wp-block-cover) h1.page-title { display: none !important; }
