* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --main-color: #469e46;
    --primary-color: #469e46;
    --secondary-color: #4e87e8;
    --tertiary-color: #4c2e05;
    --quatruno-color: #F2F9E7;
    --white-color: #ffffff;
    --black-color: #000000;
    --teal:     #40878c;
    --mint:     #b8e491;
    --gray:     #95969d;
    --offwhite: #f5f9f2;
    --background-color: rgba(212, 235, 174, 0.30);
    --font-stack: 'Raleway', sans-serif;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #eaf3e3 100%);
    overflow-x: hidden;
}

p, label {
    color: var(--black-color);
    font-family: "Bellota", sans-serif;
    font-weight: 500;
    font-style: normal;
    padding: 0.5rem 0;
    font-size: 17px;
}

a {
    text-decoration: none !important;
}


/*************************************************************************************
                                    ── NAVIGATION ──
************************************************************************************/

.mobile-visible {
    display: none !important;
}

.mgc-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(70, 158, 70, 0.15);
}

.mgc-nav-logo {
    font-family: 'Dynapuff', cursive;
    font-size: 1.2rem;
    color: var(--main-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
}

.mgc-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.mgc-nav-links a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--tertiary-color);
    transition: color 0.2s;
}

.mgc-nav-links a:hover {
    color: var(--main-color);
}

.mgc-nav-cta {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--main-color);
    color: white;
    border-radius: 50px;
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    margin-left: 15px;
}

.mgc-nav-cta:hover {
    background: var(--teal);
    transform: translateY(-1px);
}


/*************************************************************************************
                                    ── FOOTER ──
************************************************************************************/



.mgc-footer {
    background: var(--tertiary-color);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mgc-footer-logo {
    font-family: 'Dynapuff', cursive;
    font-size: 1.1rem;
    color: var(--mint);
}

.mgc-footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.mgc-footer-links a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.mgc-footer-links a:hover {
    color: var(--mint);
}

.mgc-footer-copy {
    font-family: 'Bellota', sans-serif;
    font-size: 0.78rem;
}


/*************************************************************************************
                                    ── BOUTON ──
************************************************************************************/


.mgc-btn-primary {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 36px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(70, 158, 70, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.mgc-btn-primary:hover {
    background: #3a8b3a;
    transform: translateY(-2px);
}

.mgc-btn-secondary {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 50px;
    padding: 13px 32px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mgc-btn-secondary:hover {
    background: var(--teal);
    color: white;
}

/* Bouton submit */
.mgc-btn-tertiary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--main-color), var(--teal));
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(70, 158, 70, 0.3);
    margin-top: 8px;
}

.mgc-btn-tertiary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(70, 158, 70, 0.35);
}


/*************************************************************************************
                                    ── BADGES ──
************************************************************************************/

.badges-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;

}

.badge-card {

    background: var(--offwhite);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    border: 1.5px solid rgba(70, 158, 70, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;

}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(70, 158, 70, 0.15);
    border-color: var(--main-color);
}

.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.badge-emoji {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.badge-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 4px;
}

.badge-desc {
    font-family: 'Bellota', sans-serif;
    font-size: 0.7rem;
    color: var(--gray);
    line-height: 1.4;
}

.badge-new {

    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--main-color);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;

}

.badge-locked-icon {

    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--gray);

}

/*************************************************************************************
                                    ── BRIC BRAC ──
************************************************************************************/


.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.warning-dash {
    background: #fff8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 20px 0;
}

.information-dash {
    background: #f0fff3 !important;
    border-left: 4px solid var(--primary-color) !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 14px 18px !important;
    margin: 20px 0 !important;
}
