/* Reset des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles globaux */
body {
    background: #f2f4f8 url('RCO.jpg') center/cover no-repeat;
    font-family: Calibri, sans-serif;
    color: #082e90;
    font-size: 17px;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 150px;
}

/* Titre principal */
.title {
    text-align: center;
    color: #082e90;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Section de présentation */
#presentation {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#presentation p {
    line-height: 1.6;
    color: #082e90;
}

#presentation strong {
    color: #082e90;
}

/* Éléments de formulaire */
.required-asterisk {
    color: #850000;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    font-weight: bold;
    color: #1a2e85;
    margin-bottom: 5px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"]:focus {
    border-color: #008CBA;
    outline: none;
}

/* Champs alignés en rangée */
.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#siren {
    width: 100%;
}

#denom {
    width: 100%;
}

.input-wrapper:first-child {
    flex: 1;
    /* 25% */
}

.input-wrapper:last-child {
    flex: 3;
    /* 75% */
}

/* Bouton de soumission */
.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Lien 'Token oublié ?' */
.forgot-token-link {
    color: #0056A4;
    font-size: 14px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

/* Barre horizontale filigrane */
hr.filigrane {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

/* Message d'erreur */
.error-message {
    color: #d9534f;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

footer {
    background-color: #f2f2f2;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
}

.footer-content a {
    color: #0056a4;
    text-decoration: underline;
}

.footer-content a:focus {
    outline: 2px solid #0056a4;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-icon {
    width: 16px;
    height: 16px;
    background-color: #3E72DE;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
}

.tooltip .tooltiptext {
    width: 300px;
    visibility: hidden;
    background-color: #3E72DE;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 125%;
    /* Position au-dessus de l'icône */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #3E72DE transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

a.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.masked {
    -webkit-text-security: disc;
    /* Fonctionne sur Chrome, Safari, Edge */
}

