/* =========================================================
   Notre histoire — scoped About page styles
   Brand: #3494D4 · #0D3463 / #071F4F · #FD9F18 / #F79A1E
   ========================================================= */

.nh-page {
    --nh-blue: #3494D4;
    --nh-navy: #0D3463;
    --nh-navy-deep: #071F4F;
    --nh-gold: #FD9F18;
    --nh-gold-soft: #F79A1E;
    --nh-white: #ffffff;
    --nh-muted: #5a6a7a;
    --nh-line: rgba(13, 52, 99, 0.12);
    color: var(--nh-navy);
}

/* ---- Hero banner ---- */
.nh-page .nh-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(7, 31, 79, 0.88) 0%, rgba(13, 52, 99, 0.78) 48%, rgba(52, 148, 212, 0.55) 100%),
        url("../images/standing.png") center / cover no-repeat;
    overflow: hidden;
}

.nh-page .nh-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(253, 159, 24, 0.18), transparent 55%);
    pointer-events: none;
}

.nh-page .nh-banner__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 110px 16px 100px;
}

.nh-page .nh-banner__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-gold);
    font-weight: 600;
    margin-bottom: 14px;
}

.nh-page .nh-banner__title {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nh-white);
    line-height: 1.15;
}

.nh-page .nh-banner__title span {
    color: var(--nh-gold);
}

.nh-page .nh-breadcrumb {
    margin-top: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.nh-page .nh-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.25s ease;
}

.nh-page .nh-breadcrumb a:hover {
    color: var(--nh-gold);
}

.nh-page .nh-breadcrumb__sep {
    margin: 0 8px;
    opacity: 0.55;
}

/* Page courante : soulignée en orange */
.nh-page .nh-breadcrumb > span:not(.nh-breadcrumb__sep) {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    color: var(--nh-gold);
    font-weight: 600;
}

.nh-page .nh-breadcrumb > span:not(.nh-breadcrumb__sep)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--nh-gold);
}

/* ---- Story / comparison ---- */
.nh-page .nh-story {
    padding: 90px 0 40px;
}

.nh-page .nh-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.nh-page .nh-compare__card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--nh-navy-deep);
    box-shadow: 0 18px 40px rgba(7, 31, 79, 0.12);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nh-page .nh-compare__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(7, 31, 79, 0.18);
}

.nh-page .nh-compare__card img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.nh-page .nh-compare__card:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.nh-page .nh-compare__label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nh-white);
}

.nh-page .nh-compare__label--plan {
    background: var(--nh-navy);
}

.nh-page .nh-compare__label--standing {
    background: var(--nh-gold);
}

/* ---- Intro + pillars ---- */
.nh-page .nh-intro {
    padding: 56px 0 30px;
}

.nh-page .nh-intro__kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nh-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.nh-page .nh-intro__title {
    margin: 0 0 18px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nh-navy);
    line-height: 1.25;
}

.nh-page .nh-intro__title em {
    font-style: normal;
    color: var(--nh-gold);
}

.nh-page .nh-intro__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--nh-muted);
    max-width: 34em;
}

.nh-page .nh-pillars {
    padding: 10px 0 70px;
}

.nh-page .nh-pillar {
    height: 100%;
    padding: 28px 26px 30px;
    border-top: 3px solid var(--nh-blue);
    background: linear-gradient(180deg, rgba(52, 148, 212, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.nh-page .nh-pillar:hover {
    border-color: var(--nh-gold);
    background: linear-gradient(180deg, rgba(253, 159, 24, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

.nh-page .nh-pillar__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nh-navy);
}

.nh-page .nh-pillar__text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--nh-muted);
}

.nh-page .nh-pillar__text:last-child {
    margin-bottom: 0;
}

/* ---- Timeline ---- */
.nh-page .nh-timeline {
    padding: 70px 0 80px;
    background:
        linear-gradient(180deg, rgba(7, 31, 79, 0.03) 0%, rgba(52, 148, 212, 0.05) 100%);
    border-top: 1px solid var(--nh-line);
    border-bottom: 1px solid var(--nh-line);
}

.nh-page .nh-timeline__head {
    text-align: center;
    margin-bottom: 48px;
}

.nh-page .nh-timeline__head h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nh-navy);
}

.nh-page .nh-timeline__head p {
    margin: 0 auto;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--nh-muted);
}

.nh-page .nh-timeline__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nh-page .nh-timeline__track::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--nh-blue), var(--nh-gold));
    opacity: 0.45;
}

.nh-page .nh-step {
    position: relative;
    text-align: center;
    padding-top: 8px;
}

.nh-page .nh-step__dot {
    width: 18px;
    height: 18px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--nh-white);
    border: 3px solid var(--nh-blue);
    box-shadow: 0 0 0 4px rgba(52, 148, 212, 0.15);
    position: relative;
    z-index: 1;
}

