/*
Theme Name: Terranga
Author: Blitz
Description: Boutique en ligne de vanille — poudre et gousses entières.
Version: 1.0.5
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: teranga
*/

/* -------------------------------------------------------------------------
   Terranga — styles personnalisés
------------------------------------------------------------------------- */

:root {
	--teranga-amber: #cf8a00;
	--teranga-cream: #e3d4cd;
	--teranga-brown: #422517;
	--teranga-plum: #432030;
	--teranga-white: #ffffff;
}

/* ---------- Header ---------- */
.teranga-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

.teranga-announce {
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

.teranga-announce .wmc-currency select {
	background: transparent;
	color: var(--teranga-cream);
	border: 1px solid rgba(227, 212, 205, 0.4);
	border-radius: 999px;
	padding: 0.25rem 0.6rem;
	font-size: 0.8rem;
	cursor: pointer;
}
.teranga-announce .wmc-currency select option {
	color: var(--teranga-brown);
}

.teranga-logo__title a,
.teranga-logo__title .wp-block-site-title {
	color: var(--teranga-brown);
	text-decoration: none;
	margin: 0;
}
.teranga-logo__title a:hover {
	color: var(--teranga-amber);
}
.teranga-logo__tagline {
	color: var(--teranga-amber);
	margin: 0;
}

.teranga-nav .wp-block-navigation-item__content {
	color: var(--teranga-brown);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-decoration: none;
}
.teranga-nav .wp-block-navigation-item__content:hover,
.teranga-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--teranga-amber);
}

/* ---------- Footer ---------- */
.teranga-footer {
	background-color: var(--teranga-brown);
	color: var(--teranga-cream);
}
.teranga-footer a {
	color: var(--teranga-cream);
	text-decoration: none;
}
.teranga-footer a:hover {
	color: var(--teranga-amber);
}
.teranga-footer h2,
.teranga-footer h3 {
	color: var(--teranga-white);
}
.teranga-footer__bottom {
	border-top: 1px solid rgba(227, 212, 205, 0.2);
}

/* ---------- Home ---------- */
.teranga-hero__eyebrow {
	color: var(--teranga-amber);
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 0.8rem;
}
.teranga-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	color: var(--teranga-plum);
}
.teranga-story {
	color: var(--teranga-cream);
}
.teranga-story h2 {
	color: var(--teranga-cream);
}
.teranga-cat-card__image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 4px;
}
.teranga-value {
	text-align: center;
}
.teranga-value__icon {
	font-size: 2rem;
	color: var(--teranga-amber);
	margin-bottom: 0.25rem;
}
.teranga-value h3 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.4em;
	margin: 0 0 0.5rem;
}
.teranga-value > p:not(.teranga-value__icon) {
	margin: 0;
}

/* ---------- Newsletter form ---------- */
.teranga-newsletter {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 420px;
	margin: 0 auto;
}
.teranga-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(227, 212, 205, 0.5);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 0.9rem;
	line-height: 1.4;
}
.teranga-newsletter input[type="email"]::placeholder {
	color: rgba(66, 37, 23, 0.6);
}
.teranga-newsletter-cta .teranga-newsletter input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.7);
}
.teranga-newsletter-cta .teranga-newsletter {
	margin: 0.75rem auto 0;
}
.teranga-newsletter button {
	padding: 0.55rem 1.2rem;
	border: none;
	border-radius: 999px;
	background: var(--teranga-brown);
	color: var(--teranga-white);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78rem;
	white-space: nowrap;
	line-height: 1.4;
	cursor: pointer;
}
.teranga-newsletter button:hover {
	background: var(--teranga-amber);
}

/* Footer : fond brun → bouton ambre (sinon invisible) + placeholder clair */
.teranga-footer .teranga-newsletter {
	max-width: none;
	margin: 0.75rem 0 0;
}
.teranga-footer .teranga-newsletter input[type="email"]::placeholder {
	color: rgba(227, 212, 205, 0.65);
}
.teranga-footer .teranga-newsletter button {
	background: var(--teranga-amber);
}
.teranga-footer .teranga-newsletter button:hover {
	background: #b87a00;
}

/* ---------- WooCommerce products grid ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}
.woocommerce ul.products li.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0;
	clear: none !important;
	text-align: center;
}
.woocommerce ul.products li.first {
	clear: none !important;
}
.woocommerce ul.products li.last {
	margin-right: 0 !important;
}
.woocommerce ul.products li.product img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.woocommerce ul.products li.product .price {
	color: var(--teranga-amber);
	font-weight: 600;
}
.woocommerce ul.products li.product .button {
	background: var(--teranga-plum);
	color: var(--teranga-white);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--teranga-amber);
}
@media (max-width: 1024px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Carrousel hero (16:9 plein écran) ---------- */
.teranga-carousel {
	position: relative;
	width: 100%;
	aspect-ratio: 32 / 9;
	overflow: hidden;
	background: var(--teranga-brown);
}
.teranga-carousel__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.teranga-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
.teranga-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.teranga-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(66, 37, 23, 0.55);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.3s ease;
}
.teranga-carousel__arrow:hover {
	background: var(--teranga-amber);
}
.teranga-carousel__arrow--prev { left: 1rem; }
.teranga-carousel__arrow--next { right: 1rem; }
.teranga-carousel__dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.6rem;
	z-index: 2;
}
.teranga-carousel__dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease;
}
.teranga-carousel__dots button.is-active {
	background: #fff;
}

/* ---------- Formulaire de contact (CF7) ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(66, 37, 23, 0.25);
	border-radius: 4px;
	font-size: 1rem;
	background: #fff;
	color: var(--teranga-brown);
}
.wpcf7 textarea {
	min-height: 240px;
	resize: vertical;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--teranga-amber);
	outline: none;
}
.wpcf7 input[type="submit"] {
	background: var(--teranga-amber);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.8rem 2.2rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.3s ease;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--teranga-brown);
}
.teranga-form-note {
	font-size: 0.85rem;
	color: var(--teranga-brown);
	opacity: 0.75;
	margin-top: 1rem;
}
