/* ============================================================
   Auxmax Blocks — styles front-end des blocs du plugin.
   Reprend les variables du thème Auxmax Tech avec valeurs de
   repli, afin de rester fidèle au design même utilisé seul.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
	--axb-primary: var(--primary, #1253d3);
	--axb-accent: var(--accent, #e81744);
	--axb-ink: #0f1729;
	--axb-muted: #64748b;
	--axb-border: #e2e8f0;
	--axb-radius: 14px;
}

/* ------------------------------------------------------------
   1. SLIDER
   ------------------------------------------------------------ */
.auxmax-slider {
	position: relative;
	border-radius: var(--axb-radius);
	overflow: hidden;
	background: #f4f6fb;
}

.auxmax-slider-viewport {
	overflow: hidden;
}

.auxmax-slider-track {
	display: flex;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.auxmax-slider--hero .auxmax-slide {
	min-height: 520px;
}

.auxmax-slider--large .auxmax-slide {
	min-height: 420px;
}

.auxmax-slider--normal .auxmax-slide {
	min-height: 340px;
}

.auxmax-slide {
	flex: 0 0 100%;
	display: flex;
	align-items: stretch;
	background: var(--axb-ink);
}

/* Diapositive « côte à côte » */
.auxmax-slide--split .auxmax-slide-media {
	flex: 0 0 55%;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--axb-primary), var(--axb-ink));
}

.auxmax-slide--split .auxmax-slide-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auxmax-slide--split {
	min-height: inherit;
}

.auxmax-slide--split .auxmax-slide-body {
	flex: 1 1 45%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	color: #fff;
}

.auxmax-slide--split .auxmax-slide-body--center {
	align-items: center;
	text-align: center;
}

.auxmax-slide-title {
	font-size: clamp(1.4rem, 2.6vw, 2.2rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	color: #fff;
}

.auxmax-slide-text {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	line-height: 1.7;
}

.auxmax-slide-body .btn {
	align-self: flex-start;
}

.auxmax-slide-body--center .btn {
	align-self: center;
}

.auxmax-slide-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 64px;
	color: rgba(255, 255, 255, 0.55);
}

/* Diapositive « fond plein cadre » */
.auxmax-slide--cover {
	position: relative;
	background-size: cover;
	background-position: center;
	justify-content: center;
	align-items: center;
}

.auxmax-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(15, 23, 41, 0.88) 0%, rgba(15, 23, 41, 0.55) 60%, rgba(18, 83, 211, 0.35) 100%);
}

.auxmax-slide--cover .auxmax-slide-body {
	position: relative;
	z-index: 1;
	max-width: 720px;
	padding: clamp(2rem, 6vw, 4rem);
	align-items: center;
	text-align: center;
}

/* Flèches */
.auxmax-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	background: rgba(15, 23, 41, 0.55);
	color: #fff;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.auxmax-slider-arrow:hover {
	background: var(--axb-primary);
	transform: translateY(-50%) scale(1.06);
}

.auxmax-slider-arrow .material-symbols-outlined {
	font-size: 26px;
}

.auxmax-slider-prev { left: 14px; }
.auxmax-slider-next { right: 14px; }

/* Points */
.auxmax-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 8px;
}

.auxmax-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.auxmax-slider-dot.is-active {
	width: 26px;
	background: #fff;
}

.auxmax-slider--single .auxmax-slider-arrow,
.auxmax-slider--single .auxmax-slider-dots {
	display: none;
}

/* ------------------------------------------------------------
   2. TITRE DE SECTION (compléments au thème)
   ------------------------------------------------------------ */
.section-head.auxmax-align-center,
.auxmax-align-center {
	text-align: center;
}

.section-head.auxmax-align-center .kicker {
	margin-inline: auto;
}

.section-head {
	margin-bottom: 2.5rem;
}

/* ------------------------------------------------------------
   3. TEXTE
   ------------------------------------------------------------ */
.auxmax-text-wrap {
	max-width: 820px;
}

.auxmax-text-wrap.auxmax-align-center {
	margin-inline: auto;
}

.auxmax-text {
	margin: 0;
	line-height: 1.75;
	color: #334155;
}

.auxmax-text--lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: #475569;
}

.auxmax-text--muted {
	color: var(--axb-muted);
	font-size: 0.95rem;
}

/* ------------------------------------------------------------
   4. GRILLES (repli si le thème Auxmax Tech est absent)
   ------------------------------------------------------------ */
.auxmax-posts-grid,
.auxmax-projets-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
	.auxmax-posts-grid.auxmax-cols-3,
	.auxmax-projets-grid.auxmax-cols-3,
	.auxmax-posts-grid.auxmax-cols-4,
	.auxmax-projets-grid.auxmax-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.auxmax-posts-grid,
	.auxmax-projets-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Repli minimal des cartes si le thème n'est pas actif */
