/* Corrections pour le rendu HTTPS - Uniformisation des tailles */

/* Réinitialisation de la taille de base pour uniformiser */
html {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Correction des tailles de police Tailwind pour uniformiser le rendu */
.text-4xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

.text-3xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-xl {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.text-lg {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.text-base {
    font-size: 0.9rem !important;
    line-height: 1.4rem !important;
}

.text-sm {
    font-size: 0.8rem !important;
    line-height: 1.25rem !important;
}

.text-xs {
    font-size: 0.7rem !important;
    line-height: 1rem !important;
}

/* Réduction de la taille des conteneurs pour un meilleur rendu */
.container {
    max-width: 95% !important;
}

@media (min-width: 640px) {
    .container {
        max-width: 600px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 728px !important;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 980px !important;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px !important;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Corrections spécifiques pour les formulaires */
.form-input {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
}

.form-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
}

.form-button {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
}

/* Ajustements pour les espacements */
.space-y-6> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(1rem * var(--tw-space-y-reverse)) !important;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)) !important;
}

.space-y-3> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)) !important;
}

/* Corrections pour les marges et padding */
.mb-12 {
    margin-bottom: 2rem !important;
}

.mb-8 {
    margin-bottom: 1.5rem !important;
}

.mb-6 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 0.75rem !important;
}

.mb-3 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 0.375rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.py-12 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-8 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-2 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.px-8 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.px-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Corrections pour les icônes */
.w-16 {
    width: 3rem !important;
}

.h-16 {
    height: 3rem !important;
}

.w-12 {
    width: 2.5rem !important;
}

.h-12 {
    height: 2.5rem !important;
}

.w-8 {
    width: 1.75rem !important;
}

.h-8 {
    height: 1.75rem !important;
}

.w-6 {
    width: 1.25rem !important;
}

.h-6 {
    height: 1.25rem !important;
}

.w-5 {
    width: 1rem !important;
}

.h-5 {
    height: 1rem !important;
}

/* Corrections spécifiques pour la page demande d'identifiants */
.demande-identifiants-form {
    max-width: 26rem !important;
    margin: 0 auto !important;
}

.demande-identifiants-form .bg-white {
    padding: 1.5rem !important;
    border-radius: 1rem !important;
}

.demande-identifiants-form h1 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    margin-bottom: 1rem !important;
}

.demande-identifiants-form h2 {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.demande-identifiants-form p {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

/* Responsive pour les petits écrans */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .demande-identifiants-form {
        max-width: 100% !important;
    }

    .demande-identifiants-form .bg-white {
        padding: 1rem !important;
    }

    .text-4xl,
    .text-3xl,
    .text-2xl,
    .text-xl {
        font-size: 1.125rem !important;
        line-height: 1.75rem !important;
    }
}

/* Force l'affichage uniforme sur tous les navigateurs */
* {
    box-sizing: border-box !important;
}

input,
textarea,
select,
button {
    font-size: 0.875rem !important;
    font-family: inherit !important;
}

/* Corrections pour les boutons */
button,
.btn {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    line-height: 1.5 !important;
}

/* Force la cohérence des styles indépendamment de l'environnement */
body.font-poppins {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
}