/* =========================================================
   AURELIA CRÉDIT — PAGE INSCRIPTION
   ========================================================= */

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

:root {
    --purple: #7041a5;
    --purple-dark: #542d80;
    --purple-light: #f1eafa;
    --purple-soft: #f7f3fa;

    --text: #292331;
    --text-light: #77717f;

    --border: #e8e3ed;
    --background: #f5f3f8;
    --white: #ffffff;

    --success: #16834b;
    --success-light: #edf9f2;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "Poppins", sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(112, 65, 165, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #faf9fc 0%,
            var(--background) 100%
        );

    color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 3px 18px rgba(50, 35, 65, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header .container {
    width: 100%;
    max-width: 1180px;

    min-height: 76px;

    margin: 0 auto;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--purple-dark);

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.logo span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    box-shadow:
        0 7px 18px rgba(112, 65, 165, 0.25);
}


/* =========================================================
   RETOUR ACCUEIL
   ========================================================= */

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #ffffff;

    color: var(--purple-dark);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.back-home:hover {
    background: var(--purple-soft);

    border-color: #d9cbe5;

    color: var(--purple);

    box-shadow:
        0 5px 14px rgba(80, 45, 120, 0.08);
}

.back-home:active {
    transform: scale(0.97);
}


/* =========================================================
   PAGE INSCRIPTION
   ========================================================= */

.signup-page {
    width: 100%;

    padding: 55px 20px 70px;
}

.signup-page > .container {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;
}


/* =========================================================
   CARTE PRINCIPALE
   ========================================================= */

.signup-card {
    position: relative;

    width: 100%;

    padding: 38px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        0 20px 55px rgba(50, 32, 70, 0.10),
        0 4px 12px rgba(50, 32, 70, 0.04);

    overflow: hidden;
}

.signup-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--purple-dark),
            var(--purple),
            #8c5bc0
        );
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.section-header {
    text-align: center;

    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border-radius: 50px;

    background: var(--purple-light);

    color: var(--purple-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;

    margin-bottom: 15px;
}

.section-header h1 {
    color: var(--text);

    font-size: 28px;
    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -0.7px;

    margin-bottom: 12px;
}

.section-header p {
    max-width: 520px;

    margin: 0 auto;

    color: var(--text-light);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   GRILLE FORMULAIRE
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px 18px;
}

.form-field {
    width: 100%;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #403849;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   INPUTS + SELECT
   ========================================================= */

.form-field input,
.form-field select {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid #ddd7e4;

    border-radius: 12px;

    background: #fbfafc;

    color: var(--text);

    font-family: "Poppins", sans-serif;

    font-size: 13px;
    font-weight: 500;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-field input::placeholder {
    color: #aaa4b0;

    font-weight: 400;
}

.form-field input:hover,
.form-field select:hover {
    border-color: #cfc4d9;
}

.form-field input:focus,
.form-field select:focus {
    background: #ffffff;

    border-color: var(--purple);

    box-shadow:
        0 0 0 4px rgba(112, 65, 165, 0.10);
}

.form-field select {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 22px,
        calc(100% - 13px) 22px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


/* =========================================================
   CASES À COCHER
   ========================================================= */

.checkbox-group {
    margin-top: 27px;

    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 13px;

    border: 1px solid #e5dfea;

    border-radius: 13px;

    background: var(--purple-soft);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    cursor: pointer;

    color: #68616f;

    font-size: 11px;
    line-height: 1.55;
}

.checkbox-item input {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    margin-top: 1px;

    accent-color: var(--purple);

    cursor: pointer;
}


/* =========================================================
   BOUTON PRINCIPAL
   ========================================================= */

.btn-primary {
    width: 100%;

    min-height: 53px;

    margin-top: 23px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    color: #ffffff;

    text-decoration: none;

    font-family: "Poppins", sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 9px 22px rgba(112, 65, 165, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.04);

    transform: translateY(-1px);

    box-shadow:
        0 12px 27px rgba(112, 65, 165, 0.30);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.99);

    box-shadow:
        0 5px 14px rgba(112, 65, 165, 0.20);
}


/* =========================================================
   ÉCRAN SUCCÈS
   ========================================================= */

.success-screen,
.final-screen {
    position: relative;

    width: 100%;

    padding: 40px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);

    border-radius: 22px;

    text-align: center;

    box-shadow:
        0 20px 55px rgba(50, 32, 70, 0.10),
        0 4px 12px rgba(50, 32, 70, 0.04);

    overflow: hidden;
}

.success-screen::before,
.final-screen::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--purple-dark),
            var(--purple),
            #8c5bc0
        );
}


/* =========================================================
   ICÔNE SUCCÈS
   ========================================================= */

.success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--success-light);

    border: 1px solid #cdebd9;

    color: var(--success);

    font-size: 29px;
    font-weight: 800;

    box-shadow:
        0 8px 22px rgba(22, 131, 75, 0.10);
}


/* =========================================================
   TITRES SUCCÈS
   ========================================================= */

.success-screen h2,
.final-screen h2 {
    color: var(--text);

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.4px;

    margin-bottom: 9px;
}

.success-screen > p,
.final-screen > p {
    color: var(--text-light);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   IDENTIFIANT CLIENT
   ========================================================= */

.client-id-box {
    margin-top: 25px;

    padding: 19px;

    border: 1px solid #ded3e8;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #faf7fd,
            #f4eef9
        );
}

