/* Style AR24 - Connexion - Copie exacte du site officiel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: #0010ff;
    text-decoration: none;
    letter-spacing: 0;
    display: inline-block;
}

.logo-img {
    height: 2rem;
    width: auto;
    display: block;
}

.header-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-links a {
    color: #212529;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.15s ease-in-out;
}

.header-links a:hover {
    color: #0010ff;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem 2rem;
    background-color: #f8f9fa;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    padding: 0;
    color: #00008C;
    text-align: center;
    line-height: 2.23rem;
    width: 100%;
    max-width: 480px;
    letter-spacing: -0.02em;
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card */
.card {
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 2.75rem;
    width: 100%;
    max-width: 840px;
}

.margin-auto {
    margin: 0 auto;
}

/* Form Labels */
.fw-500 {
    font-weight: 500;
}

label.fw-500 {
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1.1666rem;
    color: #00008C;
    font-weight: 500;
    line-height: 1.5;
}

label.fw-500:first-of-type {
    margin-top: 0;
}

/* Label with logos */
.label-with-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.label-with-logos:first-of-type {
    margin-top: 0;
}

.label-with-logos .fw-500 {
    margin: 0;
    flex: 1;
}

.logos-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.form-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Form Inputs */
#login input[type="email"],
#login input[type="password"],
#login input[type="text"] {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(1.5em + 0.75rem + 2px);
    box-sizing: border-box;
    font-family: inherit;
}

#login input[type="email"]:focus,
#login input[type="password"]:focus,
#login input[type="text"]:focus {
    color: #212529;
    background-color: #fff;
    border-color: #0010ff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 16, 255, 0.25);
}

#login input[type="email"]::placeholder,
#login input[type="password"]::placeholder,
#login input[type="text"]::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Input Container for Password */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container .password {
    padding-right: 2.5rem;
}

.visibility-toggle {
    position: absolute;
    right: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    padding: 0;
}

.visibility-toggle .icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out;
}

.visibility-toggle:hover .icon {
    opacity: 1;
}

/* Display Flex */
.display-flex {
    display: flex;
    align-items: center;
}

.mt-m {
    margin-top: 1rem;
}

.display-flex input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    margin-top: 0;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #0010ff;
    flex-shrink: 0;
}

.display-flex label {
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #212529;
    cursor: pointer;
    user-select: none;
}

/* Button */
.align-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.btn-primary {
    color: #fff;
    background-color: #0010ff;
    border-color: #0010ff;
    width: auto;
    min-width: 120px;
    padding: 0.5rem 2rem;
    height: calc(1.5em + 0.75rem + 2px);
}

.btn-primary:hover {
    color: #fff;
    background-color: #0015cc;
    border-color: #0015cc;
}

.btn-primary:focus {
    color: #fff;
    background-color: #0015cc;
    border-color: #0015cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 16, 255, 0.5);
}

.btn-primary:disabled {
    color: #6c757d;
    background-color: #e9ecef;
    border-color: #ced4da;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0.5rem 0;
}

/* Login Links */
.login-links {
    text-align: center;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 480px;
}

.login-links a {
    color: #0010ff;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0 0.5rem;
    transition: color 0.15s ease-in-out;
}

.login-links a:hover {
    color: #0015cc;
    text-decoration: underline;
}

/* Info Text */
.info-text {
    text-align: center;
    margin-top: 1.875rem;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    padding-top: 1.25rem;
    border-top: 1px solid #dee2e6;
    width: 100%;
    max-width: 480px;
}

.info-text strong {
    color: #212529;
    font-weight: 500;
}

.info-text p {
    margin-bottom: 0.5rem;
}

.info-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    padding: 2.5rem 0;
    margin-top: 2.5rem;
}

/* Section Branding */
.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-brand-left {
    flex: 1;
}

.footer-logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0010ff;
    margin-bottom: 0.75rem;
    letter-spacing: 0;
    font-family: Arial, sans-serif;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-tagline p {
    margin-bottom: 0.25rem;
}

