.material-symbols-outlined,
.material-symbols-rounded,
.material-symbols-sharp,
.material-icons {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1 !important;
    box-sizing: content-box;
    overflow: hidden;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

html {
    -webkit-text-size-adjust: 100%;
}

::selection {
    background-color: #D8E2FF;
    color: #002555;
}

/* Plaques d'immatriculation façon plaque marocaine */
.plate-badge {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 2px solid #111111;
    border-radius: 6px;
    background: #FFFFFF;
    color: #111111;
    font-family: "Fira Code", monospace;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.plate-body {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.3em 0.7em;
    direction: ltr;
    unicode-bidi: isolate;
}

.plate-country {
    color: #111111;
    font-family: "Radio Canada Big", sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.plate-separator-bar {
    color: #111111;
    font-weight: 400;
}

.plate-segment {
    letter-spacing: 0.1em;
}

.plate-separator {
    opacity: 0.45;
}

.plate-letter {
    font-family: "Radio Canada Big", "Segoe UI", Tahoma, sans-serif;
    font-size: 1.2em;
    line-height: 1;
}

.plate-badge--sm {
    font-size: 0.7rem;
}

.plate-badge--sm .plate-body {
    padding: 0.2em 0.5em;
    gap: 0.25em;
}

.plate-badge--sm .plate-country {
    font-size: 0.75em;
}

.plate-badge--md {
    font-size: 0.85rem;
}

.plate-badge--lg {
    font-size: 1.05rem;
}

.plate-badge--lg .plate-body {
    padding: 0.35em 0.8em;
}

/* Évite le zoom automatique iOS sur les champs de saisie */
@media (max-width: 640px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------------------
   Documents imprimables (contrat de location, futurs devis et factures)
   ------------------------------------------------------------------------- */
.document-stage {
    width: 100%;
    overflow-x: auto;
}

/* Grille à deux colonnes du document : liée au format papier, jamais au viewport. */
.document-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    html,
    body {
        background: #ffffff !important;
    }

    .no-print {
        display: none !important;
    }

    .document-stage {
        height: auto !important;
        overflow: visible !important;
    }

    .document {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .document-grid-2 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    .document-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
