/* Shared visual rhythm for the Animation hub, public guides and Team Building. */
.ee-animation-guide {
    --ee-animation-accent: #c85f18;
    --ee-animation-tint: #fff4e8;
}

.ee-animation-guide--karaoke-blind-test {
    --ee-animation-accent: #aa4c67;
    --ee-animation-tint: #fff1f5;
}

.ee-animation-guide--ambiance-musicale-micros {
    --ee-animation-accent: #2c6f7f;
    --ee-animation-tint: #eef8fa;
}

.ee-animation-guide--escape-box-team-building,
.ee-animation-guide--defi-des-tribus {
    --ee-animation-accent: #24766f;
    --ee-animation-tint: #edf8f6;
}

.ee-animation-guide--tournoi-party-games {
    --ee-animation-accent: #c9563b;
    --ee-animation-tint: #fff2ee;
}

.ee-animation-guide--olympiades {
    --ee-animation-accent: #4f7d43;
    --ee-animation-tint: #f1f8ed;
}

.ee-animation-guide--fort-challenge,
.ee-animation-guide--grand-defi-du-tresor {
    --ee-animation-accent: #a65a1d;
    --ee-animation-tint: #fff4e7;
}

.ee-animation-guide--escape-game-paques {
    --ee-animation-accent: #71578f;
    --ee-animation-tint: #f6f1fa;
}

.ee-animation-guide__hero {
    min-height: 340px;
}

.ee-animation-guide__hero .ee-product-shell {
    padding-block: 38px 44px;
}

.ee-animation-guide__back,
.ee-animation-guide .ee-guide-kicker,
.ee-animation-guide .ee-animation-offer__label {
    color: var(--ee-animation-accent);
}

.ee-animation-guide__content > .ee-guide-section {
    padding-block: 52px;
}

.ee-animation-guide__content > .ee-animation-offers,
.ee-animation-guide__content > .ee-animation-experience-details {
    background: var(--ee-animation-tint);
    box-shadow: 0 0 0 100vmax var(--ee-animation-tint);
    clip-path: inset(0 -100vmax);
}

.ee-animation-guide__content > .ee-guide-ideas {
    background: #edf7f6;
    box-shadow: 0 0 0 100vmax #edf7f6;
    clip-path: inset(0 -100vmax);
}

.ee-animation-guide__content .ee-guide-section h2 {
    max-width: 760px;
    font-size: 32px;
}

.ee-animation-guide__content .ee-guide-facts {
    gap: 10px;
    margin-top: 24px;
}

.ee-animation-guide__content .ee-guide-facts p {
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.84);
}

.ee-animation-guide__content .wp-block-columns.ee-guide-card-grid {
    align-items: stretch;
    margin-top: 24px;
}

.ee-animation-guide__content .ee-guide-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 19px 18px 20px;
    border-top-color: var(--ee-animation-accent);
    box-shadow: 0 5px 16px rgba(18, 59, 93, 0.045);
}

.ee-animation-guide__content .ee-guide-card p:last-child {
    margin-top: auto;
}

.ee-animation-guide__content .ee-guide-benefits .ee-guide-card__number {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 50%;
    color: #fff;
    background: var(--ee-animation-accent);
    font-size: 12px;
}

.ee-animation-guide__content .ee-guide-process .ee-guide-card__number {
    color: #fff;
}

.ee-animation-offers .ee-animation-offer-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
}

.ee-animation-offers .ee-animation-offer {
    flex: 0 1 calc((100% - 42px) / 4);
    min-width: 220px;
    height: auto;
    grid-template-rows: 150px 1fr;
    border-top: 4px solid var(--ee-animation-accent);
    box-shadow: 0 7px 19px rgba(18, 59, 93, 0.06);
}

.ee-animation-offers .ee-animation-offer:nth-child(even) {
    border-top-color: var(--ee-teal);
}

.ee-animation-offers .ee-animation-offer__media {
    height: 150px;
    background: rgba(255, 255, 255, 0.78);
}

.ee-animation-offers .ee-animation-offer__body {
    padding: 16px;
}

.ee-animation-offers .ee-animation-offer h3 {
    font-size: 20px;
}

.ee-animation-offers .ee-animation-offer ul {
    margin-top: 11px;
    padding-top: 10px;
    font-size: 13px;
}

.ee-animation-offers .ee-animation-offer li + li {
    margin-top: 4px;
}

.ee-animation-guide .ee-guide-related__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ee-animation-guide .ee-guide-related__links li {
    min-height: 74px;
    background: #edf5f6;
}

.ee-animation-guide .ee-guide-related__links li:nth-child(4n + 2),
.ee-animation-guide .ee-guide-related__links li:nth-child(4n + 3) {
    border-left-color: var(--ee-teal);
}

