/* ============================================================
   AGENCES : la page à part.
   Un écrin bleu nuit, des filets dorés, davantage d'air.
   Ne s'applique qu'à agences.html (<body class="prestige">).
   ============================================================ */
.prestige { --filet: linear-gradient(90deg, transparent, var(--or-vif) 22%, var(--or-clair) 50%, var(--or-vif) 78%, transparent); }
.sur-titre--or { background: transparent; box-shadow: inset 0 0 0 1px var(--or-clair); color: var(--or-texte); }
.sur-titre--or::before, .insigne::before { content: ''; width: 5px; height: 5px; rotate: 45deg; background: var(--or-vif); flex-shrink: 0; }
.bloc--sable .sur-titre--or { background: transparent; }

/* --- L'ÉCRIN : l'en-tête de la page --- */
.prestige-hero { padding: 86px var(--marge) 0; }
.ecrin { position: relative; isolation: isolate; max-width: 1280px; margin: 0 auto; padding: clamp(30px, 4vw, 54px) clamp(20px, 5vw, 70px) clamp(32px, 4.4vw, 56px); border-radius: clamp(24px, 3vw, 40px); background: radial-gradient(110% 90% at 87% 0%, #223246 0%, var(--nuit) 58%); color: #fff; overflow: hidden; }
.ecrin::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 82% 8%, #000, transparent 76%); mask-image: radial-gradient(ellipse 70% 80% at 82% 8%, #000, transparent 76%); pointer-events: none; }
.ecrin::after { content: ''; position: absolute; z-index: -1; right: -200px; top: -280px; width: 780px; height: 640px; background: radial-gradient(closest-side, rgba(212, 175, 55, .3), transparent); animation: halo 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes halo { to { scale: 1.18; opacity: .7; } }
.ecrin-bord { position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--filet); transform: scaleX(0); transition: transform 1.6s var(--doux) .3s; }
.pret .ecrin-bord { transform: scaleX(1); }
.ecrin-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ecrin .fil { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #B9C3CC; }
.ecrin .fil a:hover, .ecrin .fil [aria-current] { color: #fff; }
.insigne { display: flex; width: fit-content; align-items: center; gap: 9px; margin: 22px 0 0; padding: 8px 15px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(235, 213, 138, .5); background: rgba(212, 175, 55, .1); color: var(--or-clair); font: 700 12.5px/1.2 var(--titre); letter-spacing: .04em; }
.ecrin h1 { display: block; margin-top: 18px; }
.ecrin-sur { display: block; font: 600 14px/1.4 var(--titre); color: #9FACB8; }
.ecrin-titre { display: block; margin: 12px 0 18px; font: 800 clamp(32px, 3.75vw, 52px)/1.06 var(--titre); letter-spacing: -.045em; }
.ecrin-titre .or { color: var(--or-clair); }
.ecrin-chapo { max-width: 54ch; font-size: 18px; color: #C3CCD5; }
.ecrin-chapo strong { color: #fff; font-weight: 600; }
.ecrin .medaillon { margin-top: 22px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.ecrin .medaillon p small { color: #B9C3CC; }
.ecrin .medaillon-anneau .fond { stroke: rgba(255, 255, 255, .12); }
.ecrin .medaillon-anneau strong sup { color: var(--or-clair); }
.ecrin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ecrin .btn--clair { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.ecrin .btn--clair:hover { border-color: #fff; }
.ecrin-gages { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: #B9C3CC; }
.ecrin-gages li { display: flex; align-items: center; gap: 8px; }
.ecrin-gages .coche { background: rgba(127, 216, 180, .16); color: #7FD8B4; }

/* --- CÔTÉ CLIENTS, EN COULISSES : l'image de la page --- */
.coulisses { position: relative; }
.cote { position: relative; padding: 20px 20px 22px; border-radius: 22px; }
.cote-titre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font: 800 12px/1 var(--titre); letter-spacing: .09em; text-transform: uppercase; }
.cote-titre em { padding: 6px 11px; border-radius: 99px; font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cote--clients { z-index: 2; background: #fff; color: var(--encre); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .65); }
.cote--clients .cote-titre { color: var(--encre-3); }
.cote--clients .cote-titre em { background: var(--vert-doux); color: var(--vert); }
.enseigne { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--fond); border: 1px solid var(--bord); }
.enseigne-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #2F5D62, #1D3B45); color: #fff; font: 800 15px/1 var(--titre); letter-spacing: .02em; flex-shrink: 0; }
.enseigne strong { display: block; font: 800 17px/1.2 var(--titre); letter-spacing: -.02em; }
.enseigne small { font-size: 12.5px; color: var(--encre-2); }
.enseigne .cadenas { margin-left: auto; }
.cadenas { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vert-doux); color: var(--vert); flex-shrink: 0; }
.cadenas svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cote-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cote-liste li { padding: 7px 10px; border-radius: 99px; background: var(--sable); font: 700 12px/1 var(--titre); white-space: nowrap; }
.coulisses-fil { position: relative; height: 34px; }
.coulisses-fil i { position: absolute; top: -8px; bottom: -8px; width: 2px; background-image: linear-gradient(to bottom, rgba(235, 213, 138, .8) 0 5px, transparent 5px); background-size: 2px 11px; animation: monter 1s linear infinite; }
.coulisses-fil i:nth-child(1) { left: 20%; }
.coulisses-fil i:nth-child(2) { left: 50%; animation-duration: 1.3s; }
.coulisses-fil i:nth-child(3) { left: 80%; animation-duration: .9s; }
@keyframes monter { to { background-position: 0 -11px; } }
.cote--mdb { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(235, 213, 138, .28); }
.cote--mdb .cote-titre { color: var(--or-clair); }
.cote--mdb .cote-titre em { background: rgba(212, 175, 55, .16); color: var(--or-clair); }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modules li { display: flex; align-items: center; gap: 9px; padding: 11px 10px; border-radius: 13px; background: rgba(212, 175, 55, .1); box-shadow: inset 0 0 0 1px rgba(235, 213, 138, .5); font: 600 13px/1.25 var(--titre); letter-spacing: -.01em; color: #fff; }
.modules li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--or-vif); color: var(--encre); flex-shrink: 0; }
.modules li i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* chaque brique s'allume à son tour, puis la boucle reprend */
.js:not(.calme) .vu .modules li { animation: allumer 7.6s ease calc(var(--i) * .42s + .9s) infinite both; }
.js:not(.calme) .vu .modules li i { animation: cocher 7.6s ease calc(var(--i) * .42s + .9s) infinite both; }
@keyframes allumer { 0%, 94%, 100% { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); color: #C3CCD5; } 6%, 86% { background: rgba(212, 175, 55, .1); box-shadow: inset 0 0 0 1px rgba(235, 213, 138, .5); color: #fff; } }
@keyframes cocher { 0%, 94%, 100% { background: rgba(255, 255, 255, .08); color: transparent; scale: .8; } 6%, 86% { background: var(--or-vif); color: var(--encre); scale: 1; } }

/* --- EN BREF : les trois gains --- */
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(34px, 5vw, 56px); }
.gains .gain { position: relative; padding: 30px 28px 32px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--bord); overflow: hidden; transition: opacity var(--rev-duree) var(--rev-courbe) var(--d, 0ms), transform var(--rev-duree) var(--rev-courbe) var(--d, 0ms), translate .4s var(--vif), border-color .3s, box-shadow .4s; }
.gain::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--filet); transform: scaleX(0); transition: transform 1.3s var(--doux) calc(var(--d, 0ms) + .35s); }
.gain.vu::before { transform: scaleX(1); }
.gains .gain:hover { translate: 0 -6px; border-color: var(--or-clair); box-shadow: 0 34px 60px -40px rgba(22, 33, 43, .5); }
.gain-picto { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 18px; background: var(--encre); }
.gain-picto .picto { width: 28px; height: 28px; stroke: var(--or-clair); }
.gain h3 { font: 800 24px/1.15 var(--titre); letter-spacing: -.035em; margin-bottom: 8px; }
.gain > p { font-size: 15.5px; color: var(--encre-2); }
.gain ul { display: grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bord); }
.gain li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.gain li .coche { margin-top: 1px; }

/* --- LES ÉGARDS : ce qui est réservé aux agences --- */
.egards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(34px, 5vw, 56px); }
.egards .egard { padding: 26px 24px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--bord); transition: opacity var(--rev-duree) var(--rev-courbe) var(--d, 0ms), transform var(--rev-duree) var(--rev-courbe) var(--d, 0ms), translate .4s var(--vif), border-color .3s; }
.egards .egard:hover { translate: 0 -5px; border-color: var(--or-clair); }
.egard-num { display: block; margin-bottom: 28px; font: 800 13px/1 var(--titre); letter-spacing: .16em; color: var(--or); }
.egard-num::after { content: ''; display: block; width: 34px; height: 1.5px; margin-top: 12px; background: var(--or-vif); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--vif) calc(var(--d, 0ms) + .4s); }
.egard.vu .egard-num::after { transform: scaleX(1); }
.egard h3 { font: 800 19px/1.2 var(--titre); letter-spacing: -.025em; margin-bottom: 8px; }
.egard p { font-size: 15px; color: var(--encre-2); }

/* --- LE BILAN : ce que vous gardez, ce que nous portons --- */
.bilan { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(34px, 5vw, 56px); border-radius: 30px; overflow: hidden; border: 1px solid var(--bord); box-shadow: 0 40px 80px -56px rgba(22, 33, 43, .6); }
.bilan-col { padding: clamp(24px, 3.6vw, 46px); }
.bilan-col--vous { background: #fff; }
.bilan-col--nous { background: var(--nuit); color: #fff; }
.bilan h3 { font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--titre); letter-spacing: -.035em; margin-bottom: 6px; }
.bilan-col > p { margin-bottom: 22px; font-size: 15px; color: var(--encre-2); }
.bilan-col--nous > p { color: #B9C3CC; }
.bilan ul { display: grid; gap: 5px; }
.bilan li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: var(--fond); font: 600 15.5px/1.3 var(--titre); transition: opacity .6s ease calc(var(--i) * 90ms + 300ms), translate .7s var(--vif) calc(var(--i) * 90ms + 300ms); }
.bilan-col--nous li { background: rgba(255, 255, 255, .05); }
.bilan-col--nous li .coche { background: var(--or-vif); color: var(--encre); }
.js .bilan:not(.vu) li { opacity: 0; translate: -16px 0; }
.js .bilan:not(.vu) .bilan-col--nous li { translate: 16px 0; }
.bilan-axe { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--or-vif); color: var(--encre); box-shadow: 0 0 0 7px #fff, 0 14px 30px -10px rgba(22, 33, 43, .5); transition: scale .8s var(--ressort) .5s, rotate 1.2s var(--vif) .5s; }
.bilan-axe svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .bilan:not(.vu) .bilan-axe { scale: 0; rotate: -180deg; }

/* --- VOTRE TEMPS : aujourd'hui, puis avec MDB Immo --- */
.temps { margin-top: clamp(30px, 4vw, 50px); padding: clamp(20px, 3vw, 32px); border-radius: var(--rayon); background: #fff; border: 1px solid var(--bord); box-shadow: 0 30px 60px -44px rgba(22, 33, 43, .5); }
.temps-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.temps-tete p { font: 700 14px/1.3 var(--titre); color: var(--encre-2); }
.temps-choix { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--sable); }
.temps-choix button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 18px; border-radius: 99px; font: 700 13.5px/1 var(--titre); color: var(--encre-2); white-space: nowrap; transition: background .3s, color .3s; }
.temps-choix button.actif { background: var(--encre); color: #fff; }
.temps-choix button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.temps-barre { display: flex; gap: 6px; height: 88px; margin-top: 18px; }
.temps-barre > span { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 0 20px; border-radius: 16px; overflow: hidden; white-space: nowrap; transition: flex-basis 1.3s var(--doux), background .8s ease, color .8s ease; }
.temps-admin { flex: 0 0 70%; background: var(--sable-2); color: var(--encre); }
.temps-terrain { flex: 1; background: var(--encre); color: #fff; }
.temps-barre b { font: 800 clamp(15px, 1.6vw, 19px)/1.15 var(--titre); letter-spacing: -.02em; }
.temps-barre small { font-size: 12.5px; opacity: .78; }
.temps[data-etat="apres"] .temps-admin { flex-basis: 19%; background: linear-gradient(135deg, var(--or-clair), var(--or-vif)); }
.temps[data-etat="avant"] .si-apres, .temps[data-etat="apres"] .si-avant { display: none; }
.temps-legende { margin-top: 14px; font-size: 15px; color: var(--encre-2); }

/* --- VOTRE INTERLOCUTEUR --- */
.interlocuteur-texte h2 { max-width: 13em; }
.interlocuteur-texte > p:not(.sur-titre) { max-width: 52ch; color: var(--encre-2); }
.interlocuteur-texte .points { margin: 22px 0 28px; }

@media (max-width: 1080px) {
  .egards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .ecrin-grille { grid-template-columns: 1fr; }
  .gains { grid-template-columns: 1fr; }
  .bilan { grid-template-columns: 1fr; }
  .bilan-axe { position: relative; left: auto; top: auto; z-index: 2; margin: -27px auto; }
  .bilan-axe svg { rotate: 90deg; }
}
@media (max-width: 700px) {
  .prestige-hero { padding-top: 78px; }
  .temps-barre { height: 76px; }
  .temps-barre > span { padding: 0 12px; }
  .temps[data-etat="apres"] .temps-admin b, .temps[data-etat="apres"] .temps-admin small { display: none; }
  .temps-barre small { display: none; }
  .modules { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .egards { grid-template-columns: 1fr; }
  .ecrin-chapo { font-size: 16.5px; }
  .ecrin .medaillon { border-radius: 28px; }
  .temps-choix { width: 100%; }
  .temps-choix button { flex: 1; text-align: center; padding-inline: 10px; }
}
