/* ============================================================
   association.css — ENSEM Alumni · Notre Association
   Mirrors cotisation.css design system exactly
   ============================================================ */

:root {
    --primary:       #454796;
    --primary-dark:  #232340;
    --accent:        #454796;
    --accent-glow:   rgba(69, 71, 150, 0.15);
    --accent-light:  #a5a7eb;
    --text-main:     #232340;
    --text-light:    #6b6f8a;
    --bg-light:      #f5f6fc;
    --white:         #ffffff;
    --border:        #e2e4f0;
    --radius-lg:     20px;
    --radius-md:     12px;
    --radius-sm:     8px;
    --font-display:  "OpenSans-Black", sans-serif;
    --font-body:     "OpenSans-Regular", sans-serif;
    --font-mono:     monospace;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.55s forwards;
}
.delay-1 { animation-delay: 0.12s; }

/* ── HERO (mirrors cotisation) ── */
.hero {
    position: relative;
    background: transparent;
    overflow: hidden;
    padding: 40px 24px 20px;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 12px;
}
.hero h1 .accent {
    color: var(--accent);
}
.hero-sub {
    font-size: 17px;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 24px;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* ── SUB-NAV ── */
.assoc-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 auto;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(35, 35, 64, 0.04);
}
.assoc-nav::-webkit-scrollbar {
    display: none;
}
.assoc-nav a {
    flex-shrink: 0;
    text-decoration: none;
    font-size: 13.5px;
    color: var(--text-light, #64748b);
    padding: 8px 16px;
    white-space: nowrap;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.assoc-nav a:hover {
    color: var(--primary, #0f3460);
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.assoc-nav a.active {
    color: #ffffff;
    background: var(--primary, #0f3460);
    border-color: var(--primary, #0f3460);
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.25);
}

@media (min-width: 992px) {
    .assoc-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 10px;
        padding: 14px 24px;
        overflow-x: visible;
    }
}

/* ── WRAPPER ── */
.wrapper {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SECTION LABEL (identical to cotisation) ── */
.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

/* ── SECTION ── */
.assoc-section {
    padding: 30px 0 60px;
}
.assoc-section h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 42px);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 36px;
    letter-spacing: -1px;
}

/* ── CARD (like pricing-table) ── */
.assoc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(35, 35, 64, 0.06);
    padding: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
}
.assoc-card p { margin-bottom: 10px; }
.assoc-card p:last-child { margin-bottom: 0; }
.assoc-card strong { font-weight: 700; }

/* ── TABLE (like pricing-table rows) ── */
.assoc-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(35, 35, 64, 0.06);
    margin-bottom: 12px;
}
.assoc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    transition: background 0.2s;
}
.assoc-row:last-child { border-bottom: none; }
.assoc-row:hover { background: #f8f9ff; }

.assoc-row-label {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}
.assoc-row-detail {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
    max-width: 50%;
}

/* Tag chip (like promo-tag) */
.assoc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 9px;
    border-radius: 50px;
    margin-left: 10px;
    text-transform: uppercase;
}

/* ── BANNER (like promo-banner) ── */
.assoc-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 60px;
    font-size: 14px;
    line-height: 1.5;
}
.assoc-banner strong {
    color: var(--accent-light);
    font-weight: 700;
}
.assoc-banner-text { opacity: 0.95; }

/* ── 2-COL GRID (like payment/alt grids) ── */
.assoc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ── ALT CARDS (like alt-card) ── */
.assoc-alt-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.assoc-alt-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(69, 71, 150, 0.08);
}
.assoc-alt-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 14px;
}
.assoc-alt-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.assoc-alt-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.6;
}

