* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Polices - Assurez-vous que les fichiers de polices existent dans votre dossier */
@font-face {
    font-family: 'Inter';
    src: url('../font/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Variables CSS pour les polices et couleurs */
:root {
    --primary-gradient: linear-gradient(to right, #2c5eea, #4d47e5);
    --primary-gradient-hover: linear-gradient(to right, #294eb6, #423dc2);
    --text-color: #1f2020;
    --text-secondary: #5c6872;
    --border-color: #d1d5db;
    --border-focus: #0251fac2;
    --link-color: #0946c9;
    --link-hover: #2c5eea;
    --line-color: #d0d3d8;
    --shadow-color: #d6ddec;
    --background-color: #e8efff;
}

/* Styles généraux */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

body::-webkit-scrollbar {
    display: none;
}



body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 0;
    background: var(--background-color);
}

.container {
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    margin: auto;
    box-shadow: -5px 5px 18px 8px var(--shadow-color);
    border-radius: 10px;
    min-width: 50%;
    align-items: center;
    animation: fadeIn 0.6s ease-out;
}

#logo {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    margin-bottom: 20px;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    width: 80%;
    text-align: center;
}

.title h1 {
    margin-bottom: 15px;
    font-size: 2.3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

form {
    width: 90%;
    margin-bottom: 30px;
}

.form-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.details1 {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.details1 p {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.details1- {
    width: 100%;
}

input,
select {
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 15px 12px;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 6px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border: 2px solid var(--border-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 81, 250, 0.1);
    background-color: #fff;
}

input::placeholder {
    color: #a0a4a8;
    font-weight: 400;
}

.bas {
    margin-bottom: 50px;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.bas input  {
    width: auto;
    margin-right: 10px;
    accent-color: #2c5eea;
}

.bas a{
    color: #1959b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bas a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

button {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

button:hover {
    transform: translateY(-2px);
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 12px rgba(44, 94, 234, 0.2);
}

button:active {
    transform: translateY(0);
}

.line {
    height: 1px;
    background: var(--line-color);
    margin-bottom: 20px;
}

.bad {
    display: flex;
    width: 38%;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.bad p {
    color: var(--text-color);
    font-weight: 400;
    margin: 0;
}

.bad a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.bad a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
.fin{
     color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
}

#erreur {
    display: none !important;
}

/* Animation d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibilité */
:focus-visible {
    outline: 2px solid #4d47e5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Pour les navigateurs qui ne supportent pas :focus-visible */
:focus:not(:focus-visible) {
    outline: none;
}

/* États de validation */
.success{
    border-color: #2ecc71;
}

.error {
    border-color: #e74c3c;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .container {
        animation: none;
    }
    
    button:hover {
        transform: none;
    }
}

@media (max-width: 1110px) {
    .details1 {
        width: 100%;
    }

    .title h1 {
        font-size: 1.9rem;
        font-weight: 900;
    }

    .title p {
        text-align: center;
        line-height: 1.4;
        font-size: 1rem;
    }

    .bad {
        width: 90%;
        justify-content: center;
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .container {
        width: 90%;
    }
    
    input,
    select {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    button {
        padding: 14px;
        font-size: 1rem;
    }
}