/*
Theme Name: VelarTrip
Theme URI: https://velartrip.com/
Author: VelarTrip
Author URI: https://velartrip.com/
Description: Thème WooCommerce autonome orienté conversion pour VelarTrip. Lots dégressifs, barre de livraison offerte, upsell panier, avis remontés, barre d'achat collante, quiz de recommandation. Aucun thème parent, aucun plugin requis. Compatible Rank Math, TranslatePress et WooCommerce.
Version: 1.6.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velartrip
Tags: e-commerce, two-columns, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* =========================================================================
   1. Jetons de design
   ========================================================================= */

:root {
	/* Couleurs */
	--vt-ink: #14312e;
	--vt-ink-deep: #0e241f;
	--vt-ink-soft: #5c6a62;
	--vt-sand: #f6f1e7;
	--vt-sand-deep: #efe8d8;
	--vt-line: #e4dcc9;
	--vt-card: #ffffff;
	--vt-cta: #c24e2c;
	--vt-cta-dark: #a9421f;
	--vt-gold: #e8b04b;
	--vt-gold-dark: #d79f3a;
	--vt-muted: #8a7b62;
	--vt-faint: #a79a82;
	--vt-star: #ffd700;

	/* Typographie */
	--vt-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
	--vt-display: "Instrument Serif", Georgia, "Times New Roman", serif;

	/* Échelle de texte */
	--vt-text-xs: 11px;
	--vt-text-sm: 13px;
	--vt-text-base: 17px;
	--vt-text-lg: 19px;

	/* Rythme */
	--vt-radius-sm: 12px;
	--vt-radius: 16px;
	--vt-radius-lg: 22px;
	--vt-radius-xl: 28px;
	--vt-gap: 24px;

	/* Largeurs */
	--vt-content: 1290px;
	--vt-content-narrow: 780px;
	--vt-edge: 24px;
}

/* =========================================================================
   2. Réinitialisation et base
   ========================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--vt-sand);
	color: var(--vt-ink);
	font-family: var(--vt-font);
	font-size: var(--vt-text-base);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--vt-display);
	font-weight: 400;
	line-height: 1.1;
	color: var(--vt-ink);
	margin: 0 0 0.5em;
	letter-spacing: 0;
	text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
	margin: 0 0 1.2em;
	text-wrap: pretty;
}

a {
	color: var(--vt-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--vt-cta);
}

:focus-visible {
	outline: 2px solid var(--vt-cta);
	outline-offset: 2px;
}

ul, ol {
	padding-left: 1.3em;
}

blockquote {
	margin: 1.5em 0;
	padding: 20px 24px;
	background: var(--vt-card);
	border-radius: var(--vt-radius-lg);
	font-family: var(--vt-display);
	font-size: var(--vt-text-lg);
	line-height: 1.4;
}

blockquote p:last-child {
	margin: 0;
}

hr {
	border: 0;
	height: 1px;
	background: var(--vt-line);
	margin: 2.5em 0;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--vt-line);
}

th {
	font-size: var(--vt-text-sm);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

/* Accessibilité */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	background: var(--vt-ink);
	color: var(--vt-sand);
	padding: 14px 20px;
	border-radius: 0 0 var(--vt-radius-sm) var(--vt-radius-sm);
	font-size: var(--vt-text-sm);
	font-weight: 800;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
	color: var(--vt-sand);
}

/* =========================================================================
   3. Conteneurs
   ========================================================================= */

.vt-container {
	width: 100%;
	max-width: var(--vt-content);
	margin: 0 auto;
	padding: 0 var(--vt-edge);
}

.vt-container--narrow {
	max-width: var(--vt-content-narrow);
}

.vt-main {
	padding: 32px 0 72px;
	min-height: 50vh;
}

/* =========================================================================
   4. Boutons
   ========================================================================= */

button,
input[type="submit"],
input[type="button"],
.button,
.wp-element-button,
.wp-block-button__link {
	font-family: var(--vt-font);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	border: 0;
	border-radius: var(--vt-radius-sm);
	padding: 16px 24px;
	background: var(--vt-ink);
	color: var(--vt-sand);
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--vt-ink-deep);
	color: var(--vt-sand);
}

