/* Domus Suisse - Etat des lieux. Charte "teal institutionnel".
   Filets et vide, pas d'ombre portee. Rayon unique 6px, 4px sur les micro-elements. */

.dsedl {
	font-family: Inter, sans-serif;
	font-weight: 400;
	color: var(--dsedl-ink);
	background: var(--dsedl-bg);
	line-height: 1.5;
	padding: 32px 16px;
}

.dsedl *,
.dsedl *::before,
.dsedl *::after { box-sizing: border-box; }

.dsedl h1, .dsedl h2, .dsedl h3 {
	font-family: Raleway, sans-serif;
	font-weight: 600;
	color: var(--dsedl-accent);
	line-height: 1.2;
	margin: 0 0 8px;
}

.dsedl h1 { font-size: 30px; }
.dsedl h2 { font-size: 20px; }
.dsedl h3 { font-size: 16px; }

.dsedl__shell { max-width: 880px; margin: 0 auto; }
.dsedl__loading { color: var(--dsedl-muted); }

/* Progression */
.dsedl-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	padding: 0;
	list-style: none;
}

.dsedl-steps__item {
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	padding: 8px 12px;
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	background: var(--dsedl-surface);
	color: var(--dsedl-muted);
	text-align: center;
}

.dsedl-steps__item--done { color: var(--dsedl-accent); border-color: var(--dsedl-accentSoft); }

.dsedl-steps__item--active {
	background: var(--dsedl-accent);
	border-color: var(--dsedl-accent);
	color: #fff;
}

/* Surfaces */
.dsedl-card {
	background: var(--dsedl-surface);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 16px;
}

.dsedl-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

/* Champs */
.dsedl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dsedl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dsedl-field { display: flex; flex-direction: column; gap: 4px; }
.dsedl-field--full { grid-column: 1 / -1; }

.dsedl-field label {
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
	color: var(--dsedl-ink);
	font-weight: 600;
	margin: 0 0 2px;
}
/* Champs alignes sur la meme ligne meme quand un libelle passe sur deux lignes (20.11.2026). */
.dsedl-field > input,
.dsedl-field > select { margin-top: auto; }

.dsedl-field input,
.dsedl-field select,
.dsedl-field textarea {
	font-family: Inter, sans-serif;
	font-size: 14px;
	color: var(--dsedl-ink);
	background: var(--dsedl-surface);
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	padding: 10px 12px;
	width: 100%;
}

.dsedl-field textarea { min-height: 80px; resize: vertical; }
/* Le kit Elementor (.elementor-kit-9 input) imposait 62px de haut et des angles droits :
   specificite relevee pour garder 44px et le rayon 6px de la charte (20.11.2026). */
