/* ==========================================================================
   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é)
   ========================================================================== */
.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
========================================================== */

.step-page {
    width: 100%;
    padding: 70px 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.7rem;
    line-height: 1.13;
    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 .step-lead {
    max-width: 760px;
    margin: 0 auto 15px;
    color: #0B2545;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 700;
}

.step-intro > p:not(.step-kicker):not(.step-lead) {
    max-width: 820px;
    margin: 0 auto;
    color: #333333;
    font-size: 1.08rem;
    line-height: 1.7;
}


/* ==========================================================
   MESSAGE CENTRAL
   Converti en bloc fond marine plein (comme .step-essential
   d'étape 2), au lieu d'un bloc blanc à filet orange.
========================================================== */

.step-message {
    max-width: 1100px;
    margin: 0 auto 65px;
    padding: 35px 40px;
    background: #0B2545;
    border-radius: 20px;
    text-align: center;
    border-left: 5px solid #F57C00;
}

.step-message h2 {
    margin: 0 0 18px;
    color: #FFFFFF;
    font-size: 1.75rem;
    line-height: 1.3;
}

.step-message p {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #e9edf3;
    font-size: 1rem;
    line-height: 1.65;
}

.step-message strong {
    display: block;
    margin-top: 20px;
    color: #F57C00;
    font-size: 1.15rem;
    line-height: 1.5;
}


/* ==========================================================
   CHAPITRES
========================================================== */

.chapters {
    width: 100%;
}

.chapters-title {
    margin: 0 0 28px;
    color: #0B2545;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}


/* ==========================================================
   CARTES
========================================================== */

.chapter-card {
    min-height: 250px;
    margin-bottom: 24px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #F57C00;
}

.chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.09);
}


/* NUMÉRO — converti en pilule pour matcher étape6 */
.chapter-number {
    display: inline-block;
    margin-bottom: 12px;
    padding: 0.2rem 1rem;
    background: rgba(245, 124, 0, 0.08);
    color: #F57C00;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    border-radius: 50px;
    text-transform: uppercase;
}


/* TITRE */

.chapter-card h3 {
    max-width: 800px;
    margin: 0 0 14px;
    color: #0B2545;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
}


/* TEXTE */

.chapter-card > p {
    max-width: 850px;
    margin: 0 0 20px;
    color: #444444;
    font-size: 0.98rem;
    line-height: 1.65;
}


/* ==========================================================
   POINTS / MOTS CLÉS
   Converti en pilule (comme .chapter-points span d'étape6)
========================================================== */

.chapter-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.chapter-points span {
    display: inline-block;
    padding: 7px 14px;
    color: #0B2545;
    background: #f7f8fa;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
}


/* ==========================================================
   CHAPITRE 17 — MISE EN AVANT
========================================================== */


.chapter-featured h3 {
    font-size: 1.65rem;
}

.seven-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.seven-steps span {
    padding: 11px 10px;
    color: #ffffff;
    background: #0B2545;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}


/* ==========================================================
   CONCLUSION
   Converti en bloc fond marine plein (comme .step-essential
   d'étape 2), au lieu d'un bloc blanc à filet orange.
========================================================== */

.step-conclusion {
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 45px 35px;
    text-align: center;
    background: #0B2545;
    border-radius: 20px;
    border-left: 5px solid #F57C00;
}

.conclusion-kicker {
    margin: 0 0 15px;
    color: #F57C00;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.step-conclusion h2 {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #FFFFFF;
    font-size: 1.9rem;
    line-height: 1.3;
}

.step-conclusion > p:not(.conclusion-kicker) {
    max-width: 700px;
    margin: 0 auto;
    color: #e9edf3;
    font-size: 1rem;
    line-height: 1.65;
}

.conclusion-line {
    width: 50px;
    height: 3px;
    margin: 25px auto;
    background: #F57C00;
    border-radius: 4px;
}

.step-conclusion strong {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.6;
}

.step-conclusion strong::before {
    content: none;
}


/* ==========================================================
   NAVIGATION ENTRE LES ÉTAPES
========================================================== */

.step-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 60px;
}

.step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.step-button.primary {
    color: #ffffff;
    background: #F57C00;
}

.step-button.primary:hover {
    background: #DF6F00;
    transform: translateY(-2px);
}

.step-button.secondary {
    color: #F57C00;
    background: #ffffff;
    border: 2px solid #F57C00;
}

.step-button.secondary:hover {
    color: #ffffff;
    background: #F57C00;
    transform: translateY(-2px);
}


/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 900px) {

    .step-page {
        padding: 60px 24px 70px;
    }

    .step-intro h1 {
        font-size: 2.4rem;
    }

    .seven-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-header {
        height: auto;
    }

    .nav-container {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 15px;
    }

    .site-header .main-nav {
        width: 100%;
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .step-page {
        padding: 48px 17px 60px;
    }

    .step-intro {
        margin-bottom: 40px;
    }

    .step-intro h1 {
        font-size: 2rem;
    }

    .step-intro .step-lead {
        font-size: 1.1rem;
    }

    .step-intro > p:not(.step-kicker):not(.step-lead) {
        font-size: 1rem;
        line-height: 1.6;
    }

    .step-message {
        padding: 28px 22px;
        margin-bottom: 45px;
    }

    .step-message h2 {
        font-size: 1.45rem;
    }

    .step-message p {
        font-size: 0.94rem;
    }

    .chapters-title {
        font-size: 1.7rem;
    }

    .chapter-card {
        min-height: auto;
        padding: 25px;
        margin-bottom: 18px;
    }

    .chapter-card h3 {
        font-size: 1.3rem;
    }

    .chapter-card > p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .chapter-points {
        gap: 7px;
    }

    .chapter-points span {
        font-size: 0.78rem;
    }

    .chapter-featured h3 {
        font-size: 1.4rem;
    }

    .seven-steps {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .seven-steps span {
        font-size: 0.76rem;
        padding: 10px 7px;
    }

    .step-conclusion {
        margin-top: 50px;
        padding: 32px 22px;
    }

    .step-conclusion h2 {
        font-size: 1.55rem;
    }

    .step-conclusion strong {
        font-size: 0.95rem;
    }

    .step-navigation {
        margin-top: 45px;
        flex-direction: column;
    }

    .step-button {
        width: 100%;
        max-width: 340px;
    }
}