/* Bouton d'action principal : une seule couleur pour tout le site */
.vt-btn-primary,
.button.alt,
button.alt,
input.button.alt,
.single_add_to_cart_button,
#place_order,
.checkout-button {
	background: var(--vt-cta) !important;
	color: #fff !important;
	border-radius: 14px;
	box-shadow: 0 12px 24px -14px rgba(194, 78, 44, 0.85);
}

.vt-btn-primary:hover,
.button.alt:hover,
button.alt:hover,
input.button.alt:hover,
.single_add_to_cart_button:hover,
#place_order:hover,
.checkout-button:hover {
	background: var(--vt-cta-dark) !important;
	color: #fff !important;
}

/* Bouton principal autonome. Il etait mutualise avec les boutons WooCommerce,
   qui apportent leur propre remplissage : un <a class="vt-btn-primary"> seul se
   retrouvait sans padding ni police. */
.vt-btn-primary {
	font-family: var(--vt-font);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	border-radius: var(--vt-radius-sm);
	padding: 16px 24px;
}

.vt-btn-ghost {
	font-family: var(--vt-font);
	font-size: 15px;
	line-height: 1.2;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border-radius: var(--vt-radius-sm);
	background: transparent;
	color: var(--vt-ink);
	border: 1.5px solid var(--vt-ink);
	font-weight: 700;
	padding: 14.5px 22.5px;
}

.vt-btn-ghost:hover {
	background: var(--vt-sand-deep);
	color: var(--vt-ink);
	text-decoration: none;
}

.vt-btn-ghost--light {
	border-color: rgba(246, 241, 231, 0.4);
	color: var(--vt-sand);
	background: transparent;
	width: 100%;
}

.vt-btn-ghost--light:hover {
	background: rgba(246, 241, 231, 0.1);
	color: var(--vt-sand);
}

.vt-btn-gold {
	font-family: var(--vt-font);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	border-radius: var(--vt-radius-sm);
	padding: 16px 24px;
	background: var(--vt-gold);
	color: var(--vt-ink);
}

.vt-btn-gold:hover {
	background: var(--vt-gold-dark);
	color: var(--vt-ink);
	text-decoration: none;
}

/* Aucun lien stylé en bouton ne doit être souligné */
a.button,
a.vt-btn-primary,
a.vt-btn-ghost,
a.vt-btn-gold,
a.wp-element-button,
a.wp-block-button__link,
.woocommerce a.button,
.woocommerce ul.products li.product a.button {
	text-decoration: none;
}

/* =========================================================================
   5. Champs de formulaire
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	font-family: var(--vt-font);
	font-size: 15px;
	color: var(--vt-ink);
	background: var(--vt-card);
	border: 1.5px solid var(--vt-line);
	border-radius: var(--vt-radius-sm);
	padding: 14px 16px;
	transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--vt-ink);
	outline: none;
}

::placeholder {
	color: var(--vt-faint);
}

label {
	display: block;
	font-size: var(--vt-text-sm);
	font-weight: 800;
	margin-bottom: 6px;
}

/* =========================================================================
   6. En-tête
   ========================================================================= */

.vt-trustbar {
	background: var(--vt-ink);
	color: var(--vt-sand);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	padding: 10px 16px;
}

.vt-trustbar a {
	color: var(--vt-gold);
}

.vt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(246, 241, 231, 0.97);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--vt-line);
}

.vt-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px var(--vt-edge);
	max-width: var(--vt-content);
	margin: 0 auto;
}

/* 18 entrées au menu principal : au-delà de 3 lignes le bandeau mange l'écran. */
.vt-header__nav .vt-menu {
	max-height: 78px;
	overflow: hidden;
}

.vt-header__brand {
	flex: 0 0 auto;
	text-decoration: none;
	display: flex;
	align-items: center;
}

.vt-header__brand img {
	max-width: 130px;
	height: auto;
}

