/*
Theme Name:   Tarifs Pro — démonstration
Description:  Thème de la boutique de démonstration Tarifs Pro (enfant de Storefront). Mêmes couleurs, logo et polices que la fiche pikali.fr. Ne fait pas partie de l'extension vendue.
Author:       Pikali
Template:     storefront
Version:      1.0.0
Text Domain:  tarifs-pro-demo
*/

/* Self-hosted fonts (SIL Open Font License): no call to a third-party font server. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/syne-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/syne-latin-800-normal.woff2) format("woff2"); }

:root {
	--tp-primary: #0b3a6f;
	--tp-light: #1a73e8;
	--tp-accent: #10b981;
	--tp-ink: #142033;
	--tp-muted: #5b6b80;
	--tp-line: #dfe7f1;
	--tp-tint: #f3f7fc;
	--tp-radius: 14px;
}

body, button, input, select, textarea, .button {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--tp-ink);
	-webkit-font-smoothing: antialiased;
}
body { background: #fff; }

h1, h2, h3, .tpd-h2, .site-title, .entry-title, .product_title, .woocommerce-loop-product__title {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tp-ink);
}
/* Syne, the display face of pikali.fr, for the big titles only: it is too wide for product names. */
.tpd-hero__title, .tpd-h2, .page-title, .woocommerce-products-header__title { font-family: "Syne", "Inter", sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.tpd-wrap a, .tpd-hero a, .tpd-section a { text-decoration: none !important; }
.tpd-table td a:hover { color: var(--tp-light); }

a { color: var(--tp-light); }
a:hover, a:focus { color: var(--tp-primary); }

/* Buttons --------------------------------------------------------------------------------- */
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart,
.wc-block-components-button:not(.is-link), .wp-element-button {
	background: var(--tp-primary);
	border-color: var(--tp-primary);
	color: #fff;
	border-radius: 10px;
	font-weight: 600;
	padding: 0.8em 1.4em;
}
button:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover,
.wc-block-components-button:not(.is-link):hover {
	background: #082c55;
	border-color: #082c55;
	color: #fff;
}
.button.alt, button.alt, .single_add_to_carts_button, .checkout-button, #place_order,
.single-product div.product form.cart .button {
	background: var(--tp-accent) !important;
	border-color: var(--tp-accent) !important;
	color: #fff !important;
}
.button.alt:hover, .checkout-button:hover, #place_order:hover,
.single-product div.product form.cart .button:hover { background: #0e9f6e !important; border-color: #0e9f6e !important; }

/* Header ---------------------------------------------------------------------------------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--tp-line);
	padding-top: 1.1em;
	margin-bottom: 0;
}
.site-header .col-full { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em 1.5em; }
.site-header .site-branding { margin: 0; float: none; width: auto; flex: 0 0 auto; }
.site-header .custom-logo-link img { max-height: 46px; width: auto; }
.site-header .site-branding .site-description { display: none; }
.storefront-primary-navigation { background: transparent; }
.storefront-primary-navigation .col-full { flex-wrap: nowrap; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a {
	color: var(--tp-ink);
	font-weight: 600;
	padding: 1em 0.9em;
}
.main-navigation ul.menu > li.current-menu-item > a, .main-navigation ul li a:hover { color: var(--tp-light); }
.site-header-cart .cart-contents { color: var(--tp-ink); }
.site-header-cart .widget_shopping_cart { background: #fff; }

/* The consumer / trade switch */
.tpd-switch { margin-left: auto; display: flex; align-items: center; gap: 12px; order: 2; }
.tpd-switch__modes { display: inline-flex; background: var(--tp-tint); border: 1px solid var(--tp-line); border-radius: 999px; padding: 4px; }
.tpd-switch__mode { padding: 7px 14px; border-radius: 999px; color: var(--tp-muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tpd-switch__mode:hover { color: var(--tp-primary); }
.tpd-switch__mode.is-active { background: var(--tp-primary); color: #fff; box-shadow: 0 2px 6px rgba(11, 58, 111, .25); }
.tpd-switch[data-viewer="pro"] .tpd-switch__mode.is-active { background: var(--tp-accent); box-shadow: 0 2px 6px rgba(16, 185, 129, .3); }
.tpd-lang { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 700; }
.tpd-lang a { color: var(--tp-muted); padding: 4px 6px; border-radius: 6px; text-decoration: none; }
.tpd-lang a[aria-current] { color: #fff; background: var(--tp-ink); }

/* Page shell -------------------------------------------------------------------------------- */
.site-content { padding-top: 2em; }
.home .site-content { padding-top: 0; }
.home .site-header, .site-header { margin-bottom: 0 !important; }
.home .content-area, .home .site-main, .home article.page { margin-top: 0 !important; padding-top: 0 !important; }
/* One header row for the menu and the cart. */
@media (min-width: 768px) {
	.storefront-primary-navigation .col-full { display: flex; align-items: center; justify-content: space-between; }
	.woocommerce-active .site-header .main-navigation { float: none !important; width: auto !important; flex: 1 1 auto; margin: 0 !important; }
	.woocommerce-active .site-header .site-header-cart { float: none !important; width: auto !important; flex: 0 0 auto; margin: 0 !important; }
	.main-navigation ul.menu > li > a { padding: 1em 0.7em !important; }
	.main-navigation ul.menu > li:first-child > a { padding-left: 0 !important; }
	.site-header .site-branding { margin-bottom: 0; }
	.site-header .tpd-switch { order: initial; }
}
.home .site-main, .home .content-area { margin-bottom: 0; }
.home .hentry, .home .entry-content { margin: 0; padding: 0; }
.home.page-template-template-fullwidth-php .site-content > .col-full { max-width: none; padding: 0; margin: 0; }
.storefront-breadcrumb { display: none; }

.tpd-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Home: hero */
.tpd-hero {
	background: radial-gradient(1200px 500px at 85% -10%, rgba(26, 115, 232, .35), transparent 60%), linear-gradient(135deg, #082c55 0%, var(--tp-primary) 55%, #0f4c8f 100%);
	color: #e8f0fb;
	padding: 72px 0 80px;
}
.tpd-hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.tpd-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9ff3d4; background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .35); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.tpd-hero__title { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.02; color: #fff; margin: 0 0 22px; font-weight: 700; }
.tpd-hero__title span { color: #6fb0ff; }
.tpd-hero__lead { font-size: 1.12rem; line-height: 1.65; max-width: 36em; color: #cfdcef; margin-bottom: 28px; }
.tpd-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tpd-hero__note { margin: 16px 0 0; font-size: 14px; color: #a8bbd6; }
.tpd-btn { display: inline-block; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.tpd-btn:hover { transform: translateY(-1px); }
.tpd-btn--accent { background: var(--tp-accent); color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, .35); }
.tpd-btn--accent:hover, .tpd-btn--accent:focus { background: #0e9f6e; color: #fff; }
.tpd-btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.tpd-btn--ghost:hover, .tpd-btn--ghost:focus { background: rgba(255, 255, 255, .1); color: #fff; }

.tpd-card-compare { background: #fff; color: var(--tp-ink); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(3, 20, 45, .35); }
.tpd-card-compare__img img { width: 100%; height: 210px; object-fit: contain; background: #eef3f9; border-radius: 12px; margin: 0; }
.tpd-card-compare__name { font-weight: 700; margin: 14px 0 10px; line-height: 1.35; }
.tpd-card-compare__row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: var(--tp-muted); }
.tpd-card-compare__row strong { color: var(--tp-ink); font-size: 1.15rem; }
.tpd-card-compare__row small { font-size: .75rem; color: var(--tp-muted); font-weight: 600; }
.tpd-card-compare__row--pro { background: #eaf2fd; }
.tpd-card-compare__row--pro strong { color: var(--tp-primary); }
.tpd-card-compare__row--tier { background: #e7f8f1; margin-top: 6px; }
.tpd-card-compare__row--tier strong { color: #047857; }

/* Home: sections */
.tpd-section { padding: 70px 0; }
.tpd-section--tint { background: var(--tp-tint); }
.tpd-h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-align: center; margin: 0 0 12px; font-weight: 700; }
.tpd-sub { text-align: center; color: var(--tp-muted); margin: 0 0 30px; }
.tpd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.tpd-step, .tpd-more__item { display: block; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 26px; color: var(--tp-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tpd-step:hover, .tpd-more__item:hover { border-color: var(--tp-light); box-shadow: 0 14px 30px rgba(11, 58, 111, .1); transform: translateY(-2px); color: var(--tp-ink); }
.tpd-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tp-primary); color: #fff; font-weight: 800; font-family: "Inter", sans-serif; font-size: 15px; }
.tpd-step:nth-child(2) .tpd-step__n { background: var(--tp-light); }
.tpd-step:nth-child(3) .tpd-step__n { background: var(--tp-accent); }
.tpd-step h3, .tpd-more__item h3 { font-size: 1.15rem; margin: 16px 0 8px; font-weight: 700; }
.tpd-step p, .tpd-more__item p { color: var(--tp-muted); margin: 0 0 14px; line-height: 1.6; font-size: .97rem; }
.tpd-more__item p { margin: 0; }
.tpd-step__go { font-weight: 700; color: var(--tp-light); }
.tpd-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.tpd-more__item h3 { margin-top: 0; }

.tpd-table-wrap { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; }
.tpd-table { width: 100%; margin: 0; border-collapse: collapse; }
.tpd-table th { background: #fff; text-align: left; font-size: 13px; color: var(--tp-muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--tp-line); }
.tpd-table td { padding: 14px 18px; border-bottom: 1px solid var(--tp-line); background: #fff; }
.tpd-table tr:last-child td { border-bottom: 0; }
.tpd-table td a { color: var(--tp-ink); font-weight: 600; text-decoration: none; }
.tpd-green { color: #047857; }
.tpd-muted { color: var(--tp-muted); font-size: 13px; }

/* Shop ------------------------------------------------------------------------------------- */
ul.products li.product { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 14px 14px 18px; text-align: left; transition: box-shadow .15s ease, border-color .15s ease; }
ul.products li.product:hover { border-color: #c3d4ea; box-shadow: 0 12px 26px rgba(11, 58, 111, .08); }
ul.products li.product img { border-radius: 10px; background: #eef3f9; margin-bottom: 12px; }
ul.products li.product .woocommerce-loop-product__title { font-family: "Inter", sans-serif; font-size: .98rem; font-weight: 600; line-height: 1.4; min-height: 2.8em; }
ul.products li.product .price { color: var(--tp-primary); font-weight: 700; font-size: 1.05rem; }
ul.products li.product .button { width: 100%; text-align: center; margin-top: 8px; }
.woocommerce-products-header__title.page-title { font-weight: 700; }
.term-description, .woocommerce-products-header p { color: var(--tp-muted); }
.storefront-sorting { font-size: 14px; }

.single-product div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.single-product div.product p.price { color: var(--tp-primary); font-weight: 800; font-size: 1.6rem; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 16px; background: #eef3f9; }
.tpd-hint { background: #eaf2fd; border: 1px solid #cfe0f8; border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--tp-primary); }
.tpd-hint a { font-weight: 700; }
.tpd-hint--pro { background: #e7f8f1; border-color: #bdeedb; color: #065f46; }

/* Module tables keep their own markup; give them the palette. */
.tarifs-pro-tiers, .tarifs-pro-tier-table { border-radius: 10px; overflow: hidden; }

/* Footer ----------------------------------------------------------------------------------- */
.site-footer { background: #0a1e38; color: #b8c6da; padding: 34px 0; }
.site-footer a, .site-footer .tpd-footer a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .tpd-footer p { color: #b8c6da; }
.tpd-footer p { margin: 0 0 6px; font-size: 14px; }

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.tpd-hero__grid { grid-template-columns: 1fr; }
	.tpd-steps, .tpd-more { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.site-header { padding-top: .8em; }
	.site-header .col-full { gap: 10px; }
	.site-header .custom-logo-link img { max-height: 36px; }
	.tpd-switch { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
	.tpd-switch__mode { padding: 7px 11px; font-size: 13px; }
	.tpd-hero { padding: 44px 0 52px; }
	.tpd-section { padding: 48px 0; }
	.tpd-card-compare__img img { height: 170px; }
	.tpd-table thead { display: none; }
	.tpd-table, .tpd-table tbody, .tpd-table tr, .tpd-table td { display: block; width: 100%; }
	.tpd-table tr { border-bottom: 1px solid var(--tp-line); padding: 8px 0; }
	.tpd-table td { border: 0; padding: 4px 16px; display: flex; justify-content: space-between; gap: 12px; }
	.tpd-table td[data-label]::before { content: attr(data-label); color: var(--tp-muted); font-size: 13px; }
	.storefront-handheld-footer-bar { display: none; }
	ul.products li.product .woocommerce-loop-product__title { min-height: 0; }
}
