/* CSS spécifique à pointage */

    :root{
        --bg:#f4f7fb;
        --card:rgba(255,255,255,.92);
        --border:rgba(18,38,63,.08);
        --shadow:0 18px 50px rgba(15,23,42,.08);
        --ink:#18212f;
        --muted:#6b7280;
        --accent:#f4c300;
        --accent-soft:#fff6cc;
        --orange-soft:#fff1df;
        --green-soft:#edf9ef;
        --red-soft:#fff0f0;
    }

    html,
    body{
        max-width:100%;
        overflow-x:hidden;
    }

    body.fond-standard{
        background:
            radial-gradient(circle at top left, rgba(244,195,0,.14), transparent 22%),
            radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 25%),
            linear-gradient(rgba(244,247,251,.60), rgba(244,247,251,.60)),
            url("/img/image_fond.png");
        background-size:cover;
        background-position:center;
        background-attachment:fixed;
        color:var(--ink);
        min-height:100vh;
    }

    .page-wrap{
        width:100%;
        max-width:980px;
        margin:0 auto;
        padding:18px 12px 30px;
    }

    .glass{
        background:var(--card);
        backdrop-filter:blur(14px);
        border:1px solid var(--border);
        box-shadow:var(--shadow);
        border-radius:24px;
    }

    .muted{
        color:var(--muted);
    }

    .screen-card{
        padding:18px;
    }

    

    .title-main{
        font-weight:800;
        font-size:1.6rem;
        line-height:1.1;
    }
.sticky-head{
	position:sticky;
	top:0;
	z-index:5002;
}