.nh-page .nh-step:nth-child(even) .nh-step__dot {
    border-color: var(--nh-gold);
    box-shadow: 0 0 0 4px rgba(253, 159, 24, 0.18);
}

.nh-page .nh-step__year {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nh-gold);
    margin-bottom: 8px;
}

.nh-page .nh-step__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--nh-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nh-page .nh-step__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--nh-muted);
    padding: 0 6px;
}

/* ---- CTA band ---- */
.nh-page .nh-cta {
    padding: 72px 0 90px;
}

.nh-page .nh-cta__panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    background: linear-gradient(120deg, var(--nh-navy-deep) 0%, var(--nh-navy) 55%, #1a5a8a 100%);
    color: var(--nh-white);
    position: relative;
    overflow: hidden;
}

.nh-page .nh-cta__panel::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(253, 159, 24, 0.2);
    pointer-events: none;
}

.nh-page .nh-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.nh-page .nh-cta__copy h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    /* Le thème force une couleur foncée sur les h2 : on la remet en blanc */
    color: var(--nh-white);
}

.nh-page .nh-cta__copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.nh-page .nh-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nh-page .nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nh-page .nh-btn--gold {
    background: var(--nh-gold);
    color: var(--nh-navy-deep);
}

.nh-page .nh-btn--gold:hover {
    background: var(--nh-gold-soft);
    color: var(--nh-navy-deep);
}

.nh-page .nh-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--nh-white);
}

.nh-page .nh-btn--outline:hover {
    border-color: var(--nh-gold);
    color: var(--nh-gold);
}

/* Outline sur fond clair (formulaires / cartes) — visible au repos, renforcé au survol */
.nh-page .auth-card .nh-btn--outline,
.nh-page .auth-form .nh-btn--outline,
.nh-page .quote-add-line {
    background: #fff;
    border-color: #0D3463;
    border-width: 2px;
    color: #0D3463;
    opacity: 0.85;
}

.nh-page .auth-card .nh-btn--outline:hover,
.nh-page .auth-form .nh-btn--outline:hover,
.nh-page .quote-add-line:hover {
    opacity: 1;
    background: rgba(253, 159, 24, 0.16);
    border-color: var(--nh-gold);
    color: var(--nh-navy);
}

/* ---- Motion ---- */
@media (prefers-reduced-motion: no-preference) {
    .nh-page .nh-banner__title,
    .nh-page .nh-banner__eyebrow,
    .nh-page .nh-breadcrumb {
        animation: nh-fade-up 0.7s ease both;
    }

    .nh-page .nh-banner__eyebrow { animation-delay: 0.05s; }
    .nh-page .nh-banner__title { animation-delay: 0.15s; }
    .nh-page .nh-breadcrumb { animation-delay: 0.28s; }

    .nh-page .nh-compare__card {
        animation: nh-fade-up 0.75s ease both;
    }

    .nh-page .nh-compare__card:nth-child(2) {
        animation-delay: 0.12s;
    }

    .nh-page .nh-step {
        animation: nh-fade-up 0.7s ease both;
    }

    .nh-page .nh-step:nth-child(1) { animation-delay: 0.05s; }
    .nh-page .nh-step:nth-child(2) { animation-delay: 0.15s; }
    .nh-page .nh-step:nth-child(3) { animation-delay: 0.25s; }
    .nh-page .nh-step:nth-child(4) { animation-delay: 0.35s; }
}

@keyframes nh-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .nh-page .nh-compare {
        gap: 18px;
    }

    .nh-page .nh-compare__card img {
        height: 280px;
    }

    .nh-page .nh-timeline__track {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
    }

    .nh-page .nh-timeline__track::before {
        display: none;
    }

    .nh-page .nh-cta__panel {
        padding: 30px 24px;
    }
}

@media (max-width: 767px) {
    .nh-page .nh-banner {
        min-height: 300px;
    }

    .nh-page .nh-banner__inner {
        padding: 76px 14px 68px;
    }

    .nh-page .nh-story {
        padding: 56px 0 20px;
    }

    .nh-page .nh-compare {
        grid-template-columns: 1fr;
    }

    .nh-page .nh-compare__card img {
        height: 240px;
    }

    .nh-page .nh-intro {
        padding: 36px 0 10px;
    }

    .nh-page .nh-intro__text {
        max-width: none;
        margin-bottom: 24px;
    }

    .nh-page .nh-pillar {
        margin-bottom: 16px;
    }

    .nh-page .nh-timeline {
        padding: 52px 0 56px;
    }

    .nh-page .nh-timeline__track {
        grid-template-columns: 1fr;
    }

    .nh-page .nh-cta {
        padding: 48px 0 64px;
    }

    .nh-page .nh-cta__actions {
        width: 100%;
    }

    .nh-page .nh-btn {
        flex: 1 1 auto;
    }
}
