/* Styles existants inchangés */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #090041;
    padding: 10px;
    z-index: 1000;
    box-sizing: border-box;
    height: 100px;
}

.logo {
    margin: 0 auto;
    max-width: 100%;
    position: absolute;
    left: 10px;
    top: 5px;
}

.logo img {
    height: 40px;
    width: auto;
}

#logo-container {
    position: absolute;
    top: 5px;
    left: 50%;
}

#logo-container img {
    width: auto;
    height: 60px;
    position: relative;
}

.flash-info {
    background-color: white;
    width: auto;
    height: 30px;
    padding: 0px 10px;
    text-align: left;
    line-height: 30px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    top: 57px;
}

.flash-info .flash-info {
    color: red;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: italic;
    position: absolute;
    margin-right: 10px;
    margin-top: 5px;
    margin-left: -10px;
    top: -3px;
    z-index: 1;
}

#logout-button {
    position: absolute;
    top: 20px;
    right: 15px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 25px;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
}

#welcome-message {
    position: absolute;
    right: 60px;
    top: 10px;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: white;
    z-index: 1000;
}


.fomulaire_connection {
    position: absolute;
    width: 35%;
    left: 30%;
    top: 25%;
}

.connection {
  min-height: 150px;
  background-color: #090041;
  color: white;
  padding: 20px;
  margin-top: 4px;
  border-radius: 10px;
  padding-bottom: 50px;
}

.connection h4 {
  border: 2px solid white;
  border-radius: 8px;
  padding: 4px;
  margin-top: 0px;
  text-align: center;
  margin-bottom: 70px;
  font-family: "Bookman old style";
  font-size: 13px; 
}

.connection input[type="text"], .connection input[type="number"], .connection input[type="password"],
.connection select {
  width: 85%;
  padding: 15px;
  margin: 8px 0;
  border: none;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.connection label {
  font-size: small;
  align-items: start;
}

.bouton_connection {
  background-color: #f3fbfd;
  color: #090041;
  border: none;
  padding: 16px;
  margin-bottom: 10px;
  width: 90%;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

#dropdown-container {
    display: flex;
    justify-content: center;
    margin: 120px 0;
    gap: 10px;
    position: relative;
}

#dropdown-container select {
    margin: 0 10px;
    padding: 10px 35px;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    width: auto;
}

#left-container {
    position: absolute;
    top: 230px;
    left: 10px;
    display: flex;
    gap: 60px;
    width: auto;
    height: 300px;
    z-index: 1;
    padding-left: 40px;
}

#left-container img {
    width: 240px;
    height: 240px;
    transition: all 0.3s ease-in-out;
}

#left-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#statistiques {
    margin: 20px 0;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
}

#stats-container {
    background-color: rgba(240, 240, 240, 0.95);
    border: 2px solid #ccc;
    border-radius: 10px;
    margin: 30px 15px 2px 15px;
    padding: 15px;
    position: relative;
    height: 200px;
    min-height: 180px;
    width: calc(100% - 60px);
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
    top: 220px;
    left: 15px;
}

.statistiques {
    position: relative;
}

.stats-title {
    position: absolute;
    top: 210px;
    left: 50px;
    background-color: white;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
}

#stats-container {
    position: relative;
}

.flash-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: flash-horizontal-scroll 18s linear infinite;
    color: black;
}

@keyframes flash-horizontal-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive avec Bootstrap - Ajouts seulement */
@media (max-width: 1200px) {
    #left-container {
        gap: 60px;
        padding-left: 20px;
    }
    
    #left-container img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 992px) {
    #left-container {
        gap: 40px;
        padding-left: 20px;
        justify-content: center;
        left: 0;
        right: 0;
    }
    
    #left-container img {
        width: 200px;
        height: 200px;
    }
    
    #dropdown-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #dropdown-container select {
        font-size: 18px;
        padding: 8px 25px;
    }
}

@media (max-width: 768px) {
    header {
        height: 120px;
    }
    
    .logo img {
        height: 35px;
    }
    
    #logo-container img {
        height: 50px;
    }
    
    #welcome-message {
        font-size: 15px;
        right: 50px;
        top: 5px;
    }
    
    #logout-button {
        top: 15px;
        font-size: 20px;
    }
    
    .flash-info {
        top: 67px;
        height: 25px;
        line-height: 25px;
    }
    
    #dropdown-container {
        margin: 140px 0 80px 0;
        gap: 15px;
    }
    
    #dropdown-container select {
        font-size: 16px;
        padding: 6px 20px;
        width: 90%;
        max-width: 300px;
    }
    
    #left-container {
        top: 280px;
        gap: 40px;
        padding-left: 20px;
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
    }
    
    #left-container img {
        width: 150px;
        height: 150px;
    }
    
    .stats-title {
        top: 240px;
        left: 30px;
    }
    
    #stats-container {
        top: 250px;
        margin: 30px 10px 2px 10px;
        width: calc(100% - 40px);
        left: 10px;
    }
}

@media (max-width: 576px) {
    header {
        height: 140px;
        padding: 5px;
    }
    
    .logo {
        left: 5px;
        top: 10px;
    }
    
    .logo img {
        height: 30px;
    }
    
    #logo-container {
        top: 10px;
    }
    
    #logo-container img {
        height: 40px;
    }
    
    #welcome-message {
        font-size: 13px;
        right: 40px;
        top: 10px;
    }
    
    #logout-button {
        top: 20px;
        right: 10px;
        font-size: 18px;
    }
    
    .flash-info {
        top: 85px;
        height: 22px;
        line-height: 22px;
        font-size: 14px;
    }
    
    #dropdown-container {
        margin: 160px 0 60px 0;
    }
    
    #dropdown-container select {
        font-size: 14px;
        padding: 5px 15px;
    }
    
    #left-container {
        top: 320px;
        gap: 20px;
        padding-left: 10px;
    }
    
    #left-container img {
        width: 120px;
        height: 120px;
    }
    
    .stats-title {
        top: 280px;
        left: 20px;
        font-size: 14px;
    }
    
    #stats-container {
        top: 290px;
        height: 150px;
        min-height: 150px;
    }
}

@media (max-width: 400px) {
    #left-container {
        gap: 15px;
    }
    
    #left-container img {
        width: 100px;
        height: 100px;
    }
    
    #dropdown-container select {
        font-size: 12px;
        padding: 4px 10px;
    }
    
.flash-info {
    font-size: 12px;
}
}