.chantierama-header{
	max-width:1200px;
	margin:0 auto;
	padding:14px 16px 4px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:14px;
	position:relative;
	z-index:5002;
}

    .chantierama-logo-link{
        display:inline-flex;
        align-items:center;
        gap:10px;
        text-decoration:none;
        color:#111827;
        font-weight:900;
        letter-spacing:.08em;
    }

    .chantierama-logo{
        width:34px;
        height:34px;
        object-fit:contain;
        flex:0 0 auto;
    }

    .chantierama-footer{
        max-width:1200px;
        margin:0 auto;
        padding:10px 16px 22px;
        color:var(--muted);
        font-size:.82rem;
        text-align:center;
    }

    .hero{
        padding:18px 18px 0;
    }

    .hero-top{
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        gap:18px;
        flex-wrap:wrap;
        margin-bottom:14px;
    }

    .hero-tools{
        display:flex;
        align-items:flex-start;
        justify-content:flex-end;
        gap:16px;
        flex-wrap:wrap;
        margin-left:auto;
    }

	.hero-tabs-row{
		width:100%;
		display:flex;
		justify-content:flex-start;
		align-items:flex-end;
		border-bottom:1px solid rgba(18,38,63,.12);
		margin-top:4px;
		margin-bottom:0;
	}
    
	.pointage-switches{
		width:100%;
		display:grid;
		grid-template-columns:auto 1fr auto;
		align-items:end;
		column-gap:56px;
	}
	
	.pointage-switch-group{
		display:flex;
		align-items:flex-end;
		flex-wrap:nowrap;
		gap:8px;
		min-width:0;
	}
	
	.pointage-switch-group-pdf{
		justify-self:end;
	}
	
	.pointage-switch-pdf{
		margin-left:0 !important;
		flex:0 0 auto;
	}
	
    .lang-select-wrap{
        min-width:190px;
    }

    .lang-select{
        border-radius:18px 18px 0 18px;
        border:1px solid rgba(18,38,63,.14);
        background:#fff;
        font-weight:700;
        padding:.45rem .85rem;
        cursor:pointer;
    }

    .btn-chantierama{
        border-radius:18px 18px 0 18px;
        border:1px solid #111827;
        background:#fff;
        color:#111827;
        font-weight:700;
    }

    .btn-chantierama-primary{
        background:var(--accent);
    }

    .btn-probleme{
        border-color:#ef4444;
        color:#ef4444;
        background:#fff;
    }

    .btn-probleme:hover{
        background:#ef4444;
        color:#fff;
    }

    .pointage-mobile-menu-btn{
        display:none;
        border:1px solid rgba(18,38,63,.18);
        background:var(--accent);
        color:#111827;
        border-radius:14px 14px 0 14px;
        width:44px;
        height:40px;
        font-size:1.35rem;
        align-items:center;
        justify-content:center;
    }

    .pointage-switch{
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:10px 14px;
        border:1px solid rgba(18,38,63,.16);
        border-bottom:none;
        border-radius:16px 16px 0 0;
        background:var(--accent-soft);
        font-weight:900;
        cursor:pointer;
    }

    .pointage-switch:has(input:checked){
        background:var(--accent);
        box-shadow:0 10px 22px rgba(15,23,42,.10);
    }

    .pointage-switch input{
        accent-color:#111827;
    }

    .pointage-switch-pdf:hover{
        background:#f8fafc;
    }

    .pointage-cage-select{
        width:auto;
        min-width:160px;
        max-width:200px;
        flex:0 0 auto;
    }

    #btnLogout,
    #btnOpenCreateUser{
        white-space:nowrap;
    }

    .zone-group-card{
        background:rgba(255,255,255,.72);
        border:1px solid rgba(18,38,63,.10);
        border-radius:26px 26px 0 26px;
        padding:14px;
        box-shadow:var(--shadow);
    }

	.zone-group-header{
		display:flex;
		align-items:center;
		justify-content:space-between;
		gap:12px;
		margin-bottom:12px;
	}
	
	.zone-group-title{
		font-size:1.45rem;
		font-weight:900;
		margin-bottom:0;
		color:var(--ink);
		min-width:0;
		flex:1 1 auto;
	}
	
	.zone-group-actions{
		display:flex;
		flex-direction:row;
		align-items:center;
		justify-content:flex-end;
		gap:6px;
		flex:0 0 auto;
		flex-wrap:nowrap;
	}
	
	.zone-group-reserve-btn{
		width:42px;
		height:42px;
		border:none;
		background:rgba(244,195,0,.16);
		border-radius:14px 14px 0 14px;
		display:flex;
		align-items:center;
		justify-content:center;
		padding:0;
		cursor:pointer;
		transition:.12s ease;
		flex:0 0 42px;
		position:relative;
		z-index:80;
		pointer-events:auto;
	}
    .zone-group-reserve-btn:hover{
        background:rgba(244,195,0,.32);
        transform:translateY(-1px);
    }

    .zone-group-reserve-btn img{
        width:24px;
        height:24px;
        object-fit:contain;
        pointer-events:none;
    }

    .zone-card{
        position:relative;
        overflow:hidden;
        border:1px solid rgba(18,38,63,.08);
        background:#fff;
        border-radius:18px 18px 0 18px;
        padding:14px;
        box-shadow:none;
        cursor:pointer;
        touch-action:pan-y;
        user-select:none;
        -webkit-user-select:none;
        -webkit-touch-callout:none;
        -webkit-tap-highlight-color:transparent;
        transition:.15s ease;
        min-width:0;
    }

    .zone-card,
    .zone-card *{
        user-select:none;
        -webkit-user-select:none;
        -webkit-touch-callout:none;
    }

    .zone-card:hover{
        transform:translateY(-1px);
    }

    .zone-card.pointed-today{
        background:var(--accent);
    }

    .zone-top,
    .zone-top-3cols{
        display:grid;
        grid-template-columns:minmax(0, 1fr) auto auto;
        align-items:start;
        gap:12px;
        margin-bottom:6px;
        min-width:0;
    }

    .zone-task{
		font-weight:700;
		min-width:0;
		overflow-wrap:break-word;
		word-break:normal;
		hyphens:auto;
	}

    .zone-card-photos{
        display:flex;
        gap:5px;
        flex-wrap:wrap;
        justify-content:flex-start;
        align-content:flex-start;
        min-width:34px;
        max-width:none;
    }

    .zone-card-photo-thumb{
        width:34px;
        height:34px;
        flex:0 0 34px;
        object-fit:cover;
        border-radius:6px 6px 0 6px;
        border:none;
        cursor:pointer;
        overflow:hidden;
        display:block;
    }

    .zone-card-photo-alert{
        border:2px solid #dc2626;
    }

    .zone-card-photo-add{
        width:34px;
        height:34px;
        flex:0 0 34px;
        border:2px dashed #111827;
        border-radius:6px 6px 0 6px;
        background:#fff;
        color:var(--accent);
        font-size:1.9rem;
        font-weight:900;
        line-height:1;
        display:flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        padding:0;
        overflow:hidden;
    }

    .zone-card-photo-add-plus{
        display:block;
        line-height:1;
        font-size:1.9rem;
        font-weight:900;
        color:var(--accent);
        transform:translateY(-1px);
    }

    .zone-card-badges{
        display:flex;
        align-items:flex-start;
        justify-content:flex-end;
        gap:6px;
        flex-wrap:wrap;
        flex:0 0 auto;
        min-width:0;
        margin-left:auto;
    }

    .badge-soft{
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:6px 10px;
        border-radius:999px;
        font-size:.78rem;
        font-weight:700;
        border:1px solid rgba(18,38,63,.08);
        background:#fff;
        max-width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
    }

    .badge-cut{
        border-radius:12px 12px 0 12px;
    }

    .badge-warning-soft{
        background:var(--accent-soft);
    }

    .badge-danger-soft{
        background:var(--red-soft);
    }

    .badge-chantierama{
        background:var(--accent);
        color:#111827;
        border-color:rgba(17,24,39,.15);
    }

    .zone-card-comments{
        width:100%;
        margin-top:10px;
        display:flex;
        justify-content:flex-start;
        align-items:baseline;
        gap:8px;
        flex-wrap:wrap;
        text-align:left;
        font-size:.92rem;
        line-height:1.35;
        overflow-wrap:anywhere;
    }

    .zone-comment-problem{
        color:#dc2626;
        font-weight:700;
    }

    .zone-comment-note{
        color:var(--ink);
    }

    .slide-overlay{
        position:absolute;
        inset:0;
        display:flex;
        align-items:center;
        justify-content:center;
        pointer-events:none;
        opacity:0;
        z-index:20;
        background:transparent;
    }

    .slide-chevron-row{
        position:absolute;
        inset:0;
        display:flex;
        align-items:center;
        justify-content:space-evenly;
        gap:6px;
        padding:0 24px;
        pointer-events:none;
        will-change:transform, opacity;
        opacity:.85;
    }

    .slide-chevron{
        font-size:1.35rem;
        font-weight:900;
        line-height:1;
        opacity:0.22;
        transform:scale(0.92);
        transition:opacity .06s linear, transform .06s linear;
    }

    .zone-card.touch-left,
    .zone-card.touch-right{
        transform:scale(0.992);
        transition:none;
        box-shadow:0 22px 44px rgba(15,23,42,.16);
    }

    .zone-card.touch-left .slide-overlay,
    .zone-card.touch-right .slide-overlay{
        opacity:1;
    }

    .zone-card.touch-left .slide-chevron{
        color:rgba(0,0,0,.55);
    }

    .zone-card.touch-right .slide-chevron{
        color:rgba(255,255,255,.75);
    }

    .issue-photos-bar{
        display:flex;
        gap:10px;
        flex-wrap:wrap;
        align-items:center;
    }

    .issue-photo-add,
    .issue-photo-thumb{
        width:72px;
        height:72px;
        border-radius:18px 18px 0 18px;
        border:1px solid rgba(18,38,63,.10);
        background:rgba(255,255,255,.72);
        backdrop-filter:blur(8px);
        box-shadow:0 10px 24px rgba(15,23,42,.08);
        position:relative;
        overflow:hidden;
    }

    .issue-photo-add{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:2px;
        cursor:pointer;
        transition:transform .12s ease, background .12s ease;
    }

    .issue-photo-add:hover{
        transform:translateY(-1px);
        background:rgba(244,195,0,.20);
    }

    .issue-photo-plus{
        font-size:1.35rem;
        font-weight:800;
        line-height:1;
    }

    .issue-photo-label{
        font-size:.70rem;
        font-weight:700;
        line-height:1;
    }

    .issue-photo-thumb img{
        width:100%;
        height:100%;
        object-fit:cover;
        opacity:.82;
    }

    .issue-photo-remove{
        position:absolute;
        top:4px;
        right:4px;
        width:22px;
        height:22px;
        border:none;
        border-radius:999px;
        background:rgba(0,0,0,.58);
        color:#fff;
        font-size:.85rem;
        line-height:1;
        display:flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        padding:0;
    }

    .reserve-file-input{
        display:none;
    }

    .progress-inline{
        padding:8px 0;
    }

    .progress-inline .form-range{
        margin:0;
        height:32px;
        cursor:pointer;
    }

    .progress-input{
        width:84px;
        text-align:center;
        font-weight:700;
        flex:0 0 84px;
    }

    .action-sheet-dialog{
        padding:12px;
    }

    .action-sheet-content{
        border:none;
        border-radius:26px 26px 0 26px;
        width:100%;
        max-width:680px;
        margin:0 auto;
        max-height:min(72vh, 620px);
        overflow:hidden;
        box-shadow:0 24px 60px rgba(15,23,42,.22);
    }

    .handle{
        width:56px;
        height:6px;
        border-radius:999px;
        background:#d5dae1;
        margin:6px auto 14px;
    }

    .modal-content{
        border-radius:26px 26px 0 26px;
        border:none;
    }

    .modal-header{
        background:#fff;
    }

    .modal-footer{
        background:#fff;
    }

    .modal.show{
        z-index:6000;
    }

    .modal-backdrop.show{
        z-index:5990;
    }
    .modal-dialog{
	    position:relative;
	    z-index:6001;
	}

    .photo-annotator-modal{
        border-radius:26px 26px 0 26px;
        overflow:hidden;
    }

    .photo-annotator-body{
        padding:12px;
    }

    .photo-annotator-toolbar{
        display:flex;
        gap:8px;
        align-items:center;
        margin-bottom:10px;
        flex-wrap:wrap;
    }

    .photo-tool-color{
        width:42px;
        height:34px;
        padding:2px;
        border:1px solid rgba(18,38,63,.18);
        border-radius:10px 10px 0 10px;
        background:#fff;
    }

    .photo-tool-size{
        width:auto;
        min-width:110px;
        border-radius:10px 10px 0 10px;
        font-weight:700;
    }

    .photo-tool-rotate{
        width:34px;
        min-width:34px;
        height:34px;
        padding:0;
        border-radius:10px 10px 0 10px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .photo-tool-rotate i{
        font-size:.95rem;
        line-height:1;
    }

    .photo-annotator-stage{
        flex:1 1 auto;
        min-height:0;
        display:flex;
        align-items:center;
        justify-content:center;
        overflow:auto;
        position:relative;
    }

    .photo-annotator-canvas-wrap{
        position:relative;
        width:320px;
        height:240px;
        background:#111827;
        border-radius:26px 26px 0 26px;
        overflow:hidden;
        display:flex;
        align-items:center;
        justify-content:center;
        box-shadow:0 18px 40px rgba(15,23,42,.16);
        flex:0 0 auto;
        margin:auto;
        isolation:isolate;
    }

    #photoAnnotatorModal .modal-dialog{
        max-width:min(96vw, 1400px);
    }

    #photoAnnotatorModal .modal-content{
        height:min(92vh, 980px);
        display:flex;
        flex-direction:column;
        overflow:hidden;
    }

    #photoAnnotatorModal .photo-annotator-body{
        display:flex;
        flex-direction:column;
        gap:12px;
        min-height:0;
        overflow:hidden;
    }

    #photoAnnotatorModal .photo-annotator-stage{
        flex:1 1 auto;
        min-height:0;
    }

    #photoAnnotatorModal .photo-annotator-canvas-wrap{
        flex:0 0 auto;
    }

    #photoAnnotatorModal .photo-annotator-canvas-wrap > *{
        position:absolute;
    }

    #photoAnnotatorImage,
    .photo-annotator-background-canvas,
    #photoAnnotatorCanvas{
        inset:0;
    }

    .photo-annotator-canvas-wrap img,
    .photo-annotator-background-canvas,
    .photo-annotator-canvas-wrap canvas{
        border-radius:18px 18px 0 18px;
    }

    .photo-annotator-canvas-wrap img{
        display:none;
    }

    .photo-annotator-background-canvas{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        pointer-events:none;
        z-index:1;
    }

    #photoAnnotatorCanvas{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        touch-action:none;
        pointer-events:none;
        z-index:2;
    }

    .photo-annotator-canvas-wrap.drawing #photoAnnotatorCanvas{
        pointer-events:auto;
    }

    .photo-annotator-close-floating{
        position:absolute;
        top:12px;
        right:12px;
        z-index:80;
        width:44px;
        height:44px;
        border:none;
        border-radius:14px 14px 0 14px;
        background:rgba(255,255,255,.82);
        color:#111827;
        font-size:1.6rem;
        font-weight:900;
        line-height:1;
        display:flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        box-shadow:0 8px 18px rgba(15,23,42,.18);
        backdrop-filter:blur(8px);
        -webkit-backdrop-filter:blur(8px);
        transition:opacity .15s ease, background .15s ease;
    }

    .photo-annotator-close-floating:hover{
        background:rgba(255,255,255,.96);
    }

    .photo-annotator-meta-overlay{
        position:absolute;
        left:12px;
        bottom:12px;
        z-index:75;
        display:flex;
        flex-wrap:wrap;
        align-items:flex-end;
        justify-content:flex-start;
        gap:6px;
        max-width:calc(100% - 88px);
        pointer-events:none;
    }

    .photo-annotator-meta-badge{
        display:inline-flex;
        align-items:center;
        gap:6px;
        padding:6px 10px;
        border-radius:6px 6px 0 6px;
        font-size:.78rem;
        font-weight:700;
        line-height:1.2;
        color:#111827;
        background:rgba(255,255,255,.5);
        backdrop-filter:blur(6px);
        -webkit-backdrop-filter:blur(6px);
        border:none;
        box-shadow:none;
    }

    .photo-annotator-meta-badge.is-progress{
        background:rgba(244,195,0,.5);
        color:#111827;
    }

    .btn-photo-nav-overlay{
        position:absolute;
        top:50%;
        transform:translateY(-50%);
        z-index:20;
        width:46px;
        height:46px;
        border:none;
        border-radius:999px;
        background:rgba(244,195,0,.5);
        color:#111827;
        font-size:1.5rem;
        font-weight:900;
        line-height:1;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0;
        cursor:pointer;
        transition:background .15s ease, opacity .15s ease;
    }

    .btn-photo-nav-overlay:hover{
        background:rgba(244,195,0,1);
    }

    .btn-photo-nav-overlay:disabled{
        background:rgba(243,244,246,.5);
        color:#d1d5db;
        cursor:default;
    }

    .btn-photo-nav-overlay-prev{
        left:12px;
    }

    .btn-photo-nav-overlay-next{
        right:12px;
    }

    .loader{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(255,255,255,.55);
        z-index:5000;
        align-items:center;
        justify-content:center;
        backdrop-filter:blur(2px);
    }

    .loader.show{
        display:flex;
    }

    .offline-badge{
        display:none;
        position:fixed;
        left:12px;
        right:12px;
        bottom:12px;
        z-index:2500;
        pointer-events:none;
        background:#111827;
        color:#fff;
        border-radius:18px 18px 0 18px;
        padding:10px 14px;
        font-weight:800;
        text-align:center;
        box-shadow:0 18px 40px rgba(15,23,42,.22);
    }

    .offline-badge.show{
        display:block;
    }

    .offline-sync-badge{
        display:none;
        position:fixed;
        right:12px;
        bottom:70px;
        z-index:2500;
        pointer-events:none;
        background:#f4c300;
        color:#111827;
        font-weight:900;
        padding:10px 14px;
        border-radius:18px 18px 0 18px;
        box-shadow:0 18px 40px rgba(15,23,42,.22);
    }

    .offline-sync-badge.show{
        display:block;
    }

    .mobile-menu{
		position:fixed;
		top:64px;
		right:10px;
		z-index:5001;
		width:270px;
		display:none;
	}

    .mobile-menu.is-open{
        display:block;
    }

    .mobile-menu-inner{
        background:rgba(255,255,255,.72);
        backdrop-filter:blur(22px) saturate(1.35);
        -webkit-backdrop-filter:blur(22px) saturate(1.35);
        border:1px solid rgba(255,255,255,.55);
        border-radius:18px;
        box-shadow:0 18px 45px rgba(15,23,42,.18);
        overflow:hidden;
    }

    .mobile-menu-item{
        width:100%;
        border:0;
        background:#fff !important;
        color:#111827 !important;
        padding:14px 16px;
        text-align:right;
        font-size:1rem;
        font-weight:600;
        cursor:pointer;
        transition:background .12s ease, color .12s ease;
    }

    .mobile-menu-item:hover,
    .mobile-menu-item:focus{
        background:var(--accent) !important;
        color:#111827 !important;
        outline:none;
    }

    .mobile-menu-separator{
        height:1px;
        margin:2px 14px;
        background:rgba(15,23,42,.10);
    }
    
    .zone-group-card[id^="appartement-"],
