/*
Theme Name:   Kanto Child
Theme URI:    https://kantocards.ca
Description:  Thème enfant de Blocksy reproduisant le look de kantocards.ca (Shopify)
Author:       Kanto Cards
Template:     blocksy
Version:      1.1.0
Text Domain:  kanto-child
*/

/* ============================================================
   Jetons de design relevés sur https://kantocards.ca
   (thème Shopify « Horizon » — police Inter, pas Assistant)
   ============================================================ */

:root {
	--kanto-fg: rgba(0, 0, 0, 0.81);     /* texte principal */
	--kanto-white: #ffffff;
	--kanto-announce-bg: #e1edf5;        /* barre d'annonce bleu clair */
	--kanto-badge-bg: #eef1ea;           /* pilule « Épuisé » */
	--kanto-border: #dfdfdf;
	--kanto-icon: #333333;
	--kanto-radius: 14px;                /* boutons */
	--kanto-radius-pill: 100px;
	--kanto-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
	--kanto-gutter: 40px;                /* marge latérale desktop */
}

/* ------------------------------------------------------------------
   Surcharge des variables Blocksy
   (le thème enfant est chargé après « ct-main-styles » — voir
   functions.php — de sorte que ces valeurs priment)
   ------------------------------------------------------------------ */

html:root,
:root {
	--theme-font-family: var(--kanto-font);
	--theme-font-size: 14px;
	--theme-line-height: 1.6;
	--theme-text-color: var(--kanto-fg);
	--theme-headings-color: var(--kanto-fg);
	--theme-link-initial-color: var(--kanto-fg);
	--theme-link-hover-color: var(--kanto-fg);
	--theme-content-vertical-spacing: 0px;
	--theme-normal-container-max-width: 1360px;
	/* Blocksy limite les blocs à 90vw : on force la largeur du site d'origine */
	--theme-block-width: min(1360px, calc(100% - var(--kanto-gutter) * 2));
	--theme-container-width: min(100%, calc(1360px + var(--kanto-gutter) * 2));
	--theme-content-spacing: 1.2em;
	--theme-button-text-initial-color: var(--kanto-white);
	--theme-button-background-initial-color: var(--kanto-fg);
	--theme-button-border-radius: var(--kanto-radius);
	--theme-palette-color-3: var(--kanto-fg);
	--theme-palette-color-4: var(--kanto-fg);
	--theme-palette-color-7: var(--kanto-white);
	--theme-palette-color-8: var(--kanto-white);
	--theme-content-background-color: var(--kanto-white);
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */

body,
body.woocommerce,
.entry-content {
	background: var(--kanto-white);
	color: var(--kanto-fg);
	font-family: var(--kanto-font);
	font-size: 14px;
	line-height: 1.6;
}

body h1, body h2, body h3, body h4, body h5, body h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--kanto-font);
	color: var(--kanto-fg);
	font-weight: 700;
}

/* Largeur de contenu identique au site d'origine : 1360px + 40px de marge */
.ct-container,
.ct-container-narrow,
.entry-content > .alignwide,
.wp-block-group.alignwide {
	max-width: calc(1360px + var(--kanto-gutter) * 2);
	padding-left: var(--kanto-gutter);
	padding-right: var(--kanto-gutter);
	width: 100%;
}

/* Le contenu de la page d'accueil suit la même largeur (1360px) */
.home .entry-content > *:not(.alignfull) {
	max-width: min(1360px, calc(100% - var(--kanto-gutter) * 2));
	margin-left: auto;
	margin-right: auto;
}

.home .site-main,
.home .entry-content,
.home .ct-container-full {
	padding-top: 0;
	margin-top: 0;
}
.home .entry-content > *:first-child {
	margin-top: 0;
}

/* Titre de page masqué (absent du site d'origine sur l'accueil) */
.home .hero-section,
.home .entry-header,
.home .page-title {
	display: none !important;
}

/* ------------------------------------------------------------------
   Barre d'annonce
   ------------------------------------------------------------------ */

