/*
 * Page "Notre histoire" — Inkwell
 */

.histoire-hero-section {
    min-height:480px;
    display:flex;
    align-items:center;
    padding-bottom:64px;
    overflow:visible;
}

.histoire-hero__contenu {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.histoire-hero__contenu .section-compte__badge {
    margin-bottom: 28px;
}

.histoire-titre {
    font-size: 2.6rem;
    color: var(--couleur-anthracite);
    line-height: 1.15;
}

.histoire-corps-section {
    padding-top: 72px;
    padding-bottom: 96px;
}

.histoire-corps {
    max-width: 720px;
}

.histoire-soustitre {
    font-size: 1.5rem;
    color: var(--couleur-anthracite);
    margin: 72px 0 24px;
}

.histoire-corps > .histoire-soustitre:first-child {
    margin-top: 0;
}

.histoire-recit p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(38, 53, 60, 0.8);
    margin-bottom: 22px;
}

.histoire-recit p:last-child {
    margin-bottom: 0;
}

/* --- Frise chronologique --- */

.histoire-frise {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid rgba(255, 103, 106, 0.25);
}

.histoire-frise__etape {
    position: relative;
    padding-bottom: 40px;
}

.histoire-frise__etape:last-child {
    padding-bottom: 0;
}

.histoire-frise__etape::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--couleur-corail);
    border: 3px solid var(--couleur-beige);
}

.histoire-frise__etape--actuelle::before {
    background-color: var(--couleur-vert-emeraude);
    width: 16px;
    height: 16px;
    left: -40px;
    top: 2px;
}

.histoire-frise__date {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--couleur-corail);
    margin-bottom: 8px;
}

.histoire-frise__titre {
    font-size: 1.08rem;
    color: var(--couleur-anthracite);
    margin-bottom: 8px;
}

.histoire-frise__texte {
    font-size: 0.94rem;
    line-height: 1.7;
    color: rgba(38, 53, 60, 0.7);
    max-width: 520px;
}

/* --- Mission (grille de cartes) --- */

.histoire-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.histoire-mission__carte {
    background-color: #ffffff;
    border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-carte);
    padding: 28px 24px;
}

.histoire-mission__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 103, 106, 0.1);
    color: var(--couleur-corail);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.histoire-mission__carte h3 {
    font-size: 1.02rem;
    color: var(--couleur-anthracite);
    margin-bottom: 10px;
}

.histoire-mission__carte p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(38, 53, 60, 0.65);
}

/* --- Citation mise en avant --- */

.histoire-citation {
    text-align: center;
    padding: 48px 32px;
    margin: 72px 0;
    background-color: rgba(255, 103, 106, 0.06);
    border-radius: var(--rayon-carte);
}

.histoire-citation__icone {
    font-size: 1.7rem;
    color: rgba(255, 103, 106, 0.4);
    margin-bottom: 20px;
}

.histoire-citation__texte {
    font-family: var(--police-exergue);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.6;
    color: var(--couleur-anthracite);
    max-width: 560px;
    margin: 0 auto;
}

/* --- CTA final --- */

.histoire-cta {
    text-align: center;
    margin-top: 72px;
}

.histoire-cta .histoire-soustitre {
    margin-bottom: 28px;
}

.histoire-cta__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* ==========================================================================
   ANIMATIONS — apparition progressive au défilement
   ========================================================================== */

.histoire-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.histoire-anim--visible {
    opacity: 1;
    transform: translateY(0);
}

.histoire-hero__contenu > * {
    animation: histoire-hero-apparition 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.histoire-hero__contenu > *:nth-child(1) { animation-delay: 0.05s; }
.histoire-hero__contenu > *:nth-child(2) { animation-delay: 0.15s; }

@keyframes histoire-hero-apparition {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Légère mise en avant du point de la frise au moment où son étape apparaît */
.histoire-frise__etape.histoire-anim--visible::before {
    animation: histoire-point-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes histoire-point-pulse {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .histoire-corps-section {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .histoire-titre {
        font-size: 1.9rem;
    }

    .histoire-soustitre {
        margin-top: 48px;
    }

    .histoire-mission {
        grid-template-columns: 1fr;
    }

    .histoire-citation {
        margin: 48px 0;
        padding: 36px 24px;
    }

    .histoire-cta {
        margin-top: 48px;
    }

    .histoire-cta__actions {
        flex-direction: column;
    }

    .histoire-citation__texte {
        font-size:1.15rem;
    }
}