@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700&display=swap');

/* =========================================================
   GLOBAL / BACKGROUND
   ========================================================= */

body {
    background: radial-gradient(circle at top, #1f3b57 0%, #0a1622 65%);
    color: #ffffff;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


/* =========================================================
   HEADER WORDPRESS (TOP BAR)
   ========================================================= */

.header-portail-asmed {
    padding: 20px 10px 10px;
}

.header-portail-asmed h1 {
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.08em;
    margin: 0;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #7fd0ff;
    text-transform: uppercase;
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.msp-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}


/* =========================================================
   HEADER MSP (LOGO + BANDEAU INFO)
   ========================================================= */

.msp-header {
    margin: 0 auto 20px;
}

/* Ligne logo + bandeau */
.msp-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo MSP */
.msp-logo {
    max-width: 200px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Nom MSP si pas de logo */
.msp-header h1 {
    font-size: 1.8rem;
    margin: 10px 0 0;
    color: #ffffff;
}


/* =========================================================
   BANDEAU D'INFORMATION
   ========================================================= */

.msp-header-banner,
.msp-banner {
    position: relative;
    padding: 22px 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 18px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 1.5rem;
    width: 100%;
}

/* Texte du bandeau */
.msp-banner_text {
    margin: 0;
    width: 100%;
    text-align: center;
    line-height: 1.4;
}

/* Icône du bandeau */
.msp-banner_icon {
    position: absolute;
    left: 24px;
    top: 40%;
    transform: translateY(-40%);
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   TUILES
   ========================================================= */

.msp-tiles {
    max-width: 1100px;
    margin: 40px auto 60px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tuile */
.msp-tile {
    border-radius: 16px;
    min-height: 225px;
    padding: 25px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-decoration: none;
    color: #ffffff;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.msp-tile:hover,
.msp-tile:active,
.msp-tile:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.45);
    color: #ffffff;
}


/* =========================================================
   ICÔNES DES TUILES
   ========================================================= */

/* Dashicons */
.msp-tile_icon {
    width: 90px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 3rem;
    line-height: 1;
}


/* Images */
.msp-tile_image img {
    width: 90px;
    height: 55px;
    object-fit: contain;
}


/* =========================================================
   TITRE DES TUILES
   ========================================================= */

.msp-tile_title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    position: relative;
    bottom: 0;
}

.inside-site-info {
    padding: 0 !important;
}

.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    color: rgba(255,255,255,0.6);
}


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

@media (max-width: 1024px) {
    .msp-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .msp-banner,
    .msp-header-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .msp-banner_icon {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .msp-banner_text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .msp-header-row {
        flex-direction: column;
        text-align: center;
    }

    .msp-header-banner {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .msp-tiles {
        grid-template-columns: 1fr;
    }

    .header-portail-asmed h1 {
        font-size: 2.2rem;
    }
}
