/*
Theme Name: Falla Copy
Theme URI: https://fallacopyservice.com
Author: Falla Copy Service
Description: Thème sur-mesure pour Falla Copy Service (Niamey, Niger) — page d'accueil claire présentant catalogue, agences, moyens de paiement et contacts, bâti sur WooCommerce et le plugin Falla OS.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: falla-copy
*/

:root {
	--fos-bordeaux: #7a1f2b;
	--fos-bordeaux-dark: #5c1720;
	--fos-sky: #4fb6e8;
	--fos-orange: #f5821f;
	--fos-yellow: #ffc93c;
	--fos-white: #ffffff;
	--fos-ink: #2b2020;
	--fos-bg: #fbf8f4;
	--fos-border: #e7ddd3;
	--fos-radius: 10px;
	--fos-max-width: 1180px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fos-ink);
	background: var(--fos-bg);
	line-height: 1.55;
}

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

a {
	color: var(--fos-bordeaux);
	text-decoration: none;
}

a:hover {
	color: var(--fos-orange);
}

.fos-container {
	max-width: var(--fos-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Boutons ---------- */
.fos-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fos-btn:hover {
	transform: translateY(-1px);
}

.fos-btn-primary {
	background: var(--fos-orange);
	color: var(--fos-white);
}

.fos-btn-primary:hover {
	background: #d96e12;
	color: var(--fos-white);
}

.fos-btn-outline {
	background: transparent;
	border-color: var(--fos-white);
	color: var(--fos-white);
}

.fos-btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
	color: var(--fos-white);
}

.fos-btn-secondary {
	background: transparent;
	border-color: var(--fos-bordeaux);
	color: var(--fos-bordeaux);
}

.fos-btn-secondary:hover {
	background: var(--fos-bordeaux);
	color: var(--fos-white);
}

.fos-btn-danger {
	background: #b3261e;
	color: var(--fos-white);
}

.fos-btn-danger:hover {
	background: #8f1e18;
	color: var(--fos-white);
}

/* ---------- Notices (preuve de paiement, BAT graphiste) ---------- */
.fos-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
	border: 1px solid transparent;
}

.fos-notice-success {
	background: #e6f4ea;
	color: #1e4620;
	border-color: #b7dfc0;
}

.fos-notice-error {
	background: #fdecea;
	color: #611a15;
	border-color: #f3b4ab;
}

/* ---------- En-tête ---------- */
.fos-site-header {
	background: var(--fos-bordeaux);
	color: var(--fos-white);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.fos-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 20px;
}

.fos-logo {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--fos-white);
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.fos-logo span {
	color: var(--fos-yellow);
}

.fos-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.fos-nav {
	display: flex;
	gap: 4px;
}

.fos-nav ul {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.fos-nav a {
	color: var(--fos-white);
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 0.95rem;
}

.fos-nav a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--fos-white);
}

.fos-search-form {
	display: flex;
}

.fos-search-form input[type="search"] {
	border: none;
	border-radius: 999px 0 0 999px;
	padding: 8px 14px;
	font-size: 0.9rem;
	width: 160px;
}

.fos-search-form button {
	border: none;
	background: var(--fos-yellow);
	color: var(--fos-bordeaux-dark);
	border-radius: 0 999px 999px 0;
	padding: 0 14px;
	cursor: pointer;
	font-weight: 700;
}

.fos-cart-link {
	position: relative;
	color: var(--fos-white);
	font-weight: 600;
	white-space: nowrap;
}

.fos-cart-count {
	background: var(--fos-yellow);
	color: var(--fos-bordeaux-dark);
	font-size: 0.7rem;
	font-weight: 800;
	border-radius: 999px;
	padding: 1px 6px;
	margin-left: 4px;
}

.fos-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: var(--fos-white);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 1.1rem;
	cursor: pointer;
}

