/* =========================================================
   ASTER BTP — Blocksy child theme
   Palette et styles extraits de la maquette Magic Patterns.
   Préfixe projet : ab-
   ========================================================= */

:root {
	--ab-raspberry: #E42E7E;
	--ab-raspberry-dark: #C21F67;
	--ab-coral: #FF635A;
	--ab-orange: #FD8951;
	--ab-ink: #2B2B2B;
	--ab-dark: #1A1A1A;
	--ab-rose: #FDF3F5;
	--ab-rose-line: #F3E3E9;
	--ab-muted: #6B6B6B;
	--ab-grad: linear-gradient(90deg, #FF635A, #E42E7E);
	--ab-grad-full: linear-gradient(120deg, #FD8951, #FF635A 45%, #E42E7E);
	--ab-shadow-signature: 0 12px 30px -8px rgba(228, 46, 126, .45);
	--ab-shadow-soft: 0 10px 30px -10px rgba(228, 46, 126, .12);
	--ab-radius: 16px;
	--ab-section-y: clamp(64px, 9vw, 110px);
	--ab-font-serif: 'Lora', 'Playfair Display', Georgia, serif;
	--ab-font-display: 'Poppins', system-ui, sans-serif;
	--ab-font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */

body {
	font-family: var(--ab-font-body);
	color: var(--ab-ink);
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ab-font-display);
	color: var(--ab-dark);
}

/* ---------- Header Blocksy ----------
   NOTE : réglages à reporter dans le Customizer (header builder) dès que possible ;
   le CSS ci-dessous sert de fallback fidèle à la maquette. */

header#header,
.ct-header {
	background: rgba(255, 255, 255, .92);
}

/* Hauteur de rangée 80px comme la maquette (h-20) */
.ct-header [data-row="middle"] {
	--height: 80px;
}

.site-header,
header.ct-header {
	position: sticky;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #f4f4f4;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

/* Logo : image seule, 64px de haut — pas de titre de site texte */
.ct-header [data-id="logo"] {
	--logo-max-height: 64px;
}

.ct-header [data-id="logo"] .site-title,
.ct-header [data-id="logo"] .site-description {
	display: none;
}

.ct-header [data-id="logo"] .custom-logo {
	max-height: 64px;
	width: auto;
}

/* Icône recherche absente de la maquette */
.ct-header [data-id="search"] {
	display: none;
}

/* Nav : Inter 500 14px, pas de majuscules (maquette) */
.ct-header [data-id="menu"] a,
.ct-header .menu > li > a,
.ct-header .ct-menu-link {
	font-family: var(--ab-font-body);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ab-dark);
}

.ct-header [data-id="menu"] a:hover,
.ct-header .menu > li > a:hover,
.ct-header .ct-menu-link:hover {
	color: var(--ab-raspberry);
}

/* Item de menu CTA "Demander un Devis" (classe CSS "ab-menu-cta" sur l'item) */
.menu .ab-menu-cta {
	display: flex;
	align-items: center;
}

.menu .ab-menu-cta > a {
	background: var(--ab-grad);
	color: #fff !important;
	border-radius: 999px;
	height: auto !important;
	line-height: 1.2 !important;
	margin-block: auto;
	padding: 11px 24px !important;
	font-weight: 500;
	transition: box-shadow .3s ease, transform .3s ease;
}

.menu .ab-menu-cta > a::after {
	content: "\2192";
	margin-left: 8px;
}

.menu .ab-menu-cta > a:hover {
	box-shadow: var(--ab-shadow-signature);
	transform: translateY(-1px);
}

/* ---------- Layout helpers ---------- */

.ab-container {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.ab-section {
	width: 100vw;
	max-width: none; /* Blocksy plafonne les enfants de .entry-content à 100% */
	margin-left: calc(50% - 50vw);
	padding-block: var(--ab-section-y);
}

.ab-section--rose {
	background: linear-gradient(180deg, #FDF3F5, #FBECF1);
}

.ab-section--tight {
	padding-block: calc(var(--ab-section-y) * .6);
}

/* Page d'accueil : pas de titre ni d'espacements Blocksy */
.home .entry-header,
.home .hero-section {
	display: none;
}

.home .ct-container-full,
.home .ct-container {
	padding-block: 0;
}

.home article .entry-content {
	margin-top: 0;
}

.home #main {
	padding-top: 0;
	padding-bottom: 0;
}

.home #main .entry-content > * {
	margin-block: 0;
}

/* Footer Blocksy masqué — remplacé par .ab-footer (inc/footer.php) */
footer.ct-footer,
.ct-footer {
	display: none;
}

/* ---------- Composants typographiques ---------- */

.ab-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--ab-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ab-dark);
	margin-bottom: 20px;
}

