/*
Theme Name: PowerAE Theme
Theme URI: https://powerae.fr
Description: Thème WordPress sur-mesure pour PowerAE - Solution de génération de leads pour auto-écoles. Thème minimaliste, stable et performant avec gestion de menu native WordPress.
Version: 1.0.0
Author: PowerAE
Author URI: https://powerae.fr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerae
Tags: custom, minimal, business, responsive
*/

/*
==========================================================================
   VARIABLES CSS POWERAE
==========================================================================
*/
:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --muted: #a0a0a0;
  --primary: #4169e1;
  --primary-2: #3b5dd1;
  --success: #00d97e;
  --warning: #ffa500;
  --gold: #ffd700;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 10px 30px rgba(65, 105, 225, 0.25);
  --container: 1200px;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-2);
}

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

/*
==========================================================================
   CONTAINER
==========================================================================
*/
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/*
==========================================================================
   HEADER POWERAE
==========================================================================
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0;
}

/* Logo */
.site-logo a {
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

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

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.main-navigation a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
}

/* Bouton CTA dans le menu */
.main-navigation .menu-item-cta a,
.main-navigation .btn-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--text) !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
}

.main-navigation .menu-item-cta a:hover,
.main-navigation .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

/* Menu mobile toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .site-logo a {
    font-size: 20px;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
  }

  .main-navigation.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 12px;
  }

  .main-navigation a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }
}

/*
==========================================================================
   FOOTER POWERAE
==========================================================================
*/
.site-footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-weight: 800;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.footer-links a {
  color: var(--primary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--success);
}

.footer-links span {
  color: #666;
  font-size: 12px;
}

.footer-copy {
  color: #777;
  font-size: 14px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 36px 0 20px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-text {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links span {
    display: none;
  }
}

/*
==========================================================================
   CONTENU
==========================================================================
*/
.site-content {
  padding: 0;
  margin: 0;
}

.entry-content {
  padding: 0;
  margin: 0;
}

/* Masquer titre de page par défaut */
.entry-header,
.page-header,
.entry-title,
.page-title {
  display: none;
}

/*
==========================================================================
   BOUTONS GÉNÉRAUX
==========================================================================
*/
.btn,
.wp-block-button__link,
button[type="submit"] {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--text) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text) !important;
}

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

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

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

/*
==========================================================================
   RESPONSIVE
==========================================================================
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
