/* ==========================================================================
   Espace personnel — même direction artistique que le site (vert, or, ivoire)
   ========================================================================== */
.dg-espace {
	--dg-deep: var(--dp-deep, #06301F);
	--dg-gold: var(--dp-gold, #C9A45C);
	--dg-gold-l: var(--dp-gold-light, #E9D29A);
	--dg-ivory: var(--dp-ivory, #F4F1E8);
	--dg-sand: var(--dp-sand, #ECE7DA);
	--dg-ink: #06301F;
	--dg-text: #3B443F;
	--dg-line: rgba(6, 48, 31, .14);
	--dg-ease: cubic-bezier(.2, .7, .1, 1);
	background: var(--dg-sand);
	color: var(--dg-ink);
	font-family: var(--dp-sans, system-ui, sans-serif);
	padding: clamp(28px, 5vw, 64px) var(--dp-gutter, 20px);
	min-height: 70vh;
}
.dg-espace *, .dg-espace *::before, .dg-espace *::after { box-sizing: border-box; }
.dg-espace a:where(:not(.dp-btn)) { color: var(--dg-ink); }
/* Boutons-liens dans l’espace : couleur du bouton (texte clair sur fond foncé, foncé sur fond doré). */
.dg-espace a.dp-btn--ink, .dg-espace a.dp-btn--ink:hover { color: var(--dp-ivory, #F4F1E8); }
.dg-espace a.dp-btn--gold, .dg-espace a.dp-btn--gold:hover { color: var(--dp-deep, #06301F); }

/* ---------- Connexion ---------- */
.dg-auth { display: flex; justify-content: center; padding: clamp(20px, 6vw, 80px) 0; }
.dg-auth__card {
	position: relative; width: 100%; max-width: 460px; padding: clamp(28px, 5vw, 48px);
	background: var(--dg-ivory); border-radius: 22px; box-shadow: 0 40px 80px -50px rgba(6, 48, 31, .6);
	animation: dgRise .9s var(--dg-ease) both;
}
.dg-auth__title { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: clamp(38px, 5vw, 52px); line-height: 1; margin: 10px 0 26px; }
.dg-auth__links { text-align: center; font-size: 14px; margin-top: 18px; }
.dg-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #7A5E2A; }
.dg-corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--dg-gold); }
.dg-corner--tl { top: -14px; left: -14px; border-top-width: 2px; border-left-width: 2px; }
.dg-corner--br { bottom: -14px; right: -14px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Mise en page ---------- */
.dg-layout { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.dg-side {
	flex: 1 1 250px; max-width: 300px; background: var(--dg-deep); color: var(--dg-ivory);
	border-radius: 22px; padding: 26px 16px; display: flex; flex-direction: column; gap: 18px;
	position: sticky; top: 24px;
}
.dg-side__who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px 18px; border-bottom: 1px solid rgba(233, 210, 154, .16); }
.dg-avatar { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--dg-gold); display: flex; align-items: center; justify-content: center; font-family: var(--dp-serif, Georgia, serif); font-size: 22px; color: var(--dg-gold-l); margin-bottom: 8px; }
.dg-side__name { font-family: var(--dp-serif, Georgia, serif); font-size: 22px; line-height: 1.1; }
.dg-side__role { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--dg-gold); }
.dg-tabs { display: flex; flex-direction: column; gap: 2px; }
.dg-espace .dg-tab {
	position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
	color: #DCE4DE; text-decoration: none; font-size: 14px; font-weight: 500;
	transition: background-color .35s, color .35s, padding .45s var(--dg-ease);
}
.dg-espace .dg-tab:hover { background: rgba(233, 210, 154, .08); color: var(--dg-ivory); padding-left: 20px; }
.dg-espace .dg-tab.is-active { background: var(--dg-gold); color: var(--dg-deep); font-weight: 700; }
.dg-espace .dg-tab--tech { font-size: 12px; color: var(--dg-gold-l); border: 1px dashed rgba(233, 210, 154, .35); }
.dg-logout { margin: 0; padding: 0 4px; }
.dg-link-btn { background: none; border: 0; color: #A9BCB0; font: 500 13px var(--dp-sans, sans-serif); cursor: pointer; min-height: 44px; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
.dg-link-btn:hover { color: var(--dg-ivory); }

.dg-main {
	flex: 999 1 560px; min-width: 0; background: var(--dg-ivory); border-radius: 22px;
	padding: clamp(22px, 4vw, 44px); animation: dgRise .7s var(--dg-ease) both;
}
.dg-h1 { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; margin: 0 0 24px; }
.dg-h2 { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 28px; margin: 34px 0 14px; }
.dg-help { color: var(--dg-text); font-size: 15px; line-height: 1.65; max-width: 720px; margin: 0 0 22px; }
.dg-lead { font-family: var(--dp-serif, Georgia, serif); font-size: 26px; margin: 0 0 18px; }
.dg-muted { color: #6B736E; font-weight: 400; font-size: .9em; }
.dg-empty { padding: 28px; text-align: center; color: var(--dg-text); background: rgba(6, 48, 31, .04); border-radius: 14px; }
.dg-more { font-size: 14px; font-weight: 600; text-decoration: none; }
.dg-more:hover { text-decoration: underline; }

/* ---------- Messages (jamais de faux succès) ---------- */
.dg-msg { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; font-size: 14px; line-height: 1.55; border: 1px solid; animation: dgRise .5s var(--dg-ease) both; }
.dg-msg--succes { background: #E6F3EA; border-color: #8FC5A1; color: #0B4A2C; }
.dg-msg--erreur { background: #FBEAEA; border-color: #E2A3A3; color: #7A1F1F; }
.dg-msg--info { background: #FFF7E3; border-color: #E5CB8C; color: #5E4710; }
.dg-copy { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid #E5CB8C; font: 13px ui-monospace, monospace; }

/* ---------- Cartes ---------- */
.dg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 10px; }
.dg-espace .dg-stat {
	display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: #fff;
	border: 1px solid var(--dg-line); text-decoration: none; transition: transform .5s var(--dg-ease), box-shadow .5s;
}
.dg-espace .dg-stat:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(6, 48, 31, .5); }
.dg-stat__num { font-family: var(--dp-serif, Georgia, serif); font-size: 44px; line-height: 1; }
.dg-stat__label { font-size: 13px; font-weight: 600; color: var(--dg-text); }
.dg-stat--alerte .dg-stat__num { color: #9C6A00; }
.dg-stat--erreur .dg-stat__num { color: #A12C2C; }
.dg-stat--ok .dg-stat__num { color: #0B5D3B; }

/* ---------- Tableaux ---------- */
.dg-table-wrap { overflow-x: auto; border: 1px solid var(--dg-line); border-radius: 14px; background: #fff; }
.dg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dg-table th { text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #59625D; background: rgba(6, 48, 31, .04); white-space: nowrap; }
.dg-table td { padding: 12px 14px; border-top: 1px solid var(--dg-line); vertical-align: middle; }
.dg-table tr { transition: background-color .3s; }
.dg-table tbody tr:hover { background: rgba(201, 164, 92, .07); }
.dg-table form { margin: 0; }
.dg-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(6, 48, 31, .08); color: var(--dg-ink); white-space: nowrap; }
.dg-badge--ok { background: #DDEFE3; color: #0B4A2C; }
.dg-badge--err { background: #F7DADA; color: #7A1F1F; }
.dg-badge--warn { background: #FBEBC4; color: #6B4E00; }

.dg-espace .dg-btn-small, .dg-btn-small {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid rgba(6, 48, 31, .3); background: transparent; color: var(--dg-ink);
	font: 600 12px var(--dp-sans, sans-serif); text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s;
}
.dg-espace .dg-btn-small:hover { background: var(--dg-ink); color: var(--dg-ivory); }

.dg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dg-espace .dg-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(6, 48, 31, .3); text-decoration: none; font-size: 13px; }
.dg-espace .dg-chip.is-active { background: var(--dg-ink); color: var(--dg-ivory); border-color: var(--dg-ink); }

.dg-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dg-espace .dg-pages a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--dg-line); text-decoration: none; }
.dg-espace .dg-pages a.is-current { background: var(--dg-ink); color: var(--dg-ivory); }

/* ---------- Formulaires ---------- */
.dg-form { margin: 0 0 28px; }
.dg-form--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 22px; }
.dg-field--wide { grid-column: 1 / -1; }
.dg-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.dg-field label { font-size: 13px; font-weight: 600; }
.dg-espace input[type="text"], .dg-espace input[type="email"], .dg-espace input[type="tel"], .dg-espace input[type="url"], .dg-espace input[type="password"], .dg-espace input[type="date"], .dg-espace input[type="time"], .dg-espace input[type="number"], .dg-espace select, .dg-espace textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(6, 48, 31, .25);
	background: #fff; color: var(--dg-ink); font: 15px var(--dp-sans, sans-serif); transition: border-color .3s, box-shadow .3s;
}
.dg-espace textarea { min-height: 96px; resize: vertical; }
.dg-espace input:focus, .dg-espace select:focus, .dg-espace textarea:focus { outline: none; border-color: var(--dg-gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .25); }
.dg-hint { font-size: 12px; color: #5D6661; line-height: 1.45; }
.dg-hint--warn { color: #8A5A00; font-weight: 700; }
.dg-check { margin: 0 0 14px; font-size: 14px; }
.dg-check input { width: 18px; height: 18px; accent-color: var(--dg-ink); vertical-align: -3px; margin-right: 6px; }
.dg-fieldset { border: 1px solid var(--dg-line); border-radius: 16px; padding: 20px 22px 6px; margin: 0 0 22px; background: rgba(255, 255, 255, .5); }
.dg-fieldset legend { padding: 0 8px; font-family: var(--dp-serif, Georgia, serif); font-size: 22px; }
.dg-btn-full { width: 100%; }
.dg-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }

/* ---------- Contrôle de cohérence ---------- */
.dg-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dg-issue { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--dg-line); border-left-width: 4px; }
.dg-issue--erreur { border-left-color: #B33A3A; }
.dg-issue--alerte { border-left-color: #C99A1E; }
.dg-issue--info { border-left-color: #6E9BB8; }
.dg-issue__level { font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #59625D; }
.dg-issue__effect { color: var(--dg-text); font-size: 14px; }
.dg-issue__items { margin: 2px 0 6px 18px; font-size: 14px; }

@keyframes dgRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dg-espace * { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
	.dg-side { max-width: none; position: static; }
	.dg-tabs { flex-direction: row; flex-wrap: wrap; }
	.dg-espace .dg-tab { min-height: 40px; }
}

/* ==========================================================================
   Module Réparations
   ========================================================================== */
.dg-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.dg-search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.dg-search input { flex: 1; }
.dg-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.dg-rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.dg-rep-head .dg-h2 { margin: 0; }
.dg-h3 { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 24px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dg-badge--info { background: #DCE8F3; color: #1D4466; }

.dg-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: dgstep; }
.dg-steps li { position: relative; padding-top: 14px; font-size: 12px; font-weight: 600; color: #7A817C; counter-increment: dgstep; }
.dg-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 5px; background: rgba(6, 48, 31, .12); }
.dg-steps li.is-done::before { background: var(--dg-gold); }
.dg-steps li.is-current::before { background: var(--dg-deep); animation: dgPulse 2.2s ease-in-out infinite; }
.dg-steps li.is-current, .dg-steps li.is-done { color: var(--dg-ink); }
.dg-steps.is-stopped li.is-current::before { background: #B33A3A; }
@keyframes dgPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.dg-rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.dg-card { background: #fff; border: 1px solid var(--dg-line); border-radius: 18px; padding: 22px; min-width: 0; }
.dg-card--wide { grid-column: 1 / -1; }
.dg-card .dg-form { margin-bottom: 14px; }
.dg-dl { margin: 0; display: flex; flex-direction: column; }
.dg-dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--dg-line); font-size: 14px; }
.dg-dl dt { color: #59625D; font-weight: 600; }
.dg-dl dd { margin: 0; }
.dg-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dg-inline select, .dg-inline input[type="file"] { flex: 1 1 200px; width: auto; }
.dg-inline-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-espace .dg-btn-danger { border-color: #C98585; color: #7A1F1F; }
.dg-espace .dg-btn-danger:hover { background: #7A1F1F; color: #fff; }
.dg-details { margin-top: 10px; border-top: 1px solid var(--dg-line); padding-top: 12px; }
.dg-details summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 40px; display: flex; align-items: center; }
.dg-devis-lines { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.dg-devis-line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px; gap: 8px; }
.dg-devis tfoot th { text-align: right; font-size: 14px; color: var(--dg-ink); }
.dg-devis tfoot th:last-child { text-align: left; font-family: var(--dp-serif, Georgia, serif); font-size: 22px; letter-spacing: 0; text-transform: none; }
.dg-devis-reponse { margin-top: 18px; padding: 18px; border-radius: 14px; background: #FFF7E3; border: 1px solid #E5CB8C; }
.dg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.dg-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: transform .4s var(--dg-ease); }
.dg-photos a:hover img { transform: scale(1.04); }
.dg-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(201, 164, 92, .5); display: flex; flex-direction: column; gap: 12px; }
.dg-timeline li { position: relative; font-size: 14px; line-height: 1.5; }
.dg-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--dg-gold); }
.dg-timeline li.is-internal::before { background: #A9B3AD; }
.dg-timeline time { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6B736E; }
.dg-stat__big { font-family: var(--dp-serif, Georgia, serif); font-size: 24px; line-height: 1.1; color: var(--dg-ink); }

/* Bon de dépôt */
.dg-bon { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--dg-line); border-radius: 14px; padding: 32px; }
.dg-bon__head { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--dg-text); }
.dg-bon__brand { font-family: var(--dp-serif, Georgia, serif); font-size: 26px; color: var(--dg-ink); font-style: italic; }
.dg-bon__title { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 34px; margin: 22px 0 14px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--dg-gold); padding-bottom: 10px; }
.dg-bon__suivi { margin: 20px 0; padding: 16px; border: 1px dashed var(--dg-gold); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dg-bon__cond { font-size: 12px; color: var(--dg-text); }
.dg-bon__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; font-size: 12px; }
.dg-bon__sign span { border-top: 1px solid #999; padding-top: 6px; }

@media (max-width: 560px) {
	.dg-devis-line { grid-template-columns: 1fr 1fr; }
	.dg-devis-line input:first-of-type { grid-column: 1 / -1; }
	.dg-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.dg-steps li { font-size: 10px; }
}
@media print {
	body * { visibility: hidden; }
	.dg-bon, .dg-bon * { visibility: visible; }
	.dg-bon { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
	.dg-noprint { display: none; }
}

/* ---------- Rendez-vous (page publique + agenda) ---------- */
.dg-espace--embed { background: transparent; padding: 0; min-height: 0; max-width: 980px; margin: 0 auto; }
.dg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dg-rdv-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: dgstep; flex-wrap: wrap; }
.dg-rdv-steps li { counter-increment: dgstep; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(6, 48, 31, .45); }
.dg-rdv-steps li::before { content: counter(dgstep); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; }
.dg-rdv-steps li + li::after { content: none; }
.dg-rdv-steps li.is-current { color: var(--dg-ink); }
.dg-rdv-steps li.is-current::before { background: var(--dg-ink); color: var(--dg-ivory); border-color: var(--dg-ink); }
.dg-rdv-steps li.is-done { color: #0B5D3B; }
.dg-rdv-steps li.is-done::before { content: "✓"; background: var(--dg-gold); border-color: var(--dg-gold); color: var(--dg-ink); }
.dg-rdv-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dg-espace .dg-rdv-choice { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: var(--dg-ivory); border: 1px solid var(--dg-line); border-radius: 18px; text-decoration: none; transition: transform .4s var(--dg-ease), box-shadow .4s var(--dg-ease), border-color .3s; }
.dg-rdv-choice strong { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 30px; line-height: 1; }
.dg-rdv-choice span { font-size: 14px; color: var(--dg-text); }
.dg-espace .dg-rdv-choice:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(6, 48, 31, .5); }
.dg-espace .dg-rdv-choice.is-active { border-color: var(--dg-gold); box-shadow: inset 0 0 0 1px var(--dg-gold); }
.dg-rdv-cp { margin-bottom: 16px; }
.dg-rdv-days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scroll-snap-type: x mandatory; }
.dg-espace .dg-rdv-day { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 14px 10px; border-radius: 16px; background: var(--dg-ivory); border: 1px solid var(--dg-line); text-decoration: none; transition: background .3s, color .3s, transform .3s var(--dg-ease); }
.dg-rdv-day span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dg-rdv-day strong { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.dg-rdv-day em { font-style: normal; font-size: 11px; color: var(--dg-text); }
.dg-espace .dg-rdv-day:hover { transform: translateY(-2px); }
.dg-espace .dg-rdv-day.is-active { background: var(--dg-ink); color: var(--dg-ivory); border-color: var(--dg-ink); }
.dg-espace .dg-rdv-day.is-active em { color: var(--dg-gold-l); }
.dg-rdv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.dg-rdv-slot { position: relative; }
.dg-rdv-slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dg-rdv-slot span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--dg-line); background: var(--dg-ivory); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, border-color .25s; }
.dg-rdv-slot input:checked + span { background: var(--dg-gold); border-color: var(--dg-gold); color: var(--dg-ink); }
.dg-rdv-slot input:focus-visible + span { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
.dg-rdv-confirm { max-width: 640px; }
.dg-rdv-daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.dg-rdv-daynav strong { font-family: var(--dp-serif, Georgia, serif); font-weight: 400; font-size: 24px; text-transform: capitalize; }
.dg-rdv-hours { display: grid; gap: 8px; margin-bottom: 16px; }
.dg-rdv-hours__row { display: grid; grid-template-columns: 140px auto 16px auto; align-items: center; gap: 10px; }
.dg-rdv-hours__row input[type="time"] { min-height: 40px; }
@media (max-width: 560px) {
	.dg-rdv-hours__row { grid-template-columns: 1fr 1fr; }
	.dg-rdv-hours__row > span { display: none; }
	.dg-rdv-hours__row .dg-check { grid-column: 1 / -1; }
}

/* ---------- Boutique : panier, commande, paiement ---------- */
.dg-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg-shop-item { display: flex; align-items: center; gap: 14px; }
.dg-shop-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; background: var(--dg-sand); }
.dg-espace input.dg-qty { width: 76px; min-width: 0; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(6, 48, 31, .25); background: #fff; font: 15px var(--dp-sans, sans-serif); }
.dg-espace .dg-linkbtn { background: none; border: 0; padding: 0 0 0 8px; color: #7A1F1F; text-decoration: underline; cursor: pointer; font: 13px var(--dp-sans, sans-serif); }
.dg-shop-table tfoot th { text-align: right; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; background: none; color: var(--dg-ink); white-space: normal; }
.dg-shop-table tfoot td, .dg-shop-table tfoot th { border-top: 1px solid var(--dg-line); }
.dg-shop-table .dg-total th, .dg-shop-table .dg-total td { font-family: var(--dp-serif, Georgia, serif); font-size: 26px; font-weight: 400; color: var(--dg-ink); }
.dg-shop-table .dg-tva td { font-size: 12px; color: #5D6661; text-align: right; border-top: 0; }
.dg-promo { margin: 8px 0 24px; flex-wrap: wrap; gap: 10px; align-items: center; }
.dg-promo input[type="text"] { max-width: 220px; }
.dg-shop-next { display: flex; justify-content: flex-end; margin-top: 8px; }
.dg-pay-choices { display: grid; gap: 10px; }
.dg-pay-choice { position: relative; display: block; cursor: pointer; }
.dg-pay-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dg-pay-choice > span { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 50px; border-radius: 14px; border: 1px solid var(--dg-line); background: var(--dg-ivory); transition: border-color .25s, box-shadow .25s; position: relative; }
.dg-pay-choice > span::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(6, 48, 31, .45); background: #fff; }
.dg-pay-choice em { font-style: normal; font-size: 13px; color: var(--dg-text); }
.dg-pay-choice input:checked + span { border-color: var(--dg-gold); box-shadow: inset 0 0 0 1px var(--dg-gold); }
.dg-pay-choice input:checked + span::before { border-color: var(--dg-ink); box-shadow: inset 0 0 0 4px #fff; background: var(--dg-ink); }
.dg-pay-choice input:focus-visible + span { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
.dg-pay-form { margin: 18px 0; }
.dg-pay-virement { margin: 18px 0; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px dashed var(--dg-gold); }
.dg-pay-virement code { font-size: 15px; letter-spacing: .04em; }
.dg-empty-cart { text-align: center; padding: 40px 0; }
.dg-cmd-client .dg-h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dg-subnav { margin-bottom: 18px; }
@media (max-width: 640px) {
	.dg-shop-table thead { display: none; }
	.dg-shop-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--dg-line); }
	.dg-shop-table tbody td { border: 0; padding: 0; }
	.dg-shop-table tbody td:first-child { grid-column: 1 / -1; }
	.dg-shop-table tfoot th { text-align: left; }
	.dg-shop-table .dg-total th, .dg-shop-table .dg-total td { font-size: 22px; }
}
.dg-shop .dg-table-wrap + p { margin-top: 14px; }
.dg-promo label { font-size: 14px; font-weight: 600; }
@media (min-width: 900px) { .dg-cmd-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.dg-card .dg-shop-table .dg-total th, .dg-card .dg-shop-table .dg-total td { font-size: 22px; }
.dg-card .dg-shop-table td, .dg-card .dg-shop-table th { padding: 10px 12px; }
.dg-sign { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 220; background: #fff; border: 1px dashed var(--dg-gold); border-radius: 12px; touch-action: none; margin-bottom: 8px; }
.dg-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dg-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.dg-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--dg-line); }
.dg-caisse-list { display: grid; gap: 8px; margin-bottom: 14px; }
.dg-caisse-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--dg-line); border-radius: 12px; background: #fff; }
.dg-caisse-item em { display: block; font-style: normal; font-size: 12px; color: var(--dg-text); }
@media print { .dg-espace .dg-side, .dg-espace .dg-no-print, .dp-header, .dp-footer, .dg-cart-pill, .dp-wa { display: none !important; } .dg-ticket { box-shadow: none; } }
.dg-bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.dg-bar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-bar__track { height: 10px; border-radius: 6px; background: rgba(6, 48, 31, .08); overflow: hidden; }
.dg-bar__fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--dg-ink), var(--dg-gold)); }
.dg-bar__val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Contenus et messages */
.dg-msglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dg-msgitem { padding: 18px 20px; border: 1px solid var(--dg-line); border-radius: 14px; background: #fff; display: grid; gap: 10px; }
.dg-msgitem__text { white-space: normal; line-height: 1.6; }
.dg-msgitem__links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
td.dg-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
span.dg-thumb { display: block; }
span.dg-thumb img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.dg-danger { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--dg-line); }
.dg-espace .dg-btn-danger { border-color: #B33A3A; color: #8A1F1F; }
.dg-espace .dg-btn-danger:hover { background: #8A1F1F; color: #fff; }

/* Compléments réparation */
.dg-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.dg-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--dg-line); }
.dg-instructions { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.6; background: rgba(6, 48, 31, .04); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; }
.dg-eta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-right: 8px; }
.dg-eta input { width: auto; min-height: 38px; }
.dg-steps-simple { counter-reset: s; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.dg-steps-simple li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
.dg-steps-simple li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--dg-ink); color: var(--dg-ivory); font-size: 13px; font-weight: 700; }

/* Double vérification */
.dg-qr { width: 200px; max-width: 100%; background: #fff; padding: 6px; border-radius: 12px; border: 1px solid var(--dg-line); margin: 6px 0 12px; }
.dg-qr svg { display: block; width: 100%; height: auto; }
.dg-cle { font-size: 15px; letter-spacing: .08em; word-break: break-all; }
.dg-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 10px 0; }
.dg-codes code { font-size: 15px; letter-spacing: .06em; }

/* Téléphone : rien ne dépasse de l'écran (listes déroulantes aux libellés longs, grilles, formulaires en ligne). */
.dg-espace select { max-width: 100%; }
.dg-espace .dg-inline { flex-wrap: wrap; }
.dg-rep-grid > *, .dg-espace .dg-card, .dg-main { min-width: 0; }
.dg-espace .dg-inline > select, .dg-espace .dg-inline > input { min-width: 0; flex: 1 1 160px; }