.ab-eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--ab-raspberry);
	flex: none;
}

.ab-title {
	font-family: var(--ab-font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--ab-dark);
	margin: 0 0 24px;
}

.ab-title em,
.ab-title .ab-accent {
	font-family: var(--ab-font-serif);
	font-style: italic;
	font-weight: 600;
	background: var(--ab-grad-full);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ab-lead {
	font-size: 15px;
	line-height: 1.75;
	color: #555;
	max-width: 640px;
}

.ab-lead + .ab-lead {
	margin-top: 12px;
}

/* ---------- Boutons ---------- */

.ab-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ab-grad);
	color: #fff;
	font-family: var(--ab-font-display);
	font-size: 14px;
	font-weight: 500;
	padding: 14px 30px;
	border-radius: 999px;
	text-decoration: none;
	transition: box-shadow .3s ease, transform .3s ease;
}

.ab-btn:hover {
	color: #fff;
	box-shadow: var(--ab-shadow-signature);
	transform: translateY(-1px);
}

.ab-btn__arrow {
	transition: transform .3s ease;
}

.ab-btn:hover .ab-btn__arrow {
	transform: translateX(4px);
}

.ab-btn--outline {
	background: #fff;
	color: var(--ab-raspberry);
	border: 1px solid rgba(228, 46, 126, .35);
	box-shadow: 0 4px 14px rgba(228, 46, 126, .12);
	padding: 10px 22px;
	font-size: 13px;
}

.ab-btn--outline:hover {
	color: var(--ab-raspberry);
	background: #ffeef5;
	box-shadow: 0 8px 20px -6px rgba(255, 99, 90, .35);
}

.ab-btn--sm {
	padding: 10px 22px;
	font-size: 13px;
	margin-top: 18px;
}

.ab-btn--white {
	background: #fff;
	color: var(--ab-raspberry);
}

.ab-btn--white:hover {
	color: var(--ab-raspberry-dark);
	box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .25);
}

/* ---------- Hero ---------- */

.ab-hero {
	position: relative;
	background:
		repeating-linear-gradient(65deg, rgba(228, 46, 126, .02) 0 1px, transparent 1px 72px),
		repeating-linear-gradient(-25deg, rgba(228, 46, 126, .016) 0 1px, transparent 1px 88px),
		radial-gradient(120% 90% at 80% 0%, #FBE4EC 0%, rgba(253, 243, 245, .6) 45%, #fff 100%),
		var(--ab-rose);
	padding-block: clamp(72px, 10vw, 130px) clamp(56px, 7vw, 96px);
	overflow: hidden;
}

.ab-hero__waves {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: min(68%, 760px);
	pointer-events: none;
}

.ab-hero__inner {
	position: relative;
	z-index: 1;
}

.ab-hero__title {
	font-family: var(--ab-font-serif);
	font-weight: 500;
	font-size: clamp(44px, 6vw, 72px);
	line-height: 1.02;
	letter-spacing: -.025em;
	margin: 0 0 28px;
	background: linear-gradient(160deg, #FD8951 0%, #FF635A 35%, #E42E7E 80%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	max-width: 640px;
}

.ab-hero__sub {
	font-family: var(--ab-font-display);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ab-dark);
	line-height: 1.5;
	margin: 0 0 20px;
}

.ab-hero__text {
	font-size: 16px;
	line-height: 1.7;
	color: #5a4a52;
	max-width: 560px;
	margin: 0 0 36px;
}

/* ---------- Stats ---------- */

.ab-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: clamp(40px, 6vw, 72px);
}

.ab-stat {
	display: flex;
	gap: 16px;
	background: rgba(255, 255, 255, .8);
	backdrop-filter: blur(4px);
	border: 1px solid #F3F4F6;
	border-radius: 16px;
	padding: 24px;
	transition: box-shadow .35s ease;
}

.ab-stat:hover {
	box-shadow: 0 8px 20px -6px rgba(255, 99, 90, .35);
}

.ab-stat::before {
	content: "";
	flex: none;
	width: 3px;
	border-radius: 3px;
	background: var(--ab-grad);
	align-self: stretch;
}