.vt-header__brand-text {
	font-family: var(--vt-display);
	font-size: 26px;
	color: var(--vt-ink);
	line-height: 1;
}

.vt-header__nav {
	flex: 1 1 auto;
	min-width: 0;
	display: none;
}

.vt-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.vt-header__icon {
	background: transparent;
	color: var(--vt-ink);
	border: 0;
	padding: 8px;
	font-size: 18px;
	line-height: 1;
	border-radius: 999px;
}

.vt-header__icon:hover {
	background: var(--vt-sand-deep);
	color: var(--vt-ink);
}

.vt-header__cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--vt-ink);
	color: var(--vt-sand);
	padding: 10px 16px;
	border-radius: 999px;
	font-size: var(--vt-text-sm);
	font-weight: 800;
	text-decoration: none;
}

.vt-header__cart:hover {
	background: var(--vt-ink-deep);
	color: var(--vt-sand);
}

.vt-header__cart-count {
	min-width: 18px;
}

/* Navigation principale */
.vt-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.vt-menu li {
	position: relative;
}

.vt-menu a {
	font-size: 14px;
	font-weight: 700;
	color: var(--vt-ink);
	text-decoration: none;
	padding: 6px 0;
	display: block;
	white-space: nowrap;
}

.vt-menu a:hover {
	color: var(--vt-cta);
}

.vt-menu .current-menu-item > a,
.vt-menu .current-menu-ancestor > a,
.vt-menu .current-product-ancestor > a {
	color: var(--vt-cta);
}

.vt-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--vt-card);
	border-radius: var(--vt-radius);
	box-shadow: 0 18px 40px -20px rgba(20, 49, 46, 0.35);
	padding: 10px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.vt-menu li:hover > .sub-menu,
.vt-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.vt-menu .sub-menu a {
	font-size: var(--vt-text-sm);
	font-weight: 600;
	padding: 11px 14px;
	border-radius: 10px;
	white-space: normal;
}

.vt-menu .sub-menu a:hover {
	background: var(--vt-sand);
	color: var(--vt-cta);
}

@media (min-width: 1025px) {
	.vt-header__nav {
		display: block;
	}

	.vt-header__toggle {
		display: none;
	}
}

/* En-dessous de 1400px le menu à 18 entrées ne tient pas : on garde le tiroir. */
@media (min-width: 1025px) and (max-width: 1399px) {
	.vt-header__nav {
		display: none;
	}

	.vt-header__toggle {
		display: inline-block;
	}
}

/* Tiroir mobile */
.vt-header__toggle {
	background: transparent;
	color: var(--vt-ink);
	border: 1.5px solid var(--vt-line);
	padding: 11px 14px;
	border-radius: var(--vt-radius-sm);
	font-size: 13px;
	font-weight: 800;
}

.vt-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
}

.vt-drawer.is-open {
	display: block;
}

.vt-drawer__veil {
	position: absolute;
	inset: 0;
	background: rgba(20, 49, 46, 0.55);
	border: 0;
	padding: 0;
	width: 100%;
	border-radius: 0;
}

.vt-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(88vw, 380px);
	background: var(--vt-sand);
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vt-drawer__close {
	align-self: flex-end;
	background: transparent;
	color: var(--vt-ink);
	border: 0;
	font-size: 22px;
	padding: 6px 10px;
}

.vt-drawer .vt-menu {
	flex-direction: column;
	gap: 2px;
}

.vt-drawer .vt-menu a {
	font-size: 16px;
	padding: 14px 12px;
	border-radius: var(--vt-radius-sm);
	white-space: normal;
}

.vt-drawer .vt-menu a:hover {
	background: var(--vt-sand-deep);
}

.vt-drawer .vt-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	background: transparent;
	padding: 0 0 0 14px;
}

/* Panneau de recherche */
.vt-search-panel {
	display: none;
	border-top: 1px solid var(--vt-line);
	background: var(--vt-card);
	padding: 20px var(--vt-edge);
}

.vt-search-panel.is-open {
	display: block;
}

