/* ==========================================================================
   Ordilano — feuille de styles visiteur
   Charte : section 6 du brief technique.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #E6F1FB;
    color: #1A1A1A;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout ------------------------------------------------------------- */

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 800px) {
    .page {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 32px;
    }
}

/* --- Colonne gauche : titre + formulaire --------------------------------- */

.left { padding: 16px 0; }

h1 {
    color: #042C53;
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.3;
}

.intro {
    color: #0a0a0a;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.code-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.code-form input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 22px;
    text-align: center;
    color: #042C53;
    background: #fff;
    border: 0.5px solid #B5D4F4;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.code-form input[type="text"]:focus {
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.20);
}

.code-form button {
    padding: 16px 24px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: #185FA5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.code-form button:hover { background: #0C447C; }
.code-form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.30);
}

/* --- Messages ------------------------------------------------------------ */

.error {
    margin: 16px 0 24px;
    padding: 12px 16px;
    background: #FCEBEB;
    color: #A32D2D;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.help {
    margin-top: 24px;
    color: #0a0a0a;
    font-size: 16px;
    line-height: 1.5;
}

/* --- Colonne droite : affiche ------------------------------------------- */

.right {
    display: flex;
    justify-content: center;
}

.right img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}

/* --- Utilitaires --------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