.ab-stat > div {
	flex: 1;
}

.ab-stat strong {
	display: block;
	font-family: var(--ab-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--ab-dark);
	margin-bottom: 6px;
}

.ab-stat span {
	font-size: 12.5px;
	line-height: 1.5;
	color: #8a7a82;
}

/* ---------- Logos partenaires ---------- */

.ab-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
	margin-block: clamp(40px, 6vw, 64px) 0;
}

.ab-logos img {
	height: auto;
	width: auto;
	max-height: 40px;
	max-width: 170px;
	opacity: .7;
	transition: opacity .3s ease;
}

.ab-logos img:hover {
	opacity: 1;
}

.ab-intro {
	max-width: 800px;
	margin: clamp(40px, 6vw, 64px) auto 0;
	text-align: center;
	font-size: 15px;
	line-height: 1.8;
	color: #555;
}

/* ---------- Grilles de cartes ---------- */

.ab-grid {
	display: grid;
	gap: 24px;
	margin-top: clamp(36px, 5vw, 56px);
}

.ab-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.ab-card {
	background: #fff;
	border: 1px solid var(--ab-rose-line);
	border-radius: var(--ab-radius);
	padding: 30px 28px;
	transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}

.ab-card:hover {
	border-color: rgba(228, 46, 126, .2);
	box-shadow: 0 8px 20px -6px rgba(255, 99, 90, .35);
	transform: translateY(-3px);
}

.ab-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--ab-rose);
	color: var(--ab-raspberry);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.ab-card__icon svg {
	width: 22px;
	height: 22px;
}

.ab-card h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 12px;
}

.ab-card p {
	font-size: 14px;
	line-height: 1.65;
	color: #6b6b6b;
	margin: 0 0 18px;
}

.ab-card__link {
	font-family: var(--ab-font-display);
	font-size: 13px;
	font-weight: 500;
	color: var(--ab-raspberry);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ab-card__link:hover {
	color: var(--ab-raspberry-dark);
}

.ab-card__link:hover .ab-btn__arrow {
	transform: translateX(4px);
}

/* ---------- En-tête de section avec bouton à droite ---------- */

.ab-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.ab-section-head .ab-title {
	margin-bottom: 0;
}

/* ---------- Carte de France (shortcode aster_carte_france) ---------- */

.ab-carte {
	position: relative;
	width: 100%;
	height: min(72vh, 640px);
	border-radius: 24px;
	overflow: hidden;
	background: #fdf6f9;
	box-shadow: 0 24px 60px rgba(228, 46, 126, .10);
	user-select: none;
	touch-action: none;
	margin-top: clamp(36px, 5vw, 56px);
}

.ab-carte canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: grab;
}

.ab-carte__tip {
	position: absolute;
	display: none;
	pointer-events: none;
	z-index: 4;
	background: #fff;
	border: 1px solid rgba(228, 46, 126, .4);
	color: var(--ab-ink);
	font-size: 12px;
	font-family: var(--ab-font-body);
	padding: 6px 10px;
	border-radius: 8px;
	white-space: nowrap;
	box-shadow: 0 6px 20px rgba(228, 46, 126, .15);
}

/* ---------- Agences ---------- */

.ab-agences {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
	margin-top: 40px;
}

.ab-agence {
	background: #fff;
	border: 1px solid var(--ab-rose-line);
	border-radius: 14px;
	padding: 22px 20px;
	transition: box-shadow .35s ease, transform .35s ease;
}

.ab-agence:hover {
	box-shadow: var(--ab-shadow-soft);
	transform: translateY(-2px);
}

.ab-agence__tag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--ab-font-display);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #b0a0a8;
	margin-bottom: 10px;
}

.ab-agence__tag svg {
	width: 14px;
	height: 14px;
	color: var(--ab-raspberry);
}

.ab-agence h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 2px;
}

.ab-agence__region {
	font-size: 12px;
	font-weight: 500;
	color: var(--ab-raspberry);
	margin: 0 0 14px;
}

.ab-agence address {
	font-style: normal;
	font-size: 13px;
	line-height: 1.6;
	color: #6b6b6b;
}

.ab-agence address a {
	color: var(--ab-dark);
	font-weight: 500;
	text-decoration: none;
}

/* ---------- Références ---------- */

.ab-refs {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 24px;
	margin-top: clamp(36px, 5vw, 56px);
}

