﻿.grb_comp_hero_evenement__container {
    width: 100%;
    padding: 40px 10px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle 700px at 50% -150px, #F0736E, #7F1B17);
}

.grb_comp_hero_evenement__wrapper {
    max-width: 1280px;
    width: 100%;
    display: flex;
    justify-content: center
}

.grb_comp_hero_evenement__title {
    color: var(--blanc);
    font-size: 24px;
    font-weight: var(--medium);
}

.grb_comp_hero_evenement__timer-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.grb_comp_hero_evenement__timer {
    display: flex;
    column-gap: 50px;
}

.grb_comp_hero_evenement__timer-items {
    display: flex;
    column-gap: 30px;
}

.grb_comp_hero_evenement__timer-item {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    align-items: center;
    justify-content: center;
}

.grb_comp_hero_evenement__timer-item--numbers {
    background: var(--blanc);
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.grb_comp_hero_evenement__timer-item--number {
    color: var(--noir);
    font-weight: var(--semibold);
    position: absolute;
    width: 100%;
    text-align: center;
}

    .grb_comp_hero_evenement__timer-item--number.old-time {
        animation: slideUp 0.6s ease forwards;
        z-index: 1;
    }

    .grb_comp_hero_evenement__timer-item--number.new-time {
        animation: slideDown 0.6s ease forwards;
        z-index: 2;
    }

.old-time {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.grb_comp_hero_evenement__timer-item--text {
    color: var(--blanc);
    font-weight: var(--medium);
    font-size: 14px;
}

.grb_comp_hero_evenement__input-wrapper {
    display: flex;
    column-gap: 15px;
    align-items: center;
}

.grb_comp_hero_evenement__input {
    width: 400px;
    padding: 15px;
    border-radius: 18px 12px 12px 8px;
    height: 41px;
}

    .grb_comp_hero_evenement__input::placeholder {
        color: rgba(0,0,0,.5);
        font-weight: var(--semibold);
        line-height: unset
    }

.grb_comp_hero_evenement__input--validation {
    color: var(--blanc);
    padding: 15px 20px;
    background: #E53029;
    border-radius: 12px 12px 6px 12px;
    cursor: pointer;
    height: 41px;
    display: flex;
    align-items: center;
    font-weight: var(--semibold);
    position: relative;
    transition-delay: 0.15s;
    z-index: 1;
    overflow: hidden
}

    .grb_comp_hero_evenement__input--validation:before {
        content: "";
        height: 100%;
        width: 0;
        top: 0;
        left: 0;
        position: absolute;
        transition: width .5s ease-in-out;
        background: #C91D1D;
        border-radius: 11px 10px 5px 11px;
        z-index: -1;
    }

    .grb_comp_hero_evenement__input--validation:hover:before {
        width: 100%
    }


@media screen and (max-width: 1024px) {
    .grb_comp_hero_evenement__timer {
        flex-direction: column;
        align-items: center;
        row-gap: 20px
    }

    .grb_comp_hero_evenement__timer-wrapper {
        align-items: center
    }

    .grb_comp_hero_evenement__input, .grb_comp_hero_evenement__input--validation {
        padding: 5px 20px
    }
}

@media screen and (max-width: 940px) {
    .grb_comp_hero_evenement__title {
        text-align: center;
        font-size: 20px
    }

    .grb_comp_hero_evenement__wrapper {
        flex-direction: column;
    }

    .grb_comp_hero_evenement__timer {
        flex-direction: column;
        row-gap: 15px;
        width: 100%
    }

    .grb_comp_hero_evenement__timer-items {
        column-gap: 20px
    }

    .grb_comp_hero_evenement__timer-item {
        flex-direction: column-reverse;
    }

    .grb_comp_hero_evenement__input-wrapper {
        flex-direction: column;
        row-gap: 10px;
        width: 100%;
    }

    .grb_comp_hero_evenement__input--validation {
        width: 100%;
        text-align: center;
        font-weight: var(--regular);
        border-radius: 6px 4px 8px 6px;
    }

    .grb_comp_hero_evenement__input {
        border-radius: 8px 6px 6px 4px;
        border: 2px solid #E1E1E1;
        background: rgba(235, 235, 235, 0.29);
        text-align: center;
        width: 100%
    }

        .grb_comp_hero_evenement__input::placeholder {
            color: #F8F8F8;
        }

    .grb_comp_hero_evenement__input, .grb_comp_hero_evenement__input--validation {
        padding: 0;
        justify-content: center
    }

    .grb_comp-titre-hero-avant__timer-items {
        column-gap: 10px
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Styles pour les messages d'erreur et de succès */
.grb_comp_hero_evenement__error-container {
    display: block;
    margin-top: 8px;
    text-align: center;
}

.grb_comp_hero_evenement__error {
    color: #fff !important;
    background-color: rgba(229, 57, 53, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: var(--medium);
    display: inline-block;
    margin-top: 5px;
}

/* Bouton désactivé */
.grb_comp_hero_evenement__input--validation--disabled {
    background-color: #808080;
    color: #fff;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Message de feedback */
.grb_comp_hero_evenement__msg {
    font-size: var(--size_p);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Message d'erreur */
.grb_comp_hero_evenement__msg--error {
    color: #e53935;
}

/* Message de succès */
.grb_comp_hero_evenement__msg--valid {
    color: #4caf50;
}
