/*
Theme Name: GECOVENTA
Theme URI: https://komerci.sn
Author: GECOVENTA
Description: Thème officiel GECOVENTA, prêt pour Elementor. À l'activation, il crée la page d'accueil, les pages Inscription / Connexion / Application et le menu. Tout se modifie ensuite dans Elementor et dans Apparence > Personnaliser.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: komerci-theme
Tags: custom-logo, custom-menu, full-width-template, translation-ready
*/

:root {
	--kt-primary: #0B6E4F;
	--kt-accent: #F2A541;
	--kt-ink: #1C2420;
	--kt-muted: #5E6863;
	--kt-bg: #F5F5F0;
	--kt-line: #E3E6E2;
	--kt-white: #FFFFFF;
	--kt-radius: 14px;
	--kt-max: 1180px;
	--kt-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--kt-font); font-size: 16px; line-height: 1.6; color: var(--kt-ink); background: var(--kt-white); }
img { max-width: 100%; height: auto; }
a { color: var(--kt-primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.kt-wrap { width: 100%; max-width: var(--kt-max); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; }

/* ---------- Boutons ---------- */
.kt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; background: var(--kt-primary); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: filter .15s, transform .05s; cursor: pointer; }
.kt-btn:hover { filter: brightness(1.07); color: #fff; }
.kt-btn:active { transform: scale(.98); }
.kt-btn.kt-ghost { background: transparent; color: var(--kt-ink); border-color: var(--kt-line); }
.kt-btn.kt-ghost:hover { color: var(--kt-ink); background: var(--kt-bg); }
.kt-btn.kt-accent { background: var(--kt-accent); color: #1C1407; }
.kt-btn.kt-accent:hover { color: #1C1407; }
.kt-btn.kt-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- En-tête ---------- */
.kt-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--kt-line); }
.admin-bar .kt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kt-header { top: 46px; } }
.kt-header .kt-wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.kt-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--kt-ink); text-decoration: none; margin-right: auto; }
.kt-brand img { max-height: 44px; width: auto; }
.kt-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--kt-primary); position: relative; flex-shrink: 0; }
.kt-mark::after { content: ""; position: absolute; inset: 10px; border-radius: 3px; background: var(--kt-accent); }
.kt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.kt-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--kt-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.kt-nav a:hover { background: var(--kt-bg); color: var(--kt-primary); }
.kt-actions { display: flex; gap: 10px; align-items: center; }
.kt-actions .kt-btn { min-height: 42px; padding: 0 16px; }
.kt-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--kt-line); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.kt-burger span, .kt-burger span::before, .kt-burger span::after { display: block; width: 18px; height: 2px; background: var(--kt-ink); position: relative; content: ""; }
.kt-burger span::before { position: absolute; top: -6px; }
.kt-burger span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
	.kt-burger { display: inline-flex; }
	.kt-nav, .kt-actions .kt-hide-mobile { display: none; }
	.kt-header.is-open .kt-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--kt-line); padding: 10px 20px 18px; }
	.kt-header.is-open .kt-nav ul { flex-direction: column; }
	.kt-header.is-open .kt-nav a { padding: 12px; }
	.kt-header.is-open .kt-mobile-actions { display: grid; }
}
.kt-mobile-actions { display: none; gap: 10px; margin-top: 10px; }

/* ---------- Contenu ---------- */
.kt-main { min-height: 50vh; }
.kt-page { padding: 56px 0 80px; }
.kt-page .entry-title { font-size: clamp(30px, 5vw, 44px); margin-bottom: 24px; }
.kt-page .entry-content > * { max-width: 760px; }
.kt-page .entry-content > .alignwide, .kt-page .entry-content > .alignfull { max-width: none; }
.kt-page .entry-content .komerci-root { max-width: none; }
.kt-posts article { padding: 28px 0; border-bottom: 1px solid var(--kt-line); }
.kt-posts h2 a { color: var(--kt-ink); text-decoration: none; }
/* Pages Elementor : aucune marge imposée par le thème. */
.kt-elementor { padding: 0; }

