/**
 * Profils Annuaire Pro - Frontend Styles
 * Version 2.4.4 - Simplifié et fonctionnel
 */

/* Variables par défaut */
:root {
    --pa-grid-columns: 4;
    --pa-grid-columns-premium: 4;
    --pa-container-padding: 5%;
    --pa-badge-scale: 1;
    --pa-primary-color: #2563eb;
    --pa-primary-hover: #1d4ed8;
    --pa-secondary-color: #64748b;
    --pa-background: #f8fafc;
    --pa-white: #ffffff;
    --pa-premium-color: #FFD700;
    --pa-free-badge-color: #22c55e;
    --pa-price-badge-color: #1e293b;
    --pa-radius-xl: 12px;
    --pa-cta-height: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Main Content */
.pa-main-content {
    background: var(--pa-background);
    min-height: 50vh;
    padding: 1rem 0 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Container - CENTRÉ */
.pa-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Breadcrumb */
.pa-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--pa-secondary-color);
}
.pa-breadcrumb a { color: var(--pa-primary-color); text-decoration: none; }

/* Header */
.pa-archive-header {
    text-align: center;
    padding: 0.75rem 0 1.5rem;
}
.pa-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1e293b;
}

/* Sélecteurs */
.pa-selectors-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.pa-selector-wrapper { flex: 0 1 240px; position: relative; }
.pa-search-select { position: relative; z-index: 10; }
.pa-search-select.open { z-index: 500; }
.pa-search-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: var(--pa-white);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Fix iOS : empêcher le zoom au focus */
    font-size: max(0.875rem, 16px);
}
.pa-search-input:focus {
    border-color: var(--pa-primary-color);
    outline: none;
}
.pa-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--pa-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}
.pa-search-select.open .pa-search-dropdown { display: block; }
.pa-search-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.875rem;
    min-height: 40px;
    max-height: 40px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.82rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    white-space: nowrap;
}
.pa-search-option:last-child { border-bottom: none; }
.pa-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.pa-search-option.active { background: #f1f5f9; font-weight: 600; color: var(--pa-primary-color); }
@media (hover: hover) {
    .pa-search-option:hover { background: #f1f5f9; }
}
.pa-search-option.hidden { display: none; }
.pa-option-count {
    font-size: 0.65rem;
    color: var(--pa-secondary-color);
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Intro */
.pa-intro-text {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--pa-secondary-color);
    font-size: 0.875rem;
}

/* Child Locations */
.pa-child-locations { margin-bottom: 1.5rem; }
.pa-child-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}
.pa-child-location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: var(--pa-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
}
.pa-child-location-card:hover {
    border-color: var(--pa-primary-color);
}
.pa-child-location-card strong { color: #1e293b; }
.pa-child-location-card span { color: var(--pa-secondary-color); font-size: 0.7rem; }

/* ===========================================
   GRILLES - CENTRÉES ET CONFIGURABLES
   =========================================== */
.pa-premium-section,
.pa-profiles-section {
    margin-bottom: 1.5rem;
    width: 100%;
}

.pa-profiles-grid-premium {
    display: grid;
    grid-template-columns: repeat(var(--pa-grid-columns-premium, 4), 1fr);
    gap: 1rem;
    justify-content: center;
}

.pa-profiles-grid {
    display: grid;
    grid-template-columns: repeat(var(--pa-grid-columns, 4), 1fr);
    gap: 1rem;
    justify-content: center;
}

/* Tablette - 3 colonnes */
@media (max-width: 1200px) {
    .pa-profiles-grid-premium,
    .pa-profiles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile - TOUJOURS 2 colonnes */
@media (max-width: 900px) {
    .pa-container {
        width: 98% !important;
    }
    .pa-profiles-grid-premium,
    .pa-profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .pa-archive-title {
        font-size: 1.3rem !important;
    }
    .pa-selectors-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .pa-selector-wrapper {
        flex: 1 1 100%;
    }
    /* Fix mobile : stacking context pour que le dropdown passe au-dessus */
    .pa-archive-header {
        position: relative;
        z-index: 100;
    }
    .pa-search-select {
        z-index: 100;
    }
    .pa-search-select.open {
        z-index: 500;
    }
    .pa-search-dropdown {
        z-index: 1000;
        max-height: 50vh;
    }
    .pa-search-option {
        padding: 0.6rem 0.875rem;
        min-height: 44px;
        max-height: 44px;
        font-size: 0.8rem;
    }
    /* Fix mobile : bouton loadmore accessible et cliquable */
    .pa-loadmore-wrapper {
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }
    .pa-loadmore-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 52px;
        min-width: 200px;
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }
    /* S'assurer que la section profils ne coupe rien */
    .pa-profiles-section {
        overflow: visible;
    }
}

/* Petit mobile - TOUJOURS 2 colonnes */
@media (max-width: 600px) {
    .pa-container {
        width: 100% !important;
        padding: 0 4px !important;
    }
    .pa-profiles-grid-premium,
    .pa-profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.35rem !important;
    }
    .pa-archive-header {
        padding: 0.5rem 0 1rem;
    }
}

/* Cartes cachées */
.pa-hidden-card {
    display: none !important;
}

/* ===========================================
   PROFILE CARD - AVEC SCALE CONFIGURABLE
   =========================================== */
.pa-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /* GPU: n'animer QUE transform (pas box-shadow = repaint) */
    transition: transform 0.2s ease;
    /* CWV contain: réduit le travail de layout/paint */
    contain: layout style;
}

