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

@font-face {
    font-family: 'Inter';
    src: url('../font/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}


:root {
    --primary-gradient: linear-gradient(to right, #2c5eea, #4d47e5);
    --primary-gradient-reverse: linear-gradient(to left, #2c5eea, #4d47e5);
    --background-gradient: linear-gradient(-25deg, #f0f7ff, #fff, #f0f7ff);
    --text-color: #282c30;
    --text-secondary: #5c6872;
    --border-color: #e1e4e8;
    --input-bg: #f9fafb;
    --shadow-color: rgba(214, 221, 236, 0.8);
    --link-color: #0946c9;
    --link-hover: #2c5eea;
    --line-color: #d0d3d8;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

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


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



body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 0;
    background: linear-gradient(-25deg, #f0f7ff, #fff, #f0f7ff);
}

.container {
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    margin: auto;
    box-shadow: -5px 5px 18px 8px #d6ddec;
    border-radius: 10px;
    min-width: 35%;
    align-items: center;
}

#logo {
    border-radius: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #2c5eea, #4d47e5);
    margin-bottom: 20px;
}

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

.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 {
    /* border: 1px solid #000; */
    display: flex;
    flex-direction: column;
    width: 90%;
}

.form-details {
    /* border: 1px solid #8b1818; */
    margin-bottom: 20px;
}

.form-details input {
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 18px 10px;
    background-color: var(--input-bg);
    font-size: 0.95rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-details input:focus {
    outline: none;
    border-color: #4d47e5;
    box-shadow: 0 0 0 3px rgba(77, 71, 229, 0.1);
    background-color: #fff;
}

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

.form-details p {
    display: flex;
    justify-content: space-between;
    width: 33%;
    /* border: 1px solid #000; */
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.form-details label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
    /* border: 1px solid #000; */
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2c5eea;
    cursor: pointer;
}

#souvenir+label {
    font-size: 0.95rem;
    font-weight: 400;
    color: #000000cb;
    cursor: pointer;
    user-select: none;
}

.check a {
    text-decoration: none;
    letter-spacing: -0px;
    color: var(--link-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

button {
    border: none;
    border-radius: 5px;
    padding: 15px;
    background: linear-gradient(to right, #2c5eea, #4d47e5);
    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;
}

button:hover {
    background: linear-gradient(to left, #2c5eea, #4d47e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 94, 234, 0.2);
}

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

.bad {
    display: flex;
    width: 80%;
    margin: auto;
    align-items: center;
    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;
    letter-spacing: -0px;
    color: var(--link-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

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


.line {
    height: 1px;
    background: var(--line-color);
    margin-bottom: 20px;
}
.fin{
    text-align: center;
     color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
}
#adrErreur,
#passErreur {
    color: red;
    margin-top: 10px;
    font-size: .9rem;
}

/* États de validation */
.form-details input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

.form-details input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.info {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    border: none;
    width: 80%;
    margin: auto;
    margin-bottom: 50px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

/* 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;
}

/* Pour mobile */
@media (max-width: 1330px) {
    .info{
        font-size: .9rem;
    }
    h1 {
        font-size: 2rem;
        font-weight: 900;
    }

    h2 {
        font-size: 1.75rem;
        font-weight: 700;
    }

    .container {
        width: 90%;
        padding: 30px 25px;
    }

    .title {
        text-align: center;
    }

    .form-details p {
        width: auto;
        justify-content: left;
        align-items: center;
    }

    .form-details label {
        margin-left: 5px;
    }

    .bad {
        width: 90%;
        justify-content: center;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .form-details input {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    button {
        padding: 14px;
        font-size: 1rem;
        font-weight: 600;
    }

    .check {
        flex-wrap: wrap;
        text-align: center;
    }

    .check a {
        font-size: 0.9rem;
        font-weight: 500;
    }

    #souvenir+label {
        font-size: 0.9rem;
        font-weight: 400;
    }
}

/* 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;
    }
}