* {
    position: relative;
    z-index: 1;
}

body {
    min-height: 100vh; /* Hauteur = 100% de l'écran */
    z-index: 1;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.footer {
    z-index: 10;
}

/* sinon le menu est réduit (que sur cette page)*/
.top-menu { padding: 1em 1em; }
/*###########################*/

.main {
    margin-top: -100px;
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
    height: 90vh;
    position: relative;
    gap: 0 6rem;
    z-index: 10;
}

.left {
    position: relative;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.logo {
    position: relative;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center; /* pour les centrer verticalement */
    gap: 1em; /* espace entre l’image et le texte */
    border-radius: 18px;
    padding: 0.6rem 3.5rem;
    background-color: rgba(255, 255, 255, 0.068);
    box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -webkit-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -moz-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    margin-top: 4rem;
}

@media (max-width: 600px) {
    .logo {
        margin: 11rem auto 0 auto;
    }
}

.logo img {
    margin: 0 6px 0 -10px;
    height: 40px;
}

.logo p {
    margin: auto;
    font-size: 24px;
}

.questions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.question {
    width: 16.125rem;
    padding: 0 2.9rem;
    border-radius: 12px;
    font-size: 4rem;
    color: #1d2b4f;
    background-color: rgba(255, 255, 255, 0.068);
    box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -webkit-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -moz-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.question:hover {
    background-color: #ffffff;
    transition: ease 1s;
    cursor: pointer;
}

.quest1-text {
    transform: translate(-24px, 20px);
}

.quest2-text {
    transform: translate(-36px, 20px);
}

.quest3-text {
    transform: translate(10px, 20px);
}

.q1 {
    transform: translate(48px,-40px);
    text-align: right;
    white-space: nowrap;
}

.q2 {
    transform: translate(70px,-40px);
}

.q3 {
    transform: translate(-10px,-40px);
}

.subtitle {
    position: relative;
    z-index: 2 !important;
    font-size: 26px;
    background-color: rgba(255, 255, 255, 0.068);
    box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -webkit-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -moz-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    border-radius: 12px;
    padding: 10px 0 8px 12px;
    border-left: 4px solid #aff9f894;
}

.subtitle:hover {
    background: linear-gradient(white, white) padding-box,
            linear-gradient(to right, #aff9f8, #b8c8e9) border-box;
    border-radius: 12px;
    border: 4px solid transparent;
    cursor: grab;
}

@media (max-width: 600px) {
    .subtitle {
        margin: 1rem 2rem 0 2rem;
    }
}

.newsletter-form {
    position: relative;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .newsletter-form {
        margin: 0 auto;
        justify-content: center;
    }
}

.newsletter-form input {
    width: 18.75rem;
    padding: 0.8em 1em;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.068);
    box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -webkit-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -moz-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    border: none;
    border-radius: 12px;
    padding: 10px 0 8px 12px;
}

@media (max-width: 600px) {
    .newsletter-form input {
    width: 14.25rem;
    }
}

.newsletter-form button {
    padding: 0.8em 1.5em;
    background-color: rgba(255, 255, 255, 0.068);
    box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -webkit-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    -moz-box-shadow: 1px 4px 2px 1px rgba(61, 61, 61, 0.479);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    color: black;
}

@media (max-width: 600px) {
    .newsletter-form button {
    padding: 0.8em 1rem;
    }
}

.newsletter-form button:hover {
    background-color: #a3b8e0;
}

.surprise {
    z-index: 2;
    position: relative;
    background-color: rgba(255, 255, 255, 0.068);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(to right, #aff9f8, #b8c8e9) border-box;
    border-radius: 50em;
    border: 4px solid transparent;
    padding: 0.5em 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.95em;
    max-width: 400px;
}

@media (max-width: 600px) {
    .surprise {
        margin: 0 2rem 1rem 2rem;
    }
}

.surprise:hover {
    cursor: pointer;
}

.socials {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .socials {
        flex-direction: column-reverse;
    }
}

.socials p {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 22px;
}

.socials img {
    width: 30px;
}

.networks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 600px) {
    .networks {
        margin: 1rem auto;
    }
}

.network {
    color: #1d2b4f;
    font-size: 20px;
}

.network:hover {
    color: #a3b8e0;
    transition: ease 0.4s;
}

.right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .right {
        margin: 0 auto;
    }
}

.right img {
    height: 400px;
    margin-top: 120px;
}

@media (max-width: 600px) {
    .right img {
        margin-top: 1rem;
    }
}


.by {
    color: #666;
    font-size: 400;
    text-align: right;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .by {
        text-align: center;
        margin: 0 auto 2rem auto;
    }
}

/* get_answer.js */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background-color: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    max-width: 45%;
    max-height: 80%;
    overflow-y: auto;
    text-align: justify;

    animation: slideInFromRight 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(100%);
}

@media (max-width: 600px) {
    .popup-box {
        max-width: 80%;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* only for homepage bc to stick the bottom */
/* .footer {
    position: absolute;
} */