.vt-search-panel form {
	max-width: var(--vt-content);
	margin: 0 auto;
	display: flex;
	gap: 10px;
}

/* =========================================================================
   7. Pied de page
   ========================================================================= */

.vt-footer {
	background: var(--vt-ink);
	color: rgba(246, 241, 231, 0.8);
	padding: 56px 0 28px;
	font-size: 14px;
}

.vt-footer a {
	color: rgba(246, 241, 231, 0.8);
	text-decoration: none;
}

.vt-footer a:hover {
	color: var(--vt-gold);
}

.vt-footer__cols {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	max-width: var(--vt-content);
	margin: 0 auto;
	padding: 0 var(--vt-edge);
}

@media (min-width: 700px) {
	.vt-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.vt-footer__cols {
		grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	}
}

.vt-footer__brand-name {
	font-family: var(--vt-display);
	font-size: 30px;
	color: var(--vt-sand);
	margin: 0 0 10px;
}

.vt-footer__tag {
	font-size: 14px;
	line-height: 1.6;
	max-width: 320px;
	margin: 0;
}

.vt-footer h2,
.vt-footer .widget-title {
	font-family: var(--vt-font);
	font-size: var(--vt-text-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vt-gold);
	margin: 0 0 14px;
}

.vt-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.vt-footer__bottom {
	max-width: var(--vt-content);
	margin: 40px auto 0;
	padding: 22px var(--vt-edge) 0;
	border-top: 1px solid rgba(246, 241, 231, 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	font-size: 12px;
}

/* =========================================================================
   8. Articles et pages
   ========================================================================= */

.vt-entry {
	max-width: var(--vt-content-narrow);
	margin: 0 auto;
}

.vt-entry__title {
	margin-bottom: 0.3em;
}

.vt-entry__meta {
	font-size: var(--vt-text-sm);
	font-weight: 700;
	color: var(--vt-muted);
	margin-bottom: 1.6em;
}

.vt-entry__thumb {
	border-radius: var(--vt-radius-lg);
	overflow: hidden;
	margin-bottom: 1.6em;
}

.vt-entry__content > *:last-child {
	margin-bottom: 0;
}

.vt-card-list {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.vt-card-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.vt-card-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.vt-post-card {
	background: var(--vt-card);
	border-radius: var(--vt-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.vt-post-card__thumb img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.vt-post-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.vt-post-card__title {
	font-size: 22px;
	margin: 0;
}

.vt-post-card__title a {
	text-decoration: none;
}

.vt-post-card__excerpt {
	font-size: 14px;
	color: var(--vt-ink-soft);
	margin: 0;
}

/* Pagination */
.vt-pagination {
	margin-top: 40px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.vt-pagination .page-numbers {
	background: var(--vt-card);
	color: var(--vt-ink);
	padding: 12px 17px;
	border-radius: var(--vt-radius-sm);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.vt-pagination .page-numbers.current,
.vt-pagination .page-numbers:hover {
	background: var(--vt-ink);
	color: var(--vt-sand);
}

/* Commentaires */
.vt-comments {
	max-width: var(--vt-content-narrow);
	margin: 48px auto 0;
}

.vt-comments ol {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vt-comments .comment-body {
	background: var(--vt-card);
	border-radius: var(--vt-radius);
	padding: 20px;
}

/* =========================================================================
   9. Étoiles de notation — jaune, comme sur le site actuel
   ========================================================================= */

.star-rating span::before,
.star-rating::before,
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce ul.products li.product .star-rating span::before {
	color: var(--vt-star);
}

/* reCAPTCHA masqué, comme sur le site actuel */
.grecaptcha-badge {
	visibility: hidden;
}

/* =========================================================================
   10. Blocs Gutenberg
   ========================================================================= */

.alignwide {
	max-width: calc(var(--vt-content) + 200px);
}

.alignfull {
	max-width: none;
	width: 100%;
}

.wp-block-image img {
	border-radius: var(--vt-radius);
}

.wp-block-group.has-background {
	border-radius: var(--vt-radius-lg);
	padding: 28px;
}
