/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/********************************
*** GLOBAL
********************************/
:root {
    /* Couleurs principales */
    --primary-color: #1A5DAF;
    --secondary-color: #F47920;
    --text-color: #0D3D7C;
    --accent-color: #F9A94A;
    --white: #ffffff;
}
/********************************
*** FILTRE PARTENAIRES
********************************/
.ag-filtres-partenaires{
    display:flex;
    justify-content: center;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 30px;
}
@media(max-width:580px){
    .ag-filtres-partenaires{
        display:grid;
        grid-template-columns:repeat(2, 1fr);
    }
}
.ag-filtres-partenaires .ag-filtre{
    --btn-color: #e5e5e5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 3px solid var(--btn-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #e5e5e5;
    color: #222;
    transition: box-shadow .25s ease, transform .15s ease, border-color .25s ease;
    box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.ag-filtres-partenaires .ag-filtre-tous{
    --btn-color: #222;
    background: #222;
    color: #fff;
}
.ag-filtres-partenaires .ag-filtre-picto{
    width:22px;
    height:22px;
    object-fit:contain;
    display:block;
}
/* Hover : ombrage intérieur uniquement, la bordure reste de la couleur du fond */
.ag-filtres-partenaires .ag-filtre:hover {
    box-shadow: inset 0 2px 8px rgba(0,0,0,.35);
}
/* Actif : ombrage intérieur + bordure blanche */
.ag-filtres-partenaires .ag-filtre.is-active {
    border-color: #fff;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.35);
}
.ag-filtres-partenaires .ag-filtre:active {
    transform: scale(.97);
}
.ag-filtres-partenaires .ag-filtre-label {
    line-height: 1;
    color:#fff
}
/*****************************
*** LISTE PARTENAIRES
*****************************/
.ag-partenaires-info{
    background-color: var(--primary-color);
    padding:10px 15px;
    border-radius:5px;
    color:var(--white);
    margin-bottom:25px
}
.ag-partenaires-info a{
    color:#ffffff;
    font-weight: bold;
}
.ag-partenaires-info a:hover{
    color:#ffffff;
    text-decoration: underline;
}
.ag-partenaires-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    margin:0 0 40px;
}
@media (max-width: 1024px){
    .ag-partenaires-grid{ grid-template-columns:repeat(2, 1fr); gap:20px; }
}
@media (max-width: 600px){
    .ag-partenaires-grid{ grid-template-columns:1fr; gap:20px; }
}

.ag-partenaire-card{
    position:relative;
    background:#fff;
    border:3px solid var(--ag-couleur, #30358C);
    border-radius:20px;
    overflow:hidden;
    transition:transform .25s ease, box-shadow .25s ease;
}
.ag-partenaire-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* Badge picto en haut à gauche */
.ag-partenaire-card .ag-partenaire-badge{
    position:absolute;
    top: -1px;
    left: -1px;
    width:60px;
    height:60px;
    background:var(--ag-couleur, #30358C);
    display:flex;
    align-items:center;
    justify-content:center;
    border-bottom-right-radius:20px;
    z-index:2;
}
.ag-partenaire-card .ag-partenaire-badge img{
    width:32px;
    height:32px;
    object-fit:contain;
    display:block;
    filter:brightness(0) invert(1); /* rend le picto blanc, retire si tes pictos sont déjà en couleur */
}

/* Contenu */
.ag-partenaire-card .ag-partenaire-inner{
    padding:30px 25px 25px;
    display:flex;
    flex-direction:column;
    gap:15px;
    height:100%;
}

.ag-partenaire-card .ag-partenaire-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:80px;
}
.ag-partenaire-card .ag-partenaire-logo img{
    max-width:160px;
    max-height:80px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.ag-partenaire-card .ag-partenaire-titre{
    margin:0;
    font-size:18px;
    font-weight:700;
    text-align:center;
    color:#222;
}

.ag-partenaire-card .ag-partenaire-texte{
    color:#555;
    font-size:14px;
    line-height:1.5;
    display:-webkit-box;
    -webkit-line-clamp:6;     /* 6 lignes max */
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.ag-partenaire-card .ag-partenaire-texte p{
    margin:0;
}

/* Bouton */
.ag-partenaire-card .ag-partenaire-btn{
    margin-top:auto;
    align-self:flex-start;
    display:inline-block;
    padding:10px 22px;
    background:var(--ag-couleur, #30358C);
    color:#fff;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    font-size:14px;
    transition:filter .2s ease, transform .15s ease;
}
.ag-partenaire-card .ag-partenaire-btn:hover{
    filter:brightness(1.1);
    transform:translateY(-2px);
}
.ag-filtres-no-result{
    margin:0 0 40px;
    padding:20px;
    background:#fff3f3;
    border-left:4px solid #c0392b;
    border-radius:4px;
    color:#7a2a2a;
    text-align:center;
    font-size:15px;
}
/***********************************************
*** Formulaire de Recherche par ville
***********************************************/
@media(max-width:580px){
    #city-filter-form{
        flex-direction: column;
    }
    #city-filter-form div,
    #city-filter-form button{
        width: 100%;
    }
}
/***********************************************
*** Recherche partenaires via home
***********************************************/
.ag-recherche-partenaires{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    align-items:flex-end;
    padding:25px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
    max-width:900px;
    margin:0 auto;
}
.ag-recherche-partenaires .ag-recherche-field{
    display:flex;
    flex-direction:column;
    width: 100%;
    gap:6px;
    flex:1 1 200px;
    position:relative;
}
.ag-recherche-partenaires label{
    width: 100%;
    font-size:14px;
    font-weight:600;
    color:var(--text-color);
}
.ag-recherche-partenaires select,
.ag-recherche-partenaires input[type="text"]{
    padding:12px 14px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    background:#fff;
    width:100%;
    box-sizing:border-box;
}
.ag-recherche-partenaires select:focus,
.ag-recherche-partenaires input:focus{
    outline:none;
    border-color:#30358C;
}
.ag-recherche-partenaires .ag-rech-suggestions{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-top:none;
    border-radius:0 0 8px 8px;
    max-height:220px;
    overflow-y:auto;
    display:none;
    z-index:100;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.ag-recherche-partenaires .ag-rech-suggestion-item{
    padding:10px 14px;
    cursor:pointer;
    font-size:14px;
    border-top:1px solid #eee;
}
.ag-recherche-partenaires .ag-rech-suggestion-item:first-child{
    border-top:none;
}
.ag-recherche-partenaires .ag-rech-suggestion-item:hover{
    background:#f5f5f9;
}
.ag-recherche-partenaires .ag-recherche-submit{
    flex:0 0 auto;
}
.ag-recherche-partenaires button{
    padding:12px 28px;
    background:#FF6B3D;
    color:#fff;
    border:none;
    border-radius:30px;
    font-weight:600;
    font-size:14px;
    cursor:pointer;
    transition:background .2s ease, transform .15s ease;
}
.ag-recherche-partenaires button:hover{
    background:#252a70;
    transform:translateY(-2px);
}
@media (max-width: 600px){
    .ag-recherche-partenaires{ flex-direction:column; align-items:stretch; }
    .ag-recherche-partenaires .ag-recherche-field{ flex:1 1 auto; }
}