/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================================
   AXURIT LOCATION – reprise fidèle de l'ancien site (thème « Unify » bleu)
   Couleurs : bleu nuit #143854, bleu #2a56a6, bleu menu #395aa7,
              vert bouton #bfd660, vert lien #a6cc61, texte #555
   ========================================================================== */

:root {
	--ax-navy: #143854;
	--ax-blue: #2a56a6;
	--ax-menu: #395aa7;
	--ax-green: #bfd660;
	--ax-green-dark: #a6cc61;
	--ax-text: #555;
	--ax-grey-bg: #f8f8f8;
	--ax-border: #e3e3e3;
	/* Images du thème : remplacées par les fichiers d'origine dès leur import */
	--ax-bg-header: url("assets/img/bg_header.jpg");
	--ax-bg-footer: linear-gradient(120deg, #1b3a55 0%, #2a5680 50%, #6f9a3a 100%);
	--ax-bg-diapo1: none;
	--ax-bg-diapo2: none;
	--ax-logo: url("/wp-content/uploads/2026/10/big_logo-768x370.png"); /* 2x pour écrans Retina */
}

/* Comme l'ancien .wrapper : fond d'en-tête posé en haut de page, pleine largeur */
body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ax-text);
	background: #fff var(--ax-bg-header) center top / 100% auto no-repeat;
}
#brx-content p { margin: 0 0 10px; }
#brx-content a { color: var(--ax-menu); }
#brx-content a:hover { color: var(--ax-navy); }
#brx-content ul { padding-left: 25px; margin: 0 0 10px; }
#brx-content h3 { font-size: 16px; margin: 10px 0; color: #333; }
#brx-content h4 { font-size: 14px; margin: 10px 0; color: #333; }

/* ---------- Mise en page ---------- */
.ax-section { width: 100%; padding: 40px 15px; }
.ax-wrap { width: 100%; max-width: 1170px; margin-inline: auto; }
.ax-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 30px; width: 100%; align-items: flex-start; }
.ax-col-8 { width: calc(66.666% - 10px); }
.ax-col-4 { width: calc(33.333% - 20px); }
.ax-col-6 { width: calc(50% - 15px); }
.ax-col-12 { width: 100%; }
.ax-col-8, .ax-col-4, .ax-col-6, .ax-col-12 { display: flex; flex-direction: column; gap: 0; }
.ax-col-8 > *, .ax-col-4 > *, .ax-col-6 > *, .ax-col-12 > *, .ax-sidenav > *, .ax-contactez > *, .ax-well > * { width: 100%; }
.ax-col-8 > .ax-btn, .ax-col-4 > .ax-btn, .ax-col-6 > .ax-btn, .ax-contactez > .ax-btn { width: auto; align-self: flex-start; }
.ax-prod-grid, .ax-partners, .ax-row { flex-direction: row !important; }
.ax-prod-card .ax-prod-name { width: 100%; }

/* ---------- Titres soulignés (.headline) ---------- */
.ax-headline {
	width: 100%;
	border-bottom: 2px solid var(--ax-blue);
	margin: 0 0 20px;
}
.ax-headline,
#brx-content .ax-headline,
#brx-content h2.ax-headline {
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	color: var(--ax-navy);
	line-height: 33px;
	padding: 0 0 5px 15px;
}
.ax-headline span.ax-cat {
	font-weight: 400;
	font-style: normal;
	color: var(--ax-text);
}
.ax-headline--small { font-size: 13px !important; }

/* ---------- Boutons ---------- */
.ax-btn,
#brx-content .ax-btn {
	display: inline-block;
	background: var(--ax-green);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	padding: 6px 13px;
	border: 0;
	border-radius: 0;
	text-decoration: none;
	transition: background .2s;
}
.ax-btn:hover,
#brx-content .ax-btn:hover { background: var(--ax-green-dark); color: #fff; }

