/* =====================================================
   BASE
===================================================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f4f7;
    color: #333;
}

/* =====================================================
   HEADER
===================================================== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 34px;
    display: block;
}

.header-title {
    flex: 1;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 16px;
    color: #222;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 14px;
}

.nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 10px;
}

.nav a:hover {
    background: #f2f4f8;
}

.burger {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* =====================================================
   DASHBOARD
===================================================== */
.dashboard {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* =====================================================
   CARDS
===================================================== */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-left: 6px solid #fbc02d;
}

.card h3 {
    margin-top: 0;
}

/* =====================================================
   RSS / LISTES
===================================================== */
.rss-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rss-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.rss-list li:last-child {
    border-bottom: none;
}

.rss-list a {
    text-decoration: none;
    color: #222;
}

.rss-list a:hover {
    text-decoration: underline;
}

/* =====================================================
   USER CARD / ACTIONS
===================================================== */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.user-link,
.user-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f5f6fa;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.user-link:hover,
.user-action:hover {
    background: #eceff3;
}

.user-action .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.user-action .label {
    flex: 1;
}

.user-action .arrow {
    color: #bbb;
}

/* =====================================================
   ADMIN GRID
===================================================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.admin-tile {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: .2s ease;
}

.admin-tile:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* =====================================================
   FORMS
===================================================== */
.form-soft {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.form-soft input,
.form-soft textarea,
.form-soft select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e0e3eb;
    background: #f9fafc;
    font-size: 14px;
}

.form-soft input:focus,
.form-soft textarea:focus {
    outline: none;
    background: #fff;
    border-color: #fbc02d;
    box-shadow: 0 0 0 3px rgba(251,192,45,.15);
}

.btn-primary {
    background: linear-gradient(135deg, #fbc02d, #f9a825);
    color: #222;
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* =====================================================
   IFRAME HELLOASSO
===================================================== */
.iframe-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 75vh;
    border: none;
    display: block;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 700px) {

    .header-logo {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        display: none;
        border-bottom: 1px solid #e6e6e6;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }
}


/* =====================================================
   SECTIONS (Mon compte / HelloAsso)
===================================================== */
.section {
    margin-top: 28px;
}

.section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

/* séparation douce */
.divider {
    height: 1px;
    background: #eee;
    margin: 14px 0;
}

/* =====================================================
   CHIPS (enfants / classes / écoles)
===================================================== */
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-btn {
    border: 1px solid #d0d4dd;
    background: #f5f6fa;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}

.chip-btn:hover {
    background: #eceff3;
}

.chip-btn.active {
    background: #f688c4;
    border-color: #f688c4;
    color: #fff;
    font-weight: 700;
}

/* titres écoles */
.school-block {
    margin-top: 16px;
}

.school-title {
    font-size: 13px;
    font-weight: 800;
    color: #555;
    margin-bottom: 6px;
}

/* =====================================================
   BOUTONS (unifiés)
===================================================== */
.btn {
    margin-top: 10px;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #2c3e50;
    color: #fff;
}

.btn:hover {
    opacity: .95;
}

.btn.red {
    background: #c0392b;
}

.btnsave {
    margin-top: 10px;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    width: 100%;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #f688c4;
    color: #fff;
}

/* HelloAsso boutons */
.btn-primary {
    background: #4caf50;
    color: #fff;
}

.btn-secondary {
    background: #eaeaea;
    color: #333;
}

/* =====================================================
   NOTIFICATIONS (alignement clean)
===================================================== */
.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.notif-label {
    flex: 1;
    line-height: 1.4;
}

.notif-row input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #fbc02d;
}

/* =====================================================
   LISTES COMMANDES HELLOASSO
===================================================== */
.orders .order {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.orders .order:last-child {
    border-bottom: none;
}

.orders .order strong {
    display: block;
    font-weight: 700;
}

.orders .order small {
    font-size: 13px;
    color: #777;
}

/* =====================================================
   HELPERS
===================================================== */
.helper {
    font-size: 13px;
    color: #666;
}

.hidden {
    display: none !important;
}

/* ===== NAV GROUPS ===== */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-parent {
    background: none;
    border: none;
    text-align: left;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
}

.nav-parent::after {
    content: "▸";
    float: right;
    transition: transform .2s ease;
}

.nav-group.open .nav-parent::after {
    transform: rotate(90deg);
}

.nav-sub {
    display: none;
    flex-direction: column;
    background: #f7f8fb;
}

.nav-group.open .nav-sub {
    display: flex;
}

.nav-sub a {
    padding: 12px 18px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.nav-sub a:hover {
    background: #eceff3;
}