/* ============================================================
   DEVENIR RÉDACTEUR — ORBITECH AI ACADEMY
   ============================================================ */

/* HERO */
.rd-hero {
    padding: 140px var(--space-sm) 80px;
    background: var(--gradient-ocean);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.rd-hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: heroGrid 25s linear infinite;
}

@keyframes heroGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.rd-hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.25);
}

.rd-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.rd-gradient-text {
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rd-hero-sub {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 36px;
    font-family: 'Inter', sans-serif;
}

.rd-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.rd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.rd-btn:hover {
    transform: translateY(-2px);
}

.rd-btn-primary {
    background: var(--white);
    color: #4338ca;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.rd-btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.rd-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.rd-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.rd-btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

/* SECTIONS */
.rd-section {
    padding: var(--space-xl) var(--space-sm);
}

.rd-section-alt {
    background: var(--gray-50);
}

.rd-container {
    max-width: 1100px;
    margin: 0 auto;
}

.rd-section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.rd-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    color: #6366f1;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.rd-section-header h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.rd-section-header p {
    font-size: 17px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* STEPS */
.rd-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.rd-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
}

.rd-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #6366f1;
}

.rd-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.rd-step-icon {
    width: 64px;
    height: 64px;
    margin: 16px auto 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(78,205,196,0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #6366f1;
}

.rd-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.rd-step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.rd-step-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: var(--gray-300);
    font-size: 20px;
    margin: 0 -8px;
}

/* PROFILES */
.rd-profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rd-profile-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.rd-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.rd-profile-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--gradient-ocean);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.rd-profile-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.rd-profile-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* ADVANTAGES */
.rd-advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rd-advantage {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.rd-advantage:hover {
    border-color: #6366f1;
    box-shadow: var(--shadow-sm);
}

.rd-adv-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6366f1;
}

.rd-advantage h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.rd-advantage p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* VALIDATION FLOW */
.rd-validation-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.rd-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rd-flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.rd-flow-draft { background: var(--gray-400); }
.rd-flow-submit { background: #6366f1; }
.rd-flow-review { background: #f59e0b; }
.rd-flow-publish { background: var(--success); }

.rd-flow-step span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.rd-flow-arrow {
    color: var(--gray-300);
    font-size: 18px;
    margin-bottom: 28px;
}

.rd-validation-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rd-detail-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.rd-detail-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #f59e0b;
}

.rd-detail-card > i {
    font-size: 24px;
    color: #f59e0b;
    margin-bottom: 14px;
    display: block;
}

.rd-detail-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.rd-detail-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* FAQ */
.rd-faq {
    max-width: 700px;
    margin: 0 auto;
}

.rd-faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

.rd-faq-item:hover {
    border-color: #6366f1;
}

.rd-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
}

.rd-faq-question i {
    font-size: 12px;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.rd-faq-item.open .rd-faq-question i {
    transform: rotate(180deg);
    color: #6366f1;
}

.rd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.rd-faq-item.open .rd-faq-answer {
    max-height: 200px;
}

.rd-faq-answer p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* CTA SECTION */
.rd-cta-section {
    padding: var(--space-xl) var(--space-sm);
    background: var(--gradient-space);
}

.rd-cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
}

.rd-cta-box h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}

.rd-cta-box p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
}

.rd-cta-section .rd-btn-primary {
    background: var(--white);
    color: #4338ca;
}

.rd-cta-section .rd-btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .rd-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .rd-step {
        max-width: 100%;
        width: 100%;
    }
    .rd-step-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: -8px 0;
    }
    .rd-profiles {
        grid-template-columns: 1fr;
    }
    .rd-advantages {
        grid-template-columns: 1fr;
    }
    .rd-validation-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rd-hero {
        padding: 120px 16px 60px;
    }
    .rd-hero-sub {
        font-size: 15px;
    }
    .rd-section {
        padding: var(--space-lg) 16px;
    }
    .rd-cta-section {
        padding: var(--space-lg) 16px;
    }
    .rd-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
    .rd-flow-arrow {
        display: none;
    }
    .rd-validation-flow {
        gap: 16px;
    }
}
