.home-history {
    /* background: radial-gradient(ellipse at 12% 80%, #e9dfce55, transparent 45%), repeating-linear-gradient(115deg, #faf8f4 0, #faf8f4 2px, #f8f6f2 2px, #f8f6f2 4px); */
    padding-top: 30px;
    color: #23231f;
     background-image: url('../images/bg_histoire_asta.png');
}

.history-wrap {
    width: calc(100% - 110px);
    max-width: 1260px;
    margin: auto
}

.history-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto 44px;
    position: relative
}

.history-timeline:before {
    content: '';
    position: absolute;
    height: 2px;
    background: #c9c2b7;
    top: 45px;
    left: 12.5%;
    right: 12.5%
}

.history-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    padding: 0 8px;
    color: #282925
}

.history-year {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 3px solid #fff;
    border-radius: 50%;
    outline: 1px solid #a99f91;
    background: radial-gradient(at 35% 25%, #63513e, #302a23);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 2px 8px #43332222;
    transition: background .2s, box-shadow .2s
}

.history-tab[aria-selected=true] .history-year {
    background: radial-gradient(at 35% 25%, #d7b676, #b9873f);
    outline-color: #c89f65;
    box-shadow: 0 2px 16px #bb8a4544
}

.history-tab:hover .history-year {
    box-shadow: 0 0 0 5px #c7975525
}

.history-tab>strong {
    font-size: 16px;
    margin-top: 13px
}

.history-label {
    font-size: 14px;
    line-height: 1.35;
    margin-top: 3px
}

.history-carousel {
    position: relative
}

.history-slide {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 405px;
    animation: history-reveal .35s ease
}

.history-slide[hidden] {
    display: none
}

.history-visual {
    position: relative;
    padding-bottom: 28px;
    min-width: 0
}

.history-photo {
    display: block;
    width: 100%;
    height: 365px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 15px
}

.history-tea {
    background: url('../images/asta/home-univers-panels.png') 25% center/500% 100%
}

.history-detail {
    position: absolute;
    bottom: 0;
    left: 31%;
    width: 35%;
    height: 145px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 13px;
    box-shadow: 0 6px 20px #33251912
}

.history-date-card {
    position: absolute;
    left: -15px;
    bottom: 18px;
    padding: 20px 24px;
    width: 185px;
    background: #fffdfaef;
    border-radius: 10px;
    box-shadow: 0 10px 30px #4c362019
}

.history-date-card>strong {
    font: 600 34px/1.1 'Playfair Display', Georgia, serif
}

.history-date-card>span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px
}

.history-date-card i,
.history-quote-rule,
.history-stats i {
    display: block;
    width: 34px;
    height: 3px;
    background: #ae813d;
    margin-top: 18px
}

.history-copy {
    padding: 0 5px 20px 0
}

.history-eyebrow {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #b88b48;
    font-size: 19px;
    letter-spacing: 1px;
    font-weight: 700
}

.history-eyebrow span {
    width: 32px;
    height: 2px;
    background: #cba365
}

.history-copy h2 {
    font: 600 40px/1.2 'Playfair Display', Georgia, serif;
    margin: 4px 0
}

.history-copy h3 {
    font: 600 28px/1.3 'Playfair Display', Georgia, serif;
    color: #88602f;
    margin-bottom: 20px
}

.history-description {
    font-size: 14px;
    line-height: 1.65;
    color: #56534d
}

.history-copy blockquote {
    position: relative;
    font: 32px/1.1 'Allura', cursive;
    color: #6b665f;
    margin: 26px 0 0 36px;
    max-width: 350px
}

.history-copy blockquote>span {
    font: 600 46px/1 Georgia, serif;
    color: #91652e
}

.history-copy blockquote>span:first-child {
    position: absolute;
    left: -34px;
    top: -5px
}

.history-copy blockquote>span:last-child {
    vertical-align: middle;
    margin-left: 5px
}

.history-quote-rule {
    margin-left: 36px;
    margin-top: 13px;
    width: 46px
}

.history-arrow {
    position: absolute;
    top: 43%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    height: 42px;
    width: 42px;
    background: white;
    color: #4c504d;
    box-shadow: 0 2px 8px #00000008;
    font: 32px/1 Arial;
    transition: background .2s, color .2s
}

.history-arrow:hover {
    background: #b88b48;
    color: #fff
}

.history-prev {
    left: -51px
}

.history-next {
    right: -51px
}

.history-dots {
    display: flex;
    justify-content: center;
    gap: 13px;
    padding: 15px 0 26px
}

.history-dots button {
    padding: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d4d1cb
}

.history-dots button[aria-pressed=true] {
    background: #bb8b42
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 34px max(25px, calc((100% - 1260px)/2));
    background: #ffffff66
}

.history-stats>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    text-align: center
}

