* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('images/image0.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header et Navigation */
header {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 35, 126, 0.98);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.dropdown-submenu > .dropdown-menu {
    left: 100%;
    top: 0;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Boutons */
.btn-login,
.btn-logout,
.btn-submit,
.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before,
.btn-logout::before,
.btn-submit::before,
.btn-add::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover,
.btn-logout:hover,
.btn-submit:hover,
.btn-add:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

.btn-login:hover::before,
.btn-logout:hover::before,
.btn-submit:hover::before,
.btn-add:hover::before {
    left: 100%;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Boutons secondaires (Annuler) */
.btn-cancel,
.btn-secondary {
    background: #757575;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(117, 117, 117, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cancel::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-cancel:hover,
.btn-secondary:hover {
    background: #616161;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(117, 117, 117, 0.5);
}

.btn-cancel:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

/* Boutons primaires (Se connecter) */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    color: #e0e7ff;
}

.hero-description {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-project-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-project-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-project-info p:last-child {
    margin-bottom: 0;
}

.project-description {
    font-weight: 500;
}

.project-team {
    font-style: italic;
    opacity: 0.95;
}

.project-credit {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.hero-project-info strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-header h2 {
    color: #1a237e;
    font-size: 2rem;
}

/* Barre de recherche */
.search-bar {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(26, 35, 126, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.2);
    transform: translateY(-2px);
}

.search-bar input::placeholder {
    color: #999;
}

/* Grille de soldats */
.soldiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    animation: fadeIn 0.5s ease;
    align-items: stretch;
    padding: 1rem 0;
}

.soldier-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: scaleIn 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(26, 35, 126, 0.1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.soldier-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.25);
    border-color: rgba(26, 35, 126, 0.3);
}

.soldier-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.soldier-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.soldier-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.soldier-card:hover .soldier-card-image img {
    transform: scale(1.1);
}

.soldier-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.soldier-card-content h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.soldier-card-content p {
    color: #555;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.soldier-card-content p strong {
    color: #1a237e;
    font-weight: 600;
}

.soldier-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-edit {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #da190b 0%, #c41700 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.4s ease;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    padding: 2rem 0;
}

.modal-content {
    background: #fff;
    margin: 2rem auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-large {
    max-width: 800px;
    max-height: calc(100vh - 4rem);
}

/* Contenu des modals de détail */
.soldier-detail-content,
.document-detail-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 12rem);
    min-height: 200px;
}

.modal-content.large {
    max-width: 800px;
    max-height: calc(100vh - 4rem);
}

/* Message temporaire pour les détails */
.detail-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.detail-loading::before {
    content: "⏳";
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-large {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* En-têtes de modaux modernes */
.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.modal-header h3 {
    color: #1a237e;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-header .close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #a0aec0;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.modal-header .close:hover {
    color: #1a237e;
    background: rgba(26, 35, 126, 0.1);
    transform: rotate(90deg);
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions button {
    flex: 1;
    min-height: 50px;
    font-size: 1.1rem;
}

/* Actions spécifiques pour le modal de connexion */
.login-actions {
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.login-actions button {
    flex: 1;
    min-height: 50px;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Détails du soldat */
.soldier-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.soldier-detail-info {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.3);
}

.soldier-detail-info h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.soldier-detail-info p {
    margin: 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 2;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
}

.soldier-detail-info strong {
    color: white;
    font-weight: 700;
    display: inline-block;
    min-width: 200px;
    font-size: 1.1rem;
}

.soldier-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.soldier-image-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.soldier-image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.soldier-detail-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.soldier-image-container:hover img {
    transform: scale(1.1);
}

.soldier-detail-images p {
    text-align: center;
    color: white;
    font-style: italic;
    font-weight: 600;
    margin: 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.soldier-image-container:hover p {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    letter-spacing: 1px;
}

.photo-info-preview {
    padding: 1rem;
    background: rgba(26, 35, 126, 0.05);
    border-top: 2px solid rgba(26, 35, 126, 0.1);
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: normal;
}

.no-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Message vide */
.empty-message {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.empty-message h3 {
    color: #1a237e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-message p {
    color: #666;
    font-size: 1.1rem;
}

/* Liste des utilisateurs */
.users-list {
    display: grid;
    gap: 1rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease;
}

.user-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-card-info {
    flex: 1;
}

.user-card-info h3 {
    color: #1a237e;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.user-card-info p {
    color: #666;
    font-size: 0.95rem;
}

.user-role-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.user-role-badge.eleve {
    background: #4caf50;
    color: #fff;
}

.user-role-badge.prof {
    background: #2196f3;
    color: #fff;
}

.user-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete-user {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-delete-user:hover {
    background: #da190b;
}

/* Zone d'upload de photos */
.photo-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    position: relative;
    min-height: 150px;
}

.photo-upload-zone:hover {
    border-color: #1a237e;
    background: #f0f0f0;
}

.photo-upload-zone.drag-over {
    border-color: #4caf50;
    background: #e8f5e9;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
}

.upload-placeholder p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.upload-placeholder small {
    color: #999;
    font-size: 0.85rem;
}

.upload-preview {
    position: relative;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-remove-photo:hover {
    background: #da190b;
    transform: scale(1.1);
}

/* Lightbox pour agrandir les photos */
.lightbox-modal {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.lightbox-modal[style*="display: flex"] {
    display: flex !important;
}

.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-info h3 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lightbox-info p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.lightbox-info p strong {
    color: #1a237e;
    font-weight: 600;
}

.lightbox-info p em {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #1a237e;
}

/* Info preview sur les photos */
.photo-info-preview {
    padding: 0.8rem 1rem;
    background: rgba(26, 35, 126, 0.05);
    border-top: 1px solid rgba(26, 35, 126, 0.1);
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .soldiers-grid {
        grid-template-columns: 1fr;
    }

    .soldier-detail-info {
        padding: 1.5rem;
    }

    .soldier-detail-info h3 {
        font-size: 2rem;
    }

    .soldier-detail-info p {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .soldier-detail-info strong {
        min-width: auto;
        margin-bottom: 0.3rem;
    }

    .soldier-detail-images {
        grid-template-columns: 1fr;
    }

    .soldier-detail-images img {
        height: 250px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
    
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
}

/* Styles pour les documents */
.document-description {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

.document-file-display {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.file-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

.file-info-display {
    text-align: center;
    padding: 1rem;
}

.file-info-display .file-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.file-info-display p {
    margin: 0.5rem 0;
    color: #1a237e;
}

.file-info-display small {
    color: #666;
}

.btn-download {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Affichage du contenu de document */
.document-content-display {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 10px;
    border-left: 4px solid #1a237e;
}

.document-content-display pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0.5rem 0 0 0;
}

/* Système de notifications */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideInRight 0.4s ease;
    border-left: 5px solid #1a237e;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.closing {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #1a237e;
}

.notification-message {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Types de notifications */
.notification.success {
    border-left-color: #4caf50;
}

.notification.success .notification-icon {
    color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.error .notification-icon {
    color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification.warning .notification-icon {
    color: #ff9800;
}

.notification.info {
    border-left-color: #2196f3;
}

.notification.info .notification-icon {
    color: #2196f3;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 1rem;
    }
}


/* Page Crédits */
.credits-content {
    max-width: 900px;
    margin: 0 auto;
}

.credits-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease;
    transition: all 0.3s ease;
}

.credits-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.credits-section h3 {
    color: #1a237e;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #1a237e;
    display: inline-block;
}

.credits-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Grille des crédits */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.credit-card {
    background: white;
    border: 2px solid #1a237e;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.credit-card:hover {
    background: #1a237e;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
}

.credit-card:hover .credit-icon {
    transform: scale(1.2);
}

.credit-card:hover h4,
.credit-card:hover p {
    color: white;
}

.credit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.credit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a237e;
    transition: color 0.3s ease;
}

.credit-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.credit-card p strong {
    color: #1a237e;
    font-size: 1.05rem;
}

.credit-card:hover p strong {
    color: white;
}

/* Informations de contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #1a237e;
    background: #f8f9ff;
    transform: scale(1.05);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #1a237e;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-item a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3949ab;
    text-decoration: underline;
}

/* Tags technologiques */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: white;
    color: #1a237e;
    border: 2px solid #1a237e;
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #1a237e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

/* Liste de remerciements */
.thanks-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.thanks-list li {
    padding: 0.7rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.thanks-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a237e;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer des crédits */
.credits-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 15px;
}

.credits-footer p {
    color: #666;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.credits-footer p:last-child {
    color: #1a237e;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1rem;
}

/* Responsive pour la page crédits */
@media (max-width: 768px) {
    .credits-section {
        padding: 1.5rem;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .tech-tags {
        justify-content: center;
    }
}

/* Styles améliorés pour les modals */

/* Modal de connexion moderne */
.login-modal {
    max-width: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-header h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

.login-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.login-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.login-form {
    padding: 2.5rem;
    background: white;
}

/* Inputs modernes avec animation */
.modern-input {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 2;
    transition: all 0.3s ease;
}

.modern-input input {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    transform: translateY(-2.5rem) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

.modern-input input:focus ~ .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.modern-input label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
}

/* Boutons modernes */
.login-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    flex: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    flex: 1;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.login-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Modal "Déjà connecté" */
.already-logged {
    max-width: 400px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.already-logged-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.already-logged-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.success-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

.already-logged-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.already-logged-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.already-logged-content {
    padding: 2.5rem;
    background: white;
    text-align: center;
}

.user-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.already-logged-content p {
    color: #333;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.already-logged-content strong {
    color: #4caf50;
    font-weight: 700;
}

.user-role {
    color: #666 !important;
    font-size: 0.95rem !important;
    margin-bottom: 2rem !important;
    padding: 0.5rem 1rem;
    background: #f0f8f0;
    border-radius: 20px;
    display: inline-block;
}

/* Amélioration des autres modals */
.modal-content.large {
    max-width: 800px;
}

.modal-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 2rem;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.modal-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

/* Amélioration des formulaires dans les modals */
.form-group input:not(.modern-input input),
.form-group select,
.form-group textarea {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus:not(.modern-input input),
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a237e;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
    transform: translateY(-1px);
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Responsive pour les nouveaux modals */
@media (max-width: 768px) {
    .login-modal,
    .already-logged {
        margin: 5% auto;
        width: 95%;
        max-width: none;
    }
    
    .login-header,
    .already-logged-header {
        padding: 1.5rem;
    }
    
    .login-form,
    .already-logged-content {
        padding: 1.5rem;
    }
    
    .login-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: none;
    }
}

/* Modal de connexion spécifique */
.login-modal {
    max-width: 450px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.login-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.login-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 2.5rem;
}

.login-footer {
    text-align: center;
    padding: 1.5rem 2.5rem 2.5rem;
    color: #718096;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.login-footer p {
    margin: 0;
    font-weight: 500;
}

/* Inputs modernes pour le modal de connexion */
.modern-input {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input input:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
    transform: translateY(-2px);
}

.modern-input label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    color: #a0aec0;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.5rem;
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #1a237e;
    font-weight: 600;
}
/* Contenu des modaux */
.modal-content:not(.login-modal) {
    padding: 0;
}

.modal-content:not(.login-modal) .form-group:first-of-type {
    margin-top: 0;
}

.modal-content form:not(.login-form) {
    padding: 0 2.5rem 2.5rem;
    max-height: none;
    overflow: visible;
}

/* Assurer que le modal peut défiler */
.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-radius: 25px 25px 0 0;
}

/* Styles pour les icônes SVG */
.soldier-card-image svg {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.credit-icon svg {
    transition: transform 0.3s ease;
}

.contact-icon svg {
    color: #1a237e;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    transform: scale(1.1);
    color: #3949ab;
}

/* Amélioration du close button dans le header de login */
.login-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.login-header .close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
