* {
    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 */

.association-page {
    width: min(900px, calc(100% - 40px));

    margin: 0 auto;
    padding: 30px 0 60px;
}


/* NAVIGATION ASSOCIATION */

.association-nav {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 18px;
    padding: 6px;

    background: #ffffff;

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

    box-shadow: 0 2px 8px rgba(30, 60, 80, 0.05);
}

.association-nav a {
    flex: 1;

    min-width: 100px;

    padding: 10px 15px;

    border-radius: 7px;

    color: #526573;

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

    text-align: center;
    text-decoration: none;

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

.association-nav a:hover {
    background: #edf6fb;
    color: #176b9e;
}

.association-nav a.active {
    background: #176b9e;
    color: #ffffff;
}


/* CARTE */

.association-card {
    overflow: hidden;

    background: #ffffff;

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

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


/* EN-TÊTE */

.association-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;
}

.association-header h1 {
    margin: 0;

    color: #173f5f;

    font-size: 30px;
}

.association-header > p {
    max-width: 680px;

    margin: 10px 0 18px;

    color: #526573;

    font-size: 15px;
}


/* TYPES D'INSTITUTIONS */

.institution-types {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.institution-types span {
    padding: 6px 11px;

    background: #ffffff;

    border: 1px solid #d3e4ef;
    border-radius: 20px;

    color: #176b9e;

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


/* CONTENU */

.association-content {
    padding: 30px 35px 35px;
}

.association-content > h2 {
    margin: 0 0 22px;

    color: #173f5f;

    font-size: 21px;
}


/* BUTS */

.goal {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);

    gap: 16px;

    padding: 18px 0;

    border-bottom: 1px solid #e6edf2;
}

.goal:last-child {
    border-bottom: 0;
}

.goal-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #e7f2fa;

    border-radius: 50%;

    color: #176b9e;

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

.goal h3 {
    margin: 0 0 5px;

    color: #176b9e;

    font-size: 16px;
}

.goal p {
    margin: 0;

    color: #526573;

    font-size: 14px;
}


/* MOBILE */

@media (max-width: 650px) {

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

        padding: 20px 0 40px;
    }

    .association-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .association-nav a {
        min-width: 0;
    }

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

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

    .association-content {
        padding: 24px 20px;
    }

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

        gap: 12px;
    }

    .goal-number {
        width: 36px;
        height: 36px;
    }
}
/* =========================
   STATUTS
   ========================= */

.statutes {
    padding-top: 25px;
}

.statute-section {
    margin-bottom: 38px;
}

.statute-section:last-of-type {
    margin-bottom: 20px;
}

.statute-section > h2 {
    margin: 0 0 18px;

    padding: 13px 16px;

    background: #e7f2fa;

    border-left: 4px solid #176b9e;
    border-radius: 6px;

    color: #173f5f;

    font-size: 19px;
}

.article {
    margin-bottom: 22px;
    padding-bottom: 22px;

    border-bottom: 1px solid #e6edf2;
}

.article:last-child {
    border-bottom: 0;
}

.article h3 {
    display: inline-block;

    margin: 0 0 10px;

    padding: 5px 10px;

    background: #f0f6fa;

    border-radius: 5px;

    color: #176b9e;

    font-size: 14px;
}

.article h4 {
    margin: 20px 0 7px;

    color: #354d5e;

    font-size: 14px;
}

.article p {
    margin: 0 0 12px;

    color: #526573;

    font-size: 14px;
    line-height: 1.7;
}

.article ul,
.article ol {
    margin: 10px 0 16px;
    padding-left: 25px;

    color: #526573;

    font-size: 14px;
    line-height: 1.7;
}

.article li {
    margin-bottom: 6px;
}


/* LISTE A / B / C */

.letter-list {
    list-style-type: lower-alpha;
}


/* SIGNATURES */

.statute-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #dce5ec;
}

.statute-signatures div {
    padding: 18px;

    background: #f7f9fc;

    border-radius: 8px;
}

.statute-signatures span {
    display: block;

    margin-bottom: 4px;

    color: #71808b;

    font-size: 12px;
}

.statute-signatures strong {
    color: #173f5f;

    font-size: 14px;
}


@media (max-width: 600px) {

    .statute-signatures {
        grid-template-columns: 1fr;
    }

    .statute-section > h2 {
        font-size: 17px;
    }
}

/* =========================
   COMITÉ
   ========================= */

.committee-content {
    padding-top: 28px;
}

.committee-section {
    margin-bottom: 35px;
}

.committee-section:last-child {
    margin-bottom: 0;
}

.committee-section > h2 {
    margin: 0 0 18px;

    padding-bottom: 10px;

    border-bottom: 1px solid #dce5ec;

    color: #173f5f;

    font-size: 20px;
}


/* GRILLE */

.committee-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* MEMBRE */

