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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f6f7f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}


/* HEADER */

.site-header {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* BOUTONS */

.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    background: #2f6b45;
    color: white;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #555;
}


/* HERO */

.hero {
    padding: 90px 0;
    text-align: center;
    background: #e8f0e7;
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* ACTIVITES */

.activities {
    padding: 70px 0;
}

.activities h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 12px;
}


/* FOOTER */

footer {
    background: #222;
    color: white;
    padding: 30px 0;
    text-align: center;
}


/* MOBILE */

@media (max-width: 800px) {

    .site-header .container {
        flex-direction: column;
    }

    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
.page-container {
    width: min(900px, 92%);
    margin: 50px auto;
}

.form-card {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.form-help {
    margin-top: 20px;
}

.form-help a {
    color: #2f6b45;
    font-weight: bold;
}

.member-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.dashboard-card h2 {
    margin-bottom: 15px;
}

.dashboard-card p {
    margin-bottom: 12px;
}

.admin-notice {
    margin-top: 30px;
    padding: 25px;
    background: #fff3cd;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .member-dashboard {
        grid-template-columns: 1fr;
    }
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.members-count {
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.members-table th,
.members-table td {
    padding: 13px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.members-table th {
    background: #f1f3f1;
    font-weight: bold;
}

.members-table tbody tr:hover {
    background: #fafafa;
}

.btn-small {
    padding: 7px 11px;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e9ecef;
    font-size: 0.85rem;
}

.badge-admin {
    background: #fff3cd;
}

.badge-active {
    background: #d4edda;
}

.badge-inactive {
    background: #f8d7da;
}

.empty-table {
    text-align: center !important;
    padding: 30px !important;
    color: #777;
}

@media (max-width: 700px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        flex-direction: column;
    }

}

/*menu deroulant*/
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}
