/*
 Theme Name:   Blockstrap Child - Annuaire Climatisation
 Theme URI:    https://votresite.com
 Description:  Thème enfant personnalisé de Blockstrap pour un annuaire de professionnels de la climatisation. Requiert le thème parent Blockstrap et le plugin GeoDirectory.
 Author:       Votre Nom
 Author URI:   https://votresite.com
 Template:     blockstrap
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         geodirectory, directory, listing, business-directory, custom-colors, one-column, custom-menu, featured-images, full-site-editing, custom-logo
 Text Domain:  blockstrap-child
*/

/* =Importation des styles du parent
-------------------------------------------------------------- */
/* Note: Les styles du parent sont chargés via functions.php, inutile de les importer ici */

/* =Variables CSS personnalisées pour la climatisation
-------------------------------------------------------------- */
:root {
    --color-ac-primary: #0A86D9;   /* Bleu primaire - Fraîcheur, professionnalisme */
    --color-ac-primary-dark: #0866A6;
    --color-ac-secondary: #2C3E50; /* Gris foncé - Neutre et élégant */
    --color-ac-light: #F7F9FC;     /* Blanc glacé - Arrière-plan */
    --color-ac-accent: #FF9A02;    /* Orange - Pour les alertes, badges urgents */
}

/* =Styles de base
-------------------------------------------------------------- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-ac-secondary);
    background-color: var(--color-ac-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--color-ac-primary);
}

/* =Styles GÉNÉRAUX GeoDirectory - S'appliquent partout
-------------------------------------------------------------- */

/* Badges (Certifié, Urgence, Nouveau) */
.geodir-status .badge,
.geodir-badge {
    background-color: var(--color-ac-accent) !important;
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
}

/* Icônes de catégorie */
.geodir_category_icon {
    font-size: 1.8rem;
    color: var(--color-ac-primary);
}

/* Liens de pagination */
.gd-pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 0.2rem;
}
.gd-pagination .page-numbers.current {
    background-color: var(--color-ac-primary);
    color: white;
    border-color: var(--color-ac-primary);
}

/* =Styles pour les LISTES de fiches (Page d'archive)
-------------------------------------------------------------- */
/* Conteneur principal de la liste */
.geodir-page .row {
    gap: 2rem 0; /* Espace entre les lignes et colonnes */
}

/* Carte individuelle d'une fiche */
.geodir-page .card {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur */
    display: flex;
    flex-direction: column;
}
.geodir-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 134, 217, 0.15) !important;
}

/* Image en haut de la carte */
.geodir-page .card-img-top {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    height: 200px;
    object-fit: cover;
}

/* Corps de la carte */
.geodir-page .card-body {
    flex-grow: 1; /* Permet au corps de la carte de prendre l'espace disponible */
    display: flex;
    flex-direction: column;
}

/* Titre de la fiche dans la carte */
.geodir-page .card-title a {
    color: var(--color-ac-primary);
    text-decoration: none;
    font-weight: bold;
}
.geodir-page .card-title a:hover {
    color: var(--color-ac-primary-dark);
    text-decoration: underline;
}

/* Note / Avis */
.geodir-page .gd-rating-output {
    color: var(--color-ac-accent);
    font-weight: bold;
    margin-top: auto; /* Pousse le rating vers le bas de la carte */
    padding-top: 1rem;
}

/* =Styles pour la page de DÉTAIL d'une fiche
-------------------------------------------------------------- */
.gd-single-page .entry-title {
    color: var(--color-ac-primary);
    border-bottom: 2px solid var(--color-ac-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Infos principales (adresse, tel, site web) */
.gd-single-page .gd-list-item-info {
    background-color: var(--color-ac-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* =Styles pour le formulaire d'ajout/modification de fiche
-------------------------------------------------------------- */
#geodir-post-form .form-control:focus {
    border-color: var(--color-ac-primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 134, 217, 0.25);
}
#geodir-post-form .btn-primary {
    background-color: var(--color-ac-primary);
    border-color: var(--color-ac-primary);
}
#geodir-post-form .btn-primary:hover {
    background-color: var(--color-ac-primary-dark);
    border-color: var(--color-ac-primary-dark);
}

/* =Media Queries pour le Responsive
-------------------------------------------------------------- */
@media (max-width: 768px) {
    .geodir-page .card {
        margin-bottom: 1.5rem;
    }
    .gd-single-page .gd-list-item-info {
        padding: 1rem;
    }
}



/* =Styles pour la page ARCHIVE (Liste des fiches)
-------------------------------------------------------------- */

/* Bannière Hero */
.ac-hero-banner {
    background: linear-gradient(135deg, var(--color-ac-primary) 0%, var(--color-ac-primary-dark) 100%) !important;
}

/* Conteneur principal */
.ac-archive-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* Sidebar des filtres */
.ac-filters-sidebar {
    flex: 0 0 300px !important;
    background: var(--color-ac-light);
    padding: 2rem !important;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Labels des filtres */
.gd-search-input-label,
.gd-checkbox-list label {
    font-weight: 600 !important;
    color: var(--color-ac-secondary) !important;
    margin-bottom: 0.5rem !important;
    display: block;
}

/* Champs de formulaire */
.gd-search-input-input,
.gd-checkbox-list input[type="checkbox"],
.gd-search-input-select {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.gd-search-input-input:focus,
.gd-search-input-select:focus {
    border-color: var(--color-ac-primary) !important;
    box-shadow: 0 0 0 3px rgba(10, 134, 217, 0.1) !important;
}

/* Barre d'outils */
.ac-archive-toolbar {
    border-bottom: 2px solid #e2e8f0;
    align-items: center !important;
}

.ac-results-count {
    margin: 0 !important;
    font-weight: 600;
    color: var(--color-ac-secondary);
}

.ac-sort-label {
    margin: 0 1rem 0 0 !important;
    color: var(--color-ac-secondary);
}

/* Select de tri */
#gd-sort-by {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    background: white;
    color: var(--color-ac-secondary);
}

/* Pagination */
.ac-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    margin: 0 0.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-ac-secondary);
    transition: all 0.2s ease;
}

.ac-pagination .page-numbers.current,
.ac-pagination .page-numbers:hover {
    background-color: var(--color-ac-primary);
    color: white;
    border-color: var(--color-ac-primary);
}

.ac-pagination .page-numbers.dots {
    border: none;
}

/* Disposition responsive */
@media (max-width: 968px) {
    .ac-archive-container {
        flex-direction: column !important;
    }
    
    .ac-filters-sidebar {
        flex: 0 0 100% !important;
        position: static !important;
        margin-bottom: 2rem;
        order: 2;
    }
    
    .ac-main-content {
        order: 1;
    }
    
    .ac-archive-toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

/* Amélioration des filtres checkbox */
.gd-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.gd-checkbox-list label {
    display: flex !important;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
}

.gd-checkbox-list input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
}



/* Styles pour le contenu SEO */
.ac-seo-introduction,
.ac-seo-bottom-content,
.ac-faq-section {
    background: var(--color-ac-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--color-ac-primary);
}

.ac-faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ac-faq-question {
    color: var(--color-ac-primary);
    margin-bottom: 0.5rem !important;
}

.ac-faq-answer {
    color: var(--color-ac-secondary);
    margin-bottom: 0 !important;
}

/* Microdata visibility */
[itemprop] {
    border-bottom: none !important;
}

/* Responsive SEO content */
@media (max-width: 768px) {
    .ac-seo-introduction,
    .ac-seo-bottom-content,
    .ac-faq-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}