/* Masquer le titre disgracieux de la page WordPress (Hello Elementor) */
header.page-header, h1.entry-title, h1.page-title {
    display: none !important;
}

#attractivite-app {
    --attr-primary: #BE9F58;
    --attr-primary-hover: #a68a4a;
    --attr-secondary: #1A1A1A; 
    --attr-bg: #f4f6f8;
    --attr-card: #ffffff;
    --attr-text: #2C3E50;
    --attr-text-muted: #7F8C8D;
    --attr-border: #e2e8f0;
    --attr-success: #27ae60;

    font-family: 'Outfit', sans-serif;
    background: var(--attr-card);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

#attractivite-app * {
    box-sizing: border-box;
}

.attr-header {
    background: linear-gradient(135deg, var(--attr-secondary) 0%, #2a2a2a 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.attr-header-icon {
    font-size: 40px;
    color: var(--attr-primary);
    margin-bottom: 15px;
}

.attr-header h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.attr-header p {
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

.attr-progress-bar {
    height: 8px;
    background: #edf2f7;
    width: 100%;
}

.attr-progress {
    height: 100%;
    background: var(--attr-primary);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(190, 159, 88, 0.5);
}

.attr-body {
    padding: 50px;
    position: relative;
    min-height: 450px;
}

.attr-step {
    display: none;
    animation: slideUp 0.5s ease forwards;
}

.attr-step.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.attr-question-title {
    font-size: 26px;
    color: var(--attr-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.attr-question-desc {
    color: var(--attr-text-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.attr-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.attr-option {
    border: 2px solid var(--attr-border);
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 17px;
    font-weight: 600;
    background: white;
    color: var(--attr-text);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.attr-option i {
    font-size: 36px;
    color: var(--attr-text-muted);
    transition: color 0.3s;
}

.attr-option:hover {
    border-color: var(--attr-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(190, 159, 88, 0.15);
}

.attr-option:hover i {
    color: var(--attr-primary);
}

.attr-option.selected {
    border-color: var(--attr-primary);
    background: var(--attr-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(190, 159, 88, 0.3);
    transform: translateY(-5px);
}

.attr-option.selected i {
    color: white;
}

.attr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.attr-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.attr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--attr-secondary);
    font-size: 15px;
}

.attr-form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--attr-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
    background: #f8fafc;
    box-sizing: border-box;
}

.attr-form-group input:focus {
    border-color: var(--attr-primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(190, 159, 88, 0.1);
}

.attr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--attr-border);
}

.attr-btn {
    background: var(--attr-primary);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.attr-btn:hover:not(:disabled) {
    background: var(--attr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(190, 159, 88, 0.3);
}

.attr-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.attr-btn-secondary {
    background: transparent;
    color: var(--attr-text);
    border: 2px solid var(--attr-border);
}

.attr-btn-secondary:hover:not(:disabled) {
    background: var(--attr-bg);
    border-color: var(--attr-text-muted);
    box-shadow: none;
    transform: none;
}

/* Fullscreen overlays inside app */
.attr-step-fullscreen {
    background: var(--attr-card);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 40px 0;
    text-align: center;
    width: 100%;
}

.attr-step-fullscreen.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner-premium {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(190, 159, 88, 0.2);
    border-top-color: var(--attr-primary);
    border-radius: 50%;
    animation: spinPremium 1s infinite cubic-bezier(0.55, 0.15, 0.45, 0.85);
    margin: 0 auto 30px auto;
}

@keyframes spinPremium {
    100% { transform: rotate(360deg); }
}

/* Circular Gauge SVG */
.attr-gauge {
    width: 220px;
    margin: 0 auto 40px auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #edf2f7;
    stroke-width: 4;
}

.circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.percentage {
    fill: var(--attr-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}
.percentage-label {
    fill: var(--attr-text-muted);
    font-size: 4px;
    font-weight: 600;
    text-anchor: middle;
}

.attr-advice {
    background: #f8fafc;
    padding: 35px;
    border-radius: 16px;
    border-left: 6px solid var(--attr-primary);
    text-align: left;
    font-size: 17px;
    line-height: 1.7;
    color: var(--attr-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 0 auto 40px auto;
    max-width: 750px;
}
.attr-advice h4 {
    margin-top: 0;
    font-size: 24px;
    color: var(--attr-secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}
.attr-advice p {
    margin-bottom: 15px;
}
.attr-advice p:last-child {
    margin-bottom: 0;
}

/* Nouvelles sections : Points forts et boutons PDF */
.attr-strengths {
    margin: 0 auto 30px auto;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.attr-badge {
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 17px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}
.attr-badge i { font-size: 24px; }
.attr-badge-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.attr-badge-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.attr-result-actions {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.attr-benchmark {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin: 0 auto 40px auto;
    max-width: 750px;
    font-size: 18px;
    color: var(--attr-secondary);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .attr-form-grid { grid-template-columns: 1fr; }
    .attr-body { padding: 30px 20px; }
    .attr-header { padding: 30px 20px; }
    .attr-options-grid { grid-template-columns: 1fr; }
    .attr-question-title { font-size: 22px; }
}

/* Premium Popup */
.attr-popup-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.attr-popup-content {
    background: var(--attr-card);
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}
.attr-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}
.attr-popup-close:hover {
    color: var(--attr-primary);
}
.attr-popup-header {
    background: linear-gradient(135deg, var(--attr-secondary) 0%, #2a2a2a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}
.attr-popup-header h3 {
    margin: 0 0 10px 0;
    color: var(--attr-primary);
    font-size: 24px;
}
.attr-popup-header p {
    margin: 0;
    font-size: 16px;
    color: #cbd5e1;
}
.attr-popup-body {
    padding: 30px;
}
