* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background-color: #f5f5f5;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -webkit-user-select: none;
}

.app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.d-none{
    display: none !important;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    min-height: 80px;
}

.header.search-expanded {
    padding-bottom: 20px;
}

.header-normal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
}

.header.search-expanded .header-normal {
    display: none;
}

/* Zone de recherche expandable */
.header-search {
    width: 100%;
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.header.search-expanded .header-search {
    opacity: 1;
    pointer-events: all;
    max-height: 200px;
}

.search-back {
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-back:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

.search-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 15px;
    padding-top: 5px;
}

.search-header-line .search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0c4ca3;
}

.search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-clear:hover {
    background-color: #f0f0f0;
}

/* Filtres / Tags */
.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 5px 0;
}

.filter-tag {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-right: 16px;
}

.filter-tag:hover {
    border-color: #0c4ca3;
    background-color: #f0f7ff;
}

.filter-tag.active {
    background-color: #0c4ca3;
    border-color: #0c4ca3;
    color: #ffffff;
    font-weight: 600;
    padding-right: 32px;
}

.filter-tag.active::after {
    content: '×';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

/* Résultats de recherche */
.search-results {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    padding-top: 200px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 98;
}

.header.search-expanded ~ .main-content .search-results,
.search-results.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.search-all-results {
    display: flex;
    flex-direction: column;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.search-empty p {
    margin: 0;
    font-size: 16px;
}

.search-section {
    margin-bottom: 20px;
}

.search-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-section-count {
    background: #0c4ca3;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-photo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-title i {
    color: #0c4ca3;
    font-size: 16px;
}

.result-subtitle {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.result-badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.result-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.result-badge.adherent {
    background-color: #e0e0e0;
    color: #333;
}

.result-badge.amf {
    background-color: #0c4ca3;
    color: white;
}

/* Responsive */
@media (max-width: 375px) {
    .search-filters {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}



.menu-button {
    background: none;
    border: 2px solid #333;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button {
    background: none;
    border: 2px solid #ffffff;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:hover, .search-button:hover {
    background-color: #f0f0f0;
}

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #333;
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #333;
    left: 0;
}

.hamburger:before {
    top: -5px;
}

.hamburger:after {
    top: 5px;
}

.search-icon {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
}

.search-icon:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 6px;
    background-color: #333;
    top: 12px;
    right: -3px;
    transform: rotate(45deg);
}

.search-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo {
    height: 50px;
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 80px;
    transition: filter 0.3s ease;
}

.header.search-expanded ~ .main-content {
    filter: blur(2px);
    pointer-events: none;
}

/* Welcome Section */
.welcome-section {
    background-color: #ffffff;
    padding: 20px;
    text-align: left;
}

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Content Cards */
.content-cards {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.mb25 {
    margin-bottom: 25px;
}
.mb15 {
    margin-bottom: 15px;
}
.mb50 {
    margin-bottom: 50px;
}
.nouveaudoc-card-icon {
    display: flex;
}
.demande-status-txt1 {
    font-size: 10px;
}
.nouveaudoc-icon {
    width: 100px;
}
/* Section Header (above cards) */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.section-header .arrow-btn {
    margin-left: auto;
}

.sub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    margin-left: 0;
    margin-bottom: 0; /* Supprime l'espacement en bas */
}

.sub-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.arrow-btn, .arrow-btngrp {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.arrow-btn img {
    transform: translateY(15px);
}

/* Assemblées Card */
.assemblees-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.assemblees-card .card-title {
    color: white;
}

.assemblees-card .card-icon img {
    filter: brightness(0) invert(1);
}

.card-event {
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
}

.event-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.event-info p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

/* Le saviez-vous Card */
.saviez-vous-question {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: bold;
}

.saviez-vous-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.saviez-vous-text {
    flex: 1;
}

.saviez-vous-text p {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.lire-suite-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.discover-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.discover-link img {
    vertical-align: middle;
}

/* Alignement à droite pour les div avec align="right" */
div[align="right"] {
    text-align: right;
}

.saviez-vous-image {
    flex-shrink: 0;
    width: 120px;
}

.saviez-vous-image img {
    width: 100%;
}

/* Formations - Horizontal Scroll Images */
.formations-horizontal-scroll {
    display: flex;
    gap: 20px;
    height: 154px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.formations-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Mes formations - même style que formations-horizontal-scroll */
.mes-formations-scroll {
    display: flex;
    gap: 20px;
    height: 154px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mes-formations-scroll::-webkit-scrollbar {
    display: none;
}

.mes-manifestations-scroll {
    display: flex;
    gap: 20px;
    height: 154px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mes-manifestations-scroll::-webkit-scrollbar {
    display: none;
}

.manifestations-horizontal-scroll {
    display: flex;
    gap: 20px;
    height: 154px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.manifestations-horizontal-scroll::-webkit-scrollbar {
    display: none;
}


.content-cards .ombr {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Demandes Juridiques - Horizontal Scroll */
.demandes-horizontal-scroll {
    display: flex;
    gap: 35px;
    overflow-x: auto;
    padding: 10px 10px 10px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.demandes-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.demande-card {
    flex-shrink: 0;
    width: 55%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.demande-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.document-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.demande-card-content {
    flex: 1;
}

.demande-title {
    font-size: 12px;
    font-style: italic;
    margin: 0 0 7px 0;
    color: #333;
    line-height: 15px;
}

.demande-details {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.demande-number {
    font-weight: 500;
}

.demande-divider {
    margin: 0 8px;
    color: #666;
}

.demande-date {
    color: #333;
    font-size: 14px;
}

.demande-status-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.demande-status-label {
    font-size: 14px;
    color: #333;
}

.demande-status {
    font-size: 14px;
    font-weight: 600;
}

.demande-status.en-cours {
    color: #22c55e;
}

.demande-status.cloture {
    color: #ef4444;
}

.demande-year-block {
    position: absolute;
    bottom: 10px;
    right: 0;
    height: 40px;
    display: flex;
    align-items: flex-end;
    padding-right: 10px;
}

.vertical-separator {
    width: 1px;
    height: 100%;
    background-color: #666;
    margin-right: 10px;
}

.date-year-container {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2px;
}

.demande-date {
    color: #333;
    font-size: 14px;
}

.demande-year {
    color: #333;
    font-size: 14px;
}

/* Événements */
.evenement-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.evenement-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.evenement-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.evenement-date {
    font-size: 12px;
    color: #666;
}

/* Association Card */
.association-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.association-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.association-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.formation-thumb {
    width: 50px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.formation-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

.formation-status.inscrit {
    background-color: #dcfce7;
    color: #22c55e;
    font-weight: 500;
}

.canva-promo {
    background: linear-gradient(135deg, #00c4cc 0%, #7b68ee 100%);
    color: white;
}

.voir-toutes {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    display: block;
}

/* Manifestations */
.manifestation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.manifestation-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.manifestation-info {
    flex: 1;
}

.manifestation-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.manifestation-date {
    font-size: 12px;
    color: #666;
}

.manifestation-status.inscrit {
    background-color: #dcfce7;
    color: #22c55e;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Documents */
.documents-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.document-icon {
    font-size: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
}

.document-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.document-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0c4ca3;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.search-expanded ~ .bottom-nav {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.nav-item.active {
    color: #ffffff;
}


.nav-icon img {
    height: 30px;
}

.nav-label {
    font-size: 11px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .content-cards {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .welcome-section {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
}

/* Menu hamburger */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.menu-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.menu-user-details h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.menu-user-details p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Indicateur de synchronisation discret */
.menu-sync-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 12px;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007bff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sync-dot.success {
    background: #28a745;
}

.sync-dot.warning {
    background: #ffc107;
}

.sync-dot.offline {
    background: #dc3545;
}

.sync-dot.syncing {
    animation: pulse 1.5s ease-in-out infinite;
}

.sync-text {
    flex: 1;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.sync-refresh {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sync-refresh:hover {
    color: #007bff;
    opacity: 1;
    transform: scale(1.1);
}

.sync-refresh:active {
    transform: scale(0.9);
}

.sync-refresh.syncing {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.menu-items {
    flex: 1;
    padding: 10px 0 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item.logout {
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    color: #dc3545;
}

.menu-item.logout:hover {
    background-color: #f8d7da;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations et classes utilitaires jQuery */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.updated {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.profile-info {
    margin: 20px 0;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.profile-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item strong {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.profile-item span {
    color: #666;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    font-size: 14px;
}

.app-loader, .app-toast, .profile-modal {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
}

/* Styles pour les boutons de login avec jQuery */
.login-btn {
    transition: all 0.3s ease;
    position: relative;
}

.login-btn.loading {
    background-color: #6c757d;
    cursor: not-allowed;
}

.login-btn.success {
    background-color: #28a745;
    transform: scale(1.05);
}

.login-btn.error {
    background-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

.login-btn .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Messages toast améliorés */
.message {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    backdrop-filter: blur(10px);
}

/* Amélioration du menu hamburger avec animations */
.menu-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 12px;
}

.menu-item:hover {
    transform: translateX(8px);
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-item:active {
    transform: translateX(4px);
    background-color: #e9ecef;
}

.menu-item.logout:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* Animation du menu slide */
.side-menu {
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-overlay {
    transition: all 0.3s ease;
}

/* Toast amélioré */
.app-toast {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loader spinner */
.app-loader .spinner {
    animation: spin 1s linear infinite;
}

/* Navigation améliorée */
.bottom-nav .nav-item {
    position: relative;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bottom-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bottom-nav .nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 0 0 3px 3px;
}

.bottom-nav .nav-item.active .nav-icon img {
    filter: brightness(1.2);
}

.bottom-nav .nav-item.active .nav-label {
    font-weight: 700;
}

/* =========================== */
/* STYLES POUR ACTUALITÉS AG  */
/* =========================== */

#agImageContainer {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#agImageContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ag-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

#agImageContainer:hover .ag-image {
    transform: scale(1.02);
}

.ag-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 30%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    color: white;
    padding: 20px 15px 15px;
    transition: all 0.3s ease;
}

.ag-overlay:hover {
    background: linear-gradient(
        transparent 0%, 
        rgba(0, 0, 0, 0.4) 20%, 
        rgba(0, 0, 0, 0.9) 100%
    );
}

.ag-info {
    margin-bottom: 12px;
}

.ag-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ag-date,
.ag-lieu {
    font-size: 0.85rem;
    margin: 3px 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ag-date:before {
    content: "📅 ";
}

.ag-lieu:before {
    content: "📍 ";
}

.ag-detail-btn {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ag-detail-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ag-detail-btn:active {
    transform: translateY(0);
}

/* Badge pour marquer qu'il y a une actualité */
.ag-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

/* Bande INSCRIT dans le bloc AG */
.ag-inscrit-banner {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    opacity: 0.90;
    color: white;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    letter-spacing: 0.5px;
    z-index: 15;
    text-transform: uppercase;
    height: 30px;
}

.ag-inscrit-banner i {
    font-size: 1.1rem;
    animation: check-pulse 2s ease-in-out infinite;
}

/* Bande NON INSCRIT dans le bloc AG */
.ag-non-inscrit-banner {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    opacity: 0.90;
    color: white;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    letter-spacing: 0.5px;
    z-index: 15;
    text-transform: uppercase;
    height: 30px;
}

.ag-non-inscrit-banner i {
    font-size: 1.1rem;
    animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes check-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

@keyframes alert-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.95;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ag-overlay {
        padding: 15px 12px 12px;
    }
    
    .ag-title {
        font-size: 1rem;
    }
    
    .ag-date,
    .ag-lieu {
        font-size: 0.8rem;
    }
    
    .ag-detail-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