/* Ombre hover via pseudo-element (GPU = opacity seulement, pas de repaint) */
.pa-profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

/* Carte entièrement cliquable */
.pa-profile-card-clickable {
    cursor: pointer;
}

.pa-profile-card-clickable:hover {
    transform: translateY(-4px);
}
.pa-profile-card-clickable:hover::after {
    opacity: 1;
}

/* Lien invisible couvrant toute la carte */
.pa-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    text-decoration: none;
}

/* Éléments au-dessus du lien (cliquables séparément) */

.pa-premium-badge,
.pa-price-badge,
.pa-age-badge,
.pa-country-flag {
    z-index: 10;
    pointer-events: none;
}

.pa-profile-card:hover {
    transform: translateY(-3px);
}
.pa-profile-card:hover::after {
    opacity: 0.7;
}

.pa-profile-card-premium {
    border: 2px solid var(--pa-premium-color);
}

/* Image */
.pa-profile-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e2e8f0;
    overflow: hidden;
}

/* content-visibility: auto — le navigateur skip le rendu des cartes hors écran
   contain-intrinsic-size donne la taille estimée pour éviter le CLS */
.pa-profile-card:nth-child(n+9) {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px 450px;
}

.pa-profile-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pa-profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* GPU: transform seulement, pas de transition coûteuse */
    transition: transform 0.3s ease;
}

.pa-profile-card:hover .pa-profile-card-image img {
    transform: scale(1.03);
}

.pa-profile-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.pa-profile-card-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Badges - Tailles configurables via CSS dynamique */
.pa-premium-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, var(--pa-premium-color), #FFA500);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    /* Taille configurée via --pa-badge-scale dans le CSS dynamique */
}

.pa-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    text-decoration: none;
}
.pa-wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.15);
    background: rgba(255,255,255,1);
}
/* État actif = cœur rouge + fond légèrement rosé */
.pa-wishlist-btn.active {
    color: #ef4444;
    background: rgba(255,255,255,1);
    animation: pa-heart-pop 0.35s ease;
}
.pa-wishlist-btn.active:hover {
    color: #dc2626;
}
@keyframes pa-heart-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile: un peu plus petit, mieux positionné */
@media (max-width: 600px) {
    .pa-wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 17px;
        top: 5px;
        right: 5px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    }
}

.pa-price-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    padding: 0.3rem 0.6rem;
    background: var(--pa-price-badge-color);
    color: var(--pa-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    /* Taille configurée via --pa-badge-scale dans le CSS dynamique */
}
.pa-price-badge.pa-price-free {
    background: var(--pa-free-badge-color);
}

.pa-age-badge {
    position: absolute;
    top: 8px;
    right: 50px;
    z-index: 10;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.75);
    color: var(--pa-white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    /* Taille configurée via --pa-badge-scale dans le CSS dynamique */
}

.pa-country-flag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    /* Taille configurée via --pa-badge-scale dans le CSS dynamique */
}

/* Content */
.pa-profile-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.6rem 0.5rem 0.75rem;
}

.pa-profile-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    width: 100%;
    color: #1e293b;
}
.pa-profile-card-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-profile-card-title a:hover {
    color: var(--pa-primary-color);
}

/* CTA */
.pa-profile-card-cta {
    width: 100%;
    margin-bottom: 0.35rem;
}