.history-stats>div+div {
    border-left: 1px solid #dad3ca
}

.history-stats strong {
    font-size: 36px;
    font-weight: 700;
    color: #795023;
    line-height: 1.2
}

.history-stats span {
    font-size: 14px;
    margin-top: 8px
}

.history-stats i {
    margin-top: 15px
}

@keyframes history-reveal {
    from {
        opacity: .3;
        transform: translateX(9px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@media(max-width:900px) {
    .history-slide {
        gap: 30px;
        grid-template-columns: 1fr 1fr
    }

    .history-photo {
        height: 340px
    }

    .history-copy h3 {
        font-size: 24px
    }

    .history-copy h2 {
        font-size: 34px
    }

    .history-date-card {
        width: 155px;
        padding: 18px
    }

    .history-description {
        font-size: 13px
    }

    .history-copy blockquote {
        font-size: 27px
    }
}

@media(max-width:640px) {
    .home-history {
        padding-top: 25px
    }

    .history-wrap {
        width: calc(100% - 36px)
    }

    .history-timeline {
        margin-bottom: 28px;
        gap: 0
    }

    .history-timeline:before {
        top: 28px
    }

    .history-year {
        width: 54px;
        height: 54px;
        font-size: 15px;
        border-width: 2px
    }

    .history-tab {
        padding: 0 3px
    }

    .history-tab>strong {
        font-size: 11px;
        margin-top: 10px
    }

    .history-label {
        font-size: 10px
    }

    .history-slide {
        grid-template-columns: 1fr;
        gap: 23px;
        min-height: 0
    }

    .history-photo {
        height: 240px
    }

    .history-detail {
        height: 106px;
        left: 40%;
        width: 36%
    }

    .history-date-card {
        left: 0;
        bottom: 12px;
        width: 153px;
        padding: 15px 19px
    }

    .history-date-card>strong {
        font-size: 28px
    }

    .history-date-card>span {
        font-size: 12px
    }

    .history-visual {
        padding-bottom: 25px
    }

    .history-copy {
        padding: 0 8px 10px;
        min-height: 325px
    }

    .history-copy h2 {
        font-size: 34px
    }

    .history-copy h3 {
        font-size: 24px;
        margin-bottom: 14px
    }

    .history-description {
        font-size: 14px
    }

    .history-copy blockquote {
        font-size: 29px;
        max-width: 270px
    }

    .history-eyebrow {
        font-size: 16px
    }

    .history-arrow {
        top: 102px;
        width: 34px;
        height: 34px;
        font-size: 27px
    }

    .history-prev {
        left: -9px
    }

    .history-next {
        right: -9px
    }

    .history-dots {
        padding: 6px 0 24px
    }

    .history-stats {
        grid-template-columns: 1fr 1fr;
        gap: 25px 0;
        padding: 26px 16px
    }

    .history-stats>div {
        padding: 0 10px
    }

    .history-stats>div:nth-child(3) {
        border-left: 0
    }

    .history-stats strong {
        font-size: 30px
    }

    .history-stats span {
        font-size: 12px
    }
}

@media(prefers-reduced-motion:reduce) {
    .history-slide {
        animation: none
    }

    .history-year,
    .history-arrow {
        transition: none
    }
}