/*
Theme Name: ASMED
Template: generatepress
Version: 1.0
*/

/* =========================================================
   ACCUEIL – CONTENU PRINCIPAL
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#accueil {
    animation: fadeUp 0.6s ease-out both;
    max-width: 1100px;
    margin: 60px auto 40px;
    padding: 40px;
    
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   TITRE D’ACCUEIL
   ========================================================= */

#accueil h2 {
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.08em;
    margin: 0;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #7fd0ff;
}

/* =========================================================
   TEXTE INTRO
   ========================================================= */

#accueil .presentation{
    margin: 50px 0;
}

#accueil .presentation p{
    max-width: 720px;
    margin: 0 auto 20px;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

#accueil p + p {
    margin-top: 12px;
}

/* =========================================================
   NAVIGATION (MENU GUTENBERG)
   ========================================================= */

#accueil span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    transition: color 0.15s ease;
}

#accueil a:hover span, #accueil a:focus span {
    color: #7fd0ff;
    transition: color 0.15s ease;
}

#accueil .wp-block-navigation {
    margin-top: 30px;
}

#accueil .wp-block-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#accueil .wp-block-navigation li {
    margin: 0;
}

#accueil .wp-block-navigation a {
    display: inline-block;
    padding: 14px 22px;

    background: linear-gradient(135deg, #0c6a72, #06539b);
    color: #ffffff;

    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#accueil .wp-block-navigation a:hover,
#accueil .wp-block-navigation a:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    #accueil {
        padding: 30px 20px;
        margin-top: 40px;
    }

    #accueil h2 {
        font-size: 2rem;
    }

    #accueil p {
        font-size: 1.1rem;
    }
}
