/*
Theme Name: GELUX Pro
Description: Thème WordPress professionnel pour GELUX - Expert BTP, Immobilier et Conseil au Sénégal. Optimisé mobile et couleurs BTP.
Version: 2.0.0
Author: GELUX Team
Text Domain: gelux
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

GELUX Pro WordPress Theme - Optimisé couleurs BTP et responsive mobile
*/

/* =============================================
   VARIABLES CSS - COULEURS GELUX
   ============================================= */
:root {
  /* Couleurs principales GELUX */
  --gelux-primary: #2B5797;
  --gelux-secondary: #FF6B35;
  --gelux-accent: #34D399;
  --gelux-dark: #1F2937;
  --gelux-light: #F9FAFB;
  --gelux-white: #FFFFFF;

  /* Couleurs de texte */
  --text-primary: #111827;
  --text-secondary: #6B7280;

  /* Couleurs d'état */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Gradients BTP */
  --gradient-primary: linear-gradient(135deg, var(--gelux-primary), var(--gelux-secondary));
  --gradient-hero: linear-gradient(135deg, var(--gelux-primary) 0%, var(--gelux-secondary) 100%);
  --gradient-accent: linear-gradient(90deg, var(--gelux-accent), var(--gelux-primary));

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Espacements responsive */
  --container-padding: 1rem;
  --section-padding: 4rem 0;
  --section-padding-mobile: 2rem 0;

  /* Tailles de police responsive */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--gelux-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   LAYOUT CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Containers responsives */
.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 87, 151, 0.1);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  min-height: 80px;
}

/* Logo */
.site-logo {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--gelux-primary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-base);
  letter-spacing: -0.025em;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Navigation principale */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-base);
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--gelux-primary);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

/* Bouton CTA header */
.header-cta {
  background: var(--gradient-primary);
  color: var(--gelux-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gelux-primary);
  transition: all var(--transition-base);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--gradient-hero);
  color: var(--gelux-white);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   BOUTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--gelux-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--gelux-white);
  border: 2px solid var(--gelux-white);
}

.btn-outline:hover {
  background: var(--gelux-white);
  color: var(--gelux-primary);
}

.btn-secondary {
  background: var(--gelux-secondary);
  color: var(--gelux-white);
}

.btn-secondary:hover {
  background: #e55a2b;
  transform: translateY(-1px);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--gelux-light);
}

.section-dark {
  background: var(--gelux-dark);
  color: var(--gelux-white);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-title,
.section-dark .section-subtitle {
  color: var(--gelux-white);
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--gelux-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(43, 87, 151, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  color: var(--gelux-white);
  box-shadow: var(--shadow-md);
}

.service-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gelux-primary);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* =============================================
   CONTENT GRIDS
   ============================================= */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
  align-items: center;
}

.content-text h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gelux-primary);
  letter-spacing: -0.025em;
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.content-list {
  list-style: none;
  margin: 2rem 0;
}

.content-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(43, 87, 151, 0.1);
}

.content-list li:last-child {
  border-bottom: none;
}

.content-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--gelux-accent);
  font-weight: bold;
  font-size: var(--font-size-lg);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gelux-secondary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-item-icon {
  font-size: var(--font-size-xl);
  margin-right: 1rem;
  color: var(--gelux-secondary);
  min-width: 24px;
}

.contact-item-text {
  color: var(--gelux-white);
  line-height: 1.5;
}

.contact-item-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gelux-white);
}

/* =============================================
   FORMULAIRES
   ============================================= */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gelux-white);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gelux-white);
  transition: all var(--transition-base);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
  outline: none;
  border-color: var(--gelux-secondary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--gelux-dark);
  color: var(--gelux-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gelux-secondary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-section ul li a:hover {
  color: var(--gelux-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   BLOG STYLES
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--gelux-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.blog-content h3 a:hover {
  color: var(--gelux-primary);
}

.blog-meta {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* =============================================
   UTILITAIRES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* =============================================
   WORDPRESS SPECIFIC
   ============================================= */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius-md); }

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.wp-caption {
  background: var(--gelux-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================= */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
  .container {
    --container-padding: 1.5rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* Smartphones et écrans moyens */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
    --container-padding: 1rem;
  }

  /* Header mobile */
  .site-header .container {
    min-height: 70px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .main-navigation.active {
    transform: translateY(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .main-navigation a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(43, 87, 151, 0.1);
  }

  .main-navigation a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Hero mobile */
  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Boutons mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-sm);
  }
}

/* Petits smartphones */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
  }
}

/* =============================================
   ANIMATIONS & INTERACTIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* =============================================
   STATES & FOCUS
   ============================================= */
:focus {
  outline: 2px solid var(--gelux-secondary);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* États de chargement */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gelux-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .btn,
  .site-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  .hero-section {
    background: none !important;
    color: #000 !important;
    padding: 2rem 0 !important;
  }

  .service-card,
  .blog-card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