.client-id-box span {
    display: block;

    margin-bottom: 8px;

    color: #77707f;

    font-size: 11px;
    font-weight: 600;
}

.client-id-box strong {
    display: block;

    color: var(--purple-dark);

    font-size: 23px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================================================
   BOÎTE IMPORTANT
   ========================================================= */

.important-box {
    margin-top: 18px;

    padding: 17px;

    border: 1px solid #eadfca;

    border-radius: 13px;

    background: #fffaf0;

    text-align: left;
}

.important-box strong {
    display: block;

    margin-bottom: 6px;

    color: #956d27;

    font-size: 12px;
    font-weight: 800;
}

.important-box p {
    color: #756b5b;

    font-size: 11px;

    line-height: 1.65;
}


/* =========================================================
   CONFIGURATION DU PIN
   ========================================================= */

.pin-setup {
    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #eeeaf1;

    text-align: left;
}

.pin-setup h3 {
    margin-bottom: 7px;

    color: var(--text);

    font-size: 17px;
    font-weight: 800;
}

.pin-setup > p {
    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 11px;

    line-height: 1.65;
}


/* =========================================================
   PIN INPUTS
   ========================================================= */

.pin-setup .form-field {
    margin-bottom: 17px;
}

.pin-setup .form-field input {
    letter-spacing: 5px;

    text-align: center;

    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   BOUTON FINAL
   ========================================================= */

.final-screen .btn-primary {
    margin-top: 25px;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 700px) {

    .header .container {
        min-height: 70px;

        padding: 0 18px;
    }

    .logo {
        font-size: 18px;
    }

    .logo span {
        width: 35px;
        height: 35px;

        border-radius: 10px;

        font-size: 18px;
    }

    .back-home {
        min-height: 40px;

        padding: 0 14px;

        font-size: 12px;
    }

    .signup-page {
        padding: 35px 15px 50px;
    }

    .signup-card,
    .success-screen,
    .final-screen {
        padding: 30px 24px;

        border-radius: 19px;
    }

    .section-header h1 {
        font-size: 25px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }
}


@media (max-width: 480px) {

    .header .container {
        min-height: 66px;

        padding: 0 14px;
    }

    .logo {
        gap: 8px;

        font-size: 16px;
    }

    .logo span {
        width: 32px;
        height: 32px;

        border-radius: 9px;

        font-size: 16px;
    }

    .back-home {
        min-height: 37px;

        padding: 0 11px;

        border-radius: 9px;

        font-size: 10px;
    }

    .signup-page {
        padding: 25px 12px 40px;
    }

    .signup-card,
    .success-screen,
    .final-screen {
        padding: 27px 19px;

        border-radius: 17px;

        box-shadow:
            0 14px 35px rgba(50, 32, 70, 0.09);
    }

    .section-header {
        margin-bottom: 27px;
    }

    .badge {
        padding: 6px 11px;

        font-size: 10px;

        margin-bottom: 12px;
    }

    .section-header h1 {
        font-size: 22px;

        letter-spacing: -0.4px;
    }

    .section-header p {
        font-size: 11px;

        line-height: 1.65;
    }

    .form-grid {
        gap: 16px;
    }

    .form-field label {
        font-size: 12px;

        margin-bottom: 7px;
    }

    .form-field input,
    .form-field select {
        height: 49px;

        padding: 0 13px;

        border-radius: 10px;

        font-size: 13px;
    }

    .checkbox-group {
        margin-top: 22px;

        padding: 14px;

        gap: 11px;

        border-radius: 11px;
    }

    .checkbox-item {
        gap: 9px;

        font-size: 10px;
    }

    .checkbox-item input {
        width: 16px;
        height: 16px;
    }

    .btn-primary {
        min-height: 50px;

        margin-top: 20px;

        border-radius: 10px;

        font-size: 13px;
    }

    .success-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 17px;

        font-size: 26px;
    }

    .success-screen h2,
    .final-screen h2 {
        font-size: 21px;
    }

    .success-screen > p,
    .final-screen > p {
        font-size: 11px;
    }

    .client-id-box {
        margin-top: 21px;

        padding: 16px;
    }

    .client-id-box span {
        font-size: 10px;
    }

    .client-id-box strong {
        font-size: 20px;
    }

    .important-box {
        margin-top: 15px;

        padding: 14px;
    }

    .important-box strong {
        font-size: 11px;
    }

    .important-box p {
        font-size: 10px;
    }

    .pin-setup {
        margin-top: 21px;

        padding-top: 21px;
    }

    .pin-setup h3 {
        font-size: 16px;
    }

    .pin-setup > p {
        margin-bottom: 17px;

        font-size: 10px;
    }

    .pin-setup .form-field {
        margin-bottom: 14px;
    }

    .pin-setup .form-field input {
        font-size: 16px;

        letter-spacing: 4px;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 350px) {

    .logo {
        font-size: 14px;
    }

    .logo span {
        width: 29px;
        height: 29px;

        font-size: 15px;
    }

    .back-home {
        padding: 0 9px;

        font-size: 9px;
    }

    .signup-card,
    .success-screen,
    .final-screen {
        padding: 24px 15px;
    }

    .section-header h1 {
        font-size: 20px;
    }

    .client-id-box strong {
        font-size: 18px;
    }
}