
/* Hero Section, contains an image */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0px 16px 100px 16px; 
}

.hero > * {
    margin: 10px 0;
}

.hero-visual img {
    height: 100px;
}

.hero-subtitle {
    font-size: var(--h5-size);
    margin-top: 10px;
    max-width: 400px;
}


.contact {
    display: grid;
    grid-template-rows: 1fr 1fr; 
    gap: 0;
    align-items: center;
    text-align: center;
    justify-items: center;
    min-height: 60vh; /* Peut rester différent si souhaité */
    border: 2px solid var(--color2);
    border-radius: 10px;  
    background-color: var(--bg-color-alt);

    margin-top: 20px;
    scroll-margin-top: 110px;
}

.grid-row-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espacement entre titre et sous-titre */
    /* padding-top: 10px; */
    
    margin-bottom: 20px; /* Espace entre le texte et le bouton */
}

.contact h2 {
    margin: 0;
}

.contact p {
    font-size: var(--h3-size);
    color: var(--color2);
    margin: 0;
}

.contact .cta-button {
    align-self: center; /* Centre parfaitement le bouton */
    margin: 0; /* Supprime toutes les marges */
}


@media (min-width: 1200px) {    

    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        padding: 0 16px 100px 16px;
        gap: 50px;
    }

    .hero-content {
        grid-column: 1/2;
        grid-row: 1/3;
        align-self: center;
        justify-self: center;
        text-align: left;
    }

    .hero-visual {
        grid-column: 2/3;
        grid-row: 1/2;
        align-self: end;
        justify-self: center;
    }

    .hero-visual img {
        height: 250px;
        transition: all 0.3s ease;
        animation: floatShield 3s ease-in-out infinite;
    }

    @keyframes floatShield {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-15px); }
        100% { transform: translateY(0); }
    }

    .hero .cta-button {
        grid-column: 2/3;
        grid-row: 2/3;
        justify-self: center;
        align-self: start;
    }

}