@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

body, header, main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    font-family: "Poppins", sans-serif;
    color: white;
    background-image: url(assets/Background.jpeg);
    background-size: cover;
    margin: 0;
    height: 100vh;
    width: 100%;
    justify-content: center;
    gap: 20px;

    figure {
        overflow: hidden;
        width: 180px;
        height: 180px;
        border-radius: 20%;
        margin-bottom: 10px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    h1 {
        margin: 0;
        font-size: 32px;
    }

    h2 {
        margin: 0 0 5px 0;
        font-size: 14px;
        font-weight: 400;
    }

    main {
        gap: 10px;

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: "Poppins", sans-serif;
            font-weight: 500;
            font-size: 16px;
            height: 50px;
            width: 100%;
            background-color: #0000009c;
            color: #ffffff;
            border: none;
            border-radius: 10px;
            position: relative;
            transition: transform 0.2s;

            &:hover {
                cursor: pointer;
                border: 1px solid white;
                color: white;
                transform: scale(1.05);
            }
        }

        .button-icon {
            position: absolute;
            left: 20px;
            width: auto;
            height: 24px;
            margin-right: 0px;
        }
        
        .video-container {
            width: 100%;
            position: relative;
            padding-bottom: 56.25%;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
    }

    .container {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        padding: 20px;
        margin: 20px auto;
        width: 500px;
    }

    a {
        color: inherit; 
        text-decoration: none; 
        width: 100%
    }
    
    a:visited {
        color: inherit;
        width: 100%
    }


      
}


/* Media Query pour les tablettes (écran de moins de 768px) */
@media (max-width: 1280px) {
    body{

        .container {
            padding: 15px;
        }

        footer{
            font-size: 10px;
        }

    }
}

@media (max-width: 768px) {
    body{

        figure {
            width: 140px;
            height: 140px;
        } 

        h1 {
            font-size: 24px;
        }
    
        h2 {
            font-size: 10px;
        }

        .container {
            padding: 15px;
            width: 90%;
        }

        footer{
            font-size: 10px;
        }

    }
}

/*@media (max-width: 480px) {
    body {
        gap: 10px;
    }

    figure {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 12px;
    }

    button {
        width: 90%;
        font-size: 12px;
        height: 40px;
    }

    .container {
        max-width: 85%;
        padding: 10px;
    }
} */