* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: #f4f6f8;
            font-family: Arial, sans-serif;
            color: #111827;
        }

        .page {
            max-width: 520px;
            margin: 0 auto;
            padding: 28px 16px 50px;
        }

        .header {
            margin-bottom: 24px;
        }

        .header h1 {
            margin: 0;
            font-size: 26px;
        }

        .header small {
            display: block;
            margin-top: 5px;
            color: #6b7280;
            font-size: 14px;
        }

        /* -----------------------------------------------------------------------
        Navigation des semaines
        ----------------------------------------------------------------------- */

        .week-navigation {
            display: grid;
            grid-template-columns:
                38px
                minmax(0, 1fr)
                38px;

            align-items: stretch;
            gap: 6px;

            margin-bottom: 18px;
        }

        .week-nav {
            display: grid;
            grid-template-columns:
                repeat(7, minmax(0, 1fr));

            gap: 6px;
        }

        .week-arrow {
            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 12px;

            background: #e5e7eb;
            color: #111827;

            text-decoration: none;

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

            box-shadow:
                0 2px 8px
                rgba(0, 0, 0, .05);
        }

        .week-arrow:hover {
            background: #111827;
            color: white;
        }

        .week-day {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            min-height: 58px;
            min-width: 0;
            border-radius: 12px;

            background: white;
            color: #6b7280;

            text-decoration: none;

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

            box-shadow:
                0 2px 8px
                rgba(0, 0, 0, .05);
        }

        .week-day strong {
            margin-top: 3px;
            font-size: 17px;
            color: #111827;
        }

        .week-day.active {
            background: #111827;
            color: white;
        }

        .week-day.active strong {
            color: white;
        }

        .day-total {
            background: #111827;
            color: white;
            border-radius: 16px;
            padding: 17px 20px;
            margin-bottom: 42px;

            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .day-total span {
            font-size: 15px;
        }

        .day-total strong {
            font-size: 25px;
            white-space: nowrap;
        }


        .download-timesheet {
            display: flex;
            align-items: center;
            justify-content: center;

            width: 100%;
            min-height: 54px;

            margin-bottom: 42px;

            border-radius: 11px;

            background: #2563eb;
            color: white;

            text-decoration: none;
            font-size: 16px;
            font-weight: 700;
        }

        .cards {
            display: grid;
            gap: 46px;
        }

       .card {
            position: relative;
            background: white;
            border-radius: 18px;
            padding: 36px 22px 22px;

            box-shadow:
                0 6px 22px
                rgba(0, 0, 0, .07);
        }

        .card.saved {
            background: #fafafa;
        }

        .card.editing {
            background: white;
        }

        .card-number {
            position: absolute;

            top: -25px;
            left: 50%;

            transform: translateX(-50%);

            width: 52px;
            height: 52px;

            border-radius: 50%;

            background: #111827;
            color: white;

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

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

            border: 5px solid #f4f6f8;

            box-shadow:
                0 4px 14px
                rgba(0, 0, 0, .22);

            z-index: 5;
        }

        .field {
            margin-bottom: 19px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-size: 17px;
            font-weight: 700;
        }

        input {
            width: 100%;
            height: 52px;

            border: 1px solid #d1d5db;
            border-radius: 11px;

            padding: 0 14px;

            font-size: 17px;
            background: white;
            color: #111827;
        }

        input:focus {
            outline: none;
            border-color: #2563eb;
        }

        .tagify {
            width: 100% !important;
            min-height: 54px;

            border: 1px solid #d1d5db;
            border-radius: 11px;

            background: white;
            padding: 3px 6px;

            font-size: 17px;
        }

        .tagify:focus-within {
            border-color: #2563eb;
        }

        .tagify__input {
            min-width: 180px;
            padding: 10px 8px;
            margin: 0;
        }

        .tagify__tag {
            margin: 3px;
        }

        .tagify__tag > div {
            border-radius: 7px;
        }

        .tagify__dropdown {
            border-radius: 11px;
            overflow: hidden;
        }

        .tagify__dropdown__item {
            padding: 11px 13px;
            font-size: 16px;
        }

        .time-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .duration {
            background: #f3f4f6;
            font-weight: 700;
        }

        .saved-client {
            min-height: 52px;

            border: 1px solid #e5e7eb;
            border-radius: 11px;

            background: #f4f4f5;

            padding: 14px;

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

        .saved-client small {
            display: block;
            margin-top: 4px;
            color: #6b7280;
            font-size: 13px;
            font-weight: 400;
        }

        .saved-value {
            background: #f4f4f5;
        }

        .buttons {
            display: grid;
            gap: 11px;
            margin-top: 5px;
        }

        .start-actions {
            display: grid;
            gap: 11px;
            margin-bottom: 42px;
        }

        .saved-actions,
        .edit-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 6px;
        }

        button {
            width: 100%;
            min-height: 54px;

            border: 0;
            border-radius: 11px;

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

            cursor: pointer;
        }

        button:disabled {
            opacity: .55;
            cursor: default;
        }

        .transport,
        .edit-card,
        .cancel-edit {
            background: #e5e7eb;
            color: #111827;
        }

        .intervention,
        .save-card {
            background: #111827;
            color: white;
        }

        .intervention-double {
            background: #7c3aed;
            color: white;
        }

        .delete-card {
            background: #fee2e2;
            color: #991b1b;
        }

        /* TRANSPORT */

        .transport-card {
            background: #eaf4ff !important;
            border: 1px solid #bfdbfe;
        }

        .transport-card .card-number {
            background: #2563eb;
        }

        .transport-card .transport-total {
            background: #dbeafe;
            font-weight: 700;
        }

        .transport-card .saved-actions {
            grid-template-columns: 1fr 1fr;
        }

        .cancel-transport {
            background: #e5e7eb;
            color: #111827;
        }


        /* TEMPS DOUBLE */

        .double-time-card {
            background: #f5f0ff !important;
            border: 1px solid #d8b4fe;
        }

        .double-time-card .card-number {
            background: #7c3aed;
        }

        .double-time-badge {
            display: inline-flex;

            margin-bottom: 18px;
            padding: 6px 10px;

            border-radius: 999px;

            background: #7c3aed;
            color: white;

            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .04em;
        }


        @media (max-width: 380px) {
            .page {
                padding-left: 12px;
                padding-right: 12px;
            }

            .card {
                padding-left: 16px;
                padding-right: 16px;
            }

            .time-row {
                gap: 9px;
            }
        }



        /* -----------------------------------------------------------------------
        Informations du client sélectionné
        ----------------------------------------------------------------------- */

        .client-selected-details {
            margin-top: 10px;
            padding: 13px 14px;

            border: 1px solid #e5e7eb;
            border-radius: 11px;

            background: #f4f4f5;

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

        .client-selected-details > strong {
            display: block;
            margin-bottom: 4px;

            font-size: 16px;
        }

        .client-selected-details span {
            display: block;
            color: #6b7280;
        }

        .client-selected-details .client-transport-time {
            margin-top: 7px;
            color: #111827;
        }



        /* -----------------------------------------------------------------------
        Option Shop des transports
        ----------------------------------------------------------------------- */

        .transport-shop-row {
            margin-bottom: 19px;
        }

        .transport-shop-option {
            display: inline-flex;
            align-items: center;
            gap: 10px;

            margin: 0;

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

            cursor: pointer;
        }

        .transport-shop-option input[type="checkbox"] {
            width: 22px;
            height: 22px;

            margin: 0;
            padding: 0;

            accent-color: #2563eb;

            cursor: pointer;
        }

        .transport-shop-option span {
            line-height: 22px;
        }