.pa-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: var(--pa-cta-height);
    padding: 0.6rem 0.75rem;
    background: var(--pa-primary-color);
    color: var(--pa-white) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s ease;
    line-height: 1.3;
}
.pa-cta-button:hover {
    background: var(--pa-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tags */
.pa-profile-card-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    overflow: hidden;
}

.pa-tag-badge-small {
    flex-shrink: 0;
    padding: 0.15rem 0.4rem;
    background: #f1f5f9;
    color: var(--pa-secondary-color);
    font-size: 0.6rem;
    border-radius: 99px;
    white-space: nowrap;
}

/* Animations CTA */
.pa-cta-anim-pulse { animation: pa-pulse 2s infinite; }
@keyframes pa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}

.pa-cta-anim-bounce { animation: pa-bounce 1s infinite; }
@keyframes pa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.pa-cta-anim-shake { animation: pa-shake 3s infinite; }
@keyframes pa-shake {
    0%, 90%, 100% { transform: translateX(0); }
    92%, 96% { transform: translateX(-3px); }
    94%, 98% { transform: translateX(3px); }
}

.pa-cta-anim-glow { animation: pa-glow 2s infinite; }
@keyframes pa-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(37,99,235,0.5); }
    50% { box-shadow: 0 0 20px rgba(37,99,235,0.8); }
}

.pa-cta-anim-scale { animation: pa-scale 2s infinite; }
@keyframes pa-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===========================================
   BOUTON "VOIR PLUS" - AJAX LOAD MORE
   =========================================== */
