/*!
 * CreatilDesign — Simulateur d'estimation (parcours public) — 1.5
 * Tout est isolé sous .cds-sim : aucune règle ne touche le reste du site (Divi).
 * Typographie unique : Manrope (titres en demi-gras, interlettrage serré).
 */

@font-face { font-family: "CDS Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Manrope-Regular.woff2") format("woff2"); }
@font-face { font-family: "CDS Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Manrope-Medium.woff2") format("woff2"); }
@font-face { font-family: "CDS Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "CDS Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Manrope-Bold.woff2") format("woff2"); }

/* ------------------------------------------------------------ jetons */

.cds-sim, .cds-sim-page {
	/* Couleur principale : réglable dans CD Prospect › Réglages (injectée en ligne). */
	--cds-p: #A65F38;                    /* accent (Argile par défaut) */
	--cds-p-doux: color-mix(in srgb, var(--cds-p) 9%, #fff);
	--cds-noir: #151515;                 /* boutons et sélection, comme sur le site */
	--cds-noir-fonce: #000000;
	--cds-laiton: var(--cds-p);
	--cds-laiton-texte: color-mix(in srgb, var(--cds-p) 85%, #000);
	--cds-papier: #FFFFFF;
	--cds-sable: #F6F5F3;                /* gris très clair (fonds de vignettes) */
	--cds-lin: #EEECE9;                  /* fond de jauge */
	--cds-filet: #EFEDEA;                /* filets de structure */
	--cds-trait: #E6E4E0;                /* bordure des cartes */
	--cds-trait-fort: #D9D6D0;           /* cercles, champs */
	--cds-encre: #151515;
	--cds-texte: #3A3936;
	--cds-gris: #77746E;                 /* textes d'aide */
	--cds-pale: #A6A39D;                 /* étapes à venir */
	--cds-erreur: #A33A2B;
	--cds-sans: "CDS Manrope", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	--cds-r: 6px;                        /* cartes */
	--cds-r-s: 2px;                      /* boutons, champs */
	--cds-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------- page dédiée */

body.cds-sim-page { margin: 0; background: #FFFFFF; color: var(--cds-encre); font-family: var(--cds-sans); -webkit-font-smoothing: antialiased; }
.cds-sim-page__corps { min-height: 100vh; min-height: 100dvh; padding: clamp(0px, 2vw, 28px); box-sizing: border-box; }
.cds-sim-page--apercu .cds-sim-page__corps { min-height: calc(100dvh - 44px); }
.cds-apercu-bandeau { background: var(--cds-encre); color: #fff; padding: 11px clamp(16px, 3vw, 32px); font: 14px/1.5 var(--cds-sans); display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.cds-apercu-bandeau strong { color: #fff; font-weight: 700; }
.cds-apercu-bandeau a { color: #fff; margin-left: auto; text-underline-offset: 3px; }

/* --------------------------------------------------------- remises */

.cds-sim { container: cds / inline-size; font-family: var(--cds-sans); color: var(--cds-encre); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left; }
.cds-sim *, .cds-sim *::before, .cds-sim *::after { box-sizing: border-box; }
.cds-sim :where(h2, h3, p, dl, dd, ol, ul, li, figure, blockquote) { margin: 0; padding: 0; }
.cds-sim :where(ol, ul) { list-style: none; }
.cds-sim :where(h2, h3) { font-family: var(--cds-sans); font-weight: 600; color: var(--cds-encre); text-transform: none; letter-spacing: -.015em; line-height: 1.15; padding: 0; }
.cds-sim :where(button, input, textarea) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.cds-sim :where(img) { max-width: 100%; height: auto; border: 0; box-shadow: none; }
.cds-sim :where(a) { color: var(--cds-p); }
.cds-sim p { padding-bottom: 0; }
/* L'attribut hidden l'emporte toujours (sinon .cds-champ{display:block} affiche le champ commune). */
.cds-sim [hidden] { display: none !important; }
.cds-sim[data-etat="chargement"] { min-height: 520px; }
.cds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cds-sim :focus-visible { outline: 2px solid var(--cds-laiton); outline-offset: 3px; }
.cds-sim__noscript { padding: 24px; border: 1px solid var(--cds-trait); border-radius: var(--cds-r); }

/* ------------------------------------------------------------ cadre */

.cds-sim__cadre {
	display: grid; grid-template-columns: 268px minmax(0, 1fr);
	max-width: 1320px; margin: 0 auto; min-height: 690px;
	background: var(--cds-papier); border: 1px solid var(--cds-filet);
	overflow: hidden; overflow: clip;
}

/* --------------------------------------------- colonne des étapes */

.cds-cote {
	position: relative; display: flex; flex-direction: column;
	background: #FFFFFF; border-right: 1px solid var(--cds-filet); padding: 30px 26px;
}
.cds-cote__marque { display: block; text-decoration: none; color: var(--cds-encre); margin-bottom: 26px; }
.cds-cote__marque img { display: block; max-height: 40px; width: auto; }
.cds-cote__nom { display: block; font-size: 19px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--cds-encre); }
.cds-cote__sur { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cds-p); line-height: 1.4; }
.cds-cote__titre { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--cds-encre); margin: 6px 0 4px; }
.cds-cote__duree { font-size: 12px; color: var(--cds-gris); line-height: 1.45; }

.cds-etapes { position: relative; margin-top: 24px; }
.cds-etapes::before { /* filet vertical entre les pastilles */
	content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1.5px; background: #E8E6E2;
}
.cds-etape { position: relative; display: flex; gap: 13px; padding: 7px 0; }
.cds-etape__pastille {
	flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: #FFFFFF; border: 1.5px solid var(--cds-trait-fort); color: var(--cds-pale);
	font-size: 11.5px; font-weight: 700; line-height: 1; position: relative; z-index: 1; font-variant-numeric: tabular-nums;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.cds-etape__pastille svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cds-etape__texte { min-width: 0; }
.cds-etape__titre { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; margin-top: 2px; color: var(--cds-pale); transition: color .3s ease; }
.cds-etape__sous { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.4; color: var(--cds-pale); overflow-wrap: anywhere; }
.cds-etape.est-faite .cds-etape__pastille { border-color: var(--cds-encre); color: var(--cds-encre); }
.cds-etape.est-faite .cds-etape__titre { color: var(--cds-encre); }
.cds-etape.est-faite .cds-etape__sous { color: var(--cds-gris); }
.cds-etape.est-active .cds-etape__pastille { background: var(--cds-encre); border-color: var(--cds-encre); color: #fff; }
.cds-etape.est-active .cds-etape__titre { color: var(--cds-encre); }
.cds-etape.est-active .cds-etape__sous { color: var(--cds-gris); }
.cds-etape.vient-de-changer .cds-etape__sous { animation: cds-encre .9s ease-out; }

.cds-cote__rassure { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cds-filet); display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--cds-texte); }
.cds-etapes + .cds-cote__rassure { margin-top: auto; }
.cds-cote__rassure li { display: flex; gap: 9px; align-items: flex-start; }
.cds-cote__rassure svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cds-p); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Espace minimal entre la liste des étapes et la réassurance. */
.cds-etapes { margin-bottom: 28px; }

/* En-tête compact : mobile seulement. */
.cds-mtete { display: none; }

/* ------------------------------------------------------------ scène */

.cds-scene { position: relative; min-width: 0; padding: 34px 40px 28px; display: flex; flex-direction: column; }
.cds-scene.cds-entre .cds-q, .cds-scene.cds-entre .cds-fin { animation: cds-entree .45s var(--cds-ease); }
.cds-q, .cds-fin { display: flex; flex-direction: column; flex: 1; }

/* En-tête de question */
.cds-q__entete { position: relative; margin-bottom: 24px; }
.cds-q__etape { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cds-gris); line-height: 1.4; font-variant-numeric: tabular-nums; }
.cds-sim .cds-q__titre { font-family: var(--cds-sans); font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--cds-encre); margin: 8px 0 8px; max-width: 28ch; }
.cds-q__titre:focus { outline: none; }
.cds-q__aide { font-size: 14px; line-height: 1.55; color: var(--cds-gris); max-width: 520px; }

.cds-q__corps { flex: 1; }

/* --------------------------------------------------------- cartes */

.cds-choix input[type="radio"], .cds-choix input[type="checkbox"], .cds-ambiances input, .cds-lieu__communes input, .cds-coche input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}