.ee-animation-guide__content > .ee-guide-final,
.ee-animations-editorial .ee-entry__content > .ee-guide-final {
    box-sizing: border-box;
    display: grid;
    width: 100vw !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 680px) auto;
    justify-content: center;
    align-items: center;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 48px max(20px, calc((100vw - var(--ee-shell)) / 2)) !important;
    column-gap: 48px;
    border-radius: 0;
}

.ee-animation-guide__content > .ee-guide-final > *,
.ee-animations-editorial .ee-entry__content > .ee-guide-final > * {
    width: 100%;
    max-width: 680px;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.ee-animation-guide__content > .ee-guide-final h2,
.ee-animations-editorial .ee-entry__content > .ee-guide-final h2 {
    grid-column: 1;
    margin-bottom: 12px !important;
}

.ee-animation-guide__content > .ee-guide-final p,
.ee-animations-editorial .ee-entry__content > .ee-guide-final p {
    grid-column: 1;
    margin-bottom: 0 !important;
}

.ee-animation-guide__content > .ee-guide-final .wp-block-buttons,
.ee-animations-editorial .ee-entry__content > .ee-guide-final .wp-block-buttons {
    width: auto;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ee-animations-editorial .ee-entry__content > .ee-animation-magic-band {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 52px max(20px, calc((100vw - var(--ee-shell)) / 2)) !important;
}

.ee-animations-editorial .ee-animation-magic-band > .wp-block-group {
    width: 100%;
    max-width: 850px;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Hub: three explicit families, one visual language. */
body.page-template-page-animations .ee-animations-intro {
    min-height: 480px;
}

body.page-template-page-animations .ee-animations-intro .ee-product-shell {
    padding-block: 58px 64px;
}

body.page-template-page-animations .ee-animations-profiles {
    padding-block: 48px;
}

body.page-template-page-animations .ee-animations-profiles--formats {
    background: #fff;
}

body.page-template-page-animations .ee-animations-profiles--children {
    background: #fff3e7;
}

body.page-template-page-animations .ee-animations-profiles--formats .ee-section-heading > p {
    color: #aa4c38;
}

body.page-template-page-animations .ee-animations-profiles--children .ee-section-heading > p {
    color: #8a561d;
}

body.page-template-page-animations .ee-animations-profiles .ee-profile-grid {
    gap: 14px;
}

body.page-template-page-animations .ee-profile-card {
    border-top-width: 4px;
    box-shadow: 0 6px 18px rgba(18, 59, 93, 0.055);
}

body.page-template-page-animations .ee-animations-profiles--formats .ee-profile-card:nth-child(4n + 2) {
    border-top-color: #aa4c67;
}

body.page-template-page-animations .ee-animations-profiles--formats .ee-profile-card:nth-child(4n + 3) {
    border-top-color: #4f7d43;
}

body.page-template-page-animations .ee-animations-profiles--formats .ee-profile-card:nth-child(4n) {
    border-top-color: #24766f;
}

body.page-template-page-animations .ee-animations-profiles--children .ee-profile-card {
    border-top-color: #a65a1d;
}

body.page-template-page-animations .ee-profile-card__body {
    min-height: 208px;
    padding: 16px;
}

body.page-template-page-animations .ee-profile-card__media {
    height: 142px;
    flex-basis: 142px;
}

body.page-template-page-animations .ee-profile-card__summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (min-width: 981px) {
    body.page-template-page-animations .ee-animations-profiles .ee-profile-grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-profile-card {
        grid-column: auto !important;
        min-width: 0;
    }

    body.page-template-page-animations .ee-animations-profiles--profiles .ee-profile-card {
        flex: 0 1 calc((100% - 56px) / 5);
    }

    body.page-template-page-animations .ee-animations-profiles--formats .ee-profile-card {
        flex: 0 1 calc((100% - 42px) / 4);
    }

    body.page-template-page-animations .ee-animations-profiles--children .ee-profile-grid {
        justify-content: center;
    }

    body.page-template-page-animations .ee-animations-profiles--children .ee-profile-card {
        flex: 0 1 240px;
    }

    body.page-template-page-animations .ee-profile-card__media {
        height: auto;
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Team Building keeps every product, but spends less vertical space. */
.ee-catalogue-guide--entreprise-team-building .ee-guide-section {
    padding-block: 50px;
}

.ee-catalogue-guide--entreprise-team-building .ee-guide-card {
    padding: 18px;
}

.ee-catalogue-guide--entreprise-team-building .ee-guide-catalogue .ee-product-grid {
    gap: 12px;
}

.ee-catalogue-guide--entreprise-team-building .ee-guide-related__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .ee-animation-offers .ee-animation-offer {
        flex-basis: calc((100% - 14px) / 2);
    }

    .ee-animation-guide__content > .ee-guide-final,
    .ee-animations-editorial .ee-entry__content > .ee-guide-final {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 28px;
    }
}

@media (max-width: 620px) {
    .ee-animation-guide__hero {
        min-height: 290px;
    }

    .ee-animation-guide__hero .ee-product-shell {
        padding-block: 30px 34px;
    }

    .ee-animation-guide__content > .ee-guide-section {
        padding-block: 40px;
    }

    .ee-animation-guide__content .ee-guide-section h2 {
        font-size: 28px;
    }

    .ee-animation-guide__content .ee-guide-lead {
        font-size: 16px;
    }

    .ee-animation-guide__content .ee-guide-facts {
        margin-top: 18px;
    }

    .ee-animation-guide__content .ee-guide-card {
        padding: 17px 16px 18px;
    }

    .ee-animation-offers .ee-animation-offer {
        flex-basis: 100%;
        grid-template-rows: 168px 1fr;
    }

    .ee-animation-offers .ee-animation-offer__media {
        height: 168px;
    }

    .ee-animation-guide .ee-guide-related__links,
    .ee-catalogue-guide--entreprise-team-building .ee-guide-related__links {
        grid-template-columns: 1fr;
    }

    .ee-animation-guide__content > .ee-guide-final,
    .ee-animations-editorial .ee-entry__content > .ee-guide-final {
        display: block;
        padding: 36px 20px !important;
    }

    .ee-animation-guide__content > .ee-guide-final .wp-block-buttons,
    .ee-animations-editorial .ee-entry__content > .ee-guide-final .wp-block-buttons {
        width: 100%;
        margin-top: 22px !important;
    }

    .ee-animation-guide__content > .ee-guide-final .wp-block-button,
    .ee-animation-guide__content > .ee-guide-final .wp-block-button__link,
    .ee-animations-editorial .ee-entry__content > .ee-guide-final .wp-block-button,
    .ee-animations-editorial .ee-entry__content > .ee-guide-final .wp-block-button__link {
        width: 100%;
    }

    .ee-animations-editorial .ee-entry__content > .ee-animation-magic-band {
        padding: 40px 20px !important;
    }

    body.page-template-page-animations .ee-animations-intro {
        min-height: 0;
    }

    body.page-template-page-animations .ee-animations-intro .ee-product-shell {
        padding-block: 34px 38px;
    }

    body.page-template-page-animations .ee-animations-intro h1 {
        font-size: 34px;
    }

    body.page-template-page-animations .ee-animations-intro .ee-product-shell > p:not(.ee-animations-eyebrow) {
        font-size: 16px;
        line-height: 1.5;
    }

    body.page-template-page-animations .ee-animations-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 22px;
    }

    body.page-template-page-animations .ee-animations-actions .ee-button {
        min-height: 48px;
        padding-inline: 10px;
        font-size: 13px;
    }

    body.page-template-page-animations .ee-animations-hero-proofs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 25px;
    }

    body.page-template-page-animations .ee-animations-hero-proofs span {
        padding: 11px 8px 0 0;
        font-size: 11px;
    }

    body.page-template-page-animations .ee-animations-hero-proofs strong {
        font-size: 13px;
    }

    body.page-template-page-animations .ee-animations-profiles {
        padding-block: 36px;
    }

    body.page-template-page-animations .ee-animations-profiles .ee-section-heading {
        margin-bottom: 18px;
    }

    body.page-template-page-animations .ee-profile-card__target {
        min-height: 168px;
        grid-template-columns: 102px minmax(0, 1fr);
    }

    body.page-template-page-animations .ee-profile-card__media {
        width: 102px;
        min-height: 164px;
    }

    body.page-template-page-animations .ee-profile-card__body {
        min-height: 0;
        padding: 12px;
    }

    body.page-template-page-animations .ee-profile-card__title {
        font-size: 17px;
    }

    body.page-template-page-animations .ee-profile-card__summary {
        font-size: 12.5px;
        -webkit-line-clamp: 3;
    }

    .ee-catalogue-guide--entreprise-team-building .ee-guide-section {
        padding-block: 40px;
    }

    .ee-catalogue-guide--entreprise-team-building .ee-product-card {
        min-height: 180px;
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .ee-catalogue-guide--entreprise-team-building .ee-product-card__media {
        width: 108px;
        min-height: 180px;
    }

    .ee-catalogue-guide--entreprise-team-building .ee-product-card__body {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ee-animation-guide *,
    .ee-animations-page * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