.auxmax-posts-grid:not(.axb-themed) .post-card,
.auxmax-projets-grid:not(.axb-themed) .projet-card {
	background: #fff;
	border: 1px solid var(--axb-border);
	border-radius: var(--axb-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auxmax-posts-grid:not(.axb-themed) .post-card:hover,
.auxmax-projets-grid:not(.axb-themed) .projet-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 23, 41, 0.10);
}

.auxmax-posts-grid:not(.axb-themed) .post-card-link,
.auxmax-projets-grid:not(.axb-themed) .projet-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-media,
.auxmax-projets-grid:not(.axb-themed) .projet-card-media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef2ff, #f8fafc);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-media img,
.auxmax-projets-grid:not(.axb-themed) .projet-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-body,
.auxmax-projets-grid:not(.axb-themed) .projet-card-body {
	padding: 1.25rem;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-title,
.auxmax-projets-grid:not(.axb-themed) .projet-card-title {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--axb-ink);
}

.auxmax-posts-grid:not(.axb-themed) .post-card-category {
	color: var(--axb-primary);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-excerpt {
	color: var(--axb-muted);
	font-size: 0.92rem;
	margin: 0 0 0.75rem;
}

.auxmax-posts-grid:not(.axb-themed) .post-card-meta {
	display: flex;
	justify-content: space-between;
	color: var(--axb-muted);
	font-size: 0.8rem;
}

/* ------------------------------------------------------------
   5. MÉDIA
   ------------------------------------------------------------ */
.auxmax-media {
	margin: 0;
}

.auxmax-media--cadre .auxmax-media-frame {
	border-radius: var(--axb-radius);
	overflow: hidden;
	border: 1px solid var(--axb-border);
	background: #f8fafc;
}

.auxmax-media--carte .auxmax-media-frame {
	border-radius: var(--axb-radius);
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(15, 23, 41, 0.14);
	background: #fff;
}

.auxmax-media-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.auxmax-media--full {
	margin-inline: calc(50% - 50vw);
	width: auto;
}

.auxmax-media-caption {
	text-align: center;
	color: var(--axb-muted);
	font-size: 0.88rem;
	margin-top: 0.75rem;
}

.auxmax-media-embed {
	position: relative;
	padding-top: 56.25%;
}

.auxmax-media-embed iframe,
.auxmax-media-embed embed,
.auxmax-media-embed object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.auxmax-media-video {
	display: block;
	width: 100%;
}

.auxmax-media-placeholder {
	display: grid;
	place-items: center;
	min-height: 260px;
	color: #94a3b8;
	font-size: 56px;
}

/* ------------------------------------------------------------
   6. FORMULAIRE (compléments — le thème fournit le socle)
   ------------------------------------------------------------ */
.auxmax-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	pointer-events: none;
}

.auxmax-form-notice {
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

.auxmax-form-notice--ok {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.auxmax-form-notice--err {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* Repli formulaire si le thème est absent */
.auxmax-blocks-active .devis-form .form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 639px) {
	.auxmax-blocks-active .devis-form .form-row {
		grid-template-columns: 1fr;
	}
}

.auxmax-blocks-active .devis-form .form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.auxmax-blocks-active .devis-form label {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--axb-ink);
}

.auxmax-blocks-active .devis-form input,
.auxmax-blocks-active .devis-form select,
.auxmax-blocks-active .devis-form textarea {
	padding: 0.85rem 1rem;
	border: 1px solid var(--axb-border);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}

.auxmax-blocks-active .devis-form input:focus,
.auxmax-blocks-active .devis-form select:focus,
.auxmax-blocks-active .devis-form textarea:focus {
	outline: 2px solid var(--axb-primary);
	outline-offset: 1px;
	border-color: var(--axb-primary);
}

.auxmax-blocks-active .form-consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.9rem;
	color: var(--axb-muted);
	margin: 1rem 0;
}

.auxmax-blocks-active .contact-form-card {
	background: #fff;
	border: 2px solid rgba(18, 83, 211, 0.10);
	border-radius: var(--axb-radius);
	box-shadow: 0 18px 48px rgba(15, 23, 41, 0.08);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ------------------------------------------------------------
   7. DIVERS
   ------------------------------------------------------------ */
.auxmax-blocks-notice {
	border: 1px dashed var(--axb-border);
	background: #f8fafc;
	color: var(--axb-muted);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	text-align: center;
	font-size: 0.95rem;
}

/* Repli boutons si le thème est absent */
.auxmax-blocks-active .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.auxmax-blocks-active .btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.auxmax-blocks-active .btn-primary {
	background: var(--axb-primary);
	color: #fff;
	padding: 0.9rem 1.6rem;
	border: 0;
}

.auxmax-blocks-active .btn-lg { font-size: 1.05rem; padding: 1rem 1.8rem; }
.auxmax-blocks-active .btn-xl { font-size: 1.15rem; padding: 1.15rem 2.2rem; }
.auxmax-blocks-active .btn-block { width: 100%; justify-content: center; }
