/* ==========================================================
   Decap Radia - Processus (7 etapes)
   Palette :
     --dre-primary  : #04748C   (principal)
     --dre-primary-d: #056478   (degrade)
     --dre-primary-l: #32A6BE   (clair)
     --dre-cta      : #F8C117   (mise en avant)
   ========================================================== */

.dre-processus {
    --dre-primary: #04748c;
    --dre-primary-d: #056478;
    --dre-primary-l: #32a6be;
    --dre-cta: #f8c117;
    --dre-noir: #0f172a;
    padding: 64px 0;
    background: #ffffff;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}

.dre-section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dre-noir);
    letter-spacing: -0.01em;
}

.dre-section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Timeline */
.dre-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dre-step {
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 160px;
    text-align: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 12px;
    position: relative;
    transition: all 0.2s;
}

.dre-step a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.dre-step:hover:not(.dre-step--active) {
    border-color: var(--dre-primary-l);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(4, 116, 140, 0.15);
}

.dre-step--active {
    background: var(--dre-primary);
    border-color: var(--dre-primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(4, 116, 140, 0.35);
}

.dre-step-num {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dre-primary-l);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dre-step--active .dre-step-num {
    color: var(--dre-cta);
}

.dre-step-label,
.dre-step-label.dre-step:hover:not(.dre-step--active) {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}

/* Chevron entre les etapes */
.dre-step::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #e2e8f0;
    z-index: 1;
}

.dre-step:last-child::after {
    display: none;
}
.dre-step--active::after {
    border-left-color: var(--dre-primary);
}

/* Bloc detail */
.dre-processus-detail {
    margin-top: 32px;
    background: #ffffff;
    border-left: 4px solid var(--dre-primary);
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #475569;
}

.dre-processus-detail h3 {
    color: var(--dre-noir);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.dre-processus-detail p {
    margin-bottom: 12px;
}
.dre-processus-detail p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dre-timeline {
        flex-direction: column;
        align-items: stretch;
    }
    .dre-step {
        max-width: 100%;
    }
    .dre-step::after {
        display: none;
    }
}