.zone-group-card[id^="zone-"]{
	scroll-margin-top:90px;
}

.hero-actions-row{
	width:100%;
}

/* =========================================================
   QR scanner
========================================================= */

.qr-scan-modal{
	border:none;
	border-radius:26px 26px 0 26px;
	overflow:hidden;
	background:#111827;
	position:relative;
	height:min(86dvh, 760px);
	min-height:0;
}

.qr-scan-body{
	padding:0;
	height:100%;
	min-height:0;
	display:flex;
	align-items:stretch;
	justify-content:stretch;
	background:#111827;
}

.qr-scan-reader{
	width:100%;
	height:100%;
	min-height:0;
	border:1px dashed rgba(18,38,63,.15);
	border-radius:18px 18px 0 18px;
	overflow:hidden;
	background:#111827;
}

.qr-scan-result{
	margin-top:14px;
	border:1px solid rgba(18,38,63,.08);
	border-radius:18px 18px 0 18px;
	padding:14px;
	background:#fff;
	display:grid;
	gap:8px;
}

.qr-scan-result-label{
	font-size:.84rem;
	color:var(--muted);
	font-weight:800;
}

.qr-scan-result-value{
	font-size:3rem;
	font-weight:900;
	line-height:1;
}

.qr-scan-result-url{
	color:var(--muted);
	font-size:.9rem;
	line-height:1.35;
	word-break:break-word;
}