.kanto-announcement {
	background: var(--kanto-announce-bg);
	color: var(--kanto-fg);
	text-align: center;
	font-size: 14px;
	line-height: 1.15;
	padding: 15px 20px;
}
.kanto-announcement p {
	margin: 0;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

/* Hauteur de barre identique au site d'origine : 66px.
   Blocksy calcule la hauteur via --height sur la rangée (règle avec #header,
   d'où le sélecteur ci-dessous). */
#header [data-row="middle"],
.ct-header [data-row="middle"] {
	--height: 66px;
	--header-height: 66px;
	background: var(--kanto-white);
}

#header [data-row="middle"] > .ct-container,
.ct-header [data-row="middle"] > .ct-container {
	min-height: 66px;
	padding-top: 0;
	padding-bottom: 0;
}

/* Logo : 20px de haut, sans le nom du site à côté */
.site-branding .site-title-container,
.site-branding .site-description {
	display: none !important;
}
.site-branding .site-logo-container img,
.site-branding img.default-logo {
	height: 20px !important;
	width: auto !important;
	max-height: 20px;
}

/* Menu : casse normale, 14px */
.ct-header .menu-container > ul > li > a.ct-menu-link,
.ct-header .header-menu-1 .ct-menu-link {
	text-transform: none !important;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: normal;
	color: var(--kanto-fg);
}
.ct-header .menu-container > ul {
	gap: 24px;
}
.ct-header .menu-container > ul > li {
	margin: 0;
}

/* On masque le bouton recherche natif de Blocksy : les trois icônes
   (recherche, compte, panier) sont injectées à la fin du menu. */
.ct-header [data-device="desktop"] .ct-header-search[data-id="search"] {
	display: none !important;
}

.kanto-header-icons {
	display: flex !important;
	align-items: center;
	gap: 4px;
	margin-left: 12px !important;
}

.kanto-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--kanto-icon);
	cursor: pointer;
	border-radius: var(--kanto-radius-pill);
	transition: background 0.15s ease;
}
.kanto-header-icon:hover {
	background: rgba(0, 0, 0, 0.05);
}
.kanto-header-icon svg {
	display: block;
}

/* Compteur du panier */
.kanto-cart-count {
	position: absolute;
	top: 4px;
	right: 3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: var(--kanto-radius-pill);
	background: var(--kanto-fg);
	color: var(--kanto-white);
	font-size: 10px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
}
.kanto-cart-count.is-empty {
	display: none;
}

/* Icônes compte + panier de l'en-tête mobile */
.kanto-mobile-icons {
	display: none;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.kanto-hero.wp-block-cover {
	min-height: 473px;
	padding: 0 40px;
	align-items: center;
}
/* Cadrage identique au site d'origine (image verticale recadrée en bandeau) */
.kanto-hero img.wp-block-cover__image-background {
	object-fit: cover;
	object-position: 48.66% 10.98%;
}
.kanto-hero .wp-block-cover__inner-container {
	max-width: 1360px;
	width: 100%;
}
.kanto-hero h2 {
	font-size: 48px;
	line-height: 1;
	font-weight: 700;
	color: var(--kanto-white) !important;
	letter-spacing: normal;
	margin: 0 0 24px;
}
.kanto-hero p:not(.wp-block-button) {
	font-size: 14px;
	color: var(--kanto-white) !important;
	margin: 0 0 28px;
}
/* Bouton hero : fond transparent, contour blanc fin, coins arrondis 14px */
.kanto-hero .wp-block-button__link,
.kanto-hero .wp-element-button {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--kanto-white) !important;
	border: 0;
	box-shadow: inset 0 0 0 1px var(--kanto-white);
	border-radius: var(--kanto-radius);
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: normal;
	transition: background 0.2s ease, color 0.2s ease;
}
.kanto-hero .wp-block-button__link:hover {
	background: var(--kanto-white) !important;
	color: var(--kanto-fg) !important;
}

/* ------------------------------------------------------------------
   Section « Comment ça fontionne »
   ------------------------------------------------------------------ */

