/* JCE – styles du site (Astra). Couleurs reprises du logo et de l'enseigne. */
:root {
	--jce-marine: #0b2a6f;
	--jce-bleu: #1565d8;
	--jce-ciel: #4fb3f6;
	--jce-ciel-clair: #e8f4fe;
	--jce-rouge: #d7263d;
	--jce-encre: #1b2333;
	--jce-gris: #5b6577;
	--jce-trait: #dde5ef;
	--jce-wa: #25d366;
	--jce-wa-fonce: #128c4a;
	--jce-rayon: 12px;
}

body { color: var(--jce-encre); }
a { color: var(--jce-bleu); }
h1, h2, h3, h4, .entry-title { color: var(--jce-marine); }

/* ---------- En-tête ---------- */
.ast-primary-header-bar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--jce-ciel), var(--jce-bleu), var(--jce-marine)) 1; }
.main-header-menu .menu-link { font-weight: 600; color: var(--jce-marine); }
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-link:hover { color: var(--jce-bleu); }
.custom-logo-link img { max-height: 64px; width: auto; }
@media (max-width: 921px) { .custom-logo-link img { max-height: 52px; } }
.site-title, .site-title a { color: var(--jce-marine) !important; font-weight: 800; letter-spacing: .01em; }
@media (max-width: 544px) { .site-title { font-size: 17px !important; white-space: nowrap; } .ast-site-identity { padding: 8px 0; } }