.cds-carte {
	position: relative; display: flex; cursor: pointer; background: var(--cds-papier);
	border: 1px solid var(--cds-trait); border-radius: var(--cds-r); overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.cds-carte:hover { border-color: #BDB9B2; }
.cds-carte:has(input:focus-visible) { outline: 2px solid var(--cds-laiton); outline-offset: 3px; }
.cds-carte:has(input:checked) { border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); }
.cds-carte__texte { display: block; min-width: 0; }
.cds-carte__label { display: block; font-weight: 600; color: var(--cds-encre); line-height: 1.3; letter-spacing: -.005em; }
.cds-carte__desc { display: block; color: var(--cds-gris); font-size: 13px; font-weight: 500; margin-top: 3px; line-height: 1.4; }

/* Indicateur de choix : rond (choix unique) ou carré (plusieurs choix). */
.cds-carte__choix {
	flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #D2CFC9;
	background: var(--cds-papier); display: grid; place-items: center; transition: border-color .2s ease, background-color .2s ease, border-width .15s ease;
}
.cds-carte--coche .cds-carte__choix { border-radius: 3px; }
.cds-carte__choix svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease; }
/* Rond radio rempli (liste) */
.cds-carte:not(.cds-carte--coche):has(input:checked) .cds-carte__choix { border: 6px solid var(--cds-encre); }
.cds-carte--coche:has(input:checked) .cds-carte__choix { background: var(--cds-encre); border-color: var(--cds-encre); }
.cds-carte--coche:has(input:checked) .cds-carte__choix svg { opacity: 1; }