.qr-scan-status{
	margin-top:12px;
	color:var(--muted);
	font-size:.88rem;
	min-height:1.2em;
}

.qr-scan-close{
	position:absolute;
	top:12px;
	right:12px;
	z-index:20;
	width:44px;
	height:44px;
	border:none;
	border-radius:14px 14px 0 14px;
	background:rgba(255,255,255,.88);
	color:#111827;
	font-size:1.8rem;
	line-height:1;
	font-weight:900;
	display:flex;
	align-items:center;
	justify-content:center;
	box-shadow:0 8px 18px rgba(15,23,42,.18);
	backdrop-filter:blur(8px);
	-webkit-backdrop-filter:blur(8px);
}

.qr-scan-close:hover{
	background:#fff;
}

#qrScannerReader video{
	width:100% !important;
	height:100% !important;
	object-fit:cover;
}

/* =========================================================
   Highlight zone après scan
========================================================= */

.zone-scan-highlight{
	animation:zoneScanHighlight 1.6s ease;
}

@keyframes zoneScanHighlight{
	0%{
		box-shadow:0 0 0 0 rgba(244,195,0,.95);
		background:rgba(244,195,0,.38);
	}
	100%{
		box-shadow:0 0 0 16px rgba(244,195,0,0);
		background:rgba(255,255,255,.72);
	}
}

