* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: #f7f9fc;
    color: #253746;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}


/* PAGE */

.links-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 0 60px;
}


/* CARTE PRINCIPALE */

.links-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dce5ec;
    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(30, 60, 80, 0.08);
}


/* HEADER */

.links-header {
    padding: 30px 35px;

    background: linear-gradient(
        135deg,
        #e7f2fa 0%,
        #f6fafd 100%
    );

    border-bottom: 1px solid #dce5ec;
}

.eyebrow {
    margin: 0 0 5px;

    color: #3184b8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.links-header h1 {
    margin: 0;

    color: #173f5f;

    font-size: 30px;
}

.links-header > p:last-child {
    max-width: 650px;

    margin: 10px 0 0;

    color: #657784;

    font-size: 14px;
}


/* CONTENU */

.links-content {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 30px 35px 35px;
}


/* RESSOURCE */

.resource {
    display: grid;

    grid-template-columns: 90px minmax(0, 1fr) auto;

    align-items: center;

    gap: 20px;

    width: 100%;

    padding: 17px 20px;

    background: #ffffff;

    border: 1px solid #dce5ec;
    border-radius: 10px;

    color: inherit;
    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

a.resource:hover {
    background: #f4f9fc;

    border-color: #bcd8e9;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(30, 60, 80, 0.08);
}


/* LOGOS */

.resource-logo {
    display: flex;

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

    width: 90px;
    min-height: 65px;

    padding: 8px;

    background: #ffffff;

    border-radius: 7px;
}

.resource-logo img {
    display: block;

    max-width: 80px;
    max-height: 60px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* TEXTE */

.resource-info {
    min-width: 0;
}

.resource-info h2 {
    margin: 0 0 5px;

    color: #176b9e;

    font-size: 16px;
}

.resource-info p {
    margin: 0;

    color: #526573;

    font-size: 13px;
}

.resource-info .secondary {
    margin-top: 3px;

    color: #7b8993;

    font-size: 12px;
}


/* FLÈCHE */

.arrow {
    color: #3184b8;

    font-size: 23px;

    transition: transform 0.15s ease;
}

a.resource:hover .arrow {
    transform: translateX(4px);
}


/* BOUTONS DE LANGUE */

.resource-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;
}

.resource-buttons a {
    display: inline-block;

    padding: 6px 11px;

    background: #e7f2fa;

    border-radius: 6px;

    color: #176b9e;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.resource-buttons a:hover {
    background: #176b9e;
    color: #ffffff;
}


/* MOBILE */

@media (max-width: 650px) {

    .links-page {
        width: calc(100% - 20px);

        padding: 20px 0 40px;
    }

    .links-header {
        padding: 24px 20px;
    }

    .links-header h1 {
        font-size: 26px;
    }

    .links-content {
        padding: 20px;
    }

    .resource {
        grid-template-columns: 65px minmax(0, 1fr);

        gap: 14px;

        padding: 15px;
    }

    .resource-logo {
        width: 65px;
        min-height: 55px;

        padding: 4px;
    }

    .resource-logo img {
        max-width: 60px;
        max-height: 50px;
    }

    .arrow {
        display: none;
    }
}