/*
Theme Name: VeraCare Child
Theme URI: https://veracarepara.com
Description: Thème enfant de Blocksy pour VeraCare Para (parapharmacie, Agadir). Toute personnalisation passe par ce thème.
Author: VeraCare Para
Template: blocksy
Version: 1.9.0
Text Domain: veracare-child
*/

/* Titre du site en texte (pas de logo pour l'instant) */
.site-title { white-space: nowrap; font-weight: 700; }
.ct-header [data-device][data-transparent] [data-transparent-row="yes"] .site-title,
.ct-header [data-device][data-transparent] .site-title { color: #fff; --theme-link-initial-color: #fff; --theme-link-hover-color: #fff; }

/* ---- Accessibilité (audit 2026-09-14) ---- */

/* Astérisque des champs obligatoires : rouge foncé lisible (6,5:1 sur blanc) au lieu de #FF0000 */
.woocommerce form .form-row .required,
.wpforms-container .wpforms-required-label,
.wc-block-components-text-input .required,
abbr.required { color: #B3261E; text-decoration: none; }

/* Focus clavier visible sur les cases, radios et liens du tunnel de commande (panier, commande, compte) */
.wc-block-components-checkbox__input:focus-visible,
.wc-block-components-radio-control__input:focus-visible,
.woocommerce input[type="checkbox"]:focus-visible,
.woocommerce input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
	outline: 3px solid var(--theme-palette-color-1, #1B4B66) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff !important;
}

.wp-block-woocommerce-checkout a:focus-visible,
.wp-block-woocommerce-cart a:focus-visible,
.wc-block-components-checkout-step a:focus-visible,
.wc-block-checkout__terms a:focus-visible,
.woocommerce-checkout a:focus-visible,
.woocommerce-cart a:focus-visible,
.woocommerce-account a:focus-visible,
.wc-block-components-button:focus-visible,
.wc-block-components-checkout-return-to-cart-button:focus-visible {
	outline: 3px solid var(--theme-palette-color-1, #1B4B66) !important;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- Accueil : bandeau scindé en deux panneaux « univers » (2026-09-16) ----
   Seule animation autorisée du site : élargissement du panneau survolé (50 % -> 60 %) et avance de la flèche. */
.vc-univers {
	--vc-creme: #F7F5F2;
	--vc-bleu: #1B4B66;
	--vc-brun: #8A6A42;
	--vc-sable: #C8A882;
	--vc-duree: 0.55s;
	--vc-courbe: cubic-bezier(0.33, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	gap: 2px;                      /* filet de 2 px entre les panneaux */
	background: var(--vc-sable);   /* couleur du filet */
	margin-top: 0;
}

.vc-univers__panneau,
.vc-univers__panneau:hover,
.vc-univers__panneau:focus {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;     /* mobile : texte aligné en bas */
	min-height: 340px;
	padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
	overflow: hidden;
	isolation: isolate;
	text-decoration: none;
	color: var(--vc-bleu);
	background: var(--vc-creme);
	--theme-link-initial-color: var(--vc-bleu);
	--theme-link-hover-color: var(--vc-bleu);
}
.vc-univers__panneau--paramedical,
.vc-univers__panneau--paramedical:hover,
.vc-univers__panneau--paramedical:focus {
	color: var(--vc-creme);
	background: var(--vc-bleu);
	--theme-link-initial-color: var(--vc-creme);
	--theme-link-hover-color: var(--vc-creme);
}

/* Aucune transition héritée de Blocksy (a { transition }) ; l'animation n'est activée qu'à partir de 860 px */
.vc-univers .vc-univers__panneau,
.vc-univers .vc-univers__panneau:hover { transition: none; }

/* Image de fond : débord depuis le bord extérieur, environ la moitié de la surface, voile de la couleur du panneau */
.vc-univers__image {
	position: absolute;
	z-index: -1;
	top: 0; left: 0; right: 0;
	height: 58%;
	display: block;
}
.vc-univers__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	margin: 0;
	border-radius: 0;
}
.vc-univers__panneau--paramedical .vc-univers__image img { object-position: right center; }
.vc-univers__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(247, 245, 242, 0.32) 0%, rgba(247, 245, 242, 0.6) 40%, #F7F5F2 70%);
}
.vc-univers__panneau--paramedical .vc-univers__image::after {
	background: linear-gradient(to bottom, rgba(27, 75, 102, 0.32) 0%, rgba(27, 75, 102, 0.6) 40%, #1B4B66 70%);
}

/* Texte */
.vc-univers__texte {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	max-width: 34rem;
}
.vc-univers__surtitre {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--vc-brun);
}
.vc-univers__panneau--paramedical .vc-univers__surtitre { color: #D2B48C; } /* sable texte demandé par le client (2026-09-17) : 4,7:1 sur le bleu ; le #C8A882 reste pour les filets et éléments non textuels */
.vc-univers .vc-univers__titre {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 3.1rem);
	font-weight: 700;
	line-height: 1.05;
	color: inherit;
}
.vc-univers__desc {
	font-size: 1.05rem;
	line-height: 1.5;
}
.vc-univers__cta {
	margin-top: 0.5rem;
	font-weight: 600;
	white-space: nowrap;
}
.vc-univers__cta-texte {
	padding-bottom: 3px;
	border-bottom: 2px solid currentColor;   /* soulignement de 2 px */
}
.vc-univers__fleche {
	display: inline-block;
	transition: transform var(--vc-duree) var(--vc-courbe);
}
.vc-univers__panneau:hover .vc-univers__fleche { transform: translateX(6px); }

/* Focus clavier (2026-09-17) : contour 3 px en retrait, bleu sur le panneau crème, sable sur le panneau bleu */
.vc-univers__panneau:focus-visible {
	outline: 3px solid var(--vc-bleu) !important;
	outline-offset: -3px;
}
.vc-univers__panneau--paramedical:focus-visible {
	outline-color: var(--vc-sable) !important;
}

/* À partir de 860 px : côte à côte, 50/50, le panneau survolé passe à 60 % */
@media (min-width: 860px) {
	.vc-univers { flex-direction: row; }
	.vc-univers .vc-univers__panneau,
	.vc-univers .vc-univers__panneau:hover {
		flex: 1 1 50%;
		min-width: 0;
		height: clamp(460px, 62vh, 600px);
		min-height: 0;
		justify-content: center;
		padding: 3rem clamp(1.5rem, 4vw, 4rem);
		transition: flex-basis var(--vc-duree) var(--vc-courbe);
	}
	.vc-univers:hover .vc-univers__panneau { flex-basis: 40%; }
	.vc-univers .vc-univers__panneau:hover { flex-basis: 60%; }

	.vc-univers__image {
		top: 0; bottom: 0; left: 0; right: auto;
		width: 58%;
		height: auto;
	}
	.vc-univers__panneau--paramedical .vc-univers__image { left: auto; right: 0; }
	.vc-univers__image::after {
		background: linear-gradient(to right, rgba(247, 245, 242, 0.32) 0%, rgba(247, 245, 242, 0.6) 45%, #F7F5F2 78%);
	}
	.vc-univers__panneau--paramedical .vc-univers__image::after {
		background: linear-gradient(to left, rgba(27, 75, 102, 0.32) 0%, rgba(27, 75, 102, 0.6) 45%, #1B4B66 78%);
	}

	/* Texte contre le filet central : à droite dans le panneau gauche, à gauche dans le panneau droit */
	.vc-univers__texte { width: 54%; margin-left: auto; }
	.vc-univers__panneau--paramedical .vc-univers__texte { margin-left: 0; margin-right: auto; }
}

/* Mouvement réduit : aucune transition, pas d'agrandissement */
@media (prefers-reduced-motion: reduce) {
	.vc-univers .vc-univers__panneau,
	.vc-univers .vc-univers__panneau:hover,
	.vc-univers__fleche { transition: none; }
	.vc-univers:hover .vc-univers__panneau,
	.vc-univers .vc-univers__panneau:hover { flex-basis: 50%; }
}

/* ==========================================================================
   Accueil v2 (2026-09-16, message 2/2) : bande de réassurance, rayons,
   cartes produit, magasin. Scopé aux classes vc-* posées sur la page 453.
   ========================================================================== */

/* ---- 1. Bande de réassurance (fond #12232E, texte crème, icônes sable) ---- */
.vc-reassurance {
	background: #12232E;
	color: #F7F5F2;
	padding: 28px 20px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.vc-reassurance .wp-block-columns { gap: 24px; margin-bottom: 0; }
.vc-reassurance__item {
	position: relative;
	margin: 0;
	padding-left: 44px;
	font-size: 15px;
	line-height: 1.45;
	color: #F7F5F2;
}
.vc-reassurance__item strong { display: block; font-weight: 700; color: #F7F5F2; }
.vc-reassurance__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 30px;
	height: 30px;
	background-color: #C8A882;
	-webkit-mask: var(--vc-icon) center / contain no-repeat;
	mask: var(--vc-icon) center / contain no-repeat;
}
.vc-icon-livraison { --vc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.vc-icon-paiement  { --vc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.vc-icon-conseil   { --vc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-4h15L21 9M3 9v11h18V9'/%3E%3Cpath d='M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }

@media (max-width: 781.98px) {
	.vc-reassurance { padding: 24px 20px; }
	.vc-reassurance .wp-block-columns { gap: 16px; }
}

/* ---- 2. Rayons (titre bleu, ligne de contexte, lien « Voir les N références → ») ---- */
.vc-rayon { padding-top: 56px; padding-bottom: 56px; }
.vc-rayon--creme { background: #F7F5F2; }
.vc-rayon__contexte { margin-top: -8px; margin-bottom: 28px; color: #22282C; }
.vc-rayon__lien { margin-top: 28px; margin-bottom: 0; }
.vc-rayon__lien a,
.vc-magasin__lien a {
	font-weight: 600;
	color: #1B4B66;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}
.vc-rayon__lien a:hover { color: #153D54; }
.vc-rayon__lien a:focus-visible,
.vc-reassurance a:focus-visible,
.vc-magasin a:focus-visible {
	outline: 3px solid #C8A882;
	outline-offset: 3px;
}

/* ---- 3. Cartes produit ---- */
.vc-rayon [data-products] .product {
	padding: 14px 14px 18px;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.vc-rayon--blanc [data-products] .product { background: #F7F5F2; }
.vc-rayon--creme [data-products] .product { background: #FFFFFF; }
.vc-rayon [data-products] .product:hover,
.vc-rayon [data-products] .product:focus-within {
	box-shadow: 0 10px 24px rgba(18, 35, 46, .10), 0 2px 6px rgba(18, 35, 46, .06);
	transform: translateY(-3px);
}
.vc-rayon [data-products] figure .ct-media-container { border-radius: 6px; overflow: hidden; }
.vc-rayon [data-products] .entry-meta { display: none; }
.vc-rayon [data-products] .price,
.vc-rayon [data-products] .price .amount {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #22282C;
}
.vc-rayon [data-products] .product .button {
	--theme-button-background-initial-color: transparent;
	--theme-button-background-hover-color: #1B4B66;
	--theme-button-text-initial-color: #1B4B66;
	--theme-button-text-hover-color: #FFFFFF;
	--theme-button-shadow: none;
	--theme-button-transform: none;
	background: transparent;
	color: #1B4B66;
	border: 2px solid #1B4B66;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}
.vc-rayon [data-products] .product .button:hover,
.vc-rayon [data-products] .product .button:focus-visible {
	background: #1B4B66;
	color: #FFFFFF;
	border-color: #1B4B66;
}
.vc-rayon [data-products] .product .button:focus-visible {
	outline: 3px solid #C8A882;
	outline-offset: 2px;
}

/* Grille en deux colonnes sur mobile (accueil uniquement) */
@media (max-width: 689.98px) {
	.vc-rayon [data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr));
		--grid-columns-gap: 12px;
		--grid-rows-gap: 16px;
	}
	.vc-rayon [data-products] .product { padding: 10px 10px 14px; }
	.vc-rayon [data-products] .woocommerce-loop-product__title { font-size: 14px; }
	.vc-rayon [data-products] .product .button { width: 100%; --theme-button-padding: 5px 10px; font-size: 13px; }
}

/* ---- 4. Le magasin (fond bleu, texte crème, deux colonnes) ---- */
.vc-magasin {
	background: #1B4B66;
	color: #F7F5F2;
	padding: 64px 20px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.vc-magasin h2, .vc-magasin p, .vc-magasin dt, .vc-magasin dd { color: #F7F5F2; }
.vc-magasin .wp-block-columns { gap: 48px; }
.vc-magasin .wp-block-button.is-style-outline .wp-block-button__link {
	--theme-button-background-initial-color: #F7F5F2;
	--theme-button-text-initial-color: #F7F5F2;
	--theme-button-background-hover-color: #F7F5F2;
	--theme-button-text-hover-color: #1B4B66;
}
.vc-magasin__infos { margin: 0; padding: 0; }
.vc-magasin__infos dt {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #C8A882;
	margin-top: 22px;
}
.vc-magasin__infos dt:first-child { margin-top: 0; }
.vc-magasin__infos dd { margin: 6px 0 0; }
.vc-a-completer { font-style: italic; color: #C9D3D9; }

@media (max-width: 781.98px) {
	.vc-magasin { padding: 48px 20px; }
	.vc-magasin .wp-block-columns { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.vc-rayon [data-products] .product,
	.vc-rayon [data-products] .product .button { transition: none; }
	.vc-rayon [data-products] .product:hover { transform: none; }
}

/* ==========================================================================
   Accueil : bandeau « Dermo-cosmétique » [vc_spot_video] (2026-09-18), planche sprite.webp 6 x 6.
   Fond crème, vues portrait 9/16 à gauche pilotées par le défilement, texte à droite ; empilé sous 860 px.
   ========================================================================== */
.vc-spot {
	background: #F7F5F2;
	color: #22282C;
	padding: 56px 20px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.vc-spot-in {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}
.vc-spot-media {
	flex: 0 0 auto;
	width: min(100%, 300px);
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	background: #E7E1D8;
	box-shadow: 0 14px 32px rgba(18, 35, 46, .12), 0 2px 6px rgba(18, 35, 46, .06);
}
.vc-spot-frames{display:block;width:100%;aspect-ratio:9/16;
  border-radius:3px;background-color:#EFECE7;
  background-repeat:no-repeat;background-size:800% 600%;
  background-position:0% 0%;
  box-shadow:0 18px 40px rgba(18,35,46,.13)}
@media (prefers-reduced-motion:reduce){
  .vc-spot-frames{box-shadow:none}
}
.vc-spot-txt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 34rem;
}
.vc-spot-over {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #8A6A42; /* brun : 5,6:1 sur crème */
}
.vc-spot .vc-spot-t {
	margin: 0;
	font-size: clamp(1.7rem, 2.8vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	color: #1B4B66;
}
.vc-spot-p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #22282C;
}
.vc-spot-cta {
	display: inline-block;
	margin-top: 6px;
	padding: 12px 22px;
	border-radius: 6px;
	background: #1B4B66;
	color: #F7F5F2 !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}
.vc-spot-cta:hover { background: #153D54; color: #F7F5F2; }
.vc-spot-cta:focus-visible {
	outline: 3px solid #1B4B66; /* bleu sur fond crème, comme le panneau cosmétique */
	outline-offset: 3px;
}
.vc-spot-cta span { display: inline-block; transition: transform .2s ease; }
.vc-spot-cta:hover span { transform: translateX(4px); }

@media (min-width: 860px) {
	.vc-spot { padding: 72px 20px; }
	.vc-spot-in { flex-direction: row; gap: 64px; }
	.vc-spot-media { width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
	.vc-spot-cta, .vc-spot-cta span { transition: none; }
	.vc-spot-cta:hover span { transform: none; }
}
