/* =====================================================
   COMMANDE
   Permis Express EU
===================================================== */

.commande-page {
    background: #f8fafc;
    padding: 70px 0 90px;
    min-height: 70vh;
}


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

.commande-header {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.commande-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    margin-bottom: 18px;

    background: #eff6ff;
    color: #1d4ed8;

    border: 1px solid #dbeafe;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.commande-header h1 {
    margin: 0 0 14px;

    color: #0f172a;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -.7px;
}

.commande-header p {
    margin: 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.7;
}


/* =====================================================
   LAYOUT
===================================================== */

.commande-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 30px;

    max-width: 1100px;
    margin: 0 auto;
}


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

.commande-form-box {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    padding: 38px;

    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.commande-section {
    padding-bottom: 32px;
    margin-bottom: 32px;

    border-bottom: 1px solid #e2e8f0;
}

.commande-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* =====================================================
   TITRES SECTIONS
===================================================== */

.commande-section-title {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 25px;
}

.commande-section-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

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

    background: #eff6ff;
    color: #2563eb;

    border-radius: 10px;

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

.commande-section-title h2 {
    margin: 0 0 4px;

    color: #0f172a;

    font-size: 19px;
    font-weight: 750;
}

.commande-section-title p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   CHAMPS
===================================================== */

.commande-fields {
    display: grid;

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

    gap: 18px;
}

.commande-field {
    display: flex;
    flex-direction: column;
}

.commande-field label {
    margin-bottom: 7px;

    color: #334155;

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

.commande-field label span {
    color: #ef4444;
}

.commande-field input,
.commande-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    color: #0f172a;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.commande-field textarea {
    min-height: 130px;
    resize: vertical;
}

.commande-field input:focus,
.commande-field textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.commande-field input::placeholder,
.commande-field textarea::placeholder {
    color: #94a3b8;
}


/* =====================================================
   CONDITIONS
===================================================== */

.commande-conditions {
    margin-bottom: 25px;
}

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

    gap: 10px;

    color: #475569;

    font-size: 13px;
    line-height: 1.55;

    cursor: pointer;
}

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

    flex-shrink: 0;

    margin-top: 2px;

    accent-color: #2563eb;
}


/* =====================================================
   BOUTONS
===================================================== */

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

    gap: 10px;

    min-height: 50px;

    padding: 0 24px;

    border: 0;
    border-radius: 10px;

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

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.commande-btn-primary {
    background: #2563eb;
    color: #ffffff;

    box-shadow: 0 7px 18px rgba(37, 99, 235, .20);
}

.commande-btn-primary:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}

.commande-submit {
    width: 100%;
}


/* =====================================================
   RÉCAPITULATIF
===================================================== */

.commande-summary {
    align-self: start;

    position: sticky;
    top: 100px;
}

.commande-summary-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    padding: 30px;

    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.commande-summary-label {
    display: block;

    margin-bottom: 20px;

    color: #64748b;

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

    letter-spacing: 1px;
}

.commande-summary-icon {
    width: 54px;
    height: 54px;

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

    margin-bottom: 18px;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 14px;

    font-size: 22px;
}

.commande-summary-card h2 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 750;
}

.commande-summary-card > p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}

.commande-summary-divider {
    height: 1px;

    margin: 24px 0;

    background: #e2e8f0;
}

.commande-summary-price {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.commande-summary-price span {
    color: #64748b;

    font-size: 14px;
}

.commande-summary-price strong {
    color: #0f172a;

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

.commande-summary-security {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #e2e8f0;

    color: #16a34a;

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


/* =====================================================
   AIDE
===================================================== */

.commande-summary-help {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 18px;
    padding: 18px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.commande-summary-help > i {
    margin-top: 3px;

    color: #2563eb;
}

.commande-summary-help strong {
    display: block;

    margin-bottom: 5px;

    color: #1e3a8a;

    font-size: 13px;
}

.commande-summary-help p {
    margin: 0 0 8px;

    color: #475569;

    font-size: 12px;
    line-height: 1.5;
}

.commande-summary-help a {
    color: #2563eb;

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

    text-decoration: none;
}


/* =====================================================
   ERREUR
===================================================== */

.commande-error {
    max-width: 600px;

    margin: 50px auto;

    padding: 50px 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    text-align: center;

    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.commande-error-icon {
    width: 60px;
    height: 60px;

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

    margin: 0 auto 20px;

    background: #fef2f2;
    color: #dc2626;

    border-radius: 50%;

    font-size: 24px;
}

.commande-error h1 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 25px;
}

.commande-error p {
    margin: 0 0 25px;

    color: #64748b;

    line-height: 1.6;
}


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

@media (max-width: 850px) {

    .commande-layout {
        grid-template-columns: 1fr;
    }

    .commande-summary {
        position: static;

        grid-row: 1;
    }

    .commande-form-box {
        grid-row: 2;
    }

}


@media (max-width: 600px) {

    .commande-page {
        padding: 45px 0 60px;
    }

    .commande-header {
        margin-bottom: 30px;
    }

    .commande-header h1 {
        font-size: 29px;
    }

    .commande-header p {
        font-size: 14px;
    }

    .commande-form-box {
        padding: 25px 18px;

        border-radius: 16px;
    }

    .commande-summary-card {
        padding: 24px;

        border-radius: 16px;
    }

    .commande-fields {
        grid-template-columns: 1fr;
    }

    .commande-section-title h2 {
        font-size: 17px;
    }

}