.pa-loadmore-wrapper {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pa-loadmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--loadmore-bg, #2563eb);
    color: var(--loadmore-color, #ffffff);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.4;
}

/* Style Rempli */
.pa-loadmore-filled {
    border-radius: 8px;
}
.pa-loadmore-filled:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Style Contour */
.pa-loadmore-outline {
    background: transparent !important;
    border: 2px solid var(--loadmore-bg, #2563eb);
    color: var(--loadmore-bg, #2563eb) !important;
    border-radius: 8px;
}
.pa-loadmore-outline:hover {
    background: var(--loadmore-bg, #2563eb) !important;
    color: var(--loadmore-color, #ffffff) !important;
}

/* Style Arrondi */
.pa-loadmore-rounded {
    border-radius: 50px;
}
.pa-loadmore-rounded:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Style Minimaliste */
.pa-loadmore-minimal {
    background: transparent !important;
    color: var(--loadmore-bg, #2563eb) !important;
    text-decoration: underline;
    padding: 0.75rem 1.5rem;
}
.pa-loadmore-minimal:hover {
    text-decoration: none;
}

/* État chargement */
.pa-loadmore-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pa-loadmore-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pa-spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Masquer quand plus de profils */
.pa-loadmore-wrapper.pa-hidden {
    display: none;
}

/* Pagination */
.pa-pagination-wrapper {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pa-pagination-wrapper ul.page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pa-pagination-wrapper ul.page-numbers li {
    margin: 0;
}

.pa-pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.8rem;
    background: var(--pa-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-pagination-wrapper .page-numbers:hover {
    border-color: var(--pa-primary-color);
    color: var(--pa-primary-color);
}

.pa-pagination-wrapper .page-numbers.current {
    background: var(--pa-primary-color);
    border-color: var(--pa-primary-color);
    color: var(--pa-white);
}

.pa-pagination-wrapper .prev,
.pa-pagination-wrapper .next {
    font-weight: 600;
}

/* Infinite scroll loader */
.pa-infinite-loader {
    padding: 1.5rem 0;
    color: var(--pa-secondary-color);
    font-size: 0.9rem;
}

.pa-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.pa-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    background: var(--pa-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}
.pa-pagination .page-numbers:hover {
    border-color: var(--pa-primary-color);
    color: var(--pa-primary-color);
}
.pa-pagination .page-numbers.current {
    background: var(--pa-primary-color);
    border-color: var(--pa-primary-color);
    color: var(--pa-white);
}

/* Footer - SANS LIGNE */
.pa-footer-content {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.pa-seo-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1e293b;
}

.pa-custom-block-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
}
.pa-custom-block-section h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.pa-no-profiles {
    padding: 3rem;
    text-align: center;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
}

.pa-parent-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.pa-back-link {
    color: var(--pa-primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Single Profile */
.pa-profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .pa-profile-layout { grid-template-columns: 1fr; }
}

.pa-profile-gallery { position: sticky; top: 1rem; }
.pa-profile-main-image {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--pa-radius-xl);
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #e2e8f0;
}
.pa-profile-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pa-profile-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}
.pa-thumbnail-button {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
}
.pa-thumbnail-button:hover,
.pa-thumbnail-button.active {
    border-color: var(--pa-primary-color);
}
.pa-thumbnail-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pa-profile-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.pa-profile-locations { margin-bottom: 0.75rem; color: var(--pa-secondary-color); }
.pa-profile-locations a { color: var(--pa-primary-color); text-decoration: none; }
.pa-profile-price-display { margin: 0.75rem 0; }
.pa-price-large {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}
.pa-price-large.pa-price-free {
    background: var(--pa-free-badge-color);
    border-color: var(--pa-free-badge-color);
    color: var(--pa-white);
}
.pa-profile-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.pa-tag-badge {
    padding: 0.35rem 0.7rem;
    background: #f1f5f9;
    color: var(--pa-primary-color);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 99px;
}
.pa-tag-badge:hover { background: var(--pa-primary-color); color: var(--pa-white); }
.pa-profile-content { line-height: 1.8; margin-bottom: 1rem; }
.pa-profile-cta { margin-bottom: 1rem; }
.pa-similar-profiles { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.pa-section-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; }

/* Wishlist Floating */
.pa-wishlist-floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pa-primary-color);
    color: var(--pa-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}
.pa-wishlist-floating-btn:hover { background: var(--pa-primary-hover); }
.pa-wishlist-floating-icon { font-family: Arial, sans-serif; font-style: normal; font-size: 26px; line-height: 1; }
.pa-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: var(--pa-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pa-wishlist-count:empty { display: none; }

.pa-wishlist-popup {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 9998;
    width: 400px;
    max-height: 520px;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    display: none;
    animation: pa-popup-in 0.25s ease;
}

@keyframes pa-popup-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pa-wishlist-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, var(--pa-primary-color) 0%, var(--pa-primary-hover) 100%);
    color: #fff;
}
.pa-wishlist-popup-header h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.pa-wishlist-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}
.pa-wishlist-popup-close:hover { background: rgba(255,255,255,0.35); }
.pa-wishlist-popup-content { 
    max-height: 420px; 
    overflow-y: auto; 
    padding: 0.75rem;
}
.pa-wishlist-popup-content::-webkit-scrollbar { width: 4px; }
.pa-wishlist-popup-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Wishlist popup items — styled as mini cards */
.pa-wishlist-popup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 10px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid transparent;
}
.pa-wishlist-popup-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.pa-wishlist-popup-item + .pa-wishlist-popup-item {
    margin-top: 0.35rem;
}
.pa-wishlist-popup-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.pa-wishlist-popup-item-info {
    flex: 1;
    min-width: 0;
}
.pa-wishlist-popup-item-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pa-wishlist-popup-item-info .pa-wishlist-item-label {
    font-size: 0.75rem;
    color: var(--pa-primary-color);
    margin-top: 0.15rem;
}
.pa-wishlist-popup-item .pa-wishlist-remove-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    user-select: none;
}
.pa-wishlist-popup-item .pa-wishlist-remove-btn:hover {
    background: #fef2f2;
    transform: scale(1.15);
}

@media (max-width: 600px) {
    .pa-wishlist-popup {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5rem;
        max-height: 60vh;
    }
    .pa-wishlist-popup-item img {
        width: 50px;
        height: 50px;
    }
}

/* Wishlist Page (shortcode) */
.pa-wishlist-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.pa-wishlist-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 1rem;
}
.pa-wishlist-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}
.pa-wishlist-empty-icon {
    display: block;
    font-size: 48px;
    line-height: 1;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.pa-wishlist-empty p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ===========================================
   BOUTON "VOIR PLUS" - Load More
   =========================================== */
.pa-loadmore-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pa-loadmore-wrapper.pa-hidden {
    display: none;
}

.pa-loadmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--loadmore-bg, var(--pa-primary-color));
    color: var(--loadmore-color, #ffffff);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pa-loadmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}

.pa-loadmore-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Style Contour */
.pa-loadmore-outline {
    background: transparent !important;
    border: 2px solid var(--loadmore-bg, var(--pa-primary-color));
    color: var(--loadmore-bg, var(--pa-primary-color)) !important;
}

.pa-loadmore-outline:hover {
    background: var(--loadmore-bg, var(--pa-primary-color)) !important;
    color: var(--loadmore-color, #ffffff) !important;
}

/* Style Arrondi */
.pa-loadmore-rounded {
    border-radius: 50px;
}

/* Style Minimaliste */
.pa-loadmore-minimal {
    background: transparent !important;
    color: var(--loadmore-bg, var(--pa-primary-color)) !important;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.pa-loadmore-minimal:hover {
    text-decoration: none;
    box-shadow: none;
}

/* ===========================================
   SECTIONS SANS LIGNES
   =========================================== */
.pa-intro-text {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    line-height: 1.7;
    color: var(--pa-secondary-color);
}

.pa-intro-text p:last-child {
    margin-bottom: 0;
}

.pa-footer-content {
    margin-top: 2rem;
    padding: 0;
    border: none !important;
}

.pa-seo-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    line-height: 1.8;
}

.pa-seo-text h2,
.pa-seo-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.pa-seo-text h2:first-child,
.pa-seo-text h3:first-child {
    margin-top: 0;
}

.pa-seo-text p {
    margin-bottom: 1rem;
}

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

.pa-seo-text a:hover {
    text-decoration: underline;
}

/* Supprimer toutes les lignes de séparation */
.pa-profiles-section,
.pa-footer-content,
.pa-custom-block-section,
.pa-similar-profiles {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

hr.pa-separator,
.pa-container hr {
    display: none !important;
}

/* Blocs HTML personnalisés */
.pa-custom-block-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pa-custom-block-section h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #1e293b;
}

/* Navigation parent */
.pa-parent-navigation {
    margin-top: 2rem;
    text-align: center;
}

.pa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--pa-white);
    color: var(--pa-primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-back-link:hover {
    background: var(--pa-primary-color);
    color: var(--pa-white);
}

/* No profiles */
.pa-no-profiles {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
}

.pa-no-profiles p {
    color: var(--pa-secondary-color);
    font-size: 1.1rem;
}

/* ===========================================
   PAGE PROFIL - STYLES SIMPLIFIÉS
   =========================================== */
.pa-single-profile .pa-profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.pa-single-profile .pa-profile-gallery-column {
    position: sticky;
    top: 20px;
}

.pa-single-profile .pa-profile-main-image {
    position: relative;
    border-radius: var(--pa-radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f1f5f9;
    max-width: 500px;
    margin: 0 auto;
}

.pa-single-profile .pa-profile-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.pa-single-profile .pa-profile-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pa-single-profile .pa-thumbnail-button {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-single-profile .pa-thumbnail-button:hover,
.pa-single-profile .pa-thumbnail-button.active {
    border-color: var(--pa-primary-color);
}

.pa-single-profile .pa-thumbnail-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pa-single-profile .pa-profile-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1e293b;
    text-align: center;
}

.pa-single-profile .pa-profile-info-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pa-info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.pa-country-badge {
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
}

.pa-single-profile .pa-profile-price-display {
    margin-bottom: 1rem;
    text-align: center;
}

.pa-single-profile .pa-price-large {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.pa-single-profile .pa-price-large.pa-price-free {
    background: var(--pa-free-badge-color);
    border-color: var(--pa-free-badge-color);
    color: #fff;
}

.pa-single-profile .pa-profile-content {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pa-single-profile .pa-profile-content p {
    margin-bottom: 1rem;
}

.pa-single-profile .pa-profile-cta {
    margin-bottom: 1.5rem;
    text-align: center;
}

.pa-single-profile .pa-cta-button-large {
    font-size: 1.15rem;
    padding: 1.1rem 2rem;
    min-height: 64px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

/* Contacts */
.pa-profile-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
}

.pa-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-contact-btn.pa-whatsapp {
    background: #25D366;
    color: #fff;
}

.pa-contact-btn.pa-telegram {
    background: #0088cc;
    color: #fff;
}

.pa-contact-btn.pa-email {
    background: #f1f5f9;
    color: #475569;
}

.pa-contact-btn.pa-phone {
    background: #f1f5f9;
    color: #475569;
}

.pa-contact-btn.pa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.pa-contact-btn.pa-tiktok {
    background: #010101;
    color: #fff;
}

.pa-contact-btn.pa-twitter {
    background: #1da1f2;
    color: #fff;
}

.pa-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===========================================
   BOUTON PROMO FLOTTANT
   =========================================== */
.pa-promo-button {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    padding: 0.9rem 1.8rem;
    background: var(--promo-bg, #22c55e);
    color: var(--promo-color, #fff);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: pa-pulse 2s infinite;
}

.pa-promo-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

@keyframes pa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 4px 30px rgba(34, 197, 94, 0.4); }
}

/* ===========================================
   CARROUSEL PROFILS PREMIUM
   =========================================== */
.pa-premium-carousel-section,
.pa-discover-section {
    margin-top: 3rem;
    padding: 2.5rem 0;
}

.pa-discover-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pa-discover-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pa-pulse 2s ease-in-out infinite;
}

@keyframes pa-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.pa-discover-title {
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.pa-discover-subtitle {
    color: var(--pa-secondary-color);
    font-size: 0.95rem;
    margin: 0;
}

.pa-discover-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem 1rem;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pa-discover-grid::-webkit-scrollbar {
    height: 6px;
}

.pa-discover-grid::-webkit-scrollbar-track {
    background: transparent;
}

.pa-discover-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pa-discover-card {
    display: block !important;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
    text-decoration: none !important;
    color: inherit;
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    scroll-snap-align: start;
    border: 2px solid transparent;
    float: none !important;
}

.pa-discover-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    border-color: var(--pa-premium-color);
}

.pa-discover-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.pa-discover-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pa-discover-card:hover .pa-discover-card-img img {
    transform: scale(1.08);
}

.pa-discover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 3rem;
}

.pa-discover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.2rem 0.55rem;
    background: var(--pa-premium-color);
    color: #1e293b;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.pa-discover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pa-discover-card:hover .pa-discover-overlay {
    opacity: 1;
}

.pa-discover-cta-label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--pa-primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.pa-discover-card:hover .pa-discover-cta-label {
    background: var(--pa-primary-hover);
}

.pa-discover-card-body {
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.pa-discover-card-body h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy carousel (kept for backward compat) */
.pa-carousel-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pa-premium-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pa-premium-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
    flex: 1;
}

.pa-premium-carousel::-webkit-scrollbar {
    display: none;
}

.pa-carousel-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--pa-primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pa-carousel-nav:hover {
    transform: scale(1.1);
    background: var(--pa-primary-hover);
}

.pa-carousel-card {
    flex: 0 0 200px;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pa-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pa-carousel-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.pa-carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pa-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 3rem;
}

.pa-carousel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.6rem;
    background: var(--pa-premium-color);
    color: #1e293b;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
}

.pa-carousel-card-info {
    padding: 0.75rem;
    text-align: center;
}

.pa-carousel-card-info h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-carousel-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--pa-primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-carousel-link:hover {
    background: var(--pa-primary-hover);
}

/* ===========================================
   HTML PERSONNALISÉ
   =========================================== */
.pa-custom-html-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--pa-white);
    border-radius: var(--pa-radius-xl);
}

