@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&display=swap');

*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 15px;
}

html,
body {
    margin: 0;
    padding: 0;
    --color-text: #000;
    --color-bg-view-1: #9da0dd;
    --color-bg-view-2: #6a6468;
    --color-link: #000;
    --color-link-hover: #000;
    --color-button: #000;
    --color-button-hover: #22267d;
    color: var(--color-text);
    background-color: var(--color-bg-view-1);
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
}

.wrapper {
    overflow-y: auto;
    height: 100vh;
}

a {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
}

a:hover {
    color: var(--color-link-hover);
    outline: none;
}

.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.unbutton:focus {
    outline: none;
}

main {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100vh;
}

.button {
    color: var(--color-button);
    border-radius: 30px;
    min-width: 150px;
    padding: 1rem 2rem;
    border: 1px solid currentColor;
}

.button:hover,
.button:focus-visible {
    color: var(--color-button-hover);
}

.view {
    position: relative;
    grid-area: 1 / 1 / 2 / 2;
    display: flex; /* Utilisation de flexbox */
    flex-direction: column; /* Alignement vertical des éléments */
    align-items: center; /* Centrage horizontal */
    justify-content: center; /* Centrage vertical */
    text-align: center; /* Centrer le texte */
    padding: 20px; /* Ajout d'un peu d'espace intérieur */
}

.view--1 {
    display: flex;
}

.view--1 p {
    text-align: left;
    margin-bottom: 30px;
}

.view--2 {
    background: var(--color-bg-view-2);
    pointer-events: none;
    opacity: 0;
}

.view.view--open {
    pointer-events: auto;
    opacity: 1;
}

.overlay {
    grid-area: 1 / 1 / 2 / 2;
    position: relative;
    z-index: 1000;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

h1 {
    font-family: "Bowlby One SC", sans-serif;
    font-weight: 400;
    font-size: 80px; /* Taille de police fixe pour les écrans PC */
    margin-bottom: 0;
}

p {
    max-width: 800px; /* Largeur maximale pour les grands écrans */
    margin: 0 auto;
    text-align: center;
    font-size: 18px; /* Taille de police fixe pour les écrans PC */
}

img {
    position: center;
    max-width: 100%;
    height: auto; /* Utilisation d'auto pour maintenir le ratio d'aspect */
    top: 5px;
    bottom: 5px;
    right: 0; /* Retirer la position fixe à droite */
    object-fit: cover;
}



#fridge-image {
    max-width: 100%;
    max-height: 300px; /* Ajustez la hauteur maximale ici pour réduire la taille de l'image */
    width: auto;
    height: auto;
}








/* Styles spécifiques aux petits écrans */
@media(max-width: 576px) {
    h1 {
        font-size: 5vw; /* Taille de police responsive */
    }

    p {
        max-width: 90%; /* Ajuster la largeur maximale pour mobile */
        font-size: 4vw; /* Taille de police responsive */
    }
}
