/* Reset et Base Styles pour la page sécurisée */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Sécurisé */
.secure-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #4a90e2;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.secure-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #4a90e2;
}

.header-text h1 {
    color: #4a90e2;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.header-subtitle {
    color: #b0c4de;
    font-size: 0.9rem;
    margin: 0;
}

.security-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.security-badge i {
    font-size: 1.2rem;
}

/* Section de Connexion */
.login-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Formulaire de Connexion */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.form-group input:focus + i {
    color: #4a90e2;
}

/* Bouton Sécurisé */
.btn-secure {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-secure:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.btn-secure:active {
    transform: translateY(-1px);
}

/* Informations de Sécurité */
.security-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.security-info i {
    color: #2196f3;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.security-info p {
    color: #1565c0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Section des Informations */
.info-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.info-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.access-validity {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Grille d'Informations */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.info-item label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-item span {
    color: #2c3e50;
    font-weight: 600;
}

/* Styles Spéciaux */
.tomb-map {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.authorization-status {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.authorization-status i {
    color: #28a745;
    font-size: 1.5rem;
}

.authorization-status span {
    color: #155724;
    font-weight: 600;
}

.visit-notes {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.visit-notes h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.visit-notes ul {
    list-style: none;
    padding: 0;
}

.visit-notes li {
    color: #6c757d;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.visit-notes li::before {
    content: '•';
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Boutons d'Action */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-print {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-contact {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-logout {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer Sécurisé */
.secure-footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.secure-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.secure-footer .footer-section h4 {
    color: #4a90e2;
    margin-bottom: 1rem;
}

.secure-footer .footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid #4a90e2;
}

.secure-footer ul {
    list-style: none;
}

.secure-footer ul li {
    color: #b0c4de;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secure-footer ul li i {
    color: #4a90e2;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #4a90e2;
    padding-top: 1rem;
    text-align: center;
    color: #b0c4de;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-action {
        min-width: 250px;
    }
    
    .header-brand {
        gap: 0.5rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .header-text h1 {
        font-size: 1.4rem;
    }
    
    .security-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .secure-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .info-header h2 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-section {
    animation: fadeIn 0.6s ease;
}

.info-card {
    animation: fadeIn 0.6s ease;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
.btn-secure:focus-visible,
.btn-action:focus-visible,
input:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}
