/*
Theme Name: Aliop
Theme URI: https://aliop.fr/
Author: WP Corentin Lecoeur x Media Crossing
Author URI: https://www.mediacrossing.fr/
Description: Theme for the Aliop website
Requires at least: 6.7
Requires PHP: 7.2
Version: 1.0.10
Text Domain: aliop
*/

/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
    transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
    text-decoration-thickness: 1px;
}

b,
strong,
th {
    font-weight: var(--wp--custom--font-weight--medium);
}

mark {
    background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
    background-position: 0 85%;
    background-repeat: repeat-x;
    background-size: 100% 15%;
}

/* -- Forms -- */

input,
select,
textarea {
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--contrast);
    border-radius: 0;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--wp--custom--font-weight--light);
    line-height: var(--wp--custom--line-height--body);
    padding: 10px 20px;
    width: 100%;
}

input:focus,
textarea:focus {
    background-color: var(--wp--preset--color--neutral);
    outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
    width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
    -webkit-appearance: none;
}

::-moz-placeholder {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.5;
}

::placeholder {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.animate-bounce {
    animation: bounce 1s ease forwards;
    transform-origin: center bottom;
}

@keyframes pulse {
    0% {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

.animate-pulse {
    animation: pulse 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease both;
}

.header {
    padding: 1.25rem 0;
    background: white;
}

.header__inner {
        margin: 0 auto;
        max-width: var(--wp--style--global--wide-size);
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2.5rem;
    }

@media (min-width: 1280px) {

.header__inner {
            padding: 0;
            justify-content: flex-start
    }
        }

.header__logo img {
            height: 40px;
            width: auto;
            -o-object-fit: contain;
               object-fit: contain;
        }

@media (min-width: 1280px) {

.header__logo img {
                height: 50px
        }
            }

.header__menu {
        transition: transform 300ms ease-in-out;
        transform: translateX(100%);
    }

@media (min-width: 1280px) {

.header__menu {
            display: block;
            flex: 1;
            transform: translateX(0)
    }
        }

@media (max-width: 1279px) {

.header__menu {
            position: fixed;
            left: 0;
            width: 100%;
            background-color: var(--wp--preset--color--white);
            z-index: 50;
            top: 85px;
            height: calc(100vh - 85px)
    }
        }

@media (max-width: 1279px) {

body.admin-bar .header__menu {
                top: calc(85px + var(--wp-admin--admin-bar--height, 0px));
                height: calc(100vh - (85px + var(--wp-admin--admin-bar--height, 0px)))
        }
            }

.header__menu--active {
            transform: translateX(0);
        }

.header__menu-list {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            list-style: none;
        }

@media (max-width: 1279px) {

.header__menu-list {
                flex-direction: column;
                gap: 1.25rem;
                height: 100%;
                justify-content: flex-start;
                align-items: stretch;
                padding: 1rem;
                overflow-y: auto
        }
            }

.header__menu-list a {
                text-decoration: none;
                font-weight: 700;
                transition: color 150ms ease-in;
                white-space: nowrap;
                color: var(--wp--preset--color--primary);
            }

.header__menu-list a:hover {
                    color: var(--wp--preset--color--secondary);
                }

@media (max-width: 1279px) {

.header__menu-list a {
                    display: block;
                    text-align: center
            }
                }

.header__burger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        padding: 0.5rem;
        background: none;
        border: none;
    }

@media (min-width: 1280px) {

.header__burger {
            display: none
    }
        }

.header__burger-line {
            width: 100%;
            height: 2px;
            background-color: var(--wp--preset--color--primary);
            transition: all 300ms;
            transform-origin: center;
        }

.header__burger__label {
            text-transform: uppercase;
            font-size: 0.75rem;
            line-height: 1;
        }

.header__burger__icon {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            width: 1.5rem;
            height: 1.5rem;
        }

.header__burger--active .header__burger-line:nth-child(1) {
                transform: rotate(45deg) translate(6px, 6px);
            }

.header__burger--active .header__burger-line:nth-child(2) {
                opacity: 0;
            }

.header__burger--active .header__burger-line:nth-child(3) {
                transform: rotate(-45deg) translate(6px, -6px);
            }

.footer__logo {
        display: flex;
        justify-content: center;
        padding: 2rem 0;
    }

.footer__logo img {
            height: 40px;
            width: auto;
            -o-object-fit: contain;
               object-fit: contain;
        }

.footer__menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 0;
        background: var(--wp--preset--color--light-grey);
    }

@media screen and (min-width: 768px) {

.footer__menu {
            flex-direction: row
    }
        }

.footer__menu-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            margin: 0;
            padding: 0;
        }

.footer__menu-list li a {
                    text-transform: uppercase;
                    text-decoration: none;
                    font-size: 0.75rem;
                    line-height: 1;
                    transition: color 150ms ease-in;
                    font-weight: 500;
                    color: var(--wp--preset--color--primary);
                }

.footer__menu-list li a:hover {
                        color: var(--wp--preset--color--secondary);
                    }

@media screen and (min-width: 768px) {

.footer__menu-list {
                flex-direction: row
        }
            }

.footer__social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

@media screen and (min-width: 768px) {

.footer__social-links {
            flex-direction: row
    }
        }

.footer__social-links a {
            color: var(--wp--preset--color--primary);
            transition: color 150ms ease-in;
        }

.footer__social-links a:hover {
                color: var(--wp--preset--color--secondary);
            }

/* Blocks */

.solutions-grid {
    gap: 3.5rem!important;
    flex-direction: column;
}

@media screen and (min-width: 1024px) {

.solutions-grid {
        flex-direction: row
}
    }

.is-highlight,
.is-highlight-small {
    position: relative;
    white-space: nowrap;
}

.is-highlight::after,
.is-highlight-small::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 100%;
    height: 12px;

    background: linear-gradient(to right, #e41d4b 0%, #e41d4b 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;

    -webkit-mask: url("../assets/images/underline.svg") no-repeat left center;
    -webkit-mask-size: 100% 100%;
    -webkit-mask: url("../assets/images/underline.svg") no-repeat left center;
            mask: url("../assets/images/underline.svg") no-repeat left center;
    mask-size: 100% 100%;
}

.is-highlight.is-animated::after {
    animation: underline-reveal 1.5s ease forwards;
}

@keyframes underline-reveal {
    to {
        background-size: 100% 100%;
    }
}

.is-highlight-small::after {
    width: 80%;
    left: 10%;
    bottom: -8px;
}

.no-margin {
    margin: 0;
}

.is-hidden {
    display: none;
}
