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

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ecf0f1;
    padding: 20px;
    border-bottom: 2px solid #bdc3c7;
    min-height: 80px;
}

header h1 {
    color: #2c3e50;
    margin-left: 10px;
    font-size: 24px;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.logo-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    font-style: italic;
    line-height: 1.2;
    max-width: 500px;
}

.logo-subtitle.typewriter {
    border-right: 2px solid #666;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #666; }
    51%, 100% { border-color: transparent; }
}

#switchChercheur {
    padding: 10px 16px;
    font-size: 16px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#switchChercheur:hover {
    background-color: #1c5980;
}


main {
    flex: 1;
    padding: 30px 20px;
}

h3 {
    margin-bottom: 10px;
    color: #34495e;
}

.content-container select, button:not(#switchChercheur) {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 5px;
    margin-right: 10px;
}

button:not(#switchChercheur) {
    background-color: #2980b9;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:not(#switchChercheur):hover {
    background-color: #1c5980;
}

.resultats {
    flex: 1;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prepared-queries {
    display : flex ; 
    justify-content: center;
    margin-top: 10px;
    padding: 10px;
    width : 100%;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.input-container {
    width: 25%;
    min-width: 200px;
    background-color: #6099bc;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: white;
}

.prepared-queries button {
    background-color: #2c3e50;
   
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


footer {
    text-align: center;
    padding: 5px;
    background-color: #ecf0f1;
    border-top: 2px solid #bdc3c7;
    margin-top: auto;
}
/* Section d'interaction */
.interaction-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cadre d'information des données */
.data-info-box {
    width: 280px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.info-title {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.last-update-info {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

#lastUpdateDate {
    font-weight: 600;
    color: #2980b9;
}

/* Layout horizontal */
.home-layout {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap; /* pour rester responsive */
}

/* Bloc de présentation à gauche */
.presentation {
    flex: 1;
    max-width: 50%;
    min-height : 70vh;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.presentation h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.presentation p {
    color: #34495e;
    font-size: 16px;
    line-height: 1.6;
}


.center-box {
    width: 300px;
    height: 300px;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.center-box button {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.center-box button:hover {
    background-color: #1c5980;
}

.bottom-button {
    width: 100%;
    display: bot;
    justify-content: center;
    margin: 30px 0;
}

#EnSavoirPlus {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#EnSavoirPlus:hover {
    background-color: #1a2f3a;
}

/* Styles pour la modal d'authentification */
.modal {
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    background-color: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 400px !important;
    max-width: 90% !important;
    position: relative !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    margin: auto !important;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content p {
    color: #34495e;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content p small {
    color: #7f8c8d;
    font-style: italic;
}

#authForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#adminPassword {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

#adminPassword:focus {
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.3);
}

#authForm button {
    padding: 12px;
    font-size: 16px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#authForm button:hover {
    background-color: #1c5980;
}

.error-message {
    color: #e74c3c;
    background-color: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e74c3c;
    text-align: center;
    margin-top: 10px;
}