/* ---------- Boutons ---------- */
.jce-bouton, .jce-form button {
	display: inline-flex; align-items: center; gap: .55em;
	background: var(--jce-bleu); color: #fff !important; font-weight: 700;
	padding: 13px 22px; border-radius: 999px; border: 0; text-decoration: none !important; line-height: 1.2;
	cursor: pointer; transition: background .15s, transform .15s;
}
.jce-bouton:hover, .jce-form button:hover { background: var(--jce-marine); }
.jce-bouton--wa { background: var(--jce-wa-fonce); }
.jce-bouton--wa:hover { background: #0e6e3a; }
.jce-bouton--clair { background: #fff; color: var(--jce-marine) !important; }
.jce-bouton--clair:hover { background: var(--jce-ciel-clair); }
.jce-bouton svg { flex: none; }

/* Boutons WhatsApp du kit (fiche, liste, flottant) : contraste suffisant */
.jce-wa-btn { background: var(--jce-wa-fonce) !important; border-radius: 999px !important; }
.jce-wa-btn:hover { background: #0e6e3a !important; }
.jce-wa-btn--small { display: block !important; text-align: center; margin: 10px 0 4px !important; font-size: 14px !important; }
.jce-wa-float { background: var(--jce-wa-fonce) !important; display: inline-flex; align-items: center; gap: 8px; }
.jce-wa-float::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 544px) {
	.jce-wa-float { right: 12px !important; bottom: 12px !important; padding: 13px 15px !important; }
}

/* ---------- Sections de page ---------- */
.jce-section { padding: 56px 20px; }
.jce-section--ciel { background: var(--jce-ciel-clair); }
.jce-section--marine { background: var(--jce-marine); color: #fff; }
.jce-section--marine h2 { color: #fff; }
.jce-int { max-width: 1200px; margin: 0 auto; }
.jce-section h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 8px; }
.jce-section__chapo { color: var(--jce-gris); margin: 0 0 28px; max-width: 680px; }
.jce-section--marine .jce-section__chapo { color: #d6e4f8; }
.jce-surtitre { display: inline-block; color: var(--jce-rouge); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 6px; }

/* Bannière d'accueil */
.jce-hero {
	background: linear-gradient(135deg, #bfe3fd 0%, var(--jce-ciel) 38%, var(--jce-bleu) 72%, var(--jce-marine) 100%);
	color: #fff; padding: 56px 20px 48px; overflow: hidden;
}
.jce-hero .jce-int { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.jce-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(11,42,111,.25); }
.jce-hero p { font-size: 1.12rem; max-width: 560px; margin: 0 0 24px; color: #f2f8ff; }
.jce-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jce-hero__visuel { display: flex; justify-content: center; gap: 12px; align-items: flex-end; }
.jce-hero__visuel img { width: 31%; height: auto; border-radius: var(--jce-rayon); box-shadow: 0 12px 28px rgba(5,20,60,.35); background: #fff; }
.jce-hero__visuel img:nth-child(2) { width: 36%; }
@media (max-width: 800px) {
	.jce-hero { padding: 36px 16px 32px; }
	.jce-hero .jce-int { grid-template-columns: 1fr; }
	.jce-hero__visuel { order: -1; }
	.jce-hero__visuel img { width: 28%; }
	.jce-hero__visuel img:nth-child(2) { width: 32%; }
}

/* Bandeau gros et détail */
.jce-bandeau { background: var(--jce-rouge); color: #fff; text-align: center; padding: 14px 16px; font-weight: 700; letter-spacing: .03em; }
.jce-bandeau span { opacity: .9; font-weight: 500; }

/* Grille des catégories */
.jce-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 921px) { .jce-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.jce-cat {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jce-trait);
	border-radius: var(--jce-rayon); overflow: hidden; text-decoration: none !important; color: var(--jce-marine);
	transition: box-shadow .15s, transform .15s;
}
.jce-cat:hover { box-shadow: 0 8px 22px rgba(11,42,111,.12); transform: translateY(-2px); }
.jce-cat__img { background: #fff; display: block; }
.jce-cat__img img { display: block; width: 100%; height: auto !important; aspect-ratio: 1; object-fit: contain; padding: 10px; }
.jce-cat__nom { font-weight: 700; padding: 10px 12px 2px; line-height: 1.25; }
.jce-cat__nb { color: var(--jce-gris); font-size: .85rem; padding: 0 12px 12px; }

/* Gamme JCE */
.jce-gamme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .jce-gamme { grid-template-columns: 1fr; } }
.jce-gamme__item { background: #fff; color: var(--jce-encre); border-radius: var(--jce-rayon); overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; }
.jce-gamme__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 12px; }
.jce-gamme__item div { padding: 14px 16px 18px; border-top: 4px solid var(--jce-ciel); }
.jce-gamme__item strong { display: block; color: var(--jce-marine); font-size: 1.15rem; }
.jce-gamme__item span { color: var(--jce-gris); }

/* Pourquoi JCE */
.jce-atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .jce-atouts { grid-template-columns: 1fr; } }
.jce-atouts li { background: #fff; border: 1px solid var(--jce-trait); border-radius: var(--jce-rayon); padding: 22px; border-top: 4px solid var(--jce-bleu); }
.jce-atouts strong { display: block; color: var(--jce-marine); font-size: 1.1rem; margin-bottom: 6px; }
.jce-atouts p { margin: 0; color: var(--jce-gris); }

/* Contact (accueil et page Contact) */
.jce-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .jce-contact { grid-template-columns: 1fr; } }
.jce-coord { list-style: none; margin: 0 0 18px; padding: 0; }
.jce-coord li { padding: 8px 0; border-bottom: 1px solid var(--jce-trait); }
.jce-coord__lib { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--jce-gris); }
.jce-carte { position: relative; aspect-ratio: 4 / 3; border-radius: var(--jce-rayon); overflow: hidden;
	background: linear-gradient(135deg, var(--jce-ciel-clair), #cfe6fb); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.jce-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jce-carte__btn { background: var(--jce-marine); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.jce-carte__note { margin: 0; font-size: .85rem; color: var(--jce-gris); }
.jce-carte.is-chargee .jce-carte__note { display: none; }

/* Formulaire */
.jce-form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--jce-marine); }
.jce-form input, .jce-form textarea { width: 100%; border: 1px solid #b9c6d8; border-radius: 8px; padding: 11px 12px; font-size: 16px; background: #fff; }
.jce-form input:focus, .jce-form textarea:focus { outline: 2px solid var(--jce-ciel); border-color: var(--jce-bleu); }
.jce-form p { margin: 0 0 14px; }
.jce-form__note { font-size: .85rem; color: var(--jce-gris); }
.jce-form__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jce-alerte { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.jce-alerte--ok { background: #e3f7ea; color: #0d5c2d; }
.jce-alerte--erreur { background: #fde8eb; color: #8a1424; }

/* ---------- Catalogue ---------- */
.jce-filtres { margin: 0 0 24px; }
.jce-recherche { display: flex; gap: 8px; margin-bottom: 14px; max-width: 560px; }
.jce-recherche input[type=search] { flex: 1; min-width: 0; border: 1px solid #b9c6d8; border-radius: 999px; padding: 11px 16px; font-size: 16px; }
.jce-recherche button { background: var(--jce-bleu); color: #fff; border: 0; border-radius: 999px; padding: 0 18px; font-weight: 700; }
.jce-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.jce-puces a { border: 1px solid var(--jce-trait); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .9rem; color: var(--jce-marine); text-decoration: none; font-weight: 600; }
.jce-puces a:hover { border-color: var(--jce-bleu); }
.jce-puces a[aria-current] { background: var(--jce-marine); border-color: var(--jce-marine); color: #fff; }
@media (max-width: 600px) {
	.jce-puces { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.jce-puces a { white-space: nowrap; }
}

/* Cartes produits : photo entière sur fond blanc */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: #fff; border: 1px solid var(--jce-trait); border-radius: var(--jce-rayon); padding: 10px 10px 12px; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; width: 100%; background: #fff; margin-bottom: 8px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--jce-marine); font-size: 1rem; line-height: 1.3; }
.woocommerce ul.products li.product .ast-woo-product-category { color: var(--jce-gris); font-size: .78rem; }
@media (max-width: 544px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; }
	.jce-wa-btn--small { padding: 8px 10px !important; }
}

/* Fiche produit */
.single-product .product_title { color: var(--jce-marine); }
.jce-marque { color: var(--jce-gris); margin: 4px 0 12px; }
.single-product div.product .woocommerce-product-details__short-description { font-size: 1.05rem; }
.single-product .woocommerce-product-gallery img { background: #fff; }

/* ---------- Pied de page ---------- */
.jce-pied { background: var(--jce-marine); color: #d6e4f8; padding: 48px 20px 28px; }
.jce-pied a { color: #fff; }
.jce-pied__grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 32px; }
@media (max-width: 800px) { .jce-pied__grille { grid-template-columns: 1fr; gap: 24px; } }
.jce-pied__titre { color: #fff; font-weight: 800; letter-spacing: .04em; margin: 0 0 10px; }
.jce-pied .jce-coord li { border-color: rgba(255,255,255,.14); }
.jce-pied .jce-coord__lib { color: #9fb6d9; }
.jce-pied__menu { list-style: none; margin: 0; padding: 0; }
.jce-pied__menu li { padding: 5px 0; }
.site-footer .ast-builder-grid-row-container, .site-below-footer-wrap { background: #071d4f !important; }
.site-below-footer-wrap, .site-below-footer-wrap a, .ast-footer-copyright, .ast-footer-copyright p { color: #9fb6d9 !important; font-size: .85rem; }

/* Pages simples (À propos, Contact, Mentions) */
.jce-texte { max-width: 760px; }
.jce-entete-page { background: linear-gradient(135deg, var(--jce-ciel) 0%, var(--jce-bleu) 60%, var(--jce-marine) 100%); color: #fff; padding: 44px 20px; }
.jce-entete-page h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.jce-entete-page p { margin: 8px 0 0; color: #eaf3ff; }
