/* Celtiis History Widget - "L'histoire de Celtiis" */

.celtiis-history {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 36px;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.celtiis-history__top {
    position: relative;
    z-index: 2;
}

/* Intro : titre (gauche) + description (droite) ─────────────── */
.celtiis-history__intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.celtiis-history__title {
    margin: 0;
    font-family: 'Gotham', sans-serif;
    font-size: clamp(26px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--celtiis-color-primary, #1D3D70);
}

.celtiis-history__title-prefix,
.celtiis-history__title-highlight {
    display: inline;
}

.celtiis-history__title-highlight {
    color: #8DC63F;
}

.celtiis-history__description {
    margin: 0;
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--celtiis-color-muted, #54627F);
}

/* Vidéo (chevauche la bande verte) */
.celtiis-history__video-card {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 450px;
    aspect-ratio: 16 / 8;
    margin-bottom: -140px;
    overflow: hidden;
    border-radius: 28px;
    background: #0E1B36;
    box-shadow: 0 16px 40px rgba(29, 61, 112, 0.15);
}

.celtiis-history__video,
.celtiis-history__video-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.celtiis-history__video {
    background: #0E1B36;
}

.celtiis-history__video-card:hover .celtiis-history__video-poster {
    transform: scale(1.03);
}

.celtiis-history__video-card.is-playing .celtiis-history__video-poster,
.celtiis-history__video-card.is-playing .celtiis-history__video-play {
    opacity: 0;
    pointer-events: none;
}

.celtiis-history__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 80px;
    height: 80px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%3E%0A%3Cpath%20d%3D%22M50%200C77.6142%200%20100%2022.3858%20100%2050C100%2077.6142%2077.6142%20100%2050%20100C22.3858%20100%200%2077.6142%200%2050C0%2022.3858%2022.3858%200%2050%200ZM43.5%2033.5459C41.5%2032.3912%2039%2033.8342%2039%2036.1436V63.8564C39%2066.1658%2041.5%2067.6088%2043.5%2066.4541L67.5%2052.5977C69.4998%2051.4429%2069.4998%2048.5571%2067.5%2047.4023L43.5%2033.5459Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E") center / 80px 80px no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.celtiis-history__video-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.celtiis-history__panel {
    position: relative;
    z-index: 1;
    padding-top: 210px;
    padding-bottom: 64px;
    background-color: #8DC63F;
    border-radius: 100px 100px 0 0;
}

.celtiis-history__panel-inner {
    position: relative;
    z-index: 1;
}

/* Statistiques : 4 colonnes */
.celtiis-history__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 32px;
}

.celtiis-history__stat-value {
    margin-bottom: 6px;
    font-family: 'Gotham', sans-serif;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--celtiis-color-primary, #1D3D70);
}

.celtiis-history__stat-label {
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--celtiis-color-primary, #1D3D70);
}

/* Carte (optionnelle, sous les stats) */
.celtiis-history__map {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.celtiis-history__map-image {
    display: block;
    width: min(100%, 420px) !important;
    height: auto !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .celtiis-history__intro {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 32px;
    }

    .celtiis-history__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }
}

@media (max-width: 767px) {
    .celtiis-history {
        padding-top: 12px;
    }

    .celtiis-history__video-card {
        aspect-ratio: 16 / 10;
        margin-bottom: -80px;
        border-radius: 20px;
        height: 300px;
    }

    .celtiis-history__video-play {
        width: 64px;
        height: 64px;
        background-size: 64px 64px;
        top: 50%;
    }

    .celtiis-history__panel {
        padding-top: 120px;
        padding-bottom: 48px;
        border-radius: 28px 28px 0 0;
    }

    .celtiis-history__description {
        font-size: 15px;
    }

    .celtiis-history__stat-label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .celtiis-history__stats {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }

    .celtiis-history__video-card {
        border-radius: 16px;
    }
}