/* ---------- En-tête ---------- */
#brx-header .ax-header {
	width: 100%;
	background: transparent;
	padding: 75px 15px 0;
	align-items: center;
}
#brx-header .ax-header .ax-wrap { display: flex; flex-direction: column; align-items: center; }
#brx-header .ax-logo { display: block; margin: 0 auto; }
#brx-header .ax-logo img { width: 380px; max-width: 100%; height: auto; }
#brx-header .ax-logo--text {
	width: 380px; max-width: 100%; height: 183px;
	background: var(--ax-logo) center / contain no-repeat;
	font: italic 700 64px/183px "Open Sans", sans-serif;
	color: var(--ax-navy);
	text-align: center;
	text-decoration: none;
}
#brx-header .ax-nav { width: 100%; margin: 20px 0 0; }
#brx-header .ax-nav ul { justify-content: center; gap: 0; }
#brx-header .ax-nav .brxe-text-link,
#brx-header .ax-nav a {
	color: var(--ax-menu);
	font-size: 14px;
	text-transform: uppercase;
	padding: 9px 10px;
	line-height: 20px;
	text-decoration: none;
}
#brx-header .ax-nav a:hover,
#brx-header .ax-nav a[aria-current="page"] { color: var(--ax-navy); }
#brx-header .ax-nav .brxe-toggle {
	background: var(--ax-navy);
	color: #fff;
	border: 1px solid #2980b9;
	padding: 6px 10px;
	margin-left: auto;
}

/* ---------- Bloc présentation de l'accueil (coins décoratifs) ---------- */
.ax-presentation {
	position: relative;
	padding: 50px;
	background:
		var(--ax-bg-diapo1) left top no-repeat,
		var(--ax-bg-diapo2) right bottom no-repeat;
	margin-bottom: 20px;
}
.ax-presentation::before,
.ax-presentation::after {
	content: "";
	position: absolute;
	width: 95px;
	height: 120px;
	pointer-events: none;
}
.ax-presentation::before {
	left: 0; top: 0;
	border-left: 6px solid var(--ax-blue);
	border-top: 6px solid var(--ax-blue);
}
.ax-presentation::after {
	right: 0; bottom: 0;
	border-right: 6px solid var(--ax-green);
	border-bottom: 6px solid var(--ax-green);
}
.ax-presentation.ax-has-img::before,
.ax-presentation.ax-has-img::after { display: none; }

