/*
 Theme Name:   Formations Poitiers Thème
 Theme URI:    https://formations-poitiers.fr
 Description:  Thème enfant pour le site formations-poitiers.fr
 Author:       Votre Nom
 Author URI:   https://today-works.fr
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, responsive-layout, accessibility-ready
 Text Domain:  formationspoitiers
*/

/* -------------------------------------------------------------------------
   Variables CSS pour une gestion facile des couleurs et polices
------------------------------------------------------------------------- */
:root {
    --primary-color: #3B82F6; /* Un bleu vif pour les actions */
    --secondary-color: #1F2937; /* Gris foncé pour le texte principal */
    --text-color-light: #6B7280; /* Gris clair pour les textes secondaires */
    --background-light: #F9FAFB; /* Arrière-plan très clair */
    --border-color: #E5E7EB; /* Couleur de bordure subtile */
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Ombre douce */
    --radius-default: 8px;
    --font-family-sans: 'Inter', sans-serif; /* Utilisez Inter ou une police sans-serif moderne */
}

/* Importation de polices (si non déjà gérées par Blocksy ou un plugin) */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap'); */


/* -------------------------------------------------------------------------
   Styles Généraux (Héritage de Blocksy + Ajustements)
------------------------------------------------------------------------- */
body {
    font-family: var(--font-family-sans);
    color: var(--secondary-color);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* -------------------------------------------------------------------------
   Page d'Accueil (Assumant un contenu construit avec des blocs Gutenberg ou un Page Builder)
------------------------------------------------------------------------- */
.home-hero-section {
    background-color: var(--secondary-color); /* Fond sombre comme dans l'aperçu */
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: var(--radius-default);
    margin-bottom: 40px;
}

.home-hero-section h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 20px;
}

.search-bar-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.search-bar-wrapper input[type="text"] {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-default);
    font-size: 1.1em;
    flex-grow: 1;
    max-width: 400px;
    box-shadow: var(--shadow-light);
}

.search-bar-wrapper button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-default);
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar-wrapper button:hover {
    background-color: #2563EB; /* Teinte plus foncée du bleu */
}

.persona-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.persona-card {
    background-color: white;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.persona-card .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.persona-card h3 {
    font-size: 1.2em;
    margin-bottom: 0;
}


/* -------------------------------------------------------------------------
   Page de Résultats (archive-formation.php)
------------------------------------------------------------------------- */
#content {
    padding-top: 40px;
    padding-bottom: 40px;
}

#filters {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px; /* Pour mobile */
}

#filters h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

#filters label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--text-color-light);
    cursor: pointer;
}

#filters input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color); /* Personnalise la couleur du checkbox */
}

#formation-results-container {
    display: grid;
    gap: 25px;
}

.formation-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color); /* Ajout d'une bordure subtile */
}

.formation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.formation-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.formation-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.formation-card h2 a:hover {
    text-decoration: underline;
}

.formation-card .organisme-name {
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.formation-card .card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-color-light);
}

.formation-card .card-meta span {
    background-color: var(--background-light);
    padding: 5px 10px;
    border-radius: 5px;
}

/* -------------------------------------------------------------------------
   Pages de Détail (single-formation.php, single-organisme.php)
------------------------------------------------------------------------- */
article {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-light);
}

article h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.formation-summary {
    background-color: var(--background-light);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--radius-default);
}

.formation-summary p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-default);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2563EB;
    text-decoration: none;
}

.formation-details h2,
article h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Style spécifique pour la carte Google Map si utilisée */
.acf-map {
    height: 300px;
    border-radius: var(--radius-default);
    overflow: hidden; /* Assurez-vous que les coins arrondis sont respectés */
    margin-bottom: 20px;
}


/* -------------------------------------------------------------------------
   Responsivité de base
------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .home-hero-section h1 {
        font-size: 2em;
    }

    .search-bar-wrapper {
        flex-direction: column;
    }

    .search-bar-wrapper input[type="text"] {
        max-width: 100%;
    }
    
    #filters {
        margin-bottom: 30px;
    }
    
    .persona-navigation {
        grid-template-columns: 1fr;
    }
}