/* ============================================================
   DEMANDE DE COPIE - e-Kopia
   ============================================================ */


/* ============================================================
   RESET
============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fc;
    color: #111827;
    line-height: 1.5;
}


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

.copie-header {
    width: 100%;
    height: 88px;

    background: #ffffff;

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

    padding: 0 7%;

    border-bottom: 1px solid #e5e7eb;
}

.back-link {
    color: #0759d8;
    text-decoration: none;

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

    transition: 0.2s ease;
}

.back-link:hover {
    color: #003b91;
    text-decoration: underline;
}

.copie-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}


/* ============================================================
   PAGE PRINCIPALE
============================================================ */

.copie-page {
    width: 100%;
    min-height: calc(100vh - 88px);

    padding: 50px 20px 80px;
}

.copie-container {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}


/* ============================================================
   TITRE
============================================================ */

.copie-title {
    text-align: center;

    margin-bottom: 40px;
}

.copie-title > span {
    display: block;

    color: #0759d8;

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

    letter-spacing: 1px;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.copie-title h1 {
    font-size: 32px;
    font-weight: 700;

    color: #111827;

    margin-bottom: 8px;
}

.copie-title p {
    font-size: 16px;

    color: #64748b;
}

.obligatoire-info {
    display: inline-block;

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

    background: #fff8e7;
    border: 1px solid #f2c96d;

    border-radius: 6px;

    color: #9a6700;

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


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

.copie-form {
    width: 100%;
}


/* ============================================================
   SECTION
============================================================ */

.form-section {
    background: #ffffff;

    border: 1px solid #dce3ec;

    border-radius: 12px;

    padding: 30px;

    margin-bottom: 25px;

    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}


/* ============================================================
   TITRE SECTION
============================================================ */

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

    gap: 15px;

    margin-bottom: 28px;
}

.section-number {
    flex-shrink: 0;

    color: #0759d8;

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

    padding-top: 3px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 700;

    color: #111827;

    margin-bottom: 5px;
}

.section-title p {
    font-size: 13px;

    color: #64748b;
}


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

.form-grid {
    display: grid;

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

    gap: 20px 16px;
}


/* ============================================================
   GROUPE
============================================================ */

.form-group {
    display: flex;

    flex-direction: column;

    width: 100%;
}

.form-group.full {
    grid-column: 1 / -1;
}


/* ============================================================
   LABEL
============================================================ */

.form-group label {
    font-size: 13px;

    font-weight: 600;

    color: #1e293b;

    margin-bottom: 7px;
}

.form-group label span {
    color: #e53935;

    margin-left: 2px;
}


/* ============================================================
   INPUT / SELECT / TEXTAREA
============================================================ */

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

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 14px;

    outline: none;

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


/* INPUT */

.form-group input,
.form-group select {
    height: 40px;

    padding: 0 12px;
}


/* TEXTAREA */

.form-group textarea {
    min-height: 100px;

    padding: 11px 12px;

    resize: vertical;
}


/* FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0759d8;

    box-shadow: 0 0 0 3px rgba(7, 89, 216, 0.10);
}


/* PLACEHOLDER */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}


/* ============================================================
   SECTION PHOTO / ACTE
============================================================ */

.photo-info {
    background: #f8fafc;

    border: 1px dashed #cbd5e1;

    border-radius: 8px;

    padding: 15px;

    margin-bottom: 20px;

    font-size: 13px;

    color: #64748b;
}

.photo-info strong {
    color: #1e293b;
}


/* INPUT FICHIER */

.form-group input[type="file"] {
    height: auto;

    padding: 9px;

    background: #f8fafc;

    cursor: pointer;
}


/* ============================================================
   MESSAGE D'ERREUR
============================================================ */

.form-error {
    width: 100%;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    border-radius: 7px;

    padding: 12px 15px;

    margin-bottom: 20px;

    color: #be123c;

    font-size: 13px;
}


/* ============================================================
   MESSAGE DE SUCCÈS
============================================================ */

.form-success {
    width: 100%;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-radius: 7px;

    padding: 12px 15px;

    margin-bottom: 20px;

    color: #15803d;

    font-size: 13px;
}


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

.form-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 30px;
}


/* ANNULER */

.btn-cancel {
    display: inline-flex;

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

    min-height: 42px;

    padding: 0 22px;

    border: 1px solid #cbd5e1;

    border-radius: 7px;

    background: #ffffff;

    color: #475569;

    text-decoration: none;

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

    transition: 0.2s ease;
}

.btn-cancel:hover {
    background: #f8fafc;

    border-color: #94a3b8;

    color: #1e293b;
}


/* CONTINUER */

.btn-submit {
    display: inline-flex;

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

    min-height: 42px;

    padding: 0 28px;

    border: none;

    border-radius: 7px;

    background: #0759d8;

    color: #ffffff;

    font-family: inherit;

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

    cursor: pointer;

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

.btn-submit:hover {
    background: #0046b8;

    box-shadow: 0 4px 12px rgba(7, 89, 216, 0.25);
}

.btn-submit:active {
    transform: translateY(1px);
}


/* ============================================================
   FOOTER
============================================================ */

.copie-footer {
    width: 100%;

    background: #111827;

    color: #ffffff;

    padding: 20px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.copie-footer strong {
    font-size: 13px;

    white-space: nowrap;
}

.copie-footer div {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 18px;
}

.copie-footer a {
    color: #cbd5e1;

    text-decoration: none;

    font-size: 11px;

    transition: 0.2s ease;
}

.copie-footer a:hover {
    color: #ffffff;

    text-decoration: underline;
}


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

@media (max-width: 768px) {

    .copie-header {
        height: 75px;

        padding: 0 25px;
    }

    .copie-logo {
        width: 85px;
    }

    .copie-page {
        padding: 35px 15px 60px;
    }

    .copie-title h1 {
        font-size: 27px;
    }

    .form-section {
        padding: 23px 20px;
    }

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

    .form-group.full {
        grid-column: auto;
    }

    .copie-footer {
        flex-direction: column;

        text-align: center;

        padding: 20px 15px;
    }

    .copie-footer div {
        justify-content: center;
    }
}


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

@media (max-width: 480px) {

    .copie-header {
        padding: 0 15px;
    }

    .back-link {
        font-size: 13px;
    }

    .copie-logo {
        width: 75px;
    }

    .copie-page {
        padding: 30px 10px 50px;
    }

    .copie-title {
        margin-bottom: 28px;
    }

    .copie-title h1 {
        font-size: 23px;
    }

    .copie-title p {
        font-size: 14px;
    }

    .form-section {
        padding: 20px 15px;

        border-radius: 9px;
    }

    .section-title {
        gap: 10px;
    }

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

    .section-title p {
        font-size: 12px;
    }

    .form-grid {
        gap: 17px;
    }

    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }

    .copie-footer {
        padding: 18px 10px;
    }

    .copie-footer strong {
        font-size: 12px;
    }

    .copie-footer div {
        flex-direction: column;

        gap: 8px;
    }
}