/* ===========================================
   RESPONSIVE PAGE PROFIL
   =========================================== */
@media (max-width: 900px) {
    .pa-single-profile .pa-profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pa-single-profile .pa-profile-gallery-column {
        position: static;
    }

    .pa-single-profile .pa-profile-main-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .pa-single-profile .pa-profile-thumbnails {
        max-width: 400px;
    }
    
    .pa-single-profile .pa-profile-title {
        font-size: 1.5rem;
    }
    
    .pa-promo-button {
        font-size: 0.85rem;
        padding: 0.7rem 1.4rem;
        bottom: 70px;
    }
    
    .pa-discover-grid {
        gap: 0.6rem;
    }
    
    .pa-discover-card {
        flex: 0 0 150px !important;
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
    }
    
    .pa-discover-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
    }

    .pa-carousel-card {
        flex: 0 0 160px;
    }
    
    .pa-carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .pa-single-profile .pa-profile-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .pa-single-profile .pa-profile-main-image {
        max-width: 100%;
    }

    .pa-single-profile .pa-profile-thumbnails {
        max-width: 100%;
    }
    
    .pa-profile-contacts {
        flex-direction: column;
        align-items: center;
    }

    .pa-contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .pa-discover-grid {
        gap: 0.5rem;
        padding: 0.5rem 0.5rem 0.5rem;
    }
    
    .pa-discover-card {
        flex: 0 0 110px !important;
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    
    .pa-discover-card-body h3 {
        font-size: 0.65rem;
        padding: 0.3rem 0.25rem;
    }
    
    .pa-discover-card-body {
        padding: 0.3rem 0.25rem !important;
    }
    
    .pa-discover-badge {
        font-size: 0.45rem !important;
        padding: 0.15rem 0.3rem !important;
        top: 4px !important;
        left: 4px !important;
    }
    
    .pa-discover-overlay {
        display: none !important;
    }
    
    .pa-discover-card .pa-price-badge {
        font-size: 0.5rem !important;
        padding: 0.15rem 0.3rem !important;
        bottom: 4px !important;
        left: 4px !important;
    }
    
    .pa-discover-cta-label {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .pa-carousel-card {
        flex: 0 0 140px;
    }
}

/* =====================================================
   TextBulker Generated Content - Responsive Styles
   ===================================================== */

/* Responsive table wrapper (added by clean_html) */
.pa-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1em 0;
    border-radius: 6px;
}