/* =========================================================
   Slide cards gauche / droite
========================================================= */

.slide-overlay{
	position:absolute;
	inset:0;
	display:flex;
	align-items:center;
	pointer-events:none;
	opacity:0;
	transition:opacity .18s ease;
	z-index:3;
	overflow:hidden;
}

.slide-overlay-left{
	left:0;
	right:0;
	justify-content:flex-start;
	background:linear-gradient(90deg, rgba(239,68,68,.14) 0%, rgba(239,68,68,.08) 18%, transparent 48%);
}

.slide-overlay-right{
	left:0;
	right:0;
	justify-content:flex-end;
	background:linear-gradient(270deg, rgba(244,195,0,.16) 0%, rgba(244,195,0,.10) 18%, transparent 48%);
}

.slide-chevron-row{
	width:100%;
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding:0 14px;
	white-space:nowrap;
}

.slide-chevron{
	font-size:4rem;
	font-weight:900;
	line-height:1;
	opacity:0;
	transform:translateX(0);
	will-change:transform, opacity;
	flex:0 0 auto;
}

.slide-chevron:nth-child(1){ animation-delay:0s; }
.slide-chevron:nth-child(2){ animation-delay:.05s; }
.slide-chevron:nth-child(3){ animation-delay:.10s; }
.slide-chevron:nth-child(4){ animation-delay:.15s; }
.slide-chevron:nth-child(5){ animation-delay:.20s; }
.slide-chevron:nth-child(6){ animation-delay:.25s; }
.slide-chevron:nth-child(7){ animation-delay:.30s; }
.slide-chevron:nth-child(8){ animation-delay:.35s; }
.slide-chevron:nth-child(9){ animation-delay:.40s; }
.slide-chevron:nth-child(10){ animation-delay:.45s; }