.kanto-section-label {
	margin: 72px 0 0;
	font-size: 32px;
	font-weight: 700;
	color: var(--kanto-fg);
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
}
.kanto-steps {
	margin-top: 40px;
	margin-bottom: 72px;
	gap: 24px;
}
.kanto-step-number {
	font-size: 48px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--kanto-fg);
	margin: 0;
}
.kanto-steps h4 {
	font-size: 24px;
	font-weight: 700;
	color: var(--kanto-fg);
	margin: 4px 0 8px;
}
.kanto-steps p {
	color: var(--kanto-fg);
	font-size: 14px;
	margin: 0;
}

/* ------------------------------------------------------------------
   Titres de collection + lien « View all »
   ------------------------------------------------------------------ */

.kanto-collection-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 56px 0 24px;
}
.kanto-collection-head .kanto-collection-title,
.kanto-collection-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--kanto-fg);
	margin: 0;
}
.kanto-collection-head p {
	margin: 0;
}
.kanto-collection-head a {
	font-size: 14px;
	color: var(--kanto-fg);
	text-decoration: none;
	white-space: nowrap;
}
.kanto-collection-head a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Grilles produits (WooCommerce)
   ------------------------------------------------------------------ */

/* Blocksy décale les blocs WooCommerce du contenu : on les aligne sur la
   largeur de contenu (1360px) comme le reste de la page */
.entry-content .woocommerce {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

.woocommerce ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 8px;
	row-gap: 24px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}
.woocommerce ul.products li.product,
ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	text-align: left;
	border: none;
	clear: none !important;
}

/* Vignette carrée, recadrée, sans bordure ni arrondi */
.woocommerce ul.products li.product figure,
.woocommerce ul.products li.product .ct-media-container {
	position: relative;
	margin: 0;
	border-radius: 0;
	overflow: hidden;
}
.woocommerce ul.products li.product img {
	aspect-ratio: 1 / 1 !important;
	object-fit: cover;
	width: 100%;
	height: auto;
	border: none;
	border-radius: 0;
	transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img {
	transform: scale(1.02);
}

/* Titre du produit */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--kanto-fg);
	text-decoration: none;
	margin: 10px 0 2px;
	padding: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: var(--kanto-fg);
	text-decoration: none;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Prix : 12px, semi-gras — prix barré gris quand en promo */
.woocommerce ul.products li.product .price {
	display: block;
	color: var(--kanto-fg);
	font-size: 12px;
	font-weight: 500;
	margin: 0;
}
.woocommerce ul.products li.product .price del {
	color: rgba(0, 0, 0, 0.5);
	font-weight: 400;
	opacity: 1;
}
.woocommerce ul.products li.product .price ins {
	font-weight: 500;
	text-decoration: none;
	background: transparent;
}

/* Bouton « Ajouter » / « Choisir » : superposé au bas de l'image et révélé
   au survol, comme le « quick add » du site d'origine (aucun espace occupé
   au repos). functions.php déplace le bloc d'actions dans la figure. */