/* ── BUREAU BUTTONS (like pay-btn) ── */
.assoc-bureau-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.22s cubic-bezier(0.22, 0.68, 0, 1.2);
    border: 2px solid transparent;
    cursor: default;
}
.assoc-bureau-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
}
.assoc-bureau-primary {
    background: var(--primary-dark);
    color: #fff;
}
.assoc-bureau-primary .assoc-bureau-icon {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}
.assoc-bureau-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(69, 71, 150, 0.25);
}
.assoc-bureau-outline {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--border);
}
.assoc-bureau-outline .assoc-bureau-icon {
    background: var(--bg-light);
    color: var(--primary);
}
.assoc-bureau-outline:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(69, 71, 150, 0.1);
}

/* ── ID CARD (like id-help-card) ── */
.assoc-id-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    margin-bottom: 14px;
}
.assoc-id-card h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 500;
}
.assoc-id-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
}
.assoc-ca-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    padding: 0;
}
.assoc-ca-list li {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.assoc-ca-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── DIVIDER LABEL (identical to cotisation) ── */
.assoc-divider-label {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 28px;
}
.assoc-divider-label::before,
.assoc-divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── PRESIDENT LIST (inside alt-card) ── */
.assoc-presid-list {
    font-size: 13px;
    line-height: 1.6;
}
.assoc-presid {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.assoc-presid:last-child { border-bottom: none; }
.assoc-presid span:first-child { font-weight: 500; color: var(--primary-dark); }
.assoc-presid span:last-child { color: var(--text-light); white-space: nowrap; }

/* ── CONTACT BAR (identical to cotisation) ── */
.assoc-contact-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}
.assoc-contact-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.assoc-contact-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}
.assoc-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--primary);
    color: #fff;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.assoc-btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 71, 150, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .assoc-grid-2 {
        grid-template-columns: 1fr;
    }
    .assoc-contact-bar {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .assoc-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .assoc-row-detail {
        text-align: left;
        max-width: 100%;
    }
    .hero {
        padding: 80px 20px 64px;
    }
    /* Prevent long text from overflowing card boundaries */
    .assoc-card p,
    .assoc-id-card p,
    .assoc-alt-card p {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    /* CA list wraps cleanly */
    .assoc-ca-list {
        grid-template-columns: 1fr;
    }
    /* President list text wraps */
    .assoc-presid {
        flex-direction: column;
        gap: 2px;
    }
    .assoc-presid span:last-child { white-space: normal; }
}

@media (max-width: 480px) {
    /* Tighter wrapper */
    .wrapper { padding: 0 16px; }

    /* Hero tighter on tiny screens */
    .hero { padding: 60px 16px 40px; }

    /* Section tighter padding */
    .assoc-section { padding: 20px 0 40px; }

    /* Cards tighter padding */
    .assoc-card { padding: 20px; }
    .assoc-alt-card { padding: 20px; }
    .assoc-id-card { padding: 18px 16px; }

    /* Contact bar tighter */
    .assoc-contact-bar { padding: 20px 16px; }

    /* Nav tab font smaller to fit */
    .assoc-nav a { font-size: 12.5px; padding: 6px 12px; }
}

/* ── Utilities for bourse_candidature.html.twig ── */
.bourse-form-section { background:#fff; padding:2rem; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.05); margin-bottom:2rem; }
.bourse-form-section h3 { color:var(--primary); margin-bottom:1.5rem; padding-bottom:.5rem; border-bottom:2px solid #f0f0f0; display:flex; align-items:center; gap:10px; }
.bourse-file-grid { display:grid; grid-template-columns:1fr; gap:1.25rem; }
.bourse-file-card { background:#f8f9fa; border:1px solid #e0e0e0; border-radius:10px; padding:1.25rem; max-width:600px; margin:0 auto; }
.bourse-file-card label { font-weight:600; display:block; margin-bottom:.75rem; color:#333; }
.bourse-file-card input[type=file] { width:100%; }
.bourse-already { font-size:.82em; color:#155724; margin-top:6px; display:flex; align-items:center; gap:4px; }
.bourse-fichier-list { list-style:none; padding:0; margin:0; }
.bourse-fichier-list li { display:flex; align-items:center; gap:10px; padding:.6rem 0; border-bottom:1px solid #f0f0f0; }
.bourse-fichier-list li:last-child { border-bottom:none; }
.bourse-badge-ok { background:#d4edda; color:#155724; font-size:.75em; padding:2px 8px; border-radius:10px; }
.bourse-alert { padding:1rem 1.25rem; border-radius:8px; margin-bottom:1.5rem; }
.bourse-alert.info    { background:#e2eef7; color:#0c5460; border-left:4px solid #0c5460; }
.bourse-alert.success { background:#d4edda; color:#155724; border-left:4px solid #28a745; }
.bourse-alert.danger  { background:#f8d7da; color:#721c24; border-left:4px solid #dc3545; }
.bourse-alert.warning { background:#fff8e1; color:#7c5700; border-left:4px solid #f5a623; }

/* ── LEGAL DOCUMENT PROSE (statuts, règlement intérieur, caisse de secours) ──
   Ces 3 pages ont été créées le 17 août, avec cette classe : elles n'existent
   pas dans les commits front CSS antérieurs à cette date, donc cette règle
   est réappliquée manuellement à chaque revert plus ancien que le 17 août. ── */
.legal-doc {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(35, 35, 64, 0.06);
    padding: 44px 48px;
    margin-bottom: 60px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
}
.legal-doc p,
.legal-doc div {
    margin-bottom: 14px;
}
.legal-doc ul,
.legal-doc ol {
    padding-left: 28px;
    margin-bottom: 14px;
}
.legal-doc li {
    margin-bottom: 8px;
}
.legal-doc li > div {
    margin-bottom: 0;
}
.legal-doc strong {
    font-weight: 700;
}
.legal-doc > *:last-child {
    margin-bottom: 0;
}
@media (max-width: 480px) {
    .legal-doc {
        padding: 28px 20px;
    }
}

/* ── Utilities for achat_annuaire.html.twig ── */
.achat-card h2 { color: #2BC4F3 !important; text-transform: uppercase !important; font-size: 1.875rem !important; font-weight: 800 !important; font-family: OpenSans-Black, sans-serif !important; margin-bottom: 24px !important; letter-spacing: normal !important; }
.achat-divider { margin: 30px 0; height: 1px; background: var(--border); }
.achat-subtitle { font-weight: 600; color: var(--primary-dark); margin-bottom: 12px; }
.achat-text-mb { margin-bottom: 24px; }
.achat-contact-box { background: var(--bg-light); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.achat-contact-label { margin-bottom: 16px; font-weight: 600; }
.achat-btn-inline { display: inline-flex; }
.achat-btn-icon { margin-right: 8px; }

/* ── 2-COLUMN ASSOCIATION LAYOUT & SIDEBAR ── */
.assoc-layout-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.assoc-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(69, 71, 150, 0.25) transparent;
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 20px);
    padding: 1rem 0.85rem;
    box-shadow: 0 4px 32px rgba(35, 35, 64, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.assoc-sidebar::-webkit-scrollbar {
    width: 4px;
}
.assoc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(69, 71, 150, 0.2);
    border-radius: 4px;
}

.assoc-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.35rem 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin-bottom: 0.35rem;
    cursor: default;
    text-align: left;
}

.assoc-sidebar-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.assoc-sidebar-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.assoc-sidebar-current-label {
    display: none;
}

.assoc-sidebar-arrow {
    display: none;
}

.assoc-sidebar-title-text {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary, #454796);
    display: flex;
    align-items: center;
    gap: 8px;
}

.assoc-sidebar-badge {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary, #454796);
    background: var(--accent-glow, rgba(69, 71, 150, 0.1));
    padding: 3px 8px;
    border-radius: 6px;
}

.assoc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.assoc-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main, #232340);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body, "OpenSans-Regular", sans-serif);
    background: #fbfbfe;
    border: 1px solid var(--border, #e2e8f0);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(35, 35, 64, 0.02);
}

.assoc-sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.assoc-sidebar-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-glow, rgba(69, 71, 150, 0.08));
    color: var(--primary, #454796);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.assoc-sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.assoc-sidebar-chevron {
    font-size: 0.75rem;
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.assoc-sidebar-link:hover {
    background: #f4f5ff;
    border-color: var(--primary, #454796);
    color: var(--primary, #454796);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(69, 71, 150, 0.12);
}

.assoc-sidebar-link:hover .assoc-sidebar-icon {
    background: var(--primary, #454796);
    color: #ffffff;
}

.assoc-sidebar-link:hover .assoc-sidebar-chevron {
    color: var(--primary, #454796);
    transform: translateX(2px);
}

.assoc-sidebar-link.active {
    background: var(--primary, #454796);
    border-color: var(--primary, #454796);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(69, 71, 150, 0.28);
    transform: translateX(2px);
}

.assoc-sidebar-link.active .assoc-sidebar-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.assoc-sidebar-link.active .assoc-sidebar-chevron {
    color: rgba(255, 255, 255, 0.85);
}

.assoc-main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.assoc-main-content .wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.assoc-main-content .assoc-section {
    padding: 0 0 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.assoc-main-content .assoc-card,
.assoc-main-content .assoc-alt-card,
.assoc-main-content .assoc-id-card,
.assoc-main-content .assoc-banner,
.assoc-main-content .assoc-table,
.assoc-main-content .legal-doc {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .assoc-layout-container {
        grid-template-columns: 100%;
        gap: 1.25rem;
        padding: 1rem 1rem 3.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .assoc-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md, 14px);
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(35, 35, 64, 0.05);
    }

    .assoc-sidebar-toggle {
        cursor: pointer;
        padding: 0.15rem 0;
        border-bottom: none;
        margin-bottom: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .assoc-sidebar.is-open .assoc-sidebar-toggle {
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--border, #e2e8f0);
        margin-bottom: 0.5rem;
    }

    .assoc-sidebar-current-label {
        display: inline-flex;
        align-items: center;
        font-size: 12px;
        font-weight: 700;
        color: var(--primary, #454796);
        background: rgba(69, 71, 150, 0.08);
        padding: 3px 8px;
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .assoc-sidebar-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: bold;
        color: var(--primary, #454796);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(69, 71, 150, 0.08);
        transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .assoc-sidebar.is-open .assoc-sidebar-arrow {
        transform: rotate(180deg);
        background: var(--primary, #454796);
        color: #ffffff;
    }

    /* By default on mobile, the links list is collapsed/hidden */
    .assoc-sidebar .assoc-sidebar-nav {
        display: none;
    }

    /* When open, display as vertical list of links */
    .assoc-sidebar.is-open .assoc-sidebar-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        animation: fadeUp 0.22s ease-out forwards;
    }

    .assoc-sidebar-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .assoc-sidebar-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .assoc-main-content .wrapper {
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── Achat Annuaire — 2 Profils (Alumni / Recruteur) ── */
.achat-card {
    max-width: 1080px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.annuaire-intro-text {
    font-size: 1.05rem;
    color: var(--text-light, #6b6f8a);
    margin-bottom: 28px;
    line-height: 1.6;
}

.annuaire-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
    align-items: stretch;
}

@supports (grid-template-rows: subgrid) {
    .annuaire-profiles-grid {
        grid-template-rows: auto auto 1fr auto auto;
    }

    .annuaire-profile-card {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

.annuaire-profile-card {
    background: #ffffff;
    border: 1.5px solid var(--border, #e2e4f0);
    border-radius: 16px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 18px rgba(35, 35, 64, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.annuaire-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(35, 35, 64, 0.09);
    border-color: #c5c8e4;
}

.annuaire-profile-card--alumni {
    border-top: 4px solid #454796;
}

.annuaire-profile-card--recruteur {
    border-top: 4px solid #2BC4F3;
}

.annuaire-profile-badge {
    display: none;
}

.annuaire-profile-title {
    font-family: var(--font-display, "OpenSans-Black", sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark, #232340);
    margin-bottom: 12px;
    line-height: 1.25;
}

.annuaire-profile-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main, #333);
    margin-bottom: 20px;
}

.annuaire-profile-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.annuaire-profile-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #4a4d68;
    line-height: 1.45;
}

.annuaire-profile-features .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.annuaire-profile-card--alumni .check-icon {
    background: rgba(69, 71, 150, 0.12);
    color: #454796;
}

.annuaire-profile-card--recruteur .check-icon {
    background: rgba(43, 196, 243, 0.2);
    color: #0284c7;
}

.annuaire-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border, #e2e4f0);
}

.annuaire-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    min-height: 48px;
    box-sizing: border-box;
}

.annuaire-btn--primary {
    background: #454796;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(69, 71, 150, 0.25);
    border: 2px solid #454796;
}

.annuaire-btn--primary:hover {
    background: #343675;
    border-color: #343675;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(69, 71, 150, 0.35);
}

.annuaire-btn--cyan {
    background: #0284c7;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    border: 2px solid #0284c7;
}

.annuaire-btn--cyan:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.annuaire-btn--outline {
    background: transparent;
    color: #454796 !important;
    border: 1.5px solid #454796;
}

.annuaire-btn--outline:hover {
    background: rgba(69, 71, 150, 0.06);
    color: #343675 !important;
    transform: translateY(-1px);
}

.annuaire-btn--outline-cyan {
    background: transparent;
    color: #0284c7 !important;
    border: 1.5px solid #0284c7;
}

.annuaire-btn--outline-cyan:hover {
    background: rgba(43, 196, 243, 0.08);
    color: #0369a1 !important;
    transform: translateY(-1px);
}

.annuaire-profile-note {
    font-size: 0.83rem;
    color: var(--text-light, #6b6f8a);
    margin-top: 14px;
    line-height: 1.45;
    min-height: 48px;
}

.annuaire-profile-note a {
    color: #454796;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.annuaire-profile-note a:hover {
    color: #232340;
}

.annuaire-help-box {
    background: var(--bg-light, #f5f6fc);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px dashed var(--border, #e2e4f0);
}

.annuaire-help-text {
    flex: 1 1 auto;
    min-width: 260px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.annuaire-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #454796 !important;
    border: 1.5px solid #c5c8e4;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.annuaire-help-btn:hover {
    background: #454796;
    border-color: #454796;
    color: #ffffff !important;
}

@media (max-width: 820px) {
    .wrapper.assoc-section {
        padding: 20px 18px 40px 18px !important;
        box-sizing: border-box !important;
    }

    .annuaire-profiles-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto !important;
        gap: 20px;
    }

    .annuaire-profile-card {
        display: flex !important;
        flex-direction: column;
        grid-row: auto !important;
        padding: 22px 18px;
    }

    .annuaire-profile-note {
        min-height: auto;
    }

    .annuaire-help-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
        gap: 16px;
    }

    .annuaire-help-text {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .annuaire-help-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── bourse_candidature (anciennement en style inline) ── */
body .bourse-page {
    max-width: 1100px;
    margin: 0 auto;
}

body .bourse-form-section--status {
    background: #f8f9fa;
    text-align: center;
}

body .bourse-form-section__title--plain {
    justify-content: center;
    border: none;
}

body .bourse-form-section__date {
    color: #555;
    font-size: .9em;
    margin-top: .75rem;
}

body .bourse-alert--spaced {
    margin-bottom: 1.5rem;
}

body .bourse-required {
    color: #dc3545;
}

body .bourse-form-actions {
    text-align: center;
    margin-top: 2rem;
}

body .bourse-submit-btn {
    padding: 1rem 3rem;
    font-size: 1.05em;
    border-radius: 30px;
}