.pa-table-responsive table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.pa-table-responsive th,
.pa-table-responsive td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.pa-table-responsive th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.pa-table-responsive tr:nth-child(even) {
    background: #f8fafc;
}

.pa-table-responsive tr:hover {
    background: #eef2ff;
}

/* Mobile: stack table cells or scroll */
@media (max-width: 768px) {
    .pa-table-responsive {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }

    .pa-table-responsive table {
        font-size: 13px;
    }

    .pa-table-responsive th,
    .pa-table-responsive td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .pa-table-responsive table {
        font-size: 12px;
    }

    .pa-table-responsive th,
    .pa-table-responsive td {
        padding: 6px 8px;
    }
}

/* Generated content general styling */
.pa-location-intro-text,
.pa-location-footer-text,
.pa-page-intro-text,
.pa-page-footer-text,
.pa-seo-content {
    line-height: 1.7;
    font-size: 15px;
    color: #334155;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pa-location-footer-text h2,
.pa-location-footer-text h3,
.pa-page-footer-text h2,
.pa-page-footer-text h3,
.pa-seo-content h2,
.pa-seo-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1e293b;
}

.pa-location-footer-text ul,
.pa-location-footer-text ol,
.pa-page-footer-text ul,
.pa-page-footer-text ol,
.pa-seo-content ul,
.pa-seo-content ol {
    padding-left: 1.5em;
    margin: 0.8em 0;
}

