/* ==========================================================================
   1. VARIABLES DE COULEUR & RESET
   ========================================================================== */
:root {
    --dark-navy: #151828;
    --accent-orange: #ff6b00;
    --white: #ffffff;
    --text-dark: #1f2335;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
}

/* ==========================================================================
   2. BANDEAU SUPÉRIEUR (RÉSEAUX SOCIAUX)
   ========================================================================== */
.top-bar {
    background-color: var(--dark-navy);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-orange);
}

/* ==========================================================================
   3. BARRE DE NAVIGATION
   ========================================================================== */
.main-header {
    background-color: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 1000;
}

.logo-bold {
    color: #ff6b00;
}

.logo-orange {
    color: #111111;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #111111;
    font-size: 1rem;
    font-weight: 800px;
    transition: color 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 4px;
}

/* ==========================================================================
   4. FOOTER (PIED DE PAGE)
   (bloc dupliqué supprimé — un seul .main-footer conservé, comme sur étape6)
   ========================================================================== */
.main-footer {
    background-color: #1f0d5f;
    color: var(--white);
    padding-top: 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
}

.footer-col:first-child {
    text-align: left;
    max-width: 450px;
}

.footer-col h3 {
    color: var(--accent-orange);
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.footer-col p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 4px;
}

.footer-col:last-child h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 6px;
}

.footer-col:last-child p {
    text-align: right;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col:last-child i {
    margin-right: 6px;
    color: var(--accent-orange);
}

.footer-bottom {
    background-color: #111111;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (HEADER/FOOTER)
   ========================================================================== */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* ==========================================================
   PAGE & CONTAINER
   (3 blocs dupliqués et contradictoires dans l'original,
   fusionnés ici en un seul jeu de règles cohérent)
========================================================== */

.step-page {
    width: 100%;
    padding: 60px 28px 85px;
    background: #f7f8fa;
}

.step-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================
   INTRODUCTION
========================================================== */

.step-intro {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
}

.step-kicker {
    display: inline-block;
    margin: 0 0 15px;
    padding: 0.4rem 1.6rem;
    background: #F57C00;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    border-radius: 50px;
    text-transform: uppercase;
}

.step-intro h1 {
    margin: 0;
    color: #0B2545;
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 800;
}

.step-intro h1 span {
    color: #F57C00;
}

.step-title-line {
    width: 52px;
    height: 4px;
    margin: 25px auto;
    background: #F57C00;
    border-radius: 4px;
}

.step-intro > p:not(.step-kicker) {
    max-width: 820px;
    margin: 0 auto 15px;
    color: #333333;
    font-size: 1.06rem;
    line-height: 1.7;
}

/* ==========================================================
   CHAPITRES (Format Cartes)
========================================================== */

.chapter-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 24px auto;
    padding: 32px 35px;
    background: #FFFFFF;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #F57C00;
    border-radius: 16px;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.06);
}

.chapter-number {
    display: inline-block;
    margin: 0 auto 12px auto;
    padding: 0.2rem 1rem;
    background: rgba(245, 124, 0, 0.08);
    color: #F57C00;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    border-radius: 50px;
    text-transform: uppercase;
}

.chapter-card h2 {
    margin: 0 auto 24px auto;
    color: #0B2545;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 800;
}

.chapter-card p {
    max-width: 900px;
    margin: 0 auto 24px auto;
    color: #444444;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================
   ENCADRÉS "À RETENIR"
========================================================== */

.important-box {
    margin-top: 25px;
    padding: 18px 20px;
    background: #fff7ef;
    border-left: 4px solid #F57C00;
    border-radius: 10px;
}

.important-box strong {
    color: #0B2545;
    font-size: 0.95rem;
    display: block;
}

.important-box p {
    margin: 7px 0 0;
    color: #444444;
    font-size: 0.94rem;
    line-height: 1.55;
}

.important-box p span {
    color: #F57C00;
    font-weight: 700;
}

/* ==========================================================
   CONCLUSION BLEU NUIT
========================================================== */

.step-essential {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 0 auto;
    padding: 35px 38px;
    background: #0B2545;
    border-radius: 20px;
    border-left: 5px solid #F57C00;
    text-align: center;
}

.essential-kicker {
    margin: 0 0 12px !important;
    color: #F57C00 !important;
    font-size: 0.82rem !important;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.step-essential h2 {
    margin: 0 0 20px;
    color: #FFFFFF !important;
    font-size: 1.8rem;
    line-height: 1.25;
}

.step-essential > p:not(.essential-kicker) {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #e9edf3 !important;
    font-size: 1rem;
    line-height: 1.65;
}

.step-essential .essential-final {
    margin-top: 22px;
    color: #FFFFFF !important;
}

.step-essential .essential-final strong {
    color: #F57C00 !important;
}

/* ==========================================================
   BOUTONS DE NAVIGATION
========================================================== */

.step-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #F57C00;
    color: #FFFFFF;
    border: 2px solid #F57C00;
}

.btn-primary:hover {
    background: #DF6F00;
}

.btn-secondary {
    background: #FFFFFF;
    color: #F57C00;
    border: 2px solid #F57C00;
}

.btn-secondary:hover {
    background: #fff7ef;
}