/* Surcharges WooCommerce pour l'identité « l'Agence de ceux qui n'en ont pas ».
   Conservatrices : on apporte la palette, les polices et le bouton primaire
   sans démonter la structure du thème parent ni de WooCommerce. */

:root {
	--apa-bleu:          #1b3a6b;
	--apa-bleu-clair:    #2f5fa3;
	--apa-corail:        #ef5a4c;
	--apa-corail-fonce:  #d8412f;
	--apa-vert:          #1e9e6a;
	--apa-papier:        #f4f1ea;
	--apa-carte:         #ffffff;
	--apa-texte:         #14202d;
	--apa-texte-doux:    #5b6675;
}

.woocommerce,
.woocommerce-page {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--apa-texte);
}

.woocommerce h1,
.woocommerce h2,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--apa-font-display, 'Poppins', 'Inter', system-ui, sans-serif) !important;
	color: var(--apa-bleu);
}

/* ---- Catalogue (archive produits) ---------------------------------- */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	line-height: 1.25;
	padding: 8px 0 4px;
}

.woocommerce ul.products li.product .price,
.woocommerce-Price-amount {
	color: var(--apa-bleu) !important;
	font-weight: 600;
}

/* ---- Bouton « Personnaliser » sur la fiche produit ----------------- */

.apa-personnaliser-form {
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.apa-personnaliser-form .apa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: 12px;
	border: 0;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	font-family: inherit;
	min-height: 48px;
}
.apa-personnaliser-form .apa-btn-primary {
	background: var(--apa-orange, #f7864a);
	color: #fff;
	box-shadow: 0 2px 8px rgba(247,134,74,.35);
}
.apa-personnaliser-form .apa-btn-primary:hover {
	background: var(--apa-orange-fonce, #e36a2e);
}
.apa-personnaliser-form .apa-btn-block {
	width: 100%;
	max-width: 360px;
}
/* 2e voie : importer son propre fichier (fonctionnalité à venir) — bouton
   BLEU (charte), pour se distinguer du CTA orange « Créer avec l'IA ».
   Ouvre le popup « bientôt disponible ». */
.apa-personnaliser-form .apa-btn-secondary {
	background: var(--apa-bleu, #1b3a6b);
	color: #fff;
	box-shadow: 0 2px 8px rgba(27,58,107,.28);
}
.apa-personnaliser-form .apa-btn-secondary:hover {
	background: var(--apa-bleu-clair, #2f5fa3);
}

/* ---- Popup « bientôt disponible » (bouton d'import) ---------------- */
.apa-soon-modal[hidden] { display: none; }
.apa-soon-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.apa-soon-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 30, 50, .55);
}
.apa-soon-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 28px 26px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.apa-soon-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.apa-soon-box h3 {
	margin: 0 0 10px;
	font-family: var(--apa-font-display, "Poppins"), sans-serif;
	color: var(--apa-bleu, #1b3a6b);
	font-size: 1.3rem;
}
.apa-soon-box p {
	margin: 0 0 20px;
	color: #4b5563;
	font-size: .95rem;
	line-height: 1.5;
}
/* Bouton du popup : hors .apa-personnaliser-form, donc styles autonomes. */
.apa-soon-box .apa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 46px;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	background: var(--apa-orange, #f7864a);
	color: #fff;
}
.apa-soon-box .apa-btn:hover { background: var(--apa-orange-fonce, #e36a2e); }

.apa-personnaliser-incluses {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 14px;
	color: var(--apa-vert);
	font-size: .9rem;
}
.apa-personnaliser-incluses span { white-space: nowrap; }
/* Sur la fiche refondue (.apa-product-page), on n'utilise plus la liste
   .apa-personnaliser-incluses sous le CTA — la liste détaillée
   .apa-product-included prend le relais. On masque pour éviter la
   redite. */
.apa-product-page .apa-personnaliser-incluses { display: none; }

/* ===== Fiche produit refondue (e-commerce classique) ===================
   Mise en page : image grande à gauche, infos à droite. Charte Poppins
   pour titre/CTA, couleurs marque, mobile-first. */

/* Conteneur centré, force le centrage contre toute règle parente
   héritée du block theme ou des CSS legacy WC. Le wrapper
   .apa-classic-wrap (header.php) n'a pas de largeur définie ; on
   garantit qu'il ne contraint rien et que la fiche se centre dans
   la viewport. */
body.apa-classic-wrap,
.apa-classic-wrap {
	width: 100%;
}
body.single-product .apa-product-page {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 24px 16px 64px;
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--apa-texte, #14202d);
}
@media (min-width: 720px) {
	body.single-product .apa-product-page { padding: 32px 24px 80px; }
}

/* Fil d'Ariane sobre */
.apa-product-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0 0 18px;
	font-size: .85rem;
	color: var(--apa-texte-doux, #5b6675);
}
.apa-product-crumbs a {
	color: var(--apa-bleu, #1b3a6b);
	text-decoration: none;
}
.apa-product-crumbs a:hover { text-decoration: underline; }
.apa-product-crumbs-sep { opacity: .55; }
.apa-product-crumbs-current { color: var(--apa-texte); }

/* Grille 2 colonnes desktop, 1 colonne mobile */
.apa-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.06);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 4px 18px rgba(27,58,107,.06);
}
@media (min-width: 880px) {
	.apa-product-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
		padding: 32px;
	}
}

/* Colonne image */
.apa-product-media {
	background: var(--apa-vignette-bg, #eef0f4);
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.apa-product-media img,
.apa-product-media .apa-product-media-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.apa-product-media .apa-product-thumb,
.apa-product-media .apa-thumb-svg {
	width: 100%;
	height: 100%;
}

/* Colonne infos */
.apa-product-summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.apa-product-eyebrow {
	margin: 0;
	font-family: var(--apa-font-menu, 'Poppins', 'Inter', system-ui, sans-serif);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--apa-bleu, #1b3a6b);
	opacity: .75;
	font-weight: 700;
}
.apa-product-title {
	margin: 0;
	font-family: var(--apa-font-display, 'Poppins', 'Inter', system-ui, sans-serif);
	font-size: 1.7rem;
	line-height: 1.15;
	color: var(--apa-bleu, #1b3a6b);
}
@media (min-width: 720px) {
	.apa-product-title { font-size: 2.1rem; }
}
.apa-product-desc {
	margin: 0;
	color: var(--apa-texte);
	font-size: 1rem;
	line-height: 1.5;
}

/* Formats : pastilles bleu doux */
.apa-product-formats {
	padding: 14px 16px;
	background: var(--apa-vignette-bg, #eef0f4);
	border-radius: 12px;
}
.apa-product-formats-label {
	display: block;
	font-family: var(--apa-font-menu, 'Poppins', 'Inter', system-ui, sans-serif);
	font-size: .76rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--apa-bleu, #1b3a6b);
	font-weight: 700;
	margin-bottom: 8px;
}
.apa-product-formats-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.apa-product-formats-pill {
	background: #fff;
	border: 1px solid rgba(27,58,107,.16);
	color: var(--apa-bleu, #1b3a6b);
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: .88rem;
}
.apa-product-formats-hint { margin: 8px 0 0; color: var(--apa-texte-doux); }

/* Prix */
.apa-product-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 0;
	border-top: 1px dashed rgba(0,0,0,.08);
	border-bottom: 1px dashed rgba(0,0,0,.08);
}
.apa-product-price-label {
	font-size: .85rem;
	color: var(--apa-texte-doux);
	font-family: var(--apa-font-menu, 'Poppins', 'Inter', system-ui, sans-serif);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.apa-product-price-value {
	font-family: var(--apa-font-display, 'Poppins', 'Inter', system-ui, sans-serif);
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--apa-bleu, #1b3a6b);
}
.apa-product-price-value .woocommerce-Price-amount,
.apa-product-price-value .amount {
	color: inherit !important;
}

/* Services inclus — liste à check verts */
.apa-product-included {
	list-style: none;
	margin: 0;
	padding: 16px 18px;
	background: rgba(30,158,106,.07);
	border: 1px solid rgba(30,158,106,.18);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: .92rem;
}
.apa-product-included li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	line-height: 1.4;
}
.apa-product-included strong { color: var(--apa-bleu, #1b3a6b); }

/* Description longue */
.apa-product-long {
	margin: 32px 0 0;
	padding: 20px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.06);
	border-radius: 16px;
}
.apa-product-long h2 {
	margin: 0 0 12px;
	font-family: var(--apa-font-display, 'Poppins', 'Inter', system-ui, sans-serif);
	color: var(--apa-bleu, #1b3a6b);
	font-size: 1.25rem;
}
.apa-product-long p { margin: 0 0 .8em; }
.apa-product-long p:last-child { margin-bottom: 0; }

/* ===== Cache les wrappers WC qui pourraient doubler le rendu ======== */
.apa-product-page + .woocommerce-product-gallery,
.apa-product-page + .summary,
.apa-product-page ~ .product_meta,
.apa-product-page ~ .related,
.apa-product-page ~ .upsells {
	display: none !important;
}

/* ---- Cacher le formulaire d'ajout classique --------------------- */

/* Notre apa_entree_boutique_replace_add_to_cart() retire l'action
   PHP, mais certains thèmes/templates de blocs ré-injectent le bouton ;
   on planque la version classique au cas où. */
.single-product .quantity,
.single-product .cart .single_add_to_cart_button {
	display: none !important;
}