.woocommerce ul.products li.product .ct-woo-card-actions {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.woocommerce ul.products li.product:hover .ct-woo-card-actions,
.woocommerce ul.products li.product:focus-within .ct-woo-card-actions {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.woocommerce ul.products li.product .button {
	display: block;
	background: var(--kanto-white);
	color: var(--kanto-fg);
	border: 1px solid var(--kanto-fg);
	border-radius: var(--kanto-radius);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	padding: 10px 16px;
	width: 100%;
	min-height: 0;
	text-align: center;
	margin: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--kanto-fg);
	color: var(--kanto-white);
}
/* Produit épuisé : aucun bouton (non achetable) */
.woocommerce ul.products li.product.outofstock .ct-woo-card-actions {
	display: none;
}

/* Badges « Épuisé » / « Promo » : pilule claire en haut à droite */
.woocommerce ul.products li.product .out-of-stock-badge,
.woocommerce ul.products li.product .ct-woo-badge,
.woocommerce ul.products li.product span.onsale,
.woocommerce span.onsale {
	position: absolute;
	top: 8px;
	right: 8px;
	left: auto;
	bottom: auto;
	margin: 0;
	background: var(--kanto-badge-bg);
	color: var(--kanto-fg);
	border: none;
	border-radius: var(--kanto-radius-pill);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	padding: 4px 10px;
	min-width: 0;
	min-height: 0;
	z-index: 2;
}

/* ------------------------------------------------------------------
   Bloc newsletter
   ------------------------------------------------------------------ */

.kanto-newsletter {
	background: var(--kanto-white);
	border-top: none;
	padding: 64px 0 40px;
	margin-top: 40px;
}

/* Bloc newsletter global (avant le footer, sur toutes les pages) */
.kanto-newsletter--global {
	padding: 72px var(--kanto-gutter) 40px;
}
.kanto-newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1360px;
	margin: 0 auto;
}
.kanto-newsletter-text {
	flex: 1 1 auto;
}
.kanto-newsletter-form {
	flex: 0 0 670px;
	max-width: 100%;
}
.kanto-newsletter .wp-block-columns {
	align-items: center;
	gap: 24px;
	margin: 0;
}
/* Champ de 670px de large, comme sur le site d'origine */
.kanto-newsletter .wp-block-column:last-child {
	flex-basis: 670px;
	flex-grow: 0;
}
.kanto-newsletter h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--kanto-fg);
	margin: 0 0 4px;
}
.kanto-newsletter p {
	font-size: 14px;
	color: var(--kanto-fg);
	margin: 0;
}

/* Formulaire MailPoet en pilule, bouton flèche à droite */
.kanto-newsletter .mailpoet_form {
	padding: 0;
	margin: 0;
	background: transparent;
}
.kanto-newsletter .mailpoet_form form,
.kanto-newsletter .mailpoet_form .mailpoet_form_columns,
.kanto-newsletter .mailpoet_paragraph {
	margin: 0;
}
.kanto-newsletter .mailpoet_form_form {
	position: relative;
}
.kanto-newsletter .mailpoet_form input.mailpoet_text,
.kanto-newsletter .mailpoet_form input[type="email"] {
	width: 100%;
	height: 58px;
	min-height: 58px;
	box-sizing: border-box;
	padding: 16px 70px 16px 28px;
	font-family: var(--kanto-font);
	font-size: 14px;
	color: var(--kanto-fg);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--kanto-border);
	border-radius: var(--kanto-radius-pill);
	box-shadow: none;
}
.kanto-newsletter .mailpoet_form input::placeholder {
	color: rgba(0, 0, 0, 0.55);
}
.kanto-newsletter .mailpoet_form input.mailpoet_submit,
.kanto-newsletter .mailpoet_form input[type="submit"] {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: var(--kanto-radius-pill);
	background: transparent
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h13M11.5 5l5 5-5 5'/%3E%3C/svg%3E")
		center / 20px 20px no-repeat;
	color: transparent;
	font-size: 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.kanto-newsletter .mailpoet_form input.mailpoet_submit:hover {
	background-color: rgba(0, 0, 0, 0.06);
}
.kanto-newsletter .mailpoet_validate_success,
.kanto-newsletter .mailpoet_validate_error {
	font-size: 13px;
	margin-top: 8px;
	color: var(--kanto-fg);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

body[data-footer] footer.ct-footer,
[data-footer*="type-1"] .ct-footer {
	background-color: var(--kanto-white);
	border-top: none;
	font-size: 14px;
	color: var(--kanto-fg);
}
body[data-footer] footer.ct-footer [data-row="bottom"],
[data-footer*="type-1"] .ct-footer [data-row*="bottom"] {
	background-color: var(--kanto-white);
	padding: 8px 0 32px;
}
footer.ct-footer .ct-footer-copyright {
	width: 100%;
	font-size: 14px;
	color: var(--kanto-fg);
}
.kanto-footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	width: 100%;
}
.kanto-footer-copy {
	text-align: left;
}
.kanto-footer-policy {
	text-align: center;
}
.kanto-footer-policy a {
	color: var(--kanto-fg);
	text-decoration: none;
}
.kanto-footer-policy a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kanto-footer-social {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}
.kanto-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--kanto-radius-pill);
	color: var(--kanto-icon);
	transition: background 0.15s ease;
}
.kanto-footer-social a:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------------------------------
   Pages catégorie / produit / contact
   ------------------------------------------------------------------ */