/* ---------- Diaporamas (carousel-v1) ---------- */
.ax-slider { width: 100%; margin-bottom: 30px; }
.ax-slide { position: relative; width: 100%; }
.ax-slide img { width: 100%; height: auto; display: block; aspect-ratio: 570 / 400; object-fit: cover; }
.ax-slider--concept .ax-slide img { aspect-ratio: 520 / 300; }
.ax-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: rgba(255,255,255,.7);
	color: #000;
	font-size: 20px;
	font-style: italic;
	line-height: 32px;
	padding: 7px 15px;
	text-align: center;
}
.ax-slider .splide__arrow {
	background: var(--ax-green);
	opacity: 1;
	border-radius: 0;
	width: 30px; height: 30px;
}
.ax-slider .splide__arrow svg { fill: #fff; }

/* ---------- Carrousel produits de l'accueil ---------- */
.ax-prod-carousel .ax-prod-mini { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #333; text-decoration: none; }
.ax-prod-carousel .ax-prod-mini img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 250 / 375; object-fit: cover; }

/* ---------- Grille « Nos produits » ---------- */
.ax-prod-grid { display: flex; flex-wrap: wrap; gap: 30px; width: 100%; }
.ax-prod-card {
	width: calc(33.333% - 20px);
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	background: #fff;
	text-decoration: none;
	overflow: hidden;
}
.ax-prod-card img { width: 100%; height: auto; aspect-ratio: 250 / 375; object-fit: cover; transition: transform .3s; }
.ax-prod-card:hover img { transform: scale(1.04); }
.ax-prod-card .ax-cat-badge {
	position: absolute; left: 0; top: 0; z-index: 2;
	background: #c8dc9a;
	color: #333;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
}
.ax-prod-card .ax-prod-name {
	background: #f1f0ea;
	color: #333;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	padding: 10px;
	margin: 0;
}

/* ---------- Encadrés (well) ---------- */
.ax-well {
	width: 100%;
	background: var(--ax-grey-bg);
	border: 1px solid var(--ax-border);
	padding: 19px;
	margin-bottom: 20px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.ax-well p { margin: 0 0 10px; }

/* ---------- Menu latéral produits ---------- */
.ax-sidenav { width: 100%; margin-bottom: 25px; }
.ax-sidenav h4 { font-size: 14px; color: #333; margin: 10px 0 8px; }
.ax-sidenav ul { list-style: none; padding: 0 !important; margin: 0 0 15px !important; border: 1px solid #eee; }
.ax-sidenav li { border-bottom: 1px solid #eee; }
.ax-sidenav li:last-child { border-bottom: 0; }
.ax-sidenav li a { display: block; padding: 8px 15px; color: var(--ax-text) !important; text-decoration: none; }
.ax-sidenav li a:hover,
.ax-sidenav li a[aria-current="page"] { background: #f7f7f7; color: var(--ax-blue) !important; }
.ax-sidenav li.is-current a { border-left: 3px solid var(--ax-blue); color: var(--ax-blue) !important; }

/* ---------- Blocs services (Nos produits) ---------- */
.ax-service {
	width: calc(33.333% - 20px);
	background: #fafafa;
	border: 1px solid #eee;
	padding: 20px 30px;
	text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ax-service .ax-service-icon {
	width: 60px; height: 60px;
	border-radius: 50%;
	background: #555;
	color: #fff;
	font-size: 26px;
	display: flex; align-items: center; justify-content: center;
}
.ax-service h2 { font-size: 18px; color: #333; margin: 0; text-transform: none; }

/* ---------- Fiches produits ---------- */
.ax-specs { width: 100%; }
.ax-gallery { width: 100%; margin-top: 30px; }
.ax-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Le saviez-vous ---------- */
.ax-saviez .ax-row { gap: 15px; flex-wrap: nowrap; align-items: center; }
.ax-saviez img { width: 50px; height: auto; flex-shrink: 0; }

/* ---------- Listes PDF (check-style) ---------- */
.ax-pdf-list { list-style: none !important; padding: 0 !important; margin: 0 0 30px !important; }
.ax-pdf-list li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.ax-pdf-list li::before {
	content: "✓";
	position: absolute; left: 0; top: 0;
	color: var(--ax-green-dark);
	font-weight: 700;
}
.ax-subhead {
	border-bottom: 1px solid var(--ax-blue);
	color: var(--ax-navy) !important;
	font-size: 13px !important;
	font-weight: 700;
	text-transform: uppercase;
	padding-bottom: 5px;
	margin: 10px 0 12px !important;
	width: 100%;
}

/* ---------- Partenaires ---------- */
.ax-partners { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; }
.ax-partner { width: calc(50% - 10px); margin: 0; }
.ax-partner .ax-headline { font-size: 13px !important; padding-left: 0; line-height: 1.4; margin-bottom: 12px; }
.ax-partner .ax-row { gap: 15px; flex-wrap: nowrap; }
.ax-partner .ax-partner-info { width: calc(55% - 8px); word-break: break-word; }
.ax-partner .ax-partner-logo { width: calc(45% - 7px); }
.ax-partner .ax-partner-logo img { width: 100%; height: auto; }
.ax-logos-carousel img { max-height: 100px; width: auto; margin-inline: auto; object-fit: contain; }

/* ---------- Liste des communes (accueil) ---------- */
.ax-communes { color: #abaaaa; font-size: 10px; line-height: 16px; }
.ax-communes ul { padding-left: 25px; }
.ax-communes li { margin-bottom: 4px; }
.ax-communes strong { color: #888; }
#brx-content h2.ax-communes-title,
.ax-communes-title.ax-headline { font-size: 15px; line-height: 1.4; padding-top: 5px; font-style: normal; text-transform: none; color: #abaaaa; font-weight: 400; }

/* ---------- Contact ---------- */
.ax-contact h3 { color: #333; font-size: 16px; margin: 0 0 5px !important; }

/* ---------- Pied de page ---------- */
#brx-footer .ax-footer {
	width: 100%;
	background: var(--ax-bg-footer) center / cover no-repeat;
}
#brx-footer .ax-basfooter {
	width: 100%;
	background: rgba(22, 36, 48, .8);
	padding: 30px 15px 100px;
}
#brx-footer .ax-footer-menu { color: #fff; font-size: 10px; line-height: 16px; }
#brx-footer .ax-footer-menu a { color: var(--ax-green-dark); text-decoration: none; text-transform: uppercase; }
#brx-footer .ax-footer-menu a:hover { color: #fff; }
#brx-footer .ax-txtbas { color: #fff; font-size: 12px; line-height: 19px; margin-top: 20px; }
#brx-footer .ax-signature { text-align: right; margin-left: auto; color: #fefffe; font-size: 10px; line-height: 10px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
#brx-footer .ax-signature .ax-crea { font-size: 10px; }
#brx-footer .ax-signature strong { font-size: 12px; font-weight: 400; }

/* ---------- Accordéon (panels Bootstrap acc-v1) ---------- */
.ax-accordion { width: 100%; margin-top: 20px; list-style: none; padding: 0 !important; }
.ax-accordion .accordion-item { border: 1px solid #eee; margin-bottom: 5px; }
.ax-accordion .accordion-title-wrapper { background: #fafafa; padding: 10px 15px; cursor: pointer; }
.ax-accordion .accordion-title .title { font-size: 14px; font-weight: 400; color: var(--ax-text); margin: 0; }
.ax-accordion .brx-open .accordion-title .title,
.ax-accordion .accordion-title-wrapper:hover .title { color: var(--ax-blue); }
.ax-accordion .accordion-content-wrapper { padding: 15px; border-top: 1px solid #eee; }

/* ---------- Diaporamas : pas de puces, image pleine largeur ---------- */
.ax-slider .splide__pagination { display: none; }
.ax-slider .splide__track, .ax-slider .splide__list, .ax-slider .splide__slide { height: auto !important; }
.ax-slider .ax-slide { justify-content: flex-start !important; padding: 0 !important; }
.ax-slider .ax-slide img { width: 100%; }

/* ---------- Carrousel logos partenaires ---------- */
.ax-logos-carousel { width: 100%; margin-bottom: 40px; }
.ax-partner .ax-partner-info:has(> p:only-child:empty) { display: none; }
.ax-partner .ax-partner-info:has(> p:only-child:empty) + .ax-partner-logo { width: 60%; margin-inline: auto; }
.ax-logos-carousel .image { height: 100px !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }

/* ---------- Galeries produits : vignettes carrées ---------- */
.ax-gallery li, .ax-gallery .bricks-layout-item { overflow: hidden; }
.ax-gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Accueil ---------- */
.ax-presentation { display: flex; flex-direction: column; }
.ax-presentation .ax-btn--right { align-self: flex-end; margin-top: 10px; }
.ax-prod-carousel { justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ax-prod-carousel .ax-prod-mini { width: calc(16.666% - 17px); font-size: 13px; }
#brx-content .ax-prod-carousel a { color: #333; }
.alignright { float: right; margin: 0 0 15px 20px; max-width: 45%; height: auto; }

/* ---------- Logo (image d'origine 380x183, texte conservé pour l'accessibilité) ---------- */
#brx-header .ax-logo--text {
	width: 380px; max-width: 100%; height: auto; aspect-ratio: 380 / 183;
	padding: 0; font-size: 0; line-height: 0; color: transparent;
	background: var(--ax-logo) center / contain no-repeat;
}
@media (max-width: 478px) { #brx-header .ax-logo--text { width: 260px; } }

/* ---------- Responsive (paliers Bricks) ---------- */
@media (max-width: 991px) {
	.ax-prod-carousel .ax-prod-mini { width: calc(33.333% - 14px); }
	#brx-header .ax-nav .brx-nav-nested-items { background: var(--ax-navy) !important; align-items: center; justify-content: center; gap: 6px; }
	#brx-header .ax-nav .brx-nav-nested-items a { color: #fff !important; font-size: 16px; }
	#brx-header .ax-nav .brx-nav-nested-items a:hover { color: var(--ax-green) !important; }
	#brx-header .ax-nav .brx-nav-nested-items .brx-toggle-div { position: absolute; top: 20px; right: 20px; margin: 0; }
}
@media (max-width: 478px) {
	.ax-prod-carousel .ax-prod-mini { width: calc(50% - 10px); }
	.alignright { float: none; display: block; max-width: 100%; margin: 0 0 15px; }
}
@media (max-width: 991px) {
	.ax-col-8, .ax-col-4, .ax-col-6 { width: 100%; }
	.ax-prod-card { width: calc(50% - 15px); }
	.ax-service { width: 100%; }
	.ax-partner { width: 100%; }
	#brx-header .ax-header { padding-top: 40px; }
}
@media (max-width: 767px) {
	.ax-section { padding: 25px 15px; }
	.ax-presentation { padding: 30px 20px; }
	#brx-footer .ax-signature { margin: 20px auto 0; text-align: center; }
	.ax-caption { font-size: 16px; line-height: 24px; }
}
@media (max-width: 478px) {
	.ax-prod-card { width: 100%; }
	.ax-partner .ax-row { flex-wrap: wrap; }
	.ax-partner .ax-partner-info, .ax-partner .ax-partner-logo { width: 100%; }
}