/* ---------- Hero ---------- */
.fos-hero {
	background: linear-gradient(135deg, var(--fos-bordeaux) 0%, var(--fos-bordeaux-dark) 100%);
	color: var(--fos-white);
	padding: 64px 20px;
	text-align: center;
}

.fos-hero h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 0 0 14px;
}

.fos-hero p {
	font-size: 1.15rem;
	max-width: 640px;
	margin: 0 auto 30px;
	opacity: 0.92;
}

.fos-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Sections génériques ---------- */
.fos-section {
	padding: 56px 20px;
}

.fos-section-alt {
	background: var(--fos-white);
}

.fos-section-title {
	text-align: center;
	margin: 0 0 8px;
	font-size: 1.8rem;
	color: var(--fos-bordeaux);
}

.fos-section-subtitle {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 36px;
	color: #6b5f5a;
}

/* ---------- Catégories ---------- */
.fos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.fos-category-card {
	background: var(--fos-white);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	padding: 26px 18px;
	text-align: center;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.fos-category-card:hover {
	box-shadow: 0 8px 20px rgba(122, 31, 43, 0.12);
	transform: translateY(-3px);
}

.fos-category-icon {
	width: 46px;
	height: 46px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--fos-sky);
	color: var(--fos-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.1rem;
}

.fos-category-card h3 {
	margin: 0;
	font-size: 1.02rem;
	color: var(--fos-ink);
}

/* ---------- Produits ---------- */
.fos-product-card {
	background: var(--fos-white);
	border: 1px solid var(--fos-border);
	border-radius: var(--fos-radius);
	overflow: hidden;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.fos-product-card .fos-product-image {
	aspect-ratio: 1 / 1;
	background: var(--fos-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fos-product-card .fos-product-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fos-product-card h3 {
	margin: 0;
	font-size: 1rem;
}

.fos-product-price {
	color: var(--fos-bordeaux);
	font-weight: 700;
}

.fos-badge-sale {
	display: inline-block;
	background: var(--fos-orange);
	color: var(--fos-white);
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 10px;
	margin-bottom: 4px;
}

/* ---------- Agences ---------- */
.fos-agence-card {
	background: var(--fos-white);
	border: 1px solid var(--fos-border);
	border-left: 4px solid var(--fos-sky);
	border-radius: var(--fos-radius);
	padding: 16px 18px;
}

.fos-agence-card h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	color: var(--fos-bordeaux);
}

.fos-agence-card p {
	margin: 0;
	color: #6b5f5a;
	font-size: 0.9rem;
}

/* ---------- Paiement / infos ---------- */
.fos-info-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.fos-info-columns h3 {
	color: var(--fos-bordeaux);
	margin-top: 0;
}

.fos-payment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fos-payment-list li {
	background: var(--fos-bg);
	border: 1px solid var(--fos-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 500;
}

/* ---------- Contacts / pied de page ---------- */
.fos-site-footer {
	background: var(--fos-ink);
	color: #ece5e0;
	padding: 48px 20px 24px;
}

.fos-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	margin-bottom: 32px;
}

.fos-footer-grid h4 {
	color: var(--fos-yellow);
	margin: 0 0 12px;
	font-size: 1rem;
}

.fos-footer-grid a {
	color: #ece5e0;
}

.fos-footer-grid a:hover {
	color: var(--fos-yellow);
}

.fos-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 18px;
	text-align: center;
	font-size: 0.85rem;
	color: #b9aea8;
}

/* ---------- Contenu générique (pages, boutique, etc.) ---------- */
.fos-page-content {
	max-width: var(--fos-max-width);
	margin: 0 auto;
	padding: 48px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
	.fos-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.fos-nav.is-open {
		display: block;
	}

	.fos-nav ul {
		flex-direction: column;
	}

	.fos-menu-toggle {
		display: inline-block;
	}

	.fos-header-inner {
		flex-wrap: wrap;
	}

	.fos-search-form input[type="search"] {
		width: 120px;
	}
}