.cds-picto { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Cartes à photo (maquette 6) : photo en haut, libellé, sous-titre ; coche noire en haut à droite. */
.cds-choix--photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cds-choix--photos.cds-choix--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cds-choix--photos.cds-choix--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.cds-choix--photos .cds-carte { flex-direction: column; }
.cds-carte__visuel { position: relative; display: block; aspect-ratio: 2.2 / 1; overflow: hidden; background: var(--cds-sable); }
.cds-carte__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--cds-ease); }
.cds-carte:hover .cds-carte__visuel img { transform: scale(1.03); }
.cds-carte__visuel--picto { display: grid; place-items: center; color: var(--cds-encre); }
.cds-carte__visuel--picto .cds-picto { width: 48px; height: 48px; stroke-width: 1.2; }
.cds-choix--photos .cds-carte__texte { padding: 11px 13px 13px; flex: 1; }
.cds-choix--photos .cds-carte__label { font-size: 13.5px; }
.cds-choix--photos .cds-carte__desc { font-size: 11.5px; }
.cds-choix--photos .cds-carte__choix {
	position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%;
	background: var(--cds-encre); opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .2s var(--cds-ease);
}
.cds-choix--photos .cds-carte__choix svg { width: 16px; height: 16px; stroke-width: 2; opacity: 1; }
.cds-choix--photos .cds-carte:has(input:checked) .cds-carte__choix { opacity: 1; transform: none; border: 0; background: var(--cds-encre); }

/* Cartes en liste (texte seul) */
.cds-choix--liste { display: grid; gap: 9px; max-width: 720px; }
.cds-choix--liste .cds-carte { align-items: center; gap: 14px; padding: 14px 16px; }
.cds-choix--liste .cds-carte__texte { flex: 1; }
.cds-choix--liste .cds-carte__label { font-size: 15px; }
.cds-choix--liste .cds-carte__mini { flex: none; width: 30px; height: 30px; color: var(--cds-encre); }
.cds-carte__mini .cds-picto { stroke-width: 1.7; }

/* Tuiles à pictogramme (pièces, éléments sur mesure, activité) */
.cds-choix--tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cds-choix--tuiles .cds-carte { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 16px 14px; min-height: 136px; }
.cds-choix--tuiles .cds-carte__mini { width: 40px; height: 40px; color: var(--cds-encre); }
.cds-choix--tuiles .cds-carte__texte { flex: 1; }
.cds-choix--tuiles .cds-carte__label { font-size: 14px; }
.cds-choix--tuiles .cds-carte__choix { position: absolute; top: 12px; right: 12px; }

/* ------------------------------------------------ ambiances (finition) */