.zone-card.touch-left{
	background:rgba(239,68,68,.10) !important;
	box-shadow:0 0 0 2px rgba(239,68,68,.18);
}

.zone-card.touch-right{
	background:rgba(244,195,0,.14) !important;
	box-shadow:0 0 0 2px rgba(244,195,0,.24);
}

.zone-card.touch-left .slide-overlay-left{
	opacity:1;
}

.zone-card.touch-left .slide-overlay-right{
	opacity:0;
}

.zone-card.touch-right .slide-overlay-right{
	opacity:1;
}

.zone-card.touch-right .slide-overlay-left{
	opacity:0;
}

.zone-card.touch-left .slide-chevron{
	color:#dc2626;
	animation:slideChevronLeft .9s ease-in-out infinite;
}

.zone-card.touch-right .slide-chevron{
	color:#111827;
	animation:slideChevronRight .9s ease-in-out infinite;
}

@keyframes slideChevronLeft{
	0%{
		opacity:0;
		transform:translateX(10px);
	}
	35%{
		opacity:.95;
	}
	100%{
		opacity:0;
		transform:translateX(-10px);
	}
}

@keyframes slideChevronRight{
	0%{
		opacity:0;
		transform:translateX(-10px);
	}
	35%{
		opacity:.95;
	}
	100%{
		opacity:0;
		transform:translateX(10px);
	}
}