/* Titre de collection : aligné à gauche, 48px, sans bandeau gris
   (surcharge du CSS inline de Blocksy, d'où la spécificité) */
/* Le bandeau de titre est déjà contraint : c'est l'en-tête interne qui porte
   la gouttière, sinon le titre est décalé (panier, commande…) */
body:not(.home) .hero-section.is-width-constrained {
	max-width: none;
}

body[data-prefix] .hero-section,
body[data-prefix] .hero-section[data-type="type-2"] {
	background-color: var(--kanto-white);
	background-image: none;
	--container-padding: 0px;
	padding: 48px 0 0;
	min-height: 0;
}
body[data-prefix] .hero-section .entry-header,
body:not(.home) .entry-header.ct-container-narrow {
	text-align: left;
	display: block;
	min-height: 0;
	max-width: calc(1360px + var(--kanto-gutter) * 2);
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--kanto-gutter);
}
body[data-prefix] .hero-section .page-title,
body:not(.home) .entry-header .page-title {
	font-size: 48px;
	line-height: 1;
	font-weight: 700;
	text-align: left;
	color: var(--kanto-fg);
	margin: 0;
}
body[data-prefix] .hero-section .entry-header > *:not(.page-title) {
	display: none;
}

/* Grilles d'archive : 5 colonnes, gouttière 16px (comme les collections) */
.archive .woocommerce ul.products,
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
body.woocommerce-shop ul.products {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 24px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.6);
	text-transform: none;
	letter-spacing: normal;
	margin-bottom: 24px;
}
.woocommerce .woocommerce-ordering select {
	font-family: var(--kanto-font);
	font-size: 14px;
	border: 1px solid var(--kanto-border);
	border-radius: var(--kanto-radius);
	padding: 8px 12px;
	color: var(--kanto-fg);
	background-color: var(--kanto-white);
}
.woocommerce div.product .product_title {
	font-size: 40px;
	line-height: 1.1;
	font-weight: 700;
	margin-bottom: 12px;
}
/* Badge « Épuisé » de la fiche produit : même pilule claire que les grilles */
.woocommerce div.product .out-of-stock-badge,
.woocommerce div.product span.onsale {
	position: absolute;
	top: 8px;
	left: 8px;
	right: auto;
	background: var(--kanto-badge-bg);
	color: var(--kanto-fg);
	border: none;
	border-radius: var(--kanto-radius-pill);
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	padding: 4px 10px;
	min-width: 0;
	min-height: 0;
	line-height: 1.4;
}
/* Description courte sous le prix */
.woocommerce div.product .woocommerce-product-details__short-description {
	font-size: 14px;
	color: var(--kanto-fg);
	margin-top: 16px;
}
.woocommerce div.product .woocommerce-product-details__short-description p {
	margin: 0 0 12px;
}
.woocommerce div.product p.price {
	font-size: 18px;
	font-weight: 500;
	color: var(--kanto-fg);
}
.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-element-button {
	border-radius: var(--kanto-radius);
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
}

