/* ─── EasyAap Plugin Styles ─────────────────────────────────────── */

/* Cards */
.easyaap-liste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
@media (max-width: 960px) {
    .easyaap-liste {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .easyaap-liste {
        grid-template-columns: 1fr;
    }
}
.easyaap-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}
.easyaap-card h3 {
    font-size: 1rem;
    margin: 0 0 10px;
}
.easyaap-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.easyaap-type-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
}
.easyaap-type-tag img { width: 18px; height: 18px; }

.easyaap-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}
.easyaap-favori-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.easyaap-favori-btn img { width: 28px; }

/* Dashboard annonceur */
.easyaap-dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #197BB5;
    margin-bottom: 20px;
}
.easyaap-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.easyaap-tab.active {
    color: #197BB5;
    border-bottom-color: #197BB5;
}
.easyaap-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}
.easyaap-dashboard-table th,
.easyaap-dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.easyaap-dashboard-table th {
    font-size: .75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: .05em;
}
.easyaap-actions { display: flex; gap: 10px; }
.easyaap-btn-modifier { color: #E63566; font-weight: 600; text-decoration: none; }
.easyaap-btn-supprimer { color: #999; text-decoration: none; }

/* Statuts */
.easyaap-status { font-weight: 600; }
.easyaap-status.publié  { color: green; }
.easyaap-status.attente { color: orange; }
.easyaap-status.rejeté  { color: red; }

/* Formulaire AAP */
.easyaap-form { max-width: 800px; margin: 0 auto; }
.easyaap-form-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
}
.easyaap-form-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.easyaap-form-nav a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border-radius: 4px;
}
.easyaap-form-nav a.active { background: #197BB5; color: #fff; }
.easyaap-form-section { flex: 1; }
.easyaap-field { margin-bottom: 20px; }
.easyaap-field label { display: block; font-weight: 600; margin-bottom: 5px; }
.easyaap-field input[type="text"],
.easyaap-field input[type="email"],
.easyaap-field input[type="number"],
.easyaap-field input[type="date"],
.easyaap-field input[type="url"],
.easyaap-field input[type="password"],
.easyaap-field textarea,
.easyaap-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f0f5f5;
    font-size: 1rem;
}
.easyaap-field textarea { min-height: 120px; }
.easyaap-checkboxes,
.easyaap-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.easyaap-checkboxes label,
.easyaap-radios label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

/* Relance favoris */
.easyaap-relance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 30px;
    margin-bottom: 0;
    font-size: .95rem;
}
.easyaap-relance select { display: none; }

