/*
Theme Name: Thème Basique
Theme URI: https://example.com
Author: Votre Nom
Author URI: https://example.com
Description: Thème WordPress minimaliste avec header fin et pages pleine largeur
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-basique
*/

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #0f172a !important;
    color: #e2e8f0;
}

/* Header */
.site-header {
    background-color: #1e293b !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2) !important;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.site-title a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
}

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

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.main-navigation a:hover {
    color: #ffffff !important;
    background-color: rgba(59, 130, 246, 0.2) !important;
}

/* Page active en surbrillance */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a,
.main-navigation .current-menu-ancestor a {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Lien de connexion */
.login-link {
    flex-shrink: 0;
}

.login-link a {
    color: #e2e8f0 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.login-link a:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e2e8f0 !important;
    margin: 5px 0;
    transition: 0.3s;
}

/* Contenu principal */
.site-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.content-area {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-main {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Articles et pages */
article {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.entry-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Footer minimal */
.site-footer {
    background-color: #1e293b !important;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .site-logo {
        order: 1;
    }
    
    .login-link {
        order: 2;
    }
    
    .main-navigation {
        order: 4;
        width: 100%;
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding-top: 15px;
    }
    
    .main-navigation a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    }
}

/* ================================
   PAGE D'ACCUEIL - HERO SECTION
   ================================ */

.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: visible;
}

/* Effet de fond subtil */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Barre de recherche */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Icône de localisation à gauche */
.search-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 16px 16px;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    color: #f1f5f9;
    outline: none;
}

.search-input::placeholder {
    color: #64748b;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    right: 0;
    background: #1e293b;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.autocomplete-results.hidden {
    display: none;
}

.autocomplete-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(59, 130, 246, 0.2);
}

.autocomplete-label {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 1rem;
}

.autocomplete-context {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* Section carte de confirmation */
.map-section {
    margin-top: 48px;
    padding: 32px;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.map-section.hidden {
    display: none;
}

.map-title {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.home-map {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.selected-address {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.map-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.confirm-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.modify-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modify-btn:hover {
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(148, 163, 184, 0.1);
}

/* Slider rayon de recherche */
.radius-slider-container {
    margin: 24px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.radius-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.radius-slider-header label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.radius-value {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1rem;
}

.radius-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s ease;
}

.radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.radius-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.radius-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

/* Contenu de page additionnel */
.page-content {
    padding: 60px 20px;
}

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

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .search-box {
        flex-direction: column;
        padding: 12px;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .map-section {
        padding: 20px;
        margin-top: 32px;
    }

    .home-map {
        height: 280px;
    }

    .map-actions {
        flex-direction: column;
    }

    .confirm-btn,
    .modify-btn {
        width: 100%;
    }
}