.cds-ambiances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cds-ambiance {
	position: relative; display: flex; flex-direction: column; cursor: pointer; padding: 0; overflow: hidden;
	background: var(--cds-papier); border: 1px solid var(--cds-trait); border-radius: var(--cds-r);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.cds-ambiance:hover { border-color: #BDB9B2; }
.cds-ambiance:has(input:focus-visible) { outline: 2px solid var(--cds-laiton); outline-offset: 3px; }
.cds-ambiance:has(input:checked) { border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); }
.cds-ambiance__visuel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cds-sable); }
.cds-ambiance__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--cds-ease); }
.cds-ambiance:hover .cds-ambiance__visuel img { transform: scale(1.03); }
.cds-ambiance__nuancier { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 1; }
.cds-matiere { flex: 1; height: 28px; border-radius: 1px; box-shadow: 0 0 0 2px #FFFFFF; position: relative; }
.cds-matiere__nom { position: absolute; left: 0; right: 0; top: calc(100% + 6px); font-size: 0; }
.cds-ambiance__visuel--composition { display: flex; flex-direction: column; }
.cds-ambiance__visuel--composition .cds-ambiance__nuancier { position: static; flex-direction: column; gap: 0; height: 100%; }
.cds-ambiance__visuel--composition .cds-matiere { height: auto; flex: 1; border-radius: 0; box-shadow: none; }
.cds-ambiance__visuel--composition .cds-matiere__nom { position: absolute; top: auto; bottom: 10px; left: 12px; right: auto; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; background: rgba(255, 255, 255, .9); color: var(--cds-encre); }
.cds-ambiance__texte { display: block; padding: 11px 13px 13px; }
.cds-ambiance__tete { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cds-ambiance__nom { font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--cds-encre); }
.cds-ambiance__desc { display: block; margin-top: 4px; color: var(--cds-gris); font-size: 12px; font-weight: 500; line-height: 1.45; }
.cds-ambiance .cds-carte__choix { flex: none; }
.cds-ambiance:has(input:checked) .cds-carte__choix { border: 6px solid var(--cds-encre); }

.cds-matiere--peinture-blanche { background: #EEEDE8; }
.cds-matiere--chene-clair { background: repeating-linear-gradient(92deg, #D8C19D 0 7px, #CFB690 7px 9px, #DCC7A5 9px 17px, #D2BA95 17px 18px); }
.cds-matiere--gres-gris { background-color: #B7B6B0; background-image: linear-gradient(#A6A59F 1px, transparent 1px), linear-gradient(90deg, #A6A59F 1px, transparent 1px); background-size: 34px 34px; }
.cds-matiere--lin { background-color: #E2DACA; background-image: repeating-linear-gradient(0deg, rgba(120, 100, 70, .07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(120, 100, 70, .06) 0 1px, transparent 1px 3px); }
.cds-matiere--chene-naturel { background: repeating-linear-gradient(90deg, #BC935F 0 46px, #A98250 46px 47px), repeating-linear-gradient(0deg, transparent 0 10px, rgba(90, 60, 30, .08) 10px 11px); background-blend-mode: multiply; }
.cds-matiere--zellige-blanc { background-color: #ECEEE7; background-image: linear-gradient(#D4D7CF 1px, transparent 1px), linear-gradient(90deg, #D4D7CF 1px, transparent 1px), radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(214, 222, 214, .5)); background-size: 22px 22px, 22px 22px, 22px 22px; }
.cds-matiere--travertin { background: linear-gradient(178deg, #D9CBB2 0 18%, #CFBFA3 18% 19%, #D7C9AF 19% 42%, #CCBB9E 42% 43%, #DACDB5 43% 70%, #CDBDA1 70% 71%, #D6C7AC 71%); }
.cds-matiere--noyer { background: repeating-linear-gradient(88deg, #5E3F2B 0 5px, #6D4A33 5px 11px, #573A28 11px 12px, #6A4731 12px 20px); }
.cds-matiere--laiton { background: linear-gradient(115deg, #8F6E3B, #C9A86A 45%, #A5834D 60%, #D8BF8C); }
.cds-matiere--marbre-vert { background-color: #24392F; background-image: linear-gradient(118deg, transparent 0 30%, rgba(225, 232, 222, .55) 31%, transparent 33% 58%, rgba(225, 232, 222, .35) 59%, transparent 60%), linear-gradient(64deg, transparent 0 44%, rgba(225, 232, 222, .4) 45%, transparent 46%); }
.cds-matiere--ebene { background: repeating-linear-gradient(90deg, #231C18 0 6px, #2E2520 6px 7px, #1E1814 7px 15px); }
.cds-matiere--or-brosse { background: repeating-linear-gradient(0deg, #C5A563 0 1px, #CFB073 1px 2px, #BC9B58 2px 3px); }

/* ---------------------------------------------------------- surface */

.cds-surface { max-width: 600px; }
.cds-surface__saisie { display: flex; align-items: stretch; gap: 10px; }
.cds-sim .cds-surface__pas {
	flex: none; width: 60px; border: 1px solid var(--cds-trait); background: var(--cds-papier); border-radius: var(--cds-r-s);
	font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; color: var(--cds-encre); padding: 0; transition: border-color .2s, background-color .2s;
}
.cds-sim .cds-surface__pas:hover { border-color: var(--cds-trait-fort); background: var(--cds-sable); }
.cds-surface__champ { position: relative; flex: 1; display: block; }
.cds-sim .cds-surface__champ input {
	width: 100%; height: 84px; border: 1px solid var(--cds-trait-fort); border-radius: var(--cds-r-s); background: var(--cds-papier);
	padding: 0 76px 0 22px; font-family: var(--cds-sans); font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--cds-encre);
	-moz-appearance: textfield; appearance: textfield; box-shadow: none; transition: border-color .2s, box-shadow .2s; font-variant-numeric: tabular-nums;
}
.cds-surface__champ input::-webkit-outer-spin-button, .cds-surface__champ input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cds-surface__champ input::placeholder { color: var(--cds-trait-fort); }
.cds-surface__champ input:focus { outline: none; border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); }
.cds-surface__unite { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; color: var(--cds-gris); pointer-events: none; }
.cds-surface__repere { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cds-sim .cds-repere {
	display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; cursor: pointer;
	border: 1px solid var(--cds-trait); border-radius: var(--cds-r); background: var(--cds-papier); text-align: left; transition: border-color .2s ease, box-shadow .2s ease;
}
.cds-sim .cds-repere span { font-size: 11.5px; font-weight: 500; color: var(--cds-gris); }
.cds-sim .cds-repere b { font-weight: 600; font-size: 14px; color: var(--cds-encre); }
.cds-sim .cds-repere:hover { border-color: #BDB9B2; }
.cds-sim .cds-repere.est-choisi { border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); }
.cds-surface__erreur { color: var(--cds-erreur); font-size: 13.5px; margin-top: 10px; min-height: 1.4em; }

/* ------------------------------------------------------------ champs */

.cds-champ { display: block; position: relative; }
.cds-champ__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--cds-texte); margin-bottom: 6px; }
.cds-sim .cds-champ input, .cds-sim .cds-champ textarea {
	display: block; width: 100%; background: var(--cds-papier); border: 1px solid var(--cds-trait-fort); border-radius: var(--cds-r-s);
	padding: 12px 14px; font-family: var(--cds-sans); font-size: 16px; line-height: 1.4; color: var(--cds-encre); box-shadow: none; margin: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.cds-sim .cds-champ input:hover, .cds-sim .cds-champ textarea:hover { border-color: #BDB9B2; }
.cds-sim .cds-champ input:focus, .cds-sim .cds-champ textarea:focus { outline: none; border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); }
.cds-sim .cds-champ input[aria-invalid="true"] { border-color: var(--cds-erreur); }
.cds-champ__erreur { display: block; color: var(--cds-erreur); font-size: 12.5px; margin-top: 6px; }
.cds-champ__erreur:empty { display: none; }
.cds-champ__compteur { display: block; text-align: right; font-size: 11.5px; color: var(--cds-gris); margin-top: 6px; }
.cds-champ--texte { max-width: 720px; }
.cds-sim .cds-champ--texte textarea { min-height: 160px; resize: vertical; }

.cds-lieu { max-width: 600px; }
.cds-sim .cds-champ--cp input { font-size: 32px; font-weight: 600; letter-spacing: .04em; height: 72px; max-width: 240px; padding: 0 20px; font-variant-numeric: tabular-nums; }
.cds-lieu__communes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cds-lieu__info { font-size: 13.5px; color: var(--cds-gris); }
.cds-champ--commune { margin-top: 16px; }
.cds-puce { cursor: pointer; }
.cds-puce span { display: inline-block; padding: 8px 14px; border: 1px solid var(--cds-trait); border-radius: var(--cds-r); background: var(--cds-papier); font-size: 14px; font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease; }
.cds-puce:hover span { border-color: #BDB9B2; }
.cds-puce input:checked + span { border-color: var(--cds-encre); box-shadow: 0 0 0 1px var(--cds-encre); font-weight: 600; }
.cds-puce input:focus-visible + span { outline: 2px solid var(--cds-laiton); outline-offset: 2px; }

/* ---------------------------------------------------------- contact */

.cds-contact__mise { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.cds-contact { display: grid; gap: 16px; }
.cds-contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cds-pot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cds-coche { display: block; cursor: pointer; font-size: 13px; color: var(--cds-texte); line-height: 1.5; position: relative; }
.cds-coche span { display: block; padding-left: 32px; position: relative; }
.cds-coche span::before {
	content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 3px;
	border: 1.5px solid #D2CFC9; background: var(--cds-papier) no-repeat center / 12px; transition: background-color .2s ease, border-color .2s ease;
}
.cds-coche input:checked + span::before { background-color: var(--cds-encre); border-color: var(--cds-encre); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cds-coche input:focus-visible + span::before { outline: 2px solid var(--cds-laiton); outline-offset: 2px; }
.cds-coche a { color: var(--cds-encre); text-underline-offset: 3px; }
.cds-contact__message { color: var(--cds-erreur); font-size: 13.5px; }
.cds-contact__message:empty { display: none; }
.cds-contact__note { font-size: 12px; color: var(--cds-gris); display: flex; gap: 8px; align-items: flex-start; }
.cds-contact__note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cds-p); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cds-turnstile:empty { display: none; }

/* Aperçu du rapport (aucun montant : simple maquette) */
.cds-rapport { background: #FFFFFF; border: 1px solid var(--cds-trait); border-radius: var(--cds-r); padding: 20px; }
.cds-rapport__titre { font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--cds-encre); }
.cds-rapport__feuilles { position: relative; height: 170px; margin: 16px 0; }
.cds-rapport__feuille { position: absolute; width: 112px; height: 158px; background: #fff; border-radius: 1px; border: 1px solid var(--cds-trait); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); padding: 10px 9px; overflow: hidden; }
.cds-rapport__feuille:first-child { left: 14px; top: 10px; transform: rotate(-5deg); }
.cds-rapport__feuille:last-child { left: 100px; top: 0; transform: rotate(3deg); }
.cds-rapport__feuille i { display: block; height: 4px; border-radius: 2px; background: var(--cds-lin); margin-bottom: 5px; }
.cds-rapport__feuille i.t { height: 8px; width: 70%; background: var(--cds-encre); opacity: .75; margin-bottom: 8px; }
.cds-rapport__feuille i.c { height: 34px; background: color-mix(in srgb, var(--cds-p) 14%, #fff); margin: 8px 0; }
.cds-rapport__feuille i.p { height: 40px; background: linear-gradient(135deg, #CDC6BC, #8F877C); margin-bottom: 8px; }
.cds-rapport__feuille i.d { width: 60%; }
.cds-rapport__liste { display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--cds-texte); }
.cds-rapport__liste li { display: flex; gap: 9px; align-items: flex-start; }
.cds-rapport__liste svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cds-p); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------- navigation */

.cds-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cds-filet); }
.cds-sim .cds-btn--retour {
	display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 6px 0; margin: 0; cursor: pointer; box-shadow: none;
	font-family: var(--cds-sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--cds-gris); text-decoration: none;
	transition: color .2s ease;
}
.cds-sim .cds-btn--retour svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--cds-ease); }
.cds-sim .cds-btn--retour:hover { color: var(--cds-encre); }
.cds-sim .cds-btn--retour:hover svg { transform: translateX(-3px); }

.cds-sim .cds-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; margin-left: auto;
	border: 1px solid var(--cds-noir); border-radius: var(--cds-r-s); background: var(--cds-noir); color: #fff; cursor: pointer;
	font-family: var(--cds-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; line-height: 1.2; white-space: nowrap;
	box-shadow: none; transition: background-color .2s ease, color .2s ease, opacity .2s;
}
.cds-sim .cds-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--cds-ease); }
.cds-sim .cds-btn:hover { background: var(--cds-noir-fonce); color: #fff; }
.cds-sim .cds-btn:hover svg { transform: translateX(3px); }
.cds-sim .cds-btn:disabled { opacity: .22; cursor: not-allowed; }
.cds-sim .cds-btn:disabled:hover svg { transform: none; }
.cds-sim .cds-btn--clair { background: var(--cds-papier); color: var(--cds-encre); border-color: var(--cds-encre); margin-left: 0; }
.cds-sim .cds-btn--clair:hover { background: var(--cds-encre); color: #fff; }
.cds-sim .cds-btn--envoi { width: 100%; height: 52px; margin-left: 0; }
.cds-sim .cds-btn.est-en-cours { opacity: .7; cursor: progress; }

/* --------------------------------------------------------------- fin */

.cds-fin__bandeau { position: relative; margin: 0 0 28px; height: 220px; overflow: hidden; border-radius: var(--cds-r); }
.cds-fin__bandeau img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.cds-sim .cds-fin__titre { font-family: var(--cds-sans); font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--cds-encre); margin-top: 8px; max-width: 22ch; }
.cds-fin__titre:focus { outline: none; }
.cds-fin__texte { margin-top: 10px; max-width: 58ch; color: var(--cds-gris); font-size: 14px; line-height: 1.55; }
.cds-fin__texte b { color: var(--cds-encre); font-weight: 600; }
.cds-fin__etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.cds-fin__etape { background: #FFFFFF; border: 1px solid var(--cds-trait); border-radius: var(--cds-r); padding: 16px; }
.cds-fin__etape .cds-etape__pastille { margin-bottom: 12px; }
.cds-fin__etape.est-faite .cds-etape__pastille { background: var(--cds-encre); border-color: var(--cds-encre); color: #fff; }
.cds-fin__etape b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--cds-encre); }
.cds-fin__etape > span:not(.cds-etape__pastille) { display: block; margin-top: 4px; font-size: 12.5px; color: var(--cds-gris); line-height: 1.45; }
.cds-fin__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cds-fin__actions .cds-btn { margin-left: 0; }

/* ---------------------------------------------------------- animations */

@keyframes cds-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cds-encre { from { color: var(--cds-laiton); } to { color: var(--cds-gris); } }
@media (prefers-reduced-motion: reduce) {
	.cds-sim *, .cds-sim *::before, .cds-sim *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------ adaptations */

.cds-cote__rdv { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; font-size: 12px; line-height: 1.45; color: var(--cds-texte); }
.cds-cote__rdv svg, .cds-q__rdv svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cds-p); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cds-sim .cds-cote__rdv a, .cds-sim .cds-q__rdv a { color: var(--cds-noir, #151515); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cds-q__rdv { display: none; }

@container cds (max-width: 1180px) {
	.cds-ambiances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cds-ambiance__visuel { aspect-ratio: 16 / 10; }
	.cds-choix--photos.cds-choix--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cds-contact__mise { grid-template-columns: 1fr; }
	.cds-rapport { display: grid; grid-template-columns: 220px 1fr; gap: 6px 24px; align-items: center; }
	.cds-rapport__titre { grid-column: 1 / -1; }
	.cds-rapport__feuilles { margin: 4px 0 0; }
}

@container cds (max-width: 980px) {
	.cds-choix--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cds-fin__etapes { grid-template-columns: 1fr; }
}

/* Mobile et colonnes étroites (maquette 6, téléphone) :
   en-tête compact, choix à photos en liste à vignette, barre d'action collante. */
@container cds (max-width: 820px) {
	.cds-q__rdv { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 4px; font-size: 13px; color: var(--cds-doux, #6B6B6B); }
	.cds-cote__rdv { display: none; }
	.cds-sim__cadre { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; border: 0; }
	.cds-cote { position: sticky; top: 0; z-index: 5; border-right: 0; border-bottom: 1px solid var(--cds-filet); padding: 6px 18px 12px; }
	.cds-cote__marque, .cds-cote__intro, .cds-etapes, .cds-cote__rassure { display: none; }
	.cds-mtete { display: block; }
	.cds-mtete__ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11.5px; line-height: 1.6; }
	.cds-mtete__ligne b { font-weight: 700; color: var(--cds-encre); }
	.cds-mtete__ligne span { font-weight: 600; color: var(--cds-gris); font-variant-numeric: tabular-nums; }
	.cds-mtete__jauge { height: 4px; border-radius: 2px; background: var(--cds-lin); margin-top: 9px; overflow: hidden; }
	.cds-mtete__jauge > span { display: block; height: 100%; width: 0; background: var(--cds-p); border-radius: inherit; transition: width .5s var(--cds-ease); }

	.cds-scene { padding: 18px 18px 0; }
	.cds-q__entete { margin-bottom: 16px; }
	.cds-q .cds-q__etape { display: none; }
	.cds-sim .cds-q__titre { font-size: 25px; letter-spacing: -.025em; line-height: 1.12; margin: 6px 0; }
	.cds-q__aide { font-size: 13.5px; }

	/* Liste à vignette : 64 × 52 à gauche, libellé, rond radio à droite. */
	.cds-choix--photos, .cds-choix--photos.cds-choix--4, .cds-choix--photos.cds-choix--2 { grid-template-columns: 1fr; gap: 9px; max-width: none; }
	.cds-choix--photos .cds-carte { flex-direction: row; align-items: center; gap: 12px; padding: 7px; }
	.cds-choix--photos .cds-carte__visuel { flex: none; width: 64px; height: 52px; aspect-ratio: auto; border-radius: 3px; }
	.cds-choix--photos .cds-carte__visuel--picto .cds-picto { width: 30px; height: 30px; }
	.cds-choix--photos .cds-carte__texte { padding: 0; flex: 1; }
	.cds-choix--photos .cds-carte__label { font-size: 14px; line-height: 1.25; }
	.cds-choix--photos .cds-carte__desc { display: none; }
	.cds-choix--photos .cds-carte:hover .cds-carte__visuel img { transform: none; }
	.cds-choix--photos .cds-carte__choix,
	.cds-choix--photos .cds-carte:has(input:checked) .cds-carte__choix {
		position: static; width: 20px; height: 20px; margin-right: 4px; opacity: 1; transform: none;
		background: var(--cds-papier); border: 1.5px solid #D2CFC9;
	}
	.cds-choix--photos .cds-carte__choix svg { width: 12px; height: 12px; stroke-width: 2.6; opacity: 0; }
	.cds-choix--photos .cds-carte:not(.cds-carte--coche):has(input:checked) .cds-carte__choix { border: 6px solid var(--cds-encre); }
	.cds-choix--photos .cds-carte--coche .cds-carte__choix { border-radius: 3px; }
	.cds-choix--photos .cds-carte--coche:has(input:checked) .cds-carte__choix { background: var(--cds-encre); border-color: var(--cds-encre); }
	.cds-choix--photos .cds-carte--coche:has(input:checked) .cds-carte__choix svg { opacity: 1; }

	.cds-choix--liste .cds-carte { padding: 13px 14px; }
	.cds-choix--liste .cds-carte__label { font-size: 14.5px; }
	.cds-choix--tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.cds-choix--tuiles .cds-carte { min-height: 118px; padding: 13px; }
	.cds-ambiances { grid-template-columns: 1fr; gap: 9px; }
	.cds-ambiance { flex-direction: row; }
	.cds-ambiance__visuel { flex: none; width: 104px; aspect-ratio: auto; }
	.cds-ambiance__nuancier { left: 7px; right: 7px; bottom: 7px; gap: 4px; }
	.cds-matiere { height: 18px; }
	.cds-ambiance__texte { padding: 10px 12px; flex: 1; }
	.cds-ambiance__nom { font-size: 14.5px; }
	.cds-contact__grille { grid-template-columns: 1fr; }
	.cds-rapport { grid-template-columns: 1fr; }
	.cds-rapport__feuilles { display: none; }
	.cds-surface__champ input { height: 76px; }
	.cds-sim .cds-surface__champ input { font-size: 38px; }
	.cds-sim .cds-champ--cp input { font-size: 28px; height: 64px; }
	.cds-sim .cds-surface__pas { width: 52px; }

	/* Barre du bas collante : bouton carré « ← » et grand bouton « Continuer ». */
	.cds-nav { position: sticky; bottom: 0; z-index: 4; background: var(--cds-papier); gap: 10px; margin: 24px -18px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cds-filet); }
	.cds-sim .cds-nav .cds-btn--retour { flex: none; width: 50px; height: 50px; padding: 0; justify-content: center; border: 1px solid #DDDAD5; border-radius: var(--cds-r-s); color: var(--cds-encre); background: var(--cds-papier); }
	.cds-sim .cds-nav .cds-btn--retour span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.cds-sim .cds-nav .cds-btn--retour:hover svg { transform: none; }
	.cds-sim .cds-nav .cds-btn--suite { flex: 1; height: 50px; margin-left: 0; }
	/* Dernière question (coordonnées) : pas de « Continuer », la barre ne colle pas. */
	.cds-nav:not(:has(.cds-btn--suite)) { position: static; border-top: 0; padding-top: 4px; }
	.cds-ambiance__visuel--composition .cds-matiere__nom { font-size: 8.5px; letter-spacing: .06em; left: 6px; bottom: 6px; padding: 2px 5px; }
	.cds-fin { padding-bottom: 24px; }
	.cds-fin__bandeau { margin: -18px -18px 22px; height: 170px; border-radius: 0; }
	.cds-sim .cds-fin__titre { font-size: 26px; letter-spacing: -.025em; }
	.cds-fin__actions .cds-btn { flex: 1 1 100%; }
	.cds-contact { padding-bottom: 4px; }
}

/* Écrans tactiles : pas d'état de survol résiduel après un tap. */
@media (hover: none) {
	.cds-carte:hover, .cds-ambiance:hover { border-color: var(--cds-trait); }
	.cds-carte:hover .cds-carte__visuel img, .cds-ambiance:hover .cds-ambiance__visuel img { transform: none; }
	.cds-sim .cds-repere:not(.est-choisi):hover, .cds-puce:hover span { border-color: var(--cds-trait); }
}

@container cds (max-width: 380px) {
	.cds-choix--tuiles { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
	.cds-sim-page__corps { padding: 0; }
	/* Page dédiée : le cadre occupe l'écran, la barre d'action reste sous le pouce. */
	.cds-sim-page .cds-sim__cadre { min-height: 100vh; min-height: 100dvh; }
	.cds-sim-page--apercu .cds-sim__cadre { min-height: calc(100dvh - 44px); }
}

/* ------------------------------------------------ 1.7.0 : accueil, architecte, lien de publication */

.cds-cote__archi { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--cds-filet); border-radius: 10px; background: #FFFFFF; }
.cds-cote__archi img, .cds-accueil__archi img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cds-cote__archi span, .cds-accueil__archi span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.cds-cote__archi b, .cds-accueil__archi b { font-weight: 700; color: var(--cds-encre); }
.cds-cote__archi small, .cds-accueil__archi small { font-size: 12px; color: var(--cds-gris); }
.cds-cote__exemple { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 12px; line-height: 1.45; }
.cds-cote__exemple svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--cds-p); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cds-sim .cds-cote__exemple a { color: var(--cds-p); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cds-accueil { display: none; }
.cds-q__choisi { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--cds-p) 9%, #FFFFFF); font-size: 13.5px; line-height: 1.35; color: var(--cds-texte); }
.cds-q__choisi b { color: var(--cds-encre); font-weight: 700; }
.cds-q__coche { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cds-p); display: grid; place-items: center; }
.cds-q__coche svg { width: 13px; height: 13px; fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cds-sim .cds-q__choisi button { all: unset; margin-left: auto; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--cds-p); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cds-sim .cds-q__choisi button:focus-visible { outline: 2px solid var(--cds-p); outline-offset: 2px; }

@container cds (max-width: 820px) {
	.cds-accueil { display: block; margin: 0 0 20px; padding: 14px 14px 12px; border: 1px solid var(--cds-filet); border-radius: 12px; background: #FFFFFF; }
	.cds-accueil__l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
	.cds-accueil__nom { font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--cds-encre); }
	.cds-accueil__sur { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cds-p); white-space: nowrap; }
	.cds-accueil__archi { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
	.cds-accueil__archi img { width: 40px; height: 40px; }
	.cds-accueil__points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
	.cds-accueil__points li { font-size: 11.5px; font-weight: 600; color: var(--cds-texte); background: #F4F3F1; border-radius: 20px; padding: 4px 10px; }
	.cds-sim .cds-accueil__ex { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--cds-p); text-decoration: underline; text-underline-offset: 3px; }
	.cds-q--id-typologie .cds-accueil ~ .cds-q__entete .cds-q__aide { display: none; }
}
@container cds (max-width: 820px) {
	.cds-cote__archi, .cds-cote__exemple { display: none; }
}
.cds-avis-moi { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99999; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 10px; background: #141516; color: #FFFFFF; font: 600 14px/1.4 Manrope, system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
