/* Home v3 only: preserve Dimitri's glass calculator layout around the shared engine. */
/* The global scrolled nav veil becomes a white stripe against Home's dark sections. */
body.aec-v3-home .nav::before { display:none !important; }
#ae-home-v3 [hidden] { display: none !important; }
#ae-home-v3 .aec-v3-form-shell > .aec-form-sec { width:100%; max-width:none; margin:0; padding:0; }
#ae-home-v3 .aec-v3-form-shell > .aec-form-sec > .aec-form-card {
  width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
}
/* The native form has more contractual fields than the handoff. Keep their DOM
   order while using the handoff's lighter, underlined field treatment. */
#ae-home-v3 #projet .aec-v3-form-shell { padding:24px !important; }
#ae-home-v3 #projet .aec-form-card .simu-head { padding-bottom:12px; margin-bottom:12px; }
#ae-home-v3 #projet .aec-form-card .simu-title { font-size:19px; font-weight:600; }
#ae-home-v3 #projet .aec-form-card .simu-meta { margin-top:4px; font-size:12px; }
#ae-home-v3 #projet form[data-ae-form] {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  margin-top:0;
}
#ae-home-v3 #projet form[data-ae-form] > .aec-form-row { display:contents; }
#ae-home-v3 #projet form[data-ae-form] > :is(.aec-form-note,.aec-form-alert,.aec-form-chips,.aec-form-consent,.aec-form-submit,.aec-form-legal,.aec-form-recap) { grid-column:1 / -1; }
#ae-home-v3 #projet form.aec-form--progressive > :is(.aec-progressive-status,.aec-progressive-track,.aec-progressive-more) { grid-column:1 / -1; min-width:0; }
#ae-home-v3 #projet form.aec-form--progressive > .aec-form-row > .aec-form-fld:has(input[name="nom"]) { grid-column:1 / -1; }
#ae-home-v3 #projet form[data-ae-form] > .aec-form-fld:has(:is(select[name="courtier"],textarea[name="message"])) { grid-column:1 / -1; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-fld { min-width:0; gap:5px; }
#ae-home-v3 #projet form[data-ae-form] :is(.aec-form-fld > label,.aec-form-chips > legend) {
  font:500 12px/1.35 'JetBrains Mono',monospace;
  letter-spacing:.035em;
  color:#525257;
}
#ae-home-v3 #projet form[data-ae-form] :is(input[type="text"],input[type="tel"],input[type="email"],select,textarea) {
  min-height:44px;
  padding:9px 0;
  border:0;
  border-bottom:1px solid #767676;
  border-radius:0;
  background-color:transparent;
  font-size:16px;
}
#ae-home-v3 #projet form.aec-form--progressive[data-ae-form] :is(input[type="text"],input[type="tel"],input[type="email"],select,textarea):is([aria-invalid="true"],:user-invalid) { border:0; border-bottom:1px solid rgba(10,10,11,.16); box-shadow:none; }
#ae-home-v3 #projet form[data-ae-form] select { padding-right:26px; background-position:right 4px center; }
#ae-home-v3 #projet form[data-ae-form] textarea[name="message"] { min-height:88px; resize:vertical; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-chips { margin:3px 0; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-chips > legend { margin-bottom:7px; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-chiprow { gap:7px; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-chip { min-height:44px; padding:8px 10px; font-size:12px; }
#ae-home-v3 #projet form[data-ae-form] :is(.aec-form-note,.aec-form-hint,.aec-form-legal) { font-size:12px; line-height:1.45; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-consent { margin:2px 0; }
#ae-home-v3 #projet form[data-ae-form] .aec-form-submit { margin-top:2px; min-height:48px; }
#ae-home-v3 #projet .aec-v3-form-shell a:focus-visible,
#ae-home-v3 #projet .aec-v3-form-shell button:focus-visible,
#ae-home-v3 #projet .aec-v3-form-shell input:focus-visible,
#ae-home-v3 #projet .aec-v3-form-shell select:focus-visible,
#ae-home-v3 #projet .aec-v3-form-shell textarea:focus-visible { outline-color:#546D1E; }
#ae-home-v3 #simuler .aec-glass[data-lpsim] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0A0A0B;
  font-size:13px;
  line-height:1.45;
}
#ae-home-v3 #simuler .aec-glass .simu-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  border-bottom: 1px solid rgba(10,10,11,.09);
  padding: 0 0 10px;
}
#ae-home-v3 #simuler .aec-glass .simu-title {
  font: 600 15.5px/1.2 'Instrument Sans',sans-serif;
  letter-spacing: -.015em;
}
#ae-home-v3 #simuler .aec-glass .simu-meta { display: none; }
#ae-home-v3 #simuler .aec-glass .simu-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  padding: 0 0 10px;
  margin: 0;
  border-bottom: 1px solid rgba(10,10,11,.09);
}
#ae-home-v3 #simuler .aec-glass .simu-row > span { flex: 0 0 auto; font-size: 12.5px; }
#ae-home-v3 #simuler .aec-glass .seg { flex: 0 0 auto; border: 1px solid rgba(10,10,11,.05); padding: 4px; }
#ae-home-v3 #simuler .aec-glass .seg button { min-height: 38px; padding: 8px 14px; }
#ae-home-v3 #simuler .aec-glass .tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 12px 0 14px;
}
#ae-home-v3 #simuler .aec-glass .tabs button { min-height: 44px; }
#ae-home-v3 #simuler .aec-glass .panel,
#ae-home-v3 #simuler .aec-glass .simu-cta,
#ae-home-v3 #simuler .aec-glass .lp-simu-legal { grid-column: 1 / -1; }
#ae-home-v3 #simuler .aec-glass .panel { gap: 12px; }
#ae-home-v3 #simuler .aec-glass .panel[hidden] { display: none; }
#ae-home-v3 #simuler .aec-glass .flabel { font-size: 13px; }
#ae-home-v3 #simuler .aec-glass .hn-number { border-bottom: 1px solid #767676; }
#ae-home-v3 #simuler .aec-glass .hn-number input {
  width: 94px;
  min-height: 28px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: 500 13px/1.4 'JetBrains Mono',monospace;
}
#ae-home-v3 #simuler .aec-glass .hn-number > span { font-size: 12px; }
#ae-home-v3 #simuler .aec-glass .hn-number:focus-within { border-bottom-color: #0A0A0B; box-shadow: 0 2px 0 #ADE83C; }
#ae-home-v3 #simuler .aec-glass .hn-number input:focus-visible { outline: 2px solid #0A0A0B; outline-offset: 2px; }
#ae-home-v3 #simuler .aec-glass .chips button { min-height: 44px; }
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr));
  gap: 8px;
  padding-top: 34px;
  border-top: 1px solid rgba(10,10,11,.09);
  position: relative;
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-pair::before {
  content: 'VOTRE MENSUALITÉ, CRÉDIT + ASSURANCE';
  position: absolute;
  left: 0;
  top: 12px;
  font: 400 10px/1.4 'JetBrains Mono',monospace;
  letter-spacing: .09em;
  color: #6E6E73;
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(10,10,11,.1);
  border-radius: 14px;
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card.is-us { background: #fff; }
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-label { display: block; font-size: 12.5px; color: #6E6E73; }
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-label small { font-size: 11px; }
#ae-home-v3 #simuler .aec-glass .is-us .aec-v3-eco-card-label { color: #0A0A0B; font-weight: 600; }
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  white-space: nowrap;
  color: #6E6E73;
  font: 400 11.5px/1.3 'JetBrains Mono',monospace;
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-total strong {
  font: 400 clamp(20px,2.2cqw,26px)/1.15 'JetBrains Mono',monospace;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
#ae-home-v3 #simuler .aec-glass .is-us .aec-v3-eco-card-total strong {
  color: #0A0A0B;
  background: linear-gradient(transparent 66%,rgba(173,232,60,.6) 66%);
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  margin-top: 6px;
  color: #6E6E73;
  font-size: 11.5px;
  line-height: 1.5;
}
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-meta span:first-child::after { content: ':'; }
#ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-meta b { font-weight: 400; }
#ae-home-v3 #simuler .aec-glass .eco-month { display: none; }
#ae-home-v3 #simuler .aec-glass .eco-month > span:first-child { font-size: 12px; color: #55565A; }
#ae-home-v3 #simuler .aec-glass .eco-month .v { font-size: 14px; }
#ae-home-v3 #simuler .aec-glass .result { padding: 18px; border-radius: 20px; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result > div {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(14px,2cqw,24px);
  align-items: center;
}
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-lab { grid-column: 1; align-self: end; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-big { grid-column: 1; font-size: clamp(28px,3.2cqw,40px); margin: 6px 0; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
}
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-grid > div:last-child { border-bottom: 0; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-grid b { margin: 0; white-space: nowrap; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 12px;
  min-height:44px;
  padding:8px 2px;
  color:rgba(255,255,255,.82);
  font:400 12px/1.45 'Instrument Sans',sans-serif;
  cursor:pointer;
  list-style:none;
}
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details summary::-webkit-details-marker { display:none; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details summary span:last-child { color:#fff; text-decoration:underline; text-underline-offset:3px; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details summary:focus-visible { outline:2px solid #ADE83C; outline-offset:2px; }
#ae-home-v3 #simuler .aec-glass #ae-pan-eco .aec-v3-eco-details .simu-hyp {
  margin:0 0 3px;
  padding:10px 2px 2px;
  border-top:1px solid rgba(255,255,255,.14);
}
#ae-home-v3 #simuler .aec-glass .simu-cta { margin-top: 14px; }
#ae-home-v3 #simuler .aec-glass .lp-simu-legal { margin: 9px 0 0; }

/* The four honoraires figures share one mono weight, including “ÉCRIT”. */
#ae-home-v3 #honoraires :is([data-v3-i="13-13"],[data-v3-i="13-17"],[data-v3-i="13-21"],[data-v3-i="13-25"]) { font-weight:400; }

/* The public roster keeps the v3 image/expanded-card rhythm without using
   unattributed portraits or invented quotations. */
#ae-home-v3 .aec-v3-team-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 185px;
  background: linear-gradient(150deg,#EDEDE8,#E3E3DE);
  color: #0A0A0B;
  font: 500 clamp(28px,3cqw,40px)/1 'JetBrains Mono',monospace;
}
#ae-home-v3 .aec-v3-team-tours {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}
#ae-home-v3 .aec-v3-team-tour-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10,10,11,.08);
}
#ae-home-v3 .aec-v3-team-tour-media { height: 205px; overflow: hidden; }
#ae-home-v3 .aec-v3-team-tour-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ae-home-v3 .aec-v3-team-tour-copy { display: flex; flex-direction: column; gap: 8px; min-height: 142px; padding: 18px; }
#ae-home-v3 .aec-v3-team-tour-copy span { color: #6E6E73; font-size: 12px; }
#ae-home-v3 .aec-v3-team-tour-copy strong { color: #0A0A0B; font-size: 18px; line-height: 1.15; }
#ae-home-v3 .aec-v3-team-tour-copy a { align-self: flex-start; margin-top: auto; color: #0A0A0B; border-bottom: 2px solid #ADE83C; font-size: 13px; font-weight: 600; }

@media (max-width: 759px) {
  #ae-home-v3 .aec-v3-team-tours { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  #ae-home-v3 #projet form[data-ae-form] { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 520px) {
  #ae-home-v3 #comparatif [data-v3-i="7-15"],
  #ae-home-v3 #comparatif [data-v3-i="7-17"] { white-space:normal !important; padding:8px 10px !important; line-height:1.2; text-align:center; }
  #ae-home-v3 #simuler .aec-glass .chips { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  #ae-home-v3 #simuler .aec-glass .chips button { width:100%; min-width:0; padding-inline:4px; }
  #ae-home-v3 .aec-v3-team-tours { grid-template-columns: 1fr; }
  #ae-home-v3 .aec-v3-team-tour-card { flex-direction: row; }
  #ae-home-v3 .aec-v3-team-tour-media { flex: 0 0 105px; height: auto; }
  #ae-home-v3 .aec-v3-team-tour-copy { min-height: 132px; }
  #ae-home-v3 #simuler .aec-glass[data-lpsim] { grid-template-columns: minmax(0,1fr) auto; }
  #ae-home-v3 #simuler .aec-glass .simu-row > span { display: none; }
  #ae-home-v3 #simuler .aec-glass .seg button { padding-inline: 10px; }
  #ae-home-v3 #simuler .aec-glass #ae-pan-eco .result > div { grid-template-columns: minmax(0,1fr); }
  #ae-home-v3 #simuler .aec-glass #ae-pan-eco .result-grid { grid-column: 1; grid-row: auto; margin-top: 8px; }
  #ae-home-v3 #simuler .aec-glass .aec-v3-eco-card-total strong { font-size: 23px; }
}
