#vrf-app-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 32px 28px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

#vrf-app-container h3 {
    margin-top: 0;
    color: #222;
}

/* Sélecteur de registre */
.vrf-gender-selector {
    margin-bottom: 20px;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.vrf-gender-label {
    margin: 0 0 10px;
    font-weight: 600;
    color: #333;
}

.vrf-gender-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.vrf-gender-btn {
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.vrf-gender-btn:hover {
    background: #e6f2f9;
}

.vrf-gender-btn.active {
    background: #0073aa;
    color: white;
}

/* Étapes */
.vrf-step {
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vrf-step.active {
    opacity: 1;
    pointer-events: auto;
}

/* Astuce dans une étape */
.vrf-step-tip {
    margin: 8px 0 0;
    font-size: 0.9em;
    font-style: italic;
    color: #d63638;
}

/* Boutons */
.vrf-btn,
.vrf-btn-reset {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 12px;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.vrf-btn:hover:not(:disabled) {
    background: #005177;
    transform: translateY(-1px);
}

.vrf-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.vrf-btn-start {
    background: #28a745;
    font-size: 18px;
    padding: 14px 28px;
}

.vrf-btn-start:hover:not(:disabled) {
    background: #1e7e34;
}

.vrf-btn-reset {
    background: #444;
}

.vrf-btn-reset:hover {
    background: #222;
}

/* Indicateur de volume */
.vrf-volume-container {
    margin: 12px auto 4px;
    width: 80%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

#vrf-volume-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #d63638);
    transition: width 0.05s;
}

.vrf-volume-label {
    font-size: 0.8em;
    color: #999;
    margin: 4px 0 16px;
}

/* Note en direct */
.vrf-live-pitch {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 16px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.vrf-live-pitch #vrf-current-note {
    font-weight: bold;
    color: #0073aa;
    font-size: 1.2em;
    margin-left: 6px;
}

/* Lignes de résultat par étape */
.vrf-result-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: baseline;
    color: #666;
}

.vrf-note-display {
    font-weight: bold;
    color: #d63638;
    font-size: 1.1em;
}

/* Bloc de résultat final */
#vrf-result {
    border-top: 2px solid #eee;
    margin-top: 24px;
    padding-top: 20px;
}

#vrf-result h4 {
    margin-top: 0;
    color: #222;
}

.vrf-range-line {
    font-size: 1.05em;
    margin: 6px 0;
}

.vrf-range-line span {
    font-weight: bold;
    color: #0073aa;
}

.vrf-voice-type-box {
    background: #f0f8ff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #cce5ff;
    margin-top: 14px;
}

.vrf-voice-label {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 4px;
}

#result-type {
    font-weight: bold;
    color: #0073aa;
    font-size: 1.8em;
}

.vrf-secondary {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.vrf-note {
    margin-top: 12px;
    padding: 10px;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    text-align: left;
}

/* Section "À propos" */
.vrf-about {
    margin-top: 32px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: left;
}

.vrf-about h4 {
    margin: 0 0 12px;
    font-size: 1em;
    color: #333;
    text-align: center;
}

.vrf-disclaimer {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin-top: 14px;
}

#vrf-status {
    margin: 16px 0;
    font-style: italic;
    color: #666;
}

.vrf-subtitle {
    margin: -8px 0 20px;
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

.vrf-tm-notice {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.75em;
    color: #999;
    text-align: center;
}

/* Bouton vidéo "Vahn t'explique" */
.vrf-video-btn {
    background: linear-gradient(135deg, #d63638, #ff6b6b);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(214, 54, 56, 0.25);
}

.vrf-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(214, 54, 56, 0.35);
}

/* Bouton "Recevoir ma Fiche Voix" - lien vers ancre */
.vrf-fiche-btn {
    display: inline-block;
    background: #7A4E9F;
    color: white !important;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
    margin-right: 10px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 3px 10px rgba(122, 78, 159, 0.25);
}

.vrf-fiche-btn:hover {
    background: #5D3A7A;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(122, 78, 159, 0.35);
    text-decoration: none;
    color: white !important;
}

/* Rangée des deux CTAs (Fiche Voix + Vidéo) */
.vrf-cta-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.vrf-cta-row .vrf-fiche-btn,
.vrf-cta-row .vrf-video-btn {
    margin-top: 0;
    margin-right: 0;
    flex: 1 1 auto;
    min-width: 200px;
    text-align: center;
}

/* Accordéon "À propos" - spécificité renforcée pour override thèmes */
#vrf-app-container .vrf-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vrf-app-container .vrf-accordion-item {
    background: #f9f9f9 !important;
    border-radius: 6px !important;
    border: 1px solid #eaeaea !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.2s, box-shadow 0.2s !important;
}

#vrf-app-container .vrf-accordion-item[open] {
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    border-color: #d0e3f0 !important;
}

#vrf-app-container .vrf-accordion-item summary {
    padding: 14px 44px 14px 16px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 0.95em !important;
    list-style: none !important;
    position: relative !important;
    user-select: none !important;
    display: block !important;
    outline: none !important;
    line-height: 1.4 !important;
}

/* Masquer le marker par défaut sur tous les navigateurs */
#vrf-app-container .vrf-accordion-item summary::-webkit-details-marker {
    display: none !important;
}

#vrf-app-container .vrf-accordion-item summary::marker {
    display: none !important;
    content: "" !important;
}

#vrf-app-container .vrf-accordion-item summary:hover {
    color: #0073aa !important;
}

/* Chevron CSS - droite fermé, bas ouvert */
#vrf-app-container .vrf-accordion-item summary::after {
    content: "" !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #0073aa !important;
    border-bottom: 2px solid #0073aa !important;
    transform: translateY(-70%) rotate(-45deg) !important;
    transition: transform 0.2s ease !important;
}

#vrf-app-container .vrf-accordion-item[open] summary::after {
    transform: translateY(-30%) rotate(45deg) !important;
}

#vrf-app-container .vrf-accordion-content {
    padding: 4px 16px 16px !important;
    font-size: 0.9em !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
