/* ==========================================================================
   ARCHITECTURE DE DESIGN SAAS PREMIUM : /css/parcview.css
   ========================================================================== */

body {
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
}

.pv-container {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   STYLE DU BANDEAU HERO EN DÉGRADÉ DYNAMIQUE ET FLOU DE TEXTURE
   -------------------------------------------------------------------------- */
.pv-premium-hero {
    position: relative;
    background-image: var(--bg-cover);
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #ffffff;
    overflow: hidden;
}

.pv-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 30%, rgba(30, 41, 59, 0.8) 100%);
    z-index: 1;
}

.pv-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.pv-hero-breadcrumbs {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 25px;
    font-weight: 500;
}
.pv-hero-breadcrumbs a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.pv-hero-breadcrumbs a:hover { color: #4a51ff; }
.pv-hero-breadcrumbs i { font-size: 0.65rem; margin: 0 8px; }

.pv-hero-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.pv-hero-info-side { flex: 1; min-width: 300px; }
.pv-country-tag {
    background: rgba(74, 81, 255, 0.15);
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.pv-hero-info-side h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

.pv-hero-meta-pills { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 0.9rem; color: #e2e8f0; }
.pv-hero-meta-pills b { color: #ffffff; }
.pv-btn-pill-web {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}
.pv-btn-pill-web:hover { background: #ffffff; color: #0f172a; }

/* TABLEAU DES SCORES HERO CARD (EFFET GLASSMORPHISM) */
.pv-hero-score-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    min-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pv-score-big-flex { display: flex; align-items: center; gap: 20px; }
.pv-score-number { font-size: 3rem; font-weight: 800; line-height: 1; display: flex; align-items: flex-end; color: #ffffff; }
.pv-score-number small { font-size: 1.2rem; color: #94a3b8; margin-left: 4px; font-weight: 500; padding-bottom: 4px; }
.pv-score-stars-col { display: flex; flex-direction: column; gap: 6px; }

.pv-stars-interactive-line { display: flex; gap: 4px; font-size: 1.2rem; }
.pv-star-item { color: rgba(255,255,255,0.15); cursor: pointer; transition: transform 0.1s, color 0.15s; }
.pv-star-item.is-active, .pv-star-item.hover-active { color: #fbbf24; }
.pv-star-item:hover { transform: scale(1.2); }

.pv-total-votes-label { font-size: 0.82rem; color: #94a3b8; }
.pv-total-votes-label b { color: #cbd5e1; }
.pv-user-vote-status-bar {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: #2ed573;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   DISPOSITION DES GRILLES ASYMÉTRIQUES DE CONTENU DU CORPS
   -------------------------------------------------------------------------- */
.pv-main-layout {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 35px;
    box-sizing: border-box;
}

.pv-dashboard-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.01);
}
.margin-top-card { margin-top: 30px; }

.pv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.pv-header-title-wrapper { display: flex; gap: 16px; align-items: center; }
.pv-icon-container {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.bg-success-light { background: #f0fdf4; color: #10b981; }
.bg-danger-light { background: #fef2f2; color: #ef4444; }

.pv-section-header h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px 0; color: #0f172a; }
.pv-section-header p { color: #64748b; margin: 0; font-size: 0.88rem; }
.pv-counter-badge { font-size: 0.8rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; }
.bg-success-p { background: #dcfce7; color: #15803d; }
.bg-danger-p { background: #f1f5f9; color: #475569; }

/* CARDS DE ROLLERCOASTERS MODERNE (GRID) */
.pv-rides-grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.pv-ride-premium-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.pv-ride-premium-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }

.pv-ride-card-img-container { position: relative; width: 100%; height: 140px; background: #f1f5f9; }
.pv-ride-card-img-container img { width: 100%; height: 100%; object-fit: cover; }
.pv-status-card-pill {
    position: absolute; top: 12px; right: 12px; font-size: 0.7rem; font-weight: 800;
    padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.pv-status-card-pill.status-ouvert { background: #10b981; color: white; }
.pv-status-card-pill.status-en-maintenance { background: #f59e0b; color: white; }

.pv-ride-card-details { padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.pv-ride-card-details h4 { font-size: 1rem; font-weight: 800; margin: 0 0 10px 0; color: #0f172a; }
.pv-ride-specs-row-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-ride-specs-row-pills span { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }

/* BANDES DE COATERS INDISPONIBLES */
.pv-rides-list-strip { display: flex; flex-direction: column; gap: 10px; }
.pv-ride-strip-item {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 20px;
}
.pv-strip-info h5 { margin: 0 0 2px 0; font-size: 0.95rem; font-weight: 700; color: #64748b; text-decoration: line-through; }
.pv-strip-info span { font-size: 0.78rem; color: #94a3b8; }
.pv-status-strip-pill { font-size: 0.75rem; font-weight: 700; color: #ef4444; background: #fef2f2; padding: 4px 10px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   COLONNE COMMUNAUTAIRE DE DROITE (STICKY DESIGN)
   -------------------------------------------------------------------------- */
.pv-community-sticky-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.01);
    position: sticky; top: 40px;
}

.pv-comm-card-header { margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }
.pv-comm-card-header h4 { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px 0; }
.pv-comm-card-header p { color: #64748b; margin: 0; font-size: 0.82rem; }

.pv-modern-form textarea {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px;
    font-family: inherit; font-size: 0.9rem; box-sizing: border-box; resize: none; background: #f8fafc;
}
.pv-modern-form textarea:focus { outline: none; border-color: #4a51ff; background: #fff; }
.pv-btn-send-comment {
    width: 100%; background: #4a51ff; color: white; border: none; font-weight: 700;
    padding: 11px; border-radius: 10px; font-size: 0.88rem; cursor: pointer; margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s;
}
.pv-btn-send-comment:hover { background: #0f172a; }

.pv-card-locked-notice { text-align: center; background: #f8fafc; padding: 20px; border-radius: 14px; border: 1px dashed #cbd5e1; color: #475569; font-size: 0.85rem; }
.pv-btn-form-login { display: block; background: #0f172a; color: white; text-decoration: none; padding: 8px; border-radius: 8px; font-weight: 700; margin-top: 10px; font-size: 0.82rem; }

/* BULLES DES FLUX DE DISCUSSIONS */
.pv-comm-feed-wrapper { display: flex; flex-direction: column; gap: 14px; margin-top: 25px; max-height: 450px; overflow-y: auto; padding-right: 4px; }
.pv-feed-item-bubble { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.pv-bubble-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.8rem; color: #64748b; }
.pv-bubble-user-info { display: flex; align-items: center; gap: 8px; color: #0f172a; }
.pv-avatar-placeholder { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #4a51ff; font-weight: 800; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }
.pv-bubble-text { font-size: 0.88rem; color: #334155; margin: 0 0 12px 0; line-height: 1.5; }
.pv-bubble-footer-actions { border-top: 1px solid #f1f5f9; padding-top: 10px; }
.pv-action-like-pill { text-decoration: none; color: #64748b; font-size: 0.78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: #f8fafc; padding: 4px 10px; border-radius: 6px; transition: all 0.2s; }
.pv-action-like-pill:hover, .pv-action-like-pill.liked-active { background: rgba(74, 81, 255, 0.08); color: #4a51ff; }

.pv-empty-state-box, .pv-empty-feed-state { text-align: center; color: #94a3b8; font-size: 0.88rem; padding: 30px 10px; font-style: italic; }
.pv-empty-state-box i, .pv-empty-feed-state i { font-size: 1.8rem; margin-bottom: 8px; display: block; color: #cbd5e1; }

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (BREAKPOINTS COMPACTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pv-main-layout { grid-template-columns: 1fr; gap: 30px; }
    .pv-community-sticky-card { position: static; }
}

@media (max-width: 640px) {
    .pv-hero-main-content { flex-direction: column; align-items: flex-start; gap: 25px; }
    .pv-hero-score-card { width: 100%; box-sizing: border-box; }
    .pv-hero-info-side h1 { font-size: 2rem; }
    .pv-dashboard-section-card { padding: 20px; }
    .pv-rides-grid-system { grid-template-columns: 1fr; }
}