.committee-member {
    position: relative;

    padding: 20px;

    background: #f8fafc;

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

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

.committee-member:hover {
    transform: translateY(-2px);

    border-color: #bcd8e9;

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


/* FONCTION */

.member-role {
    display: inline-block;

    margin-bottom: 10px;
    padding: 4px 8px;

    background: #e7f2fa;

    border-radius: 5px;

    color: #176b9e;

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

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


/* NOM */

.committee-member h3 {
    margin: 0 0 6px;

    color: #173f5f;

    font-size: 16px;
}

.committee-member h3 a {
    color: #176b9e;
    text-decoration: none;
}

.committee-member h3 a:hover {
    text-decoration: underline;
}


/* ÉTABLISSEMENT */

.committee-member p {
    margin: 0;

    color: #657784;

    font-size: 13px;
    line-height: 1.5;
}

.committee-member p a {
    color: #176b9e;

    font-weight: 600;
    text-decoration: none;
}

.committee-member p a:hover {
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 650px) {

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .committee-member {
        padding: 17px;
    }

}

/* =========================
   MEMBRES
   ========================= */

.members-list-content {
    padding-top: 25px;
}

/* LÉGENDE */

.members-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.legend {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.legend.university {
    background: #fff0e4;
    color: #9b531c;
}

.legend.regional {
    background: #fff9d9;
    color: #776500;
}

.legend.private {
    background: #e8f8fb;
    color: #176b7b;
}

.legend.ems {
    background: #eaf8e9;
    color: #39743a;
}


/* TABLEAU */

.members-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dce5ec;
    border-radius: 10px;
}

.members-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    background: #ffffff;
}

.members-table th {
    padding: 13px 14px;
    background: #173f5f;
    color: #ffffff;
    font-size: 13px;
    text-align: left;
}

.members-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e6edf2;
    color: #526573;
    font-size: 13px;
    vertical-align: middle;
}

.members-table tbody tr:last-child td {
    border-bottom: 0;
}

.members-table tbody tr:hover td {
    filter: brightness(0.98);
}

.members-table td:first-child {
    color: #173f5f;
    font-weight: 700;
}

.members-table th:nth-child(1) {
    width: 17%;
}

.members-table th:nth-child(2) {
    width: 15%;
}

.members-table th:nth-child(3) {
    width: 38%;
}

.members-table th:nth-child(4) {
    width: 10%;
}

.members-table th:nth-child(5) {
    width: 20%;
}


/* CATÉGORIES */

.members-table tr.university td {
    background: #fff0e4;
}

.members-table tr.regional td {
    background: #fff9d9;
}

.members-table tr.private td {
    background: #e8f8fb;
}

.members-table tr.ems td {
    background: #eaf8e9;
}


/* INSTITUTIONS */

.institutions-link {
    margin-top: 22px;
}

.institutions-link a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 18px;

    background: #f4f9fc;
    border: 1px solid #d3e4ef;
    border-radius: 8px;

    color: #176b9e;

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

    text-decoration: none;

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

.institutions-link a:hover {
    background: #e7f2fa;
    border-color: #bcd8e9;
    transform: translateY(-1px);
}

.institutions-link span {
    font-size: 20px;
}


/* MOBILE */

@media (max-width: 650px) {

    .members-legend {
        display: grid;
        grid-template-columns: 1fr;
    }

    .legend {
        border-radius: 7px;
    }

    .members-table {
        min-width: 700px;
    }

    .members-table th,
    .members-table td {
        padding: 9px 10px;
        font-size: 12px;
    }
}

/* =========================
   CONTACT
   ========================= */

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* CARTE */

.contact-option {
    position: relative;

    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;

    gap: 16px;

    min-height: 140px;

    padding: 22px;

    background: #f8fafc;

    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;
}

.contact-option:hover {
    background: #f2f8fc;

    border-color: #bcd8e9;

    transform: translateY(-2px);

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


/* ICÔNE */

.contact-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    background: #e7f2fa;

    border-radius: 50%;

    color: #176b9e;

    font-size: 24px;
    font-weight: 700;
}


/* TEXTE */

.contact-option-content h2 {
    margin: 0 0 6px;

    color: #176b9e;

    font-size: 17px;
}

.contact-option-content p {
    margin: 0;

    color: #657784;

    font-size: 13px;
    line-height: 1.55;
}


/* FLÈCHE */

.contact-arrow {
    color: #3184b8;

    font-size: 23px;

    transition: transform 0.15s ease;
}

.contact-option:hover .contact-arrow {
    transform: translateX(4px);
}


/* MOBILE */

@media (max-width: 700px) {

    .contact-options {
        grid-template-columns: 1fr;
    }

    .contact-option {
        min-height: auto;

        padding: 18px;
    }

}

@media (max-width: 450px) {

    .contact-option {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .contact-option-icon {
        width: 44px;
        height: 44px;

        font-size: 20px;
    }

    .contact-arrow {
        display: none;
    }

}