/* VARIABLES */
* {
    box-sizing: border-box;
}

:root {
    --ucm-blue: #143cc8;
    --ucm-text: #333333;
    --ucm-light-bg: #f8f9fa; 
    --max-content-width: 1000px;
    --font-titles: 'Rubik', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* TYPO */
body {
    font-family: var(--font-body);
    color: var(--ucm-text);
    margin: 0;
    line-height: 1.8;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: var(--font-titles); 
    font-weight: 700;
    color: var(--ucm-blue);
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* MOBILE FIRST */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.page-wrapper {
    padding: 20px 0 60px 0;
}

/* HEADER & NAV MOBILE */
.top-bar {
    background: var(--ucm-light-bg);
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
}

.lang-nav {
    display: flex;
    justify-content: center; 
    font-weight: 600;
}

.lang-nav a {
    text-decoration: none;
    color: #888;
    padding: 0 10px;
}

.lang-nav a.active { color: var(--ucm-blue); }

.main-nav {
    padding: 20px 0;
    border-bottom: 4px solid var(--ucm-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex {
    display: flex;
    flex-direction: column; /* menu burger par défaut */
    align-items: center;
    gap: 20px;
    text-align: center;
}

.logo-site img {
    max-width: 140px; 
    height: auto;
}

.pages-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    gap: 15px;
}

.pages-nav a {
    text-decoration: none;
    color: var(--ucm-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.2s;
}

/* HEADER */
.header-banner {
    width: 100%;
    min-height: 200px;
    background-image: linear-gradient(rgba(0, 61, 126, 0.4), rgba(0, 61, 126, 0.6)), 
                      url("./img/UCM-Header.jpg"); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENT */
.text-content {
    max-width: var(--max-content-width);
    margin: 0 auto; 
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    border-left: 5px solid var(--ucm-blue);
    padding-left: 20px;
    margin: 25px 0;
}

/* ACTIONS GRID MOBILE FIRST */
.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-card {
    background-color: #eaf2fe; 
    padding: 25px 20px; 
    text-align: center;
    text-decoration: none;
    color: var(--ucm-text);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* BOUTONS */
.btn-contact {
    background: var(--ucm-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
}

.btn-cta {
    display: inline-block;
    background-color: var(--ucm-blue);
    color: white !important;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--ucm-blue);
    text-align: center;
}

/* BOUTON SPÉCIPIQUE PDF AVEC EMOJI */
.btn-pdf {
    display: inline-flex;       /* Utilisation de flex pour aligner l'emoji et le texte */
    align-items: center;        /* Centre verticalement l'emoji et le texte */
    gap: 10px;                  /* Espace entre l'emoji et le texte */
    background-color: #ffffff;
    color: var(--ucm-blue);
    border: 2px solid var(--ucm-blue);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Ajout de l'emoji via CSS */
.btn-pdf::before {
    content: "↓";              /* L'emoji de téléchargement */
    font-size: 1.2rem;          /* Taille de l'emoji */
}

/* Effet au survol */
.btn-pdf:hover {
    background-color: var(--ucm-blue);
    color: #ffffff;
}

/* FOOTER */

.site-footer {
    background: var(--ucm-blue);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}


.site-footer a {
    color: #ffffff;
    text-decoration: underline; 
}

/* DESKTOP */
@media (min-width: 768px) {
    
    h1 { font-size: 2.6rem; }

    .nav-flex {
        flex-direction: row; 
        justify-content: space-between;
    }

    .logo-site img {
        max-width: 180px;
    }

    .pages-nav ul {
        flex-direction: row;
        gap: 25px;
    }

    .lang-nav {
        justify-content: flex-end;
    }

    .header-banner {
        min-height: 300px;
    }

    .actions-grid {
        flex-direction: row; 
    }

    .btn-card {
        flex: 1; 
        padding: 40px 20px;
    }

    .btn-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(20, 60, 200, 0.1); 
        background-color: #dce9fc; 
    }

    .page-wrapper {
        padding: 40px 0 80px 0;
    }
}