/* Approved marine / opal finish. Scope stays outside the V19/V20 optical form.
   Nappes and returns sit INSIDE their own silhouette; content remains native. */
:root {
  --marine-face: linear-gradient(165deg, rgb(35 68 105 / .94), rgb(10 28 52 / .98) 65%, rgb(17 39 69 / .97));
  --opal-face: linear-gradient(164deg, rgb(249 252 255 / .93), rgb(230 239 249 / .90) 62%, rgb(238 240 235 / .94));
}

/* Controls over film stay pale; the same action over paper becomes marine. */
.btn.verre {
  --flou: 3px;
  background: var(--opal-face);
  color: #132c45;
  border: 1px solid rgb(225 238 251 / .85);
  box-shadow: inset 0 2px 2px #ffffffd6, inset 0 -3px 3px #193b5a58,
    0 3px 2px -1px #00152345, 0 10px 18px -10px #00102080;
  min-height: 46px;
  font-size: 15px;
}
.btn.verre--sombre, .prestations .btn.verre {
  background: var(--marine-face);
  color: #f1f6fd;
  border-color: #bfd3dfb3;
  text-shadow: 0 1px 2px #030e1ca6;
}
.btn.verre::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 3px 9px 4px;
  border-radius: inherit;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(90% 50% at 45% 0, #ffffffe0, #ffffff30 45%, transparent 72%),
    radial-gradient(60% 19% at 53% 100%, #fff7d4c2, #bcecff45 55%, transparent 85%);
}
.btn.verre::after, .page-estimation .carte.verre::after, .page-estimation .lead-analysis::after,
.hud .bulle.verre::after, .epingle .bulle.verre::after {
  padding: 2px;
  background: linear-gradient(135deg, #fffffff5 0%, #ccecffb5 20%, #bccae56b 44%, #ead6b7bf 70%, #f9ffffeb 88%, #b8d7f5a6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.btn.verre--sombre svg, .prestations .btn.verre svg { color: #ffe4a3; }
.btn.verre:focus-visible { outline: 3px solid #f2ce81; outline-offset: 4px; }

/* Film markers: cream lettering on marine. The drone and 3D room are unchanged. */
.hud .bulle.verre, .epingle .bulle.verre {
  background: var(--marine-face);
  color: #f3f7ff;
  box-shadow: inset 0 2px 2px #ffffff69, inset 0 -2px 2px #a6c7e64d, 0 5px 12px -6px #04162a88;
}
.epingle .bulle small { opacity: 1; color: #ffe4a3; }
.nav .son {
  background: var(--marine-face);
  color: #ffe4a3;
  box-shadow: inset 0 2px 2px #ffffff78, inset 0 -2px 2px #adc5e34d;
}
.nav[data-fond="papier"] .son, .nav .son[aria-pressed="true"] {
  background: var(--marine-face); color: #ffe4a3; border-color: #d7e8f0a8;
}

/* Calculator: a calm opal card on the photographic background. */
.page-estimation {
  --encre: #142e49;
  --encre-2: #243e58;
  --encre-3: #3c5570;
  --plaque: var(--opal-face);
  --plaque-sombre: var(--marine-face);
}
.page-estimation .carte.verre {
  border: 1px solid #e7f2ffcc;
  box-shadow: inset 0 2px 2px #ffffffed, inset 0 -3px 4px #1c3b5b40,
    0 4px 2px -2px #08203955, 0 20px 38px -18px #061b3480;
}
.page-estimation .carte.verre::before, .page-estimation .lead-analysis::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 5px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(80% 30px at 45% 0%, #ffffffd9, #ffffff33 48%, transparent 75%),
    radial-gradient(60% 12px at 45% 100%, #fff7d7b3, #d3f1ff69 55%, transparent 90%);
}
.page-estimation .champ :is(input, select), .page-estimation .pas {
  border-color: #6f8caa80;
  background-color: #f5f9ffe8;
  box-shadow: inset 0 2px 3px #254b7329, inset 0 -2px 1px #ffffffde, 0 2px 2px #17355318;
}
.page-estimation .champ input::placeholder {
  color: #6e5a3c;   /* 20/11 : #806b4b mesuré à 3,5:1 sur le verre clair */
  opacity: 1;
  font-style: italic;
  font-weight: 400;
}
.page-estimation .champ select:required:invalid { color: #6e5a3c; font-style: italic; font-weight: 400; }
.page-estimation .champ select option { color: #142e49; font-style: normal; }
.page-estimation .champ :is(input, select):focus-visible {
  outline: 2px solid #386ba1;
  outline-offset: 3px;
  background-color: #fff;
}
.page-estimation .pas input { background: transparent; box-shadow: none; }
.page-estimation .pas__btn {
  background: var(--marine-face);
  color: #ffe4a3;
  box-shadow: inset 0 2px 2px #ffffff66, inset 0 -2px 2px #c7e7ff45;
}
.page-estimation .pas__btn:first-child { border-radius: .8rem 0 0 .8rem; }
.page-estimation .pas__btn:last-child { border-radius: 0 .8rem .8rem 0; }
.page-estimation .seg {
  background: var(--marine-face);
  box-shadow: inset 0 2px 2px #ffffff70, inset 0 -2px 2px #bad3f066, 0 2px 2px #0c264233;
}
.page-estimation .seg__opt span { color: #f2f6fd; min-height: 44px; display: grid; place-items: center; }
.page-estimation .seg__marque {
  background: var(--opal-face);
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 2px #607f9b59, 0 2px 4px #03172b59;
}
.page-estimation .seg__opt input:checked + span { color: #132c45; }
.page-estimation .seg__opt input:focus-visible + span { outline-color: #f2ce81; }
.page-estimation .puce span {
  background: var(--opal-face);
  border-color: #7696b5a3;
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 1px #8ea9c34d, 0 2px 3px #12345018;
  min-height: 44px;
}
.page-estimation .puce input:checked + span {
  background: var(--marine-face);
  color: #f4f7fd;
  border-color: #e0c283;
  box-shadow: inset 0 2px 2px #ffffff66, inset 0 -2px 2px #a9c8e74d, 0 3px 8px -4px #08233d80;
}
.page-estimation .puce input:checked + span svg { stroke: #ffe4a3; }
.page-estimation .rue, .page-estimation .jeton {
  background: var(--opal-face);
  border-color: #7898b5a3;
  box-shadow: inset 0 2px 2px #ffffffeb, inset 0 -2px 2px #9db4c840, 0 2px 3px #12345018;
}
.page-estimation .rue:focus-visible { outline-color: #386ba1; }
.page-estimation .modifier svg { color: #86632a; }
.page-estimation .champ.invalide :is(input, select, .pas) {
  border-color: var(--alerte);
  box-shadow: inset 0 1px 2px #1410061a, 0 0 0 3px oklch(.46 .16 27 / .16);
}

/* Auxiliary dialog/control only. Existing field optics, alpha icons, persistent
   glow, consent and green-ready hint retain their own V19/V20 implementation. */
.lead-keycap-toggle {
  background: var(--opal-face);
  color: #142e49;
  box-shadow: inset 0 2px 2px #ffffffed, inset 0 -2px 2px #698ca15c, 0 3px 8px #102e3d26;
}
.form-estimation[data-lead-capture] .lead-data-dialog {
  background: var(--marine-face);
  color: #f1f6fd;
  border-color: #bdd4e7b8;
  box-shadow: inset 0 2px 2px #ffffff85, inset 0 -3px 3px #b5d7f04a, 0 20px 60px #03162b80;
}
.form-estimation[data-lead-capture] .lead-data-dialog h2 { color: #fff1cb; }
.form-estimation[data-lead-capture] .lead-data-dialog a { color: #ffe4a3; }
.form-estimation[data-lead-capture] .lead-data-close {
  min-height: 44px;
  background: var(--opal-face);
  color: #142e49;
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 2px #6b8ba14d;
}

@media (hover: hover) and (pointer: fine) {
  .page-estimation .seg__opt:hover input:not(:checked) + span { color: #ffe4a3; }
  .page-estimation .pas__btn:hover { background: linear-gradient(165deg, #375f8a, #142e49); }
  .page-estimation .puce:hover input:not(:checked) + span { background: #fff; border-color: #486e97; }
  .page-estimation .rue:hover { background: #fff; border-color: #486e97; }
}
@media (forced-colors: active) {
  .btn.verre, .page-estimation :is(.carte.verre, .seg, .seg__marque, .puce span, .pas__btn, .rue, .jeton),
  .form-estimation[data-lead-capture] :is(.lead-data-dialog, .lead-data-close), .lead-keycap-toggle {
    background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none;
  }
  .btn.verre::before, .btn.verre::after, .page-estimation .carte.verre::before, .page-estimation .carte.verre::after { display: none; }
  .page-estimation .seg__opt span { color: CanvasText; }
  .page-estimation .seg__opt input:checked + span, .page-estimation .puce input:checked + span { background: Highlight; color: HighlightText; }
  .page-estimation .puce input:checked + span svg { stroke: HighlightText; }
  .form-estimation[data-lead-capture] .lead-data-dialog :is(h2, a) { color: CanvasText; }
}

@media (max-width:370px){.page-estimation .seg__opt span{font-size:12px;padding-inline:2px;}}

/* Pointer light: light is painted inside the glass, above its face and below its text. */

@media (hover:hover) and (pointer:fine) and (forced-colors:none) {
 .btn.verre:not(:disabled):hover, .btn.verre:not(:disabled):focus-visible,
 .page-estimation :is(.pas__btn,.rue):not(:disabled):hover,
 .lead-keycap-toggle:hover, .lead-data-close:hover {
  box-shadow:inset 0 1px 2px #fff, inset 0 0 17px #ffdc96bf, inset 0 -5px 12px #ffd584a6, 0 3px 2px -1px #00152345;
 }
 .btn.verre--sombre:not(:disabled):hover, .prestations .btn.verre:not(:disabled):hover,
 .page-estimation :is(.pas__btn,.rue):not(:disabled):hover {
  box-shadow:inset 0 1px 2px #fff, inset 0 0 17px #76dfff99, inset 0 -5px 12px #76dfffb3, 0 3px 2px -1px #00152345;
 }
 .page-estimation .seg__opt:hover span, .page-estimation .puce:hover span { box-shadow:inset 0 0 13px #8ce2ff99; }
 .page-estimation .seg__opt:hover input:checked + span, .page-estimation .puce:hover input:not(:checked) + span { box-shadow:inset 0 0 13px #ffdc9ab3; }
 .form-estimation[data-lead-capture]:not([data-lead-ready=true]) .lead-submit--keycap:not(:disabled):hover .lead-keycap-hint {
  background:linear-gradient(145deg,#fff5d9,#f7da9c);color:#17344d;border-color:#fff5d6;box-shadow:inset 0 1px 2px #fff,inset 0 0 13px #ffcf6e;
 }
}


/* 28/10: footer and estimator share the approved marine / opal finish. */
.pied {
  display: block;
  background: var(--papier);
  color: #f4f7fc;
  padding: 1.75rem var(--marge) max(2.5rem, env(safe-area-inset-bottom));
}
.pied-verre {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 78rem;
  margin-inline: auto;
  padding: 2rem 2.25rem;
  border-radius: 1.75rem;
  border: .0625rem solid #c6d6ea99;
  background: var(--marine-face);
  box-shadow: inset 0 .0625rem .0625rem #ffffffb3, inset 0 -.125rem .1875rem #07182a99, 0 .1875rem .1875rem -.125rem #172d4940, 0 1.125rem 1.5625rem -1.25rem #091c35a0;
}
.pied-verre::before {
  content: '';
  position: absolute;
  inset: .3125rem;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 28% at 25% 0%, #ffffff61, #dcecff0a 60%, transparent 85%), radial-gradient(ellipse 26% 12% at 86% 100%, #ffebba61, #cce6ff1f 65%, transparent 90%);
}
.pied-verre::after {
  content: '';
  position: absolute;
  inset: .0625rem;
  border: .0625rem solid #dfebfa85;
  border-radius: inherit;
  pointer-events: none;
}
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .pied-verre::after {
    border: 0;
    padding: .1875rem;
    background: linear-gradient(155deg, #ffffffeb, #cce3fa85 24%, #1736534d 53%, #e5efffc7 85%, #f6dba0b3);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}
.pied-contenu { position: relative; z-index: 1; display: grid; gap: .75rem; }
.pied :is(.pied-marque, .pied__marque) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: #f4f7fc; font: 600 1.5rem/1.3 var(--serif); }
.pied :is(.pied-marque, .pied__marque) span { color: #d6e1ee; font: 500 .9375rem/1.6 var(--sans); opacity: 1; }
.pied .pied-marque img { width: auto; height: 1.25rem; }
.pied :is(.pied-note, .pied__ia, .pied__source) { color: #d6e1ee; font: 500 .875rem/1.7 var(--sans); max-width: 72ch; opacity: 1; }
/* Mention IA : discrète mais lisible (AI Act art. 50 — reste perceptible). */
.pied :is(.pied-note, .pied__ia) { font-size: .6875rem; opacity: .7; }
.page-estimation .pied { background: transparent; }
.page-estimation .pied::before { display: none; }
.page-estimation { --lagon: #386ba1; }
.page-estimation .pastille { background: var(--marine-face); }
.page-estimation :is(.lead-result-sync, .lead-analysis) {
  background: var(--opal-face);
  color: var(--encre);
  border: .0625rem solid #e7f2ffcc;
  box-shadow: inset 0 .125rem .125rem #ffffffed, inset 0 -.1875rem .25rem #1c3b5b40, 0 1.25rem 2.375rem -1.125rem #061b3480;
}
.page-estimation .lead-result-sync { border-inline-start: .1875rem solid #e0c283; }
.page-estimation :is(.rc__alerte, .aide--terrain, .barre__etiquette) { background: var(--opal-face); color: var(--encre); box-shadow: inset 0 0 0 .0625rem #7898b566; }
.apercu-local-notice { position: relative; width: 100%; max-width: 78rem; margin: 0 auto 1.25rem; padding: .75rem 1rem; border: .0625rem solid #e0c283; border-radius: .875rem; background: var(--marine-face); color: #ffe4a3; font: 600 .875rem/1.6 var(--sans); }
@media (max-width: 40rem) { .pied-verre { padding: 1.5rem; border-radius: 1.5rem; } .pied :is(.pied-marque, .pied__marque) span { flex-basis: 100%; } }
@media (forced-colors: active) {
  .pied-verre, .page-estimation :is(.lead-result-sync, .lead-analysis, .rc__alerte, .aide--terrain, .barre__etiquette), .apercu-local-notice { background: Canvas; color: CanvasText; border: .0625rem solid CanvasText; box-shadow: none; }
  .pied-verre::before, .pied-verre::after { display: none; }
  .pied :is(.pied-marque, .pied__marque, .pied-note, .pied__ia, .pied__source), .pied :is(.pied-marque, .pied__marque) span { color: CanvasText; }
}

.prestations { --encre: #142e49; --encre-2: #243e58; --encre-3: #3c5570; }
.page-estimation .lead-result-sync { font-size: .875rem; padding: 1rem; border-radius: 1rem; margin: 1rem 0; }
.page-estimation .lead-analysis { padding: 1.5rem; border-radius: 1.5rem; margin: 1rem 0; }
.page-estimation .lead-analysis h2 { font: 600 1.75rem/1.2 var(--serif); color: var(--encre); margin-bottom: .75rem; }
.page-estimation .lead-analysis p { font-size: 1rem; line-height: 1.7; margin: .625rem 0; }
.page-estimation .lead-analysis small { color: var(--encre-2); font-size: .8125rem; opacity: 1; }

.page-estimation .resultat > :is(.lead-result-sync, .lead-analysis) { grid-column: 1 / -1; }

/* 20/11/2026 : texte d'intro blanc posé sur les tuiles rouges de la photo, mesuré à 4,2:1 (seuil 4,5) → ombre portée plus dense. */
.page-estimation .intro__texte, .page-estimation .intro__preuves { text-shadow: 0 1px 2px #030e1ccc, 0 0 18px #030e1cb3; }
/* Même date : l'ombre ne suffit pas à la mesure (le pire pixel derrière le texte = tuile claire). Voile gauche un peu plus dense,
   ordinateur seulement, à l'étape de saisie ; le côté droit (formulaire) et l'étape résultat restent inchangés. */
@media (min-width:901px){
  body.page-estimation[data-etape="saisie"] .decor__voile{background:
    linear-gradient(180deg,rgba(6,20,39,.58) 0,rgba(6,20,39,.16) 22%,rgba(6,20,39,.10) 58%,rgba(6,20,39,.50) 100%),
    linear-gradient(90deg,rgba(6,20,39,.74) 0,rgba(6,20,39,.56) 40%,rgba(6,20,39,.16) 54%,rgba(6,20,39,0) 62%)}
}
