.custom-alert {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    border-radius: 0;
    margin-top: 5em;
    background-color: #4800ff4f;
    color: white;
    text-align: center;
}

.content-wrapper {
    text-align: center; /* Centre le contenu horizontalement */
    display: flex;
    flex-direction: row;
    max-width: 90vw;
    align-items: center;
    opacity: 0;
    transition: all 3s;
}

.hidden {
    opacity: 0;
    transition: all 1s;
}

.show {
    opacity: 1 !important;
}

.content-wrapper button {
    margin-top: 10px; /* Ajoute un espace entre les paragraphes et les boutons */
}

.titre1 {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
}

.titre2 {
    font-size: 2em;
    text-align: center;
    align-items: center;
}

.textes-vitrines {
    min-height: 100px;
    /* background-color: rgba(0, 0, 0, 0.229); */
    max-width: 97.8%;
    /* margin-inline: auto; */
    font-weight: 550;
}

:root {
    /* 
      One-stop magic hue shift
      We're using oklch(), so these might not be the hue values you are familiar with 
    See: https://oklch.com/
    */
    --hue: 310; /* change me (0-360) */
    --hue-adjust: 135; /* and me */

    --hue-2: calc(var(--hue) + var(--hue-adjust));

    --page-background: oklch(10% 0.0666 var(--hue));
}
/* https://codepen.io/giana/pen/rNpLNgG */
.croix {
    --button-background: oklch(20% 0.0666 var(--hue));
    --text-base: oklch(45% 0.175 var(--hue));
    --text-hover: oklch(95% 0.145 calc(var(--hue) + 30));

    --shadow-start: oklch(95% 0.145 var(--hue-2));
    --shadow-end: oklch(60% 0.29 var(--hue));

    /* No color function, so we can use different opacity values */
    --shadow-inner: 60% 0.29 var(--hue);

    all: unset;
    overflow: hidden;

    /* Text */
    color: var(--text-base);
    /* font: 700 1.125rem/1.2 Raleway, sans-serif; */
    letter-spacing: 0.08em;
    /* text-transform: uppercase; */
    text-align: center;

    /* Button sizing */
    padding: 0.3em;
    /* max-width: 100%; */
    width: 1.25em;

    /* Button styling */
    background-color: var(--button-background);
    background-clip: padding-box;
    border: 2px solid var(--text-base);
    border-radius: 2em;
    cursor: pointer;

    /* Effects */
    position: relative;
    transition: 0.25s ease-out;

    /* Set up pseudo elements */
    &::before,
    &::after {
        content: "";
        border-radius: inherit;
        transition: inherit;
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    /* Gradient shadow */
    &::before {
        /* Position */
        inset: -0.2em;
        z-index: -1;

        /* Effect */
        background: linear-gradient(var(--shadow-start), var(--shadow-end));
        filter: blur(1.2em) saturate(1.2);

        /* Animation */
        transform-origin: bottom;
        transform: scaleY(0.5);
        opacity: 0;
    }

    /* Semi-transparent blended box-shadow brightens up the border */
    &::after {
        /* Effect */
        box-shadow: inset 0 0 0 1px #fff,
            /* inner pixel */ 0 0 0 4px hsla(0deg, 0%, 100%, 0.5),
            /* lightened border */ 1px 1px 0 4px #fff; /* outer pixel */
        mix-blend-mode: overlay;

        /* Animation */
        opacity: 0;
    }

    &:hover,
    &:focus {
        color: var(--text-hover);

        /*  Lighten border */
        border-color: transparent;

        /* Inner shadow */
        box-shadow: inset 0 1.4em 0 oklch(var(--shadow-inner) / 0.1),
            /* gloss */ inset 0 0 1.4em oklch(var(--shadow-inner) / 0.32),
            /* inner glow */ 0 1px 1px oklch(var(--shadow-inner) / 0.32); /* bottom line */

        /* Show effects */
        &::before,
        &::after {
            transform: none;
            opacity: 1;
        }
    }
}

.ajouter {
    width: 5em;
}

button,
.wrapper {
    max-width: 960px;
    margin-inline: auto;
    align-items: center;
}

.wrapper,
h1,
h2 {
    text-align: center; /* Centre le contenu horizontalement */
}

.image-container {
    width: 300px;
    height: 300px;
    overflow: visible;
    min-width: 20vw;
    z-index: -1;
}

.demarrer {
    margin-bottom: 35vh;
    padding: 17px 40px;
    border-radius: 50px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
    letter-spacing: 1.5px;
    font-size: 15px;
    transition: all 0.5s ease;
    color: black;
}

.demarrer:hover {
    letter-spacing: 3px;
    background-color: hsl(261deg 80% 48%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(0, 0, 255) 0px 7px 29px 0px;
}

.demarrer:active {
    letter-spacing: 3px;
    background-color: hsl(261deg 80% 48%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
    transform: translateY(10px);
    transition: 100ms;
}

* {
    /* border: 1px solid red; */
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 7em;
}

* {
    scroll-margin-top: 33vh;
}

@media only screen and (max-width: 730px) {
    /* Anciennement 600, à voir si ca s'affiche mieux sur d'autres telephones */

    * {
        scroll-margin-top: 16vh;
        overflow-x: hidden;
    }
    i {
        overflow-x: visible !important;
    }

    footer {
        overflow-x: auto !important;
    }
    :root {
        font-size: 16px;
    }

    .wrapper {
        padding: 0 20px; /* Ajoute un peu d'espace sur les côtés pour les petits écrans */
    }

    .titre1,
    .titre2,
    button,
    .textes-vitrines {
        max-width: 100vw;
        margin-top: 4rem;
    }
    .textes-vitrines {
        font-size: 20px; /* Réduit la taille de la police pour les petits écrans */
        max-width: 88vw;
        order: 2;
        margin-top: 50px;
    }
    button {
        font-size: 34px;
        min-width: 20%; /* Fait en sorte que les boutons occupent toute la largeur sur les petits écrans */
    }
    .navbar {
        max-width: 100vw;
        height: 4rem;
        margin-left: -0px;
        z-index: 1;
        position: fixed;
        /* display: none; */
    }

    .nav-item .nav-link .fa-xl {
        margin-top: 0.5em;
        font-size: 1.7em; /* Utilise la taille du texte pour déterminer la taille de l'icône */
    }
    .link-text {
        display: none;
        margin-top: 10px;
        margin-left: -0.5em;
    }
    /* .navbar:hover {
        height: 6rem;
    }

    .navbar:hover .link-text {
        display: grid;
        font-size: 1.2em;
    } */

    h1 {
        font-size: 4em;
    }

    .content-wrapper {
        text-align: center; /* Centre le contenu horizontalement */
        display: grid;
        flex-direction: column;
        max-width: 100vw;
        /* justify-items: center; */
        /*ceci casse la page sur certains*/
    }
    .image-container {
        align-items: center;
        text-align: center;
        order: 1;
        place-self: auto;
        margin: auto;
        /* justify-self: center;
        padding: 0; */

        /* margin-left: 33px; */
    }

    img {
        /* transform: none !important; */
        overflow: hidden;
    }

    .gradient-bg {
        width: 800px;
        /* display: none; */
    }
}
