/*----------------------------------------------------------------------------*/
/*                          Style for Body & HTML                             */
/*----------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap');

:root {
    --primary-color: #eaeaea;
    --secondary-color: #000000;
    --tertiary-color: #ffffff;
    --accent1-color: #fef629;
    --accent-color: #D0FF03;
    --background-color: #f4f4f4;
    --text-color: #000000;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Support tactile pour les effets hover sur mobile */
@media (hover: none) and (pointer: coarse) {
    .button-group label:active {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(100, 116, 139, 0.25);
        border-color: #64748b;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    }
    
    .button-group label:active img {
        transform: scale(1.12);
        filter: grayscale(0%) brightness(1.1);
    }
    
    .button-group label:active .label-text {
        color: #334155;
        font-weight: 700;
    }
    
    .buttSuivant:active {
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    }
    
    .buttRetour:active {
        background: linear-gradient(135deg, #64748b 0%, #475569 100%);
        box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    }
}

/* Activer les interactions tactiles */
button,
label,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Assurer que les éléments interactifs sont cliquables */
.button-group label,
.buttSuivant,
.buttRetour {
    pointer-events: auto;
    cursor: pointer;
}


/*----------------------------------------------------------------------------*/
/*                          Optimisation Images                               */
/*----------------------------------------------------------------------------*/
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    max-width: 100%;
    height: auto;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .button-group label img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
/*----------------------------------------------------------------------------*/
/*                                  Inscription                               */
/*----------------------------------------------------------------------------*/ 
.form-structor {
    background-color: var(--tertiary-color);
    border-radius: 15px;
    height: 50rem;
    width: 90rem;
    position: relative;
    overflow: hidden;
}

.form-structor::after {
    content: '';
    opacity: .8;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 1500px;   
    filter: blur(7px); 
    background-image: url('https://images.unsplash.com/photo-1512273222628-4daea6e55abb?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}


.signup {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup.slide-up {
    top: 5%;
    transform: translate(-50%, 0%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup.slide-up .form-holder,
.signup.slide-up .submit-btn,
.signup.slide-up #Type_Registration,
.signup.slide-up fieldset {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup.slide-up .form-title {
    font-size: 1em;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.signup.slide-up .form-title span {
    margin-right: 5px;
    opacity: 1;
    visibility: visible;
}


.form-title {
    color: var(--tertiary-color);
    font-size: 1.7em;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-title:hover {
    opacity: 0.8;
}

.form-title span {
    color: var(--text-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.form-holder {
    overflow: none;
    margin-top: 2rem;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.form-holder h4 {
    margin-bottom: 10px;
}

.form-holder .input {
    border-radius: 15px;
    border: 0;
    outline: none;
    box-shadow: none;
    height: 30px;
    line-height: 30px;
    padding: 8px 15px;
    border-bottom: 1px solid var(--primary-color);
    width: 100%;
    max-width: 100%;
    font-size: 14px;
}

.form-holder .input:last-child {
    border-bottom: 0;
}

.form-holder .input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.submit-btn {
    background-color:var(--secondary-color);
    color: rgba(256, 256, 256, 0.7);
    border: 0;
    border-radius: 15px;
    display: block;
    padding: 15px 45px;
    width: 100%;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}



/*----------------------------------------------------------------------------*/
/*                                RS                                          */
/*----------------------------------------------------------------------------*/
.social-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    width: 15vh;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffffc2;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 24px;
}

.social-btn img {
    width: 40px;
    height: 40px;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 0 10px;
}

.or-divider {
    font-size: 14px;
    color: #070505;
    text-align: center;
}

.email-signup {
    display: none;
    flex-direction: column;
    margin-top: 20px;
}

/*----------------------------------------------------------------------------*/
/*                                Connexion                                  */
/*----------------------------------------------------------------------------*/
.login {
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tertiary-color);
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login:not(.slide-up) {
    top: 20%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translate(-50%, 0);
    background-color: var(--tertiary-color);
    width: 200%;
    height: 250px;
    border-radius: 50%;
    z-index: 4;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.center {
    position: absolute;
    top: calc(50% - 10%);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    z-index: 5;
    transition: all 0.3s ease;
}

.center .form-title {
    color: var(--text-color);
    font-size: 1.7em;
    text-align: center;
}

.center .form-title span {
    color: var(--text-color);
    opacity: 0;
    visibility: visible;
    transition: all .3s ease;
}

.center .form-holder {
    border-radius: 15px;
    background-color: var(--tertiary-color);
    border: 1px solid var(--tertiary-color);
    overflow: hidden;
    margin-top: 50px;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.center .form-holder .input {
    border: 0;
    outline: none;
    box-shadow: none;
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    width: 100%;
    font-size: 12px;
}

.center .form-holder .input:last-child {
    border-bottom: 0;
}

.center .form-holder .input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.993);
}

.center .submit-btn {
    background-color: var(--secondary-color);
    color: rgba(256, 256, 256, 0.7);
    border: 0;
    border-radius: 15px;
    display: block;
    margin: 15px 0px;
    padding: 15px 45px;
    width: 100%;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.center .submit-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.login.slide-up {
    top: 90%;
}

.login.slide-up .center {
    top: 10%;
    transform: translate(-50%, 0%);
}

.login.slide-up .form-holder,
.login.slide-up .submit-btn,
.login.slide-up .forgot-password-link {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login.slide-up .form-title {
    font-size: 1em;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.login.slide-up .form-title span {
    margin-right: 5px;
    opacity: 1;
    visibility: visible;
}

/*----------------------------------------------------------------------------*/
/*                          Radio Button Groups                               */
/*----------------------------------------------------------------------------*/
 .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
}

/* Masquer les inputs radio natifs */
.button-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Labels personnalisés */
.button-group label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 130px;
    height: 130px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Images centrées */
.button-group label img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) brightness(0.95);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    flex-shrink: 0;
    max-width: 100%;
}

/* Texte en dessous centré */
.button-group label .label-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.75);
    text-align: center;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    line-height: 1.3;
    margin-top: auto;
}

/* Effet hover professionnel - Slate Blue */
.button-group label:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.25);
    border-color: #64748b;
    background: linear-gradient(135deg, #a7abaf 0%, #e2e8f059 100%);
}

.button-group label:hover img {
    transform: scale(1.12);
    filter: grayscale(0%) brightness(1.1);
}

.button-group label:hover .label-text {
    color: #334155;
    font-weight: 700;
}

/* État sélectionné - Professional Blue/Indigo */
.button-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #a0f532 0%, #D0FF03 100%); 
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

.button-group input[type="radio"]:checked + label img {
    transform: scale(1.15);
    filter: brightness(10) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.button-group input[type="radio"]:checked + label .label-text {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* État focus pour l'accessibilité */
.button-group input[type="radio"]:focus + label { 
    outline-offset: 3px;
}


/*----------------------------------------------------------------------------*/
/*                          Fieldset & Container                              */
/*----------------------------------------------------------------------------*/
fieldset {
    border: 0;
    padding: 15px 15px 80px 15px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 650px;
}

/*----------------------------------------------------------------------------*/
/*                          Boutons Suivant / Retour                          */
/*----------------------------------------------------------------------------*/
.buttSuivant,
.buttRetour {
    position: fixed;
    bottom: 25px;
    width: 110px;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: #1e293b;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    letter-spacing: 0.3px;
}

.buttSuivant {
    right: 25px;
}

.buttRetour {
    left: 25px;
}

.buttSuivant:hover {
    background: linear-gradient(135deg, #a0f532 0%, #D0FF03 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.buttRetour:hover {
    background: linear-gradient(135deg, #a0f532 0%, #D0FF03 100%);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
}

.buttSuivant:active,
.buttRetour:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/*----------------------------------------------------------------------------*/
/*                          Responsive Design                                 */
/*----------------------------------------------------------------------------*/

/* Desktop large (1920px+) */
@media (min-width: 1920px) {
    fieldset {
        max-width: 750px;
        gap: 20px;
        padding: 20px 20px 90px 20px;
    }
    
    .button-group label {
        width: 150px;
        height: 150px;
        padding: 18px;
    }
    
    .button-group label img {
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
    }
    
    .button-group label .label-text {
        font-size: 14px;
    }
}

/* Desktop standard (1024px - 1919px) */
@media (min-width: 1024px) and (max-width: 1919px) {
    fieldset {
        max-width: 650px;
        gap: 15px;
        padding: 15px 15px 80px 15px;
    }
    
    .button-group label {
        width: 130px;
        height: 130px;
    }
    
    .button-group label img {
        width: 60px;
        height: 60px;
    }
}

/* Tablette (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    fieldset {
        max-width: 550px;
        gap: 15px;
        padding: 15px 15px 80px 15px;
    }
    
    .button-group {
        flex: 0 0 auto;
    }
    
    .button-group label {
        width: 140px;
        height: 140px;
        padding: 15px;
        border-radius: 14px;
    }
    
    .button-group label img {
        width: 65px;
        height: 65px;
        margin-bottom: 12px;
    }
    
    .button-group label .label-text {
        font-size: 13px;
    }
    
    .buttSuivant,
    .buttRetour {
        width: 100px;
        height: 42px;
        bottom: 20px;
        font-size: 13px;
    }
}

/* Mobile large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    fieldset {
        max-width: 100%;
        gap: 15px;
        padding: 15px 15px 75px 15px;
    }
    
    .button-group {
        flex: 0 0 calc(33.333% - 10px);
        min-width: 120px;
        max-width: 150px;
    }
    
    .button-group label {
        width: 100%;
        height: 130px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .button-group label img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .button-group label .label-text {
        font-size: 12px;
    }
    
    .buttSuivant,
    .buttRetour {
        width: 95px;
        height: 40px;
        bottom: 18px;
        font-size: 12px;
    }
    
    .buttSuivant {
        right: 15px;
    }
    
    .buttRetour {
        left: 15px;
    }
}

/* Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    fieldset {
        max-width: 100%;
        gap: 12px;
        padding: 12px 12px 75px 12px;
        justify-content: space-evenly;
    }
    
    .button-group {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 105px;
        max-width: 115px;
    }
    
    .button-group label {
        width: 100%;
        height: 115px;
        padding: 10px 8px;
        border-radius: 12px;
    }
    
    .button-group label img {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }
    
    .button-group label .label-text {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .buttSuivant,
    .buttRetour {
        width: 90px;
        height: 38px;
        bottom: 15px;
        font-size: 11px;
        border-radius: 8px;
    }
    
    .buttSuivant {
        right: 12px;
    }
    
    .buttRetour {
        left: 12px;
    }
}

/* Mobile petit (jusqu'à 375px) */
@media (max-width: 375px) {
    fieldset {
        max-width: 100%;
        gap: 10px;
        padding: 10px 10px 70px 10px;
        justify-content: space-evenly;
    }
    
    .button-group {
        flex: 0 0 calc(33.333% - 7px);
        min-width: 95px;
        max-width: 105px;
    }
    
    .button-group label {
        width: 100%;
        height: 105px;
        padding: 8px 6px;
        border-radius: 10px;
    }
    
    .button-group label img {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    
    .button-group label .label-text {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .buttSuivant,
    .buttRetour {
        width: 80px;
        height: 35px;
        font-size: 10px;
        bottom: 12px;
    }
    
    .buttSuivant {
        right: 10px;
    }
    
    .buttRetour {
        left: 10px;
    }
}

/* Mobile très petit (jusqu'à 320px) */
@media (max-width: 320px) {
    fieldset {
        gap: 8px;
        padding: 8px 8px 65px 8px;
    }
    
    .button-group {
        flex: 0 0 calc(33.333% - 6px);
        min-width: 85px;
        max-width: 95px;
    }
    
    .button-group label {
        height: 95px;
        padding: 6px 5px;
    }
    
    .button-group label img {
        width: 45px;
        height: 45px;
        margin-bottom: 5px;
    }
    
    .button-group label .label-text {
        font-size: 9px;
    }
    
    .buttSuivant,
    .buttRetour {
        width: 70px;
        height: 32px;
        font-size: 9px;
    }
}
/*----------------------------------------------------------------------------*/
/*                       Chekbox - Condition Generales                        */
/*----------------------------------------------------------------------------*/
.checkbox_Registre {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrage horizontal */
    cursor: pointer;
    margin: 1rem auto; /* Marge uniforme */
    width: fit-content; /* Adapte la largeur au contenu */
    padding: 0.5rem 1rem; /* Espacement interne */
    border-radius: 8px; /* Coins arrondis */
    transition: background-color 0.3s ease; /* Animation fluide */
}

.checkbox_Registre:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Effet hover subtil */
}

.checkbox_Registre input {
    display: none;
}

.checkbox_Registre svg {
    overflow: visible;
    margin-right: 1rem;
    height: 1.2em; /* Taille légèrement augmentée */
    width: 1.2em;
    flex-shrink: 0; /* Empêche le rétrécissement */
}

.path {
    fill: none;
    stroke: var(--tertiary-color); /* Utilisation de la variable de couleur */
    stroke-width: 6; /* Épaisseur légèrement réduite */
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.45, 1); /* Animation plus douce */
    stroke-dasharray: 241 9999999;
    stroke-dashoffset: 0;
}

.checkbox_Registre input:checked~svg .path {
    stroke-dasharray: 70.5 9999999;
    stroke-dashoffset: -262.27;
    stroke: var(--accent-color); /* Changement de couleur quand coché */
}

/* Texte de la checkbox */
.checkbox_Registre span {
    font-size: 0.9rem;
    color: var(--text-color); /* Utilisation de la variable de couleur */
    transition: color 0.3s ease;
}

.checkbox_Registre input:checked~span {
    color: var(--accent-color); /* Changement de couleur du texte quand coché */
    font-weight: 500;
}

/* Version responsive */
@media (max-width: 768px) {
    .checkbox_Registre {
        margin: 0.8rem auto;
        padding: 0.4rem 0.8rem;
    }
    
    .checkbox_Registre svg {
        height: 1em;
        width: 1em;
        margin-right: 0.8rem;
    }
    
    .checkbox_Registre span {
        font-size: 0.85rem;
    }
}

/*----------------------------------------------------------------------------*/
/*                                REnitialiser le mdp                         */
/*----------------------------------------------------------------------------*/
/* ==================== */
/* LIENS ET INTERACTIONS */
/* ==================== */
.forgot-password-link {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ============= */
/* MODALES & POPUPS */
/* ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(236, 236, 236, 0.644);
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--primary-color);
    padding: 40px;
    width: 90%;
    max-width: 600px; /* plus large sur desktop */
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.inputmodal {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.close-btn {
    all: unset;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.close-btn:hover svg {
    opacity: 0.6;
}

.Modal_API {
    display: none;
    border-radius: 15px;
    border: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    line-height: 30px;
    padding: 8px 15px;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
}

/* ================= */
/* FORMULAIRES & INPUTS */
/* ================= */
.inputmodal {
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
}

.input:focus {
    outline: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

/* ================= */
/* VERSIONS RESPONSIVES */
/* ================= */
@media (max-width: 1024px) {
    .modal-content {
        padding: 35px;
        width: 95%; /* tablette */
        max-width: none;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        width: 95%;
        max-width: none; /* prend quasi toute la largeur */
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .inputmodal {
        padding: 10px;
        font-size: 15px;
    }

    .forgot-password-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        width: 98%; /* mobile */
        gap: 15px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .inputmodal {
        padding: 8px 12px;
        font-size: 14px;
    }

    .close-btn {
        top: 10px;
        right: 15px;
    }

    .Modal_API {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Messages d'état */
.loading-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: #666;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-message, .error-message, .validated-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.info-message {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.validated-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Sections d'information dans la modale */
.company-info-container {
    max-height: 400px;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.section-icon {
    font-size: 18px;
}

.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.section-content {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    font-weight: 500;
    color: #555;
    flex: 0 0 40%;
}

.info-value {
    color: #333;
    text-align: right;
    flex: 1;
}

.info-value.not-available {
    color: #999;
    font-style: italic;
}

.modal-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-button-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.modal-button-secondary:hover {
    background-color: #e0e0e0;
}

.modal-button-primary {
    background-color: #007bff;
    color: white;
}

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