
.db-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: var(--font-stack);
    color: var(--black-color);
}

/* ── HEADER ── */
.db-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.db-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tertiary-color);
}

.db-header h1 span {
    color: var(--primary-color);
}

.db-header p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 4px;
}

.db-badge-pill {
    background: var(--quatruno-color);
    border: 1.5px solid var(--mint);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── GRID ── */
.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .db-grid {
        grid-template-columns: 1fr;
    }
}

.db-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 20px rgba(76, 46, 5, 0.06);
    border: 1.5px solid rgba(70, 158, 70, 0.08);
    animation: fadeUp 0.6s ease both;
}

.db-card > * {
    position: relative;
    z-index: 1;
}

.db-card.full {
    grid-column: 1 / -1;
}

.db-card:nth-child(2) {
    animation-delay: .05s;
}

.db-card:nth-child(3) {
    animation-delay: .10s;
}

.db-card:nth-child(4) {
    animation-delay: .15s;
}

.db-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 16px;
    font-weight: 600;
}

/* ── SCORE TOTAL ── */
.score-card {
    display: flex;
    align-items: center;
    gap: 28px;
}

.score-ring {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.score-ring svg {
    transform: rotate(-90deg);
    width: 130px;
    height: 130px;
}

.score-ring-bg {
    fill: none;
    stroke: var(--offwhite);
    stroke-width: 10;
}

.score-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 345;
    transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1);
}

.score-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-ring-val {
    font-family: var(--font-stack);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}

.score-ring-unit {
    font-size: 0.68rem;
    color: var(--gray);
    margin-top: 2px;
}

.score-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--tertiary-color);
}

.score-info p {
    color: var(--gray);
    font-size: 0.86rem;
    line-height: 1.7;
}

.score-verdict {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.verdict-good {
    background: var(--quatruno-color);
    color: var(--primary-color);
}

.verdict-avg {
    background: var(--quatruno-color);
    color: var(--primary-color);
}

.verdict-bad {
    background: var(--quatruno-color);
    color: var(--primary-color);
}

/* ── SECTEURS ── */
.dasboard-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dasboard-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}

.dasboard-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tertiary-color);
}

.dasboard-vals {
    font-size: 0.8rem;
    color: var(--gray);
}

.dasboard-vals strong {
    color: var(--black-color);
    font-weight: 700;
}

.dasboard-track {
    height: 8px;
    background: var(--background-color);
    border-radius: 999px;
    overflow: hidden;
}

.dasboard-fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

/* ── COMPARAISON ── */
.compare-chart-wrap {
    height: 240px;
    position: relative;
}

/* ── TIPS ── */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 640px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

.tip-item {
    background: var(--quatruno-color);
    border-radius: 14px;
    padding: 18px;
    border: 1.5px solid rgba(184, 228, 145, 0.5);
    transition: border-color .2s, transform .2s;
}

.tip-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tip-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--tertiary-color);
}

.tip-desc {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.55;
}

/* ── EMPTY STATE ── */
.empty-card {
    background: var(--white-color);
    border: 1.5px solid rgba(70, 158, 70, 0.15);
    border-radius: 18px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(70, 158, 70, 0.07);
}

.empty-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tertiary-color);
    margin-bottom: 8px;
}

.empty-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-card a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background .2s;
}

.empty-card a:hover {
    background: #3a8a3a;
}