.dsedl-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.dsedl-field select {
	height: 44px;
	min-height: 44px;
	margin-bottom: 0;
	padding: 0 12px;
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	box-shadow: none;
	font-size: 15px;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	transition: border-color .15s, box-shadow .15s;
}
.dsedl-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover,
.dsedl-field select:hover,
.dsedl-field textarea:hover { border-color: #A9BDBD; }
.dsedl-field textarea:not([data-x]) { height: auto; border-radius: 6px; padding: 10px 12px; font-size: 15px; box-shadow: none; }

.dsedl-field input:focus,
.dsedl-field select:focus,
.dsedl-field textarea:focus,
.dsedl-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus {
	outline: 0;
	border-color: var(--dsedl-accent);
	box-shadow: 0 0 0 3px rgba(30, 77, 89, .14);
}
@media (prefers-reduced-motion: reduce) { .dsedl-field input, .dsedl-field select, .dsedl-field textarea { transition: none; } }

.dsedl-field__error { color: #A33; font-size: 13px; }
.dsedl-field input[aria-invalid="true"] { border-color: #A33; }

/* Pastilles d'etat */
.dsedl-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.dsedl-chip {
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	padding: 6px 12px;
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	background: var(--dsedl-surface);
	color: var(--dsedl-ink);
	cursor: pointer;
}

.dsedl-chip:hover { background: var(--dsedl-surfaceTint); border-color: var(--dsedl-accentSoft); }

.dsedl-chip[aria-pressed="true"] {
	background: var(--dsedl-accent);
	border-color: var(--dsedl-accent);
	color: #fff;
}

/* Un etat n'est jamais signale par la seule couleur : le marqueur textuel reste. */
.dsedl-chip[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* Boutons */
.dsedl-btn {
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 500;
	padding: 11px 20px;
	border: 0;
	border-radius: 6px;
	background: var(--dsedl-accent);
	color: #fff;
	cursor: pointer;
}

.dsedl-btn:hover { background: var(--dsedl-accentDeep); }
.dsedl-btn:disabled { background: var(--dsedl-muted); cursor: not-allowed; }

.dsedl-btn--ghost {
	background: var(--dsedl-surface);
	color: var(--dsedl-accent);
	border: 1px solid var(--dsedl-hairline);
}

.dsedl-btn--ghost:hover { background: var(--dsedl-surfaceTint); }
.dsedl-btn--small { font-size: 13px; padding: 7px 12px; }

/* Boutons rendus en lien <a> (ex. CTA Legal XII des outils) : la couleur des
   liens du theme ecrasait le texte blanc, bouton vide a l'ecran. */
a.dsedl-btn,
a.dsedl-btn:visited,
a.dsedl-btn:hover,
a.dsedl-btn:focus {
	display: inline-block;
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1.4;
}
a.dsedl-btn--ghost,
a.dsedl-btn--ghost:visited,
a.dsedl-btn--ghost:hover,
a.dsedl-btn--ghost:focus {
	color: var(--dsedl-accent) !important;
}

.dsedl-actions {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
}

/* Elements de piece */
.dsedl-element {
	border-top: 1px solid var(--dsedl-hairline);
	padding: 16px 0;
}

.dsedl-element__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.dsedl-element__name { font-weight: 600; }

.dsedl-element__life {
	font-size: 13px;
	color: var(--dsedl-muted);
	letter-spacing: normal;
	text-transform: none;
}

.dsedl-element__extra { margin-top: 12px; display: grid; gap: 12px; }

/* Etiquette de statut : ambre, reservee au signalement. */
.dsedl-tag {
	display: inline-block;
	font-size: 12px;
	letter-spacing: normal;
	text-transform: none;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--dsedl-highlight);
	color: #3A2A08;
}

/* Photos */
.dsedl-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dsedl-photos img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--dsedl-hairline);
}

.dsedl-photos__slot { position: relative; }

.dsedl-photos__drop {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	line-height: 18px;
	text-align: center;
	border-radius: 4px;
	border: 1px solid var(--dsedl-hairline);
	background: var(--dsedl-surface);
	color: var(--dsedl-ink);
	cursor: pointer;
	font-size: 12px;
}

/* Signature */
.dsedl-sign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.dsedl-sign__pad {
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	background: var(--dsedl-surface);
	width: 100%;
	height: 160px;
	touch-action: none;
	cursor: crosshair;
}

.dsedl-notice {
	font-size: 13px;
	color: var(--dsedl-muted);
	background: var(--dsedl-surfaceTint);
	border: 1px solid var(--dsedl-hairline);
	border-radius: 6px;
	padding: 16px;
	margin-top: 16px;
}

.dsedl-summary { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dsedl-summary th, .dsedl-summary td { text-align: left; padding: 8px; border-bottom: 1px solid var(--dsedl-hairline); vertical-align: top; }
.dsedl-summary th { font-size: 13px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--dsedl-accent); }

.dsedl-status { font-size: 13px; color: var(--dsedl-muted); }
.dsedl-empty { color: var(--dsedl-muted); font-size: 15px; }

@media (max-width: 640px) {
	.dsedl { padding: 16px 12px; }
	.dsedl-card { padding: 16px; }
	.dsedl-grid, .dsedl-grid--3, .dsedl-sign { grid-template-columns: 1fr; }
	.dsedl-actions { flex-direction: column-reverse; }
	.dsedl-actions .dsedl-btn { width: 100%; }
}

/* Espacement entre blocs empiles (avis, actions, outil puis contenu de la page). */
.dsedl-notice:not(:last-child),
.dsedl-actions:not(:last-child) {
	margin-bottom: 16px;
}
.dsedl + * {
	margin-top: 32px;
}


/* Case d'accord e-mail (opt-in) */
.dsedl-optin { display: grid !important; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: start; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--dsedl-hairline); border-radius: 10px; background: var(--dsedl-surface); }
.dsedl-optin .dsedl-optin__box { width: 20px !important; height: 20px !important; margin: 1px 0 0 !important; padding: 0 !important; accent-color: var(--dsedl-accent); cursor: pointer; position: static !important; float: none !important; }
.dsedl-optin .dsedl-optin__label { display: block !important; margin: 0 !important; padding: 0 !important; cursor: pointer; font-weight: 400; }
.dsedl-optin__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: inherit; }
.dsedl-optin__sub { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--dsedl-muted); }


/* Lettres types : groupes Vous / Destinataire (20.11.2026). */
.dsedl-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dsedl-group > legend { float: left; width: 100%; padding: 0 0 8px; margin: 0; border-bottom: 1px solid var(--dsedl-hairline); font-size: 13px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--dsedl-accent); }
.dsedl-group > legend + .dsedl-field { clear: both; }
.dsedl-group .dsedl-field > input { margin-top: 0; }
.dsedl-parties { gap: 16px 32px; align-items: start; }
.dsedl-parties-foot { gap: 16px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dsedl-hairline); }
@media (max-width: 640px) { .dsedl-parties, .dsedl-parties-foot { grid-template-columns: 1fr; } .dsedl-parties { row-gap: 24px; } }


/* Echelle typographique unique des outils (20.11.2026).
   Titre 30/600 Raleway ; titre de carte 20/600 Raleway ; sous-titre 16/600 Raleway ;
   texte 15/400 ; texte appuye 15/600 ; chiffre cle 17/600 ; champs 15/400 ;
   boutons et pastilles 15/500 ; libelles 13/600 ; notes 13/400 ; etiquettes 12/600.
   Graisses autorisees : 400, 500, 600 (plus de 700). Plus de petites capitales espacees.
   Le kit Elementor (.elementor-kit-9 button) imposait 16/15/14px selon l'ecran aux boutons :
   specificite relevee pour garder la meme taille partout. */
.dsedl p, .dsedl li, .dsedl dd, .dsedl dt { font-size: 15px; }
.dsedl strong, .dsedl b { font-weight: 600; }
.dsedl .dsedl-notice p, .dsedl .dsedl-notice li, .dsedl p.dsedl-status { font-size: 13px; }
.dsedl .dsedl-btn, .dsedl button.dsedl-btn, .dsedl button.dsedl-chip, .dsedl .dsedl-chip {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.2;
}
.dsedl button.dsedl-chip, .dsedl button.dsedl-btn:not(.dsedl-btn--small) { min-height: 44px; }
.dsedl .dsedl-btn--small, .dsedl button.dsedl-btn--small { font-size: 13px; }
.dsedl .dsedl-field textarea { font-weight: 400; }
.dsedl .dsedl-steps__item { font-size: 13px; }
/* Sur mobile, champs a 16px partout (evite le zoom automatique d'iOS). */
@media (max-width: 767px) { .dsedl .dsedl-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), .dsedl .dsedl-field select, .dsedl .dsedl-field textarea { font-size: 16px; } }
