/*
Theme Name: Mobilevolt - Carte des Bornes de Recharge
Theme URI: https://mobilevolt.fr
Description: Thème personnalisé pour le site Mobilevolt.fr - Carte interactive des bornes de recharge électrique en France. Design moderne et optimisé pour la géolocalisation.
Author: ABSOLUINFO
Author URI: https://absoluinfo.fr
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mobilevolt
Tags: carte, geolocalisation, bornes-recharge, vehicules-electriques, modern, responsive
*/

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-secondary: #4CAF50;
    --color-secondary-dark: #45a049;
    --color-accent: #f093fb;
    --color-accent-dark: #f5576c;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.15);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.2);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 25px;
    --transition: all 0.3s ease;
}

/* ===================================
   BANNIÈRE EN HAUT
   =================================== */
.top-banner {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1001;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.top-banner .banner-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    padding: 5px 10px;
    border-radius: 5px;
}

.top-banner .banner-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.top-banner .banner-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.top-banner .banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.top-banner .banner-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        font-size: 13px;
        padding: 10px 15px;
    }

    .top-banner-content {
        gap: 10px;
    }

    .top-banner .banner-close {
        width: 24px;
        height: 24px;
    }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

/* ===================================
   HEADER PERSONNALISÉ
   =================================== */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .site-branding {
    padding: 20px;
    text-align: center;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--color-white);
}

.site-title a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    font-size: 14px;
    opacity: 0.95;
    margin: 5px 0 0;
    font-weight: 400;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navigation {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   PAGE D'ACCUEIL FULL-WIDTH
   =================================== */
.home .site-content,
.page-template-front-page .site-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.fullwidth-carte-container {
    width: 100vw;
    height: calc(100vh - 120px);
    position: relative;
    margin: 0;
    padding: 0;
}

/* Adapter le conteneur de la carte */
.fullwidth-carte-container .carte-bornes-recharge-container {
    margin: 0;
    height: 100%;
}

.fullwidth-carte-container .cbr-map {
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0;
}

/* ===================================
   BOUTON CTA (Call To Action)
   =================================== */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

/* ===================================
   SECTIONS DE CONTENU
   =================================== */
.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.content-section p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* ===================================
   CARDS / BOÎTES
   =================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: #2c3e50;
    color: var(--color-white);
    padding: 40px 20px 20px;
    text-align: center;
}

.site-footer a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    opacity: 0.8;
}

.footer-credits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   STATISTIQUES / COMPTEURS
   =================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .site-title {
        font-size: 22px;
    }

    .site-description {
        font-size: 12px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .fullwidth-carte-container {
        height: calc(100vh - 180px);
    }

    .content-section {
        padding: 40px 15px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ===================================
   AMÉLIORATIONS POUR LE PLUGIN
   =================================== */

/* Améliorer l'apparence de la barre de recherche sur la page d'accueil */
.home .cbr-search-container,
.home .cbr-location-container {
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

/* Masquer le header WordPress sur la vue plein écran (optionnel) */
.fullwidth-map .site-header {
    display: none;
}

.fullwidth-map .fullwidth-carte-container {
    height: 100vh;
}

/* ===================================
   ANIMATION AU SCROLL
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