/* ---------- Pied de page ---------- */
.kt-footer { background: var(--kt-ink); color: #C9D1CD; padding: 56px 0 28px; font-size: 15px; }
.kt-footer a { color: #fff; text-decoration: none; }
.kt-footer a:hover { text-decoration: underline; }
.kt-footer .kt-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.kt-footer .kt-brand { color: #fff; margin-bottom: 12px; }
.kt-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.kt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kt-footer .kt-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #9AA5A0; }
@media (max-width: 760px) { .kt-footer .kt-cols { grid-template-columns: 1fr; } }

/* ---------- Page d'accueil intégrée (si Elementor n'est pas utilisé) ---------- */
.kt-sec { padding: 88px 0; }
.kt-sec.kt-alt { background: var(--kt-bg); }
.kt-sec.kt-dark { background: var(--kt-primary); color: #fff; }
.kt-center { text-align: center; }
.kt-h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.kt-h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.kt-lead { font-size: clamp(17px, 2vw, 20px); color: var(--kt-muted); }
.kt-dark .kt-lead { color: #DCEBE5; }
.kt-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.kt-hero .kt-note { font-size: 14px; color: var(--kt-muted); margin-top: 12px; }
.kt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.kt-card { background: #fff; border: 1px solid var(--kt-line); border-radius: 18px; padding: 28px 24px; }
.kt-card h3 { font-size: 20px; }
.kt-card p { color: var(--kt-muted); margin: 0; }
.kt-ico { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--kt-primary) 12%, #fff); color: var(--kt-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.kt-ico svg { width: 24px; height: 24px; }
.kt-step b { display: block; font-size: 46px; font-weight: 800; color: var(--kt-accent); line-height: 1; margin-bottom: 10px; }
.kt-price { text-align: left; display: flex; flex-direction: column; }
.kt-price .kt-amount { font-size: 34px; font-weight: 800; color: var(--kt-primary); }
.kt-price ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; }
.kt-price li::before { content: "✓ "; color: var(--kt-primary); font-weight: 800; }
.kt-price .kt-btn { margin-top: auto; }
.kt-price.kt-featured { background: var(--kt-primary); color: #fff; border-color: transparent; }
.kt-price.kt-featured p, .kt-price.kt-featured li::before { color: #DCEBE5; }
.kt-price.kt-featured .kt-amount { color: var(--kt-accent); }
.kt-faq { max-width: 820px; margin: 36px auto 0; }
.kt-faq details, .elementor-widget-text-editor details { background: #fff; border: 1px solid var(--kt-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.kt-faq summary, .elementor-widget-text-editor summary { font-weight: 700; cursor: pointer; }
.kt-faq details p, .elementor-widget-text-editor details p { color: var(--kt-muted); margin: 10px 0 0; }
@media (max-width: 900px) {
	.kt-sec { padding: 60px 0; }
	.kt-hero, .kt-grid3 { grid-template-columns: 1fr; }
	.kt-hero { gap: 32px; }
}

/* ================================================================== */
/* Accueil v2 (accueil intégré + compléments pour les pages Elementor) */
/* ================================================================== */
.kt-btn.kt-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.kt-btn.kt-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.kt-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kt-primary); margin-bottom: 10px; }
.kt-mt-lg { margin-top: 44px; }

.kt-hero-x { position: relative; overflow: hidden; color: #fff; padding: 84px 0 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(242,165,65,.18), transparent 60%), linear-gradient(140deg, var(--kt-primary) 0%, #073D2C 100%); }
.kt-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: end; }
.kt-hero-copy { padding-bottom: 84px; }
.kt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 700; margin-bottom: 22px; }
.kt-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kt-accent); }
.kt-hero-x h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; color: #fff; }
.kt-hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); max-width: 540px; margin: 0 0 30px; }
.kt-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.kt-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 15px; }
.kt-trust li { display: inline-flex; align-items: center; gap: 8px; }
.kt-trust svg { width: 18px; height: 18px; color: var(--kt-accent); }
.kt-hero-visual img { display: block; width: 112%; max-width: none; margin-bottom: -2px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.25)); }

.kt-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.kt-type { background: #fff; border: 1px solid var(--kt-line); border-radius: 18px; padding: 22px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.kt-type:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--kt-primary) 35%, var(--kt-line)); box-shadow: 0 14px 30px rgba(16,24,20,.07); }
.kt-type-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--kt-accent) 22%, #fff); color: #8A4B00; margin-bottom: 14px; }
.kt-type-ico svg { width: 26px; height: 26px; }
.kt-type h3 { font-size: 17px; margin: 0 0 4px; }
.kt-type p { margin: 0; color: var(--kt-muted); font-size: 14.5px; line-height: 1.45; }

.kt-show { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.kt-show-img img { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.kt-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: 16.5px; }
.kt-checks li { display: flex; gap: 12px; align-items: flex-start; }
.kt-checks svg { flex-shrink: 0; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--kt-primary) 12%, #fff); color: var(--kt-primary); }
.kt-steps-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--kt-line); }
.kt-steps-mini div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--kt-muted); }
.kt-steps-mini b { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--kt-accent); color: #1C1407; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.kt-steps-mini strong { display: block; color: var(--kt-ink); font-size: 15px; }

.kt-cta-x { background: linear-gradient(140deg, var(--kt-primary) 0%, #073D2C 100%); color: #fff; }
.kt-cta-x .kt-lead { color: rgba(255,255,255,.85); }
.kt-cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.kt-cta-x .komerci-root { color: var(--kt-ink); }

@media (max-width: 900px) {
	.kt-hero-x { padding-top: 56px; }
	.kt-hero-grid, .kt-show, .kt-cta-grid { grid-template-columns: 1fr; gap: 32px; }
	.kt-hero-copy { padding-bottom: 0; }
	.kt-hero-visual img { width: 100%; }
	.kt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.kt-type { padding: 18px 16px; }
	.kt-steps-mini { grid-template-columns: 1fr; }
	.kt-show-img img { max-width: 300px; }
}
@media (max-width: 380px) { .kt-types { grid-template-columns: 1fr; } }

/* Pages Elementor : petits compléments du modèle GECOVENTA */
.kt-elementor .kt-e-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 13.5px; font-weight: 700; color: #fff; }
.kt-elementor .kt-e-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kt-accent); }
.kt-elementor .kt-e-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.kt-elementor .kt-e-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kt-elementor .kt-e-checks li::before, .kt-elementor .kt-e-trust li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; font-size: 13px; font-weight: 800; background: color-mix(in srgb, var(--kt-accent) 30%, transparent); color: inherit; }
.kt-elementor .kt-e-kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kt-primary); }
