/* AOC Home Presence — v1.2.1 */

.aoc-home-presence,
.aoc-home-presence *,
.aoc-home-presence *::before,
.aoc-home-presence *::after {
    box-sizing: border-box;
}

.aoc-home-presence {
    width: 100%;
}

/*
 * FLEX plutôt que GRID :
 * la largeur choisie dans l'admin est réellement respectée,
 * même en tenant compte de l'espace entre les deux colonnes.
 */
.aoc-home-presence__layout {
    --aoc-visual-width: 60%;
    --aoc-gap: 46px;

    display: flex;
    gap: var(--aoc-gap);
    align-items: stretch;
    width: 100%;
}

.aoc-home-presence__visual {
    --aoc-presence-image: none;
    --aoc-image-size: contain;

    position: relative;

    flex: 0 0 calc(var(--aoc-visual-width) - (var(--aoc-gap) / 2));
    min-width: 0;
    min-height: 540px;

    overflow: hidden;

    border-radius: 22px;
    border: 1px solid rgba(0,0,0,.05);

    background-color: #f3f0eb;
    background-image:
        var(--aoc-presence-image),
        linear-gradient(150deg, #a1937e 0%, #746b5f 45%, #3b3733 100%);
    background-size:
        var(--aoc-image-size),
        cover;
    background-position:
        center center,
        center center;
    background-repeat:
        no-repeat,
        no-repeat;

    box-shadow: 0 14px 36px rgba(0,0,0,.08);

    transform: translateZ(0);
}

.aoc-home-presence__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 0 10px;
}

.aoc-home-presence__visual.has-image {
    transition:
        transform .55s cubic-bezier(.2,.7,.2,1),
        box-shadow .35s ease;
}

.aoc-home-presence__visual.has-image:hover {
    transform: translateY(-4px) scale(1.006);
    box-shadow: 0 22px 48px rgba(0,0,0,.11);
}

.aoc-home-presence__visual-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.00) 0%,
            rgba(0,0,0,.04) 42%,
            rgba(0,0,0,.62) 100%
        );
}

.aoc-home-presence__visual-content {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 36px;

    color: #fff;
}

.aoc-home-presence__eyebrow {
    display: inline-block;
    margin-bottom: 15px;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,.84);
}

.aoc-home-presence__big-number {
    margin: 0;

    font-size: 90px;
    line-height: .82;
    font-weight: 700;
    letter-spacing: -5px;

    color: #fff;
}

.aoc-home-presence__big-label {
    margin: 8px 0 19px;

    font-size: 26px;
    line-height: 1;
    font-weight: 700;

    color: #fff;
}

.aoc-home-presence__visual-content p {
    max-width: 430px;
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: rgba(255,255,255,.92);
}

.aoc-home-presence__kicker {
    margin: 0 0 16px !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 2.3px !important;
    text-transform: uppercase !important;

    color: #a51c30 !important;
}

.aoc-home-presence__content h2 {
    max-width: 720px;
    margin: 0 0 22px !important;

    font-size: 43px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
    text-transform: none !important;

    color: #171717 !important;
}

.aoc-home-presence__lead {
    max-width: 720px;
    margin: 0 0 30px !important;

    font-size: 17px !important;
    line-height: 1.7 !important;

    color: #666 !important;
}

.aoc-home-presence__countries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 30px;
}

.aoc-home-presence__country {
    display: flex;
    align-items: center;

    min-height: 43px;
    padding: 9px 12px;

    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.065);

    background: #fff;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    color: #333;

    box-shadow: 0 5px 15px rgba(0,0,0,.025);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.aoc-home-presence__country::before {
    content: "";
    flex: 0 0 auto;

    width: 6px;
    height: 6px;
    margin-right: 9px;

    border-radius: 50%;

    background: #a51c30;

    transition: transform .22s ease;
}

.aoc-home-presence__country:hover {
    transform: translateY(-2px);
    border-color: rgba(165,28,48,.18);
    box-shadow: 0 8px 20px rgba(0,0,0,.055);
}

.aoc-home-presence__country:hover::before {
    transform: scale(1.4);
}

.aoc-home-presence__history {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;

    max-width: 690px;

    margin: 0 0 27px;
    padding: 17px 19px;

    border-radius: 14px;

    background: #f5f2ed;
}

.aoc-home-presence__history-year {
    font-size: 23px;
    line-height: 1;
    font-weight: 700;

    color: #a51c30;
}

.aoc-home-presence__history > span:last-child {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
}

.aoc-home-presence__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 4px;

    border-bottom: 1px solid rgba(165,28,48,.35);

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    color: #a51c30 !important;
    text-decoration: none !important;
}

.aoc-home-presence__cta span {
    transition: transform .2s ease;
}

.aoc-home-presence__cta:hover span {
    transform: translateX(4px);
}

/* Entrées discrètes */
.aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__visual,
.aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__content {
    opacity: 0;
    transform: translateY(22px);
}

.aoc-home-presence--animate .aoc-home-presence__visual,
.aoc-home-presence--animate .aoc-home-presence__content {
    transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.2,.7,.2,1);
}

.aoc-home-presence--animate.is-visible .aoc-home-presence__content {
    transition-delay: .08s;
}

.aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__country {
    opacity: 0;
    transform: translateY(10px);
}

.aoc-home-presence--animate.is-visible .aoc-home-presence__country {
    animation: aocCountryIn .42s both;
    animation-delay: calc(.16s + (var(--aoc-country-index) * 35ms));
}

@keyframes aocCountryIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On ne force plus 50/50 à 1050px :
   le réglage de largeur reste actif jusqu'au vrai mode tablette. */
@media (max-width: 900px) {
    .aoc-home-presence__layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .aoc-home-presence__visual {
        min-height: 430px;
        border-radius: 18px;
    }

    .aoc-home-presence__content {
        padding: 0;
    }

    .aoc-home-presence__content h2 {
        font-size: 32px !important;
    }

    .aoc-home-presence__countries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .aoc-home-presence__visual {
        min-height: 365px;
    }

    .aoc-home-presence__visual-content {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .aoc-home-presence__big-number {
        font-size: 72px;
    }

    .aoc-home-presence__countries {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aoc-home-presence *,
    .aoc-home-presence *::before,
    .aoc-home-presence *::after {
        animation: none !important;
        transition: none !important;
    }

    .aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__visual,
    .aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__content,
    .aoc-home-presence--animate.aoc-animation-ready:not(.is-visible) .aoc-home-presence__country {
        opacity: 1;
        transform: none;
    }
}
