﻿.grb_comp-titre-hero-avant__wrapper {
    width: 50%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    row-gap: 20px
}

.grb_comp-titre-hero-avant__breadcrumb-container {
    display: flex;
    column-gap: 5px;
    align-items: center;
}

.grb_comp-titre-hero-avant__site-title {
    text-decoration: underline;
    font-size: 24px;
}

.grb_comp-titre-hero-avant__page-title {
    font-size: 20px;
}

.grb_comp-titre-hero-avant__title-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.grb_comp-titre-hero-avant__titre {
    font-size: 32px;
    font-weight: var(--semibold);
    max-width: 600px;
    width: 100%;
    line-height: 1.2;
    text-transform: uppercase;
}

.grb_comp-titre-hero-avant__sous-titre {
    font-size: 27px;
    max-width: 600px;
    width: 100%;
    line-height: 1.2;
    font-weight: var(--regular);
}

.grb_comp-titre-hero-avant__timer-items {
    display: flex;
    column-gap: 30px;
}

.grb_comp-titre-hero-avant__timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
}

.grb_comp-titre-hero-avant__timer-item--numbers {
    background: #0000000D;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #00000040;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.grb_comp-titre-hero-avant__timer-item--number {
    font-weight: var(--semibold);
    position: absolute;
    width: 100%;
    text-align: center;
}

    .grb_comp-titre-hero-avant__timer-item--number.old-value {
        animation: slideUp 0.6s ease forwards;
        z-index: 1;
    }

    .grb_comp-titre-hero-avant__timer-item--number.new-value {
        animation: slideDown 0.6s ease forwards;
        z-index: 2;
    }

.old-value {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.grb_comp-titre-hero-avant__timer-item--text {
    font-size: 14px;
    font-weight: var(--medium);
}

.grb_comp-titre-hero-avant__input-wrapper {
    display: flex;
    column-gap: 20px;
    align-items: center;
}

.grb_comp-titre-hero-avant__input {
    background: #00000005;
    width: 400px;
    padding: 15px;
    border-radius: 18px 12px 12px 8px;
    border: 1px solid #0000001A;
    height: 43px;
}

    .grb_comp-titre-hero-avant__input::placeholder {
        color: #00000080;
        font-weight: var(--semibold)
    }

.grb_comp-titre-hero-avant__input--validation {
    background: #E53029;
    color: var(--blanc);
    padding: 15px 20px;
    border-radius: 12px 12px 6px 12px;
    height: 43px;
    font-weight: var(--semibold);
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition-delay: 0.15s;
    z-index: 1;
    overflow: hidden
}

    .grb_comp-titre-hero-avant__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-titre-hero-avant__input--validation:hover:before {
        width: 100%
    }

@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;
    }
}

@media screen and (max-width: 1024px) {
    .grb_comp-titre-hero-avant__wrapper {
        padding: 0 20px
    }
}

@media screen and (max-width: 940px) {

    .grb_comp-titre-hero-avant__wrapper {
        width: 100%
    }

    .grb_comp-titre-hero-avant__site-title, .grb_comp-titre-hero-avant__page-title {
        font-size: 13px
    }

    .grb_comp-titre-hero-avant__titre {
        font-size: 20px
    }

    .grb_comp-titre-hero-avant__sous-titre {
        font-size: 14px;
        font-weight: var(--medium);
        text-transform: uppercase
    }

    .grb_comp-titre-hero-avant__input-wrapper {
        flex-direction: column;
        row-gap: 10px;
        width: 100%
    }

    .grb_comp-titre-hero-avant__input {
        width: 100%;
        border-radius: 8px 6px 6px 4px;
        border: 2px solid #E1E1E1;
        background: rgba(235, 235, 235, 0.29);
        height: 32px;
        padding: 8px
    }

    .grb_comp-titre-hero-avant__input--validation {
        width: 100%;
        justify-content: center;
        border-radius: 6px 4px 8px 6px;
        height: 32px;
        padding: 8px
    }

    .grb_comp-titre-hero-avant__input::placeholder {
        text-align: center
    }
}

/* Styles pour les messages d'erreur et de succès */
.grb_comp-titre-hero-avant__error-container {
    display: block;
    margin-top: 8px;
    text-align: center;
}

.grb_comp-titre-hero-avant__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-titre-hero-avant__input--validation--disabled {
    background-color: #808080;
    color: #fff;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Message de feedback */
.grb_comp-titre-hero-avant__msg {
    font-size: var(--size_p);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Message d'erreur */
.grb_comp-titre-hero-avant__msg--error {
    color: #e53935;
}

/* Message de succès */
.grb_comp-titre-hero-avant__msg--valid {
    color: #4caf50;
}

