body {
    background-color: rgb(243, 243, 243)!important;
}

.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wp-block-columns {
    gap: 4rem!important;
}

@media screen and (max-width: 768px) {
    .wp-block-columns {
        gap: 1rem!important;
    }
}

p a {
    color: var(--color-primary);
}

p a:hover {
    color: var(--color-primary)!important;
    text-decoration: underline!important;
}

.animated-line {
    position: absolute;
    top: 57%;
    left: 83%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.animated-line path {
    stroke-dasharray: 500;
    /* Longueur du trait */
    stroke-dashoffset: 500;
    /* Cache complètement le trait */
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 500;
        /* Début : caché */
    }
    to {
        stroke-dashoffset: 0;
        /* Fin : complètement dessiné */
    }
}

#highlight {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

#highlight.bg-animation::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -2%;
    width: 0;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color, --color-primary);
    /* couleur du fond */
    animation: bgAnimation 0.5s forwards;
    border-radius: 15px;
}

@keyframes bgAnimation {
    0% {
        width: 0;
    }
    100% {
        width: 104%;
    }
}


/*HOME*/

.text-hover-effect {
    display: inline-block;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    text-align: center;
    font-size: 120px!important;
    line-height: 130px;
    letter-spacing: -5px;
    color: var(--color-primary);
}

.text-hover-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-secondary);
    /* Couleur sous la souris */
    clip-path: circle(100px at var(--x, 0px) var(--y, 0px));
    pointer-events: none;
    transition: clip-path 0.1s ease-out;
    /* Animation fluide */
}

.parallax-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-top-right-radius: 1000px;
    border-bottom-right-radius: 1000px;
}

.parallax-container .text {
    position: absolute;
    width: 65%;
    height: 100%;
    display: grid;
    padding: 0 100px;
    gap: 50px;
    align-content: center;
}

.parallax {
    position: absolute;
    width: 100%;
    height: 900px;
    background-size: cover;
    background-position: center;
}

.parallax-container p {
    position: relative;
    z-index: 30;
    color: var(--color-primary);
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 15px!important;
}

.parallax-container .title {
    font-size: 40px !important;
    line-height: 50px !important;
    font-weight: 900;
}

.chiffres {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.chiffres p {
    display: grid;
    gap: 30px;
    text-align: center;
    font-size: 18px!important;
}

.chiffres span{
    font-size: 50px!important;
    font-weight: bold;
}

.foreground {
    /*background-image: url("/wp-content/uploads/2025/02/image-section-accueil.png");*/
    background-image: url("/wp-content/uploads/2025/02/truck-logistics-operation-dusk-1-scaled.jpg");
    /* Image avec fond transparent */
    background-attachment: fixed;
    transform: translateY(0);
    width: 40%;
    right: 0;
}

.logo-gp img {
    aspect-ratio: auto!important;
    object-fit: contain!important;
}

.band-logo .slick-track {
    display: flex;
    align-items: center;
    gap: 30px;
}

.band-logo .slick-track img {
    aspect-ratio: auto !important;
    width: 200px !important;
    max-height: 120px !important;
    object-fit: contain !important;
}

.b2b-logo img {
    width: 200px!important;
}

.doliprane {
    max-width: 1140px!important;
    margin: auto;
}


/*FORM*/

form label,
form input,
form textarea {
    width: 100%;
}

form input,
form textarea {
    padding: 10px;
}

form label {
    margin-bottom: 1rem;
}

.wpcf7-spinner {
    display: none;
}

.animation-link:hover,
.animation-link:hover p,
.animation-link:hover a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--color-secondary);
}

.banner-page::before {
    content: "";
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 248px;
    background-color: var(--color-primary);
}

#map-transporteur {
    z-index: 12;
    height: 450px;
    width: 100%;
    border-radius: 25px;
}

#map-transporteur .title {
    font-size: 20px;
    font-weight: bold;
}

#map-transporteur p {
    font-family: var(--font-body)!important;
    margin: 0!important
}

.custom-div-icon {
    text-align: center;
    line-height: 40px;
}

.custom-div-icon p {
    font-size: 20px;
}

#transporteurs {
    display: grid;
    gap: 10px;
    height: 300px;
    overflow-y: scroll;
}

#transporteurs li {
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    margin-right: 15px;
    background: var(--color-light);
}

#transporteurs li .adresse {
    font-size: 14px;
    font-style: italic;
}

#transporteurs li:hover {
    background: var(--color-gray);
}

.section-story:hover .section-rotate-date p {
    color: var(--color-primary)!important;
}

.section-story img {
    transition: border-radius 0.4s ease;
}

.section-story:hover img {
    border-radius: 125px!important;
}

.section-rotate-date {
    width: 150px!important;
}

.section-rotate-date p {
    transform: rotate(-90deg);
    font-size: 140px!important;
    transition: color 0.4s ease;
}

.card-inte .wp-block-bary-theme-image.image-block {
    height: auto!important;
}

.card-inte img {
    aspect-ratio: auto!important;
    height: 200px!important;
    object-fit: contain!important;
}

@media screen and (max-width: 1360px) {
    .doliprane {
        margin: 0 10px;
        width: auto !important;
    }
}

@media screen and (max-width: 1200px) {
    .banner-page::before {
        height: 166px;
    }
}

@media screen and (max-width: 768px) {
    .map-transport .wp-block-bary-theme-section {
        width: 100%!important;
    }

    .text-hover-effect {
        font-size: 70px !important;
        line-height: 80px;
        letter-spacing: -2px;
    }

    .parallax-container {
        height: auto;
        border-radius: 0;
    }
    
    .parallax {
        height: 200px;
        width: 100%;
        top: 50px;
    }

    .foreground {
        height: 200px!important;
        transform: none !important;
    }

    .parallax-container .text {
        position: relative;
        padding: 0;
        width: 100%;
        margin-top: 280px;
        padding: 0 20px;
        gap: 40px;
    }

    .parallax-container .title {
        font-size: 25px !important;
        line-height: 35px !important;
    }
    
    .chiffres {
        display: grid;
        gap: 20px;
    }
    
    .chiffres p {
        gap: 15px;
        font-size: 16px!important;
    }

    .parallax-container p {
        font-size: 18px;
    }

    .logo-gp .container-fluid {
        width: 60%;
    }

    .card-list .container-fluid{
        gap: 30px!important;
    }
    
    .section-rotate-date {
        width: auto !important;
    }

    .section-rotate-date p {
        transform: none;
        font-size: 140px!important;
        line-height: 150px!important;
    }
}

@media screen and (max-width: 577px) {
    .banner-page::before {
        height: 188px;
    }
}