/*
 Theme Name:   DESVA Child
 Theme URI:    http://desva.test
 Description:  Thème enfant de Hello Elementor pour DESVA Company-CI
 Author:       DESVA Company-CI
 Author URI:   http://desva-ci.com
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  desva-child
*/

/* ============================================================
   VARIABLES DESVA
   ============================================================ */
:root {
  --primary:       #488933;
  --primary-dark:  #356625;
  --primary-light: #5aa340;
  --secondary:     #026092;
  --secondary-dark:#024d75;
  --accent:        #f0a500;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --surface:       #f8fafc;
  --border:        #e5e7eb;
  --white:         #ffffff;
  --font:          'Comic Neue', 'Comic Sans MS', cursive;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --transition:    all 0.3s ease;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body, body * {
  font-family: var(--font) !important;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.desva-top-bar {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 8px 0;
  position: relative;
  z-index: 1000;
}
.desva-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.desva-top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.desva-top-bar-left a,
.desva-top-bar-right a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.desva-top-bar-left a:hover,
.desva-top-bar-right a:hover { color: #fff; }
.desva-top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.desva-top-bar-right a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header,
.elementor-location-header,
header.site-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Logo */
.desva-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.desva-logo img { height: 56px; width: auto; }
.desva-logo-text .brand {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.desva-logo-text .tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav links */
.desva-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.desva-nav a:hover,
.desva-nav a.active {
  color: var(--primary);
  background: rgba(72,137,51,0.08);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .wp-block-button__link, .elementor-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font) !important;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(72,137,51,0.35);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff !important;
  border-color: var(--secondary);
}
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff !important;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* ============================================================
   PAGE HERO (bannières de pages internes)
   ============================================================ */
.desva-page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.desva-page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.desva-page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 16px 0 8px;
}
.desva-page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.desva-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.desva-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.desva-breadcrumb a:hover { color: #fff; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.desva-section { padding: 80px 0; }
.desva-section-alt { background: var(--surface); }
.desva-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.desva-section-header { text-align: center; margin-bottom: 50px; }
.desva-section-tag {
  display: inline-block;
  background: rgba(72,137,51,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.desva-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.desva-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.desva-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.desva-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.desva-product-card-body { padding: 20px; }
.desva-product-tag {
  display: inline-block;
  background: rgba(72,137,51,0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.desva-product-card h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.desva-product-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.desva-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255,255,255,0.85);
}
.desva-footer-top { padding: 60px 0 40px; }
.desva-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.desva-footer-title {
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.desva-footer-links { list-style: none; padding: 0; margin: 0; }
.desva-footer-links li { margin-bottom: 10px; }
.desva-footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.desva-footer-links a:hover { color: var(--primary); }
.desva-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.desva-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.desva-cta h2 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 16px; }
.desva-cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }
.desva-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FORMS (Contact Form 7)
   ============================================================ */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font) !important;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fff;
  margin-bottom: 16px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--primary); }
.wpcf7 input[type="submit"] {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.wpcf7 input[type="submit"]:hover { background: var(--primary-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .desva-footer-grid { grid-template-columns: 1fr 1fr; }
  .desva-page-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .desva-footer-grid { grid-template-columns: 1fr; }
  .desva-top-bar-left { display: none; }
}