/* Page Contact : titre centré et formulaire centré (comme l'original) */
body.page:not(.woocommerce-page) .hero-section .page-title,
body.page:not(.woocommerce-page) .entry-header .page-title {
	text-align: center;
}
body.page-contact .entry-content,
.kanto-contact-form {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

/* Formulaire de contact (CF7) au look du site */
.wpcf7 .kanto-form-row {
	display: flex;
	gap: 16px;
}
.wpcf7 .kanto-form-row > label {
	flex: 1 1 0;
	min-width: 0;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	font-family: var(--kanto-font);
	font-size: 14px;
	padding: 14px 18px;
	border: 1px solid var(--kanto-border);
	border-radius: var(--kanto-radius);
	background: var(--kanto-white);
	color: var(--kanto-fg);
}
.wpcf7 label {
	display: block;
	font-size: 14px;
	margin-bottom: 16px;
}
.wpcf7 textarea {
	min-height: 260px;
	resize: vertical;
}
.wpcf7 input[type="submit"] {
	background: #000000;
	color: var(--kanto-white);
	border: none;
	border-radius: var(--kanto-radius);
	padding: 16px 32px;
	font-family: var(--kanto-font);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	opacity: 0.85;
}

/* ------------------------------------------------------------------
   Responsive — mobile (référence : 390px)
   ------------------------------------------------------------------ */

@media (max-width: 999px) {
	:root,
	html:root {
		--kanto-gutter: 16px;
	}

	/* En-tête mobile : menu + recherche à gauche, logo au centre,
	   compte + panier à droite (structure du site d'origine) */
	#header [data-row="middle"],
	.ct-header [data-row="middle"] {
		--height: 60px;
		--header-height: 60px;
	}
	.ct-header [data-device="mobile"] [data-row="middle"] .ct-container {
		display: flex !important;
		align-items: center;
		gap: 0;
		min-height: 60px;
		padding-left: var(--kanto-gutter);
		padding-right: var(--kanto-gutter);
	}
	.ct-header [data-device="mobile"] [data-row="middle"] [data-column="end"] {
		order: 1;
		display: flex;
		align-items: center;
	}
	.ct-header [data-device="mobile"] .kanto-mobile-search {
		order: 2;
		display: flex;
		align-items: center;
	}
	.ct-header [data-device="mobile"] [data-row="middle"] [data-column="start"] {
		order: 3;
		flex: 1;
		display: flex;
		justify-content: center;
	}
	.ct-header [data-device="mobile"] .kanto-mobile-icons {
		order: 4;
		display: flex;
		margin-left: 0;
	}
	.ct-header [data-device="mobile"] .site-branding img {
		height: 20px !important;
	}
	.kanto-mobile-search,
	.kanto-mobile-icons {
		display: flex;
	}

	.kanto-hero.wp-block-cover {
		min-height: 353px;
		padding: 0 var(--kanto-gutter);
	}
	.kanto-hero h2 {
		font-size: 36px;
		line-height: 1;
		margin-bottom: 16px;
	}

	.kanto-section-label {
		margin-top: 48px;
		font-size: 32px;
	}
	.kanto-steps {
		margin-bottom: 48px;
	}
	.kanto-steps .wp-block-column {
		margin-bottom: 24px;
	}

	.kanto-collection-head {
		margin: 40px 0 20px;
	}
	.kanto-collection-head .kanto-collection-title {
		font-size: 24px;
	}

	.woocommerce ul.products,
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 8px;
		row-gap: 12px;
	}

	/* Pas de survol sur mobile : le bouton reste masqué comme sur l'original */
	.woocommerce ul.products li.product .ct-woo-card-actions {
		display: none;
	}

	/* Le bloc newsletter est en pleine largeur : on rétablit la gouttière */
	.kanto-newsletter {
		padding: 48px var(--kanto-gutter) 32px;
	}
	.kanto-newsletter h3 {
		font-size: 24px;
	}
	.kanto-newsletter .wp-block-column:last-child {
		flex-basis: auto;
	}
	/* Titre puis champ, l'un sous l'autre (comme sur l'original) */
	.kanto-newsletter-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}
	.kanto-newsletter-form {
		flex: 1 1 auto;
		width: 100%;
	}

	.kanto-footer-inner {
		grid-template-columns: 1fr;
		gap: 12px;
		text-align: center;
	}
	.kanto-footer-copy,
	.kanto-footer-policy {
		text-align: center;
	}
	.kanto-footer-social {
		justify-content: center;
	}
}
