/*
Theme Name:   Astra Child Aquaflex
Description:  Thème enfant d'Astra pour Aquaflex Maroc : apparence uniquement (design system V1 des maquettes du 8 octobre 2026).
Template:     astra
Version:      2.0.0
Text Domain:  astra-child-aquaflex
*/

/* =========================================================================
   Variables (palette validée, aquaflex-maquettes.css)
   ====================================================================== */
:root {
	--blue: #284993;      /* bleu du logo */
	--navy: #14295E;
	--teal: #3BBFC6;      /* accents sur fond sombre */
	--teal-ink: #0F7680;  /* liens et accents sur fond clair */
	--ink: #0F1B33;
	--muted: #4A5672;
	--surface: #F3F6FB;
	--line: #DCE3EE;
	--wa: #1A7F37;        /* réservé à WhatsApp */
	--white: #FFFFFF;
	--r: 6px;
	--maxw: 1200px;
	--font: "IBM Plex Sans", system-ui, sans-serif;
	--font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

	/* Icônes (masques CSS, couleur = currentColor) */
	--i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.6 7.3L3 20l1.2-5A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E");
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-cut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4 8.1 15.9M14.5 14.5 20 20M8.1 8.1 12 12'/%3E%3C/svg%3E");
	--i-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 7l10 5 10-5-10-5z'/%3E%3Cpath d='m2 17 10 5 10-5'/%3E%3Cpath d='m2 12 10 5 10-5'/%3E%3C/svg%3E");
	--i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h13v12H1z'/%3E%3Cpath d='M14 9h4l4 4v3h-8z'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
	--i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* =========================================================================
   Base
   ====================================================================== */
body {
	font-family: var(--font);
	color: var(--ink);
	background: var(--white);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
/* Fond blanc (la palette Astra applique sinon sa couleur n° 4 au fond de page). */
html body,
html body.ast-page-builder-template,
html body.ast-plain-container,
html body .ast-separate-container,
html body .site,
html body .site-content { background-color: var(--white); }
html[dir="rtl"] body,
body.rtl {
	font-family: var(--font-ar);
	line-height: 1.7;
}
body h1, body h2, body h3, body h4, body h5, body h6,
body .entry-content h1, body .entry-content h2, body .entry-content h3 {
	font-family: inherit;
	color: inherit;
	font-weight: 600;
}
body a { color: var(--teal-ink); }
body a:hover, body a:focus { color: var(--blue); }
img { max-width: 100%; height: auto; }

.wrap {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: content-box;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* Numéro de téléphone écrit dans le contenu des pages : ordre latin sous /ar/, aucun effet visible en français. */
.tel-num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ic { width: 20px; height: 20px; flex: none; }
.todo,
mark.todo {
	background: #FFF4D6;
	color: #8A5A00;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: .92em;
	font-weight: 600;
}
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* Icônes CSS */
.aqf-i::before,
.btn-wa-ic .wp-block-button__link::before,
.has-arrow .wp-block-button__link::after,
.link-arrow a::after,
.reass li::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--ic) center / contain no-repeat;
	mask: var(--ic) center / contain no-repeat;
}
.btn-wa-ic .wp-block-button__link::before { --ic: var(--i-wa); }
.has-arrow .wp-block-button__link::after,
.link-arrow a::after { --ic: var(--i-arrow); }
[dir="rtl"] .has-arrow .wp-block-button__link::after,
[dir="rtl"] .link-arrow a::after { transform: scaleX(-1); }

/* =========================================================================
   Boutons
   ====================================================================== */
.btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--r);
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
}
.btn-wa, .btn-wa:hover, .btn-wa:focus,
.btn-wa .wp-block-button__link, .btn-wa .wp-block-button__link:hover, .btn-wa .wp-block-button__link:focus {
	background: var(--wa);
	color: #fff;
}
.btn-light, .btn-light:hover,
.btn-light .wp-block-button__link, .btn-light .wp-block-button__link:hover {
	background: #fff;
	color: var(--blue);
}
.btn-blue, .btn-blue .wp-block-button__link { background: var(--blue); color: #fff; }
.btn-outline, .btn-outline:hover, .btn-outline:focus,
.btn-outline .wp-block-button__link {
	background: #fff;
	color: var(--blue);
	border: 1px solid var(--blue);
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.btn:focus-visible,
.wp-block-button__link:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 2px;
}

/* =========================================================================
   En-tête (remplace celui d'Astra) : fond blanc, logo officiel sans cadre
   ====================================================================== */
.hdr { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
/* En-tête fixe (16 octobre 2026) : toujours visible sur ordinateur ; sur mobile, masqué en descendant et réaffiché
   en remontant (classe hdr-cache posée par theme.js ; transform : aucun décalage de la page). */
.hdr { transition: transform .25s ease; }
.hdr.hdr-cache { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .hdr { transition: none; } }
html { scroll-padding-top: 116px; }
.hdr .wrap { display: flex; align-items: center; gap: 28px; min-height: 108px; }
.hdr a { color: var(--ink); text-decoration: none; }
.hdr a.btn-wa, .hdr a.btn-wa:hover, .hdr a.btn-wa:focus { color: #fff; }
.hdr .logo { display: block; flex: none; }
.hdr .logo img { height: 84px; width: auto; display: block; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; }
.nav a { display: inline-block; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav .current-menu-item > a,
.nav .current_page_parent > a,
.nav .current-menu-ancestor > a,
.nav a[aria-current="page"] { border-color: var(--teal-ink); }
.nav a:hover { color: var(--blue); }
.lang {
	font-size: 14px;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	border: 1px solid var(--blue);
	border-radius: var(--r);
}
.hdr .lang { color: var(--blue); }
.hdr .lang:hover { background: var(--surface); }
.burger { display: none; }

/* Icône de recherche de l'en-tête : ouvre /produits/ avec le curseur dans le champ (17 octobre 2026). */
.hdr-search { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); color: var(--blue); }
.hdr a.hdr-search { color: var(--blue); }
.hdr-search:hover { background: var(--surface); }
.hdr-search .ic { width: 22px; height: 22px; }

/* Sous-menu « Produits » (inc/catalogue.php) : au survol ou au clavier sur ordinateur, dans le menu ouvert sur mobile. */
.nav li { position: relative; }
.nav .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: -16px; z-index: 30; min-width: 240px; margin: 0; padding: 8px 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 27, 51, .12); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { display: block; padding: 10px 16px; border: 0; white-space: nowrap; font-weight: 500; }
.nav .sub-menu a:hover { background: var(--surface); }
.nav .sub-menu .sub-all a { font-weight: 600; color: var(--teal-ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.hdr.is-open .nav .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: transparent; }
.hdr.is-open .nav .sub-menu a { min-height: 44px; padding: 0 0 0 0; padding-inline-start: 16px; font-weight: 500; }
.hdr.is-open .nav .sub-menu .sub-all a { border-top: 0; margin-top: 0; padding-top: 0; }

/* =========================================================================
   Page Produits : recherche, puces de filtre, grille (inc/catalogue.php, assets/js/catalogue.js)
   ====================================================================== */
.aqf-cat { padding-bottom: 8px; }
.cat-form { display: grid; gap: 14px; margin-bottom: 8px; }
.cat-search { position: relative; max-width: 640px; }
.cat-search .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.cat-search input[type="search"] {
	width: 100%; min-height: 52px; box-sizing: border-box; margin: 0;
	padding: 10px 16px; padding-inline-start: 46px;
	font: inherit; font-size: 17px; color: var(--ink);
	background: #fff; border: 1px solid #A9B4CA; border-radius: var(--r);
}
.cat-search input[type="search"]:focus { outline: 3px solid var(--teal-ink); outline-offset: 1px; border-color: var(--teal-ink); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	min-height: 44px; padding: 0 16px; box-sizing: border-box;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
	color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: #A9B4CA; }
.chip:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.chip .n { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 8px; }
.chip[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.chip[aria-pressed="true"] .n { color: var(--blue); background: #fff; }
.cat-sous .chip { min-height: 40px; font-size: 14px; font-weight: 500; background: var(--surface); }
.cat-sous .chip[aria-pressed="true"] { color: #fff; background: var(--teal-ink); border-color: var(--teal-ink); }
.cat-count { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.cat-vide { margin: 0 0 24px; padding: 24px; background: var(--surface); border-radius: 10px; display: grid; gap: 14px; justify-items: start; }
.cat-vide p { margin: 0; font-size: 17px; }
.cat-vide[hidden], .cat-sous[hidden], .cat-grid > li[hidden] { display: none !important; }

/* =========================================================================
   Accueil : hero (blocs Gutenberg)
   ====================================================================== */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 72px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 0 480 72 720 38S1200 8 1440 44V72H0Z' fill='%23FFFFFF'/%3E%3C/svg%3E") center bottom / 100% 72px no-repeat;
	pointer-events: none;
}
[dir="rtl"] .hero::after { transform: scaleX(-1); }
.hero .hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 48px;
	align-items: center;
	padding-block: 48px 120px;
}
.hero .eyebrow { margin: 0; }
/* Turquoise éclairci (#6BD0D5) : #3BBFC6 sur le bleu ne fait que 3,84:1 pour un texte de 14 px ; 4,71:1 ici. */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6BD0D5; }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 600; margin-block: 14px 18px; color: #fff; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
.lead { font-size: 19px; color: #E3E9F6; max-width: 34em; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ctas .wp-block-button { margin: 0; }
/* Photo 4:5 (plaques de mousse), sous le texte sur mobile (ordre du HTML). */
.hero .hero-img { justify-self: center; margin: 0; width: 100%; max-width: 440px; }
.hero .hero-img img {
	display: block;
	width: 100% !important;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(8, 18, 48, .22);
}

/* Accueil orienté produits (19 octobre 2026) : bannière visuelle, 3 cartes de catégories, produits par famille
   (inc/accueil.php), puis présentation, atouts, densités et contact. */
.banniere .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 40px 112px; }
.banniere .hero-img { max-width: none; justify-self: stretch; }
.banniere .hero-img picture { display: block; }
.banniere .hero-slider { position: relative; min-width: 0; }
/* Bannière défilante (exception validée par le client le 20 octobre 2026) : images seules, scroll-snap, theme.js. */
.hs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; color: #fff; text-decoration: none; }
.hero-slider .hero-img { margin: 0; }
.hero-slider .hero-img img { box-shadow: none; }
.hs-tag { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 27, 51, .78); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hs-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.hs-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hs-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.hs-dot[aria-current="true"]::before { background: #fff; }
.hs-dot:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 50%; }
/* Ancres de l'accueil (tuiles des familles, « Voir nos produits ») : défilement doux, sauf animations réduites. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.banniere .hero-img img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
/* Affiches de la bannière (11 novembre 2026 : Sdader et salons, Matelas Maya NOA) : entières (contain) et centrées, sur
   la même image agrandie et floutée qui remplit le cadre (4:3 ici, 16:9 sur mobile). Cadre fixe : aucun décalage. */
.banniere .hero-img.hs-affiche { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; }
.banniere .hs-affiche img.hs-flou,
.banniere .hs-affiche img.hs-entiere { position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto; border-radius: 0; }
.banniere .hs-affiche img.hs-flou { object-fit: cover; filter: blur(16px); transform: scale(1.15); }
.banniere .hs-affiche img.hs-entiere { object-fit: contain; object-position: 50% 50%; }
/* Diapositive Sdader et salons (11 novembre 2026) : étiquette en bas à droite dans les deux langues (comme en AR), sur la
   zone grise vide de l'affiche, pour ne pas couvrir la pile de plaques. */
.hs-slide[href="#sdader-salons"] .hs-tag { left: auto; right: 12px; }
.banniere .lead { font-size: 20px; }
.aqf-fullwidth .entry-content .banniere .hero-grid > div > .ctas { margin-top: 28px; }
.aqf-fullwidth .entry-content .banniere .hero-wa { margin-top: 14px; }
.hero-wa a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-wa a:hover { color: #D5DCEC; }
.aqf-fullwidth .entry-content > .sec.hfams-sec, .hfams-sec { padding-top: 16px; padding-bottom: 40px; }
.hfams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hfam { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; }
.hfam:hover { border-color: #A9B4CA; color: var(--ink); }
.hfam:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.hfam-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); }
.hfam-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hfam-bd { display: flex; flex-direction: column; gap: 4px; padding: 18px 56px 20px 20px; padding-inline: 20px 56px; }
.aqf-fullwidth .entry-content .hfam h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.hfam-n { font-size: 15px; color: var(--muted); }
.hfam .hfam-go { position: absolute; inset-inline-end: 20px; bottom: 24px; width: 24px; height: 24px; color: var(--teal-ink); }
.aqf-fullwidth .entry-content > .sec.hprod, .hprod { padding-bottom: 56px; }
.hprod .sec-head { margin-bottom: 20px; }
.atouts3 .atouts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 8px 48px; }
.hcontact .card { max-width: 640px; }
/* Cartes et liens générés dans le contenu de la page (shortcodes) : sans le soulignement des liens du contenu d'Astra. */
.entry-content :is(.tile, .hfam, .sec-head, .dens) a, .entry-content a.hfam, .entry-content a.hfam * { text-decoration: none; }

/* Présentation d'Aquaflex (accueil, juste après le hero) */
.presentation .wrap > * { max-width: 760px; }
/* Sélecteurs renforcés : la remise à zéro des marges du contenu (.aqf-fullwidth .entry-content …) est plus spécifique. */
.aqf-fullwidth .entry-content .presentation h2 { margin: 0 0 16px; }
.presentation p { font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0; }
.aqf-fullwidth .entry-content .presentation .signature { margin-top: 18px; font-weight: 600; color: var(--teal-ink); }

/* Mot du fondateur (pattern aquaflex/mot-du-fondateur, préparé, inséré plus tard sur À propos) : mobile d'abord */
.fondateur-carte { gap: 24px; }
.fondateur-carte .wp-block-media-text__media img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.fondateur-carte .wp-block-media-text__content { padding: 0; }
.fondateur-nom { margin: 18px 0 0; font-weight: 600; color: var(--ink); }
.fondateur-fonction { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.fondateur-extrait p { margin: 0 0 8px; }

/* Atouts */
.atouts .atouts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 8px 40px; }
.atout { display: flex; gap: 14px; align-items: flex-start; }
.atout p { margin: 0; }
.atout .atout-t { font-size: 15px; font-weight: 600; }
.atout .atout-s { font-size: 14px; color: var(--muted); }
.pastille {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--teal-ink);
	display: grid;
	place-items: center;
	flex: none;
}
/* Pastille d'icône : cercle clair + icône teinte (deux couches) */
.atout::before,
.card-ic::before,
.clist li::before {
	content: "";
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	background: var(--surface);
}
.atout, .card-ic, .clist li { position: relative; }
.atout::after,
.card-ic::after,
.clist li::after {
	content: "";
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	width: 20px;
	height: 20px;
	background: var(--teal-ink);
	-webkit-mask: var(--ic) center / contain no-repeat;
	mask: var(--ic) center / contain no-repeat;
}
.ic-cut { --ic: var(--i-cut); }
.ic-layers { --ic: var(--i-layers); }
.ic-truck { --ic: var(--i-truck); }
.ic-wa { --ic: var(--i-wa); }
.ic-pin { --ic: var(--i-pin); }
.ic-clock { --ic: var(--i-clock); }

/* =========================================================================
   Sections
   ====================================================================== */
.sec { padding-block: 72px; }
.sec.pt0 { padding-top: 0; }
.sec-alt { background: var(--surface); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head > * { margin: 0; }
.sec h2,
.sec-head h2 { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 0; }
.sub { color: var(--muted); margin: 8px 0 0; max-width: 42em; }
.link,
.link-arrow a {
	color: var(--teal-ink);
	font-weight: 600;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}
.link-arrow { margin: 0; }

/* Tuiles et cartes produit */
.grid4,
ul.products.grid4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
ul.products.grid4::before, ul.products.grid4::after { display: none !important; }
.tile,
ul.products.grid4 li.product.tile {
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	text-align: start;
	color: var(--ink);
	text-decoration: none;
}
a.tile:hover { border-color: #A9B4CA; color: var(--ink); }
.tile .ph {
	aspect-ratio: 4 / 3;
	background: var(--surface);
	display: grid;
	place-items: center;
	padding: 20px;
	margin: 0;
}
.tile .ph img {
	max-height: 170px;
	width: auto !important;
	height: auto;
	object-fit: contain;
	margin: 0 !important;
	box-shadow: none !important;
}
/* Cartes produits (accueil, /produits/, recherche) : photo sur tout le cadre 4:3, entière (contain) ; la marge de 4 %
   est dans le fichier (outils/images_entieres.py), aucun padding en plus. Tuiles des familles : inchangées. */
li.product.tile .ph { display: block; padding: 0; }
li.product.tile .ph img { display: block; width: 100% !important; height: 100% !important; max-height: none; object-fit: contain; }
.tile .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile h2, .tile h3 { font-size: 19px; font-weight: 600; margin: 0; padding: 0; line-height: 1.3; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.woocommerce ul.products li.product.tile h3,
.woocommerce-page ul.products li.product.tile h3 { font-size: 19px; line-height: 1.3; margin: 0; padding: 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.tile .link { margin-top: auto; }
.ph-vide { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ph-vide img, .ph-vide svg { width: 56px !important; height: 56px; max-height: none; }
/* Fiche sans image principale : « Photo bientôt disponible » seul, cadre 4:3 sur le fond des cadres (aqf_photo_a_venir()). */
.ph-avenir { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; box-sizing: border-box; padding: 12px; background: var(--surface); color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center; }
.aqf-gal .gal-main .ph-avenir { font-size: 18px; }
.aqf-gal .gal-main.gal-avenir { cursor: default; }
.aqf-gal .gal-thumb .ph-avenir { padding: 4px; font-size: 11px; font-weight: 500; line-height: 1.2; }
.mini { display: flex; flex-wrap: wrap; gap: 6px; }
.mini span { background: var(--surface); border-radius: 4px; padding: 3px 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.acts .btn-outline { flex: 1; }
.acts .btn-icon .ic { width: 22px; height: 22px; }
/* Bouton WhatsApp des cartes : icône + « Prix » / « السعر » (plugin, 19 octobre 2026). */
.acts .aqf-card-wa { width: auto; flex: none; gap: 6px; padding-inline: 12px; font-size: 15px; font-weight: 600; }
.acts .aqf-card-wa .ic { width: 20px; height: 20px; }
.subcats { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subcats a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}
.fam-tile .ph, .subcat-tiles .tile .ph { aspect-ratio: auto; height: 200px; }
.fam-tile h2 { font-size: 24px; }
.tile h2 a, .gamme-fam h2 a { color: var(--ink); text-decoration: none; }

/* Gammes */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	background: #fff;
	color: var(--ink);
	text-decoration: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* Échelle des densités */
.dens { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.d-item { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.d-box { height: 190px; display: flex; align-items: flex-end; }
.d-bar { width: 100%; background: var(--blue); border-top: 4px solid var(--teal); border-radius: 4px 4px 0 0; }
.d-bar.inconnue { height: 100%; background: transparent; border: 1.5px dashed #8E9AB3; display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: 22px; }
.d-val { font-weight: 600; font-size: 15px; }
.d-name { font-size: 14px; color: var(--muted); }
.sw { display: flex; gap: 4px; }
.sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(15, 27, 51, .2); display: block; }

/* Professionnels */
.pros {
	background: var(--navy);
	color: #fff;
	border-radius: 12px;
	padding: 44px;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}
.pros h2 { color: #fff; }
.pros p { color: #D5DCEC; margin: 10px 0 0; }
.pros a { color: #fff; }
ul.aud, .aud { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.aud li, .aud span { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0; }
.pros-cta { display: grid; gap: 12px; justify-items: start; }
.pros-cta .wp-block-buttons { margin: 0; }
/* Bouton à la ligne s'il manque de place (débordait entre 761 et 860 px en français). */
.pros-cta .wp-block-buttons, .pros-cta .wp-block-button { max-width: 100%; }
.pros-cta .wp-block-button__link { white-space: normal; text-align: center; }
.pros-cta .small, .pros-cta p { color: #D5DCEC; font-size: 14px; margin: 0; }

/* Livraison et contact */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.card {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 28px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.card > * { margin: 0; }
.card h2 { font-size: 26px; }
.card .wp-block-buttons { margin-top: 4px; }
.card-ic { display: block; width: 44px; height: 44px; margin: 0; }
.card-ic::before { display: block; }
ul.clist { display: grid; gap: 16px; margin: 6px 0 8px; padding: 0; list-style: none; }
.clist li {
	display: block;
	min-height: 44px;
	padding-inline-start: 58px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin: 0;
}
.clist li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; }
.clist li strong { display: block; font-size: 16px; color: var(--ink); }
.clist li strong a { color: var(--ink); text-decoration: none; }
/* Note sous le siège social (domiciliation, pas d'accueil de la clientèle). */
.clist li .note { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted); }
/* Contact sur une seule colonne (sans carte) : carte de contact limitée en largeur, alignée sur le titre. */
.contact-solo > .card { max-width: 720px; }

/* =========================================================================
   Pied de page (remplace celui d'Astra)
   ====================================================================== */
.ftr { background: var(--navy); color: #C9D2E6; padding-block: 56px 28px; font-size: 15px; }
.ftr a { color: #C9D2E6; text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr h2 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.ftr ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ftr p { margin: 0; }
.ftr .badge-logo { display: inline-block; background: var(--white); border-radius: 8px; padding: 8px 12px; }
.ftr .badge-logo img { height: 72px; width: auto; display: block; }
.tagline { margin-top: 14px !important; color: #fff; font-weight: 600; }
.ftr .brand p + p { margin-top: 6px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
/* Crédit du site, au bout de la ligne (à droite en FR, à gauche en AR), même taille et même couleur que le copyright. */
.legal .credit { margin-inline-start: auto; }

/* Bouton WhatsApp flottant du plugin (pages hors fiche) */
.aqf-float {
	inset-block-end: 20px;
	inset-inline-end: 20px;
	width: 56px;
	height: 56px;
	background: var(--wa);
	box-shadow: 0 8px 24px rgba(10, 30, 20, .3);
	z-index: 30;
}
/* Le bouton (56 px à 20 px du bas) ne cache pas la dernière ligne du pied de page : espace en bas, tant que la largeur
   ne laisse pas le bouton à côté du contenu (1200 px + 2 × 76 px). */
@media (max-width: 1400px) {
	body:has(.aqf-float) .ftr { padding-block-end: 92px; }
}

/* =========================================================================
   Astra : neutralisation de ce qui n'est pas dans les maquettes
   ====================================================================== */
.site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ast-plain-container #primary,
.ast-plain-container.ast-no-sidebar #primary { margin: 0; padding: 0; }
.aqf-fullwidth .site-content .ast-container,
.aqf-fullwidth #primary { max-width: none; width: 100%; padding: 0; margin: 0; }
.aqf-fullwidth .entry-content > * { max-width: none; margin-block: 0; }
.aqf-fullwidth .entry-content .wp-block-group { margin-block: 0; }
.aqf-fullwidth .site-main,
.aqf-fullwidth .site-main > article { margin: 0 !important; padding: 0 !important; }
.aqf-fullwidth .entry-content { margin: 0; }
/* Astra ajoute un padding aux groupes de premier niveau : les sections posent le leur. */
.aqf-fullwidth .entry-content > .wp-block-group { padding: 0; }
.aqf-fullwidth .entry-content > .sec { padding-block: 72px; }
.aqf-fullwidth .entry-content > .sec.pt0 { padding-top: 0; }
.aqf-fullwidth .entry-content > .page-intro { padding-block: 48px 24px; }
.aqf-fullwidth .entry-content .wp-block-group.wrap { padding-inline: 24px; }
.ast-scroll-to-top-right, #ast-scroll-top { display: none !important; }

/* Composants : pas de soulignement ni de marges d'Astra (les textes courants gardent les leurs). */
a.tile, .tile a, .chip, .link, .link-arrow a, .d-item, .d-item *, .badge, .subcats a,
.wp-block-button__link, .btn, .clist a, .crumbs a, .hdr a, .ftr a, .aqf-btn,
.entry-content a.tile, .entry-content .chip, .entry-content .d-item, .entry-content .link-arrow a, .entry-content .clist a {
	text-decoration: none;
}
.aqf-fullwidth .entry-content :is(.card, .sec-head, .sec-head > div, .pros, .pros > div, .pros-cta, .atout, .atout > div, .hero-grid > div) > * {
	margin-block: 0;
}
.aqf-fullwidth .entry-content .sec-head > div > * + * { margin-top: 8px; }
.aqf-fullwidth .entry-content .pros > div > p { margin-top: 10px; }
.aqf-fullwidth .entry-content .pros > div > ul { margin-top: 18px; }
.aqf-fullwidth .entry-content .hero-grid > div > h1 { margin-block: 14px 18px; }
.aqf-fullwidth .entry-content .hero-grid > div > .ctas { margin-top: 32px; }

/* Pages de contenu (À propos, Contact, mentions…) */
.page-intro { padding-block: 48px 24px; }
.page-intro h1 { font-size: 40px; line-height: 1.15; margin: 0; }
.page-intro .sub { font-size: 17px; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; }
.signature { font-size: 22px; font-weight: 600; color: var(--blue); }

/* Carte Google Maps chargée au clic */
.aqf-map { background: var(--surface); border-radius: 10px; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; }
.aqf-map iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.aqf-map p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* =========================================================================
   WooCommerce : fil d'Ariane, fiche produit
   ====================================================================== */
.crumbs { font-size: 14px; color: var(--muted); padding-block: 18px; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.crumbs a { color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.woocommerce .woocommerce-breadcrumb.crumbs { margin: 0; color: var(--muted); }
/* Même rendu avant et après l'ajout de la classe « woocommerce-js » par WooCommerce (script en bas de page) : la règle
   d'Astra « .woocommerce-js .woocommerce-breadcrumb » (padding 0, .92em, #777) faisait remonter la page de 18 px (CLS). */
body .woocommerce-breadcrumb.crumbs { padding-block: 18px; margin: 0; font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-breadcrumb.crumbs a,
.woocommerce-page .woocommerce-breadcrumb.crumbs a { color: var(--teal-ink); }

.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 64px; }
.pp .pp-gal .woocommerce-product-gallery,
.pp .summary,
.woocommerce div.product .pp div.images,
.woocommerce div.product .pp div.summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	opacity: 1 !important;
}
.pp > * { min-width: 0; }
/* Galerie de la fiche (gabarit woocommerce/single-product/product-image.php) : bande à défilement horizontal
   (scroll-snap, on glisse d'une photo à l'autre), cadres 4:3 réservés dès le premier rendu (aucun décalage), images
   entières (contain, jamais recadrées), vignettes sur 4 colonnes, image affichée soulignée (aria-pressed). */
.aqf-gal .gal-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	border-radius: 10px;
	background: var(--surface);
}
.aqf-gal .gal-track::-webkit-scrollbar { display: none; }
.aqf-gal .gal-main {
	position: relative; /* texte « Agrandir l'image » (absolu) gardé dans la bande : sinon la page déborde */
	display: block;
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	aspect-ratio: 4 / 3;
	background: var(--surface);
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}
.aqf-gal .gal-main.woocommerce-product-gallery__image--placeholder { cursor: default; }
.woocommerce div.product div.images.aqf-gal img,
.aqf-gal img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
	margin: 0;
}
.aqf-gal .gal-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}
.aqf-gal .gal-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	min-height: 44px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--surface);
	overflow: hidden;
	cursor: pointer;
}
.aqf-gal .gal-thumb:hover { border-color: var(--line); }
.aqf-gal .gal-thumb[aria-pressed="true"] { border-color: var(--teal-ink); }
.aqf-gal .gal-thumb:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
/* Photo en grand (theme.js) : image entière sur fond sombre, bouton Fermer. */
.aqf-zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.aqf-zoom::backdrop { background: rgba(8, 18, 48, .92); }
.aqf-zoom img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.aqf-zoom button {
	position: fixed;
	top: 12px;
	inset-inline-end: 12px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.aqf-zoom button:focus-visible { outline: 3px solid #6BD0D5; outline-offset: 2px; }
/* Mention « Photo d'illustration » sous l'image principale de la fiche. */
.illus-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge {
	background: #E4F6F7;
	color: var(--teal-ink);
	font-weight: 600;
	font-size: 13px;
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
}
.woocommerce div.product .pp .product_title,
.pp h1 { font-size: 40px; line-height: 1.15; margin-block: 12px; font-weight: 600; color: var(--ink); }
.short,
.woocommerce div.product .pp .woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; }
.woocommerce-product-details__short-description p { margin: 0; }

/* Tableau technique du plugin */
.aqf-specs { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 15px; border: 0; }
.aqf-specs th, .aqf-specs td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.aqf-specs th { text-align: start; font-weight: 600; color: var(--muted); width: 38%; vertical-align: top; padding-inline-end: 16px; }
.aqf-specs td { font-weight: 600; }

/* CTA du plugin */
.aqf-btn { font-family: inherit; }
.aqf-cta { display: grid; gap: 10px; margin: 24px 0 0; justify-items: start; }
.aqf-choice { display: grid; gap: 8px; width: 100%; margin-bottom: 10px; }
.aqf-choice > span { font-weight: 600; font-size: 15px; color: var(--ink); }
.aqf-choice-select {
	min-height: 48px;
	border: 1px solid #A9B4CA;
	border-radius: var(--r);
	padding: 0 14px;
	font: inherit;
	background: #fff;
	color: var(--ink);
	width: 100%;
	max-width: none;
}
.aqf-hint { font-size: 13px; color: var(--muted); }
.aqf-cta .aqf-btn-wa {
	width: 100%;
	min-height: 56px;
	font-size: 17px;
	border-radius: var(--r);
	background: var(--wa);
	color: #fff;
	gap: 10px;
}
.aqf-cta .aqf-btn-wa::before,
.aqf-sticky .aqf-btn-wa::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-wa) center / contain no-repeat; mask: var(--i-wa) center / contain no-repeat; }
.aqf-cta .aqf-btn-call {
	border: 0;
	padding: 0;
	min-height: 44px;
	color: var(--blue);
	gap: 8px;
}
.aqf-btn-call::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
ul.reass { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.reass li { display: flex; gap: 10px; align-items: center; margin: 0; }
.reass li::before { --ic: var(--i-check); color: var(--teal-ink); }

.desc { max-width: 760px; }
.desc h2 { font-size: 26px; margin: 0 0 12px; }
.desc p { margin: 0 0 1em; }

/* Barre fixe mobile du plugin */
.aqf-sticky { border-top: 1px solid var(--line); box-shadow: none; padding: 10px 12px; }
.aqf-sticky .aqf-btn { min-height: 52px; border-radius: var(--r); font-weight: 600; }
.aqf-sticky .aqf-btn-wa { background: var(--wa); color: #fff; }
.aqf-sticky .aqf-btn-call { border: 1px solid var(--blue); color: var(--blue); background: #fff; }

/* Archives : en-tête de catégorie */
.cat-head { padding-block: 8px 32px; }
.cat-head h1 { font-size: 40px; line-height: 1.15; margin: 0; }
.cat-head .term-description { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 46em; }
.cat-head .term-description p { margin: 0; }
.subcat-tiles { margin-bottom: 40px; }
.gamme-fam + .gamme-fam { margin-top: 48px; }
.gamme-fam h2 { font-size: 26px; margin: 0 0 20px; }
/* Sections de la famille Sdader et salons (croquis du client, 2 novembre 2026) : grande image entière (contain, jamais
   recadrée) sur le fond des images, puis les produits de la section. */
.fam-sec + .fam-sec { margin-top: 56px; }
.fam-sec h2 { font-size: 26px; margin: 0 0 16px; }
.fam-sec h2 a { color: var(--ink); text-decoration: none; }
/* Sous-titres de section (accueil, bloc Sdader et salons ; /produits/ filtrée) : nom de la section, lien vers sa page. */
/* Vrais titres de section : plus grands que le nom des cartes (19 px, 16 px sur mobile), sans soulignement, flèche vers
   la page de la section (← en arabe), au moins 32 px au-dessus de chaque section sauf la première. */
.sous-sec, .cat-sec-titre h3 { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 14px; }
.sous-sec:not(:first-of-type) { margin-top: 40px; }
.sous-sec a, .entry-content .sous-sec a, .cat-sec-titre h3 a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.sous-sec a::after, .cat-sec-titre h3 a::after { content: "→"; content: "→" / ""; color: var(--teal-ink); font-weight: 400; transition: transform .15s; }
[dir="rtl"] .sous-sec a::after, [dir="rtl"] .cat-sec-titre h3 a::after { content: "←"; content: "←" / ""; }
.sous-sec a:hover::after, .cat-sec-titre h3 a:hover::after { transform: translateX(3px); }
[dir="rtl"] .sous-sec a:hover::after, [dir="rtl"] .cat-sec-titre h3 a:hover::after { transform: translateX(-3px); }
.cat-grid > .cat-sec-titre { grid-column: 1 / -1; list-style: none; margin: 20px 0 -6px; padding: 0; } /* 20 + 20 de la grille = 40 px */
.cat-grid > .cat-sec-titre:first-child { margin-top: 0; }
.sec-img { display: flex; justify-content: center; margin: 0 0 24px; padding: 16px; background: var(--surface); border-radius: 10px; }
.sec-img img { display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0; }
.woocommerce-pagination { margin-top: 32px; }

/* =========================================================================
   Zones cliquables d'au moins 44 px (la mise en page ne bouge pas :
   padding compensé par une marge négative)
   ====================================================================== */
.ftr ul { gap: 0; }
.ftr ul a,
.crumbs a,
.tile h2 a, .tile h3 a,
.gamme-fam h2 a,
.badges a,
.clist li strong a,
.pros-cta p a {
	display: inline-block;
	padding-block: 12px;
	margin-block: -12px;
}
.ftr ul li { padding-block: 4px; }
.ftr ul a { padding-block: 11px; margin-block: -7px; min-width: 44px; }
.badges { min-height: 44px; }
.subcats a { min-height: 44px; }
.acts .btn, .acts .btn-icon { min-height: 44px !important; box-sizing: border-box; }

/* Tablette (761–1023 px) : en-tête du mobile (menu burger), logo de 84 px, bouton WhatsApp en icône seule
   (numéro gardé pour les lecteurs d'écran) ; sinon menu, recherche, langue et WhatsApp ne tiennent pas sur la ligne. */
@media (min-width: 761px) and (max-width: 1023px) {
	.hdr .wrap { gap: 14px; }
	.nav { display: none; }
	.hdr-search { margin-inline-start: auto; }
	.btn-hdr { min-width: 44px; padding-inline: 12px; justify-content: center; }
	.btn-hdr .ltr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--blue); background: transparent; color: var(--blue); padding: 0; }
	.hdr.is-open .nav { display: block; position: absolute; inset-inline: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 32px 16px; }
	.hdr.is-open .nav ul { flex-direction: column; gap: 0; }
	.hdr.is-open .nav a { display: flex; align-items: center; min-height: 48px; }
}

/* =========================================================================
   Mobile (≤ 760 px) : mêmes composants, empilés
   ====================================================================== */
@media (max-width: 760px) {
	.wrap { padding-inline: 16px; }
	.hdr .wrap { min-height: 72px; gap: 10px; }
	.hdr .logo img { height: 56px; }
	html { scroll-padding-top: 80px; }
	.nav, .btn-hdr { display: none; }
	.hdr .wrap { gap: 8px; }
	.hdr-search { margin-inline-start: auto; }
	.lang { padding: 0 10px; }
	.burger {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border-radius: var(--r);
		border: 1px solid var(--blue);
		background: transparent;
		color: var(--blue);
		padding: 0;
	}
	.hdr.is-open .nav {
		display: block;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		background: var(--white);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		padding: 8px 16px 16px;
	}
	.hdr.is-open .nav ul { flex-direction: column; gap: 0; }
	.hdr.is-open .nav a { display: flex; align-items: center; min-height: 48px; }
	.cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.cat-chips::-webkit-scrollbar { display: none; }
	.cat-search input[type="search"] { font-size: 16px; }
	.hero .hero-grid { grid-template-columns: 1fr; padding-block: 28px 92px; gap: 24px; }
	.banniere .hero-grid { grid-template-columns: 1fr; padding-block: 16px 76px; gap: 20px; }
	.banniere .hero-slider { order: -1; }
	/* Haut de page : bouton « Voir nos produits » visible sans défiler à 360 × 640 (image recadrée en 16:9, titre réduit). */
	.banniere .hero-img img { aspect-ratio: 16 / 9; object-position: 50% 70%; }
	.banniere .hero-img.hs-affiche { aspect-ratio: 16 / 9; }
	.banniere .hero-grid { gap: 16px; }
	.hero.banniere h1 { font-size: 29px; margin-block: 0 10px; }
	.aqf-fullwidth .entry-content .banniere .hero-grid > div > h1 { margin-block: 0 10px; }
	.banniere .lead { font-size: 16px; line-height: 1.5; }
	.aqf-fullwidth .entry-content .banniere .hero-grid > div > .ctas { margin-top: 16px; }
	.aqf-fullwidth .entry-content .banniere .hero-wa { margin-top: 6px; }
	/* En-têtes des sections de produits : lien « Voir tous les… » toujours sous le titre. */
	.hprod .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	/* Carte Contact : bouton WhatsApp sur toute la largeur. */
	.hcontact .wp-block-buttons, .hcontact .wp-block-button, .hcontact .wp-block-button__link { width: 100%; }
	.acts .aqf-card-wa { width: 100%; }
	.aqf-fullwidth .entry-content > .sec.hfams-sec, .hfams-sec { padding-top: 0; }
	.hfams { grid-template-columns: 1fr; gap: 12px; }
	.hfam { flex-direction: row; align-items: center; min-height: 96px; }
	.hfam-ph { flex: none; width: 42%; }
	.hfam-bd { padding: 12px 48px 12px 16px; padding-inline: 16px 48px; }
	.aqf-fullwidth .entry-content .hfam h3 { font-size: 19px; }
	.hfam .hfam-go { bottom: auto; top: 50%; transform: translateY(-50%); inset-inline-end: 16px; }
	[dir="rtl"] .hfam .hfam-go { transform: translateY(-50%) scaleX(-1); }
	.aqf-fullwidth .entry-content > .sec.hprod, .hprod { padding-bottom: 40px; }
	.atouts.atouts3 .atouts-grid { grid-template-columns: 1fr; gap: 16px; }
	.hero h1 { font-size: 34px; }
	.lead { font-size: 17px; }
	.ctas .wp-block-button, .ctas .wp-block-button__link { width: 100%; }
	.atouts .atouts-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 4px 32px; }
	.sec, .aqf-fullwidth .entry-content > .sec { padding-block: 48px; }
	.aqf-fullwidth .entry-content > .sec.pt0 { padding-top: 0; }
	.aqf-fullwidth .entry-content .wp-block-group.wrap { padding-inline: 16px; }
	.sec h2, .sec-head h2 { font-size: 26px; }
	.sec-head { margin-bottom: 24px; }
	.grid4, ul.products.grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.grid2 { grid-template-columns: 1fr; gap: 12px; }
	.tile .ph { padding: 12px; }
	.tile .ph img { max-height: 110px; }
	.ph-avenir { font-size: 13px; }
	.tile .bd { padding: 14px; }
	.tile h2, .tile h3,
	.woocommerce ul.products li.product.tile h3,
	.woocommerce-page ul.products li.product.tile h3 { font-size: 16px; }
	.fam-tile h2 { font-size: 20px; }
	.fam-tile .ph, .subcat-tiles .tile .ph { height: 140px; }
	.fam-sec + .fam-sec { margin-top: 40px; }
	.fam-sec h2 { font-size: 22px; margin-bottom: 12px; }
	.sec-img { padding: 12px; margin-bottom: 16px; }
	.sec-img img { max-height: 70vh; max-height: 70svh; } /* image entière, les produits suivent juste dessous */
	.sous-sec, .cat-sec-titre h3 { font-size: 21px; }
	.sous-sec:not(:first-of-type) { margin-top: 36px; }
	.cat-grid > .cat-sec-titre { margin-top: 24px; } /* 24 + 12 de la grille = 36 px */
	.acts { flex-direction: column; }
	.acts .btn-icon { width: 100%; }
	.dens { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
	.d-box { height: 140px; }
	.pros { grid-template-columns: 1fr; padding: 28px 22px; }
	.pros-cta, .pros-cta .wp-block-button, .pros-cta .wp-block-button__link { width: 100%; }
	.two { grid-template-columns: 1fr; }
	.ftr .cols { grid-template-columns: 1fr 1fr; }
	.ftr .brand { grid-column: 1 / -1; }
	/* Fiche sur mobile : caractéristiques et bouton WhatsApp plus près de la galerie. */
	.pp { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
	.aqf-gal .gal-thumbs { gap: 8px; margin-top: 8px; }
	.woocommerce div.product .pp .product_title, .pp h1 { font-size: 30px; margin-block: 8px 6px; }
	.aqf-specs { margin-top: 16px; }
	.aqf-specs th, .aqf-specs td { padding-block: 10px; }
	.aqf-cta .aqf-btn-call { display: none; }
	body.single-product { padding-bottom: 76px; }
	.page-intro h1, .cat-head h1 { font-size: 30px; }
	.btn, .wp-block-button .wp-block-button__link { white-space: normal; text-align: center; }
}