.zone-task{
	font-weight:700;
	min-width:0;
	overflow-wrap:break-word;
	word-break:normal;
	hyphens:auto;
}

/* =========================================================
   Menu mobile
========================================================= */

.mobile-menu{
	position:fixed;
	top:calc(env(safe-area-inset-top, 0px) + 58px);
	right:10px;
	z-index:5001;
	width:min(320px, calc(100vw - 20px));
	display:none;
}

.mobile-menu.is-open{
	display:block;
}

.mobile-menu-inner{
	background:rgba(255,255,255,.72);
	backdrop-filter:blur(22px) saturate(1.35);
	-webkit-backdrop-filter:blur(22px) saturate(1.35);
	border:1px solid rgba(255,255,255,.55);
	border-radius:18px;
	box-shadow:0 18px 45px rgba(15,23,42,.18);
	overflow:hidden;
}

.mobile-menu-item{
	width:100%;
	border:0;
	background:#fff !important;
	color:#111827 !important;
	padding:14px 16px;
	text-align:right;
	font-size:1rem;
	font-weight:600;
	cursor:pointer;
	transition:background .12s ease, color .12s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus{
	background:var(--accent) !important;
	color:#111827 !important;
	outline:none;
}

.mobile-menu-separator{
	height:1px;
	margin:2px 14px;
	background:rgba(15,23,42,.10);
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 991.98px){
	.sticky-head{
		position:static;
		background:transparent;
		border:0;
		box-shadow:none;
		backdrop-filter:none;
		-webkit-backdrop-filter:none;
	}

	.chantierama-header{
		position:fixed;
		top:0;
		left:0;
		right:0;
		z-index:5002;
		max-width:none;
		margin:0;
		padding:
			calc(env(safe-area-inset-top, 0px) + 10px)
			12px
			10px;
		min-height:56px;
		background:rgba(255,255,255,.78);
		backdrop-filter:blur(14px);
		-webkit-backdrop-filter:blur(14px);
		border-bottom:1px solid rgba(18,38,63,.08);
		box-shadow:0 10px 24px rgba(15,23,42,.08);
	}

	.page-wrap{
		padding-top:78px;
	}

	.pointage-mobile-menu-btn{
		display:inline-flex;
		position:relative;
		z-index:5003;
		flex:0 0 auto;
	}

	.chantierama-logo-link{
		flex:0 0 auto;
		position:relative;
		z-index:5003;
	}

	.hero-tools,
	.hero-actions-row{
		display:none !important;
	}

	.pointage-cage-select{
		min-width:130px;
		max-width:160px;
	}

	.slide-overlay{
		width:56px;
	}

	.slide-chevron{
		font-size:3.8rem;
	}

	.qr-scan-modal{
		height:calc(100dvh - 24px);
		border-radius:20px 20px 0 20px;
	}

	.qr-scan-close{
		top:max(10px, env(safe-area-inset-top, 0px));
		right:10px;
	}

	.qr-scan-result-value{
		font-size:2.4rem;
	}

	.mobile-menu{
		top:calc(env(safe-area-inset-top, 0px) + 62px);
	}
	
		.zone-top,
	.zone-top-3cols{
		grid-template-columns:minmax(0, 1fr) auto;
		align-items:start;
	}

	.zone-card-photos{
		justify-content:flex-end;
		align-content:flex-start;
	}

	.zone-card-badges{
		grid-column:1 / -1;
		justify-content:flex-start;
		margin-left:0;
		width:100%;
	}

	.zone-task{
		font-size:.98rem;
		line-height:1.3;
	}
	
}

@media (max-width: 991.98px){
	.reserve-card .zone-top,
	.reserve-card .zone-top-3cols{
		grid-template-columns:1fr !important;
		align-items:start;
		gap:8px;
	}

	.reserve-card .zone-top > .flex-grow-1,
	.reserve-card .zone-top-3cols > .flex-grow-1{
		grid-column:1;
		width:100%;
		min-width:0;
	}

	.reserve-card .zone-task{
		display:block;
		width:100%;
		font-size:.98rem;
		line-height:1.3;
		white-space:normal;
		overflow-wrap:break-word;
		word-break:normal;
		hyphens:auto;
	}

	.reserve-card .zone-card-photos{
		grid-column:1;
		justify-content:flex-start;
		align-content:flex-start;
		width:100%;
		max-width:100%;
	}

	.reserve-card .zone-card-badges{
		grid-column:1;
		justify-content:flex-start !important;
		margin-left:0 !important;
		width:100%;
	}

	.reserve-card .zone-card-photo-thumb,
	.reserve-card .zone-card-photo-add{
		width:30px;
		height:30px;
		flex:0 0 30px;
	}

	.reserve-card .zone-card-photo-add-plus{
		font-size:1.55rem;
	}
}



@media (min-width: 992px){
	.pointage-mobile-menu-btn{
		display:none;
	}
}