/* Nice Select custom */
.ea-select {
    position: relative;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 36px 6px 16px;
    cursor: pointer;
    font-size: .95rem;
    background: #fff;
    user-select: none;
    min-width: 130px;
}
.ea-select::after {
    content: '∧';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    font-size: .75rem;
    color: #555;
    transition: transform .2s;
}
.ea-select.open::after {
    transform: translateY(-50%) rotate(0deg);
}
.ea-select__current { font-weight: 700; }
.ea-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 100%;
    z-index: 200;
}
.ea-select.open .ea-select__list { display: block; }
.ea-select__option {
    padding: 10px 20px;
    cursor: pointer;
    font-size: .95rem;
    white-space: nowrap;
}
.ea-select__option:hover { background: #f5f5f5; }
.ea-select__option.selected { font-weight: 700; }

/* Message abonnement */
.easyaap-message-abo {
    padding: 20px;
    margin-bottom: 20px;
}
.easyaap-empty { color: #999; padding: 20px 0; text-align: center; width: 100%; grid-column: 1 / -1; }

/* Compte artiste */
.easyaap-compte-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.easyaap-compte-nav {
    min-width: 220px;
    display: flex;
    flex-direction: column;
}
.easyaap-compte-nav a {
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: .95rem;
}
.easyaap-compte-nav a.active { background: #8EAFC1; color: #fff; }
.easyaap-compte-content { flex: 1; padding: 0 30px; min-height: 400px; }

/* ─── Single AAP ─────────────────────────────────────────────────── */
.easyaap-single-wrap {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.easyaap-single-title {
    font-size: 1.9rem;
    color: #197BB5;
    text-align: center;
    margin: 0 0 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.3;
}

/* Cards */
.easyaap-single-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

/* 2 colonnes Le projet / Infos */
.easyaap-single-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.easyaap-single-col--right {
    border-left: 3px solid #197BB5;
}
@media (max-width: 640px) {
    .easyaap-single-2col {
        grid-template-columns: 1fr;
    }
    .easyaap-single-col--right {
        border-left: none;
        border-top: 3px solid #197BB5;
    }
}

/* En-têtes de section */
.easyaap-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.easyaap-section-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}
.easyaap-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #197BB5;
    margin: 0;
}

/* Lignes label : valeur */
.easyaap-field-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .95rem;
}
.easyaap-field-row:last-child { border-bottom: none; }

.easyaap-field-label {
    font-weight: 700;
    min-width: 140px;
    flex-shrink: 0;
    color: #222;
}
.easyaap-field-sep { color: #aaa; flex-shrink: 0; }
.easyaap-field-value { color: #444; }
.easyaap-field-value a { color: #E63566; text-decoration: none; font-weight: 600; }
.easyaap-field-value a:hover { text-decoration: underline; }

/* Lignes avec texte long (résumé, précisions) */
.easyaap-field-row--block {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.easyaap-field-text {
    color: #444;
    line-height: 1.65;
    font-size: .95rem;
}

/* Footer (retour + favori) */
.easyaap-single-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 0;
}
.easyaap-single-fav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    color: #E63566;
    font-weight: 600;
}
.easyaap-single-fav-btn:hover,
.easyaap-single-fav-btn:focus { color: #b01d48 !important; }
.easyaap-single-fav-btn img { width: 24px; }

/* Texte selon état */
.easyaap-single-fav-btn .fav-text::before         { content: 'Mettre en favori'; }
.easyaap-single-fav-btn.actif .fav-text::before    { content: 'En favori'; }
.easyaap-single-fav-btn.actif:hover .fav-text::before { content: 'Retirer des favoris'; }

/* Tooltip custom (data-tip) */
[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: .78rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 100;
}
[data-tip]:hover::after { opacity: 1; }

/* Bouton submit au-dessus des images décoratives Elementor */
.easyaap-form [type="submit"] {
    position: relative;
    z-index: 10;
}

.easyaap-dashboard-actions { margin-bottom: 20px; }

.easyaap-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.easyaap-grid-cp-ville {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0 10px;
}

.easyaap-abo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.easyaap-abo-actions .bouton_standard { flex: 0 0 auto; }
@media (max-width: 1024px) {
    .easyaap-abo-actions { flex-direction: column; }
    .easyaap-abo-actions .bouton_standard + .bouton_standard { margin-top: 10px; }
}
@media (max-width: 1024px) {
    .easyaap-compte-layout {
        flex-direction: column;
    }
    .easyaap-compte-nav {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }
    .easyaap-compte-nav a {
        flex: 1 1 auto;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-right: 1px solid #e0e0e0;
    }
    .easyaap-compte-nav a:last-child { border-right: none; }
    .easyaap-compte-nav a.active { border-bottom-color: #197BB5; }
    .easyaap-compte-content {
        padding: 24px 0 0;
        width: 100%;
    }
    .easyaap-grid-2 {
        grid-template-columns: 1fr;
    }
    .easyaap-grid-cp-ville {
        grid-template-columns: 1fr 2fr;
    }
}

/* Page paiement */
.easyaap-paiement-wrap { max-width: 680px; margin: 0 auto; }
.easyaap-paiement-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    margin-bottom: 24px;
}
.easyaap-paiement-row {
    display: flex;
    border-bottom: 2px solid #fff;
}
.easyaap-paiement-label {
    flex: 0 0 55%;
    background: #197BB5;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
}
.easyaap-paiement-value {
    flex: 1;
    background: #dceef8;
    color: #1a3f5c;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}
.easyaap-paiement-value--date { font-size: 1.5rem; }
.easyaap-paiement-moyen {
    background: #fff;
    padding: 18px 24px;
    font-size: .95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}
.easyaap-paiement-check {
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.easyaap-paiement-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.easyaap-paiement-cancel {
    color: #555;
    text-decoration: none;
    font-size: .95rem;
}
.easyaap-paiement-cancel:hover { text-decoration: underline; }

/* Receipt */
.easyaap-receipt { max-width: 680px; margin: 0 auto; background: #ddeef8; padding: 24px; border-radius: 4px; }
.easyaap-receipt-merci { margin: 0 0 20px; font-size: 1rem; }
.easyaap-receipt-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.easyaap-receipt-table tr:nth-child(odd) td { background: #c8e3f2; }
.easyaap-receipt-table tr:nth-child(even) td { background: #fff; }
.easyaap-receipt-table td { padding: 10px 16px; font-size: .95rem; }
.easyaap-receipt-table td:first-child { width: 260px; white-space: nowrap; }
.easyaap-receipt-plan { display: flex; border-radius: 2px; overflow: hidden; }
.easyaap-receipt-plan-name { background: #197BB5; color: #fff; font-weight: 700; font-size: 1.4rem; padding: 20px 32px; flex: 1; display: flex; align-items: center; justify-content: center; letter-spacing: .05em; }
.easyaap-receipt-plan-price { background: #ddeef8; color: #197BB5; font-size: 1.8rem; font-weight: 600; padding: 20px 32px; flex: 1; display: flex; align-items: center; justify-content: center; }

/* Home cards */
.liste_favoris .type_item img { margin-right: 4px !important; }
.liste_favoris .favorite-item .type_aap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.liste_favoris .favorite-item .budget_home { margin-top: 40px; }
.liste_favoris .favorite-item .contenu_favori { display: flex; flex-direction: column; height: 100%; }
.liste_favoris .favorite-item .voir_fiche { margin-top: auto; padding-top: 16px; }
.easyaap-card { display: flex; flex-direction: column; }
.easyaap-card-content { display: flex; flex-direction: column; flex: 1; }
.easyaap-card-footer { margin-top: auto; }

@keyframes ea-spin { to { transform: rotate(360deg); } }
.ea-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ea-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
