@font-face {
    font-family: 'Lil Grotesk';
    src: url('../lilgrotesk/LilGrotesk-Regular.otf') format('truetype');
}

@font-face {
    font-family: 'Blinds Audience';
    src: url('../blindsaudience/Blinds\ Audience.otf') format('woff');
}

.promise {
    min-height: 100vh;
    width: 100%;
    background: var(--white);
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding:0 5em 0 5em;
}

.promise h1 {
    font-size: 2em;
    text-align: center;
    font-family: 'Garamond', serif;
    font-weight: 700;
    padding-top:1em;
}

.promise .intro {
    font-size: 1.2em;
    text-align: justify; /* Justifier le texte */
    font-family: 'Lil Grotesk', sans-serif;
    padding-bottom:1em;
}

.promise-item {
    position: relative;
    width: 50vw;
    height: 30vw;
    cursor: pointer;
}

.promise-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-bottom:1em;
}

.promise-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(254, 241, 232, 0.9);
    color: var(--gold);
    box-sizing: border-box;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promise-item:hover .promise-text {
    opacity: 1;
    visibility: visible;
}

.promise-text h2 {
    font-size: 1.5em;
    text-align: center;
    font-family: 'Garamond', serif;
}

.promise-text p {
    font-size: 1em;
    font-family: 'Lil Grotesk', sans-serif;
    text-align: justify; /* Justifier le texte */
    padding:0 3em 1em 3em;
}

@media screen and (max-width: 1000px) {
    .promise-item {
        width: 80vw;
        height: 48vw;
    }
}

@media screen and (max-width: 700px) {
    .promise-item {
        width: 100%;
        height: auto;
        cursor: default;
    }

    .promise-picture {
        height: 50vw;
    }

    .promise-text {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        height: auto;
        transition: none;
    }

    .promise h1 {
        font-size: 1.8em;
    }

    .promise .intro,
    .promise-text p {
        font-size: 1em;
        text-align: left; /* Aligner le texte à gauche */
    }

    .promise-text h2 {
        font-size: 1.3em;
    }

    .promise-text p {
        font-size: 1em;
        font-family: 'Lil Grotesk', sans-serif;
        text-align: justify; /* Justifier le texte */
        padding:0 0em 1em 0em;
    }
}