.footer-tagline p:last-child {
    margin-bottom: 0;
}

.footer-tagline strong {
    color: #212529;
    font-weight: 500;
}

.footer-partner-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    color: #8b7fa8;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0d9f0;
    border-radius: 4px;
    background-color: #f8f6fc;
    white-space: nowrap;
}

/* Ligne de séparation */
.footer-divider {
    border-top: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

/* Contenu principal du footer */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-contact {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-contact p {
    margin-bottom: 0.25rem;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #212529;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
    line-height: 1.5;
}

.footer-nav a:hover {
    color: #0010ff;
    text-decoration: underline;
}

.footer-lang-copyright {
    align-items: flex-end;
    text-align: right;
}

.footer-languages {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.language-flag {
    font-size: 1.25rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.15s ease-in-out;
}

.language-flag:hover {
    transform: scale(1.1);
}

.footer-copyright {
    color: #6c757d;
    font-size: 0.875rem;
    text-align: right;
}

.footer-copyright p {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.footer-copyright p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #212529;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .main-content {
        padding: 2.5rem 1rem 2rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 0.875rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .logo-img {
        height: 1.75rem;
    }
    
    .header-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .main-content {
        padding: 2rem 1rem 1.5rem;
        min-height: calc(100vh - 180px);
    }
    
    .login-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
        line-height: 2rem;
    }
    
    .card {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
    }
    
    .label-with-logos {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logos-container {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .form-logo {
        height: 20px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.625rem 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .footer-branding {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .footer-logo-text {
        font-size: 2.25rem;
    }
    
    .footer-partner-logos {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .partner-logo {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.625rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-lang-copyright {
        align-items: flex-start;
        text-align: left;
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
    
    .footer-languages {
        justify-content: flex-start;
    }
    
    .footer-copyright {
        text-align: left;
    }
    
    .login-title,
    .login-links,
    .info-text {
        max-width: 100%;
    }
    
    .info-text {
        font-size: 0.8125rem;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.875rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 1.5rem;
    }
    
    .header-links {
        display: none;
    }
    
    .main-content {
        padding: 1.5rem 0.875rem 1.25rem;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.75rem;
    }
    
    .card {
        padding: 1.25rem 1rem;
        max-width: 100%;
        border-radius: 0;
    }
    
    label.fw-500 {
        font-size: 1.0625rem;
        margin-top: 0.875rem;
    }
    
    #login input[type="email"],
    #login input[type="password"],
    #login input[type="text"] {
        font-size: 0.9375rem;
        padding: 0.625rem 0.875rem;
        height: calc(1.5em + 1rem + 2px);
    }
    
    .btn-primary {
        font-size: 0.9375rem;
        padding: 0.75rem 1.5rem;
        height: calc(1.5em + 1rem + 2px);
    }
    
    .login-links {
        margin-top: 1rem;
    }
    
    .login-links a {
        display: block;
        margin: 0.375rem 0;
        font-size: 0.8125rem;
    }
    
    .info-text {
        margin-top: 1.5rem;
        font-size: 0.75rem;
        padding-top: 0.875rem;
    }
    
    .footer {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-logo-text {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-tagline {
        font-size: 0.8125rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        gap: 0.375rem;
    }
    
    .footer-nav a,
    .footer-contact {
        font-size: 0.8125rem;
    }
    
    .footer-partner-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .partner-logo {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    
    .footer-languages {
        gap: 0.375rem;
    }
    
    .language-flag {
        font-size: 1.125rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .footer-copyright {
        font-size: 0.8125rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .login-title {
        font-size: 1.375rem;
    }
    
    .card {
        padding: 1rem 0.875rem;
    }
    
    label.fw-500 {
        font-size: 1rem;
    }
    
    #login input[type="email"],
    #login input[type="password"],
    #login input[type="text"] {
        font-size: 0.875rem;
    }
    
    .footer-logo-text {
        font-size: 1.75rem;
    }
}
