/* Styles spécifiques pour la version mobile */
@media (max-width: 768px) {
    /* Header et Navigation */
    .navbar {
        padding: 0.5rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 60px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
        font-weight: 600;
    }

    .menu-button {
        position: absolute;
        right: 1rem;
        left: auto;
        display: block;
        color: #fff;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;  /* Augmentation de la zone de clic */
        z-index: 1001;
        top: 50%;      /* Centre verticalement */
        transform: translateY(-50%);
        -webkit-tap-highlight-color: rgba(255,255,255,0.3); /* Indication visuelle du tap sur mobile */
    }

    /* Augmenter la taille de l'icône */
    .menu-button i {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #0056b3;
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

    /* Styles spécifiques pour la page des associations */
    .associations .card {
        margin-bottom: 1rem;
    }

    .associations .table-responsive {
        margin: 0 -1rem;
    }

    .associations .table {
        font-size: 0.9rem;
    }

    .associations .btn-group {
        display: flex;
        gap: 0.5rem;
    }

    .associations .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .associations .filter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .associations .filter-form .col-md-3 {
        width: 100%;
    }

    .associations .filter-form .btn {
        width: 100%;
    }

    /* Styles spécifiques pour la page des membres */
    .members .card {
        margin-bottom: 1rem;
    }

    .members .table-responsive {
        margin: 0 -1rem;
    }

    .members .table {
        font-size: 0.9rem;
    }

    .members .btn-group {
        display: flex;
        gap: 0.5rem;
    }

    .members .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .members .filter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .members .filter-form .col-md-3 {
        width: 100%;
    }

    .members .filter-form .btn {
        width: 100%;
    }

    /* Styles spécifiques pour la page des dossiers */
    .cases .card {
        margin-bottom: 1rem;
    }

    .cases .table-responsive {
        margin: 0 -1rem;
    }

    .cases .table {
        font-size: 0.9rem;
    }

    .cases .btn-group {
        display: flex;
        gap: 0.5rem;
    }

    .cases .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .cases .filter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .cases .filter-form .col-md-3 {
        width: 100%;
    }

    .cases .filter-form .btn {
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
        text-align: center;
        width: 100%;
        margin: 0;
        max-width: none;
        background-color: #f8f9fa;
    }

    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }

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

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Services Section */
    .services {
        padding: 2rem 1rem;
        background-color: #f8f9fa;
    }

    .service-card {
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--light-gray);
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
    }

    .service-card h3 {
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    /* Statistics Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
        background: var(--light-gray);
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
    }

    .stat-value {
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    /* Testimonials Section */
    .testimonials {
        padding: 2rem 1rem;
        background-color: #f8f9fa;
    }

    .testimonial-card {
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--light-gray);
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
    }

    /* Call to Action */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        background-color: var(--secondary-color);
        color: white;
    }

    .cta-buttons .btn:hover {
        background-color: var(--primary-color);
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #dee2e6;
        color: #6c757d;
    }

    /* Styles spécifiques pour la page de la communauté */
    .community .card {
        margin-bottom: 1rem;
    }

    .community .row {
        margin: 0 -0.5rem;
    }

    .community .col-md-6 {
        padding: 0 0.5rem;
    }

    .community .display-4 {
        font-size: 2rem;
    }

    .community .form-label {
        font-size: 0.9rem;
    }

    .community .form-control {
        font-size: 0.9rem;
    }

    .community .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .community .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations pour le menu mobile */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
} 