.ab-ref {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(160deg, #d8ccd2, #b8a8b0);
	text-decoration: none;
}

.ab-ref img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-ref::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 55%);
}

.ab-ref h3 {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	padding: 28px;
	margin: 0;
}

/* ---------- Actualités ---------- */

.ab-news {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: clamp(36px, 5vw, 56px);
}

.ab-news-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--ab-rose-line);
	border-radius: 14px;
	padding: 16px 18px;
	text-decoration: none;
	transition: box-shadow .35s ease, transform .35s ease;
}

.ab-news-card:hover {
	box-shadow: var(--ab-shadow-soft);
	transform: translateY(-2px);
}

.ab-news-card__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: linear-gradient(140deg, #e8dce2, #cfbfc8);
	overflow: hidden;
}

.ab-news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-news-card h3 {
	flex: 1;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
	margin: 0;
	color: var(--ab-dark);
}

.ab-news-card__arrow {
	flex: none;
	color: var(--ab-raspberry);
	transition: transform .3s ease;
}

.ab-news-card:hover .ab-news-card__arrow {
	transform: translateX(4px);
}

/* ---------- CTA final ---------- */

.ab-cta {
	border-radius: 24px;
	background: linear-gradient(100deg, #FD8951 0%, #FF635A 45%, #E42E7E 100%);
	padding: clamp(40px, 6vw, 72px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	box-shadow: var(--ab-shadow-signature);
}

.ab-cta h2 {
	color: #fff;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 14px;
}

.ab-cta p {
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
	max-width: 480px;
}

/* ---------- Footer ---------- */

.ab-footer {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	background: var(--ab-dark);
	color: #b9b9b9;
	padding-top: clamp(48px, 7vw, 80px);
	font-size: 13px;
}

.ab-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

.ab-footer__logo {
	height: 60px;
	width: auto;
	filter: brightness(0) invert(1);
	margin-bottom: 20px;
}

.ab-footer__baseline {
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.7;
	color: #8f8f8f;
	max-width: 300px;
	margin: 0 0 22px;
}

.ab-footer__meta {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	line-height: 1.55;
}

.ab-footer__meta svg {
	flex: none;
	margin-top: 2px;
	color: var(--ab-raspberry);
}

.ab-footer__phone a {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ab-footer__col h3 {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 18px;
}

.ab-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ab-footer__col li {
	margin-bottom: 11px;
}

.ab-footer__col a {
	color: #a5a5a5;
	text-decoration: none;
	transition: color .2s ease;
}

.ab-footer__col a:hover {
	color: #fff;
}

.ab-footer__bottom {
	border-top: 1px solid #2c2c2c;
	padding-block: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #7c7c7c;
}

.ab-footer__bottom p {
	margin: 0;
}

.ab-footer__bottom a {
	color: #a5a5a5;
	text-decoration: none;
	margin-left: 24px;
}

.ab-footer__bottom a:hover {
	color: #fff;
}

/* ---------- Animation d'apparition ---------- */

.ab-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s ease, transform .7s ease;
}

.ab-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.ab-grid .ab-card:nth-child(2),
.ab-agences .ab-agence:nth-child(2),
.ab-news .ab-news-card:nth-child(2) {
	transition-delay: .1s;
}

.ab-grid .ab-card:nth-child(3),
.ab-agences .ab-agence:nth-child(3),
.ab-news .ab-news-card:nth-child(3) {
	transition-delay: .2s;
}

.ab-grid .ab-card:nth-child(4),
.ab-agences .ab-agence:nth-child(4) {
	transition-delay: .3s;
}

.ab-grid .ab-card:nth-child(5),
.ab-agences .ab-agence:nth-child(5) {
	transition-delay: .4s;
}

.ab-grid .ab-card:nth-child(6) {
	transition-delay: .5s;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.ab-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.ab-agences {
		grid-template-columns: repeat(3, 1fr);
	}

	.ab-news {
		grid-template-columns: 1fr 1fr;
	}

	.ab-refs {
		grid-template-columns: 1fr;
	}

	.ab-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.ab-stats {
		grid-template-columns: 1fr 1fr;
	}

	.ab-grid--3,
	.ab-news,
	.ab-agences {
		grid-template-columns: 1fr;
	}

	.ab-carte {
		height: 60vh;
		border-radius: 16px;
	}

	.ab-footer__grid {
		grid-template-columns: 1fr;
	}

	.ab-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.ab-stats {
		grid-template-columns: 1fr;
	}
}