.pa-location-footer-text li,
.pa-page-footer-text li,
.pa-seo-content li {
    margin-bottom: 0.4em;
}

/* FAQ rich snippets styling */
.pa-location-footer-text details,
.pa-page-footer-text details,
.pa-seo-content details {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 8px;
}

.pa-location-footer-text summary,
.pa-page-footer-text summary,
.pa-seo-content summary {
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    border-radius: 6px;
    list-style: none;
}

.pa-location-footer-text summary::-webkit-details-marker,
.pa-page-footer-text summary::-webkit-details-marker,
.pa-seo-content summary::-webkit-details-marker {
    display: none;
}

.pa-location-footer-text summary::before,
.pa-page-footer-text summary::before,
.pa-seo-content summary::before {
    content: "▶ ";
    font-size: 0.8em;
    margin-right: 6px;
    transition: transform 0.2s;
    display: inline-block;
}

.pa-location-footer-text details[open] summary::before,
.pa-page-footer-text details[open] summary::before,
.pa-seo-content details[open] summary::before {
    content: "▼ ";
}

.pa-location-footer-text details > div,
.pa-location-footer-text details > p,
.pa-page-footer-text details > div,
.pa-page-footer-text details > p,
.pa-seo-content details > div,
.pa-seo-content details > p {
    padding: 12px 16px;
}

/* Generated images responsive */
.pa-location-footer-text img,
.pa-page-footer-text img,
.pa-seo-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Table scroll wrapper - injected by pa_render_content() around <table> elements */
.pa-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1em 0;
    max-width: 100%;
}
.pa-table-scroll table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}
@media (max-width: 768px) {
    .pa-table-scroll table {
        font-size: 13px;
    }
    .pa-table-scroll td,
    .pa-table-scroll th {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}
@media (max-width: 480px) {
    .pa-table-scroll table {
        min-width: 360px;
        font-size: 11px;
    }
    .pa-table-scroll td,
    .pa-table-scroll th {
        padding: 4px 5px !important;
        font-size: 11px !important;
    }
}
