/* RDVQ Hôtesses - Styles Front-end */

/* === Grille de profils === */
.rdvq-profiles-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.rdvq-cols-2 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.rdvq-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.rdvq-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
    .rdvq-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .rdvq-profiles-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
}

/* === En-tête de thème === */
.rdvq-theme-header {
    grid-column: 1 / -1;
    margin: 20px 0 10px;
    padding: 10px 0;
    border-bottom: 2px solid #333;
}

.rdvq-theme-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* === Carte de profil === */
.rdvq-profile-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rdvq-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rdvq-profile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rdvq-profile-image {
    position: relative;
    width: 100%;
    padding-bottom: 130%; /* Ratio 1:1.3 */
    overflow: hidden;
    background: #f0f0f0;
}

.rdvq-profile-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rdvq-profile-info {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.rdvq-profile-name {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rdvq-profile-age {
    font-size: 14px;
    opacity: 0.9;
    font-weight: normal;
}

/* === Message vide === */
.rdvq-no-profiles {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}

/* === Menu de thèmes === */
.rdvq-theme-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rdvq-theme-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rdvq-theme-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* === Compteur === */
.rdvq-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    margin: 15px 0;
}

.rdvq-counter-number {
    font-size: 28px;
    font-weight: bold;
}

.rdvq-counter-label {
    font-size: 14px;
}

/* === Profil unique === */
.rdvq-single-profile {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rdvq-profile-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

.rdvq-profile-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.rdvq-profile-content {
    padding: 30px;
}

.rdvq-profile-photo {
    text-align: center;
    margin-bottom: 30px;
}

.rdvq-profile-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rdvq-profile-audio {
    text-align: center;
    margin: 30px 0;
}

.rdvq-profile-audio audio {
    width: 100%;
    max-width: 400px;
}

.rdvq-profile-call {
    margin-top: 30px;
    text-align: center;
}

.rdvq-code-info {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.rdvq-code-info strong {
    font-size: 22px;
    color: #667eea;
}

.rdvq-or {
    margin: 15px 0;
    color: #888;
}

.rdvq-call-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px 0;
}

.rdvq-call-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.rdvq-phone-number {
    display: block;
}

.rdvq-price {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 5px;
}

.rdvq-profile-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

.rdvq-back-button {
    display: inline-block;
    padding: 12px 25px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.2s;
}

.rdvq-back-button:hover {
    background: #5a6268;
    color: #fff;
}

/* === Messages d'erreur === */
.rdvq-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rdvq-profile-card {
    animation: fadeIn 0.4s ease-out;
}

.rdvq-profile-card:nth-child(2) { animation-delay: 0.05s; }
.rdvq-profile-card:nth-child(3) { animation-delay: 0.1s; }
.rdvq-profile-card:nth-child(4) { animation-delay: 0.15s; }
.rdvq-profile-card:nth-child(5) { animation-delay: 0.2s; }
.rdvq-profile-card:nth-child(6) { animation-delay: 0.25s; }

/* === Accessibilité === */
.rdvq-profile-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.rdvq-theme-link:focus,
.rdvq-call-button:focus,
.rdvq-back-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
